Whamcloud - gitweb
libext2fs: add sanity check for an invalid itable_used value in inode scan code
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 BUILD_LDFLAGS
629 BUILD_CFLAGS
630 MKINSTALLDIRS
631 INCLUDES
632 DO_TEST_SUITE
633 ET_DIR
634 SS_DIR
635 LDFLAG_STATIC
636 root_sysconfdir
637 root_libdir
638 root_sbindir
639 root_bindir
640 root_prefix
641 UNIX_CMT
642 CYGWIN_CMT
643 LINUX_CMT
644 UNI_DIFF_OPTS
645 SEM_INIT_LIB
646 SOCKET_LIB
647 SIZEOF_OFF_T
648 SIZEOF_LONG_LONG
649 SIZEOF_LONG
650 SIZEOF_INT
651 SIZEOF_SHORT
652 BUILD_CC
653 MAKEINFO
654 STRIP
655 AR
656 LDCONFIG
657 PERL
658 AWK
659 CHMOD
660 RM
661 CP
662 MV
663 LN_S
664 LN
665 ifNotGNUmake
666 ifGNUmake
667 BINARY_TYPE
668 POSUB
669 LTLIBINTL
670 LIBINTL
671 INTLLIBS
672 INTL_LIBTOOL_SUFFIX_PREFIX
673 INTLOBJS
674 GENCAT
675 INSTOBJEXT
676 DATADIRNAME
677 CATOBJEXT
678 USE_INCLUDED_LIBINTL
679 BUILD_INCLUDED_LIBINTL
680 LTLIBC
681 WINDRES
682 WOE32
683 WOE32DLL
684 HAVE_WPRINTF
685 HAVE_NEWLOCALE
686 HAVE_SNPRINTF
687 HAVE_ASPRINTF
688 HAVE_POSIX_PRINTF
689 INTL_DEFAULT_VERBOSITY
690 INTL_MACOSX_LIBS
691 GLIBC21
692 INTLBISON
693 LTLIBICONV
694 LIBICONV
695 LTLIBMULTITHREAD
696 LIBMULTITHREAD
697 LTLIBTHREAD
698 LIBTHREAD
699 LIBPTH_PREFIX
700 LTLIBPTH
701 LIBPTH
702 PRI_MACROS_BROKEN
703 ALLOCA
704 HAVE_VISIBILITY
705 CFLAG_VISIBILITY
706 RANLIB
707 GLIBC2
708 XGETTEXT_EXTRA_OPTIONS
709 MSGMERGE
710 XGETTEXT_015
711 XGETTEXT
712 GMSGFMT_015
713 MSGFMT_015
714 GMSGFMT
715 MSGFMT
716 GETTEXT_MACRO_VERSION
717 USE_NLS
718 SED
719 MKDIR_P
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 SET_MAKE
724 VERSION
725 PACKAGE
726 GETTEXT_PACKAGE
727 UUIDD_CMT
728 E2INITRD_MAN
729 E2INITRD_PROG
730 FSCK_MAN
731 FSCK_PROG
732 DEFRAG_CMT
733 RESIZER_CMT
734 IMAGER_CMT
735 DEBUGFS_CMT
736 QUOTA_CMT
737 DEPPROFILED_LIBQUOTA
738 PROFILED_LIBQUOTA
739 DEPSTATIC_LIBQUOTA
740 STATIC_LIBQUOTA
741 DEPLIBQUOTA
742 LIBQUOTA
743 QUOTA_MAN_COMMENT
744 BLKID_CMT
745 DEPPROFILED_LIBBLKID
746 PROFILED_LIBBLKID
747 DEPSTATIC_LIBBLKID
748 STATIC_LIBBLKID
749 DEPLIBBLKID
750 LIBBLKID
751 UUID_CMT
752 DEPPROFILED_LIBUUID
753 PROFILED_LIBUUID
754 DEPSTATIC_LIBUUID
755 STATIC_LIBUUID
756 DEPLIBUUID
757 LIBUUID
758 PKG_CONFIG_LIBDIR
759 PKG_CONFIG_PATH
760 PKG_CONFIG
761 TEST_IO_CMT
762 PRIVATE_LIBS_CMT
763 LDFLAG_DYNAMIC
764 PROFILED_LIB_EXT
765 STATIC_LIB_EXT
766 LIB_EXT
767 PROFILE_CMT
768 BSDLIB_CMT
769 ELF_CMT
770 HTREE_CMT
771 Q
772 ES
773 E
774 LINK_BUILD_FLAGS
775 SYMLINK_RELATIVE
776 LINK_INSTALL_FLAGS
777 MAINTAINER_CMT
778 EGREP
779 GREP
780 CPP
781 RDYNAMIC
782 DLOPEN_LIB
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
789 CC
790 host_os
791 host_vendor
792 host_cpu
793 host
794 build_os
795 build_vendor
796 build_cpu
797 build
798 E2FSPROGS_PKGVER
799 E2FSPROGS_VERSION
800 E2FSPROGS_DAY
801 E2FSPROGS_MONTH
802 E2FSPROGS_YEAR
803 target_alias
804 host_alias
805 build_alias
806 LIBS
807 ECHO_T
808 ECHO_N
809 ECHO_C
810 DEFS
811 mandir
812 localedir
813 libdir
814 psdir
815 pdfdir
816 dvidir
817 htmldir
818 infodir
819 docdir
820 oldincludedir
821 includedir
822 localstatedir
823 sharedstatedir
824 sysconfdir
825 datadir
826 datarootdir
827 libexecdir
828 sbindir
829 bindir
830 program_transform_name
831 prefix
832 exec_prefix
833 PACKAGE_URL
834 PACKAGE_BUGREPORT
835 PACKAGE_STRING
836 PACKAGE_VERSION
837 PACKAGE_TARNAME
838 PACKAGE_NAME
839 PATH_SEPARATOR
840 SHELL'
841 ac_subst_files='MCONFIG
842 MAKEFILE_ELF
843 MAKEFILE_BSDLIB
844 MAKEFILE_PROFILE
845 MAKEFILE_LIBRARY
846 ASM_TYPES_HEADER
847 PUBLIC_CONFIG_HEADER'
848 ac_user_opts='
849 enable_option_checking
850 with_diet_libc
851 with_cc
852 with_ccopts
853 with_ldopts
854 with_root_prefix
855 enable_maintainer_mode
856 enable_symlink_install
857 enable_relative_symlinks
858 enable_symlink_relative_symlinks
859 enable_symlink_build
860 enable_verbose_makecmds
861 enable_compression
862 enable_htree
863 enable_elf_shlibs
864 enable_bsd_shlibs
865 enable_profile
866 enable_gcov
867 enable_jbd_debug
868 enable_blkid_debug
869 enable_testio_debug
870 enable_libuuid
871 enable_libblkid
872 enable_quota
873 enable_backtrace
874 enable_debugfs
875 enable_imager
876 enable_resizer
877 enable_defrag
878 enable_fsck
879 enable_e2initrd_helper
880 enable_tls
881 enable_uuidd
882 enable_nls
883 enable_threads
884 with_gnu_ld
885 enable_rpath
886 with_libpth_prefix
887 with_libiconv_prefix
888 with_included_gettext
889 with_libintl_prefix
890 with_multiarch
891 '
892       ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
953
954 ac_prev=
955 ac_dashdash=
956 for ac_option
957 do
958   # If the previous option needs an argument, assign it.
959   if test -n "$ac_prev"; then
960     eval $ac_prev=\$ac_option
961     ac_prev=
962     continue
963   fi
964
965   case $ac_option in
966   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967   *=)   ac_optarg= ;;
968   *)    ac_optarg=yes ;;
969   esac
970
971   # Accept the important Cygnus configure options, so we can diagnose typos.
972
973   case $ac_dashdash$ac_option in
974   --)
975     ac_dashdash=yes ;;
976
977   -bindir | --bindir | --bindi | --bind | --bin | --bi)
978     ac_prev=bindir ;;
979   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980     bindir=$ac_optarg ;;
981
982   -build | --build | --buil | --bui | --bu)
983     ac_prev=build_alias ;;
984   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985     build_alias=$ac_optarg ;;
986
987   -cache-file | --cache-file | --cache-fil | --cache-fi \
988   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989     ac_prev=cache_file ;;
990   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992     cache_file=$ac_optarg ;;
993
994   --config-cache | -C)
995     cache_file=config.cache ;;
996
997   -datadir | --datadir | --datadi | --datad)
998     ac_prev=datadir ;;
999   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000     datadir=$ac_optarg ;;
1001
1002   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003   | --dataroo | --dataro | --datar)
1004     ac_prev=datarootdir ;;
1005   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007     datarootdir=$ac_optarg ;;
1008
1009   -disable-* | --disable-*)
1010     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011     # Reject names that are not valid shell variable names.
1012     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013       as_fn_error $? "invalid feature name: $ac_useropt"
1014     ac_useropt_orig=$ac_useropt
1015     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016     case $ac_user_opts in
1017       *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021          ac_unrecognized_sep=', ';;
1022     esac
1023     eval enable_$ac_useropt=no ;;
1024
1025   -docdir | --docdir | --docdi | --doc | --do)
1026     ac_prev=docdir ;;
1027   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028     docdir=$ac_optarg ;;
1029
1030   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031     ac_prev=dvidir ;;
1032   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033     dvidir=$ac_optarg ;;
1034
1035   -enable-* | --enable-*)
1036     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037     # Reject names that are not valid shell variable names.
1038     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039       as_fn_error $? "invalid feature name: $ac_useropt"
1040     ac_useropt_orig=$ac_useropt
1041     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042     case $ac_user_opts in
1043       *"
1044 "enable_$ac_useropt"
1045 "*) ;;
1046       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047          ac_unrecognized_sep=', ';;
1048     esac
1049     eval enable_$ac_useropt=\$ac_optarg ;;
1050
1051   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053   | --exec | --exe | --ex)
1054     ac_prev=exec_prefix ;;
1055   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057   | --exec=* | --exe=* | --ex=*)
1058     exec_prefix=$ac_optarg ;;
1059
1060   -gas | --gas | --ga | --g)
1061     # Obsolete; use --with-gas.
1062     with_gas=yes ;;
1063
1064   -help | --help | --hel | --he | -h)
1065     ac_init_help=long ;;
1066   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067     ac_init_help=recursive ;;
1068   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069     ac_init_help=short ;;
1070
1071   -host | --host | --hos | --ho)
1072     ac_prev=host_alias ;;
1073   -host=* | --host=* | --hos=* | --ho=*)
1074     host_alias=$ac_optarg ;;
1075
1076   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077     ac_prev=htmldir ;;
1078   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079   | --ht=*)
1080     htmldir=$ac_optarg ;;
1081
1082   -includedir | --includedir | --includedi | --included | --include \
1083   | --includ | --inclu | --incl | --inc)
1084     ac_prev=includedir ;;
1085   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086   | --includ=* | --inclu=* | --incl=* | --inc=*)
1087     includedir=$ac_optarg ;;
1088
1089   -infodir | --infodir | --infodi | --infod | --info | --inf)
1090     ac_prev=infodir ;;
1091   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092     infodir=$ac_optarg ;;
1093
1094   -libdir | --libdir | --libdi | --libd)
1095     ac_prev=libdir ;;
1096   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097     libdir=$ac_optarg ;;
1098
1099   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100   | --libexe | --libex | --libe)
1101     ac_prev=libexecdir ;;
1102   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103   | --libexe=* | --libex=* | --libe=*)
1104     libexecdir=$ac_optarg ;;
1105
1106   -localedir | --localedir | --localedi | --localed | --locale)
1107     ac_prev=localedir ;;
1108   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109     localedir=$ac_optarg ;;
1110
1111   -localstatedir | --localstatedir | --localstatedi | --localstated \
1112   | --localstate | --localstat | --localsta | --localst | --locals)
1113     ac_prev=localstatedir ;;
1114   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116     localstatedir=$ac_optarg ;;
1117
1118   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119     ac_prev=mandir ;;
1120   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121     mandir=$ac_optarg ;;
1122
1123   -nfp | --nfp | --nf)
1124     # Obsolete; use --without-fp.
1125     with_fp=no ;;
1126
1127   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128   | --no-cr | --no-c | -n)
1129     no_create=yes ;;
1130
1131   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133     no_recursion=yes ;;
1134
1135   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137   | --oldin | --oldi | --old | --ol | --o)
1138     ac_prev=oldincludedir ;;
1139   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142     oldincludedir=$ac_optarg ;;
1143
1144   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145     ac_prev=prefix ;;
1146   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147     prefix=$ac_optarg ;;
1148
1149   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150   | --program-pre | --program-pr | --program-p)
1151     ac_prev=program_prefix ;;
1152   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154     program_prefix=$ac_optarg ;;
1155
1156   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157   | --program-suf | --program-su | --program-s)
1158     ac_prev=program_suffix ;;
1159   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161     program_suffix=$ac_optarg ;;
1162
1163   -program-transform-name | --program-transform-name \
1164   | --program-transform-nam | --program-transform-na \
1165   | --program-transform-n | --program-transform- \
1166   | --program-transform | --program-transfor \
1167   | --program-transfo | --program-transf \
1168   | --program-trans | --program-tran \
1169   | --progr-tra | --program-tr | --program-t)
1170     ac_prev=program_transform_name ;;
1171   -program-transform-name=* | --program-transform-name=* \
1172   | --program-transform-nam=* | --program-transform-na=* \
1173   | --program-transform-n=* | --program-transform-=* \
1174   | --program-transform=* | --program-transfor=* \
1175   | --program-transfo=* | --program-transf=* \
1176   | --program-trans=* | --program-tran=* \
1177   | --progr-tra=* | --program-tr=* | --program-t=*)
1178     program_transform_name=$ac_optarg ;;
1179
1180   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181     ac_prev=pdfdir ;;
1182   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183     pdfdir=$ac_optarg ;;
1184
1185   -psdir | --psdir | --psdi | --psd | --ps)
1186     ac_prev=psdir ;;
1187   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188     psdir=$ac_optarg ;;
1189
1190   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191   | -silent | --silent | --silen | --sile | --sil)
1192     silent=yes ;;
1193
1194   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195     ac_prev=sbindir ;;
1196   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197   | --sbi=* | --sb=*)
1198     sbindir=$ac_optarg ;;
1199
1200   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202   | --sharedst | --shareds | --shared | --share | --shar \
1203   | --sha | --sh)
1204     ac_prev=sharedstatedir ;;
1205   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208   | --sha=* | --sh=*)
1209     sharedstatedir=$ac_optarg ;;
1210
1211   -site | --site | --sit)
1212     ac_prev=site ;;
1213   -site=* | --site=* | --sit=*)
1214     site=$ac_optarg ;;
1215
1216   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217     ac_prev=srcdir ;;
1218   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219     srcdir=$ac_optarg ;;
1220
1221   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222   | --syscon | --sysco | --sysc | --sys | --sy)
1223     ac_prev=sysconfdir ;;
1224   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226     sysconfdir=$ac_optarg ;;
1227
1228   -target | --target | --targe | --targ | --tar | --ta | --t)
1229     ac_prev=target_alias ;;
1230   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231     target_alias=$ac_optarg ;;
1232
1233   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234     verbose=yes ;;
1235
1236   -version | --version | --versio | --versi | --vers | -V)
1237     ac_init_version=: ;;
1238
1239   -with-* | --with-*)
1240     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243       as_fn_error $? "invalid package name: $ac_useropt"
1244     ac_useropt_orig=$ac_useropt
1245     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246     case $ac_user_opts in
1247       *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251          ac_unrecognized_sep=', ';;
1252     esac
1253     eval with_$ac_useropt=\$ac_optarg ;;
1254
1255   -without-* | --without-*)
1256     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259       as_fn_error $? "invalid package name: $ac_useropt"
1260     ac_useropt_orig=$ac_useropt
1261     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262     case $ac_user_opts in
1263       *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267          ac_unrecognized_sep=', ';;
1268     esac
1269     eval with_$ac_useropt=no ;;
1270
1271   --x)
1272     # Obsolete; use --with-x.
1273     with_x=yes ;;
1274
1275   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276   | --x-incl | --x-inc | --x-in | --x-i)
1277     ac_prev=x_includes ;;
1278   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280     x_includes=$ac_optarg ;;
1281
1282   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284     ac_prev=x_libraries ;;
1285   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287     x_libraries=$ac_optarg ;;
1288
1289   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1291     ;;
1292
1293   *=*)
1294     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295     # Reject names that are not valid shell variable names.
1296     case $ac_envvar in #(
1297       '' | [0-9]* | *[!_$as_cr_alnum]* )
1298       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299     esac
1300     eval $ac_envvar=\$ac_optarg
1301     export $ac_envvar ;;
1302
1303   *)
1304     # FIXME: should be removed in autoconf 3.0.
1305     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309     ;;
1310
1311   esac
1312 done
1313
1314 if test -n "$ac_prev"; then
1315   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316   as_fn_error $? "missing argument to $ac_option"
1317 fi
1318
1319 if test -n "$ac_unrecognized_opts"; then
1320   case $enable_option_checking in
1321     no) ;;
1322     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324   esac
1325 fi
1326
1327 # Check all directory arguments for consistency.
1328 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329                 datadir sysconfdir sharedstatedir localstatedir includedir \
1330                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331                 libdir localedir mandir
1332 do
1333   eval ac_val=\$$ac_var
1334   # Remove trailing slashes.
1335   case $ac_val in
1336     */ )
1337       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338       eval $ac_var=\$ac_val;;
1339   esac
1340   # Be sure to have absolute directory names.
1341   case $ac_val in
1342     [\\/$]* | ?:[\\/]* )  continue;;
1343     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344   esac
1345   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357   if test "x$build_alias" = x; then
1358     cross_compiling=maybe
1359   elif test "x$build_alias" != "x$host_alias"; then
1360     cross_compiling=yes
1361   fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373   as_fn_error $? "working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375   as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380   ac_srcdir_defaulted=yes
1381   # Try the directory containing this script, then the parent directory.
1382   ac_confdir=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384          X"$as_myself" : 'X\(//\)[^/]' \| \
1385          X"$as_myself" : 'X\(//\)$' \| \
1386          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 $as_echo X"$as_myself" |
1388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)[^/].*/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)$/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\).*/{
1401             s//\1/
1402             q
1403           }
1404           s/.*/./; q'`
1405   srcdir=$ac_confdir
1406   if test ! -r "$srcdir/$ac_unique_file"; then
1407     srcdir=..
1408   fi
1409 else
1410   ac_srcdir_defaulted=no
1411 fi
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419         pwd)`
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422   srcdir=.
1423 fi
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1427 case $srcdir in
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 esac
1430 for ac_var in $ac_precious_vars; do
1431   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432   eval ac_env_${ac_var}_value=\$${ac_var}
1433   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441   # Omit some internal or obsolete options to make the list less imposing.
1442   # This message is too long to be a string in the A/UX 3.1 sh.
1443   cat <<_ACEOF
1444 \`configure' configures this package to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454   -h, --help              display this help and exit
1455       --help=short        display options specific to this package
1456       --help=recursive    display the short help of all the included packages
1457   -V, --version           display version information and exit
1458   -q, --quiet, --silent   do not print \`checking ...' messages
1459       --cache-file=FILE   cache test results in FILE [disabled]
1460   -C, --config-cache      alias for \`--cache-file=config.cache'
1461   -n, --no-create         do not create output files
1462       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
1464 Installation directories:
1465   --prefix=PREFIX         install architecture-independent files in PREFIX
1466                           [$ac_default_prefix]
1467   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468                           [PREFIX]
1469
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478   --bindir=DIR            user executables [EPREFIX/bin]
1479   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1480   --libexecdir=DIR        program executables [EPREFIX/libexec]
1481   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1482   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1483   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1484   --libdir=DIR            object code libraries [EPREFIX/lib]
1485   --includedir=DIR        C header files [PREFIX/include]
1486   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1487   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1488   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1489   --infodir=DIR           info documentation [DATAROOTDIR/info]
1490   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1491   --mandir=DIR            man documentation [DATAROOTDIR/man]
1492   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1493   --htmldir=DIR           html documentation [DOCDIR]
1494   --dvidir=DIR            dvi documentation [DOCDIR]
1495   --pdfdir=DIR            pdf documentation [DOCDIR]
1496   --psdir=DIR             ps documentation [DOCDIR]
1497 _ACEOF
1498
1499   cat <<\_ACEOF
1500
1501 System types:
1502   --build=BUILD     configure for building on BUILD [guessed]
1503   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504 _ACEOF
1505 fi
1506
1507 if test -n "$ac_init_help"; then
1508
1509   cat <<\_ACEOF
1510
1511 Optional Features:
1512   --disable-option-checking  ignore unrecognized --enable/--with options
1513   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1514   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1515   --enable-maintainer-mode enable makefile rules useful for maintainers
1516   --enable-symlink-install use symlinks when installing instead of hard links
1517   --enable-relative-symlinks use relative symlinks when installing
1518
1519   --enable-symlink-build  use symlinks while building instead of hard links
1520   --enable-verbose-makecmds enable verbose make command output
1521   --enable-compression    enable EXPERIMENTAL compression support
1522   --enable-htree          enable EXPERIMENTAL htree directory support
1523   --enable-elf-shlibs     select ELF shared libraries
1524   --enable-bsd-shlibs     select BSD shared libraries
1525   --enable-profile        build profiling libraries
1526   --enable-gcov           build for coverage testing using gcov
1527   --enable-jbd-debug      enable journal debugging
1528   --enable-blkid-debug    enable blkid debugging
1529   --disable-testio-debug  disable the use of the test I/O manager for debugging
1530   --disable-libuuid       do not build private uuid library
1531   --disable-libblkid      do not build private blkid library
1532   --enable-quota          enable quota support
1533   --disable-backtrace     disable use backtrace
1534   --disable-debugfs       disable support of debugfs program
1535   --disable-imager        disable support of e2image program
1536   --disable-resizer       disable support of e2resize program
1537   --disable-defrag        disable support of e4defrag program
1538   --enable-fsck           build fsck wrapper program
1539   --enable-e2initrd-helper build e2initrd-helper program
1540   --disable-tls           disable use of thread local support
1541   --disable-uuidd         disable building the uuid daemon
1542   --disable-nls           do not use Native Language Support
1543   --enable-threads={posix|solaris|pth|windows}
1544                           specify multithreading API
1545   --disable-threads       build without multithread safety
1546   --disable-rpath         do not hardcode runtime library paths
1547
1548 Optional Packages:
1549   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551   --with-diet-libc        use diet libc
1552   --with-cc               no longer supported, use CC= instead
1553   --with-ccopts           no longer supported, use CFLAGS= instead
1554   --with-ldopts           no longer supported, use LDFLAGS= instead
1555   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1556   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1557   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1558   --without-libpth-prefix     don't search for libpth in includedir and libdir
1559   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1560   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1561   --with-included-gettext use the GNU gettext library included here
1562   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1563   --without-libintl-prefix     don't search for libintl in includedir and libdir
1564   --with-multiarch=ARCH specify the multiarch triplet
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   LIBS        libraries to pass to the linker, e.g. -l<library>
1572   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CPP         C preprocessor
1575   PKG_CONFIG  path to pkg-config utility
1576   PKG_CONFIG_PATH
1577               directories to add to pkg-config's search path
1578   PKG_CONFIG_LIBDIR
1579               path overriding pkg-config's built-in search path
1580
1581 Use these variables to override the choices made by `configure' or to help
1582 it to find libraries and programs with nonstandard names/locations.
1583
1584 Report bugs to the package provider.
1585 _ACEOF
1586 ac_status=$?
1587 fi
1588
1589 if test "$ac_init_help" = "recursive"; then
1590   # If there are subdirs, report their specific --help.
1591   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592     test -d "$ac_dir" ||
1593       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594       continue
1595     ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601   # A ".." for each directory in $ac_dir_suffix.
1602   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603   case $ac_top_builddir_sub in
1604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606   esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614   .)  # We are building in place.
1615     ac_srcdir=.
1616     ac_top_srcdir=$ac_top_builddir_sub
1617     ac_abs_top_srcdir=$ac_pwd ;;
1618   [\\/]* | ?:[\\/]* )  # Absolute name.
1619     ac_srcdir=$srcdir$ac_dir_suffix;
1620     ac_top_srcdir=$srcdir
1621     ac_abs_top_srcdir=$srcdir ;;
1622   *) # Relative name.
1623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624     ac_top_srcdir=$ac_top_build_prefix$srcdir
1625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629     cd "$ac_dir" || { ac_status=$?; continue; }
1630     # Check for guested configure.
1631     if test -f "$ac_srcdir/configure.gnu"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634     elif test -f "$ac_srcdir/configure"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure" --help=recursive
1637     else
1638       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639     fi || ac_status=$?
1640     cd "$ac_pwd" || { ac_status=$?; break; }
1641   done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646   cat <<\_ACEOF
1647 configure
1648 generated by GNU Autoconf 2.69
1649
1650 Copyright (C) 2012 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654   exit
1655 fi
1656
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1660
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext
1668   if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_compile") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest.$ac_objext; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692         ac_retval=1
1693 fi
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   rm -f conftest.$ac_objext conftest$ac_exeext
1706   if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_link") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && {
1722          test -z "$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        } && test -s conftest$ac_exeext && {
1725          test "$cross_compiling" = yes ||
1726          test -x conftest$ac_exeext
1727        }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733         ac_retval=1
1734 fi
1735   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737   # interfere with the next link command; also delete a directory that is
1738   # left behind by Apple's compiler.  We do this before executing the actions.
1739   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741   as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_cpp ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759   ac_status=$?
1760   if test -s conftest.err; then
1761     grep -v '^ *+' conftest.err >conftest.er1
1762     cat conftest.er1 >&5
1763     mv -f conftest.er1 conftest.err
1764   fi
1765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766   test $ac_status = 0; } > conftest.i && {
1767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768          test ! -s conftest.err
1769        }; then :
1770   ac_retval=0
1771 else
1772   $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775     ac_retval=1
1776 fi
1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778   as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_cpp
1781
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1786 # accordingly.
1787 ac_fn_c_check_header_mongrel ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if eval \${$3+:} false; then :
1791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794   $as_echo_n "(cached) " >&6
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 else
1800   # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809   ac_header_compiler=yes
1810 else
1811   ac_header_compiler=no
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1816
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825   ac_header_preproc=yes
1826 else
1827   ac_header_preproc=no
1828 fi
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1832
1833 # So?  What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835   yes:no: )
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840     ;;
1841   no:yes:* )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852     ;;
1853 esac
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857   $as_echo_n "(cached) " >&6
1858 else
1859   eval "$3=\$ac_header_compiler"
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 fi
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_header_mongrel
1868
1869 # ac_fn_c_try_run LINENO
1870 # ----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872 # that executables *can* be run.
1873 ac_fn_c_try_run ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879   *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883   (eval "$ac_link") 2>&5
1884   ac_status=$?
1885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887   { { case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_try") 2>&5
1894   ac_status=$?
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; }; }; then :
1897   ac_retval=0
1898 else
1899   $as_echo "$as_me: program exited with status $ac_status" >&5
1900        $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903        ac_retval=$ac_status
1904 fi
1905   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907   as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_run
1910
1911 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists and can be compiled using the include files in
1914 # INCLUDES, setting the cache variable VAR accordingly.
1915 ac_fn_c_check_header_compile ()
1916 {
1917   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929   eval "$3=yes"
1930 else
1931   eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_header_compile
1941
1942 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1943 # -------------------------------------------
1944 # Tests whether TYPE exists after having included INCLUDES, setting cache
1945 # variable VAR accordingly.
1946 ac_fn_c_check_type ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952   $as_echo_n "(cached) " >&6
1953 else
1954   eval "$3=no"
1955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h.  */
1957 $4
1958 int
1959 main ()
1960 {
1961 if (sizeof ($2))
1962          return 0;
1963   ;
1964   return 0;
1965 }
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h.  */
1970 $4
1971 int
1972 main ()
1973 {
1974 if (sizeof (($2)))
1975             return 0;
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981
1982 else
1983   eval "$3=yes"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$3
1990                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_type
1995
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005   $as_echo_n "(cached) " >&6
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2011 #define $2 innocuous_$2
2012
2013 /* System header to define __stub macros and hopefully few prototypes,
2014     which can conflict with char $2 (); below.
2015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016     <limits.h> exists even on freestanding compilers.  */
2017
2018 #ifdef __STDC__
2019 # include <limits.h>
2020 #else
2021 # include <assert.h>
2022 #endif
2023
2024 #undef $2
2025
2026 /* Override any GCC internal prototype to avoid an error.
2027    Use char because int might match the return type of a GCC
2028    builtin and then its argument prototype would still apply.  */
2029 #ifdef __cplusplus
2030 extern "C"
2031 #endif
2032 char $2 ();
2033 /* The GNU C library defines this for functions which it implements
2034     to always fail with ENOSYS.  Some functions are actually named
2035     something starting with __ and the normal name is an alias.  */
2036 #if defined __stub_$2 || defined __stub___$2
2037 choke me
2038 #endif
2039
2040 int
2041 main ()
2042 {
2043 return $2 ();
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_link "$LINENO"; then :
2049   eval "$3=yes"
2050 else
2051   eval "$3=no"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext \
2054     conftest$ac_exeext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$3
2057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_func
2062
2063 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2064 # ---------------------------------------------
2065 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2066 # accordingly.
2067 ac_fn_c_check_decl ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   as_decl_name=`echo $2|sed 's/ *(.*//'`
2071   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2073 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2074 if eval \${$3+:} false; then :
2075   $as_echo_n "(cached) " >&6
2076 else
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 int
2081 main ()
2082 {
2083 #ifndef $as_decl_name
2084 #ifdef __cplusplus
2085   (void) $as_decl_use;
2086 #else
2087   (void) $as_decl_name;
2088 #endif
2089 #endif
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096   eval "$3=yes"
2097 else
2098   eval "$3=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_decl
2108
2109 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2110 # --------------------------------------------
2111 # Tries to find the compile-time value of EXPR in a program that includes
2112 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 # computed
2114 ac_fn_c_compute_int ()
2115 {
2116   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117   if test "$cross_compiling" = yes; then
2118     # Depending upon the size, compute the lo and hi bounds.
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 int
2123 main ()
2124 {
2125 static int test_array [1 - 2 * !(($2) >= 0)];
2126 test_array [0] = 0;
2127 return test_array [0];
2128
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134   ac_lo=0 ac_mid=0
2135   while :; do
2136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h.  */
2138 $4
2139 int
2140 main ()
2141 {
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 test_array [0] = 0;
2144 return test_array [0];
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   ac_hi=$ac_mid; break
2152 else
2153   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154                         if test $ac_lo -le $ac_mid; then
2155                           ac_lo= ac_hi=
2156                           break
2157                         fi
2158                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161   done
2162 else
2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 int
2167 main ()
2168 {
2169 static int test_array [1 - 2 * !(($2) < 0)];
2170 test_array [0] = 0;
2171 return test_array [0];
2172
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178   ac_hi=-1 ac_mid=-1
2179   while :; do
2180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $4
2183 int
2184 main ()
2185 {
2186 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2187 test_array [0] = 0;
2188 return test_array [0];
2189
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   ac_lo=$ac_mid; break
2196 else
2197   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198                         if test $ac_mid -le $ac_hi; then
2199                           ac_lo= ac_hi=
2200                           break
2201                         fi
2202                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205   done
2206 else
2207   ac_lo= ac_hi=
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 # Binary search between lo and hi bounds.
2213 while test "x$ac_lo" != "x$ac_hi"; do
2214   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 test_array [0] = 0;
2223 return test_array [0];
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230   ac_hi=$ac_mid
2231 else
2232   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 done
2236 case $ac_lo in #((
2237 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2238 '') ac_retval=1 ;;
2239 esac
2240   else
2241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h.  */
2243 $4
2244 static long int longval () { return $2; }
2245 static unsigned long int ulongval () { return $2; }
2246 #include <stdio.h>
2247 #include <stdlib.h>
2248 int
2249 main ()
2250 {
2251
2252   FILE *f = fopen ("conftest.val", "w");
2253   if (! f)
2254     return 1;
2255   if (($2) < 0)
2256     {
2257       long int i = longval ();
2258       if (i != ($2))
2259         return 1;
2260       fprintf (f, "%ld", i);
2261     }
2262   else
2263     {
2264       unsigned long int i = ulongval ();
2265       if (i != ($2))
2266         return 1;
2267       fprintf (f, "%lu", i);
2268     }
2269   /* Do not output a trailing newline, as this causes \r\n confusion
2270      on some platforms.  */
2271   return ferror (f) || fclose (f) != 0;
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_run "$LINENO"; then :
2278   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2279 else
2280   ac_retval=1
2281 fi
2282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2283   conftest.$ac_objext conftest.beam conftest.$ac_ext
2284 rm -f conftest.val
2285
2286   fi
2287   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288   as_fn_set_status $ac_retval
2289
2290 } # ac_fn_c_compute_int
2291
2292 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2293 # ----------------------------------------------------
2294 # Tries to find if the field MEMBER exists in type AGGR, after including
2295 # INCLUDES, setting cache variable VAR accordingly.
2296 ac_fn_c_check_member ()
2297 {
2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2300 $as_echo_n "checking for $2.$3... " >&6; }
2301 if eval \${$4+:} false; then :
2302   $as_echo_n "(cached) " >&6
2303 else
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $5
2307 int
2308 main ()
2309 {
2310 static $2 ac_aggr;
2311 if (ac_aggr.$3)
2312 return 0;
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   eval "$4=yes"
2319 else
2320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 $5
2323 int
2324 main ()
2325 {
2326 static $2 ac_aggr;
2327 if (sizeof ac_aggr.$3)
2328 return 0;
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   eval "$4=yes"
2335 else
2336   eval "$4=no"
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 fi
2342 eval ac_res=\$$4
2343                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346
2347 } # ac_fn_c_check_member
2348 cat >config.log <<_ACEOF
2349 This file contains any messages produced by compilers while
2350 running configure, to aid debugging if configure makes a mistake.
2351
2352 It was created by $as_me, which was
2353 generated by GNU Autoconf 2.69.  Invocation command line was
2354
2355   $ $0 $@
2356
2357 _ACEOF
2358 exec 5>>config.log
2359 {
2360 cat <<_ASUNAME
2361 ## --------- ##
2362 ## Platform. ##
2363 ## --------- ##
2364
2365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370
2371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2373
2374 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2375 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2377 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2378 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2379 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2380 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2381
2382 _ASUNAME
2383
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387   IFS=$as_save_IFS
2388   test -z "$as_dir" && as_dir=.
2389     $as_echo "PATH: $as_dir"
2390   done
2391 IFS=$as_save_IFS
2392
2393 } >&5
2394
2395 cat >&5 <<_ACEOF
2396
2397
2398 ## ----------- ##
2399 ## Core tests. ##
2400 ## ----------- ##
2401
2402 _ACEOF
2403
2404
2405 # Keep a trace of the command line.
2406 # Strip out --no-create and --no-recursion so they do not pile up.
2407 # Strip out --silent because we don't want to record it for future runs.
2408 # Also quote any args containing shell meta-characters.
2409 # Make two passes to allow for proper duplicate-argument suppression.
2410 ac_configure_args=
2411 ac_configure_args0=
2412 ac_configure_args1=
2413 ac_must_keep_next=false
2414 for ac_pass in 1 2
2415 do
2416   for ac_arg
2417   do
2418     case $ac_arg in
2419     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2420     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2421     | -silent | --silent | --silen | --sile | --sil)
2422       continue ;;
2423     *\'*)
2424       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425     esac
2426     case $ac_pass in
2427     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428     2)
2429       as_fn_append ac_configure_args1 " '$ac_arg'"
2430       if test $ac_must_keep_next = true; then
2431         ac_must_keep_next=false # Got value, back to normal.
2432       else
2433         case $ac_arg in
2434           *=* | --config-cache | -C | -disable-* | --disable-* \
2435           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2436           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2437           | -with-* | --with-* | -without-* | --without-* | --x)
2438             case "$ac_configure_args0 " in
2439               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2440             esac
2441             ;;
2442           -* ) ac_must_keep_next=true ;;
2443         esac
2444       fi
2445       as_fn_append ac_configure_args " '$ac_arg'"
2446       ;;
2447     esac
2448   done
2449 done
2450 { ac_configure_args0=; unset ac_configure_args0;}
2451 { ac_configure_args1=; unset ac_configure_args1;}
2452
2453 # When interrupted or exit'd, cleanup temporary files, and complete
2454 # config.log.  We remove comments because anyway the quotes in there
2455 # would cause problems or look ugly.
2456 # WARNING: Use '\'' to represent an apostrophe within the trap.
2457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2458 trap 'exit_status=$?
2459   # Save into config.log some information that might help in debugging.
2460   {
2461     echo
2462
2463     $as_echo "## ---------------- ##
2464 ## Cache variables. ##
2465 ## ---------------- ##"
2466     echo
2467     # The following way of writing the cache mishandles newlines in values,
2468 (
2469   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2470     eval ac_val=\$$ac_var
2471     case $ac_val in #(
2472     *${as_nl}*)
2473       case $ac_var in #(
2474       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2476       esac
2477       case $ac_var in #(
2478       _ | IFS | as_nl) ;; #(
2479       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2480       *) { eval $ac_var=; unset $ac_var;} ;;
2481       esac ;;
2482     esac
2483   done
2484   (set) 2>&1 |
2485     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486     *${as_nl}ac_space=\ *)
2487       sed -n \
2488         "s/'\''/'\''\\\\'\'''\''/g;
2489           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2490       ;; #(
2491     *)
2492       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2493       ;;
2494     esac |
2495     sort
2496 )
2497     echo
2498
2499     $as_echo "## ----------------- ##
2500 ## Output variables. ##
2501 ## ----------------- ##"
2502     echo
2503     for ac_var in $ac_subst_vars
2504     do
2505       eval ac_val=\$$ac_var
2506       case $ac_val in
2507       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508       esac
2509       $as_echo "$ac_var='\''$ac_val'\''"
2510     done | sort
2511     echo
2512
2513     if test -n "$ac_subst_files"; then
2514       $as_echo "## ------------------- ##
2515 ## File substitutions. ##
2516 ## ------------------- ##"
2517       echo
2518       for ac_var in $ac_subst_files
2519       do
2520         eval ac_val=\$$ac_var
2521         case $ac_val in
2522         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523         esac
2524         $as_echo "$ac_var='\''$ac_val'\''"
2525       done | sort
2526       echo
2527     fi
2528
2529     if test -s confdefs.h; then
2530       $as_echo "## ----------- ##
2531 ## confdefs.h. ##
2532 ## ----------- ##"
2533       echo
2534       cat confdefs.h
2535       echo
2536     fi
2537     test "$ac_signal" != 0 &&
2538       $as_echo "$as_me: caught signal $ac_signal"
2539     $as_echo "$as_me: exit $exit_status"
2540   } >&5
2541   rm -f core *.core core.conftest.* &&
2542     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2543     exit $exit_status
2544 ' 0
2545 for ac_signal in 1 2 13 15; do
2546   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2547 done
2548 ac_signal=0
2549
2550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2551 rm -f -r conftest* confdefs.h
2552
2553 $as_echo "/* confdefs.h */" > confdefs.h
2554
2555 # Predefined preprocessor variables.
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_NAME "$PACKAGE_NAME"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_STRING "$PACKAGE_STRING"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2575 _ACEOF
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_URL "$PACKAGE_URL"
2579 _ACEOF
2580
2581
2582 # Let the site file select an alternate cache file if it wants to.
2583 # Prefer an explicitly selected file to automatically selected ones.
2584 ac_site_file1=NONE
2585 ac_site_file2=NONE
2586 if test -n "$CONFIG_SITE"; then
2587   # We do not want a PATH search for config.site.
2588   case $CONFIG_SITE in #((
2589     -*)  ac_site_file1=./$CONFIG_SITE;;
2590     */*) ac_site_file1=$CONFIG_SITE;;
2591     *)   ac_site_file1=./$CONFIG_SITE;;
2592   esac
2593 elif test "x$prefix" != xNONE; then
2594   ac_site_file1=$prefix/share/config.site
2595   ac_site_file2=$prefix/etc/config.site
2596 else
2597   ac_site_file1=$ac_default_prefix/share/config.site
2598   ac_site_file2=$ac_default_prefix/etc/config.site
2599 fi
2600 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2601 do
2602   test "x$ac_site_file" = xNONE && continue
2603   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2604     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2605 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2606     sed 's/^/| /' "$ac_site_file" >&5
2607     . "$ac_site_file" \
2608       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 as_fn_error $? "failed to load site script $ac_site_file
2611 See \`config.log' for more details" "$LINENO" 5; }
2612   fi
2613 done
2614
2615 if test -r "$cache_file"; then
2616   # Some versions of bash will fail to source /dev/null (special files
2617   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2618   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2619     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2620 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621     case $cache_file in
2622       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2623       *)                      . "./$cache_file";;
2624     esac
2625   fi
2626 else
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2628 $as_echo "$as_me: creating cache $cache_file" >&6;}
2629   >$cache_file
2630 fi
2631
2632 gt_needs="$gt_needs "
2633 as_fn_append ac_header_list " stdlib.h"
2634 as_fn_append ac_header_list " unistd.h"
2635 as_fn_append ac_header_list " sys/param.h"
2636 as_fn_append ac_func_list " symlink"
2637 # Check that the precious variables saved in the cache have kept the same
2638 # value.
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642   eval ac_new_set=\$ac_env_${ac_var}_set
2643   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644   eval ac_new_val=\$ac_env_${ac_var}_value
2645   case $ac_old_set,$ac_new_set in
2646     set,)
2647       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649       ac_cache_corrupted=: ;;
2650     ,set)
2651       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653       ac_cache_corrupted=: ;;
2654     ,);;
2655     *)
2656       if test "x$ac_old_val" != "x$ac_new_val"; then
2657         # differences in whitespace do not lead to failure.
2658         ac_old_val_w=`echo x $ac_old_val`
2659         ac_new_val_w=`echo x $ac_new_val`
2660         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663           ac_cache_corrupted=:
2664         else
2665           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667           eval $ac_var=\$ac_old_val
2668         fi
2669         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2670 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2671         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2673       fi;;
2674   esac
2675   # Pass precious variables to config.status.
2676   if test "$ac_new_set" = set; then
2677     case $ac_new_val in
2678     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679     *) ac_arg=$ac_var=$ac_new_val ;;
2680     esac
2681     case " $ac_configure_args " in
2682       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2683       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2684     esac
2685   fi
2686 done
2687 if $ac_cache_corrupted; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2693 fi
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2697
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
2704
2705
2706 ac_aux_dir=
2707 for ac_dir in config "$srcdir"/config; do
2708   if test -f "$ac_dir/install-sh"; then
2709     ac_aux_dir=$ac_dir
2710     ac_install_sh="$ac_aux_dir/install-sh -c"
2711     break
2712   elif test -f "$ac_dir/install.sh"; then
2713     ac_aux_dir=$ac_dir
2714     ac_install_sh="$ac_aux_dir/install.sh -c"
2715     break
2716   elif test -f "$ac_dir/shtool"; then
2717     ac_aux_dir=$ac_dir
2718     ac_install_sh="$ac_aux_dir/shtool install -c"
2719     break
2720   fi
2721 done
2722 if test -z "$ac_aux_dir"; then
2723   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2724 fi
2725
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2733
2734
2735 ac_config_headers="$ac_config_headers lib/config.h"
2736
2737
2738 MCONFIG=./MCONFIG
2739
2740 BINARY_TYPE=bin
2741 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2742         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2743 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2744         | tr \" " "`
2745 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2746 MONTH=`echo $DATE | awk -F- '{print $2}'`
2747 YEAR=`echo $DATE | awk -F- '{print $3}'`
2748
2749 if expr $YEAR ">" 1900 > /dev/null ; then
2750         E2FSPROGS_YEAR=$YEAR
2751 elif expr $YEAR ">" 90 >/dev/null ; then
2752         E2FSPROGS_YEAR=19$YEAR
2753 else
2754         E2FSPROGS_YEAR=20$YEAR
2755 fi
2756
2757 case $MONTH in
2758 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2759 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2760 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2761 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2762 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2763 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2764 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2765 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2766 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2767 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2768 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2769 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2770 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2771 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2772 esac
2773
2774 base_ver=`echo $E2FSPROGS_VERSION | \
2775                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2776
2777 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2778
2779 case $E2FSPROGS_VERSION in
2780 *-WIP|pre-*)
2781         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2782         ;;
2783 *)
2784         E2FSPROGS_PKGVER="$base_ver"
2785         ;;
2786 esac
2787
2788 unset DATE MONTH YEAR base_ver pre_vers date_spec
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2790 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2792 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2793
2794
2795
2796
2797
2798 WITH_DIET_LIBC=
2799
2800 # Check whether --with-diet-libc was given.
2801 if test "${with_diet_libc+set}" = set; then :
2802   withval=$with_diet_libc; CC="diet cc -nostdinc"
2803 WITH_DIET_LIBC=yes
2804 if test -z "$LIBS"
2805 then
2806         LIBS="-lcompat"
2807 else
2808         LIBS="$LIBS -lcompat"
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2811 $as_echo "CC=$CC" >&6; }
2812 fi
2813 # Make sure we can run config.sub.
2814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2815   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2816
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2818 $as_echo_n "checking build system type... " >&6; }
2819 if ${ac_cv_build+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   ac_build_alias=$build_alias
2823 test "x$ac_build_alias" = x &&
2824   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2825 test "x$ac_build_alias" = x &&
2826   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2827 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2828   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2829
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2832 $as_echo "$ac_cv_build" >&6; }
2833 case $ac_cv_build in
2834 *-*-*) ;;
2835 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2836 esac
2837 build=$ac_cv_build
2838 ac_save_IFS=$IFS; IFS='-'
2839 set x $ac_cv_build
2840 shift
2841 build_cpu=$1
2842 build_vendor=$2
2843 shift; shift
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2846 build_os=$*
2847 IFS=$ac_save_IFS
2848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2849
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2852 $as_echo_n "checking host system type... " >&6; }
2853 if ${ac_cv_host+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test "x$host_alias" = x; then
2857   ac_cv_host=$ac_cv_build
2858 else
2859   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2860     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2861 fi
2862
2863 fi
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2865 $as_echo "$ac_cv_host" >&6; }
2866 case $ac_cv_host in
2867 *-*-*) ;;
2868 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2869 esac
2870 host=$ac_cv_host
2871 ac_save_IFS=$IFS; IFS='-'
2872 set x $ac_cv_host
2873 shift
2874 host_cpu=$1
2875 host_vendor=$2
2876 shift; shift
2877 # Remember, the first character of IFS is used to create $*,
2878 # except with old shells:
2879 host_os=$*
2880 IFS=$ac_save_IFS
2881 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2882
2883
2884 DLOPEN_LIB=''
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if test -n "$CC"; then
2899   ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_exec_ext in '' $ac_executable_extensions; do
2907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913   done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928 fi
2929 if test -z "$ac_cv_prog_CC"; then
2930   ac_ct_CC=$CC
2931   # Extract the first word of "gcc", so it can be a program name with args.
2932 set dummy gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$ac_ct_CC"; then
2939   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948     ac_cv_prog_ac_ct_CC="gcc"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961 $as_echo "$ac_ct_CC" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967   if test "x$ac_ct_CC" = x; then
2968     CC=""
2969   else
2970     case $cross_compiling:$ac_tool_warned in
2971 yes:)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976     CC=$ac_ct_CC
2977   fi
2978 else
2979   CC="$ac_cv_prog_CC"
2980 fi
2981
2982 if test -z "$CC"; then
2983           if test -n "$ac_tool_prefix"; then
2984     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$CC"; then
2992   ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999     for ac_exec_ext in '' $ac_executable_extensions; do
3000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001     ac_cv_prog_CC="${ac_tool_prefix}cc"
3002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006   done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021   fi
3022 fi
3023 if test -z "$CC"; then
3024   # Extract the first word of "cc", so it can be a program name with args.
3025 set dummy cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   if test -n "$CC"; then
3032   ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034   ac_prog_rejected=no
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     for ac_exec_ext in '' $ac_executable_extensions; do
3041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043        ac_prog_rejected=yes
3044        continue
3045      fi
3046     ac_cv_prog_CC="cc"
3047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051   done
3052 IFS=$as_save_IFS
3053
3054 if test $ac_prog_rejected = yes; then
3055   # We found a bogon in the path, so make sure we never use it.
3056   set dummy $ac_cv_prog_CC
3057   shift
3058   if test $# != 0; then
3059     # We chose a different compiler from the bogus one.
3060     # However, it has the same basename, so the bogon will be chosen
3061     # first if we set CC to just the basename; use the full file name.
3062     shift
3063     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064   fi
3065 fi
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$CC"; then
3080   if test -n "$ac_tool_prefix"; then
3081   for ac_prog in cl.exe
3082   do
3083     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088   $as_echo_n "(cached) " >&6
3089 else
3090   if test -n "$CC"; then
3091   ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098     for ac_exec_ext in '' $ac_executable_extensions; do
3099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105   done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120     test -n "$CC" && break
3121   done
3122 fi
3123 if test -z "$CC"; then
3124   ac_ct_CC=$CC
3125   for ac_prog in cl.exe
3126 do
3127   # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132   $as_echo_n "(cached) " >&6
3133 else
3134   if test -n "$ac_ct_CC"; then
3135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140   IFS=$as_save_IFS
3141   test -z "$as_dir" && as_dir=.
3142     for ac_exec_ext in '' $ac_executable_extensions; do
3143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144     ac_cv_prog_ac_ct_CC="$ac_prog"
3145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146     break 2
3147   fi
3148 done
3149   done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164   test -n "$ac_ct_CC" && break
3165 done
3166
3167   if test "x$ac_ct_CC" = x; then
3168     CC=""
3169   else
3170     case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176     CC=$ac_ct_CC
3177   fi
3178 fi
3179
3180 fi
3181
3182
3183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details" "$LINENO" 5; }
3187
3188 # Provide some information about the compiler.
3189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190 set X $ac_compile
3191 ac_compiler=$2
3192 for ac_option in --version -v -V -qversion; do
3193   { { ac_try="$ac_compiler $ac_option >&5"
3194 case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201   ac_status=$?
3202   if test -s conftest.err; then
3203     sed '10a\
3204 ... rest of stderr output deleted ...
3205          10q' conftest.err >conftest.er1
3206     cat conftest.er1 >&5
3207   fi
3208   rm -f conftest.er1 conftest.err
3209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210   test $ac_status = 0; }
3211 done
3212
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h.  */
3215
3216 int
3217 main ()
3218 {
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3228 # of exeext.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230 $as_echo_n "checking whether the C compiler works... " >&6; }
3231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233 # The possible output files:
3234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3238 do
3239   case $ac_file in
3240     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242   esac
3243 done
3244 rm -f $ac_rmfiles
3245
3246 if { { ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253   (eval "$ac_link_default") 2>&5
3254   ac_status=$?
3255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256   test $ac_status = 0; }; then :
3257   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3260 # so that the user can short-circuit this test for compilers unknown to
3261 # Autoconf.
3262 for ac_file in $ac_files ''
3263 do
3264   test -f "$ac_file" || continue
3265   case $ac_file in
3266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267         ;;
3268     [ab].out )
3269         # We found the default executable, but exeext='' is most
3270         # certainly right.
3271         break;;
3272     *.* )
3273         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274         then :; else
3275            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276         fi
3277         # We set ac_cv_exeext here because the later test for it is not
3278         # safe: cross compilers may not add the suffix if given an `-o'
3279         # argument, so we may need to know it at that point already.
3280         # Even if this section looks crufty: it has the advantage of
3281         # actually working.
3282         break;;
3283     * )
3284         break;;
3285   esac
3286 done
3287 test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289 else
3290   ac_file=''
3291 fi
3292 if test -z "$ac_file"; then :
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "C compiler cannot create executables
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309 $as_echo "$ac_file" >&6; }
3310 ac_exeext=$ac_cv_exeext
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315 $as_echo_n "checking for suffix of executables... " >&6; }
3316 if { { ac_try="$ac_link"
3317 case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323   (eval "$ac_link") 2>&5
3324   ac_status=$?
3325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326   test $ac_status = 0; }; then :
3327   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3329 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 # `rm'.
3331 for ac_file in conftest.exe conftest conftest.*; do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336           break;;
3337     * ) break;;
3338   esac
3339 done
3340 else
3341   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details" "$LINENO" 5; }
3345 fi
3346 rm -f conftest conftest$ac_cv_exeext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348 $as_echo "$ac_cv_exeext" >&6; }
3349
3350 rm -f conftest.$ac_ext
3351 EXEEXT=$ac_cv_exeext
3352 ac_exeext=$EXEEXT
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355 #include <stdio.h>
3356 int
3357 main ()
3358 {
3359 FILE *f = fopen ("conftest.out", "w");
3360  return ferror (f) || fclose (f) != 0;
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 ac_clean_files="$ac_clean_files conftest.out"
3367 # Check that the compiler produces executables we can run.  If not, either
3368 # the compiler is broken, or we cross compile.
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370 $as_echo_n "checking whether we are cross compiling... " >&6; }
3371 if test "$cross_compiling" != yes; then
3372   { { ac_try="$ac_link"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_link") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }
3383   if { ac_try='./conftest$ac_cv_exeext'
3384   { { case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390   (eval "$ac_try") 2>&5
3391   ac_status=$?
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }; }; then
3394     cross_compiling=no
3395   else
3396     if test "$cross_compiling" = maybe; then
3397         cross_compiling=yes
3398     else
3399         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details" "$LINENO" 5; }
3404     fi
3405   fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408 $as_echo "$cross_compiling" >&6; }
3409
3410 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413 $as_echo_n "checking for suffix of object files... " >&6; }
3414 if ${ac_cv_objext+:} false; then :
3415   $as_echo_n "(cached) " >&6
3416 else
3417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h.  */
3419
3420 int
3421 main ()
3422 {
3423
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.o conftest.obj
3429 if { { ac_try="$ac_compile"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436   (eval "$ac_compile") 2>&5
3437   ac_status=$?
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }; then :
3440   for ac_file in conftest.o conftest.obj conftest.*; do
3441   test -f "$ac_file" || continue;
3442   case $ac_file in
3443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445        break;;
3446   esac
3447 done
3448 else
3449   $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 fi
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460 $as_echo "$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3462 ac_objext=$OBJEXT
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465 if ${ac_cv_c_compiler_gnu+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474 #ifndef __GNUC__
3475        choke me
3476 #endif
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483   ac_compiler_gnu=yes
3484 else
3485   ac_compiler_gnu=no
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493 if test $ac_compiler_gnu = yes; then
3494   GCC=yes
3495 else
3496   GCC=
3497 fi
3498 ac_test_CFLAGS=${CFLAGS+set}
3499 ac_save_CFLAGS=$CFLAGS
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3502 if ${ac_cv_prog_cc_g+:} false; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   ac_save_c_werror_flag=$ac_c_werror_flag
3506    ac_c_werror_flag=yes
3507    ac_cv_prog_cc_g=no
3508    CFLAGS="-g"
3509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h.  */
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521   ac_cv_prog_cc_g=yes
3522 else
3523   CFLAGS=""
3524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536
3537 else
3538   ac_c_werror_flag=$ac_save_c_werror_flag
3539          CFLAGS="-g"
3540          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552   ac_cv_prog_cc_g=yes
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559    ac_c_werror_flag=$ac_save_c_werror_flag
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564   CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566   if test "$GCC" = yes; then
3567     CFLAGS="-g -O2"
3568   else
3569     CFLAGS="-g"
3570   fi
3571 else
3572   if test "$GCC" = yes; then
3573     CFLAGS="-O2"
3574   else
3575     CFLAGS=
3576   fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if ${ac_cv_prog_cc_c89+:} false; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587 #include <stdarg.h>
3588 #include <stdio.h>
3589 struct stat;
3590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3591 struct buf { int x; };
3592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593 static char *e (p, i)
3594      char **p;
3595      int i;
3596 {
3597   return p[i];
3598 }
3599 static char *f (char * (*g) (char **, int), char **p, ...)
3600 {
3601   char *s;
3602   va_list v;
3603   va_start (v,p);
3604   s = g (p, va_arg (v,int));
3605   va_end (v);
3606   return s;
3607 }
3608
3609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3610    function prototypes and stuff, but not '\xHH' hex character constants.
3611    These don't provoke an error unfortunately, instead are silently treated
3612    as 'x'.  The following induces an error, until -std is added to get
3613    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3614    array size at least.  It's necessary to write '\x00'==0 to get something
3615    that's true only with -std.  */
3616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617
3618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3619    inside strings and character constants.  */
3620 #define FOO(x) 'x'
3621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622
3623 int test (int i, double x);
3624 struct s1 {int (*f) (int a);};
3625 struct s2 {int (*f) (double a);};
3626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3627 int argc;
3628 char **argv;
3629 int
3630 main ()
3631 {
3632 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3638         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 do
3640   CC="$ac_save_CC $ac_arg"
3641   if ac_fn_c_try_compile "$LINENO"; then :
3642   ac_cv_prog_cc_c89=$ac_arg
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext
3645   test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 done
3647 rm -f conftest.$ac_ext
3648 CC=$ac_save_CC
3649
3650 fi
3651 # AC_CACHE_VAL
3652 case "x$ac_cv_prog_cc_c89" in
3653   x)
3654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3655 $as_echo "none needed" >&6; } ;;
3656   xno)
3657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3658 $as_echo "unsupported" >&6; } ;;
3659   *)
3660     CC="$CC $ac_cv_prog_cc_c89"
3661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663 esac
3664 if test "x$ac_cv_prog_cc_c89" != xno; then :
3665
3666 fi
3667
3668 ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3677 if ${ac_cv_lib_dl_dlopen+:} false; then :
3678   $as_echo_n "(cached) " >&6
3679 else
3680   ac_check_lib_save_LIBS=$LIBS
3681 LIBS="-ldl  $LIBS"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h.  */
3684
3685 /* Override any GCC internal prototype to avoid an error.
3686    Use char because int might match the return type of a GCC
3687    builtin and then its argument prototype would still apply.  */
3688 #ifdef __cplusplus
3689 extern "C"
3690 #endif
3691 char dlopen ();
3692 int
3693 main ()
3694 {
3695 return dlopen ();
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_link "$LINENO"; then :
3701   ac_cv_lib_dl_dlopen=yes
3702 else
3703   ac_cv_lib_dl_dlopen=no
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext \
3706     conftest$ac_exeext conftest.$ac_ext
3707 LIBS=$ac_check_lib_save_LIBS
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3712   DLOPEN_LIB=-ldl
3713
3714 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3715
3716 fi
3717
3718
3719
3720 # Check whether --with-cc was given.
3721 if test "${with_cc+set}" = set; then :
3722   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3723 fi
3724
3725
3726 # Check whether --with-ccopts was given.
3727 if test "${with_ccopts+set}" = set; then :
3728   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3729 fi
3730
3731
3732 # Check whether --with-ldopts was given.
3733 if test "${with_ldopts+set}" = set; then :
3734   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$CC"; then
3751   ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 fi
3781 if test -z "$ac_cv_prog_CC"; then
3782   ac_ct_CC=$CC
3783   # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if test -n "$ac_ct_CC"; then
3791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_exec_ext in '' $ac_executable_extensions; do
3799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800     ac_cv_prog_ac_ct_CC="gcc"
3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805   done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819   if test "x$ac_ct_CC" = x; then
3820     CC=""
3821   else
3822     case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828     CC=$ac_ct_CC
3829   fi
3830 else
3831   CC="$ac_cv_prog_CC"
3832 fi
3833
3834 if test -z "$CC"; then
3835           if test -n "$ac_tool_prefix"; then
3836     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   if test -n "$CC"; then
3844   ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_CC="${ac_tool_prefix}cc"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873   fi
3874 fi
3875 if test -z "$CC"; then
3876   # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -n "$CC"; then
3884   ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886   ac_prog_rejected=no
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892     for ac_exec_ext in '' $ac_executable_extensions; do
3893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895        ac_prog_rejected=yes
3896        continue
3897      fi
3898     ac_cv_prog_CC="cc"
3899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 if test $ac_prog_rejected = yes; then
3907   # We found a bogon in the path, so make sure we never use it.
3908   set dummy $ac_cv_prog_CC
3909   shift
3910   if test $# != 0; then
3911     # We chose a different compiler from the bogus one.
3912     # However, it has the same basename, so the bogon will be chosen
3913     # first if we set CC to just the basename; use the full file name.
3914     shift
3915     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3916   fi
3917 fi
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 fi
3931 if test -z "$CC"; then
3932   if test -n "$ac_tool_prefix"; then
3933   for ac_prog in cl.exe
3934   do
3935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -n "$CC"; then
3943   ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957   done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972     test -n "$CC" && break
3973   done
3974 fi
3975 if test -z "$CC"; then
3976   ac_ct_CC=$CC
3977   for ac_prog in cl.exe
3978 do
3979   # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -n "$ac_ct_CC"; then
3987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994     for ac_exec_ext in '' $ac_executable_extensions; do
3995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_ac_ct_CC="$ac_prog"
3997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001   done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4010 else
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016   test -n "$ac_ct_CC" && break
4017 done
4018
4019   if test "x$ac_ct_CC" = x; then
4020     CC=""
4021   else
4022     case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028     CC=$ac_ct_CC
4029   fi
4030 fi
4031
4032 fi
4033
4034
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error $? "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details" "$LINENO" 5; }
4039
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4042 set X $ac_compile
4043 ac_compiler=$2
4044 for ac_option in --version -v -V -qversion; do
4045   { { ac_try="$ac_compiler $ac_option >&5"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053   ac_status=$?
4054   if test -s conftest.err; then
4055     sed '10a\
4056 ... rest of stderr output deleted ...
4057          10q' conftest.err >conftest.er1
4058     cat conftest.er1 >&5
4059   fi
4060   rm -f conftest.er1 conftest.err
4061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062   test $ac_status = 0; }
4063 done
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if ${ac_cv_c_compiler_gnu+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h.  */
4072
4073 int
4074 main ()
4075 {
4076 #ifndef __GNUC__
4077        choke me
4078 #endif
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085   ac_compiler_gnu=yes
4086 else
4087   ac_compiler_gnu=no
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096   GCC=yes
4097 else
4098   GCC=
4099 fi
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if ${ac_cv_prog_cc_g+:} false; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   ac_save_c_werror_flag=$ac_c_werror_flag
4108    ac_c_werror_flag=yes
4109    ac_cv_prog_cc_g=no
4110    CFLAGS="-g"
4111    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123   ac_cv_prog_cc_g=yes
4124 else
4125   CFLAGS=""
4126       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138
4139 else
4140   ac_c_werror_flag=$ac_save_c_werror_flag
4141          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161    ac_c_werror_flag=$ac_save_c_werror_flag
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166   CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168   if test "$GCC" = yes; then
4169     CFLAGS="-g -O2"
4170   else
4171     CFLAGS="-g"
4172   fi
4173 else
4174   if test "$GCC" = yes; then
4175     CFLAGS="-O2"
4176   else
4177     CFLAGS=
4178   fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if ${ac_cv_prog_cc_c89+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h.  */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 struct stat;
4192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4193 struct buf { int x; };
4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195 static char *e (p, i)
4196      char **p;
4197      int i;
4198 {
4199   return p[i];
4200 }
4201 static char *f (char * (*g) (char **, int), char **p, ...)
4202 {
4203   char *s;
4204   va_list v;
4205   va_start (v,p);
4206   s = g (p, va_arg (v,int));
4207   va_end (v);
4208   return s;
4209 }
4210
4211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4212    function prototypes and stuff, but not '\xHH' hex character constants.
4213    These don't provoke an error unfortunately, instead are silently treated
4214    as 'x'.  The following induces an error, until -std is added to get
4215    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4216    array size at least.  It's necessary to write '\x00'==0 to get something
4217    that's true only with -std.  */
4218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4219
4220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221    inside strings and character constants.  */
4222 #define FOO(x) 'x'
4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224
4225 int test (int i, double x);
4226 struct s1 {int (*f) (int a);};
4227 struct s2 {int (*f) (double a);};
4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229 int argc;
4230 char **argv;
4231 int
4232 main ()
4233 {
4234 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241 do
4242   CC="$ac_save_CC $ac_arg"
4243   if ac_fn_c_try_compile "$LINENO"; then :
4244   ac_cv_prog_cc_c89=$ac_arg
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext
4247   test "x$ac_cv_prog_cc_c89" != "xno" && break
4248 done
4249 rm -f conftest.$ac_ext
4250 CC=$ac_save_CC
4251
4252 fi
4253 # AC_CACHE_VAL
4254 case "x$ac_cv_prog_cc_c89" in
4255   x)
4256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 $as_echo "none needed" >&6; } ;;
4258   xno)
4259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 $as_echo "unsupported" >&6; } ;;
4261   *)
4262     CC="$CC $ac_cv_prog_cc_c89"
4263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4265 esac
4266 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267
4268 fi
4269
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276 if test "$GCC" = yes; then
4277    RDYNAMIC="-rdynamic"
4278
4279 fi
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4287 # On Suns, sometimes $CPP names a directory.
4288 if test -n "$CPP" && test -d "$CPP"; then
4289   CPP=
4290 fi
4291 if test -z "$CPP"; then
4292   if ${ac_cv_prog_CPP+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295       # Double quotes because CPP needs to be expanded
4296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4297     do
4298       ac_preproc_ok=false
4299 for ac_c_preproc_warn_flag in '' yes
4300 do
4301   # Use a header file that comes with gcc, so configuring glibc
4302   # with a fresh cross-compiler works.
4303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304   # <limits.h> exists even on freestanding compilers.
4305   # On the NeXT, cc -E runs the code through the compiler's parser,
4306   # not just through cpp. "Syntax error" is here to catch this case.
4307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h.  */
4309 #ifdef __STDC__
4310 # include <limits.h>
4311 #else
4312 # include <assert.h>
4313 #endif
4314                      Syntax error
4315 _ACEOF
4316 if ac_fn_c_try_cpp "$LINENO"; then :
4317
4318 else
4319   # Broken: fails on valid input.
4320 continue
4321 fi
4322 rm -f conftest.err conftest.i conftest.$ac_ext
4323
4324   # OK, works on sane cases.  Now check whether nonexistent headers
4325   # can be detected and how.
4326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h.  */
4328 #include <ac_nonexistent.h>
4329 _ACEOF
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4331   # Broken: success on invalid input.
4332 continue
4333 else
4334   # Passes both tests.
4335 ac_preproc_ok=:
4336 break
4337 fi
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4339
4340 done
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.i conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then :
4344   break
4345 fi
4346
4347     done
4348     ac_cv_prog_CPP=$CPP
4349
4350 fi
4351   CPP=$ac_cv_prog_CPP
4352 else
4353   ac_cv_prog_CPP=$CPP
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4356 $as_echo "$CPP" >&6; }
4357 ac_preproc_ok=false
4358 for ac_c_preproc_warn_flag in '' yes
4359 do
4360   # Use a header file that comes with gcc, so configuring glibc
4361   # with a fresh cross-compiler works.
4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363   # <limits.h> exists even on freestanding compilers.
4364   # On the NeXT, cc -E runs the code through the compiler's parser,
4365   # not just through cpp. "Syntax error" is here to catch this case.
4366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368 #ifdef __STDC__
4369 # include <limits.h>
4370 #else
4371 # include <assert.h>
4372 #endif
4373                      Syntax error
4374 _ACEOF
4375 if ac_fn_c_try_cpp "$LINENO"; then :
4376
4377 else
4378   # Broken: fails on valid input.
4379 continue
4380 fi
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4382
4383   # OK, works on sane cases.  Now check whether nonexistent headers
4384   # can be detected and how.
4385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h.  */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4390   # Broken: success on invalid input.
4391 continue
4392 else
4393   # Passes both tests.
4394 ac_preproc_ok=:
4395 break
4396 fi
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4398
4399 done
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.i conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then :
4403
4404 else
4405   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4408 See \`config.log' for more details" "$LINENO" 5; }
4409 fi
4410
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4418 $as_echo_n "checking for additional special compiler flags... " >&6; }
4419 if test "$GCC" = yes
4420 then
4421     case "$host_cpu" in
4422         alpha)          addcflags="-mieee" ;;
4423     esac
4424 fi
4425 if test "x$addcflags" != x
4426 then
4427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4428 $as_echo "$addcflags" >&6; }
4429     CFLAGS="$addcflags $CFLAGS"
4430 else
4431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4432 $as_echo "(none)" >&6; }
4433 fi
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437 if ${ac_cv_path_GREP+:} false; then :
4438   $as_echo_n "(cached) " >&6
4439 else
4440   if test -z "$GREP"; then
4441   ac_path_GREP_found=false
4442   # Loop through the user's path and test for each of PROGNAME-LIST
4443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448     for ac_prog in grep ggrep; do
4449     for ac_exec_ext in '' $ac_executable_extensions; do
4450       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451       as_fn_executable_p "$ac_path_GREP" || continue
4452 # Check for GNU ac_path_GREP and select it if it is found.
4453   # Check for GNU $ac_path_GREP
4454 case `"$ac_path_GREP" --version 2>&1` in
4455 *GNU*)
4456   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4457 *)
4458   ac_count=0
4459   $as_echo_n 0123456789 >"conftest.in"
4460   while :
4461   do
4462     cat "conftest.in" "conftest.in" >"conftest.tmp"
4463     mv "conftest.tmp" "conftest.in"
4464     cp "conftest.in" "conftest.nl"
4465     $as_echo 'GREP' >> "conftest.nl"
4466     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468     as_fn_arith $ac_count + 1 && ac_count=$as_val
4469     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470       # Best one so far, save it but keep looking for a better one
4471       ac_cv_path_GREP="$ac_path_GREP"
4472       ac_path_GREP_max=$ac_count
4473     fi
4474     # 10*(2^10) chars as input seems more than enough
4475     test $ac_count -gt 10 && break
4476   done
4477   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478 esac
4479
4480       $ac_path_GREP_found && break 3
4481     done
4482   done
4483   done
4484 IFS=$as_save_IFS
4485   if test -z "$ac_cv_path_GREP"; then
4486     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4487   fi
4488 else
4489   ac_cv_path_GREP=$GREP
4490 fi
4491
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494 $as_echo "$ac_cv_path_GREP" >&6; }
4495  GREP="$ac_cv_path_GREP"
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499 $as_echo_n "checking for egrep... " >&6; }
4500 if ${ac_cv_path_EGREP+:} false; then :
4501   $as_echo_n "(cached) " >&6
4502 else
4503   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504    then ac_cv_path_EGREP="$GREP -E"
4505    else
4506      if test -z "$EGREP"; then
4507   ac_path_EGREP_found=false
4508   # Loop through the user's path and test for each of PROGNAME-LIST
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514     for ac_prog in egrep; do
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517       as_fn_executable_p "$ac_path_EGREP" || continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519   # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4521 *GNU*)
4522   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4523 *)
4524   ac_count=0
4525   $as_echo_n 0123456789 >"conftest.in"
4526   while :
4527   do
4528     cat "conftest.in" "conftest.in" >"conftest.tmp"
4529     mv "conftest.tmp" "conftest.in"
4530     cp "conftest.in" "conftest.nl"
4531     $as_echo 'EGREP' >> "conftest.nl"
4532     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534     as_fn_arith $ac_count + 1 && ac_count=$as_val
4535     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536       # Best one so far, save it but keep looking for a better one
4537       ac_cv_path_EGREP="$ac_path_EGREP"
4538       ac_path_EGREP_max=$ac_count
4539     fi
4540     # 10*(2^10) chars as input seems more than enough
4541     test $ac_count -gt 10 && break
4542   done
4543   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546       $ac_path_EGREP_found && break 3
4547     done
4548   done
4549   done
4550 IFS=$as_save_IFS
4551   if test -z "$ac_cv_path_EGREP"; then
4552     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553   fi
4554 else
4555   ac_cv_path_EGREP=$EGREP
4556 fi
4557
4558    fi
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561 $as_echo "$ac_cv_path_EGREP" >&6; }
4562  EGREP="$ac_cv_path_EGREP"
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566 $as_echo_n "checking for ANSI C header files... " >&6; }
4567 if ${ac_cv_header_stdc+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h.  */
4572 #include <stdlib.h>
4573 #include <stdarg.h>
4574 #include <string.h>
4575 #include <float.h>
4576
4577 int
4578 main ()
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586   ac_cv_header_stdc=yes
4587 else
4588   ac_cv_header_stdc=no
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591
4592 if test $ac_cv_header_stdc = yes; then
4593   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h.  */
4596 #include <string.h>
4597
4598 _ACEOF
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600   $EGREP "memchr" >/dev/null 2>&1; then :
4601
4602 else
4603   ac_cv_header_stdc=no
4604 fi
4605 rm -f conftest*
4606
4607 fi
4608
4609 if test $ac_cv_header_stdc = yes; then
4610   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h.  */
4613 #include <stdlib.h>
4614
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617   $EGREP "free" >/dev/null 2>&1; then :
4618
4619 else
4620   ac_cv_header_stdc=no
4621 fi
4622 rm -f conftest*
4623
4624 fi
4625
4626 if test $ac_cv_header_stdc = yes; then
4627   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628   if test "$cross_compiling" = yes; then :
4629   :
4630 else
4631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h.  */
4633 #include <ctype.h>
4634 #include <stdlib.h>
4635 #if ((' ' & 0x0FF) == 0x020)
4636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638 #else
4639 # define ISLOWER(c) \
4640                    (('a' <= (c) && (c) <= 'i') \
4641                      || ('j' <= (c) && (c) <= 'r') \
4642                      || ('s' <= (c) && (c) <= 'z'))
4643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644 #endif
4645
4646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647 int
4648 main ()
4649 {
4650   int i;
4651   for (i = 0; i < 256; i++)
4652     if (XOR (islower (i), ISLOWER (i))
4653         || toupper (i) != TOUPPER (i))
4654       return 2;
4655   return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_run "$LINENO"; then :
4659
4660 else
4661   ac_cv_header_stdc=no
4662 fi
4663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664   conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 fi
4666
4667 fi
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670 $as_echo "$ac_cv_header_stdc" >&6; }
4671 if test $ac_cv_header_stdc = yes; then
4672
4673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4674
4675 fi
4676
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679                   inttypes.h stdint.h unistd.h
4680 do :
4681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4683 "
4684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4685   cat >>confdefs.h <<_ACEOF
4686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 _ACEOF
4688
4689 fi
4690
4691 done
4692
4693
4694
4695   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4696 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4697   MINIX=yes
4698 else
4699   MINIX=
4700 fi
4701
4702
4703   if test "$MINIX" = yes; then
4704
4705 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4706
4707
4708 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4709
4710
4711 $as_echo "#define _MINIX 1" >>confdefs.h
4712
4713   fi
4714
4715
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4717 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4718 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 #         define __EXTENSIONS__ 1
4725           $ac_includes_default
4726 int
4727 main ()
4728 {
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735   ac_cv_safe_to_define___extensions__=yes
4736 else
4737   ac_cv_safe_to_define___extensions__=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4742 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4743   test $ac_cv_safe_to_define___extensions__ = yes &&
4744     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4745
4746   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4747
4748   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4749
4750   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4751
4752   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4753
4754
4755 LIB_EXT=.a
4756 STATIC_LIB_EXT=.a
4757 PROFILED_LIB_EXT=.a
4758
4759 # Check whether --with-root-prefix was given.
4760 if test "${with_root_prefix+set}" = set; then :
4761   withval=$with_root_prefix; root_prefix=$withval
4762 else
4763   root_prefix=NONE
4764 fi
4765 # Check whether --enable-maintainer-mode was given.
4766 if test "${enable_maintainer_mode+set}" = set; then :
4767   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4768 then
4769         MAINTAINER_CMT=#
4770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4771 $as_echo "Disabling maintainer mode" >&6; }
4772 else
4773         MAINTAINER_CMT=
4774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4775 $as_echo "Enabling maintainer mode" >&6; }
4776 fi
4777
4778 else
4779   MAINTAINER_CMT=#
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4781 $as_echo "Disabling maintainer mode by default" >&6; }
4782
4783 fi
4784
4785
4786 # Check whether --enable-symlink-install was given.
4787 if test "${enable_symlink_install+set}" = set; then :
4788   enableval=$enable_symlink_install; if test "$enableval" = "no"
4789 then
4790         LINK_INSTALL_FLAGS=-f
4791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4792 $as_echo "Disabling symlinks for install" >&6; }
4793 else
4794         LINK_INSTALL_FLAGS=-sf
4795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4796 $as_echo "Enabling symlinks for install" >&6; }
4797 fi
4798
4799 else
4800   LINK_INSTALL_FLAGS=-f
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4802 $as_echo "Disabling symlinks for install by default" >&6; }
4803
4804 fi
4805
4806
4807 relative_symlink_defined=
4808 # Check whether --enable-relative-symlinks was given.
4809 if test "${enable_relative_symlinks+set}" = set; then :
4810   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4811 then
4812         SYMLINK_RELATIVE=
4813         relative_symlink_defined=yes
4814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4815 $as_echo "Disabling relative symlinks for install" >&6; }
4816 else
4817         SYMLINK_RELATIVE=--relative
4818         relative_symlink_defined=yes
4819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4820 $as_echo "Enabling relative symlinks for install" >&6; }
4821 fi
4822 fi
4823
4824 # Check whether --enable-symlink-relative-symlinks was given.
4825 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4826   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4827 then
4828         SYMLINK_RELATIVE=yes
4829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4830 $as_echo "Disabling relative symlinks for install" >&6; }
4831 else
4832         SYMLINK_RELATIVE=--relative
4833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834 $as_echo "Enabling relative symlinks for install" >&6; }
4835 fi
4836
4837 else
4838   if test -z "$relative_symlink_defined"
4839 then
4840         SYMLINK_RELATIVE=
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4842 $as_echo "Disabling relative symlinks for install by default" >&6; }
4843 fi
4844
4845 fi
4846
4847
4848 # Check whether --enable-symlink-build was given.
4849 if test "${enable_symlink_build+set}" = set; then :
4850   enableval=$enable_symlink_build; if test "$enableval" = "no"
4851 then
4852         LINK_BUILD_FLAGS=
4853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4854 $as_echo "Disabling symlinks for build" >&6; }
4855 else
4856         LINK_BUILD_FLAGS=-s
4857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4858 $as_echo "Enabling symlinks for build" >&6; }
4859 fi
4860
4861 else
4862   LINK_BUILD_FLAGS=
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4864 $as_echo "Disabling symlinks for build by default" >&6; }
4865
4866 fi
4867
4868
4869 # Check whether --enable-verbose-makecmds was given.
4870 if test "${enable_verbose_makecmds+set}" = set; then :
4871   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4872 then
4873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4874 $as_echo "Disabling verbose make commands" >&6; }
4875         E=@echo
4876         ES=echo
4877         Q=@
4878 else
4879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4880 $as_echo "Enabling verbose make commands" >&6; }
4881         E=@\\#
4882         ES=\\#
4883         Q=
4884 fi
4885
4886 else
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4888 $as_echo "Disabling verbose make commands" >&6; }
4889 E=@echo
4890 ES=echo
4891 Q=@
4892
4893 fi
4894
4895
4896
4897
4898 # Check whether --enable-compression was given.
4899 if test "${enable_compression+set}" = set; then :
4900   enableval=$enable_compression; if test "$enableval" = "no"
4901 then
4902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4903 $as_echo "Disabling compression support" >&6; }
4904 else
4905
4906 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4907
4908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4909 $as_echo "Enabling compression support" >&6; }
4910         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4911 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4912 fi
4913
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4916 $as_echo "Disabling compression support by default" >&6; }
4917
4918 fi
4919
4920
4921 # Check whether --enable-htree was given.
4922 if test "${enable_htree+set}" = set; then :
4923   enableval=$enable_htree; if test "$enableval" = "no"
4924 then
4925         HTREE_CMT=#
4926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4927 $as_echo "Disabling htree directory support" >&6; }
4928 else
4929         HTREE_CMT=
4930         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4931
4932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4933 $as_echo "Enabling htree directory support" >&6; }
4934 fi
4935
4936 else
4937   HTREE_CMT=
4938 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4941 $as_echo "Enabling htree directory support by default" >&6; }
4942
4943 fi
4944
4945
4946 E2_PKG_CONFIG_STATIC=--static
4947 LDFLAG_DYNAMIC=
4948 PRIVATE_LIBS_CMT=
4949 # Check whether --enable-elf-shlibs was given.
4950 if test "${enable_elf_shlibs+set}" = set; then :
4951   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4952 then
4953         ELF_CMT=#
4954         MAKEFILE_ELF=/dev/null
4955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4956 $as_echo "Disabling ELF shared libraries" >&6; }
4957 else
4958         E2_PKG_CONFIG_STATIC=
4959         ELF_CMT=
4960         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4961         case "$host_os" in
4962         solaris2.*)
4963                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4964         ;;
4965         esac
4966         BINARY_TYPE=elfbin
4967         LIB_EXT=.so
4968         PRIVATE_LIBS_CMT=#
4969         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4971 $as_echo "Enabling ELF shared libraries" >&6; }
4972 fi
4973
4974 else
4975   MAKEFILE_ELF=/dev/null
4976 ELF_CMT=#
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4978 $as_echo "Disabling ELF shared libraries by default" >&6; }
4979
4980 fi
4981
4982
4983
4984 # Check whether --enable-bsd-shlibs was given.
4985 if test "${enable_bsd_shlibs+set}" = set; then :
4986   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4987 then
4988         BSDLIB_CMT=#
4989         MAKEFILE_BSDLIB=/dev/null
4990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4991 $as_echo "Disabling BSD shared libraries" >&6; }
4992 else
4993         E2_PKG_CONFIG_STATIC=
4994         BSDLIB_CMT=
4995         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4996         LIB_EXT=.so
4997         case "$host_os" in
4998         darwin*)
4999                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5000                 LIB_EXT=.dylib
5001         ;;
5002         esac
5003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5004 $as_echo "Enabling BSD shared libraries" >&6; }
5005 fi
5006
5007 else
5008   MAKEFILE_BSDLIB=/dev/null
5009 BSDLIB_CMT=#
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5011 $as_echo "Disabling BSD shared libraries by default" >&6; }
5012
5013 fi
5014
5015
5016
5017 # Check whether --enable-profile was given.
5018 if test "${enable_profile+set}" = set; then :
5019   enableval=$enable_profile; if test "$enableval" = "no"
5020 then
5021         PROFILE_CMT=#
5022         MAKEFILE_PROFILE=/dev/null
5023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5024 $as_echo "Disabling profiling libraries" >&6; }
5025 else
5026         PROFILE_CMT=
5027         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5028         PROFILED_LIB_EXT=_p.a
5029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5030 $as_echo "Building profiling libraries" >&6; }
5031 fi
5032
5033 else
5034   PROFILE_CMT=#
5035 MAKEFILE_PROFILE=/dev/null
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5037 $as_echo "Disabling profiling libraries by default" >&6; }
5038
5039 fi
5040
5041
5042
5043 # Check whether --enable-gcov was given.
5044 if test "${enable_gcov+set}" = set; then :
5045   enableval=$enable_gcov; if test "$enableval" = "yes"
5046 then
5047         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5048         LDFLAGS="-fprofile-arcs -ftest-coverage"
5049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5050 $as_echo "Enabling gcov support" >&6; }
5051 fi
5052
5053 fi
5054
5055
5056
5057
5058
5059
5060
5061 # Check whether --enable-jbd-debug was given.
5062 if test "${enable_jbd_debug+set}" = set; then :
5063   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5064 then
5065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5066 $as_echo "Disabling journal debugging" >&6; }
5067 else
5068
5069 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5070
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5072 $as_echo "Enabling journal debugging" >&6; }
5073 fi
5074
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5077 $as_echo "Disabling journal debugging by default" >&6; }
5078
5079 fi
5080
5081 # Check whether --enable-blkid-debug was given.
5082 if test "${enable_blkid_debug+set}" = set; then :
5083   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5084 then
5085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5086 $as_echo "Disabling blkid debugging" >&6; }
5087 else
5088
5089 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5090
5091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5092 $as_echo "Enabling blkid debugging" >&6; }
5093 fi
5094
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5097 $as_echo "Disabling blkid debugging by default" >&6; }
5098
5099 fi
5100
5101 # Check whether --enable-testio-debug was given.
5102 if test "${enable_testio_debug+set}" = set; then :
5103   enableval=$enable_testio_debug;
5104 if test "$enableval" = "no"
5105 then
5106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5107 $as_echo "Disabling testio debugging" >&6; }
5108         TEST_IO_CMT="#"
5109 else
5110         TEST_IO_CMT=
5111         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5112
5113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5114 $as_echo "Enabling testio debugging" >&6; }
5115 fi
5116
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5119 $as_echo "Enabling testio debugging by default" >&6; }
5120 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5121
5122 TEST_IO_CMT=
5123
5124 fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5135         if test -n "$ac_tool_prefix"; then
5136   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   case $PKG_CONFIG in
5144   [\\/]* | ?:[\\/]*)
5145   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5146   ;;
5147   *)
5148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153     for ac_exec_ext in '' $ac_executable_extensions; do
5154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160   done
5161 IFS=$as_save_IFS
5162
5163   ;;
5164 esac
5165 fi
5166 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5167 if test -n "$PKG_CONFIG"; then
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5169 $as_echo "$PKG_CONFIG" >&6; }
5170 else
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176 fi
5177 if test -z "$ac_cv_path_PKG_CONFIG"; then
5178   ac_pt_PKG_CONFIG=$PKG_CONFIG
5179   # Extract the first word of "pkg-config", so it can be a program name with args.
5180 set dummy pkg-config; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   case $ac_pt_PKG_CONFIG in
5187   [\\/]* | ?:[\\/]*)
5188   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5189   ;;
5190   *)
5191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196     for ac_exec_ext in '' $ac_executable_extensions; do
5197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203   done
5204 IFS=$as_save_IFS
5205
5206   ;;
5207 esac
5208 fi
5209 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5210 if test -n "$ac_pt_PKG_CONFIG"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5212 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218   if test "x$ac_pt_PKG_CONFIG" = x; then
5219     PKG_CONFIG=""
5220   else
5221     case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227     PKG_CONFIG=$ac_pt_PKG_CONFIG
5228   fi
5229 else
5230   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5231 fi
5232
5233 fi
5234 if test -n "$PKG_CONFIG"; then
5235         _pkg_min_version=0.9.0
5236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5237 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5238         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5239                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5240 $as_echo "yes" >&6; }
5241         else
5242                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244                 PKG_CONFIG=""
5245         fi
5246 fi
5247 LIBUUID=
5248 DEPLIBUUID=
5249 STATIC_LIBUUID=
5250 DEPSTATIC_LIBUUID=
5251 PROFILED_LIBUUID=
5252 DEPPROFILED_LIBUUID=
5253 UUID_CMT=
5254 # Check whether --enable-libuuid was given.
5255 if test "${enable_libuuid+set}" = set; then :
5256   enableval=$enable_libuuid; if test "$enableval" = "no"
5257 then
5258         if test -z "$PKG_CONFIG"; then
5259                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5260         fi
5261
5262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5263 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5264 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   ac_check_lib_save_LIBS=$LIBS
5268 LIBS="-luuid  $LIBS"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h.  */
5271
5272 /* Override any GCC internal prototype to avoid an error.
5273    Use char because int might match the return type of a GCC
5274    builtin and then its argument prototype would still apply.  */
5275 #ifdef __cplusplus
5276 extern "C"
5277 #endif
5278 char uuid_generate ();
5279 int
5280 main ()
5281 {
5282 return uuid_generate ();
5283   ;
5284   return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_c_try_link "$LINENO"; then :
5288   ac_cv_lib_uuid_uuid_generate=yes
5289 else
5290   ac_cv_lib_uuid_uuid_generate=no
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext \
5293     conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5297 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5298 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5299   LIBUUID=`$PKG_CONFIG --libs uuid`;
5300                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5301 else
5302   as_fn_error $? "external uuid library not found" "$LINENO" 5
5303 fi
5304
5305         PROFILED_LIBUUID=$LIBUUID
5306         UUID_CMT=#
5307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5308 $as_echo "Disabling private uuid library" >&6; }
5309 else
5310         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5311         DEPLIBUUID=$LIBUUID
5312         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5313         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5314         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5315         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5317 $as_echo "Enabling private uuid library" >&6; }
5318 fi
5319
5320 else
5321   LIBUUID='$(LIB)/libuuid'$LIB_EXT
5322 DEPLIBUUID=$LIBUUID
5323 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5324 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5325 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5326 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5328 $as_echo "Enabling private uuid library by default" >&6; }
5329
5330 fi
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5347         if test -n "$ac_tool_prefix"; then
5348   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   case $PKG_CONFIG in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375   ;;
5376 esac
5377 fi
5378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5379 if test -n "$PKG_CONFIG"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5381 $as_echo "$PKG_CONFIG" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388 fi
5389 if test -z "$ac_cv_path_PKG_CONFIG"; then
5390   ac_pt_PKG_CONFIG=$PKG_CONFIG
5391   # Extract the first word of "pkg-config", so it can be a program name with args.
5392 set dummy pkg-config; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   case $ac_pt_PKG_CONFIG in
5399   [\\/]* | ?:[\\/]*)
5400   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5401   ;;
5402   *)
5403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418   ;;
5419 esac
5420 fi
5421 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5422 if test -n "$ac_pt_PKG_CONFIG"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5424 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430   if test "x$ac_pt_PKG_CONFIG" = x; then
5431     PKG_CONFIG=""
5432   else
5433     case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439     PKG_CONFIG=$ac_pt_PKG_CONFIG
5440   fi
5441 else
5442   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5443 fi
5444
5445 fi
5446 if test -n "$PKG_CONFIG"; then
5447         _pkg_min_version=0.9.0
5448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5449 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5450         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5453         else
5454                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456                 PKG_CONFIG=""
5457         fi
5458 fi
5459 LIBBLKID=
5460 DEPLIBBLKID=
5461 STATIC_LIBBLKID=
5462 DEPSTATIC_LIBBLKID=
5463 PROFILED_LIBBLKID=
5464 DEPPROFILED_LIBBLKID=
5465 BLKID_CMT=
5466
5467 # Check whether --enable-libblkid was given.
5468 if test "${enable_libblkid+set}" = set; then :
5469   enableval=$enable_libblkid; if test "$enableval" = "no"
5470 then
5471         if test -z "$PKG_CONFIG"; then
5472                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5473         fi
5474
5475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5476 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5477 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   ac_check_lib_save_LIBS=$LIBS
5481 LIBS="-lblkid -luuid $LIBS"
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h.  */
5484
5485 /* Override any GCC internal prototype to avoid an error.
5486    Use char because int might match the return type of a GCC
5487    builtin and then its argument prototype would still apply.  */
5488 #ifdef __cplusplus
5489 extern "C"
5490 #endif
5491 char blkid_get_cache ();
5492 int
5493 main ()
5494 {
5495 return blkid_get_cache ();
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 if ac_fn_c_try_link "$LINENO"; then :
5501   ac_cv_lib_blkid_blkid_get_cache=yes
5502 else
5503   ac_cv_lib_blkid_blkid_get_cache=no
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext \
5506     conftest$ac_exeext conftest.$ac_ext
5507 LIBS=$ac_check_lib_save_LIBS
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5510 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5511 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5512   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5513                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5514 else
5515   as_fn_error $? "external blkid library not found" "$LINENO" 5
5516 fi
5517
5518         BLKID_CMT=#
5519         PROFILED_LIBBLKID=$LIBBLKID
5520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5521 $as_echo "Disabling private blkid library" >&6; }
5522 else
5523         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5524         DEPLIBBLKID=$LIBBLKID
5525         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5526         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5527         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5528         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5529         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5530
5531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5532 $as_echo "Enabling private blkid library" >&6; }
5533 fi
5534
5535 else
5536   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5537 DEPLIBBLKID=$LIBBLKID
5538 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5539 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5540 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5541 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5542 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5543
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5545 $as_echo "Enabling private blkid library by default" >&6; }
5546
5547 fi
5548
5549
5550
5551
5552
5553
5554
5555
5556 QUOTA_MAN_COMMENT='.\"'
5557 QUOTA_CMT=
5558
5559
5560
5561
5562
5563
5564
5565
5566 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5567         if test -n "$ac_tool_prefix"; then
5568   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   case $PKG_CONFIG in
5576   [\\/]* | ?:[\\/]*)
5577   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5578   ;;
5579   *)
5580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595   ;;
5596 esac
5597 fi
5598 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5599 if test -n "$PKG_CONFIG"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5601 $as_echo "$PKG_CONFIG" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 fi
5609 if test -z "$ac_cv_path_PKG_CONFIG"; then
5610   ac_pt_PKG_CONFIG=$PKG_CONFIG
5611   # Extract the first word of "pkg-config", so it can be a program name with args.
5612 set dummy pkg-config; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   case $ac_pt_PKG_CONFIG in
5619   [\\/]* | ?:[\\/]*)
5620   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5621   ;;
5622   *)
5623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628     for ac_exec_ext in '' $ac_executable_extensions; do
5629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632     break 2
5633   fi
5634 done
5635   done
5636 IFS=$as_save_IFS
5637
5638   ;;
5639 esac
5640 fi
5641 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5642 if test -n "$ac_pt_PKG_CONFIG"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5644 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650   if test "x$ac_pt_PKG_CONFIG" = x; then
5651     PKG_CONFIG=""
5652   else
5653     case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659     PKG_CONFIG=$ac_pt_PKG_CONFIG
5660   fi
5661 else
5662   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5663 fi
5664
5665 fi
5666 if test -n "$PKG_CONFIG"; then
5667         _pkg_min_version=0.9.0
5668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5669 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5670         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5671                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672 $as_echo "yes" >&6; }
5673         else
5674                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5676                 PKG_CONFIG=""
5677         fi
5678 fi
5679
5680 # Check whether --enable-quota was given.
5681 if test "${enable_quota+set}" = set; then :
5682   enableval=$enable_quota; if test "$enableval" = "no"
5683 then
5684         QUOTA_CMT=#
5685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5686 $as_echo "Disabling quota support" >&6; }
5687 else
5688         QUOTA_CMT=
5689         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5690
5691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5692 $as_echo "Enabling quota support" >&6; }
5693         QUOTA_MAN_COMMENT=""
5694
5695 fi
5696
5697 else
5698   QUOTA_CMT=#
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5700 $as_echo "Disabling quota support by default" >&6; }
5701
5702 fi
5703
5704 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5705 DEPLIBQUOTA=$LIBQUOTA
5706 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5707 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5708 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5709 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5710
5711
5712
5713
5714
5715
5716
5717
5718 # Check whether --enable-backtrace was given.
5719 if test "${enable_backtrace+set}" = set; then :
5720   enableval=$enable_backtrace; if test "$enableval" = "no"
5721 then
5722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5723 $as_echo "Disabling use of backtrace" >&6; }
5724         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5725
5726 else
5727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5728 $as_echo "Enabling use of backtrace" >&6; }
5729 fi
5730
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5733 $as_echo "Enabling use of backtrace by default" >&6; }
5734
5735 fi
5736
5737 # Check whether --enable-debugfs was given.
5738 if test "${enable_debugfs+set}" = set; then :
5739   enableval=$enable_debugfs; if test "$enableval" = "no"
5740 then
5741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5742 $as_echo "Disabling debugfs support" >&6; }
5743         DEBUGFS_CMT="#"
5744 else
5745         DEBUGFS_CMT=
5746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5747 $as_echo "Enabling debugfs support" >&6; }
5748 fi
5749
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5752 $as_echo "Enabling debugfs support by default" >&6; }
5753 DEBUGFS_CMT=
5754
5755 fi
5756
5757
5758 # Check whether --enable-imager was given.
5759 if test "${enable_imager+set}" = set; then :
5760   enableval=$enable_imager; if test "$enableval" = "no"
5761 then
5762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5763 $as_echo "Disabling e2image support" >&6; }
5764         IMAGER_CMT="#"
5765 else
5766         IMAGER_CMT=
5767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5768 $as_echo "Enabling e2image support" >&6; }
5769 fi
5770
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5773 $as_echo "Enabling e2image support by default" >&6; }
5774 IMAGER_CMT=
5775
5776 fi
5777
5778
5779 # Check whether --enable-resizer was given.
5780 if test "${enable_resizer+set}" = set; then :
5781   enableval=$enable_resizer; if test "$enableval" = "no"
5782 then
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5784 $as_echo "Disabling e2resize support" >&6; }
5785         RESIZER_CMT="#"
5786 else
5787         RESIZER_CMT=
5788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5789 $as_echo "Enabling e2resize support" >&6; }
5790 fi
5791
5792 else
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5794 $as_echo "Enabling e2resize support by default" >&6; }
5795 RESIZER_CMT=
5796
5797 fi
5798
5799
5800 # Check whether --enable-defrag was given.
5801 if test "${enable_defrag+set}" = set; then :
5802   enableval=$enable_defrag; if test "$enableval" = "no"
5803 then
5804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5805 $as_echo "Disabling e4defrag support" >&6; }
5806         DEFRAG_CMT="#"
5807 else
5808         DEFRAG_CMT=
5809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5810 $as_echo "Enabling e4defrag support" >&6; }
5811 fi
5812
5813 else
5814   if test -z "$WITH_DIET_LIBC"
5815 then
5816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5817 $as_echo "Enabling e4defrag support by default" >&6; }
5818         DEFRAG_CMT=
5819 else
5820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5821 $as_echo "Disabling e4defrag support by default" >&6; }
5822         DEFRAG_CMT="#"
5823 fi
5824
5825 fi
5826
5827
5828 # Check whether --enable-fsck was given.
5829 if test "${enable_fsck+set}" = set; then :
5830   enableval=$enable_fsck; if test "$enableval" = "no"
5831 then
5832         FSCK_PROG='' FSCK_MAN=''
5833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5834 $as_echo "Not building fsck wrapper" >&6; }
5835 else
5836         FSCK_PROG=fsck FSCK_MAN=fsck.8
5837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5838 $as_echo "Building fsck wrapper" >&6; }
5839 fi
5840
5841 else
5842   case "$host_os" in
5843   gnu*)
5844     FSCK_PROG='' FSCK_MAN=''
5845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5846 $as_echo "Not building fsck wrapper by default" >&6; }
5847     ;;
5848   *)
5849     FSCK_PROG=fsck FSCK_MAN=fsck.8
5850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5851 $as_echo "Building fsck wrapper by default" >&6; }
5852 esac
5853
5854 fi
5855
5856
5857
5858 # Check whether --enable-e2initrd-helper was given.
5859 if test "${enable_e2initrd_helper+set}" = set; then :
5860   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5861 then
5862         E2INITRD_PROG='' E2INITRD_MAN=''
5863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5864 $as_echo "Not building e2initrd helper" >&6; }
5865 else
5866         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5868 $as_echo "Building e2initrd helper" >&6; }
5869 fi
5870
5871 else
5872   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5874 $as_echo "Building e2initrd helper by default" >&6; }
5875
5876 fi
5877
5878
5879
5880 # Check whether --enable-tls was given.
5881 if test "${enable_tls+set}" = set; then :
5882   enableval=$enable_tls; if test "$enableval" = "no"
5883 then
5884         try_tls=""
5885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5886 $as_echo "Disabling thread local support" >&6; }
5887 else
5888         try_tls="yes"
5889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5890 $as_echo "Enabling thread local support" >&6; }
5891 fi
5892
5893 else
5894   if test -n "$WITH_DIET_LIBC"
5895 then
5896         try_tls=""
5897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5898 $as_echo "Diet libc does not support thread local support" >&6; }
5899 else
5900         try_tls="yes"
5901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5902 $as_echo "Try using thread local support by default" >&6; }
5903 fi
5904
5905 fi
5906
5907 if test "$try_tls" = "yes"
5908 then
5909
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5911 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5912   if ${ac_cv_tls+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915
5916     ax_tls_keywords="__thread __declspec(thread) none"
5917     for ax_tls_keyword in $ax_tls_keywords; do
5918        case $ax_tls_keyword in
5919           none) ac_cv_tls=none ; break ;;
5920           *)
5921              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h.  */
5923 #include <stdlib.h>
5924                  static void
5925                  foo(void) {
5926                  static  $ax_tls_keyword  int bar;
5927                  exit(1);
5928                  }
5929 int
5930 main ()
5931 {
5932
5933   ;
5934   return 0;
5935 }
5936 _ACEOF
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938   ac_cv_tls=$ax_tls_keyword ; break
5939 else
5940   ac_cv_tls=none
5941
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944           esac
5945     done
5946
5947 fi
5948
5949
5950   if test "$ac_cv_tls" != "none"; then
5951
5952 cat >>confdefs.h <<_ACEOF
5953 #define TLS $ac_cv_tls
5954 _ACEOF
5955
5956   fi
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5958 $as_echo "$ac_cv_tls" >&6; }
5959
5960 fi
5961
5962 # Check whether --enable-uuidd was given.
5963 if test "${enable_uuidd+set}" = set; then :
5964   enableval=$enable_uuidd; if test "$enableval" = "no"
5965 then
5966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5967 $as_echo "Not building uuidd" >&6; }
5968         UUIDD_CMT="#"
5969 else
5970         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5971
5972         UUIDD_CMT=""
5973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5974 $as_echo "Building uuidd" >&6; }
5975 fi
5976
5977 else
5978   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5979
5980 if test -z "$UUID_CMT"
5981 then
5982         UUIDD_CMT=""
5983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5984 $as_echo "Building uuidd by default" >&6; }
5985 else
5986         UUIDD_CMT="#"
5987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5988 $as_echo "Disabling uuidd by default" >&6; }
5989 fi
5990
5991 fi
5992
5993
5994 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5995
5996 GETTEXT_PACKAGE=e2fsprogs
5997 PACKAGE=e2fsprogs
5998 VERSION="$E2FSPROGS_VERSION"
5999 VERSION=0.14.1
6000
6001 cat >>confdefs.h <<_ACEOF
6002 #define PACKAGE "$PACKAGE"
6003 _ACEOF
6004
6005
6006 cat >>confdefs.h <<_ACEOF
6007 #define VERSION "$VERSION"
6008 _ACEOF
6009
6010
6011
6012
6013
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6015 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6016 set x ${MAKE-make}
6017 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6018 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   cat >conftest.make <<\_ACEOF
6022 SHELL = /bin/sh
6023 all:
6024         @echo '@@@%%%=$(MAKE)=@@@%%%'
6025 _ACEOF
6026 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6028   *@@@%%%=?*=@@@%%%*)
6029     eval ac_cv_prog_make_${ac_make}_set=yes;;
6030   *)
6031     eval ac_cv_prog_make_${ac_make}_set=no;;
6032 esac
6033 rm -f conftest.make
6034 fi
6035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6038   SET_MAKE=
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042   SET_MAKE="MAKE=${MAKE-make}"
6043 fi
6044
6045 # Find a good install program.  We prefer a C program (faster),
6046 # so one script is as good as another.  But avoid the broken or
6047 # incompatible versions:
6048 # SysV /etc/install, /usr/sbin/install
6049 # SunOS /usr/etc/install
6050 # IRIX /sbin/install
6051 # AIX /bin/install
6052 # AmigaOS /C/install, which installs bootblocks on floppy discs
6053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6056 # OS/2's system install, which has a completely different semantic
6057 # ./install, which can be erroneously created by make from ./install.sh.
6058 # Reject install programs that cannot install multiple files.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6061 if test -z "$INSTALL"; then
6062 if ${ac_cv_path_install+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070     # Account for people who put trailing slashes in PATH elements.
6071 case $as_dir/ in #((
6072   ./ | .// | /[cC]/* | \
6073   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6074   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6075   /usr/ucb/* ) ;;
6076   *)
6077     # OSF1 and SCO ODT 3.0 have their own names for install.
6078     # Don't use installbsd from OSF since it installs stuff as root
6079     # by default.
6080     for ac_prog in ginstall scoinst install; do
6081       for ac_exec_ext in '' $ac_executable_extensions; do
6082         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6083           if test $ac_prog = install &&
6084             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6085             # AIX install.  It has an incompatible calling convention.
6086             :
6087           elif test $ac_prog = install &&
6088             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6089             # program-specific install script used by HP pwplus--don't use.
6090             :
6091           else
6092             rm -rf conftest.one conftest.two conftest.dir
6093             echo one > conftest.one
6094             echo two > conftest.two
6095             mkdir conftest.dir
6096             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6097               test -s conftest.one && test -s conftest.two &&
6098               test -s conftest.dir/conftest.one &&
6099               test -s conftest.dir/conftest.two
6100             then
6101               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6102               break 3
6103             fi
6104           fi
6105         fi
6106       done
6107     done
6108     ;;
6109 esac
6110
6111   done
6112 IFS=$as_save_IFS
6113
6114 rm -rf conftest.one conftest.two conftest.dir
6115
6116 fi
6117   if test "${ac_cv_path_install+set}" = set; then
6118     INSTALL=$ac_cv_path_install
6119   else
6120     # As a last resort, use the slow shell script.  Don't cache a
6121     # value for INSTALL within a source directory, because that will
6122     # break other packages using the cache if that directory is
6123     # removed, or if the value is a relative name.
6124     INSTALL=$ac_install_sh
6125   fi
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6128 $as_echo "$INSTALL" >&6; }
6129
6130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6131 # It thinks the first close brace ends the variable substitution.
6132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6133
6134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6135
6136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6139 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6140 if test -z "$MKDIR_P"; then
6141   if ${ac_cv_path_mkdir+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_prog in mkdir gmkdir; do
6150          for ac_exec_ext in '' $ac_executable_extensions; do
6151            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6152            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6153              'mkdir (GNU coreutils) '* | \
6154              'mkdir (coreutils) '* | \
6155              'mkdir (fileutils) '4.1*)
6156                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6157                break 3;;
6158            esac
6159          done
6160        done
6161   done
6162 IFS=$as_save_IFS
6163
6164 fi
6165
6166   test -d ./--version && rmdir ./--version
6167   if test "${ac_cv_path_mkdir+set}" = set; then
6168     MKDIR_P="$ac_cv_path_mkdir -p"
6169   else
6170     # As a last resort, use the slow shell script.  Don't cache a
6171     # value for MKDIR_P within a source directory, because that will
6172     # break other packages using the cache if that directory is
6173     # removed, or if the value is a relative name.
6174     MKDIR_P="$ac_install_sh -d"
6175   fi
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6178 $as_echo "$MKDIR_P" >&6; }
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6182 if ${ac_cv_path_SED+:} false; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6186      for ac_i in 1 2 3 4 5 6 7; do
6187        ac_script="$ac_script$as_nl$ac_script"
6188      done
6189      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6190      { ac_script=; unset ac_script;}
6191      if test -z "$SED"; then
6192   ac_path_SED_found=false
6193   # Loop through the user's path and test for each of PROGNAME-LIST
6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_prog in sed gsed; do
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6202       as_fn_executable_p "$ac_path_SED" || continue
6203 # Check for GNU ac_path_SED and select it if it is found.
6204   # Check for GNU $ac_path_SED
6205 case `"$ac_path_SED" --version 2>&1` in
6206 *GNU*)
6207   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6208 *)
6209   ac_count=0
6210   $as_echo_n 0123456789 >"conftest.in"
6211   while :
6212   do
6213     cat "conftest.in" "conftest.in" >"conftest.tmp"
6214     mv "conftest.tmp" "conftest.in"
6215     cp "conftest.in" "conftest.nl"
6216     $as_echo '' >> "conftest.nl"
6217     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219     as_fn_arith $ac_count + 1 && ac_count=$as_val
6220     if test $ac_count -gt ${ac_path_SED_max-0}; then
6221       # Best one so far, save it but keep looking for a better one
6222       ac_cv_path_SED="$ac_path_SED"
6223       ac_path_SED_max=$ac_count
6224     fi
6225     # 10*(2^10) chars as input seems more than enough
6226     test $ac_count -gt 10 && break
6227   done
6228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6229 esac
6230
6231       $ac_path_SED_found && break 3
6232     done
6233   done
6234   done
6235 IFS=$as_save_IFS
6236   if test -z "$ac_cv_path_SED"; then
6237     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6238   fi
6239 else
6240   ac_cv_path_SED=$SED
6241 fi
6242
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6245 $as_echo "$ac_cv_path_SED" >&6; }
6246  SED="$ac_cv_path_SED"
6247   rm -f conftest.sed
6248
6249
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6251 $as_echo_n "checking whether NLS is requested... " >&6; }
6252     # Check whether --enable-nls was given.
6253 if test "${enable_nls+set}" = set; then :
6254   enableval=$enable_nls; USE_NLS=$enableval
6255 else
6256   USE_NLS=yes
6257 fi
6258
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6260 $as_echo "$USE_NLS" >&6; }
6261
6262
6263
6264
6265       GETTEXT_MACRO_VERSION=0.18
6266
6267
6268
6269
6270 # Prepare PATH_SEPARATOR.
6271 # The user is always right.
6272 if test "${PATH_SEPARATOR+set}" != set; then
6273   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6274   # contains only /bin. Note that ksh looks also at the FPATH variable,
6275   # so we have to set that as well for the test.
6276   PATH_SEPARATOR=:
6277   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6278     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6279            || PATH_SEPARATOR=';'
6280        }
6281 fi
6282
6283 # Find out how to test for executable files. Don't use a zero-byte file,
6284 # as systems may use methods other than mode bits to determine executability.
6285 cat >conf$$.file <<_ASEOF
6286 #! /bin/sh
6287 exit 0
6288 _ASEOF
6289 chmod +x conf$$.file
6290 if test -x conf$$.file >/dev/null 2>&1; then
6291   ac_executable_p="test -x"
6292 else
6293   ac_executable_p="test -f"
6294 fi
6295 rm -f conf$$.file
6296
6297 # Extract the first word of "msgfmt", so it can be a program name with args.
6298 set dummy msgfmt; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_path_MSGFMT+:} false; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   case "$MSGFMT" in
6305   [\\/]* | ?:[\\/]*)
6306     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6307     ;;
6308   *)
6309     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6310     for ac_dir in $PATH; do
6311       IFS="$ac_save_IFS"
6312       test -z "$ac_dir" && ac_dir=.
6313       for ac_exec_ext in '' $ac_executable_extensions; do
6314         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6315           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6316           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6317      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6318             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6319             break 2
6320           fi
6321         fi
6322       done
6323     done
6324     IFS="$ac_save_IFS"
6325   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6326     ;;
6327 esac
6328 fi
6329 MSGFMT="$ac_cv_path_MSGFMT"
6330 if test "$MSGFMT" != ":"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6332 $as_echo "$MSGFMT" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6339 set dummy gmsgfmt; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_path_GMSGFMT+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   case $GMSGFMT in
6346   [\\/]* | ?:[\\/]*)
6347   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6348   ;;
6349   *)
6350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364
6365   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6366   ;;
6367 esac
6368 fi
6369 GMSGFMT=$ac_cv_path_GMSGFMT
6370 if test -n "$GMSGFMT"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6372 $as_echo "$GMSGFMT" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379
6380     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6381     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6382     *) MSGFMT_015=$MSGFMT ;;
6383   esac
6384
6385   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6386     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6387     *) GMSGFMT_015=$GMSGFMT ;;
6388   esac
6389
6390
6391
6392 # Prepare PATH_SEPARATOR.
6393 # The user is always right.
6394 if test "${PATH_SEPARATOR+set}" != set; then
6395   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6396   # contains only /bin. Note that ksh looks also at the FPATH variable,
6397   # so we have to set that as well for the test.
6398   PATH_SEPARATOR=:
6399   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6400     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6401            || PATH_SEPARATOR=';'
6402        }
6403 fi
6404
6405 # Find out how to test for executable files. Don't use a zero-byte file,
6406 # as systems may use methods other than mode bits to determine executability.
6407 cat >conf$$.file <<_ASEOF
6408 #! /bin/sh
6409 exit 0
6410 _ASEOF
6411 chmod +x conf$$.file
6412 if test -x conf$$.file >/dev/null 2>&1; then
6413   ac_executable_p="test -x"
6414 else
6415   ac_executable_p="test -f"
6416 fi
6417 rm -f conf$$.file
6418
6419 # Extract the first word of "xgettext", so it can be a program name with args.
6420 set dummy xgettext; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_path_XGETTEXT+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   case "$XGETTEXT" in
6427   [\\/]* | ?:[\\/]*)
6428     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6429     ;;
6430   *)
6431     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6432     for ac_dir in $PATH; do
6433       IFS="$ac_save_IFS"
6434       test -z "$ac_dir" && ac_dir=.
6435       for ac_exec_ext in '' $ac_executable_extensions; do
6436         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6437           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6438           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6439      (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
6440             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6441             break 2
6442           fi
6443         fi
6444       done
6445     done
6446     IFS="$ac_save_IFS"
6447   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6448     ;;
6449 esac
6450 fi
6451 XGETTEXT="$ac_cv_path_XGETTEXT"
6452 if test "$XGETTEXT" != ":"; then
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6454 $as_echo "$XGETTEXT" >&6; }
6455 else
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460     rm -f messages.po
6461
6462     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6463     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6464     *) XGETTEXT_015=$XGETTEXT ;;
6465   esac
6466
6467
6468
6469 # Prepare PATH_SEPARATOR.
6470 # The user is always right.
6471 if test "${PATH_SEPARATOR+set}" != set; then
6472   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6473   # contains only /bin. Note that ksh looks also at the FPATH variable,
6474   # so we have to set that as well for the test.
6475   PATH_SEPARATOR=:
6476   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6477     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6478            || PATH_SEPARATOR=';'
6479        }
6480 fi
6481
6482 # Find out how to test for executable files. Don't use a zero-byte file,
6483 # as systems may use methods other than mode bits to determine executability.
6484 cat >conf$$.file <<_ASEOF
6485 #! /bin/sh
6486 exit 0
6487 _ASEOF
6488 chmod +x conf$$.file
6489 if test -x conf$$.file >/dev/null 2>&1; then
6490   ac_executable_p="test -x"
6491 else
6492   ac_executable_p="test -f"
6493 fi
6494 rm -f conf$$.file
6495
6496 # Extract the first word of "msgmerge", so it can be a program name with args.
6497 set dummy msgmerge; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_path_MSGMERGE+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   case "$MSGMERGE" in
6504   [\\/]* | ?:[\\/]*)
6505     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6506     ;;
6507   *)
6508     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6509     for ac_dir in $PATH; do
6510       IFS="$ac_save_IFS"
6511       test -z "$ac_dir" && ac_dir=.
6512       for ac_exec_ext in '' $ac_executable_extensions; do
6513         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6514           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6515           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6516             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6517             break 2
6518           fi
6519         fi
6520       done
6521     done
6522     IFS="$ac_save_IFS"
6523   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6524     ;;
6525 esac
6526 fi
6527 MSGMERGE="$ac_cv_path_MSGMERGE"
6528 if test "$MSGMERGE" != ":"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6530 $as_echo "$MSGMERGE" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537         test -n "$localedir" || localedir='${datadir}/locale'
6538
6539
6540     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6541
6542
6543   ac_config_commands="$ac_config_commands po-directories"
6544
6545
6546
6547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6548 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6549 if ${ac_cv_gnu_library_2+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h.  */
6554
6555 #include <features.h>
6556 #ifdef __GNU_LIBRARY__
6557  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6558   Lucky GNU user
6559  #endif
6560 #endif
6561
6562 _ACEOF
6563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6564   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6565   ac_cv_gnu_library_2=yes
6566 else
6567   ac_cv_gnu_library_2=no
6568 fi
6569 rm -f conftest*
6570
6571
6572
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6575 $as_echo "$ac_cv_gnu_library_2" >&6; }
6576
6577     GLIBC2="$ac_cv_gnu_library_2"
6578
6579
6580 if test -n "$ac_tool_prefix"; then
6581   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_RANLIB+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$RANLIB"; then
6589   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 RANLIB=$ac_cv_prog_RANLIB
6609 if test -n "$RANLIB"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6611 $as_echo "$RANLIB" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618 fi
6619 if test -z "$ac_cv_prog_RANLIB"; then
6620   ac_ct_RANLIB=$RANLIB
6621   # Extract the first word of "ranlib", so it can be a program name with args.
6622 set dummy ranlib; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   if test -n "$ac_ct_RANLIB"; then
6629   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636     for ac_exec_ext in '' $ac_executable_extensions; do
6637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638     ac_cv_prog_ac_ct_RANLIB="ranlib"
6639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643   done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6649 if test -n "$ac_ct_RANLIB"; then
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6651 $as_echo "$ac_ct_RANLIB" >&6; }
6652 else
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655 fi
6656
6657   if test "x$ac_ct_RANLIB" = x; then
6658     RANLIB=":"
6659   else
6660     case $cross_compiling:$ac_tool_warned in
6661 yes:)
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6665 esac
6666     RANLIB=$ac_ct_RANLIB
6667   fi
6668 else
6669   RANLIB="$ac_cv_prog_RANLIB"
6670 fi
6671
6672
6673
6674   CFLAG_VISIBILITY=
6675   HAVE_VISIBILITY=0
6676   if test -n "$GCC"; then
6677                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6678 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6679     if ${gl_cv_cc_vis_werror+:} false; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682
6683       gl_save_CFLAGS="$CFLAGS"
6684       CFLAGS="$CFLAGS -Werror"
6685       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687
6688 int
6689 main ()
6690 {
6691
6692   ;
6693   return 0;
6694 }
6695 _ACEOF
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697   gl_cv_cc_vis_werror=yes
6698 else
6699   gl_cv_cc_vis_werror=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702       CFLAGS="$gl_save_CFLAGS"
6703 fi
6704
6705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6706 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6708 $as_echo_n "checking for simple visibility declarations... " >&6; }
6709     if ${gl_cv_cc_visibility+:} false; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712
6713       gl_save_CFLAGS="$CFLAGS"
6714       CFLAGS="$CFLAGS -fvisibility=hidden"
6715                                     if test $gl_cv_cc_vis_werror = yes; then
6716         CFLAGS="$CFLAGS -Werror"
6717       fi
6718       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h.  */
6720 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6721              extern __attribute__((__visibility__("default"))) int exportedvar;
6722              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6723              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6724              void dummyfunc (void) {}
6725
6726 int
6727 main ()
6728 {
6729
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735   gl_cv_cc_visibility=yes
6736 else
6737   gl_cv_cc_visibility=no
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740       CFLAGS="$gl_save_CFLAGS"
6741 fi
6742
6743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6744 $as_echo "$gl_cv_cc_visibility" >&6; }
6745     if test $gl_cv_cc_visibility = yes; then
6746       CFLAG_VISIBILITY="-fvisibility=hidden"
6747       HAVE_VISIBILITY=1
6748     fi
6749   fi
6750
6751
6752
6753 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6755 _ACEOF
6756
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6759 $as_echo_n "checking for inline... " >&6; }
6760 if ${ac_cv_c_inline+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   ac_cv_c_inline=no
6764 for ac_kw in inline __inline__ __inline; do
6765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767 #ifndef __cplusplus
6768 typedef int foo_t;
6769 static $ac_kw foo_t static_foo () {return 0; }
6770 $ac_kw foo_t foo () {return 0; }
6771 #endif
6772
6773 _ACEOF
6774 if ac_fn_c_try_compile "$LINENO"; then :
6775   ac_cv_c_inline=$ac_kw
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778   test "$ac_cv_c_inline" != no && break
6779 done
6780
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6783 $as_echo "$ac_cv_c_inline" >&6; }
6784
6785 case $ac_cv_c_inline in
6786   inline | yes) ;;
6787   *)
6788     case $ac_cv_c_inline in
6789       no) ac_val=;;
6790       *) ac_val=$ac_cv_c_inline;;
6791     esac
6792     cat >>confdefs.h <<_ACEOF
6793 #ifndef __cplusplus
6794 #define inline $ac_val
6795 #endif
6796 _ACEOF
6797     ;;
6798 esac
6799
6800 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6801 if test "x$ac_cv_type_size_t" = xyes; then :
6802
6803 else
6804
6805 cat >>confdefs.h <<_ACEOF
6806 #define size_t unsigned int
6807 _ACEOF
6808
6809 fi
6810
6811
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6813 $as_echo_n "checking for stdint.h... " >&6; }
6814 if ${gl_cv_header_stdint_h+:} false; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h.  */
6819 #include <sys/types.h>
6820             #include <stdint.h>
6821 int
6822 main ()
6823 {
6824 uintmax_t i = (uintmax_t) -1; return !i;
6825   ;
6826   return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830   gl_cv_header_stdint_h=yes
6831 else
6832   gl_cv_header_stdint_h=no
6833 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6837 $as_echo "$gl_cv_header_stdint_h" >&6; }
6838   if test $gl_cv_header_stdint_h = yes; then
6839
6840 cat >>confdefs.h <<_ACEOF
6841 #define HAVE_STDINT_H_WITH_UINTMAX 1
6842 _ACEOF
6843
6844   fi
6845
6846 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6847 # for constant arguments.  Useless!
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6849 $as_echo_n "checking for working alloca.h... " >&6; }
6850 if ${ac_cv_working_alloca_h+:} false; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h.  */
6855 #include <alloca.h>
6856 int
6857 main ()
6858 {
6859 char *p = (char *) alloca (2 * sizeof (int));
6860                           if (p) return 0;
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_link "$LINENO"; then :
6866   ac_cv_working_alloca_h=yes
6867 else
6868   ac_cv_working_alloca_h=no
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext \
6871     conftest$ac_exeext conftest.$ac_ext
6872 fi
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6874 $as_echo "$ac_cv_working_alloca_h" >&6; }
6875 if test $ac_cv_working_alloca_h = yes; then
6876
6877 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6878
6879 fi
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6882 $as_echo_n "checking for alloca... " >&6; }
6883 if ${ac_cv_func_alloca_works+:} false; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h.  */
6888 #ifdef __GNUC__
6889 # define alloca __builtin_alloca
6890 #else
6891 # ifdef _MSC_VER
6892 #  include <malloc.h>
6893 #  define alloca _alloca
6894 # else
6895 #  ifdef HAVE_ALLOCA_H
6896 #   include <alloca.h>
6897 #  else
6898 #   ifdef _AIX
6899  #pragma alloca
6900 #   else
6901 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6902 void *alloca (size_t);
6903 #    endif
6904 #   endif
6905 #  endif
6906 # endif
6907 #endif
6908
6909 int
6910 main ()
6911 {
6912 char *p = (char *) alloca (1);
6913                                     if (p) return 0;
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_link "$LINENO"; then :
6919   ac_cv_func_alloca_works=yes
6920 else
6921   ac_cv_func_alloca_works=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext \
6924     conftest$ac_exeext conftest.$ac_ext
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6927 $as_echo "$ac_cv_func_alloca_works" >&6; }
6928
6929 if test $ac_cv_func_alloca_works = yes; then
6930
6931 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6932
6933 else
6934   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6935 # that cause trouble.  Some versions do not even contain alloca or
6936 # contain a buggy version.  If you still want to use their alloca,
6937 # use ar to extract alloca.o from them instead of compiling alloca.c.
6938
6939 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6940
6941 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6942
6943
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6945 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6946 if ${ac_cv_os_cray+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951 #if defined CRAY && ! defined CRAY2
6952 webecray
6953 #else
6954 wenotbecray
6955 #endif
6956
6957 _ACEOF
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959   $EGREP "webecray" >/dev/null 2>&1; then :
6960   ac_cv_os_cray=yes
6961 else
6962   ac_cv_os_cray=no
6963 fi
6964 rm -f conftest*
6965
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6968 $as_echo "$ac_cv_os_cray" >&6; }
6969 if test $ac_cv_os_cray = yes; then
6970   for ac_func in _getb67 GETB67 getb67; do
6971     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6973 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6974
6975 cat >>confdefs.h <<_ACEOF
6976 #define CRAY_STACKSEG_END $ac_func
6977 _ACEOF
6978
6979     break
6980 fi
6981
6982   done
6983 fi
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6986 $as_echo_n "checking stack direction for C alloca... " >&6; }
6987 if ${ac_cv_c_stack_direction+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   if test "$cross_compiling" = yes; then :
6991   ac_cv_c_stack_direction=0
6992 else
6993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h.  */
6995 $ac_includes_default
6996 int
6997 find_stack_direction (int *addr, int depth)
6998 {
6999   int dir, dummy = 0;
7000   if (! addr)
7001     addr = &dummy;
7002   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7003   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7004   return dir + dummy;
7005 }
7006
7007 int
7008 main (int argc, char **argv)
7009 {
7010   return find_stack_direction (0, argc + !argv + 20) < 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_run "$LINENO"; then :
7014   ac_cv_c_stack_direction=1
7015 else
7016   ac_cv_c_stack_direction=-1
7017 fi
7018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7019   conftest.$ac_objext conftest.beam conftest.$ac_ext
7020 fi
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7024 $as_echo "$ac_cv_c_stack_direction" >&6; }
7025 cat >>confdefs.h <<_ACEOF
7026 #define STACK_DIRECTION $ac_cv_c_stack_direction
7027 _ACEOF
7028
7029
7030 fi
7031
7032
7033
7034
7035   for ac_header in $ac_header_list
7036 do :
7037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7039 "
7040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7041   cat >>confdefs.h <<_ACEOF
7042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043 _ACEOF
7044
7045 fi
7046
7047 done
7048
7049
7050
7051
7052
7053
7054
7055
7056 for ac_func in getpagesize
7057 do :
7058   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7059 if test "x$ac_cv_func_getpagesize" = xyes; then :
7060   cat >>confdefs.h <<_ACEOF
7061 #define HAVE_GETPAGESIZE 1
7062 _ACEOF
7063
7064 fi
7065 done
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7068 $as_echo_n "checking for working mmap... " >&6; }
7069 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test "$cross_compiling" = yes; then :
7073   ac_cv_func_mmap_fixed_mapped=no
7074 else
7075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h.  */
7077 $ac_includes_default
7078 /* malloc might have been renamed as rpl_malloc. */
7079 #undef malloc
7080
7081 /* Thanks to Mike Haertel and Jim Avera for this test.
7082    Here is a matrix of mmap possibilities:
7083         mmap private not fixed
7084         mmap private fixed at somewhere currently unmapped
7085         mmap private fixed at somewhere already mapped
7086         mmap shared not fixed
7087         mmap shared fixed at somewhere currently unmapped
7088         mmap shared fixed at somewhere already mapped
7089    For private mappings, we should verify that changes cannot be read()
7090    back from the file, nor mmap's back from the file at a different
7091    address.  (There have been systems where private was not correctly
7092    implemented like the infamous i386 svr4.0, and systems where the
7093    VM page cache was not coherent with the file system buffer cache
7094    like early versions of FreeBSD and possibly contemporary NetBSD.)
7095    For shared mappings, we should conversely verify that changes get
7096    propagated back to all the places they're supposed to be.
7097
7098    Grep wants private fixed already mapped.
7099    The main things grep needs to know about mmap are:
7100    * does it exist and is it safe to write into the mmap'd area
7101    * how to use it (BSD variants)  */
7102
7103 #include <fcntl.h>
7104 #include <sys/mman.h>
7105
7106 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7107 char *malloc ();
7108 #endif
7109
7110 /* This mess was copied from the GNU getpagesize.h.  */
7111 #ifndef HAVE_GETPAGESIZE
7112 # ifdef _SC_PAGESIZE
7113 #  define getpagesize() sysconf(_SC_PAGESIZE)
7114 # else /* no _SC_PAGESIZE */
7115 #  ifdef HAVE_SYS_PARAM_H
7116 #   include <sys/param.h>
7117 #   ifdef EXEC_PAGESIZE
7118 #    define getpagesize() EXEC_PAGESIZE
7119 #   else /* no EXEC_PAGESIZE */
7120 #    ifdef NBPG
7121 #     define getpagesize() NBPG * CLSIZE
7122 #     ifndef CLSIZE
7123 #      define CLSIZE 1
7124 #     endif /* no CLSIZE */
7125 #    else /* no NBPG */
7126 #     ifdef NBPC
7127 #      define getpagesize() NBPC
7128 #     else /* no NBPC */
7129 #      ifdef PAGESIZE
7130 #       define getpagesize() PAGESIZE
7131 #      endif /* PAGESIZE */
7132 #     endif /* no NBPC */
7133 #    endif /* no NBPG */
7134 #   endif /* no EXEC_PAGESIZE */
7135 #  else /* no HAVE_SYS_PARAM_H */
7136 #   define getpagesize() 8192   /* punt totally */
7137 #  endif /* no HAVE_SYS_PARAM_H */
7138 # endif /* no _SC_PAGESIZE */
7139
7140 #endif /* no HAVE_GETPAGESIZE */
7141
7142 int
7143 main ()
7144 {
7145   char *data, *data2, *data3;
7146   const char *cdata2;
7147   int i, pagesize;
7148   int fd, fd2;
7149
7150   pagesize = getpagesize ();
7151
7152   /* First, make a file with some known garbage in it. */
7153   data = (char *) malloc (pagesize);
7154   if (!data)
7155     return 1;
7156   for (i = 0; i < pagesize; ++i)
7157     *(data + i) = rand ();
7158   umask (0);
7159   fd = creat ("conftest.mmap", 0600);
7160   if (fd < 0)
7161     return 2;
7162   if (write (fd, data, pagesize) != pagesize)
7163     return 3;
7164   close (fd);
7165
7166   /* Next, check that the tail of a page is zero-filled.  File must have
7167      non-zero length, otherwise we risk SIGBUS for entire page.  */
7168   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7169   if (fd2 < 0)
7170     return 4;
7171   cdata2 = "";
7172   if (write (fd2, cdata2, 1) != 1)
7173     return 5;
7174   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7175   if (data2 == MAP_FAILED)
7176     return 6;
7177   for (i = 0; i < pagesize; ++i)
7178     if (*(data2 + i))
7179       return 7;
7180   close (fd2);
7181   if (munmap (data2, pagesize))
7182     return 8;
7183
7184   /* Next, try to mmap the file at a fixed address which already has
7185      something else allocated at it.  If we can, also make sure that
7186      we see the same garbage.  */
7187   fd = open ("conftest.mmap", O_RDWR);
7188   if (fd < 0)
7189     return 9;
7190   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7191                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7192     return 10;
7193   for (i = 0; i < pagesize; ++i)
7194     if (*(data + i) != *(data2 + i))
7195       return 11;
7196
7197   /* Finally, make sure that changes to the mapped area do not
7198      percolate back to the file as seen by read().  (This is a bug on
7199      some variants of i386 svr4.0.)  */
7200   for (i = 0; i < pagesize; ++i)
7201     *(data2 + i) = *(data2 + i) + 1;
7202   data3 = (char *) malloc (pagesize);
7203   if (!data3)
7204     return 12;
7205   if (read (fd, data3, pagesize) != pagesize)
7206     return 13;
7207   for (i = 0; i < pagesize; ++i)
7208     if (*(data + i) != *(data3 + i))
7209       return 14;
7210   close (fd);
7211   return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_run "$LINENO"; then :
7215   ac_cv_func_mmap_fixed_mapped=yes
7216 else
7217   ac_cv_func_mmap_fixed_mapped=no
7218 fi
7219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7220   conftest.$ac_objext conftest.beam conftest.$ac_ext
7221 fi
7222
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7225 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7226 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7227
7228 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7229
7230 fi
7231 rm -f conftest.mmap conftest.txt
7232
7233
7234
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7236 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7237 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240
7241       gt_cv_int_divbyzero_sigfpe=
7242       case "$host_os" in
7243         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7244           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7245           # compiling. If we were to perform the real test, 1 Crash Report
7246           # dialog window would pop up.
7247           case "$host_cpu" in
7248             i[34567]86 | x86_64)
7249               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7250           esac
7251           ;;
7252       esac
7253       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7254         if test "$cross_compiling" = yes; then :
7255
7256             # Guess based on the CPU.
7257             case "$host_cpu" in
7258               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7259                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7260               *)
7261                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7262             esac
7263
7264 else
7265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h.  */
7267
7268 #include <stdlib.h>
7269 #include <signal.h>
7270
7271 static void
7272 sigfpe_handler (int sig)
7273 {
7274   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7275   exit (sig != SIGFPE);
7276 }
7277
7278 int x = 1;
7279 int y = 0;
7280 int z;
7281 int nan;
7282
7283 int main ()
7284 {
7285   signal (SIGFPE, sigfpe_handler);
7286 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7287 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7288   signal (SIGTRAP, sigfpe_handler);
7289 #endif
7290 /* Linux/SPARC yields signal SIGILL.  */
7291 #if defined (__sparc__) && defined (__linux__)
7292   signal (SIGILL, sigfpe_handler);
7293 #endif
7294
7295   z = x / y;
7296   nan = y / y;
7297   exit (2);
7298 }
7299
7300 _ACEOF
7301 if ac_fn_c_try_run "$LINENO"; then :
7302   gt_cv_int_divbyzero_sigfpe=yes
7303 else
7304   gt_cv_int_divbyzero_sigfpe=no
7305 fi
7306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7307   conftest.$ac_objext conftest.beam conftest.$ac_ext
7308 fi
7309
7310       fi
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7314 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7315   case "$gt_cv_int_divbyzero_sigfpe" in
7316     *yes) value=1;;
7317     *) value=0;;
7318   esac
7319
7320 cat >>confdefs.h <<_ACEOF
7321 #define INTDIV0_RAISES_SIGFPE $value
7322 _ACEOF
7323
7324
7325
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7327 $as_echo_n "checking for inttypes.h... " >&6; }
7328 if ${gl_cv_header_inttypes_h+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h.  */
7333
7334 #include <sys/types.h>
7335 #include <inttypes.h>
7336
7337 int
7338 main ()
7339 {
7340 uintmax_t i = (uintmax_t) -1; return !i;
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_compile "$LINENO"; then :
7346   gl_cv_header_inttypes_h=yes
7347 else
7348   gl_cv_header_inttypes_h=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7353 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7354   if test $gl_cv_header_inttypes_h = yes; then
7355
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7358 _ACEOF
7359
7360   fi
7361
7362
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7364 $as_echo_n "checking for unsigned long long int... " >&6; }
7365 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   ac_cv_type_unsigned_long_long_int=yes
7369      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7370        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h.  */
7372
7373   /* For now, do not test the preprocessor; as of 2007 there are too many
7374          implementations with broken preprocessors.  Perhaps this can
7375          be revisited in 2012.  In the meantime, code should not expect
7376          #if to work with literals wider than 32 bits.  */
7377       /* Test literals.  */
7378       long long int ll = 9223372036854775807ll;
7379       long long int nll = -9223372036854775807LL;
7380       unsigned long long int ull = 18446744073709551615ULL;
7381       /* Test constant expressions.   */
7382       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7383                      ? 1 : -1)];
7384       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7385                      ? 1 : -1)];
7386       int i = 63;
7387 int
7388 main ()
7389 {
7390 /* Test availability of runtime routines for shift and division.  */
7391       long long int llmax = 9223372036854775807ll;
7392       unsigned long long int ullmax = 18446744073709551615ull;
7393       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7394               | (llmax / ll) | (llmax % ll)
7395               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7396               | (ullmax / ull) | (ullmax % ull));
7397   ;
7398   return 0;
7399 }
7400
7401 _ACEOF
7402 if ac_fn_c_try_link "$LINENO"; then :
7403
7404 else
7405   ac_cv_type_unsigned_long_long_int=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext \
7408     conftest$ac_exeext conftest.$ac_ext
7409      fi
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7412 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7413   if test $ac_cv_type_unsigned_long_long_int = yes; then
7414
7415 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7416
7417   fi
7418
7419
7420
7421
7422   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7423
7424     test $ac_cv_type_unsigned_long_long_int = yes \
7425       && ac_type='unsigned long long' \
7426       || ac_type='unsigned long'
7427
7428 cat >>confdefs.h <<_ACEOF
7429 #define uintmax_t $ac_type
7430 _ACEOF
7431
7432   else
7433
7434 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7435
7436   fi
7437
7438
7439   for ac_header in inttypes.h
7440 do :
7441   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7442 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7443   cat >>confdefs.h <<_ACEOF
7444 #define HAVE_INTTYPES_H 1
7445 _ACEOF
7446
7447 fi
7448
7449 done
7450
7451   if test $ac_cv_header_inttypes_h = yes; then
7452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7453 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7454 if ${gt_cv_inttypes_pri_broken+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457
7458         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h.  */
7460
7461 #include <inttypes.h>
7462 #ifdef PRId32
7463 char *p = PRId32;
7464 #endif
7465
7466 int
7467 main ()
7468 {
7469
7470   ;
7471   return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"; then :
7475   gt_cv_inttypes_pri_broken=no
7476 else
7477   gt_cv_inttypes_pri_broken=yes
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7483 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7484   fi
7485   if test "$gt_cv_inttypes_pri_broken" = yes; then
7486
7487 cat >>confdefs.h <<_ACEOF
7488 #define PRI_MACROS_BROKEN 1
7489 _ACEOF
7490
7491     PRI_MACROS_BROKEN=1
7492   else
7493     PRI_MACROS_BROKEN=0
7494   fi
7495
7496
7497
7498
7499
7500
7501
7502   # Check whether --enable-threads was given.
7503 if test "${enable_threads+set}" = set; then :
7504   enableval=$enable_threads; gl_use_threads=$enableval
7505 else
7506   if test -n "$gl_use_threads_default"; then
7507        gl_use_threads="$gl_use_threads_default"
7508      else
7509        case "$host_os" in
7510                                                                osf*) gl_use_threads=no ;;
7511          cygwin*)
7512                case `uname -r` in
7513                  1.[0-5].*) gl_use_threads=no ;;
7514                  *)         gl_use_threads=yes ;;
7515                esac
7516                ;;
7517          *)    gl_use_threads=yes ;;
7518        esac
7519      fi
7520
7521 fi
7522
7523   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7524     # For using <pthread.h>:
7525     case "$host_os" in
7526       osf*)
7527         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7528         # groks <pthread.h>. cc also understands the flag -pthread, but
7529         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7530         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7531         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7532         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7533         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7534         ;;
7535     esac
7536     # Some systems optimize for single-threaded programs by default, and
7537     # need special flags to disable these optimizations. For example, the
7538     # definition of 'errno' in <errno.h>.
7539     case "$host_os" in
7540       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7541       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7542     esac
7543   fi
7544
7545
7546
7547
7548
7549       if test "X$prefix" = "XNONE"; then
7550     acl_final_prefix="$ac_default_prefix"
7551   else
7552     acl_final_prefix="$prefix"
7553   fi
7554   if test "X$exec_prefix" = "XNONE"; then
7555     acl_final_exec_prefix='${prefix}'
7556   else
7557     acl_final_exec_prefix="$exec_prefix"
7558   fi
7559   acl_save_prefix="$prefix"
7560   prefix="$acl_final_prefix"
7561   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7562   prefix="$acl_save_prefix"
7563
7564
7565
7566 # Check whether --with-gnu-ld was given.
7567 if test "${with_gnu_ld+set}" = set; then :
7568   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7569 else
7570   with_gnu_ld=no
7571 fi
7572
7573 # Prepare PATH_SEPARATOR.
7574 # The user is always right.
7575 if test "${PATH_SEPARATOR+set}" != set; then
7576   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7577   # contains only /bin. Note that ksh looks also at the FPATH variable,
7578   # so we have to set that as well for the test.
7579   PATH_SEPARATOR=:
7580   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7581     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7582            || PATH_SEPARATOR=';'
7583        }
7584 fi
7585
7586 ac_prog=ld
7587 if test "$GCC" = yes; then
7588   # Check if gcc -print-prog-name=ld gives a path.
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7590 $as_echo_n "checking for ld used by $CC... " >&6; }
7591   case $host in
7592   *-*-mingw*)
7593     # gcc leaves a trailing carriage return which upsets mingw
7594     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7595   *)
7596     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7597   esac
7598   case $ac_prog in
7599     # Accept absolute paths.
7600     [\\/]* | ?:[\\/]*)
7601       re_direlt='/[^/][^/]*/\.\./'
7602       # Canonicalize the pathname of ld
7603       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7604       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7605         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7606       done
7607       test -z "$LD" && LD="$ac_prog"
7608       ;;
7609   "")
7610     # If it fails, then pretend we aren't using GCC.
7611     ac_prog=ld
7612     ;;
7613   *)
7614     # If it is relative, then search for the first ld in PATH.
7615     with_gnu_ld=unknown
7616     ;;
7617   esac
7618 elif test "$with_gnu_ld" = yes; then
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7620 $as_echo_n "checking for GNU ld... " >&6; }
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7623 $as_echo_n "checking for non-GNU ld... " >&6; }
7624 fi
7625 if ${acl_cv_path_LD+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -z "$LD"; then
7629   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630   for ac_dir in $PATH; do
7631     IFS="$acl_save_ifs"
7632     test -z "$ac_dir" && ac_dir=.
7633     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7634       acl_cv_path_LD="$ac_dir/$ac_prog"
7635       # Check to see if the program is GNU ld.  I'd rather use --version,
7636       # but apparently some variants of GNU ld only accept -v.
7637       # Break only if it was the GNU/non-GNU ld that we prefer.
7638       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7639       *GNU* | *'with BFD'*)
7640         test "$with_gnu_ld" != no && break
7641         ;;
7642       *)
7643         test "$with_gnu_ld" != yes && break
7644         ;;
7645       esac
7646     fi
7647   done
7648   IFS="$acl_save_ifs"
7649 else
7650   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7651 fi
7652 fi
7653
7654 LD="$acl_cv_path_LD"
7655 if test -n "$LD"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7657 $as_echo "$LD" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7664 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7665 if ${acl_cv_prog_gnu_ld+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7669 case `$LD -v 2>&1 </dev/null` in
7670 *GNU* | *'with BFD'*)
7671   acl_cv_prog_gnu_ld=yes
7672   ;;
7673 *)
7674   acl_cv_prog_gnu_ld=no
7675   ;;
7676 esac
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7679 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7680 with_gnu_ld=$acl_cv_prog_gnu_ld
7681
7682
7683
7684
7685                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7686 $as_echo_n "checking for shared library run path origin... " >&6; }
7687 if ${acl_cv_rpath+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690
7691     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7692     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7693     . ./conftest.sh
7694     rm -f ./conftest.sh
7695     acl_cv_rpath=done
7696
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7699 $as_echo "$acl_cv_rpath" >&6; }
7700   wl="$acl_cv_wl"
7701   acl_libext="$acl_cv_libext"
7702   acl_shlibext="$acl_cv_shlibext"
7703   acl_libname_spec="$acl_cv_libname_spec"
7704   acl_library_names_spec="$acl_cv_library_names_spec"
7705   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7706   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7707   acl_hardcode_direct="$acl_cv_hardcode_direct"
7708   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7709     # Check whether --enable-rpath was given.
7710 if test "${enable_rpath+set}" = set; then :
7711   enableval=$enable_rpath; :
7712 else
7713   enable_rpath=yes
7714 fi
7715
7716
7717
7718
7719   acl_libdirstem=lib
7720   acl_libdirstem2=
7721   case "$host_os" in
7722     solaris*)
7723                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7724 $as_echo_n "checking for 64-bit host... " >&6; }
7725 if ${gl_cv_solaris_64bit+:} false; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h.  */
7730
7731 #ifdef _LP64
7732 sixtyfour bits
7733 #endif
7734
7735 _ACEOF
7736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7738   gl_cv_solaris_64bit=yes
7739 else
7740   gl_cv_solaris_64bit=no
7741 fi
7742 rm -f conftest*
7743
7744
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7747 $as_echo "$gl_cv_solaris_64bit" >&6; }
7748       if test $gl_cv_solaris_64bit = yes; then
7749         acl_libdirstem=lib/64
7750         case "$host_cpu" in
7751           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7752           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7753         esac
7754       fi
7755       ;;
7756     *)
7757       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7758       if test -n "$searchpath"; then
7759         acl_save_IFS="${IFS=    }"; IFS=":"
7760         for searchdir in $searchpath; do
7761           if test -d "$searchdir"; then
7762             case "$searchdir" in
7763               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7764               */../ | */.. )
7765                 # Better ignore directories of this form. They are misleading.
7766                 ;;
7767               *) searchdir=`cd "$searchdir" && pwd`
7768                  case "$searchdir" in
7769                    */lib64 ) acl_libdirstem=lib64 ;;
7770                  esac ;;
7771             esac
7772           fi
7773         done
7774         IFS="$acl_save_IFS"
7775       fi
7776       ;;
7777   esac
7778   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7779
7780
7781
7782   gl_threads_api=none
7783   LIBTHREAD=
7784   LTLIBTHREAD=
7785   LIBMULTITHREAD=
7786   LTLIBMULTITHREAD=
7787   if test "$gl_use_threads" != no; then
7788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7789 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7790 if ${gl_cv_have_weak+:} false; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793   gl_cv_have_weak=no
7794               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796 extern void xyzzy ();
7797 #pragma weak xyzzy
7798 int
7799 main ()
7800 {
7801 xyzzy();
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"; then :
7807   gl_cv_have_weak=maybe
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810     conftest$ac_exeext conftest.$ac_ext
7811        if test $gl_cv_have_weak = maybe; then
7812                            if test "$cross_compiling" = yes; then :
7813                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h.  */
7815 #ifdef __ELF__
7816                Extensible Linking Format
7817                #endif
7818
7819 _ACEOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7822   gl_cv_have_weak="guessing yes"
7823 else
7824   gl_cv_have_weak="guessing no"
7825 fi
7826 rm -f conftest*
7827
7828
7829 else
7830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7832
7833 #include <stdio.h>
7834 #pragma weak fputs
7835 int main ()
7836 {
7837   return (fputs == NULL);
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_run "$LINENO"; then :
7841   gl_cv_have_weak=yes
7842 else
7843   gl_cv_have_weak=no
7844 fi
7845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7846   conftest.$ac_objext conftest.beam conftest.$ac_ext
7847 fi
7848
7849        fi
7850
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7853 $as_echo "$gl_cv_have_weak" >&6; }
7854     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7855       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7856       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7857       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7858 if test "x$ac_cv_header_pthread_h" = xyes; then :
7859   gl_have_pthread_h=yes
7860 else
7861   gl_have_pthread_h=no
7862 fi
7863
7864
7865       if test "$gl_have_pthread_h" = yes; then
7866         # Other possible tests:
7867         #   -lpthreads (FSU threads, PCthreads)
7868         #   -lgthreads
7869         gl_have_pthread=
7870         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7871         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7872         # the second one only in libpthread, and lock.c needs it.
7873         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h.  */
7875 #include <pthread.h>
7876 int
7877 main ()
7878 {
7879 pthread_mutex_lock((pthread_mutex_t*)0);
7880                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7881   ;
7882   return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_link "$LINENO"; then :
7886   gl_have_pthread=yes
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext \
7889     conftest$ac_exeext conftest.$ac_ext
7890         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7891         # since it is defined as a macro on OSF/1.)
7892         if test -n "$gl_have_pthread"; then
7893           # The program links fine without libpthread. But it may actually
7894           # need to link with libpthread in order to create multiple threads.
7895           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7896 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7897 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   ac_check_lib_save_LIBS=$LIBS
7901 LIBS="-lpthread  $LIBS"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904
7905 /* Override any GCC internal prototype to avoid an error.
7906    Use char because int might match the return type of a GCC
7907    builtin and then its argument prototype would still apply.  */
7908 #ifdef __cplusplus
7909 extern "C"
7910 #endif
7911 char pthread_kill ();
7912 int
7913 main ()
7914 {
7915 return pthread_kill ();
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_link "$LINENO"; then :
7921   ac_cv_lib_pthread_pthread_kill=yes
7922 else
7923   ac_cv_lib_pthread_pthread_kill=no
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext \
7926     conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7930 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7931 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7932   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7933              # On Solaris and HP-UX, most pthread functions exist also in libc.
7934              # Therefore pthread_in_use() needs to actually try to create a
7935              # thread: pthread_create from libc will fail, whereas
7936              # pthread_create will actually create a thread.
7937              case "$host_os" in
7938                solaris* | hpux*)
7939
7940 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7941
7942              esac
7943
7944 fi
7945
7946         else
7947           # Some library is needed. Try libpthread and libc_r.
7948           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7949 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7950 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   ac_check_lib_save_LIBS=$LIBS
7954 LIBS="-lpthread  $LIBS"
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957
7958 /* Override any GCC internal prototype to avoid an error.
7959    Use char because int might match the return type of a GCC
7960    builtin and then its argument prototype would still apply.  */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 char pthread_kill ();
7965 int
7966 main ()
7967 {
7968 return pthread_kill ();
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_c_try_link "$LINENO"; then :
7974   ac_cv_lib_pthread_pthread_kill=yes
7975 else
7976   ac_cv_lib_pthread_pthread_kill=no
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext \
7979     conftest$ac_exeext conftest.$ac_ext
7980 LIBS=$ac_check_lib_save_LIBS
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7983 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7984 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7985   gl_have_pthread=yes
7986              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7987              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7988 fi
7989
7990           if test -z "$gl_have_pthread"; then
7991             # For FreeBSD 4.
7992             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7993 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7994 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   ac_check_lib_save_LIBS=$LIBS
7998 LIBS="-lc_r  $LIBS"
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h.  */
8001
8002 /* Override any GCC internal prototype to avoid an error.
8003    Use char because int might match the return type of a GCC
8004    builtin and then its argument prototype would still apply.  */
8005 #ifdef __cplusplus
8006 extern "C"
8007 #endif
8008 char pthread_kill ();
8009 int
8010 main ()
8011 {
8012 return pthread_kill ();
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018   ac_cv_lib_c_r_pthread_kill=yes
8019 else
8020   ac_cv_lib_c_r_pthread_kill=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext \
8023     conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8027 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8028 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8029   gl_have_pthread=yes
8030                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8031                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8032 fi
8033
8034           fi
8035         fi
8036         if test -n "$gl_have_pthread"; then
8037           gl_threads_api=posix
8038
8039 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8040
8041           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8042             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8043
8044 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8045
8046               LIBTHREAD=
8047               LTLIBTHREAD=
8048             fi
8049           fi
8050         fi
8051       fi
8052     fi
8053     if test -z "$gl_have_pthread"; then
8054       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8055         gl_have_solaristhread=
8056         gl_save_LIBS="$LIBS"
8057         LIBS="$LIBS -lthread"
8058         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h.  */
8060
8061 #include <thread.h>
8062 #include <synch.h>
8063
8064 int
8065 main ()
8066 {
8067 thr_self();
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_link "$LINENO"; then :
8073   gl_have_solaristhread=yes
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext \
8076     conftest$ac_exeext conftest.$ac_ext
8077         LIBS="$gl_save_LIBS"
8078         if test -n "$gl_have_solaristhread"; then
8079           gl_threads_api=solaris
8080           LIBTHREAD=-lthread
8081           LTLIBTHREAD=-lthread
8082           LIBMULTITHREAD="$LIBTHREAD"
8083           LTLIBMULTITHREAD="$LTLIBTHREAD"
8084
8085 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8086
8087           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8088
8089 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8090
8091             LIBTHREAD=
8092             LTLIBTHREAD=
8093           fi
8094         fi
8095       fi
8096     fi
8097     if test "$gl_use_threads" = pth; then
8098       gl_save_CPPFLAGS="$CPPFLAGS"
8099
8100
8101
8102
8103
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8105 $as_echo_n "checking how to link with libpth... " >&6; }
8106 if ${ac_cv_libpth_libs+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109
8110
8111
8112
8113
8114
8115
8116
8117     use_additional=yes
8118
8119   acl_save_prefix="$prefix"
8120   prefix="$acl_final_prefix"
8121   acl_save_exec_prefix="$exec_prefix"
8122   exec_prefix="$acl_final_exec_prefix"
8123
8124     eval additional_includedir=\"$includedir\"
8125     eval additional_libdir=\"$libdir\"
8126
8127   exec_prefix="$acl_save_exec_prefix"
8128   prefix="$acl_save_prefix"
8129
8130
8131 # Check whether --with-libpth-prefix was given.
8132 if test "${with_libpth_prefix+set}" = set; then :
8133   withval=$with_libpth_prefix;
8134     if test "X$withval" = "Xno"; then
8135       use_additional=no
8136     else
8137       if test "X$withval" = "X"; then
8138
8139   acl_save_prefix="$prefix"
8140   prefix="$acl_final_prefix"
8141   acl_save_exec_prefix="$exec_prefix"
8142   exec_prefix="$acl_final_exec_prefix"
8143
8144           eval additional_includedir=\"$includedir\"
8145           eval additional_libdir=\"$libdir\"
8146
8147   exec_prefix="$acl_save_exec_prefix"
8148   prefix="$acl_save_prefix"
8149
8150       else
8151         additional_includedir="$withval/include"
8152         additional_libdir="$withval/$acl_libdirstem"
8153         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8154            && ! test -d "$withval/$acl_libdirstem"; then
8155           additional_libdir="$withval/$acl_libdirstem2"
8156         fi
8157       fi
8158     fi
8159
8160 fi
8161
8162       LIBPTH=
8163   LTLIBPTH=
8164   INCPTH=
8165   LIBPTH_PREFIX=
8166       HAVE_LIBPTH=
8167   rpathdirs=
8168   ltrpathdirs=
8169   names_already_handled=
8170   names_next_round='pth '
8171   while test -n "$names_next_round"; do
8172     names_this_round="$names_next_round"
8173     names_next_round=
8174     for name in $names_this_round; do
8175       already_handled=
8176       for n in $names_already_handled; do
8177         if test "$n" = "$name"; then
8178           already_handled=yes
8179           break
8180         fi
8181       done
8182       if test -z "$already_handled"; then
8183         names_already_handled="$names_already_handled $name"
8184                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8185         eval value=\"\$HAVE_LIB$uppername\"
8186         if test -n "$value"; then
8187           if test "$value" = yes; then
8188             eval value=\"\$LIB$uppername\"
8189             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8190             eval value=\"\$LTLIB$uppername\"
8191             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8192           else
8193                                     :
8194           fi
8195         else
8196                               found_dir=
8197           found_la=
8198           found_so=
8199           found_a=
8200           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8201           if test -n "$acl_shlibext"; then
8202             shrext=".$acl_shlibext"             # typically: shrext=.so
8203           else
8204             shrext=
8205           fi
8206           if test $use_additional = yes; then
8207             dir="$additional_libdir"
8208                                     if test -n "$acl_shlibext"; then
8209               if test -f "$dir/$libname$shrext"; then
8210                 found_dir="$dir"
8211                 found_so="$dir/$libname$shrext"
8212               else
8213                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8214                   ver=`(cd "$dir" && \
8215                         for f in "$libname$shrext".*; do echo "$f"; done \
8216                         | sed -e "s,^$libname$shrext\\\\.,," \
8217                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8218                         | sed 1q ) 2>/dev/null`
8219                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8220                     found_dir="$dir"
8221                     found_so="$dir/$libname$shrext.$ver"
8222                   fi
8223                 else
8224                   eval library_names=\"$acl_library_names_spec\"
8225                   for f in $library_names; do
8226                     if test -f "$dir/$f"; then
8227                       found_dir="$dir"
8228                       found_so="$dir/$f"
8229                       break
8230                     fi
8231                   done
8232                 fi
8233               fi
8234             fi
8235                         if test "X$found_dir" = "X"; then
8236               if test -f "$dir/$libname.$acl_libext"; then
8237                 found_dir="$dir"
8238                 found_a="$dir/$libname.$acl_libext"
8239               fi
8240             fi
8241             if test "X$found_dir" != "X"; then
8242               if test -f "$dir/$libname.la"; then
8243                 found_la="$dir/$libname.la"
8244               fi
8245             fi
8246           fi
8247           if test "X$found_dir" = "X"; then
8248             for x in $LDFLAGS $LTLIBPTH; do
8249
8250   acl_save_prefix="$prefix"
8251   prefix="$acl_final_prefix"
8252   acl_save_exec_prefix="$exec_prefix"
8253   exec_prefix="$acl_final_exec_prefix"
8254   eval x=\"$x\"
8255   exec_prefix="$acl_save_exec_prefix"
8256   prefix="$acl_save_prefix"
8257
8258               case "$x" in
8259                 -L*)
8260                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8261                                     if test -n "$acl_shlibext"; then
8262                     if test -f "$dir/$libname$shrext"; then
8263                       found_dir="$dir"
8264                       found_so="$dir/$libname$shrext"
8265                     else
8266                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8267                         ver=`(cd "$dir" && \
8268                               for f in "$libname$shrext".*; do echo "$f"; done \
8269                               | sed -e "s,^$libname$shrext\\\\.,," \
8270                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8271                               | sed 1q ) 2>/dev/null`
8272                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8273                           found_dir="$dir"
8274                           found_so="$dir/$libname$shrext.$ver"
8275                         fi
8276                       else
8277                         eval library_names=\"$acl_library_names_spec\"
8278                         for f in $library_names; do
8279                           if test -f "$dir/$f"; then
8280                             found_dir="$dir"
8281                             found_so="$dir/$f"
8282                             break
8283                           fi
8284                         done
8285                       fi
8286                     fi
8287                   fi
8288                                     if test "X$found_dir" = "X"; then
8289                     if test -f "$dir/$libname.$acl_libext"; then
8290                       found_dir="$dir"
8291                       found_a="$dir/$libname.$acl_libext"
8292                     fi
8293                   fi
8294                   if test "X$found_dir" != "X"; then
8295                     if test -f "$dir/$libname.la"; then
8296                       found_la="$dir/$libname.la"
8297                     fi
8298                   fi
8299                   ;;
8300               esac
8301               if test "X$found_dir" != "X"; then
8302                 break
8303               fi
8304             done
8305           fi
8306           if test "X$found_dir" != "X"; then
8307                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8308             if test "X$found_so" != "X"; then
8309                                                         if test "$enable_rpath" = no \
8310                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8311                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8312                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8313               else
8314                                                                                 haveit=
8315                 for x in $ltrpathdirs; do
8316                   if test "X$x" = "X$found_dir"; then
8317                     haveit=yes
8318                     break
8319                   fi
8320                 done
8321                 if test -z "$haveit"; then
8322                   ltrpathdirs="$ltrpathdirs $found_dir"
8323                 fi
8324                                 if test "$acl_hardcode_direct" = yes; then
8325                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8326                 else
8327                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8328                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8329                                                             haveit=
8330                     for x in $rpathdirs; do
8331                       if test "X$x" = "X$found_dir"; then
8332                         haveit=yes
8333                         break
8334                       fi
8335                     done
8336                     if test -z "$haveit"; then
8337                       rpathdirs="$rpathdirs $found_dir"
8338                     fi
8339                   else
8340                                                                                 haveit=
8341                     for x in $LDFLAGS $LIBPTH; do
8342
8343   acl_save_prefix="$prefix"
8344   prefix="$acl_final_prefix"
8345   acl_save_exec_prefix="$exec_prefix"
8346   exec_prefix="$acl_final_exec_prefix"
8347   eval x=\"$x\"
8348   exec_prefix="$acl_save_exec_prefix"
8349   prefix="$acl_save_prefix"
8350
8351                       if test "X$x" = "X-L$found_dir"; then
8352                         haveit=yes
8353                         break
8354                       fi
8355                     done
8356                     if test -z "$haveit"; then
8357                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8358                     fi
8359                     if test "$acl_hardcode_minus_L" != no; then
8360                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8361                     else
8362                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8363                     fi
8364                   fi
8365                 fi
8366               fi
8367             else
8368               if test "X$found_a" != "X"; then
8369                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8370               else
8371                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8372               fi
8373             fi
8374                         additional_includedir=
8375             case "$found_dir" in
8376               */$acl_libdirstem | */$acl_libdirstem/)
8377                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8378                 if test "$name" = 'pth'; then
8379                   LIBPTH_PREFIX="$basedir"
8380                 fi
8381                 additional_includedir="$basedir/include"
8382                 ;;
8383               */$acl_libdirstem2 | */$acl_libdirstem2/)
8384                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8385                 if test "$name" = 'pth'; then
8386                   LIBPTH_PREFIX="$basedir"
8387                 fi
8388                 additional_includedir="$basedir/include"
8389                 ;;
8390             esac
8391             if test "X$additional_includedir" != "X"; then
8392                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8393                 haveit=
8394                 if test "X$additional_includedir" = "X/usr/local/include"; then
8395                   if test -n "$GCC"; then
8396                     case $host_os in
8397                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8398                     esac
8399                   fi
8400                 fi
8401                 if test -z "$haveit"; then
8402                   for x in $CPPFLAGS $INCPTH; do
8403
8404   acl_save_prefix="$prefix"
8405   prefix="$acl_final_prefix"
8406   acl_save_exec_prefix="$exec_prefix"
8407   exec_prefix="$acl_final_exec_prefix"
8408   eval x=\"$x\"
8409   exec_prefix="$acl_save_exec_prefix"
8410   prefix="$acl_save_prefix"
8411
8412                     if test "X$x" = "X-I$additional_includedir"; then
8413                       haveit=yes
8414                       break
8415                     fi
8416                   done
8417                   if test -z "$haveit"; then
8418                     if test -d "$additional_includedir"; then
8419                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8420                     fi
8421                   fi
8422                 fi
8423               fi
8424             fi
8425                         if test -n "$found_la"; then
8426                                                         save_libdir="$libdir"
8427               case "$found_la" in
8428                 */* | *\\*) . "$found_la" ;;
8429                 *) . "./$found_la" ;;
8430               esac
8431               libdir="$save_libdir"
8432                             for dep in $dependency_libs; do
8433                 case "$dep" in
8434                   -L*)
8435                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8436                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8437                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8438                       haveit=
8439                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8440                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8441                         if test -n "$GCC"; then
8442                           case $host_os in
8443                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8444                           esac
8445                         fi
8446                       fi
8447                       if test -z "$haveit"; then
8448                         haveit=
8449                         for x in $LDFLAGS $LIBPTH; do
8450
8451   acl_save_prefix="$prefix"
8452   prefix="$acl_final_prefix"
8453   acl_save_exec_prefix="$exec_prefix"
8454   exec_prefix="$acl_final_exec_prefix"
8455   eval x=\"$x\"
8456   exec_prefix="$acl_save_exec_prefix"
8457   prefix="$acl_save_prefix"
8458
8459                           if test "X$x" = "X-L$additional_libdir"; then
8460                             haveit=yes
8461                             break
8462                           fi
8463                         done
8464                         if test -z "$haveit"; then
8465                           if test -d "$additional_libdir"; then
8466                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8467                           fi
8468                         fi
8469                         haveit=
8470                         for x in $LDFLAGS $LTLIBPTH; do
8471
8472   acl_save_prefix="$prefix"
8473   prefix="$acl_final_prefix"
8474   acl_save_exec_prefix="$exec_prefix"
8475   exec_prefix="$acl_final_exec_prefix"
8476   eval x=\"$x\"
8477   exec_prefix="$acl_save_exec_prefix"
8478   prefix="$acl_save_prefix"
8479
8480                           if test "X$x" = "X-L$additional_libdir"; then
8481                             haveit=yes
8482                             break
8483                           fi
8484                         done
8485                         if test -z "$haveit"; then
8486                           if test -d "$additional_libdir"; then
8487                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8488                           fi
8489                         fi
8490                       fi
8491                     fi
8492                     ;;
8493                   -R*)
8494                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8495                     if test "$enable_rpath" != no; then
8496                                                                   haveit=
8497                       for x in $rpathdirs; do
8498                         if test "X$x" = "X$dir"; then
8499                           haveit=yes
8500                           break
8501                         fi
8502                       done
8503                       if test -z "$haveit"; then
8504                         rpathdirs="$rpathdirs $dir"
8505                       fi
8506                                                                   haveit=
8507                       for x in $ltrpathdirs; do
8508                         if test "X$x" = "X$dir"; then
8509                           haveit=yes
8510                           break
8511                         fi
8512                       done
8513                       if test -z "$haveit"; then
8514                         ltrpathdirs="$ltrpathdirs $dir"
8515                       fi
8516                     fi
8517                     ;;
8518                   -l*)
8519                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8520                     ;;
8521                   *.la)
8522                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8523                     ;;
8524                   *)
8525                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8526                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8527                     ;;
8528                 esac
8529               done
8530             fi
8531           else
8532                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8533             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8534           fi
8535         fi
8536       fi
8537     done
8538   done
8539   if test "X$rpathdirs" != "X"; then
8540     if test -n "$acl_hardcode_libdir_separator"; then
8541                         alldirs=
8542       for found_dir in $rpathdirs; do
8543         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8544       done
8545             acl_save_libdir="$libdir"
8546       libdir="$alldirs"
8547       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8548       libdir="$acl_save_libdir"
8549       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8550     else
8551             for found_dir in $rpathdirs; do
8552         acl_save_libdir="$libdir"
8553         libdir="$found_dir"
8554         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8555         libdir="$acl_save_libdir"
8556         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8557       done
8558     fi
8559   fi
8560   if test "X$ltrpathdirs" != "X"; then
8561             for found_dir in $ltrpathdirs; do
8562       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8563     done
8564   fi
8565
8566
8567
8568
8569
8570
8571     ac_cv_libpth_libs="$LIBPTH"
8572     ac_cv_libpth_ltlibs="$LTLIBPTH"
8573     ac_cv_libpth_cppflags="$INCPTH"
8574     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8575
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8578 $as_echo "$ac_cv_libpth_libs" >&6; }
8579   LIBPTH="$ac_cv_libpth_libs"
8580   LTLIBPTH="$ac_cv_libpth_ltlibs"
8581   INCPTH="$ac_cv_libpth_cppflags"
8582   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8583
8584   for element in $INCPTH; do
8585     haveit=
8586     for x in $CPPFLAGS; do
8587
8588   acl_save_prefix="$prefix"
8589   prefix="$acl_final_prefix"
8590   acl_save_exec_prefix="$exec_prefix"
8591   exec_prefix="$acl_final_exec_prefix"
8592   eval x=\"$x\"
8593   exec_prefix="$acl_save_exec_prefix"
8594   prefix="$acl_save_prefix"
8595
8596       if test "X$x" = "X$element"; then
8597         haveit=yes
8598         break
8599       fi
8600     done
8601     if test -z "$haveit"; then
8602       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8603     fi
8604   done
8605
8606
8607
8608
8609       HAVE_LIBPTH=yes
8610
8611
8612
8613       gl_have_pth=
8614       gl_save_LIBS="$LIBS"
8615       LIBS="$LIBS $LIBPTH"
8616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h.  */
8618 #include <pth.h>
8619 int
8620 main ()
8621 {
8622 pth_self();
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 if ac_fn_c_try_link "$LINENO"; then :
8628   gl_have_pth=yes
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext \
8631     conftest$ac_exeext conftest.$ac_ext
8632       LIBS="$gl_save_LIBS"
8633       if test -n "$gl_have_pth"; then
8634         gl_threads_api=pth
8635         LIBTHREAD="$LIBPTH"
8636         LTLIBTHREAD="$LTLIBPTH"
8637         LIBMULTITHREAD="$LIBTHREAD"
8638         LTLIBMULTITHREAD="$LTLIBTHREAD"
8639
8640 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8641
8642         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8643           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8644
8645 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8646
8647             LIBTHREAD=
8648             LTLIBTHREAD=
8649           fi
8650         fi
8651       else
8652         CPPFLAGS="$gl_save_CPPFLAGS"
8653       fi
8654     fi
8655     if test -z "$gl_have_pthread"; then
8656       case "$gl_use_threads" in
8657         yes | windows | win32) # The 'win32' is for backward compatibility.
8658           if { case "$host_os" in
8659                  mingw*) true;;
8660                  *) false;;
8661                esac
8662              }; then
8663             gl_threads_api=windows
8664
8665 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8666
8667           fi
8668           ;;
8669       esac
8670     fi
8671   fi
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8673 $as_echo_n "checking for multithread API to use... " >&6; }
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8675 $as_echo "$gl_threads_api" >&6; }
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687   if test "$gl_threads_api" = posix; then
8688     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8689     # pthread_rwlock_* functions.
8690     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8691 "
8692 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8693
8694 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8695
8696 fi
8697
8698     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h.  */
8701
8702       #include <pthread.h>
8703 int
8704 main ()
8705 {
8706
8707 #if __FreeBSD__ == 4
8708 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8709 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8710        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8711 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8712 #else
8713 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8714 return !x;
8715 #endif
8716
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"; then :
8722
8723 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8724
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727   fi
8728   :
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741     use_additional=yes
8742
8743   acl_save_prefix="$prefix"
8744   prefix="$acl_final_prefix"
8745   acl_save_exec_prefix="$exec_prefix"
8746   exec_prefix="$acl_final_exec_prefix"
8747
8748     eval additional_includedir=\"$includedir\"
8749     eval additional_libdir=\"$libdir\"
8750
8751   exec_prefix="$acl_save_exec_prefix"
8752   prefix="$acl_save_prefix"
8753
8754
8755 # Check whether --with-libiconv-prefix was given.
8756 if test "${with_libiconv_prefix+set}" = set; then :
8757   withval=$with_libiconv_prefix;
8758     if test "X$withval" = "Xno"; then
8759       use_additional=no
8760     else
8761       if test "X$withval" = "X"; then
8762
8763   acl_save_prefix="$prefix"
8764   prefix="$acl_final_prefix"
8765   acl_save_exec_prefix="$exec_prefix"
8766   exec_prefix="$acl_final_exec_prefix"
8767
8768           eval additional_includedir=\"$includedir\"
8769           eval additional_libdir=\"$libdir\"
8770
8771   exec_prefix="$acl_save_exec_prefix"
8772   prefix="$acl_save_prefix"
8773
8774       else
8775         additional_includedir="$withval/include"
8776         additional_libdir="$withval/$acl_libdirstem"
8777         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8778            && ! test -d "$withval/$acl_libdirstem"; then
8779           additional_libdir="$withval/$acl_libdirstem2"
8780         fi
8781       fi
8782     fi
8783
8784 fi
8785
8786       LIBICONV=
8787   LTLIBICONV=
8788   INCICONV=
8789   LIBICONV_PREFIX=
8790       HAVE_LIBICONV=
8791   rpathdirs=
8792   ltrpathdirs=
8793   names_already_handled=
8794   names_next_round='iconv '
8795   while test -n "$names_next_round"; do
8796     names_this_round="$names_next_round"
8797     names_next_round=
8798     for name in $names_this_round; do
8799       already_handled=
8800       for n in $names_already_handled; do
8801         if test "$n" = "$name"; then
8802           already_handled=yes
8803           break
8804         fi
8805       done
8806       if test -z "$already_handled"; then
8807         names_already_handled="$names_already_handled $name"
8808                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8809         eval value=\"\$HAVE_LIB$uppername\"
8810         if test -n "$value"; then
8811           if test "$value" = yes; then
8812             eval value=\"\$LIB$uppername\"
8813             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8814             eval value=\"\$LTLIB$uppername\"
8815             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8816           else
8817                                     :
8818           fi
8819         else
8820                               found_dir=
8821           found_la=
8822           found_so=
8823           found_a=
8824           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8825           if test -n "$acl_shlibext"; then
8826             shrext=".$acl_shlibext"             # typically: shrext=.so
8827           else
8828             shrext=
8829           fi
8830           if test $use_additional = yes; then
8831             dir="$additional_libdir"
8832                                     if test -n "$acl_shlibext"; then
8833               if test -f "$dir/$libname$shrext"; then
8834                 found_dir="$dir"
8835                 found_so="$dir/$libname$shrext"
8836               else
8837                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8838                   ver=`(cd "$dir" && \
8839                         for f in "$libname$shrext".*; do echo "$f"; done \
8840                         | sed -e "s,^$libname$shrext\\\\.,," \
8841                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8842                         | sed 1q ) 2>/dev/null`
8843                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8844                     found_dir="$dir"
8845                     found_so="$dir/$libname$shrext.$ver"
8846                   fi
8847                 else
8848                   eval library_names=\"$acl_library_names_spec\"
8849                   for f in $library_names; do
8850                     if test -f "$dir/$f"; then
8851                       found_dir="$dir"
8852                       found_so="$dir/$f"
8853                       break
8854                     fi
8855                   done
8856                 fi
8857               fi
8858             fi
8859                         if test "X$found_dir" = "X"; then
8860               if test -f "$dir/$libname.$acl_libext"; then
8861                 found_dir="$dir"
8862                 found_a="$dir/$libname.$acl_libext"
8863               fi
8864             fi
8865             if test "X$found_dir" != "X"; then
8866               if test -f "$dir/$libname.la"; then
8867                 found_la="$dir/$libname.la"
8868               fi
8869             fi
8870           fi
8871           if test "X$found_dir" = "X"; then
8872             for x in $LDFLAGS $LTLIBICONV; do
8873
8874   acl_save_prefix="$prefix"
8875   prefix="$acl_final_prefix"
8876   acl_save_exec_prefix="$exec_prefix"
8877   exec_prefix="$acl_final_exec_prefix"
8878   eval x=\"$x\"
8879   exec_prefix="$acl_save_exec_prefix"
8880   prefix="$acl_save_prefix"
8881
8882               case "$x" in
8883                 -L*)
8884                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8885                                     if test -n "$acl_shlibext"; then
8886                     if test -f "$dir/$libname$shrext"; then
8887                       found_dir="$dir"
8888                       found_so="$dir/$libname$shrext"
8889                     else
8890                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8891                         ver=`(cd "$dir" && \
8892                               for f in "$libname$shrext".*; do echo "$f"; done \
8893                               | sed -e "s,^$libname$shrext\\\\.,," \
8894                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8895                               | sed 1q ) 2>/dev/null`
8896                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8897                           found_dir="$dir"
8898                           found_so="$dir/$libname$shrext.$ver"
8899                         fi
8900                       else
8901                         eval library_names=\"$acl_library_names_spec\"
8902                         for f in $library_names; do
8903                           if test -f "$dir/$f"; then
8904                             found_dir="$dir"
8905                             found_so="$dir/$f"
8906                             break
8907                           fi
8908                         done
8909                       fi
8910                     fi
8911                   fi
8912                                     if test "X$found_dir" = "X"; then
8913                     if test -f "$dir/$libname.$acl_libext"; then
8914                       found_dir="$dir"
8915                       found_a="$dir/$libname.$acl_libext"
8916                     fi
8917                   fi
8918                   if test "X$found_dir" != "X"; then
8919                     if test -f "$dir/$libname.la"; then
8920                       found_la="$dir/$libname.la"
8921                     fi
8922                   fi
8923                   ;;
8924               esac
8925               if test "X$found_dir" != "X"; then
8926                 break
8927               fi
8928             done
8929           fi
8930           if test "X$found_dir" != "X"; then
8931                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8932             if test "X$found_so" != "X"; then
8933                                                         if test "$enable_rpath" = no \
8934                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8935                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8936                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8937               else
8938                                                                                 haveit=
8939                 for x in $ltrpathdirs; do
8940                   if test "X$x" = "X$found_dir"; then
8941                     haveit=yes
8942                     break
8943                   fi
8944                 done
8945                 if test -z "$haveit"; then
8946                   ltrpathdirs="$ltrpathdirs $found_dir"
8947                 fi
8948                                 if test "$acl_hardcode_direct" = yes; then
8949                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8950                 else
8951                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8952                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8953                                                             haveit=
8954                     for x in $rpathdirs; do
8955                       if test "X$x" = "X$found_dir"; then
8956                         haveit=yes
8957                         break
8958                       fi
8959                     done
8960                     if test -z "$haveit"; then
8961                       rpathdirs="$rpathdirs $found_dir"
8962                     fi
8963                   else
8964                                                                                 haveit=
8965                     for x in $LDFLAGS $LIBICONV; do
8966
8967   acl_save_prefix="$prefix"
8968   prefix="$acl_final_prefix"
8969   acl_save_exec_prefix="$exec_prefix"
8970   exec_prefix="$acl_final_exec_prefix"
8971   eval x=\"$x\"
8972   exec_prefix="$acl_save_exec_prefix"
8973   prefix="$acl_save_prefix"
8974
8975                       if test "X$x" = "X-L$found_dir"; then
8976                         haveit=yes
8977                         break
8978                       fi
8979                     done
8980                     if test -z "$haveit"; then
8981                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8982                     fi
8983                     if test "$acl_hardcode_minus_L" != no; then
8984                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8985                     else
8986                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8987                     fi
8988                   fi
8989                 fi
8990               fi
8991             else
8992               if test "X$found_a" != "X"; then
8993                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8994               else
8995                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8996               fi
8997             fi
8998                         additional_includedir=
8999             case "$found_dir" in
9000               */$acl_libdirstem | */$acl_libdirstem/)
9001                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9002                 if test "$name" = 'iconv'; then
9003                   LIBICONV_PREFIX="$basedir"
9004                 fi
9005                 additional_includedir="$basedir/include"
9006                 ;;
9007               */$acl_libdirstem2 | */$acl_libdirstem2/)
9008                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9009                 if test "$name" = 'iconv'; then
9010                   LIBICONV_PREFIX="$basedir"
9011                 fi
9012                 additional_includedir="$basedir/include"
9013                 ;;
9014             esac
9015             if test "X$additional_includedir" != "X"; then
9016                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9017                 haveit=
9018                 if test "X$additional_includedir" = "X/usr/local/include"; then
9019                   if test -n "$GCC"; then
9020                     case $host_os in
9021                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9022                     esac
9023                   fi
9024                 fi
9025                 if test -z "$haveit"; then
9026                   for x in $CPPFLAGS $INCICONV; do
9027
9028   acl_save_prefix="$prefix"
9029   prefix="$acl_final_prefix"
9030   acl_save_exec_prefix="$exec_prefix"
9031   exec_prefix="$acl_final_exec_prefix"
9032   eval x=\"$x\"
9033   exec_prefix="$acl_save_exec_prefix"
9034   prefix="$acl_save_prefix"
9035
9036                     if test "X$x" = "X-I$additional_includedir"; then
9037                       haveit=yes
9038                       break
9039                     fi
9040                   done
9041                   if test -z "$haveit"; then
9042                     if test -d "$additional_includedir"; then
9043                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9044                     fi
9045                   fi
9046                 fi
9047               fi
9048             fi
9049                         if test -n "$found_la"; then
9050                                                         save_libdir="$libdir"
9051               case "$found_la" in
9052                 */* | *\\*) . "$found_la" ;;
9053                 *) . "./$found_la" ;;
9054               esac
9055               libdir="$save_libdir"
9056                             for dep in $dependency_libs; do
9057                 case "$dep" in
9058                   -L*)
9059                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9060                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9061                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9062                       haveit=
9063                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9064                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9065                         if test -n "$GCC"; then
9066                           case $host_os in
9067                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9068                           esac
9069                         fi
9070                       fi
9071                       if test -z "$haveit"; then
9072                         haveit=
9073                         for x in $LDFLAGS $LIBICONV; do
9074
9075   acl_save_prefix="$prefix"
9076   prefix="$acl_final_prefix"
9077   acl_save_exec_prefix="$exec_prefix"
9078   exec_prefix="$acl_final_exec_prefix"
9079   eval x=\"$x\"
9080   exec_prefix="$acl_save_exec_prefix"
9081   prefix="$acl_save_prefix"
9082
9083                           if test "X$x" = "X-L$additional_libdir"; then
9084                             haveit=yes
9085                             break
9086                           fi
9087                         done
9088                         if test -z "$haveit"; then
9089                           if test -d "$additional_libdir"; then
9090                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9091                           fi
9092                         fi
9093                         haveit=
9094                         for x in $LDFLAGS $LTLIBICONV; do
9095
9096   acl_save_prefix="$prefix"
9097   prefix="$acl_final_prefix"
9098   acl_save_exec_prefix="$exec_prefix"
9099   exec_prefix="$acl_final_exec_prefix"
9100   eval x=\"$x\"
9101   exec_prefix="$acl_save_exec_prefix"
9102   prefix="$acl_save_prefix"
9103
9104                           if test "X$x" = "X-L$additional_libdir"; then
9105                             haveit=yes
9106                             break
9107                           fi
9108                         done
9109                         if test -z "$haveit"; then
9110                           if test -d "$additional_libdir"; then
9111                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9112                           fi
9113                         fi
9114                       fi
9115                     fi
9116                     ;;
9117                   -R*)
9118                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9119                     if test "$enable_rpath" != no; then
9120                                                                   haveit=
9121                       for x in $rpathdirs; do
9122                         if test "X$x" = "X$dir"; then
9123                           haveit=yes
9124                           break
9125                         fi
9126                       done
9127                       if test -z "$haveit"; then
9128                         rpathdirs="$rpathdirs $dir"
9129                       fi
9130                                                                   haveit=
9131                       for x in $ltrpathdirs; do
9132                         if test "X$x" = "X$dir"; then
9133                           haveit=yes
9134                           break
9135                         fi
9136                       done
9137                       if test -z "$haveit"; then
9138                         ltrpathdirs="$ltrpathdirs $dir"
9139                       fi
9140                     fi
9141                     ;;
9142                   -l*)
9143                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9144                     ;;
9145                   *.la)
9146                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9147                     ;;
9148                   *)
9149                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9150                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9151                     ;;
9152                 esac
9153               done
9154             fi
9155           else
9156                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9157             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9158           fi
9159         fi
9160       fi
9161     done
9162   done
9163   if test "X$rpathdirs" != "X"; then
9164     if test -n "$acl_hardcode_libdir_separator"; then
9165                         alldirs=
9166       for found_dir in $rpathdirs; do
9167         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9168       done
9169             acl_save_libdir="$libdir"
9170       libdir="$alldirs"
9171       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9172       libdir="$acl_save_libdir"
9173       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9174     else
9175             for found_dir in $rpathdirs; do
9176         acl_save_libdir="$libdir"
9177         libdir="$found_dir"
9178         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9179         libdir="$acl_save_libdir"
9180         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9181       done
9182     fi
9183   fi
9184   if test "X$ltrpathdirs" != "X"; then
9185             for found_dir in $ltrpathdirs; do
9186       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9187     done
9188   fi
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201           am_save_CPPFLAGS="$CPPFLAGS"
9202
9203   for element in $INCICONV; do
9204     haveit=
9205     for x in $CPPFLAGS; do
9206
9207   acl_save_prefix="$prefix"
9208   prefix="$acl_final_prefix"
9209   acl_save_exec_prefix="$exec_prefix"
9210   exec_prefix="$acl_final_exec_prefix"
9211   eval x=\"$x\"
9212   exec_prefix="$acl_save_exec_prefix"
9213   prefix="$acl_save_prefix"
9214
9215       if test "X$x" = "X$element"; then
9216         haveit=yes
9217         break
9218       fi
9219     done
9220     if test -z "$haveit"; then
9221       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9222     fi
9223   done
9224
9225
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9227 $as_echo_n "checking for iconv... " >&6; }
9228 if ${am_cv_func_iconv+:} false; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231
9232     am_cv_func_iconv="no, consider installing GNU libiconv"
9233     am_cv_lib_iconv=no
9234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h.  */
9236
9237 #include <stdlib.h>
9238 #include <iconv.h>
9239
9240 int
9241 main ()
9242 {
9243 iconv_t cd = iconv_open("","");
9244            iconv(cd,NULL,NULL,NULL,NULL);
9245            iconv_close(cd);
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251   am_cv_func_iconv=yes
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext \
9254     conftest$ac_exeext conftest.$ac_ext
9255     if test "$am_cv_func_iconv" != yes; then
9256       am_save_LIBS="$LIBS"
9257       LIBS="$LIBS $LIBICONV"
9258       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h.  */
9260
9261 #include <stdlib.h>
9262 #include <iconv.h>
9263
9264 int
9265 main ()
9266 {
9267 iconv_t cd = iconv_open("","");
9268              iconv(cd,NULL,NULL,NULL,NULL);
9269              iconv_close(cd);
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275   am_cv_lib_iconv=yes
9276         am_cv_func_iconv=yes
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279     conftest$ac_exeext conftest.$ac_ext
9280       LIBS="$am_save_LIBS"
9281     fi
9282
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9285 $as_echo "$am_cv_func_iconv" >&6; }
9286   if test "$am_cv_func_iconv" = yes; then
9287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9288 $as_echo_n "checking for working iconv... " >&6; }
9289 if ${am_cv_func_iconv_works+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292
9293                   am_save_LIBS="$LIBS"
9294       if test $am_cv_lib_iconv = yes; then
9295         LIBS="$LIBS $LIBICONV"
9296       fi
9297       if test "$cross_compiling" = yes; then :
9298
9299          case "$host_os" in
9300            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9301            *)            am_cv_func_iconv_works="guessing yes" ;;
9302          esac
9303
9304 else
9305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h.  */
9307
9308 #include <iconv.h>
9309 #include <string.h>
9310 int main ()
9311 {
9312   int result = 0;
9313   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9314      returns.  */
9315   {
9316     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9317     if (cd_utf8_to_88591 != (iconv_t)(-1))
9318       {
9319         static const char input[] = "\342\202\254"; /* EURO SIGN */
9320         char buf[10];
9321         const char *inptr = input;
9322         size_t inbytesleft = strlen (input);
9323         char *outptr = buf;
9324         size_t outbytesleft = sizeof (buf);
9325         size_t res = iconv (cd_utf8_to_88591,
9326                             (char **) &inptr, &inbytesleft,
9327                             &outptr, &outbytesleft);
9328         if (res == 0)
9329           result |= 1;
9330         iconv_close (cd_utf8_to_88591);
9331       }
9332   }
9333   /* Test against Solaris 10 bug: Failures are not distinguishable from
9334      successful returns.  */
9335   {
9336     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9337     if (cd_ascii_to_88591 != (iconv_t)(-1))
9338       {
9339         static const char input[] = "\263";
9340         char buf[10];
9341         const char *inptr = input;
9342         size_t inbytesleft = strlen (input);
9343         char *outptr = buf;
9344         size_t outbytesleft = sizeof (buf);
9345         size_t res = iconv (cd_ascii_to_88591,
9346                             (char **) &inptr, &inbytesleft,
9347                             &outptr, &outbytesleft);
9348         if (res == 0)
9349           result |= 2;
9350         iconv_close (cd_ascii_to_88591);
9351       }
9352   }
9353   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9354   {
9355     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9356     if (cd_88591_to_utf8 != (iconv_t)(-1))
9357       {
9358         static const char input[] = "\304";
9359         static char buf[2] = { (char)0xDE, (char)0xAD };
9360         const char *inptr = input;
9361         size_t inbytesleft = 1;
9362         char *outptr = buf;
9363         size_t outbytesleft = 1;
9364         size_t res = iconv (cd_88591_to_utf8,
9365                             (char **) &inptr, &inbytesleft,
9366                             &outptr, &outbytesleft);
9367         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9368           result |= 4;
9369         iconv_close (cd_88591_to_utf8);
9370       }
9371   }
9372 #if 0 /* This bug could be worked around by the caller.  */
9373   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9374   {
9375     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9376     if (cd_88591_to_utf8 != (iconv_t)(-1))
9377       {
9378         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9379         char buf[50];
9380         const char *inptr = input;
9381         size_t inbytesleft = strlen (input);
9382         char *outptr = buf;
9383         size_t outbytesleft = sizeof (buf);
9384         size_t res = iconv (cd_88591_to_utf8,
9385                             (char **) &inptr, &inbytesleft,
9386                             &outptr, &outbytesleft);
9387         if ((int)res > 0)
9388           result |= 8;
9389         iconv_close (cd_88591_to_utf8);
9390       }
9391   }
9392 #endif
9393   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9394      provided.  */
9395   if (/* Try standardized names.  */
9396       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9397       /* Try IRIX, OSF/1 names.  */
9398       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9399       /* Try AIX names.  */
9400       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9401       /* Try HP-UX names.  */
9402       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9403     result |= 16;
9404   return result;
9405 }
9406 _ACEOF
9407 if ac_fn_c_try_run "$LINENO"; then :
9408   am_cv_func_iconv_works=yes
9409 else
9410   am_cv_func_iconv_works=no
9411 fi
9412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9413   conftest.$ac_objext conftest.beam conftest.$ac_ext
9414 fi
9415
9416       LIBS="$am_save_LIBS"
9417
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9420 $as_echo "$am_cv_func_iconv_works" >&6; }
9421     case "$am_cv_func_iconv_works" in
9422       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9423       *)   am_func_iconv=yes ;;
9424     esac
9425   else
9426     am_func_iconv=no am_cv_lib_iconv=no
9427   fi
9428   if test "$am_func_iconv" = yes; then
9429
9430 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9431
9432   fi
9433   if test "$am_cv_lib_iconv" = yes; then
9434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9435 $as_echo_n "checking how to link with libiconv... " >&6; }
9436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9437 $as_echo "$LIBICONV" >&6; }
9438   else
9439             CPPFLAGS="$am_save_CPPFLAGS"
9440     LIBICONV=
9441     LTLIBICONV=
9442   fi
9443
9444
9445
9446   if test "$am_cv_func_iconv" = yes; then
9447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9448 $as_echo_n "checking for iconv declaration... " >&6; }
9449     if ${am_cv_proto_iconv+:} false; then :
9450   $as_echo_n "(cached) " >&6
9451 else
9452
9453       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h.  */
9455
9456 #include <stdlib.h>
9457 #include <iconv.h>
9458 extern
9459 #ifdef __cplusplus
9460 "C"
9461 #endif
9462 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9463 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9464 #else
9465 size_t iconv();
9466 #endif
9467
9468 int
9469 main ()
9470 {
9471
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 if ac_fn_c_try_compile "$LINENO"; then :
9477   am_cv_proto_iconv_arg1=""
9478 else
9479   am_cv_proto_iconv_arg1="const"
9480 fi
9481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482       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);"
9483 fi
9484
9485     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9486     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9487          $am_cv_proto_iconv" >&5
9488 $as_echo "
9489          $am_cv_proto_iconv" >&6; }
9490
9491 cat >>confdefs.h <<_ACEOF
9492 #define ICONV_CONST $am_cv_proto_iconv_arg1
9493 _ACEOF
9494
9495
9496   fi
9497
9498
9499
9500
9501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h.  */
9503 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9504 int
9505 main ()
9506 {
9507
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513
9514 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9515
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518     conftest$ac_exeext conftest.$ac_ext
9519
9520   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9521 do :
9522   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9525   cat >>confdefs.h <<_ACEOF
9526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9527 _ACEOF
9528
9529 fi
9530
9531 done
9532
9533   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9534     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9535     argz_stringify argz_next __fsetlocking
9536 do :
9537   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9540   cat >>confdefs.h <<_ACEOF
9541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9542 _ACEOF
9543
9544 fi
9545 done
9546
9547
9548           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9549 "
9550 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9551   ac_have_decl=1
9552 else
9553   ac_have_decl=0
9554 fi
9555
9556 cat >>confdefs.h <<_ACEOF
9557 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9558 _ACEOF
9559 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9560 "
9561 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9562   ac_have_decl=1
9563 else
9564   ac_have_decl=0
9565 fi
9566
9567 cat >>confdefs.h <<_ACEOF
9568 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9569 _ACEOF
9570
9571
9572
9573
9574                       for ac_prog in bison
9575 do
9576   # Extract the first word of "$ac_prog", so it can be a program name with args.
9577 set dummy $ac_prog; ac_word=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 $as_echo_n "checking for $ac_word... " >&6; }
9580 if ${ac_cv_prog_INTLBISON+:} false; then :
9581   $as_echo_n "(cached) " >&6
9582 else
9583   if test -n "$INTLBISON"; then
9584   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9585 else
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9588 do
9589   IFS=$as_save_IFS
9590   test -z "$as_dir" && as_dir=.
9591     for ac_exec_ext in '' $ac_executable_extensions; do
9592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9593     ac_cv_prog_INTLBISON="$ac_prog"
9594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595     break 2
9596   fi
9597 done
9598   done
9599 IFS=$as_save_IFS
9600
9601 fi
9602 fi
9603 INTLBISON=$ac_cv_prog_INTLBISON
9604 if test -n "$INTLBISON"; then
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9606 $as_echo "$INTLBISON" >&6; }
9607 else
9608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9610 fi
9611
9612
9613   test -n "$INTLBISON" && break
9614 done
9615
9616   if test -z "$INTLBISON"; then
9617     ac_verc_fail=yes
9618   else
9619         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9620 $as_echo_n "checking version of bison... " >&6; }
9621     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9622     case $ac_prog_version in
9623       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9624       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9625          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9626       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9627     esac
9628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9629 $as_echo "$ac_prog_version" >&6; }
9630   fi
9631   if test $ac_verc_fail = yes; then
9632     INTLBISON=:
9633   fi
9634
9635
9636
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9638 $as_echo_n "checking for long long int... " >&6; }
9639 if ${ac_cv_type_long_long_int+:} false; then :
9640   $as_echo_n "(cached) " >&6
9641 else
9642   ac_cv_type_long_long_int=yes
9643       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9644         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9645         if test $ac_cv_type_long_long_int = yes; then
9646                                         if test "$cross_compiling" = yes; then :
9647   :
9648 else
9649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h.  */
9651 #include <limits.h>
9652                  #ifndef LLONG_MAX
9653                  # define HALF \
9654                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9655                  # define LLONG_MAX (HALF - 1 + HALF)
9656                  #endif
9657 int
9658 main ()
9659 {
9660 long long int n = 1;
9661                  int i;
9662                  for (i = 0; ; i++)
9663                    {
9664                      long long int m = n << i;
9665                      if (m >> i != n)
9666                        return 1;
9667                      if (LLONG_MAX / 2 < m)
9668                        break;
9669                    }
9670                  return 0;
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_run "$LINENO"; then :
9676
9677 else
9678   ac_cv_type_long_long_int=no
9679 fi
9680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9681   conftest.$ac_objext conftest.beam conftest.$ac_ext
9682 fi
9683
9684         fi
9685       fi
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9688 $as_echo "$ac_cv_type_long_long_int" >&6; }
9689   if test $ac_cv_type_long_long_int = yes; then
9690
9691 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9692
9693   fi
9694
9695
9696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9697 $as_echo_n "checking for wchar_t... " >&6; }
9698 if ${gt_cv_c_wchar_t+:} false; then :
9699   $as_echo_n "(cached) " >&6
9700 else
9701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h.  */
9703 #include <stddef.h>
9704             wchar_t foo = (wchar_t)'\0';
9705 int
9706 main ()
9707 {
9708
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_compile "$LINENO"; then :
9714   gt_cv_c_wchar_t=yes
9715 else
9716   gt_cv_c_wchar_t=no
9717 fi
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 fi
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9721 $as_echo "$gt_cv_c_wchar_t" >&6; }
9722   if test $gt_cv_c_wchar_t = yes; then
9723
9724 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9725
9726   fi
9727
9728
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9730 $as_echo_n "checking for wint_t... " >&6; }
9731 if ${gt_cv_c_wint_t+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h.  */
9736
9737 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9738    <wchar.h>.
9739    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9740    before <wchar.h>.  */
9741 #include <stddef.h>
9742 #include <stdio.h>
9743 #include <time.h>
9744 #include <wchar.h>
9745             wint_t foo = (wchar_t)'\0';
9746 int
9747 main ()
9748 {
9749
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 if ac_fn_c_try_compile "$LINENO"; then :
9755   gt_cv_c_wint_t=yes
9756 else
9757   gt_cv_c_wint_t=no
9758 fi
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 fi
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9762 $as_echo "$gt_cv_c_wint_t" >&6; }
9763   if test $gt_cv_c_wint_t = yes; then
9764
9765 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9766
9767   fi
9768
9769
9770
9771
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9773 $as_echo_n "checking for intmax_t... " >&6; }
9774 if ${gt_cv_c_intmax_t+:} false; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h.  */
9779
9780 #include <stddef.h>
9781 #include <stdlib.h>
9782 #if HAVE_STDINT_H_WITH_UINTMAX
9783 #include <stdint.h>
9784 #endif
9785 #if HAVE_INTTYPES_H_WITH_UINTMAX
9786 #include <inttypes.h>
9787 #endif
9788
9789 int
9790 main ()
9791 {
9792 intmax_t x = -1;
9793             return !x;
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 if ac_fn_c_try_compile "$LINENO"; then :
9799   gt_cv_c_intmax_t=yes
9800 else
9801   gt_cv_c_intmax_t=no
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9806 $as_echo "$gt_cv_c_intmax_t" >&6; }
9807   if test $gt_cv_c_intmax_t = yes; then
9808
9809 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9810
9811   fi
9812
9813
9814
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9816 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9817 if ${gt_cv_func_printf_posix+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820
9821       if test "$cross_compiling" = yes; then :
9822
9823           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h.  */
9825
9826 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9827   notposix
9828 #endif
9829
9830 _ACEOF
9831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9832   $EGREP "notposix" >/dev/null 2>&1; then :
9833   gt_cv_func_printf_posix="guessing no"
9834 else
9835   gt_cv_func_printf_posix="guessing yes"
9836 fi
9837 rm -f conftest*
9838
9839
9840 else
9841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h.  */
9843
9844 #include <stdio.h>
9845 #include <string.h>
9846 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9847    dollar expansion (possibly an autoconf bug).  */
9848 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9849 static char buf[100];
9850 int main ()
9851 {
9852   sprintf (buf, format, 33, 55);
9853   return (strcmp (buf, "55 33") != 0);
9854 }
9855 _ACEOF
9856 if ac_fn_c_try_run "$LINENO"; then :
9857   gt_cv_func_printf_posix=yes
9858 else
9859   gt_cv_func_printf_posix=no
9860 fi
9861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9862   conftest.$ac_objext conftest.beam conftest.$ac_ext
9863 fi
9864
9865
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9868 $as_echo "$gt_cv_func_printf_posix" >&6; }
9869   case $gt_cv_func_printf_posix in
9870     *yes)
9871
9872 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9873
9874       ;;
9875   esac
9876
9877
9878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9879 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9880 if ${ac_cv_gnu_library_2_1+:} false; then :
9881   $as_echo_n "(cached) " >&6
9882 else
9883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h.  */
9885
9886 #include <features.h>
9887 #ifdef __GNU_LIBRARY__
9888  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9889   Lucky GNU user
9890  #endif
9891 #endif
9892 #ifdef __UCLIBC__
9893  Lucky user
9894 #endif
9895
9896 _ACEOF
9897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9898   $EGREP "Lucky" >/dev/null 2>&1; then :
9899   ac_cv_gnu_library_2_1=yes
9900 else
9901   ac_cv_gnu_library_2_1=no
9902 fi
9903 rm -f conftest*
9904
9905
9906
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9909 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9910
9911     GLIBC21="$ac_cv_gnu_library_2_1"
9912
9913
9914
9915   for ac_header in stdint.h
9916 do :
9917   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9918 if test "x$ac_cv_header_stdint_h" = xyes; then :
9919   cat >>confdefs.h <<_ACEOF
9920 #define HAVE_STDINT_H 1
9921 _ACEOF
9922
9923 fi
9924
9925 done
9926
9927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9928 $as_echo_n "checking for SIZE_MAX... " >&6; }
9929 if ${gl_cv_size_max+:} false; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932
9933     gl_cv_size_max=
9934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h.  */
9936
9937 #include <limits.h>
9938 #if HAVE_STDINT_H
9939 #include <stdint.h>
9940 #endif
9941 #ifdef SIZE_MAX
9942 Found it
9943 #endif
9944
9945 _ACEOF
9946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9947   $EGREP "Found it" >/dev/null 2>&1; then :
9948   gl_cv_size_max=yes
9949 fi
9950 rm -f conftest*
9951
9952     if test -z "$gl_cv_size_max"; then
9953                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
9954 #include <limits.h>"; then :
9955
9956 else
9957   size_t_bits_minus_1=
9958 fi
9959
9960       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
9961
9962 else
9963   fits_in_uint=
9964 fi
9965
9966       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9967         if test $fits_in_uint = 1; then
9968                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h.  */
9970 #include <stddef.h>
9971                  extern size_t foo;
9972                  extern unsigned long foo;
9973
9974 int
9975 main ()
9976 {
9977
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"; then :
9983   fits_in_uint=0
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9986         fi
9987                                 if test $fits_in_uint = 1; then
9988           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9989         else
9990           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9991         fi
9992       else
9993                 gl_cv_size_max='((size_t)~(size_t)0)'
9994       fi
9995     fi
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9999 $as_echo "$gl_cv_size_max" >&6; }
10000   if test "$gl_cv_size_max" != yes; then
10001
10002 cat >>confdefs.h <<_ACEOF
10003 #define SIZE_MAX $gl_cv_size_max
10004 _ACEOF
10005
10006   fi
10007
10008
10009
10010
10011   for ac_header in stdint.h
10012 do :
10013   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10014 if test "x$ac_cv_header_stdint_h" = xyes; then :
10015   cat >>confdefs.h <<_ACEOF
10016 #define HAVE_STDINT_H 1
10017 _ACEOF
10018
10019 fi
10020
10021 done
10022
10023
10024
10025
10026
10027   for ac_func in $ac_func_list
10028 do :
10029   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10032   cat >>confdefs.h <<_ACEOF
10033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10034 _ACEOF
10035
10036 fi
10037 done
10038
10039
10040
10041
10042
10043
10044
10045
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10047 $as_echo_n "checking for working fcntl.h... " >&6; }
10048 if ${gl_cv_header_working_fcntl_h+:} false; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051   if test "$cross_compiling" = yes; then :
10052   gl_cv_header_working_fcntl_h=cross-compiling
10053 else
10054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h.  */
10056 #include <sys/types.h>
10057            #include <sys/stat.h>
10058            #if HAVE_UNISTD_H
10059            # include <unistd.h>
10060            #else /* on Windows with MSVC */
10061            # include <io.h>
10062            # include <stdlib.h>
10063            # defined sleep(n) _sleep ((n) * 1000)
10064            #endif
10065            #include <fcntl.h>
10066            #ifndef O_NOATIME
10067             #define O_NOATIME 0
10068            #endif
10069            #ifndef O_NOFOLLOW
10070             #define O_NOFOLLOW 0
10071            #endif
10072            static int const constants[] =
10073             {
10074               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10075               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10076             };
10077
10078 int
10079 main ()
10080 {
10081
10082             int result = !constants;
10083             #if HAVE_SYMLINK
10084             {
10085               static char const sym[] = "conftest.sym";
10086               if (symlink ("/dev/null", sym) != 0)
10087                 result |= 2;
10088               else
10089                 {
10090                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10091                   if (fd >= 0)
10092                     {
10093                       close (fd);
10094                       result |= 4;
10095                     }
10096                 }
10097               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10098                 result |= 2;
10099               else
10100                 {
10101                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10102                   if (fd >= 0)
10103                     {
10104                       close (fd);
10105                       result |= 4;
10106                     }
10107                 }
10108               unlink (sym);
10109             }
10110             #endif
10111             {
10112               static char const file[] = "confdefs.h";
10113               int fd = open (file, O_RDONLY | O_NOATIME);
10114               if (fd < 0)
10115                 result |= 8;
10116               else
10117                 {
10118                   struct stat st0;
10119                   if (fstat (fd, &st0) != 0)
10120                     result |= 16;
10121                   else
10122                     {
10123                       char c;
10124                       sleep (1);
10125                       if (read (fd, &c, 1) != 1)
10126                         result |= 24;
10127                       else
10128                         {
10129                           if (close (fd) != 0)
10130                             result |= 32;
10131                           else
10132                             {
10133                               struct stat st1;
10134                               if (stat (file, &st1) != 0)
10135                                 result |= 40;
10136                               else
10137                                 if (st0.st_atime != st1.st_atime)
10138                                   result |= 64;
10139                             }
10140                         }
10141                     }
10142                 }
10143             }
10144             return result;
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_run "$LINENO"; then :
10150   gl_cv_header_working_fcntl_h=yes
10151 else
10152   case $? in #(
10153         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10154         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10155         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10156          *) gl_cv_header_working_fcntl_h='no';;
10157         esac
10158 fi
10159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10160   conftest.$ac_objext conftest.beam conftest.$ac_ext
10161 fi
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10165 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10166
10167   case $gl_cv_header_working_fcntl_h in #(
10168   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10169   *) ac_val=1;;
10170   esac
10171
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_WORKING_O_NOATIME $ac_val
10174 _ACEOF
10175
10176
10177   case $gl_cv_header_working_fcntl_h in #(
10178   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10179   *) ac_val=1;;
10180   esac
10181
10182 cat >>confdefs.h <<_ACEOF
10183 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10184 _ACEOF
10185
10186
10187
10188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10189 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10190 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   gt_save_LIBS="$LIBS"
10194      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10195      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h.  */
10197 #include <CoreFoundation/CFPreferences.h>
10198 int
10199 main ()
10200 {
10201 CFPreferencesCopyAppValue(NULL, NULL)
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207   gt_cv_func_CFPreferencesCopyAppValue=yes
10208 else
10209   gt_cv_func_CFPreferencesCopyAppValue=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213      LIBS="$gt_save_LIBS"
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10216 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10217   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10218
10219 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10220
10221   fi
10222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10223 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10224 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   gt_save_LIBS="$LIBS"
10228      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10229      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h.  */
10231 #include <CoreFoundation/CFLocale.h>
10232 int
10233 main ()
10234 {
10235 CFLocaleCopyCurrent();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241   gt_cv_func_CFLocaleCopyCurrent=yes
10242 else
10243   gt_cv_func_CFLocaleCopyCurrent=no
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext \
10246     conftest$ac_exeext conftest.$ac_ext
10247      LIBS="$gt_save_LIBS"
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10250 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10251   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10252
10253 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10254
10255   fi
10256   INTL_MACOSX_LIBS=
10257   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10258     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10259   fi
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270     case "$enable_silent_rules" in
10271     yes) INTL_DEFAULT_VERBOSITY=0;;
10272     no)  INTL_DEFAULT_VERBOSITY=1;;
10273     *)   INTL_DEFAULT_VERBOSITY=1;;
10274   esac
10275
10276
10277   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10278 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10279
10280 else
10281
10282 $as_echo "#define ptrdiff_t long" >>confdefs.h
10283
10284
10285 fi
10286
10287   for ac_header in features.h stddef.h stdlib.h string.h
10288 do :
10289   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10292   cat >>confdefs.h <<_ACEOF
10293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10294 _ACEOF
10295
10296 fi
10297
10298 done
10299
10300   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10301     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10302 do :
10303   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10305 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10306   cat >>confdefs.h <<_ACEOF
10307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10308 _ACEOF
10309
10310 fi
10311 done
10312
10313
10314       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10315 "
10316 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10317   ac_have_decl=1
10318 else
10319   ac_have_decl=0
10320 fi
10321
10322 cat >>confdefs.h <<_ACEOF
10323 #define HAVE_DECL__SNPRINTF $ac_have_decl
10324 _ACEOF
10325 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10326 "
10327 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10328   ac_have_decl=1
10329 else
10330   ac_have_decl=0
10331 fi
10332
10333 cat >>confdefs.h <<_ACEOF
10334 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10335 _ACEOF
10336
10337
10338           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10339 "
10340 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10341   ac_have_decl=1
10342 else
10343   ac_have_decl=0
10344 fi
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10348 _ACEOF
10349
10350
10351   case $gt_cv_func_printf_posix in
10352     *yes) HAVE_POSIX_PRINTF=1 ;;
10353     *) HAVE_POSIX_PRINTF=0 ;;
10354   esac
10355
10356   if test "$ac_cv_func_asprintf" = yes; then
10357     HAVE_ASPRINTF=1
10358   else
10359     HAVE_ASPRINTF=0
10360   fi
10361
10362   if test "$ac_cv_func_snprintf" = yes; then
10363     HAVE_SNPRINTF=1
10364   else
10365     HAVE_SNPRINTF=0
10366   fi
10367
10368   if test "$ac_cv_func_newlocale" = yes; then
10369     HAVE_NEWLOCALE=1
10370   else
10371     HAVE_NEWLOCALE=0
10372   fi
10373
10374   if test "$ac_cv_func_wprintf" = yes; then
10375     HAVE_WPRINTF=1
10376   else
10377     HAVE_WPRINTF=0
10378   fi
10379
10380
10381
10382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10383 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10384 if ${am_cv_langinfo_codeset+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h.  */
10389 #include <langinfo.h>
10390 int
10391 main ()
10392 {
10393 char* cs = nl_langinfo(CODESET); return !cs;
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10399   am_cv_langinfo_codeset=yes
10400 else
10401   am_cv_langinfo_codeset=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext \
10404     conftest$ac_exeext conftest.$ac_ext
10405
10406 fi
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10408 $as_echo "$am_cv_langinfo_codeset" >&6; }
10409   if test $am_cv_langinfo_codeset = yes; then
10410
10411 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10412
10413   fi
10414
10415
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10417 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10418 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h.  */
10423 #include <locale.h>
10424 int
10425 main ()
10426 {
10427 return LC_MESSAGES
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433   gt_cv_val_LC_MESSAGES=yes
10434 else
10435   gt_cv_val_LC_MESSAGES=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438     conftest$ac_exeext conftest.$ac_ext
10439 fi
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10441 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10442   if test $gt_cv_val_LC_MESSAGES = yes; then
10443
10444 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10445
10446   fi
10447
10448
10449                 if test "$enable_shared" = yes; then
10450     case "$host_os" in
10451       mingw* | cygwin*) is_woe32dll=yes ;;
10452       *) is_woe32dll=no ;;
10453     esac
10454   else
10455     is_woe32dll=no
10456   fi
10457   WOE32DLL=$is_woe32dll
10458
10459
10460       case "$host_os" in
10461     mingw* | cygwin*) is_woe32=yes ;;
10462     *) is_woe32=no ;;
10463   esac
10464   WOE32=$is_woe32
10465
10466   if test $WOE32 = yes; then
10467         if test -n "$ac_tool_prefix"; then
10468   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10469 set dummy ${ac_tool_prefix}windres; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_prog_WINDRES+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   if test -n "$WINDRES"; then
10476   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481   IFS=$as_save_IFS
10482   test -z "$as_dir" && as_dir=.
10483     for ac_exec_ext in '' $ac_executable_extensions; do
10484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487     break 2
10488   fi
10489 done
10490   done
10491 IFS=$as_save_IFS
10492
10493 fi
10494 fi
10495 WINDRES=$ac_cv_prog_WINDRES
10496 if test -n "$WINDRES"; then
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10498 $as_echo "$WINDRES" >&6; }
10499 else
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502 fi
10503
10504
10505 fi
10506 if test -z "$ac_cv_prog_WINDRES"; then
10507   ac_ct_WINDRES=$WINDRES
10508   # Extract the first word of "windres", so it can be a program name with args.
10509 set dummy windres; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10513   $as_echo_n "(cached) " >&6
10514 else
10515   if test -n "$ac_ct_WINDRES"; then
10516   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10517 else
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10520 do
10521   IFS=$as_save_IFS
10522   test -z "$as_dir" && as_dir=.
10523     for ac_exec_ext in '' $ac_executable_extensions; do
10524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10525     ac_cv_prog_ac_ct_WINDRES="windres"
10526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10527     break 2
10528   fi
10529 done
10530   done
10531 IFS=$as_save_IFS
10532
10533 fi
10534 fi
10535 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10536 if test -n "$ac_ct_WINDRES"; then
10537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10538 $as_echo "$ac_ct_WINDRES" >&6; }
10539 else
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10542 fi
10543
10544   if test "x$ac_ct_WINDRES" = x; then
10545     WINDRES=""
10546   else
10547     case $cross_compiling:$ac_tool_warned in
10548 yes:)
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10551 ac_tool_warned=yes ;;
10552 esac
10553     WINDRES=$ac_ct_WINDRES
10554   fi
10555 else
10556   WINDRES="$ac_cv_prog_WINDRES"
10557 fi
10558
10559   fi
10560
10561               case "$host_os" in
10562     hpux*) LTLIBC="" ;;
10563     *)     LTLIBC="-lc" ;;
10564   esac
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10593 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10594 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   gt_save_LIBS="$LIBS"
10598      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10599      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h.  */
10601 #include <CoreFoundation/CFPreferences.h>
10602 int
10603 main ()
10604 {
10605 CFPreferencesCopyAppValue(NULL, NULL)
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611   gt_cv_func_CFPreferencesCopyAppValue=yes
10612 else
10613   gt_cv_func_CFPreferencesCopyAppValue=no
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext \
10616     conftest$ac_exeext conftest.$ac_ext
10617      LIBS="$gt_save_LIBS"
10618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10620 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10621   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10622
10623 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10624
10625   fi
10626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10627 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10628 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   gt_save_LIBS="$LIBS"
10632      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10633      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h.  */
10635 #include <CoreFoundation/CFLocale.h>
10636 int
10637 main ()
10638 {
10639 CFLocaleCopyCurrent();
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645   gt_cv_func_CFLocaleCopyCurrent=yes
10646 else
10647   gt_cv_func_CFLocaleCopyCurrent=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650     conftest$ac_exeext conftest.$ac_ext
10651      LIBS="$gt_save_LIBS"
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10654 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10655   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10656
10657 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10658
10659   fi
10660   INTL_MACOSX_LIBS=
10661   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10662     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10663   fi
10664
10665
10666
10667
10668
10669
10670     BUILD_INCLUDED_LIBINTL=no
10671     USE_INCLUDED_LIBINTL=no
10672
10673   LIBINTL=
10674   LTLIBINTL=
10675   POSUB=
10676
10677     case " $gt_needs " in
10678     *" need-formatstring-macros "*) gt_api_version=3 ;;
10679     *" need-ngettext "*) gt_api_version=2 ;;
10680     *) gt_api_version=1 ;;
10681   esac
10682   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10683   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10684
10685     if test "$USE_NLS" = "yes"; then
10686     gt_use_preinstalled_gnugettext=no
10687
10688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10689 $as_echo_n "checking whether included gettext is requested... " >&6; }
10690
10691 # Check whether --with-included-gettext was given.
10692 if test "${with_included_gettext+set}" = set; then :
10693   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10694 else
10695   nls_cv_force_use_gnu_gettext=no
10696 fi
10697
10698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10699 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10700
10701       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10702       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10703
10704
10705         if test $gt_api_version -ge 3; then
10706           gt_revision_test_code='
10707 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10708 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10709 #endif
10710 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10711 '
10712         else
10713           gt_revision_test_code=
10714         fi
10715         if test $gt_api_version -ge 2; then
10716           gt_expression_test_code=' + * ngettext ("", "", 0)'
10717         else
10718           gt_expression_test_code=
10719         fi
10720
10721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10722 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10723 if eval \${$gt_func_gnugettext_libc+:} false; then :
10724   $as_echo_n "(cached) " >&6
10725 else
10726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h.  */
10728
10729 #include <libintl.h>
10730 $gt_revision_test_code
10731 extern int _nl_msg_cat_cntr;
10732 extern int *_nl_domain_bindings;
10733
10734 int
10735 main ()
10736 {
10737
10738 bindtextdomain ("", "");
10739 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10740
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"; then :
10746   eval "$gt_func_gnugettext_libc=yes"
10747 else
10748   eval "$gt_func_gnugettext_libc=no"
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext \
10751     conftest$ac_exeext conftest.$ac_ext
10752 fi
10753 eval ac_res=\$$gt_func_gnugettext_libc
10754                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10755 $as_echo "$ac_res" >&6; }
10756
10757         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10758
10759
10760
10761
10762
10763
10764
10765
10766     use_additional=yes
10767
10768   acl_save_prefix="$prefix"
10769   prefix="$acl_final_prefix"
10770   acl_save_exec_prefix="$exec_prefix"
10771   exec_prefix="$acl_final_exec_prefix"
10772
10773     eval additional_includedir=\"$includedir\"
10774     eval additional_libdir=\"$libdir\"
10775
10776   exec_prefix="$acl_save_exec_prefix"
10777   prefix="$acl_save_prefix"
10778
10779
10780 # Check whether --with-libintl-prefix was given.
10781 if test "${with_libintl_prefix+set}" = set; then :
10782   withval=$with_libintl_prefix;
10783     if test "X$withval" = "Xno"; then
10784       use_additional=no
10785     else
10786       if test "X$withval" = "X"; then
10787
10788   acl_save_prefix="$prefix"
10789   prefix="$acl_final_prefix"
10790   acl_save_exec_prefix="$exec_prefix"
10791   exec_prefix="$acl_final_exec_prefix"
10792
10793           eval additional_includedir=\"$includedir\"
10794           eval additional_libdir=\"$libdir\"
10795
10796   exec_prefix="$acl_save_exec_prefix"
10797   prefix="$acl_save_prefix"
10798
10799       else
10800         additional_includedir="$withval/include"
10801         additional_libdir="$withval/$acl_libdirstem"
10802         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10803            && ! test -d "$withval/$acl_libdirstem"; then
10804           additional_libdir="$withval/$acl_libdirstem2"
10805         fi
10806       fi
10807     fi
10808
10809 fi
10810
10811       LIBINTL=
10812   LTLIBINTL=
10813   INCINTL=
10814   LIBINTL_PREFIX=
10815       HAVE_LIBINTL=
10816   rpathdirs=
10817   ltrpathdirs=
10818   names_already_handled=
10819   names_next_round='intl '
10820   while test -n "$names_next_round"; do
10821     names_this_round="$names_next_round"
10822     names_next_round=
10823     for name in $names_this_round; do
10824       already_handled=
10825       for n in $names_already_handled; do
10826         if test "$n" = "$name"; then
10827           already_handled=yes
10828           break
10829         fi
10830       done
10831       if test -z "$already_handled"; then
10832         names_already_handled="$names_already_handled $name"
10833                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10834         eval value=\"\$HAVE_LIB$uppername\"
10835         if test -n "$value"; then
10836           if test "$value" = yes; then
10837             eval value=\"\$LIB$uppername\"
10838             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10839             eval value=\"\$LTLIB$uppername\"
10840             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10841           else
10842                                     :
10843           fi
10844         else
10845                               found_dir=
10846           found_la=
10847           found_so=
10848           found_a=
10849           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10850           if test -n "$acl_shlibext"; then
10851             shrext=".$acl_shlibext"             # typically: shrext=.so
10852           else
10853             shrext=
10854           fi
10855           if test $use_additional = yes; then
10856             dir="$additional_libdir"
10857                                     if test -n "$acl_shlibext"; then
10858               if test -f "$dir/$libname$shrext"; then
10859                 found_dir="$dir"
10860                 found_so="$dir/$libname$shrext"
10861               else
10862                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10863                   ver=`(cd "$dir" && \
10864                         for f in "$libname$shrext".*; do echo "$f"; done \
10865                         | sed -e "s,^$libname$shrext\\\\.,," \
10866                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10867                         | sed 1q ) 2>/dev/null`
10868                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10869                     found_dir="$dir"
10870                     found_so="$dir/$libname$shrext.$ver"
10871                   fi
10872                 else
10873                   eval library_names=\"$acl_library_names_spec\"
10874                   for f in $library_names; do
10875                     if test -f "$dir/$f"; then
10876                       found_dir="$dir"
10877                       found_so="$dir/$f"
10878                       break
10879                     fi
10880                   done
10881                 fi
10882               fi
10883             fi
10884                         if test "X$found_dir" = "X"; then
10885               if test -f "$dir/$libname.$acl_libext"; then
10886                 found_dir="$dir"
10887                 found_a="$dir/$libname.$acl_libext"
10888               fi
10889             fi
10890             if test "X$found_dir" != "X"; then
10891               if test -f "$dir/$libname.la"; then
10892                 found_la="$dir/$libname.la"
10893               fi
10894             fi
10895           fi
10896           if test "X$found_dir" = "X"; then
10897             for x in $LDFLAGS $LTLIBINTL; do
10898
10899   acl_save_prefix="$prefix"
10900   prefix="$acl_final_prefix"
10901   acl_save_exec_prefix="$exec_prefix"
10902   exec_prefix="$acl_final_exec_prefix"
10903   eval x=\"$x\"
10904   exec_prefix="$acl_save_exec_prefix"
10905   prefix="$acl_save_prefix"
10906
10907               case "$x" in
10908                 -L*)
10909                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10910                                     if test -n "$acl_shlibext"; then
10911                     if test -f "$dir/$libname$shrext"; then
10912                       found_dir="$dir"
10913                       found_so="$dir/$libname$shrext"
10914                     else
10915                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10916                         ver=`(cd "$dir" && \
10917                               for f in "$libname$shrext".*; do echo "$f"; done \
10918                               | sed -e "s,^$libname$shrext\\\\.,," \
10919                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10920                               | sed 1q ) 2>/dev/null`
10921                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10922                           found_dir="$dir"
10923                           found_so="$dir/$libname$shrext.$ver"
10924                         fi
10925                       else
10926                         eval library_names=\"$acl_library_names_spec\"
10927                         for f in $library_names; do
10928                           if test -f "$dir/$f"; then
10929                             found_dir="$dir"
10930                             found_so="$dir/$f"
10931                             break
10932                           fi
10933                         done
10934                       fi
10935                     fi
10936                   fi
10937                                     if test "X$found_dir" = "X"; then
10938                     if test -f "$dir/$libname.$acl_libext"; then
10939                       found_dir="$dir"
10940                       found_a="$dir/$libname.$acl_libext"
10941                     fi
10942                   fi
10943                   if test "X$found_dir" != "X"; then
10944                     if test -f "$dir/$libname.la"; then
10945                       found_la="$dir/$libname.la"
10946                     fi
10947                   fi
10948                   ;;
10949               esac
10950               if test "X$found_dir" != "X"; then
10951                 break
10952               fi
10953             done
10954           fi
10955           if test "X$found_dir" != "X"; then
10956                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10957             if test "X$found_so" != "X"; then
10958                                                         if test "$enable_rpath" = no \
10959                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10960                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10961                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10962               else
10963                                                                                 haveit=
10964                 for x in $ltrpathdirs; do
10965                   if test "X$x" = "X$found_dir"; then
10966                     haveit=yes
10967                     break
10968                   fi
10969                 done
10970                 if test -z "$haveit"; then
10971                   ltrpathdirs="$ltrpathdirs $found_dir"
10972                 fi
10973                                 if test "$acl_hardcode_direct" = yes; then
10974                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10975                 else
10976                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10977                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10978                                                             haveit=
10979                     for x in $rpathdirs; do
10980                       if test "X$x" = "X$found_dir"; then
10981                         haveit=yes
10982                         break
10983                       fi
10984                     done
10985                     if test -z "$haveit"; then
10986                       rpathdirs="$rpathdirs $found_dir"
10987                     fi
10988                   else
10989                                                                                 haveit=
10990                     for x in $LDFLAGS $LIBINTL; do
10991
10992   acl_save_prefix="$prefix"
10993   prefix="$acl_final_prefix"
10994   acl_save_exec_prefix="$exec_prefix"
10995   exec_prefix="$acl_final_exec_prefix"
10996   eval x=\"$x\"
10997   exec_prefix="$acl_save_exec_prefix"
10998   prefix="$acl_save_prefix"
10999
11000                       if test "X$x" = "X-L$found_dir"; then
11001                         haveit=yes
11002                         break
11003                       fi
11004                     done
11005                     if test -z "$haveit"; then
11006                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11007                     fi
11008                     if test "$acl_hardcode_minus_L" != no; then
11009                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11010                     else
11011                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11012                     fi
11013                   fi
11014                 fi
11015               fi
11016             else
11017               if test "X$found_a" != "X"; then
11018                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11019               else
11020                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11021               fi
11022             fi
11023                         additional_includedir=
11024             case "$found_dir" in
11025               */$acl_libdirstem | */$acl_libdirstem/)
11026                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11027                 if test "$name" = 'intl'; then
11028                   LIBINTL_PREFIX="$basedir"
11029                 fi
11030                 additional_includedir="$basedir/include"
11031                 ;;
11032               */$acl_libdirstem2 | */$acl_libdirstem2/)
11033                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11034                 if test "$name" = 'intl'; then
11035                   LIBINTL_PREFIX="$basedir"
11036                 fi
11037                 additional_includedir="$basedir/include"
11038                 ;;
11039             esac
11040             if test "X$additional_includedir" != "X"; then
11041                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11042                 haveit=
11043                 if test "X$additional_includedir" = "X/usr/local/include"; then
11044                   if test -n "$GCC"; then
11045                     case $host_os in
11046                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11047                     esac
11048                   fi
11049                 fi
11050                 if test -z "$haveit"; then
11051                   for x in $CPPFLAGS $INCINTL; do
11052
11053   acl_save_prefix="$prefix"
11054   prefix="$acl_final_prefix"
11055   acl_save_exec_prefix="$exec_prefix"
11056   exec_prefix="$acl_final_exec_prefix"
11057   eval x=\"$x\"
11058   exec_prefix="$acl_save_exec_prefix"
11059   prefix="$acl_save_prefix"
11060
11061                     if test "X$x" = "X-I$additional_includedir"; then
11062                       haveit=yes
11063                       break
11064                     fi
11065                   done
11066                   if test -z "$haveit"; then
11067                     if test -d "$additional_includedir"; then
11068                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11069                     fi
11070                   fi
11071                 fi
11072               fi
11073             fi
11074                         if test -n "$found_la"; then
11075                                                         save_libdir="$libdir"
11076               case "$found_la" in
11077                 */* | *\\*) . "$found_la" ;;
11078                 *) . "./$found_la" ;;
11079               esac
11080               libdir="$save_libdir"
11081                             for dep in $dependency_libs; do
11082                 case "$dep" in
11083                   -L*)
11084                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11085                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11086                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11087                       haveit=
11088                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11089                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11090                         if test -n "$GCC"; then
11091                           case $host_os in
11092                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11093                           esac
11094                         fi
11095                       fi
11096                       if test -z "$haveit"; then
11097                         haveit=
11098                         for x in $LDFLAGS $LIBINTL; do
11099
11100   acl_save_prefix="$prefix"
11101   prefix="$acl_final_prefix"
11102   acl_save_exec_prefix="$exec_prefix"
11103   exec_prefix="$acl_final_exec_prefix"
11104   eval x=\"$x\"
11105   exec_prefix="$acl_save_exec_prefix"
11106   prefix="$acl_save_prefix"
11107
11108                           if test "X$x" = "X-L$additional_libdir"; then
11109                             haveit=yes
11110                             break
11111                           fi
11112                         done
11113                         if test -z "$haveit"; then
11114                           if test -d "$additional_libdir"; then
11115                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11116                           fi
11117                         fi
11118                         haveit=
11119                         for x in $LDFLAGS $LTLIBINTL; do
11120
11121   acl_save_prefix="$prefix"
11122   prefix="$acl_final_prefix"
11123   acl_save_exec_prefix="$exec_prefix"
11124   exec_prefix="$acl_final_exec_prefix"
11125   eval x=\"$x\"
11126   exec_prefix="$acl_save_exec_prefix"
11127   prefix="$acl_save_prefix"
11128
11129                           if test "X$x" = "X-L$additional_libdir"; then
11130                             haveit=yes
11131                             break
11132                           fi
11133                         done
11134                         if test -z "$haveit"; then
11135                           if test -d "$additional_libdir"; then
11136                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11137                           fi
11138                         fi
11139                       fi
11140                     fi
11141                     ;;
11142                   -R*)
11143                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11144                     if test "$enable_rpath" != no; then
11145                                                                   haveit=
11146                       for x in $rpathdirs; do
11147                         if test "X$x" = "X$dir"; then
11148                           haveit=yes
11149                           break
11150                         fi
11151                       done
11152                       if test -z "$haveit"; then
11153                         rpathdirs="$rpathdirs $dir"
11154                       fi
11155                                                                   haveit=
11156                       for x in $ltrpathdirs; do
11157                         if test "X$x" = "X$dir"; then
11158                           haveit=yes
11159                           break
11160                         fi
11161                       done
11162                       if test -z "$haveit"; then
11163                         ltrpathdirs="$ltrpathdirs $dir"
11164                       fi
11165                     fi
11166                     ;;
11167                   -l*)
11168                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11169                     ;;
11170                   *.la)
11171                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11172                     ;;
11173                   *)
11174                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11175                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11176                     ;;
11177                 esac
11178               done
11179             fi
11180           else
11181                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11182             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11183           fi
11184         fi
11185       fi
11186     done
11187   done
11188   if test "X$rpathdirs" != "X"; then
11189     if test -n "$acl_hardcode_libdir_separator"; then
11190                         alldirs=
11191       for found_dir in $rpathdirs; do
11192         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11193       done
11194             acl_save_libdir="$libdir"
11195       libdir="$alldirs"
11196       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11197       libdir="$acl_save_libdir"
11198       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11199     else
11200             for found_dir in $rpathdirs; do
11201         acl_save_libdir="$libdir"
11202         libdir="$found_dir"
11203         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11204         libdir="$acl_save_libdir"
11205         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11206       done
11207     fi
11208   fi
11209   if test "X$ltrpathdirs" != "X"; then
11210             for found_dir in $ltrpathdirs; do
11211       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11212     done
11213   fi
11214
11215
11216
11217
11218
11219
11220           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11221 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11222 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11223   $as_echo_n "(cached) " >&6
11224 else
11225   gt_save_CPPFLAGS="$CPPFLAGS"
11226             CPPFLAGS="$CPPFLAGS $INCINTL"
11227             gt_save_LIBS="$LIBS"
11228             LIBS="$LIBS $LIBINTL"
11229                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h.  */
11231
11232 #include <libintl.h>
11233 $gt_revision_test_code
11234 extern int _nl_msg_cat_cntr;
11235 extern
11236 #ifdef __cplusplus
11237 "C"
11238 #endif
11239 const char *_nl_expand_alias (const char *);
11240
11241 int
11242 main ()
11243 {
11244
11245 bindtextdomain ("", "");
11246 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11247
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253   eval "$gt_func_gnugettext_libintl=yes"
11254 else
11255   eval "$gt_func_gnugettext_libintl=no"
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258     conftest$ac_exeext conftest.$ac_ext
11259                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11260               LIBS="$LIBS $LIBICONV"
11261               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h.  */
11263
11264 #include <libintl.h>
11265 $gt_revision_test_code
11266 extern int _nl_msg_cat_cntr;
11267 extern
11268 #ifdef __cplusplus
11269 "C"
11270 #endif
11271 const char *_nl_expand_alias (const char *);
11272
11273 int
11274 main ()
11275 {
11276
11277 bindtextdomain ("", "");
11278 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11279
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285   LIBINTL="$LIBINTL $LIBICONV"
11286                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11287                  eval "$gt_func_gnugettext_libintl=yes"
11288
11289 fi
11290 rm -f core conftest.err conftest.$ac_objext \
11291     conftest$ac_exeext conftest.$ac_ext
11292             fi
11293             CPPFLAGS="$gt_save_CPPFLAGS"
11294             LIBS="$gt_save_LIBS"
11295 fi
11296 eval ac_res=\$$gt_func_gnugettext_libintl
11297                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11298 $as_echo "$ac_res" >&6; }
11299         fi
11300
11301                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11302            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11303                 && test "$PACKAGE" != gettext-runtime \
11304                 && test "$PACKAGE" != gettext-tools; }; then
11305           gt_use_preinstalled_gnugettext=yes
11306         else
11307                     LIBINTL=
11308           LTLIBINTL=
11309           INCINTL=
11310         fi
11311
11312
11313         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11314                               nls_cv_use_gnu_gettext=yes
11315         fi
11316       fi
11317
11318       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11319                 BUILD_INCLUDED_LIBINTL=yes
11320         USE_INCLUDED_LIBINTL=yes
11321         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11322         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11323         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11324       fi
11325
11326       CATOBJEXT=
11327       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11328          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11329                 CATOBJEXT=.gmo
11330       fi
11331
11332
11333     if test -n "$INTL_MACOSX_LIBS"; then
11334       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11335          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11336                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11337         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11338       fi
11339     fi
11340
11341     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11342        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11343
11344 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11345
11346     else
11347       USE_NLS=no
11348     fi
11349   fi
11350
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11352 $as_echo_n "checking whether to use NLS... " >&6; }
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11354 $as_echo "$USE_NLS" >&6; }
11355   if test "$USE_NLS" = "yes"; then
11356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11357 $as_echo_n "checking where the gettext function comes from... " >&6; }
11358     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11359       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11360         gt_source="external libintl"
11361       else
11362         gt_source="libc"
11363       fi
11364     else
11365       gt_source="included intl directory"
11366     fi
11367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11368 $as_echo "$gt_source" >&6; }
11369   fi
11370
11371   if test "$USE_NLS" = "yes"; then
11372
11373     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11374       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11375         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11376 $as_echo_n "checking how to link with libintl... " >&6; }
11377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11378 $as_echo "$LIBINTL" >&6; }
11379
11380   for element in $INCINTL; do
11381     haveit=
11382     for x in $CPPFLAGS; do
11383
11384   acl_save_prefix="$prefix"
11385   prefix="$acl_final_prefix"
11386   acl_save_exec_prefix="$exec_prefix"
11387   exec_prefix="$acl_final_exec_prefix"
11388   eval x=\"$x\"
11389   exec_prefix="$acl_save_exec_prefix"
11390   prefix="$acl_save_prefix"
11391
11392       if test "X$x" = "X$element"; then
11393         haveit=yes
11394         break
11395       fi
11396     done
11397     if test -z "$haveit"; then
11398       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11399     fi
11400   done
11401
11402       fi
11403
11404
11405 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11406
11407
11408 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11409
11410     fi
11411
11412         POSUB=po
11413   fi
11414
11415
11416             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11417       BUILD_INCLUDED_LIBINTL=yes
11418     fi
11419
11420
11421
11422
11423
11424         nls_cv_header_intl=
11425     nls_cv_header_libgt=
11426
11427         DATADIRNAME=share
11428
11429
11430         INSTOBJEXT=.mo
11431
11432
11433         GENCAT=gencat
11434
11435
11436         INTLOBJS=
11437     if test "$USE_INCLUDED_LIBINTL" = yes; then
11438       INTLOBJS="\$(GETTOBJS)"
11439     fi
11440
11441
11442         INTL_LIBTOOL_SUFFIX_PREFIX=
11443
11444
11445
11446     INTLLIBS="$LIBINTL"
11447
11448
11449
11450
11451
11452
11453
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11455 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11456 set x ${MAKE-make}
11457 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11458 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11459   $as_echo_n "(cached) " >&6
11460 else
11461   cat >conftest.make <<\_ACEOF
11462 SHELL = /bin/sh
11463 all:
11464         @echo '@@@%%%=$(MAKE)=@@@%%%'
11465 _ACEOF
11466 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11467 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11468   *@@@%%%=?*=@@@%%%*)
11469     eval ac_cv_prog_make_${ac_make}_set=yes;;
11470   *)
11471     eval ac_cv_prog_make_${ac_make}_set=no;;
11472 esac
11473 rm -f conftest.make
11474 fi
11475 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11478   SET_MAKE=
11479 else
11480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11482   SET_MAKE="MAKE=${MAKE-make}"
11483 fi
11484
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11486 $as_echo_n "checking for GNU make... " >&6; }
11487 if ${_cv_gnu_make_command+:} false; then :
11488   $as_echo_n "(cached) " >&6
11489 else
11490   _cv_gnu_make_command='' ;
11491                 for a in "$MAKE" make gmake gnumake ; do
11492                         if test -z "$a" ; then continue ; fi ;
11493                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11494                                 _cv_gnu_make_command=$a ;
11495                                 break;
11496                         fi
11497                 done ;
11498
11499 fi
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11501 $as_echo "$_cv_gnu_make_command" >&6; } ;
11502         if test  "x$_cv_gnu_make_command" != "x"  ; then
11503                 ifGNUmake='' ;
11504                 ifNotGNUmake='#' ;
11505         else
11506                 ifGNUmake='#' ;
11507                 ifNotGNUmake='' ;
11508                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11509 $as_echo "\"Not found\"" >&6; };
11510         fi
11511
11512
11513
11514 # Extract the first word of "ln", so it can be a program name with args.
11515 set dummy ln; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_path_LN+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   case $LN in
11522   [\\/]* | ?:[\\/]*)
11523   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11524   ;;
11525   *)
11526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11528 do
11529   IFS=$as_save_IFS
11530   test -z "$as_dir" && as_dir=.
11531     for ac_exec_ext in '' $ac_executable_extensions; do
11532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535     break 2
11536   fi
11537 done
11538   done
11539 IFS=$as_save_IFS
11540
11541   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11542   ;;
11543 esac
11544 fi
11545 LN=$ac_cv_path_LN
11546 if test -n "$LN"; then
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11548 $as_echo "$LN" >&6; }
11549 else
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 fi
11553
11554
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11556 $as_echo_n "checking whether ln -s works... " >&6; }
11557 LN_S=$as_ln_s
11558 if test "$LN_S" = "ln -s"; then
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11560 $as_echo "yes" >&6; }
11561 else
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11563 $as_echo "no, using $LN_S" >&6; }
11564 fi
11565
11566 # Extract the first word of "mv", so it can be a program name with args.
11567 set dummy mv; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_path_MV+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   case $MV in
11574   [\\/]* | ?:[\\/]*)
11575   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11576   ;;
11577   *)
11578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583     for ac_exec_ext in '' $ac_executable_extensions; do
11584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587     break 2
11588   fi
11589 done
11590   done
11591 IFS=$as_save_IFS
11592
11593   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11594   ;;
11595 esac
11596 fi
11597 MV=$ac_cv_path_MV
11598 if test -n "$MV"; then
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11600 $as_echo "$MV" >&6; }
11601 else
11602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 fi
11605
11606
11607 # Extract the first word of "cp", so it can be a program name with args.
11608 set dummy cp; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if ${ac_cv_path_CP+:} false; then :
11612   $as_echo_n "(cached) " >&6
11613 else
11614   case $CP in
11615   [\\/]* | ?:[\\/]*)
11616   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11617   ;;
11618   *)
11619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622   IFS=$as_save_IFS
11623   test -z "$as_dir" && as_dir=.
11624     for ac_exec_ext in '' $ac_executable_extensions; do
11625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631   done
11632 IFS=$as_save_IFS
11633
11634   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11635   ;;
11636 esac
11637 fi
11638 CP=$ac_cv_path_CP
11639 if test -n "$CP"; then
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11641 $as_echo "$CP" >&6; }
11642 else
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646
11647
11648 # Extract the first word of "rm", so it can be a program name with args.
11649 set dummy rm; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if ${ac_cv_path_RM+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   case $RM in
11656   [\\/]* | ?:[\\/]*)
11657   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11658   ;;
11659   *)
11660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663   IFS=$as_save_IFS
11664   test -z "$as_dir" && as_dir=.
11665     for ac_exec_ext in '' $ac_executable_extensions; do
11666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669     break 2
11670   fi
11671 done
11672   done
11673 IFS=$as_save_IFS
11674
11675   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11676   ;;
11677 esac
11678 fi
11679 RM=$ac_cv_path_RM
11680 if test -n "$RM"; then
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11682 $as_echo "$RM" >&6; }
11683 else
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687
11688
11689 # Extract the first word of "chmod", so it can be a program name with args.
11690 set dummy chmod; ac_word=$2
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692 $as_echo_n "checking for $ac_word... " >&6; }
11693 if ${ac_cv_path_CHMOD+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   case $CHMOD in
11697   [\\/]* | ?:[\\/]*)
11698   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11699   ;;
11700   *)
11701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11703 do
11704   IFS=$as_save_IFS
11705   test -z "$as_dir" && as_dir=.
11706     for ac_exec_ext in '' $ac_executable_extensions; do
11707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710     break 2
11711   fi
11712 done
11713   done
11714 IFS=$as_save_IFS
11715
11716   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11717   ;;
11718 esac
11719 fi
11720 CHMOD=$ac_cv_path_CHMOD
11721 if test -n "$CHMOD"; then
11722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11723 $as_echo "$CHMOD" >&6; }
11724 else
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728
11729
11730 for ac_prog in gawk mawk nawk awk
11731 do
11732   # Extract the first word of "$ac_prog", so it can be a program name with args.
11733 set dummy $ac_prog; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_prog_AWK+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   if test -n "$AWK"; then
11740   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747     for ac_exec_ext in '' $ac_executable_extensions; do
11748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749     ac_cv_prog_AWK="$ac_prog"
11750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754   done
11755 IFS=$as_save_IFS
11756
11757 fi
11758 fi
11759 AWK=$ac_cv_prog_AWK
11760 if test -n "$AWK"; then
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11762 $as_echo "$AWK" >&6; }
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 fi
11767
11768
11769   test -n "$AWK" && break
11770 done
11771
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11773 $as_echo_n "checking for egrep... " >&6; }
11774 if ${ac_cv_path_EGREP+:} false; then :
11775   $as_echo_n "(cached) " >&6
11776 else
11777   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11778    then ac_cv_path_EGREP="$GREP -E"
11779    else
11780      if test -z "$EGREP"; then
11781   ac_path_EGREP_found=false
11782   # Loop through the user's path and test for each of PROGNAME-LIST
11783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788     for ac_prog in egrep; do
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11791       as_fn_executable_p "$ac_path_EGREP" || continue
11792 # Check for GNU ac_path_EGREP and select it if it is found.
11793   # Check for GNU $ac_path_EGREP
11794 case `"$ac_path_EGREP" --version 2>&1` in
11795 *GNU*)
11796   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11797 *)
11798   ac_count=0
11799   $as_echo_n 0123456789 >"conftest.in"
11800   while :
11801   do
11802     cat "conftest.in" "conftest.in" >"conftest.tmp"
11803     mv "conftest.tmp" "conftest.in"
11804     cp "conftest.in" "conftest.nl"
11805     $as_echo 'EGREP' >> "conftest.nl"
11806     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11808     as_fn_arith $ac_count + 1 && ac_count=$as_val
11809     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11810       # Best one so far, save it but keep looking for a better one
11811       ac_cv_path_EGREP="$ac_path_EGREP"
11812       ac_path_EGREP_max=$ac_count
11813     fi
11814     # 10*(2^10) chars as input seems more than enough
11815     test $ac_count -gt 10 && break
11816   done
11817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11818 esac
11819
11820       $ac_path_EGREP_found && break 3
11821     done
11822   done
11823   done
11824 IFS=$as_save_IFS
11825   if test -z "$ac_cv_path_EGREP"; then
11826     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11827   fi
11828 else
11829   ac_cv_path_EGREP=$EGREP
11830 fi
11831
11832    fi
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11835 $as_echo "$ac_cv_path_EGREP" >&6; }
11836  EGREP="$ac_cv_path_EGREP"
11837
11838
11839 # Extract the first word of "sed", so it can be a program name with args.
11840 set dummy sed; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_path_SED+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   case $SED in
11847   [\\/]* | ?:[\\/]*)
11848   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11849   ;;
11850   *)
11851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854   IFS=$as_save_IFS
11855   test -z "$as_dir" && as_dir=.
11856     for ac_exec_ext in '' $ac_executable_extensions; do
11857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860     break 2
11861   fi
11862 done
11863   done
11864 IFS=$as_save_IFS
11865
11866   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11867   ;;
11868 esac
11869 fi
11870 SED=$ac_cv_path_SED
11871 if test -n "$SED"; then
11872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11873 $as_echo "$SED" >&6; }
11874 else
11875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877 fi
11878
11879
11880 # Extract the first word of "perl", so it can be a program name with args.
11881 set dummy perl; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_path_PERL+:} false; then :
11885   $as_echo_n "(cached) " >&6
11886 else
11887   case $PERL in
11888   [\\/]* | ?:[\\/]*)
11889   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11890   ;;
11891   *)
11892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895   IFS=$as_save_IFS
11896   test -z "$as_dir" && as_dir=.
11897     for ac_exec_ext in '' $ac_executable_extensions; do
11898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901     break 2
11902   fi
11903 done
11904   done
11905 IFS=$as_save_IFS
11906
11907   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11908   ;;
11909 esac
11910 fi
11911 PERL=$ac_cv_path_PERL
11912 if test -n "$PERL"; then
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11914 $as_echo "$PERL" >&6; }
11915 else
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11918 fi
11919
11920
11921 # Extract the first word of "ldconfig", so it can be a program name with args.
11922 set dummy ldconfig; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_path_LDCONFIG+:} false; then :
11926   $as_echo_n "(cached) " >&6
11927 else
11928   case $LDCONFIG in
11929   [\\/]* | ?:[\\/]*)
11930   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11931   ;;
11932   *)
11933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11935 do
11936   IFS=$as_save_IFS
11937   test -z "$as_dir" && as_dir=.
11938     for ac_exec_ext in '' $ac_executable_extensions; do
11939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11940     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942     break 2
11943   fi
11944 done
11945   done
11946 IFS=$as_save_IFS
11947
11948   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11949   ;;
11950 esac
11951 fi
11952 LDCONFIG=$ac_cv_path_LDCONFIG
11953 if test -n "$LDCONFIG"; then
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11955 $as_echo "$LDCONFIG" >&6; }
11956 else
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 fi
11960
11961
11962 if test -n "$ac_tool_prefix"; then
11963   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11964 set dummy ${ac_tool_prefix}ar; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if ${ac_cv_prog_AR+:} false; then :
11968   $as_echo_n "(cached) " >&6
11969 else
11970   if test -n "$AR"; then
11971   ac_cv_prog_AR="$AR" # Let the user override the test.
11972 else
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11975 do
11976   IFS=$as_save_IFS
11977   test -z "$as_dir" && as_dir=.
11978     for ac_exec_ext in '' $ac_executable_extensions; do
11979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980     ac_cv_prog_AR="${ac_tool_prefix}ar"
11981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982     break 2
11983   fi
11984 done
11985   done
11986 IFS=$as_save_IFS
11987
11988 fi
11989 fi
11990 AR=$ac_cv_prog_AR
11991 if test -n "$AR"; then
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11993 $as_echo "$AR" >&6; }
11994 else
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11997 fi
11998
11999
12000 fi
12001 if test -z "$ac_cv_prog_AR"; then
12002   ac_ct_AR=$AR
12003   # Extract the first word of "ar", so it can be a program name with args.
12004 set dummy ar; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   if test -n "$ac_ct_AR"; then
12011   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016   IFS=$as_save_IFS
12017   test -z "$as_dir" && as_dir=.
12018     for ac_exec_ext in '' $ac_executable_extensions; do
12019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020     ac_cv_prog_ac_ct_AR="ar"
12021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022     break 2
12023   fi
12024 done
12025   done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12031 if test -n "$ac_ct_AR"; then
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12033 $as_echo "$ac_ct_AR" >&6; }
12034 else
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039   if test "x$ac_ct_AR" = x; then
12040     AR="ar"
12041   else
12042     case $cross_compiling:$ac_tool_warned in
12043 yes:)
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12046 ac_tool_warned=yes ;;
12047 esac
12048     AR=$ac_ct_AR
12049   fi
12050 else
12051   AR="$ac_cv_prog_AR"
12052 fi
12053
12054 if test -n "$ac_tool_prefix"; then
12055   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_prog_RANLIB+:} false; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062   if test -n "$RANLIB"; then
12063   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12064 else
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12067 do
12068   IFS=$as_save_IFS
12069   test -z "$as_dir" && as_dir=.
12070     for ac_exec_ext in '' $ac_executable_extensions; do
12071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074     break 2
12075   fi
12076 done
12077   done
12078 IFS=$as_save_IFS
12079
12080 fi
12081 fi
12082 RANLIB=$ac_cv_prog_RANLIB
12083 if test -n "$RANLIB"; then
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12085 $as_echo "$RANLIB" >&6; }
12086 else
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 fi
12093 if test -z "$ac_cv_prog_RANLIB"; then
12094   ac_ct_RANLIB=$RANLIB
12095   # Extract the first word of "ranlib", so it can be a program name with args.
12096 set dummy ranlib; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   if test -n "$ac_ct_RANLIB"; then
12103   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108   IFS=$as_save_IFS
12109   test -z "$as_dir" && as_dir=.
12110     for ac_exec_ext in '' $ac_executable_extensions; do
12111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112     ac_cv_prog_ac_ct_RANLIB="ranlib"
12113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114     break 2
12115   fi
12116 done
12117   done
12118 IFS=$as_save_IFS
12119
12120 fi
12121 fi
12122 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12123 if test -n "$ac_ct_RANLIB"; then
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12125 $as_echo "$ac_ct_RANLIB" >&6; }
12126 else
12127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 fi
12130
12131   if test "x$ac_ct_RANLIB" = x; then
12132     RANLIB=":"
12133   else
12134     case $cross_compiling:$ac_tool_warned in
12135 yes:)
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12138 ac_tool_warned=yes ;;
12139 esac
12140     RANLIB=$ac_ct_RANLIB
12141   fi
12142 else
12143   RANLIB="$ac_cv_prog_RANLIB"
12144 fi
12145
12146 if test -n "$ac_tool_prefix"; then
12147   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12148 set dummy ${ac_tool_prefix}strip; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if ${ac_cv_prog_STRIP+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   if test -n "$STRIP"; then
12155   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12156 else
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12159 do
12160   IFS=$as_save_IFS
12161   test -z "$as_dir" && as_dir=.
12162     for ac_exec_ext in '' $ac_executable_extensions; do
12163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12164     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166     break 2
12167   fi
12168 done
12169   done
12170 IFS=$as_save_IFS
12171
12172 fi
12173 fi
12174 STRIP=$ac_cv_prog_STRIP
12175 if test -n "$STRIP"; then
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12177 $as_echo "$STRIP" >&6; }
12178 else
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 fi
12182
12183
12184 fi
12185 if test -z "$ac_cv_prog_STRIP"; then
12186   ac_ct_STRIP=$STRIP
12187   # Extract the first word of "strip", so it can be a program name with args.
12188 set dummy strip; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   if test -n "$ac_ct_STRIP"; then
12195   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12199 do
12200   IFS=$as_save_IFS
12201   test -z "$as_dir" && as_dir=.
12202     for ac_exec_ext in '' $ac_executable_extensions; do
12203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204     ac_cv_prog_ac_ct_STRIP="strip"
12205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206     break 2
12207   fi
12208 done
12209   done
12210 IFS=$as_save_IFS
12211
12212 fi
12213 fi
12214 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12215 if test -n "$ac_ct_STRIP"; then
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12217 $as_echo "$ac_ct_STRIP" >&6; }
12218 else
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222
12223   if test "x$ac_ct_STRIP" = x; then
12224     STRIP=":"
12225   else
12226     case $cross_compiling:$ac_tool_warned in
12227 yes:)
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12230 ac_tool_warned=yes ;;
12231 esac
12232     STRIP=$ac_ct_STRIP
12233   fi
12234 else
12235   STRIP="$ac_cv_prog_STRIP"
12236 fi
12237
12238 # Extract the first word of "makeinfo", so it can be a program name with args.
12239 set dummy makeinfo; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if ${ac_cv_prog_MAKEINFO+:} false; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   if test -n "$MAKEINFO"; then
12246   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12247 else
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12250 do
12251   IFS=$as_save_IFS
12252   test -z "$as_dir" && as_dir=.
12253     for ac_exec_ext in '' $ac_executable_extensions; do
12254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255     ac_cv_prog_MAKEINFO="makeinfo"
12256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257     break 2
12258   fi
12259 done
12260   done
12261 IFS=$as_save_IFS
12262
12263 fi
12264 fi
12265 MAKEINFO=$ac_cv_prog_MAKEINFO
12266 if test -n "$MAKEINFO"; then
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12268 $as_echo "$MAKEINFO" >&6; }
12269 else
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272 fi
12273
12274
12275 if test "_$MAKEINFO" = "_"; then
12276     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12277 else
12278     case "$MAKEINFO" in
12279       */missing.*)
12280         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12281 *** Makeinfo is missing. Info documentation will not be built." >&5
12282 $as_echo "$as_me: WARNING:
12283 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12284         ;;
12285       *)
12286         ;;
12287     esac
12288 fi
12289
12290
12291 # See if we need a separate native compiler.
12292 if test $cross_compiling = no; then
12293   BUILD_CC="$CC"
12294
12295 else
12296   for ac_prog in gcc cc
12297 do
12298   # Extract the first word of "$ac_prog", so it can be a program name with args.
12299 set dummy $ac_prog; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if ${ac_cv_prog_BUILD_CC+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   if test -n "$BUILD_CC"; then
12306   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12307 else
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12310 do
12311   IFS=$as_save_IFS
12312   test -z "$as_dir" && as_dir=.
12313     for ac_exec_ext in '' $ac_executable_extensions; do
12314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315     ac_cv_prog_BUILD_CC="$ac_prog"
12316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317     break 2
12318   fi
12319 done
12320   done
12321 IFS=$as_save_IFS
12322
12323 fi
12324 fi
12325 BUILD_CC=$ac_cv_prog_BUILD_CC
12326 if test -n "$BUILD_CC"; then
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12328 $as_echo "$BUILD_CC" >&6; }
12329 else
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 fi
12333
12334
12335   test -n "$BUILD_CC" && break
12336 done
12337
12338 fi
12339 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   linux/loop.h    net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h
12340 do :
12341   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12342 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12344   cat >>confdefs.h <<_ACEOF
12345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346 _ACEOF
12347
12348 fi
12349
12350 done
12351
12352 for ac_header in net/if.h
12353 do :
12354   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12355 #if HAVE_SYS_TYPES_H
12356 #include <sys/types.h>
12357 #endif
12358 #if HAVE_SYS_SOCKET
12359 #include <sys/socket.h>
12360 #endif
12361
12362 "
12363 if test "x$ac_cv_header_net_if_h" = xyes; then :
12364   cat >>confdefs.h <<_ACEOF
12365 #define HAVE_NET_IF_H 1
12366 _ACEOF
12367
12368 fi
12369
12370 done
12371
12372 for ac_func in vprintf
12373 do :
12374   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12375 if test "x$ac_cv_func_vprintf" = xyes; then :
12376   cat >>confdefs.h <<_ACEOF
12377 #define HAVE_VPRINTF 1
12378 _ACEOF
12379
12380 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12381 if test "x$ac_cv_func__doprnt" = xyes; then :
12382
12383 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12384
12385 fi
12386
12387 fi
12388 done
12389
12390
12391 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12392 "
12393 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12394
12395 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12396
12397 fi
12398
12399 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12400 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12401
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_STRUCT_STAT_ST_ATIM 1
12404 _ACEOF
12405
12406
12407 fi
12408
12409 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12410 "
12411 if test "x$ac_cv_type_ssize_t" = xyes; then :
12412
12413 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12414
12415 fi
12416
12417 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12418 "
12419 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12420
12421 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12422
12423 fi
12424
12425 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12426                  #define _LARGEFILE64_SOURCE
12427                  #include <unistd.h>
12428 "
12429 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12430
12431 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12432
12433 fi
12434
12435 # The cast to long int works around a bug in the HP C Compiler
12436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12438 # This bug is HP SR number 8606223364.
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12440 $as_echo_n "checking size of short... " >&6; }
12441 if ${ac_cv_sizeof_short+:} false; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12445
12446 else
12447   if test "$ac_cv_type_short" = yes; then
12448      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12450 as_fn_error 77 "cannot compute sizeof (short)
12451 See \`config.log' for more details" "$LINENO" 5; }
12452    else
12453      ac_cv_sizeof_short=0
12454    fi
12455 fi
12456
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12459 $as_echo "$ac_cv_sizeof_short" >&6; }
12460
12461
12462
12463 cat >>confdefs.h <<_ACEOF
12464 #define SIZEOF_SHORT $ac_cv_sizeof_short
12465 _ACEOF
12466
12467
12468 # The cast to long int works around a bug in the HP C Compiler
12469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12471 # This bug is HP SR number 8606223364.
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12473 $as_echo_n "checking size of int... " >&6; }
12474 if ${ac_cv_sizeof_int+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12478
12479 else
12480   if test "$ac_cv_type_int" = yes; then
12481      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12483 as_fn_error 77 "cannot compute sizeof (int)
12484 See \`config.log' for more details" "$LINENO" 5; }
12485    else
12486      ac_cv_sizeof_int=0
12487    fi
12488 fi
12489
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12492 $as_echo "$ac_cv_sizeof_int" >&6; }
12493
12494
12495
12496 cat >>confdefs.h <<_ACEOF
12497 #define SIZEOF_INT $ac_cv_sizeof_int
12498 _ACEOF
12499
12500
12501 # The cast to long int works around a bug in the HP C Compiler
12502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12504 # This bug is HP SR number 8606223364.
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12506 $as_echo_n "checking size of long... " >&6; }
12507 if ${ac_cv_sizeof_long+:} false; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12511
12512 else
12513   if test "$ac_cv_type_long" = yes; then
12514      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12516 as_fn_error 77 "cannot compute sizeof (long)
12517 See \`config.log' for more details" "$LINENO" 5; }
12518    else
12519      ac_cv_sizeof_long=0
12520    fi
12521 fi
12522
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12525 $as_echo "$ac_cv_sizeof_long" >&6; }
12526
12527
12528
12529 cat >>confdefs.h <<_ACEOF
12530 #define SIZEOF_LONG $ac_cv_sizeof_long
12531 _ACEOF
12532
12533
12534 # The cast to long int works around a bug in the HP C Compiler
12535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537 # This bug is HP SR number 8606223364.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12539 $as_echo_n "checking size of long long... " >&6; }
12540 if ${ac_cv_sizeof_long_long+:} false; then :
12541   $as_echo_n "(cached) " >&6
12542 else
12543   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12544
12545 else
12546   if test "$ac_cv_type_long_long" = yes; then
12547      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12549 as_fn_error 77 "cannot compute sizeof (long long)
12550 See \`config.log' for more details" "$LINENO" 5; }
12551    else
12552      ac_cv_sizeof_long_long=0
12553    fi
12554 fi
12555
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12558 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12559
12560
12561
12562 cat >>confdefs.h <<_ACEOF
12563 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12564 _ACEOF
12565
12566
12567 # The cast to long int works around a bug in the HP C Compiler
12568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570 # This bug is HP SR number 8606223364.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12572 $as_echo_n "checking size of off_t... " >&6; }
12573 if ${ac_cv_sizeof_off_t+:} false; then :
12574   $as_echo_n "(cached) " >&6
12575 else
12576   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12577
12578 else
12579   if test "$ac_cv_type_off_t" = yes; then
12580      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12582 as_fn_error 77 "cannot compute sizeof (off_t)
12583 See \`config.log' for more details" "$LINENO" 5; }
12584    else
12585      ac_cv_sizeof_off_t=0
12586    fi
12587 fi
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12591 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12592
12593
12594
12595 cat >>confdefs.h <<_ACEOF
12596 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12597 _ACEOF
12598
12599
12600 SIZEOF_SHORT=$ac_cv_sizeof_short
12601 SIZEOF_INT=$ac_cv_sizeof_int
12602 SIZEOF_LONG=$ac_cv_sizeof_long
12603 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12604 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12605
12606
12607
12608
12609
12610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12611 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12612 if ${ac_cv_c_bigendian+:} false; then :
12613   $as_echo_n "(cached) " >&6
12614 else
12615   ac_cv_c_bigendian=unknown
12616     # See if we're dealing with a universal compiler.
12617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h.  */
12619 #ifndef __APPLE_CC__
12620                not a universal capable compiler
12621              #endif
12622              typedef int dummy;
12623
12624 _ACEOF
12625 if ac_fn_c_try_compile "$LINENO"; then :
12626
12627         # Check for potential -arch flags.  It is not universal unless
12628         # there are at least two -arch flags with different values.
12629         ac_arch=
12630         ac_prev=
12631         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12632          if test -n "$ac_prev"; then
12633            case $ac_word in
12634              i?86 | x86_64 | ppc | ppc64)
12635                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12636                  ac_arch=$ac_word
12637                else
12638                  ac_cv_c_bigendian=universal
12639                  break
12640                fi
12641                ;;
12642            esac
12643            ac_prev=
12644          elif test "x$ac_word" = "x-arch"; then
12645            ac_prev=arch
12646          fi
12647        done
12648 fi
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650     if test $ac_cv_c_bigendian = unknown; then
12651       # See if sys/param.h defines the BYTE_ORDER macro.
12652       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h.  */
12654 #include <sys/types.h>
12655              #include <sys/param.h>
12656
12657 int
12658 main ()
12659 {
12660 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12661                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12662                      && LITTLE_ENDIAN)
12663               bogus endian macros
12664              #endif
12665
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671   # It does; now see whether it defined to BIG_ENDIAN or not.
12672          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h.  */
12674 #include <sys/types.h>
12675                 #include <sys/param.h>
12676
12677 int
12678 main ()
12679 {
12680 #if BYTE_ORDER != BIG_ENDIAN
12681                  not big endian
12682                 #endif
12683
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_compile "$LINENO"; then :
12689   ac_cv_c_bigendian=yes
12690 else
12691   ac_cv_c_bigendian=no
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696     fi
12697     if test $ac_cv_c_bigendian = unknown; then
12698       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12699       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h.  */
12701 #include <limits.h>
12702
12703 int
12704 main ()
12705 {
12706 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12707               bogus endian macros
12708              #endif
12709
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 if ac_fn_c_try_compile "$LINENO"; then :
12715   # It does; now see whether it defined to _BIG_ENDIAN or not.
12716          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h.  */
12718 #include <limits.h>
12719
12720 int
12721 main ()
12722 {
12723 #ifndef _BIG_ENDIAN
12724                  not big endian
12725                 #endif
12726
12727   ;
12728   return 0;
12729 }
12730 _ACEOF
12731 if ac_fn_c_try_compile "$LINENO"; then :
12732   ac_cv_c_bigendian=yes
12733 else
12734   ac_cv_c_bigendian=no
12735 fi
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739     fi
12740     if test $ac_cv_c_bigendian = unknown; then
12741       # Compile a test program.
12742       if test "$cross_compiling" = yes; then :
12743   # Try to guess by grepping values from an object file.
12744          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h.  */
12746 short int ascii_mm[] =
12747                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12748                 short int ascii_ii[] =
12749                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12750                 int use_ascii (int i) {
12751                   return ascii_mm[i] + ascii_ii[i];
12752                 }
12753                 short int ebcdic_ii[] =
12754                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12755                 short int ebcdic_mm[] =
12756                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12757                 int use_ebcdic (int i) {
12758                   return ebcdic_mm[i] + ebcdic_ii[i];
12759                 }
12760                 extern int foo;
12761
12762 int
12763 main ()
12764 {
12765 return use_ascii (foo) == use_ebcdic (foo);
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_compile "$LINENO"; then :
12771   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12772               ac_cv_c_bigendian=yes
12773             fi
12774             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12775               if test "$ac_cv_c_bigendian" = unknown; then
12776                 ac_cv_c_bigendian=no
12777               else
12778                 # finding both strings is unlikely to happen, but who knows?
12779                 ac_cv_c_bigendian=unknown
12780               fi
12781             fi
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 else
12785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h.  */
12787 $ac_includes_default
12788 int
12789 main ()
12790 {
12791
12792              /* Are we little or big endian?  From Harbison&Steele.  */
12793              union
12794              {
12795                long int l;
12796                char c[sizeof (long int)];
12797              } u;
12798              u.l = 1;
12799              return u.c[sizeof (long int) - 1] == 1;
12800
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 if ac_fn_c_try_run "$LINENO"; then :
12806   ac_cv_c_bigendian=no
12807 else
12808   ac_cv_c_bigendian=yes
12809 fi
12810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12811   conftest.$ac_objext conftest.beam conftest.$ac_ext
12812 fi
12813
12814     fi
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12817 $as_echo "$ac_cv_c_bigendian" >&6; }
12818  case $ac_cv_c_bigendian in #(
12819    yes)
12820      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12821 ;; #(
12822    no)
12823       ;; #(
12824    universal)
12825
12826 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12827
12828      ;; #(
12829    *)
12830      as_fn_error $? "unknown endianness
12831  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12832  esac
12833
12834 if test $cross_compiling = no; then
12835   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12836 else
12837   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12838 fi
12839 ASM_TYPES_HEADER=./asm_types.h
12840
12841 echo "/* These defines are needed for the public ext2fs.h header file */" \
12842      > public_config.h
12843 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12844   uniq tmp_config.$$ >> public_config.h
12845 else
12846   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12847 fi
12848 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12849   uniq tmp_config.$$ >> public_config.h
12850 else
12851   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12852 fi
12853 rm -f tmp_config.$$
12854 PUBLIC_CONFIG_HEADER=./public_config.h
12855
12856 for ac_header in inttypes.h
12857 do :
12858   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12859 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12860   cat >>confdefs.h <<_ACEOF
12861 #define HAVE_INTTYPES_H 1
12862 _ACEOF
12863
12864 fi
12865
12866 done
12867
12868 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12869 if test "x$ac_cv_type_intptr_t" = xyes; then :
12870
12871 cat >>confdefs.h <<_ACEOF
12872 #define HAVE_INTPTR_T 1
12873 _ACEOF
12874
12875
12876 fi
12877
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12879 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12880 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h.  */
12885 #include <sys/stat.h>
12886 int
12887 main ()
12888 {
12889 struct stat stat; stat.st_flags = 0;
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"; then :
12895   e2fsprogs_cv_struct_st_flags=yes
12896 else
12897   e2fsprogs_cv_struct_st_flags=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 fi
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12903 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12904 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12906 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12907   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912 #include <sys/stat.h>
12913 int
12914 main ()
12915 {
12916 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_compile "$LINENO"; then :
12922   e2fsprogs_cv_struct_st_flags_immut=yes
12923 else
12924   e2fsprogs_cv_struct_st_flags_immut=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 fi
12928
12929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12930 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12931   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12932
12933 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12934
12935   fi
12936 fi
12937 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12938          #include <sys/socket.h>
12939 "
12940 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12941
12942 cat >>confdefs.h <<_ACEOF
12943 #define HAVE_SA_LEN 1
12944 _ACEOF
12945
12946 fi
12947
12948 if test -n "$BLKID_CMT"; then
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12950 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12951 if ${ac_cv_search_blkid_probe_all+:} false; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954   ac_func_search_save_LIBS=$LIBS
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h.  */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959    Use char because int might match the return type of a GCC
12960    builtin and then its argument prototype would still apply.  */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char blkid_probe_all ();
12965 int
12966 main ()
12967 {
12968 return blkid_probe_all ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 for ac_lib in '' blkid; do
12974   if test -z "$ac_lib"; then
12975     ac_res="none required"
12976   else
12977     ac_res=-l$ac_lib
12978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12979   fi
12980   if ac_fn_c_try_link "$LINENO"; then :
12981   ac_cv_search_blkid_probe_all=$ac_res
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext \
12984     conftest$ac_exeext
12985   if ${ac_cv_search_blkid_probe_all+:} false; then :
12986   break
12987 fi
12988 done
12989 if ${ac_cv_search_blkid_probe_all+:} false; then :
12990
12991 else
12992   ac_cv_search_blkid_probe_all=no
12993 fi
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
12998 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12999 ac_res=$ac_cv_search_blkid_probe_all
13000 if test "$ac_res" != no; then :
13001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002
13003 fi
13004
13005 fi
13006 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   utimes  valloc
13007 do :
13008   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13011   cat >>confdefs.h <<_ACEOF
13012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13014
13015 fi
13016 done
13017
13018 SOCKET_LIB=''
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13020 $as_echo_n "checking for socket in -lsocket... " >&6; }
13021 if ${ac_cv_lib_socket_socket+:} false; then :
13022   $as_echo_n "(cached) " >&6
13023 else
13024   ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-lsocket  $LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h.  */
13028
13029 /* Override any GCC internal prototype to avoid an error.
13030    Use char because int might match the return type of a GCC
13031    builtin and then its argument prototype would still apply.  */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 char socket ();
13036 int
13037 main ()
13038 {
13039 return socket ();
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_c_try_link "$LINENO"; then :
13045   ac_cv_lib_socket_socket=yes
13046 else
13047   ac_cv_lib_socket_socket=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050     conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13054 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13055 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13056   SOCKET_LIB=-lsocket
13057 fi
13058
13059
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13061 $as_echo_n "checking for optreset... " >&6; }
13062 if ${ac_cv_have_optreset+:} false; then :
13063   $as_echo_n "(cached) " >&6
13064 else
13065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h.  */
13067 #include <unistd.h>
13068
13069 _ACEOF
13070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13071   $EGREP "optreset" >/dev/null 2>&1; then :
13072   ac_cv_have_optreset=yes
13073 else
13074   ac_cv_have_optreset=no
13075 fi
13076 rm -f conftest*
13077
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13080 $as_echo "$ac_cv_have_optreset" >&6; }
13081 if test $ac_cv_have_optreset = yes; then
13082
13083 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13084
13085 fi
13086
13087 SEM_INIT_LIB=''
13088 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13089 if test "x$ac_cv_func_sem_init" = xyes; then :
13090
13091 else
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13093 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13094 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13095   $as_echo_n "(cached) " >&6
13096 else
13097   ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lpthread  $LIBS"
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h.  */
13101
13102 /* Override any GCC internal prototype to avoid an error.
13103    Use char because int might match the return type of a GCC
13104    builtin and then its argument prototype would still apply.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char sem_init ();
13109 int
13110 main ()
13111 {
13112 return sem_init ();
13113   ;
13114   return 0;
13115 }
13116 _ACEOF
13117 if ac_fn_c_try_link "$LINENO"; then :
13118   ac_cv_lib_pthread_sem_init=yes
13119 else
13120   ac_cv_lib_pthread_sem_init=no
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext \
13123     conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13125 fi
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13127 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13128 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13129   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13130
13131         SEM_INIT_LIB=-lpthread
13132 else
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13134 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13135 if ${ac_cv_lib_rt_sem_init+:} false; then :
13136   $as_echo_n "(cached) " >&6
13137 else
13138   ac_check_lib_save_LIBS=$LIBS
13139 LIBS="-lrt  $LIBS"
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h.  */
13142
13143 /* Override any GCC internal prototype to avoid an error.
13144    Use char because int might match the return type of a GCC
13145    builtin and then its argument prototype would still apply.  */
13146 #ifdef __cplusplus
13147 extern "C"
13148 #endif
13149 char sem_init ();
13150 int
13151 main ()
13152 {
13153 return sem_init ();
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_link "$LINENO"; then :
13159   ac_cv_lib_rt_sem_init=yes
13160 else
13161   ac_cv_lib_rt_sem_init=no
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164     conftest$ac_exeext conftest.$ac_ext
13165 LIBS=$ac_check_lib_save_LIBS
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13168 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13169 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13170   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13171
13172         SEM_INIT_LIB=-lrt
13173 else
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13175 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13176 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13177   $as_echo_n "(cached) " >&6
13178 else
13179   ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-lposix4  $LIBS"
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h.  */
13183
13184 /* Override any GCC internal prototype to avoid an error.
13185    Use char because int might match the return type of a GCC
13186    builtin and then its argument prototype would still apply.  */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 char sem_init ();
13191 int
13192 main ()
13193 {
13194 return sem_init ();
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 if ac_fn_c_try_link "$LINENO"; then :
13200   ac_cv_lib_posix4_sem_init=yes
13201 else
13202   ac_cv_lib_posix4_sem_init=no
13203 fi
13204 rm -f core conftest.err conftest.$ac_objext \
13205     conftest$ac_exeext conftest.$ac_ext
13206 LIBS=$ac_check_lib_save_LIBS
13207 fi
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13209 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13210 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13211   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13212
13213         SEM_INIT_LIB=-lposix4
13214 fi
13215
13216 fi
13217
13218 fi
13219
13220 fi
13221
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13223 $as_echo_n "checking for unified diff option... " >&6; }
13224 if diff -u $0 $0 > /dev/null 2>&1 ; then
13225    UNI_DIFF_OPTS=-u
13226 else
13227    UNI_DIFF_OPTS=-c
13228 fi
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13230 $as_echo "$UNI_DIFF_OPTS" >&6; }
13231
13232 case "$host_os" in
13233 linux*)
13234
13235 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13236
13237         ;;
13238 esac
13239 LINUX_CMT="#"
13240 CYGWIN_CMT="#"
13241 UNIX_CMT=
13242 case "$host_os" in
13243 linux*)
13244         LINUX_CMT=
13245         ;;
13246 cygwin)
13247         CYGWIN_CMT=
13248         UNIX_CMT="#"
13249         ;;
13250 esac
13251
13252
13253
13254 case "$host_os" in
13255 linux* | gnu* | k*bsd*-gnu)
13256         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13257                 root_prefix="";
13258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13259 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13260         fi
13261         ;;
13262 esac
13263 case "$host_os" in
13264 linux* | gnu* | k*bsd*-gnu)
13265         if test "$prefix" = NONE ; then
13266                 prefix="/usr";
13267                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13268 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13269                 if test "$mandir" = '${prefix}/man' ; then
13270                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13271 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13272                         mandir=/usr/share/man
13273                 fi
13274         fi
13275 ;;
13276 esac
13277 if test "$root_prefix" = NONE ; then
13278         if test "$prefix" = NONE ; then
13279                 root_prefix="$ac_default_prefix"
13280         else
13281                 root_prefix="$prefix"
13282         fi
13283         root_bindir=$bindir
13284         root_sbindir=$sbindir
13285         root_libdir=$libdir
13286         root_sysconfdir=$sysconfdir
13287 else
13288         root_bindir='${root_prefix}/bin'
13289         root_sbindir='${root_prefix}/sbin'
13290         root_libdir='${root_prefix}/lib'
13291         root_sysconfdir='${root_prefix}/etc'
13292 fi
13293 if test "$bindir" != '${exec_prefix}/bin'; then
13294     root_bindir=$bindir
13295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13296 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13297 fi
13298 if test "$sbindir" != '${exec_prefix}/sbin'; then
13299     root_sbindir=$sbindir
13300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13301 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13302 fi
13303 if test "$libdir" != '${exec_prefix}/lib'; then
13304     root_libdir=$libdir
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13306 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13307 fi
13308 if test "$sysconfdir" != '${prefix}/etc'; then
13309     root_sysconfdir=$sysconfdir
13310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13311 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13312 fi
13313
13314
13315
13316
13317
13318
13319 # Check whether --with-multiarch was given.
13320 if test "${with_multiarch+set}" = set; then :
13321   withval=$with_multiarch; if test "$withval" = "lib64"; then
13322     libdir=/usr/lib64
13323     root_libdir=/lib64
13324 else
13325     libdir=$libdir/$withval
13326     root_libdir=$root_libdir/$withval
13327 fi
13328
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13331 $as_echo_n "checking whether we can link with -static... " >&6; }
13332 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h.  */
13338 #include <stdio.h>
13339 int
13340 main ()
13341 {
13342 fflush(stdout);
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 if ac_fn_c_try_link "$LINENO"; then :
13348   ac_cv_e2fsprogs_use_static=yes
13349 else
13350   ac_cv_e2fsprogs_use_static=no
13351 fi
13352 rm -f core conftest.err conftest.$ac_objext \
13353     conftest$ac_exeext conftest.$ac_ext
13354 LDFLAGS=$SAVE_LDFLAGS
13355 fi
13356
13357 case "$host_os" in
13358 solaris2.*)
13359         ac_cv_e2fsprogs_use_static=no
13360 ;;
13361 esac
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13363 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13364 LDFLAG_STATIC=
13365 if test $ac_cv_e2fsprogs_use_static = yes; then
13366         LDFLAG_STATIC=-static
13367 fi
13368
13369 case "$host_os" in
13370 darwin*)
13371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13372 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13373
13374 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13375
13376         ;;
13377 esac
13378 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13379 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13380
13381
13382 if test "$cross_compiling" = yes ; then
13383   DO_TEST_SUITE=
13384 else
13385   DO_TEST_SUITE=check
13386 fi
13387
13388 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13389 if test -n "$CPPFLAGS" ; then
13390         INCLUDES="$INCLUDES $CPPFLAGS"
13391 fi
13392 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13393         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13394 fi
13395 if test -n "$WITH_DIET_LIBC" ; then
13396         INCLUDES="$INCLUDES -D_REENTRANT"
13397 fi
13398
13399
13400         MKINSTALLDIRS=
13401   if test -n "$ac_aux_dir"; then
13402     case "$ac_aux_dir" in
13403       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13404       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13405     esac
13406   fi
13407   if test -z "$MKINSTALLDIRS"; then
13408     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13409   fi
13410
13411
13412 if test $cross_compiling = no; then
13413    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13414    BUILD_LDFLAGS="$LDFLAGS"
13415 fi
13416
13417
13418 test -d lib || mkdir lib
13419 test -d include || mkdir include
13420 test -d include/linux || mkdir include/linux
13421 test -d include/asm || mkdir include/asm
13422 for i in MCONFIG Makefile e2fsprogs.spec \
13423         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13424         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13425         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13426         lib/uuid/Makefile lib/uuid/uuid_types.h \
13427         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
13428         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13429         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
13430         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13431         debugfs/Makefile tests/Makefile tests/progs/Makefile \
13432         resize/Makefile doc/Makefile intl/Makefile \
13433         intl/libgnuintl.h po/Makefile.in ; do
13434         if test -d `dirname ${srcdir}/$i` ; then
13435                 outlist="$outlist $i"
13436         fi
13437 done
13438 ac_config_files="$ac_config_files $outlist"
13439
13440 cat >confcache <<\_ACEOF
13441 # This file is a shell script that caches the results of configure
13442 # tests run on this system so they can be shared between configure
13443 # scripts and configure runs, see configure's option --config-cache.
13444 # It is not useful on other systems.  If it contains results you don't
13445 # want to keep, you may remove or edit it.
13446 #
13447 # config.status only pays attention to the cache file if you give it
13448 # the --recheck option to rerun configure.
13449 #
13450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13452 # following values.
13453
13454 _ACEOF
13455
13456 # The following way of writing the cache mishandles newlines in values,
13457 # but we know of no workaround that is simple, portable, and efficient.
13458 # So, we kill variables containing newlines.
13459 # Ultrix sh set writes to stderr and can't be redirected directly,
13460 # and sets the high bit in the cache file unless we assign to the vars.
13461 (
13462   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13463     eval ac_val=\$$ac_var
13464     case $ac_val in #(
13465     *${as_nl}*)
13466       case $ac_var in #(
13467       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13469       esac
13470       case $ac_var in #(
13471       _ | IFS | as_nl) ;; #(
13472       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13473       *) { eval $ac_var=; unset $ac_var;} ;;
13474       esac ;;
13475     esac
13476   done
13477
13478   (set) 2>&1 |
13479     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13480     *${as_nl}ac_space=\ *)
13481       # `set' does not quote correctly, so add quotes: double-quote
13482       # substitution turns \\\\ into \\, and sed turns \\ into \.
13483       sed -n \
13484         "s/'/'\\\\''/g;
13485           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13486       ;; #(
13487     *)
13488       # `set' quotes correctly as required by POSIX, so do not add quotes.
13489       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13490       ;;
13491     esac |
13492     sort
13493 ) |
13494   sed '
13495      /^ac_cv_env_/b end
13496      t clear
13497      :clear
13498      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13499      t end
13500      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13501      :end' >>confcache
13502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13503   if test -w "$cache_file"; then
13504     if test "x$cache_file" != "x/dev/null"; then
13505       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13506 $as_echo "$as_me: updating cache $cache_file" >&6;}
13507       if test ! -f "$cache_file" || test -h "$cache_file"; then
13508         cat confcache >"$cache_file"
13509       else
13510         case $cache_file in #(
13511         */* | ?:*)
13512           mv -f confcache "$cache_file"$$ &&
13513           mv -f "$cache_file"$$ "$cache_file" ;; #(
13514         *)
13515           mv -f confcache "$cache_file" ;;
13516         esac
13517       fi
13518     fi
13519   else
13520     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13521 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13522   fi
13523 fi
13524 rm -f confcache
13525
13526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13527 # Let make expand exec_prefix.
13528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13529
13530 DEFS=-DHAVE_CONFIG_H
13531
13532 ac_libobjs=
13533 ac_ltlibobjs=
13534 U=
13535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13536   # 1. Remove the extension, and $U if already installed.
13537   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13538   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13539   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13540   #    will be set to the directory where LIBOBJS objects are built.
13541   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13542   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13543 done
13544 LIBOBJS=$ac_libobjs
13545
13546 LTLIBOBJS=$ac_ltlibobjs
13547
13548
13549
13550
13551 : "${CONFIG_STATUS=./config.status}"
13552 ac_write_fail=0
13553 ac_clean_files_save=$ac_clean_files
13554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13556 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13557 as_write_fail=0
13558 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13559 #! $SHELL
13560 # Generated by $as_me.
13561 # Run this file to recreate the current configuration.
13562 # Compiler output produced by configure, useful for debugging
13563 # configure, is in config.log if it exists.
13564
13565 debug=false
13566 ac_cs_recheck=false
13567 ac_cs_silent=false
13568
13569 SHELL=\${CONFIG_SHELL-$SHELL}
13570 export SHELL
13571 _ASEOF
13572 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13573 ## -------------------- ##
13574 ## M4sh Initialization. ##
13575 ## -------------------- ##
13576
13577 # Be more Bourne compatible
13578 DUALCASE=1; export DUALCASE # for MKS sh
13579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13580   emulate sh
13581   NULLCMD=:
13582   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13583   # is contrary to our usage.  Disable this feature.
13584   alias -g '${1+"$@"}'='"$@"'
13585   setopt NO_GLOB_SUBST
13586 else
13587   case `(set -o) 2>/dev/null` in #(
13588   *posix*) :
13589     set -o posix ;; #(
13590   *) :
13591      ;;
13592 esac
13593 fi
13594
13595
13596 as_nl='
13597 '
13598 export as_nl
13599 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13600 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13603 # Prefer a ksh shell builtin over an external printf program on Solaris,
13604 # but without wasting forks for bash or zsh.
13605 if test -z "$BASH_VERSION$ZSH_VERSION" \
13606     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13607   as_echo='print -r --'
13608   as_echo_n='print -rn --'
13609 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13610   as_echo='printf %s\n'
13611   as_echo_n='printf %s'
13612 else
13613   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13614     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13615     as_echo_n='/usr/ucb/echo -n'
13616   else
13617     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13618     as_echo_n_body='eval
13619       arg=$1;
13620       case $arg in #(
13621       *"$as_nl"*)
13622         expr "X$arg" : "X\\(.*\\)$as_nl";
13623         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13624       esac;
13625       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13626     '
13627     export as_echo_n_body
13628     as_echo_n='sh -c $as_echo_n_body as_echo'
13629   fi
13630   export as_echo_body
13631   as_echo='sh -c $as_echo_body as_echo'
13632 fi
13633
13634 # The user is always right.
13635 if test "${PATH_SEPARATOR+set}" != set; then
13636   PATH_SEPARATOR=:
13637   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13638     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13639       PATH_SEPARATOR=';'
13640   }
13641 fi
13642
13643
13644 # IFS
13645 # We need space, tab and new line, in precisely that order.  Quoting is
13646 # there to prevent editors from complaining about space-tab.
13647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13648 # splitting by setting IFS to empty value.)
13649 IFS=" ""        $as_nl"
13650
13651 # Find who we are.  Look in the path if we contain no directory separator.
13652 as_myself=
13653 case $0 in #((
13654   *[\\/]* ) as_myself=$0 ;;
13655   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $PATH
13657 do
13658   IFS=$as_save_IFS
13659   test -z "$as_dir" && as_dir=.
13660     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13661   done
13662 IFS=$as_save_IFS
13663
13664      ;;
13665 esac
13666 # We did not find ourselves, most probably we were run as `sh COMMAND'
13667 # in which case we are not to be found in the path.
13668 if test "x$as_myself" = x; then
13669   as_myself=$0
13670 fi
13671 if test ! -f "$as_myself"; then
13672   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13673   exit 1
13674 fi
13675
13676 # Unset variables that we do not need and which cause bugs (e.g. in
13677 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13678 # suppresses any "Segmentation fault" message there.  '((' could
13679 # trigger a bug in pdksh 5.2.14.
13680 for as_var in BASH_ENV ENV MAIL MAILPATH
13681 do eval test x\${$as_var+set} = xset \
13682   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13683 done
13684 PS1='$ '
13685 PS2='> '
13686 PS4='+ '
13687
13688 # NLS nuisances.
13689 LC_ALL=C
13690 export LC_ALL
13691 LANGUAGE=C
13692 export LANGUAGE
13693
13694 # CDPATH.
13695 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13696
13697
13698 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13699 # ----------------------------------------
13700 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13701 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13702 # script with STATUS, using 1 if that was 0.
13703 as_fn_error ()
13704 {
13705   as_status=$1; test $as_status -eq 0 && as_status=1
13706   if test "$4"; then
13707     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13708     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13709   fi
13710   $as_echo "$as_me: error: $2" >&2
13711   as_fn_exit $as_status
13712 } # as_fn_error
13713
13714
13715 # as_fn_set_status STATUS
13716 # -----------------------
13717 # Set $? to STATUS, without forking.
13718 as_fn_set_status ()
13719 {
13720   return $1
13721 } # as_fn_set_status
13722
13723 # as_fn_exit STATUS
13724 # -----------------
13725 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13726 as_fn_exit ()
13727 {
13728   set +e
13729   as_fn_set_status $1
13730   exit $1
13731 } # as_fn_exit
13732
13733 # as_fn_unset VAR
13734 # ---------------
13735 # Portably unset VAR.
13736 as_fn_unset ()
13737 {
13738   { eval $1=; unset $1;}
13739 }
13740 as_unset=as_fn_unset
13741 # as_fn_append VAR VALUE
13742 # ----------------------
13743 # Append the text in VALUE to the end of the definition contained in VAR. Take
13744 # advantage of any shell optimizations that allow amortized linear growth over
13745 # repeated appends, instead of the typical quadratic growth present in naive
13746 # implementations.
13747 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13748   eval 'as_fn_append ()
13749   {
13750     eval $1+=\$2
13751   }'
13752 else
13753   as_fn_append ()
13754   {
13755     eval $1=\$$1\$2
13756   }
13757 fi # as_fn_append
13758
13759 # as_fn_arith ARG...
13760 # ------------------
13761 # Perform arithmetic evaluation on the ARGs, and store the result in the
13762 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13763 # must be portable across $(()) and expr.
13764 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13765   eval 'as_fn_arith ()
13766   {
13767     as_val=$(( $* ))
13768   }'
13769 else
13770   as_fn_arith ()
13771   {
13772     as_val=`expr "$@" || test $? -eq 1`
13773   }
13774 fi # as_fn_arith
13775
13776
13777 if expr a : '\(a\)' >/dev/null 2>&1 &&
13778    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13779   as_expr=expr
13780 else
13781   as_expr=false
13782 fi
13783
13784 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13785   as_basename=basename
13786 else
13787   as_basename=false
13788 fi
13789
13790 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13791   as_dirname=dirname
13792 else
13793   as_dirname=false
13794 fi
13795
13796 as_me=`$as_basename -- "$0" ||
13797 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13798          X"$0" : 'X\(//\)$' \| \
13799          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13800 $as_echo X/"$0" |
13801     sed '/^.*\/\([^/][^/]*\)\/*$/{
13802             s//\1/
13803             q
13804           }
13805           /^X\/\(\/\/\)$/{
13806             s//\1/
13807             q
13808           }
13809           /^X\/\(\/\).*/{
13810             s//\1/
13811             q
13812           }
13813           s/.*/./; q'`
13814
13815 # Avoid depending upon Character Ranges.
13816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13819 as_cr_digits='0123456789'
13820 as_cr_alnum=$as_cr_Letters$as_cr_digits
13821
13822 ECHO_C= ECHO_N= ECHO_T=
13823 case `echo -n x` in #(((((
13824 -n*)
13825   case `echo 'xy\c'` in
13826   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13827   xy)  ECHO_C='\c';;
13828   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13829        ECHO_T=' ';;
13830   esac;;
13831 *)
13832   ECHO_N='-n';;
13833 esac
13834
13835 rm -f conf$$ conf$$.exe conf$$.file
13836 if test -d conf$$.dir; then
13837   rm -f conf$$.dir/conf$$.file
13838 else
13839   rm -f conf$$.dir
13840   mkdir conf$$.dir 2>/dev/null
13841 fi
13842 if (echo >conf$$.file) 2>/dev/null; then
13843   if ln -s conf$$.file conf$$ 2>/dev/null; then
13844     as_ln_s='ln -s'
13845     # ... but there are two gotchas:
13846     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13847     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13848     # In both cases, we have to default to `cp -pR'.
13849     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13850       as_ln_s='cp -pR'
13851   elif ln conf$$.file conf$$ 2>/dev/null; then
13852     as_ln_s=ln
13853   else
13854     as_ln_s='cp -pR'
13855   fi
13856 else
13857   as_ln_s='cp -pR'
13858 fi
13859 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13860 rmdir conf$$.dir 2>/dev/null
13861
13862
13863 # as_fn_mkdir_p
13864 # -------------
13865 # Create "$as_dir" as a directory, including parents if necessary.
13866 as_fn_mkdir_p ()
13867 {
13868
13869   case $as_dir in #(
13870   -*) as_dir=./$as_dir;;
13871   esac
13872   test -d "$as_dir" || eval $as_mkdir_p || {
13873     as_dirs=
13874     while :; do
13875       case $as_dir in #(
13876       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13877       *) as_qdir=$as_dir;;
13878       esac
13879       as_dirs="'$as_qdir' $as_dirs"
13880       as_dir=`$as_dirname -- "$as_dir" ||
13881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13882          X"$as_dir" : 'X\(//\)[^/]' \| \
13883          X"$as_dir" : 'X\(//\)$' \| \
13884          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13885 $as_echo X"$as_dir" |
13886     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13887             s//\1/
13888             q
13889           }
13890           /^X\(\/\/\)[^/].*/{
13891             s//\1/
13892             q
13893           }
13894           /^X\(\/\/\)$/{
13895             s//\1/
13896             q
13897           }
13898           /^X\(\/\).*/{
13899             s//\1/
13900             q
13901           }
13902           s/.*/./; q'`
13903       test -d "$as_dir" && break
13904     done
13905     test -z "$as_dirs" || eval "mkdir $as_dirs"
13906   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13907
13908
13909 } # as_fn_mkdir_p
13910 if mkdir -p . 2>/dev/null; then
13911   as_mkdir_p='mkdir -p "$as_dir"'
13912 else
13913   test -d ./-p && rmdir ./-p
13914   as_mkdir_p=false
13915 fi
13916
13917
13918 # as_fn_executable_p FILE
13919 # -----------------------
13920 # Test if FILE is an executable regular file.
13921 as_fn_executable_p ()
13922 {
13923   test -f "$1" && test -x "$1"
13924 } # as_fn_executable_p
13925 as_test_x='test -x'
13926 as_executable_p=as_fn_executable_p
13927
13928 # Sed expression to map a string onto a valid CPP name.
13929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13930
13931 # Sed expression to map a string onto a valid variable name.
13932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13933
13934
13935 exec 6>&1
13936 ## ----------------------------------- ##
13937 ## Main body of $CONFIG_STATUS script. ##
13938 ## ----------------------------------- ##
13939 _ASEOF
13940 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13941
13942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13943 # Save the log message, to keep $0 and so on meaningful, and to
13944 # report actual input values of CONFIG_FILES etc. instead of their
13945 # values after options handling.
13946 ac_log="
13947 This file was extended by $as_me, which was
13948 generated by GNU Autoconf 2.69.  Invocation command line was
13949
13950   CONFIG_FILES    = $CONFIG_FILES
13951   CONFIG_HEADERS  = $CONFIG_HEADERS
13952   CONFIG_LINKS    = $CONFIG_LINKS
13953   CONFIG_COMMANDS = $CONFIG_COMMANDS
13954   $ $0 $@
13955
13956 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13957 "
13958
13959 _ACEOF
13960
13961 case $ac_config_files in *"
13962 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13963 esac
13964
13965 case $ac_config_headers in *"
13966 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13967 esac
13968
13969
13970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13971 # Files that config.status was made for.
13972 config_files="$ac_config_files"
13973 config_headers="$ac_config_headers"
13974 config_commands="$ac_config_commands"
13975
13976 _ACEOF
13977
13978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13979 ac_cs_usage="\
13980 \`$as_me' instantiates files and other configuration actions
13981 from templates according to the current configuration.  Unless the files
13982 and actions are specified as TAGs, all are instantiated by default.
13983
13984 Usage: $0 [OPTION]... [TAG]...
13985
13986   -h, --help       print this help, then exit
13987   -V, --version    print version number and configuration settings, then exit
13988       --config     print configuration, then exit
13989   -q, --quiet, --silent
13990                    do not print progress messages
13991   -d, --debug      don't remove temporary files
13992       --recheck    update $as_me by reconfiguring in the same conditions
13993       --file=FILE[:TEMPLATE]
13994                    instantiate the configuration file FILE
13995       --header=FILE[:TEMPLATE]
13996                    instantiate the configuration header FILE
13997
13998 Configuration files:
13999 $config_files
14000
14001 Configuration headers:
14002 $config_headers
14003
14004 Configuration commands:
14005 $config_commands
14006
14007 Report bugs to the package provider."
14008
14009 _ACEOF
14010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14011 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14012 ac_cs_version="\\
14013 config.status
14014 configured by $0, generated by GNU Autoconf 2.69,
14015   with options \\"\$ac_cs_config\\"
14016
14017 Copyright (C) 2012 Free Software Foundation, Inc.
14018 This config.status script is free software; the Free Software Foundation
14019 gives unlimited permission to copy, distribute and modify it."
14020
14021 ac_pwd='$ac_pwd'
14022 srcdir='$srcdir'
14023 INSTALL='$INSTALL'
14024 MKDIR_P='$MKDIR_P'
14025 AWK='$AWK'
14026 test -n "\$AWK" || AWK=awk
14027 _ACEOF
14028
14029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14030 # The default lists apply if the user does not specify any file.
14031 ac_need_defaults=:
14032 while test $# != 0
14033 do
14034   case $1 in
14035   --*=?*)
14036     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14037     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14038     ac_shift=:
14039     ;;
14040   --*=)
14041     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14042     ac_optarg=
14043     ac_shift=:
14044     ;;
14045   *)
14046     ac_option=$1
14047     ac_optarg=$2
14048     ac_shift=shift
14049     ;;
14050   esac
14051
14052   case $ac_option in
14053   # Handling of the options.
14054   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14055     ac_cs_recheck=: ;;
14056   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14057     $as_echo "$ac_cs_version"; exit ;;
14058   --config | --confi | --conf | --con | --co | --c )
14059     $as_echo "$ac_cs_config"; exit ;;
14060   --debug | --debu | --deb | --de | --d | -d )
14061     debug=: ;;
14062   --file | --fil | --fi | --f )
14063     $ac_shift
14064     case $ac_optarg in
14065     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14066     '') as_fn_error $? "missing file argument" ;;
14067     esac
14068     as_fn_append CONFIG_FILES " '$ac_optarg'"
14069     ac_need_defaults=false;;
14070   --header | --heade | --head | --hea )
14071     $ac_shift
14072     case $ac_optarg in
14073     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14074     esac
14075     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14076     ac_need_defaults=false;;
14077   --he | --h)
14078     # Conflict between --help and --header
14079     as_fn_error $? "ambiguous option: \`$1'
14080 Try \`$0 --help' for more information.";;
14081   --help | --hel | -h )
14082     $as_echo "$ac_cs_usage"; exit ;;
14083   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14084   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14085     ac_cs_silent=: ;;
14086
14087   # This is an error.
14088   -*) as_fn_error $? "unrecognized option: \`$1'
14089 Try \`$0 --help' for more information." ;;
14090
14091   *) as_fn_append ac_config_targets " $1"
14092      ac_need_defaults=false ;;
14093
14094   esac
14095   shift
14096 done
14097
14098 ac_configure_extra_args=
14099
14100 if $ac_cs_silent; then
14101   exec 6>/dev/null
14102   ac_configure_extra_args="$ac_configure_extra_args --silent"
14103 fi
14104
14105 _ACEOF
14106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14107 if \$ac_cs_recheck; then
14108   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14109   shift
14110   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14111   CONFIG_SHELL='$SHELL'
14112   export CONFIG_SHELL
14113   exec "\$@"
14114 fi
14115
14116 _ACEOF
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 exec 5>>config.log
14119 {
14120   echo
14121   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14122 ## Running $as_me. ##
14123 _ASBOX
14124   $as_echo "$ac_log"
14125 } >&5
14126
14127 _ACEOF
14128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14129 #
14130 # INIT-COMMANDS
14131 #
14132 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14133     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14134     # from automake < 1.5.
14135     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14136     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14137     LINGUAS="${LINGUAS-%UNSET%}"
14138
14139
14140 _ACEOF
14141
14142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14143
14144 # Handling of arguments.
14145 for ac_config_target in $ac_config_targets
14146 do
14147   case $ac_config_target in
14148     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14149     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14150     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14151
14152   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14153   esac
14154 done
14155
14156
14157 # If the user did not use the arguments to specify the items to instantiate,
14158 # then the envvar interface is used.  Set only those that are not.
14159 # We use the long form for the default assignment because of an extremely
14160 # bizarre bug on SunOS 4.1.3.
14161 if $ac_need_defaults; then
14162   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14163   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14164   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14165 fi
14166
14167 # Have a temporary directory for convenience.  Make it in the build tree
14168 # simply because there is no reason against having it here, and in addition,
14169 # creating and moving files from /tmp can sometimes cause problems.
14170 # Hook for its removal unless debugging.
14171 # Note that there is a small window in which the directory will not be cleaned:
14172 # after its creation but before its name has been assigned to `$tmp'.
14173 $debug ||
14174 {
14175   tmp= ac_tmp=
14176   trap 'exit_status=$?
14177   : "${ac_tmp:=$tmp}"
14178   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14179 ' 0
14180   trap 'as_fn_exit 1' 1 2 13 15
14181 }
14182 # Create a (secure) tmp directory for tmp files.
14183
14184 {
14185   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14186   test -d "$tmp"
14187 }  ||
14188 {
14189   tmp=./conf$$-$RANDOM
14190   (umask 077 && mkdir "$tmp")
14191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14192 ac_tmp=$tmp
14193
14194 # Set up the scripts for CONFIG_FILES section.
14195 # No need to generate them if there are no CONFIG_FILES.
14196 # This happens for instance with `./config.status config.h'.
14197 if test -n "$CONFIG_FILES"; then
14198
14199 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14200   ac_cs_awk_getline=:
14201   ac_cs_awk_pipe_init=
14202   ac_cs_awk_read_file='
14203       while ((getline aline < (F[key])) > 0)
14204         print(aline)
14205       close(F[key])'
14206   ac_cs_awk_pipe_fini=
14207 else
14208   ac_cs_awk_getline=false
14209   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14210   ac_cs_awk_read_file='
14211       print "|#_!!_#|"
14212       print "cat " F[key] " &&"
14213       '$ac_cs_awk_pipe_init
14214   # The final `:' finishes the AND list.
14215   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14216 fi
14217 ac_cr=`echo X | tr X '\015'`
14218 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14219 # But we know of no other shell where ac_cr would be empty at this
14220 # point, so we can use a bashism as a fallback.
14221 if test "x$ac_cr" = x; then
14222   eval ac_cr=\$\'\\r\'
14223 fi
14224 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14225 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14226   ac_cs_awk_cr='\\r'
14227 else
14228   ac_cs_awk_cr=$ac_cr
14229 fi
14230
14231 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14232 _ACEOF
14233
14234 # Create commands to substitute file output variables.
14235 {
14236   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14237   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14238   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14239   echo "_ACAWK" &&
14240   echo "_ACEOF"
14241 } >conf$$files.sh &&
14242 . ./conf$$files.sh ||
14243   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14244 rm -f conf$$files.sh
14245
14246 {
14247   echo "cat >conf$$subs.awk <<_ACEOF" &&
14248   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14249   echo "_ACEOF"
14250 } >conf$$subs.sh ||
14251   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14252 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14253 ac_delim='%!_!# '
14254 for ac_last_try in false false false false false :; do
14255   . ./conf$$subs.sh ||
14256     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14257
14258   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14259   if test $ac_delim_n = $ac_delim_num; then
14260     break
14261   elif $ac_last_try; then
14262     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14263   else
14264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14265   fi
14266 done
14267 rm -f conf$$subs.sh
14268
14269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14270 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14271 _ACEOF
14272 sed -n '
14273 h
14274 s/^/S["/; s/!.*/"]=/
14275 p
14276 g
14277 s/^[^!]*!//
14278 :repl
14279 t repl
14280 s/'"$ac_delim"'$//
14281 t delim
14282 :nl
14283 h
14284 s/\(.\{148\}\)..*/\1/
14285 t more1
14286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14287 p
14288 n
14289 b repl
14290 :more1
14291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14292 p
14293 g
14294 s/.\{148\}//
14295 t nl
14296 :delim
14297 h
14298 s/\(.\{148\}\)..*/\1/
14299 t more2
14300 s/["\\]/\\&/g; s/^/"/; s/$/"/
14301 p
14302 b
14303 :more2
14304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14305 p
14306 g
14307 s/.\{148\}//
14308 t delim
14309 ' <conf$$subs.awk | sed '
14310 /^[^""]/{
14311   N
14312   s/\n//
14313 }
14314 ' >>$CONFIG_STATUS || ac_write_fail=1
14315 rm -f conf$$subs.awk
14316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14317 _ACAWK
14318 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14319   for (key in S) S_is_set[key] = 1
14320   FS = "\a"
14321   \$ac_cs_awk_pipe_init
14322 }
14323 {
14324   line = $ 0
14325   nfields = split(line, field, "@")
14326   substed = 0
14327   len = length(field[1])
14328   for (i = 2; i < nfields; i++) {
14329     key = field[i]
14330     keylen = length(key)
14331     if (S_is_set[key]) {
14332       value = S[key]
14333       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14334       len += length(value) + length(field[++i])
14335       substed = 1
14336     } else
14337       len += 1 + keylen
14338   }
14339   if (nfields == 3 && !substed) {
14340     key = field[2]
14341     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14342       \$ac_cs_awk_read_file
14343       next
14344     }
14345   }
14346   print line
14347 }
14348 \$ac_cs_awk_pipe_fini
14349 _ACAWK
14350 _ACEOF
14351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14353   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14354 else
14355   cat
14356 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14357   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14358 _ACEOF
14359
14360 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14361 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14362 # trailing colons and then remove the whole line if VPATH becomes empty
14363 # (actually we leave an empty line to preserve line numbers).
14364 if test "x$srcdir" = x.; then
14365   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14366 h
14367 s///
14368 s/^/:/
14369 s/[      ]*$/:/
14370 s/:\$(srcdir):/:/g
14371 s/:\${srcdir}:/:/g
14372 s/:@srcdir@:/:/g
14373 s/^:*//
14374 s/:*$//
14375 x
14376 s/\(=[   ]*\).*/\1/
14377 G
14378 s/\n//
14379 s/^[^=]*=[       ]*$//
14380 }'
14381 fi
14382
14383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384 fi # test -n "$CONFIG_FILES"
14385
14386 # Set up the scripts for CONFIG_HEADERS section.
14387 # No need to generate them if there are no CONFIG_HEADERS.
14388 # This happens for instance with `./config.status Makefile'.
14389 if test -n "$CONFIG_HEADERS"; then
14390 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14391 BEGIN {
14392 _ACEOF
14393
14394 # Transform confdefs.h into an awk script `defines.awk', embedded as
14395 # here-document in config.status, that substitutes the proper values into
14396 # config.h.in to produce config.h.
14397
14398 # Create a delimiter string that does not exist in confdefs.h, to ease
14399 # handling of long lines.
14400 ac_delim='%!_!# '
14401 for ac_last_try in false false :; do
14402   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14403   if test -z "$ac_tt"; then
14404     break
14405   elif $ac_last_try; then
14406     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14407   else
14408     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14409   fi
14410 done
14411
14412 # For the awk script, D is an array of macro values keyed by name,
14413 # likewise P contains macro parameters if any.  Preserve backslash
14414 # newline sequences.
14415
14416 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14417 sed -n '
14418 s/.\{148\}/&'"$ac_delim"'/g
14419 t rset
14420 :rset
14421 s/^[     ]*#[    ]*define[       ][      ]*/ /
14422 t def
14423 d
14424 :def
14425 s/\\$//
14426 t bsnl
14427 s/["\\]/\\&/g
14428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14429 D["\1"]=" \3"/p
14430 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14431 d
14432 :bsnl
14433 s/["\\]/\\&/g
14434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14435 D["\1"]=" \3\\\\\\n"\\/p
14436 t cont
14437 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14438 t cont
14439 d
14440 :cont
14441 n
14442 s/.\{148\}/&'"$ac_delim"'/g
14443 t clear
14444 :clear
14445 s/\\$//
14446 t bsnlc
14447 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14448 d
14449 :bsnlc
14450 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14451 b cont
14452 ' <confdefs.h | sed '
14453 s/'"$ac_delim"'/"\\\
14454 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14455
14456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14457   for (key in D) D_is_set[key] = 1
14458   FS = "\a"
14459 }
14460 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14461   line = \$ 0
14462   split(line, arg, " ")
14463   if (arg[1] == "#") {
14464     defundef = arg[2]
14465     mac1 = arg[3]
14466   } else {
14467     defundef = substr(arg[1], 2)
14468     mac1 = arg[2]
14469   }
14470   split(mac1, mac2, "(") #)
14471   macro = mac2[1]
14472   prefix = substr(line, 1, index(line, defundef) - 1)
14473   if (D_is_set[macro]) {
14474     # Preserve the white space surrounding the "#".
14475     print prefix "define", macro P[macro] D[macro]
14476     next
14477   } else {
14478     # Replace #undef with comments.  This is necessary, for example,
14479     # in the case of _POSIX_SOURCE, which is predefined and required
14480     # on some systems where configure will not decide to define it.
14481     if (defundef == "undef") {
14482       print "/*", prefix defundef, macro, "*/"
14483       next
14484     }
14485   }
14486 }
14487 { print }
14488 _ACAWK
14489 _ACEOF
14490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14491   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14492 fi # test -n "$CONFIG_HEADERS"
14493
14494
14495 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14496 shift
14497 for ac_tag
14498 do
14499   case $ac_tag in
14500   :[FHLC]) ac_mode=$ac_tag; continue;;
14501   esac
14502   case $ac_mode$ac_tag in
14503   :[FHL]*:*);;
14504   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14505   :[FH]-) ac_tag=-:-;;
14506   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14507   esac
14508   ac_save_IFS=$IFS
14509   IFS=:
14510   set x $ac_tag
14511   IFS=$ac_save_IFS
14512   shift
14513   ac_file=$1
14514   shift
14515
14516   case $ac_mode in
14517   :L) ac_source=$1;;
14518   :[FH])
14519     ac_file_inputs=
14520     for ac_f
14521     do
14522       case $ac_f in
14523       -) ac_f="$ac_tmp/stdin";;
14524       *) # Look for the file first in the build tree, then in the source tree
14525          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14526          # because $ac_f cannot contain `:'.
14527          test -f "$ac_f" ||
14528            case $ac_f in
14529            [\\/$]*) false;;
14530            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14531            esac ||
14532            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14533       esac
14534       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14535       as_fn_append ac_file_inputs " '$ac_f'"
14536     done
14537
14538     # Let's still pretend it is `configure' which instantiates (i.e., don't
14539     # use $as_me), people would be surprised to read:
14540     #    /* config.h.  Generated by config.status.  */
14541     configure_input='Generated from '`
14542           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14543         `' by configure.'
14544     if test x"$ac_file" != x-; then
14545       configure_input="$ac_file.  $configure_input"
14546       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14547 $as_echo "$as_me: creating $ac_file" >&6;}
14548     fi
14549     # Neutralize special characters interpreted by sed in replacement strings.
14550     case $configure_input in #(
14551     *\&* | *\|* | *\\* )
14552        ac_sed_conf_input=`$as_echo "$configure_input" |
14553        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14554     *) ac_sed_conf_input=$configure_input;;
14555     esac
14556
14557     case $ac_tag in
14558     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14559       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14560     esac
14561     ;;
14562   esac
14563
14564   ac_dir=`$as_dirname -- "$ac_file" ||
14565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14566          X"$ac_file" : 'X\(//\)[^/]' \| \
14567          X"$ac_file" : 'X\(//\)$' \| \
14568          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14569 $as_echo X"$ac_file" |
14570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14571             s//\1/
14572             q
14573           }
14574           /^X\(\/\/\)[^/].*/{
14575             s//\1/
14576             q
14577           }
14578           /^X\(\/\/\)$/{
14579             s//\1/
14580             q
14581           }
14582           /^X\(\/\).*/{
14583             s//\1/
14584             q
14585           }
14586           s/.*/./; q'`
14587   as_dir="$ac_dir"; as_fn_mkdir_p
14588   ac_builddir=.
14589
14590 case "$ac_dir" in
14591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14592 *)
14593   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14594   # A ".." for each directory in $ac_dir_suffix.
14595   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14596   case $ac_top_builddir_sub in
14597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14599   esac ;;
14600 esac
14601 ac_abs_top_builddir=$ac_pwd
14602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14603 # for backward compatibility:
14604 ac_top_builddir=$ac_top_build_prefix
14605
14606 case $srcdir in
14607   .)  # We are building in place.
14608     ac_srcdir=.
14609     ac_top_srcdir=$ac_top_builddir_sub
14610     ac_abs_top_srcdir=$ac_pwd ;;
14611   [\\/]* | ?:[\\/]* )  # Absolute name.
14612     ac_srcdir=$srcdir$ac_dir_suffix;
14613     ac_top_srcdir=$srcdir
14614     ac_abs_top_srcdir=$srcdir ;;
14615   *) # Relative name.
14616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14617     ac_top_srcdir=$ac_top_build_prefix$srcdir
14618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14619 esac
14620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14621
14622
14623   case $ac_mode in
14624   :F)
14625   #
14626   # CONFIG_FILE
14627   #
14628
14629   case $INSTALL in
14630   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14631   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14632   esac
14633   ac_MKDIR_P=$MKDIR_P
14634   case $MKDIR_P in
14635   [\\/$]* | ?:[\\/]* ) ;;
14636   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14637   esac
14638 _ACEOF
14639
14640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14641 # If the template does not know about datarootdir, expand it.
14642 # FIXME: This hack should be removed a few years after 2.60.
14643 ac_datarootdir_hack=; ac_datarootdir_seen=
14644 ac_sed_dataroot='
14645 /datarootdir/ {
14646   p
14647   q
14648 }
14649 /@datadir@/p
14650 /@docdir@/p
14651 /@infodir@/p
14652 /@localedir@/p
14653 /@mandir@/p'
14654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14655 *datarootdir*) ac_datarootdir_seen=yes;;
14656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14658 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14659 _ACEOF
14660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14661   ac_datarootdir_hack='
14662   s&@datadir@&$datadir&g
14663   s&@docdir@&$docdir&g
14664   s&@infodir@&$infodir&g
14665   s&@localedir@&$localedir&g
14666   s&@mandir@&$mandir&g
14667   s&\\\${datarootdir}&$datarootdir&g' ;;
14668 esac
14669 _ACEOF
14670
14671 # Neutralize VPATH when `$srcdir' = `.'.
14672 # Shell code in configure.ac might set extrasub.
14673 # FIXME: do we really want to maintain this feature?
14674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14675 ac_sed_extra="$ac_vpsub
14676 $extrasub
14677 _ACEOF
14678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14679 :t
14680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14681 s|@configure_input@|$ac_sed_conf_input|;t t
14682 s&@top_builddir@&$ac_top_builddir_sub&;t t
14683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14684 s&@srcdir@&$ac_srcdir&;t t
14685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14686 s&@top_srcdir@&$ac_top_srcdir&;t t
14687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14688 s&@builddir@&$ac_builddir&;t t
14689 s&@abs_builddir@&$ac_abs_builddir&;t t
14690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14691 s&@INSTALL@&$ac_INSTALL&;t t
14692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14693 $ac_datarootdir_hack
14694 "
14695 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14696 if $ac_cs_awk_getline; then
14697   $AWK -f "$ac_tmp/subs.awk"
14698 else
14699   $AWK -f "$ac_tmp/subs.awk" | $SHELL
14700 fi \
14701   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14702
14703 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14704   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14705   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14706       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14708 which seems to be undefined.  Please make sure it is defined" >&5
14709 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14710 which seems to be undefined.  Please make sure it is defined" >&2;}
14711
14712   rm -f "$ac_tmp/stdin"
14713   case $ac_file in
14714   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14715   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14716   esac \
14717   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14718  ;;
14719   :H)
14720   #
14721   # CONFIG_HEADER
14722   #
14723   if test x"$ac_file" != x-; then
14724     {
14725       $as_echo "/* $configure_input  */" \
14726       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14727     } >"$ac_tmp/config.h" \
14728       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14729     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14730       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14731 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14732     else
14733       rm -f "$ac_file"
14734       mv "$ac_tmp/config.h" "$ac_file" \
14735         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14736     fi
14737   else
14738     $as_echo "/* $configure_input  */" \
14739       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14740       || as_fn_error $? "could not create -" "$LINENO" 5
14741   fi
14742  ;;
14743
14744   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14745 $as_echo "$as_me: executing $ac_file commands" >&6;}
14746  ;;
14747   esac
14748
14749
14750   case $ac_file$ac_mode in
14751     "po-directories":C)
14752     for ac_file in $CONFIG_FILES; do
14753       # Support "outfile[:infile[:infile...]]"
14754       case "$ac_file" in
14755         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14756       esac
14757       # PO directories have a Makefile.in generated from Makefile.in.in.
14758       case "$ac_file" in */Makefile.in)
14759         # Adjust a relative srcdir.
14760         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14761         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14762         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14763         # In autoconf-2.13 it is called $ac_given_srcdir.
14764         # In autoconf-2.50 it is called $srcdir.
14765         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14766         case "$ac_given_srcdir" in
14767           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14768           /*) top_srcdir="$ac_given_srcdir" ;;
14769           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14770         esac
14771         # Treat a directory as a PO directory if and only if it has a
14772         # POTFILES.in file. This allows packages to have multiple PO
14773         # directories under different names or in different locations.
14774         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14775           rm -f "$ac_dir/POTFILES"
14776           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14777           gt_tab=`printf '\t'`
14778           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"
14779           POMAKEFILEDEPS="POTFILES.in"
14780           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14781           # on $ac_dir but don't depend on user-specified configuration
14782           # parameters.
14783           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14784             # The LINGUAS file contains the set of available languages.
14785             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14786               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14787             fi
14788             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14789             # Hide the ALL_LINGUAS assignment from automake < 1.5.
14790             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14791             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14792           else
14793             # The set of available languages was given in configure.in.
14794             # Hide the ALL_LINGUAS assignment from automake < 1.5.
14795             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14796           fi
14797           # Compute POFILES
14798           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14799           # Compute UPDATEPOFILES
14800           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14801           # Compute DUMMYPOFILES
14802           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14803           # Compute GMOFILES
14804           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14805           case "$ac_given_srcdir" in
14806             .) srcdirpre= ;;
14807             *) srcdirpre='$(srcdir)/' ;;
14808           esac
14809           POFILES=
14810           UPDATEPOFILES=
14811           DUMMYPOFILES=
14812           GMOFILES=
14813           for lang in $ALL_LINGUAS; do
14814             POFILES="$POFILES $srcdirpre$lang.po"
14815             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14816             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14817             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14818           done
14819           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14820           # environment variable.
14821           INST_LINGUAS=
14822           if test -n "$ALL_LINGUAS"; then
14823             for presentlang in $ALL_LINGUAS; do
14824               useit=no
14825               if test "%UNSET%" != "$LINGUAS"; then
14826                 desiredlanguages="$LINGUAS"
14827               else
14828                 desiredlanguages="$ALL_LINGUAS"
14829               fi
14830               for desiredlang in $desiredlanguages; do
14831                 # Use the presentlang catalog if desiredlang is
14832                 #   a. equal to presentlang, or
14833                 #   b. a variant of presentlang (because in this case,
14834                 #      presentlang can be used as a fallback for messages
14835                 #      which are not translated in the desiredlang catalog).
14836                 case "$desiredlang" in
14837                   "$presentlang"*) useit=yes;;
14838                 esac
14839               done
14840               if test $useit = yes; then
14841                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14842               fi
14843             done
14844           fi
14845           CATALOGS=
14846           if test -n "$INST_LINGUAS"; then
14847             for lang in $INST_LINGUAS; do
14848               CATALOGS="$CATALOGS $lang.gmo"
14849             done
14850           fi
14851           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14852           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"
14853           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14854             if test -f "$f"; then
14855               case "$f" in
14856                 *.orig | *.bak | *~) ;;
14857                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14858               esac
14859             fi
14860           done
14861         fi
14862         ;;
14863       esac
14864     done ;;
14865
14866   esac
14867 done # for ac_tag
14868
14869
14870 as_fn_exit 0
14871 _ACEOF
14872 ac_clean_files=$ac_clean_files_save
14873
14874 test $ac_write_fail = 0 ||
14875   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14876
14877
14878 # configure is writing to config.log, and then calls config.status.
14879 # config.status does its own redirection, appending to config.log.
14880 # Unfortunately, on DOS this fails, as config.log is still kept open
14881 # by configure, so config.status won't be able to write to it; its
14882 # output is simply discarded.  So we exec the FD to /dev/null,
14883 # effectively closing config.log, so it can be properly (re)opened and
14884 # appended to by config.status.  When coming back to configure, we
14885 # need to make the FD available again.
14886 if test "$no_create" != yes; then
14887   ac_cs_success=:
14888   ac_config_status_args=
14889   test "$silent" = yes &&
14890     ac_config_status_args="$ac_config_status_args --quiet"
14891   exec 5>/dev/null
14892   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14893   exec 5>>config.log
14894   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14895   # would make configure fail if this is the last instruction.
14896   $ac_cs_success || as_fn_exit 1
14897 fi
14898 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14899   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14900 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14901 fi
14902
14903 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi