Whamcloud - gitweb
configure: don't enable LTO by default
[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 systemd_system_unit_dir
629 have_systemd
630 systemd_LIBS
631 systemd_CFLAGS
632 crond_dir
633 have_crond
634 pkg_udev_rules_dir
635 have_udev
636 udev_LIBS
637 udev_CFLAGS
638 LDFLAGS_SHLIB
639 CFLAGS_STLIB
640 CFLAGS_SHLIB
641 BUILD_LDFLAGS
642 BUILD_CFLAGS
643 INCLUDES
644 DO_TEST_SUITE
645 LDFLAGS_STATIC
646 root_sysconfdir
647 root_libdir
648 root_sbindir
649 root_bindir
650 root_prefix
651 E2SCRUB_CMT
652 UNIX_CMT
653 CYGWIN_CMT
654 LINUX_CMT
655 threadsan_ldflags
656 threadsan_cflags
657 have_threadsan
658 addrsan_ldflags
659 addrsan_cflags
660 have_addrsan
661 ubsan_ldflags
662 ubsan_cflags
663 have_ubsan
664 lto_ldflags
665 lto_cflags
666 have_lto
667 gcc_ranlib
668 gcc_ar
669 UNI_DIFF_OPTS
670 SEM_INIT_LIB
671 FUSE_CMT
672 FUSE_LIB
673 CLOCK_GETTIME_LIB
674 MAGIC_LIB
675 SOCKET_LIB
676 SIZEOF_TIME_T
677 SIZEOF_OFF_T
678 SIZEOF_LONG_LONG
679 SIZEOF_LONG
680 SIZEOF_INT
681 SIZEOF_SHORT
682 DD
683 BUILD_CC
684 MAKEINFO
685 STRIP
686 AR
687 LDCONFIG
688 PERL
689 AWK
690 CHMOD
691 RM
692 CP
693 MV
694 LN_S
695 LN
696 ifNotGNUmake
697 ifGNUmake
698 BINARY_TYPE
699 POSUB
700 LTLIBINTL
701 LIBINTL
702 INTLLIBS
703 INTL_LIBTOOL_SUFFIX_PREFIX
704 INTLOBJS
705 GENCAT
706 INSTOBJEXT
707 DATADIRNAME
708 CATOBJEXT
709 USE_INCLUDED_LIBINTL
710 BUILD_INCLUDED_LIBINTL
711 LTLIBC
712 WINDRES
713 WOE32
714 WOE32DLL
715 HAVE_WPRINTF
716 HAVE_NEWLOCALE
717 HAVE_SNPRINTF
718 HAVE_ASPRINTF
719 HAVE_POSIX_PRINTF
720 INTL_DEFAULT_VERBOSITY
721 INTL_MACOSX_LIBS
722 GLIBC21
723 INTLBISON
724 LTLIBICONV
725 LIBICONV
726 LTLIBMULTITHREAD
727 LIBMULTITHREAD
728 LTLIBTHREAD
729 LIBTHREAD
730 LIBPTH_PREFIX
731 LTLIBPTH
732 LIBPTH
733 PRI_MACROS_BROKEN
734 ALLOCA
735 HAVE_VISIBILITY
736 CFLAG_VISIBILITY
737 RANLIB
738 GLIBC2
739 XGETTEXT_EXTRA_OPTIONS
740 MSGMERGE
741 XGETTEXT_015
742 XGETTEXT
743 GMSGFMT_015
744 MSGFMT_015
745 GMSGFMT
746 MSGFMT
747 GETTEXT_MACRO_VERSION
748 USE_NLS
749 SED
750 MKDIR_P
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 SET_MAKE
755 VERSION
756 PACKAGE
757 GETTEXT_PACKAGE
758 TDB_MAN_COMMENT
759 TDB_CMT
760 UUIDD_CMT
761 E2INITRD_MAN
762 E2INITRD_PROG
763 FSCK_MAN
764 FSCK_PROG
765 DEFRAG_CMT
766 RESIZER_CMT
767 IMAGER_CMT
768 DEBUGFS_CMT
769 BLKID_CMT
770 DEPPROFILED_LIBBLKID
771 PROFILED_LIBBLKID
772 DEPSTATIC_LIBBLKID
773 STATIC_LIBBLKID
774 DEPLIBBLKID
775 LIBBLKID
776 UUID_CMT
777 DEPPROFILED_LIBUUID
778 PROFILED_LIBUUID
779 DEPSTATIC_LIBUUID
780 STATIC_LIBUUID
781 DEPLIBUUID
782 LIBUUID
783 PKG_CONFIG_LIBDIR
784 PKG_CONFIG_PATH
785 PKG_CONFIG
786 TEST_IO_CMT
787 PRIVATE_LIBS_CMT
788 LDFLAG_DYNAMIC
789 PROFILED_LIB_EXT
790 STATIC_LIB_EXT
791 LIB_EXT
792 PROFILE_CMT
793 BSDLIB_CMT
794 ELF_CMT
795 Q
796 ES
797 E
798 LINK_BUILD_FLAGS
799 SYMLINK_RELATIVE
800 LINK_INSTALL_FLAGS
801 MAINTAINER_CMT
802 EGREP
803 GREP
804 CPP
805 RDYNAMIC
806 DLOPEN_LIB
807 OBJEXT
808 EXEEXT
809 ac_ct_CC
810 CPPFLAGS
811 LDFLAGS
812 CFLAGS
813 CC
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 E2FSPROGS_DATE
823 E2FSPROGS_PKGVER
824 E2FSPROGS_VERSION
825 E2FSPROGS_DAY
826 E2FSPROGS_MONTH
827 E2FSPROGS_YEAR
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 runstatedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='MCONFIG
868 MAKEFILE_ELF
869 MAKEFILE_BSDLIB
870 MAKEFILE_PROFILE
871 MAKEFILE_LIBRARY
872 ASM_TYPES_HEADER
873 PUBLIC_CONFIG_HEADER'
874 ac_user_opts='
875 enable_option_checking
876 with_diet_libc
877 with_cc
878 with_ccopts
879 with_ldopts
880 with_root_prefix
881 enable_maintainer_mode
882 enable_symlink_install
883 enable_relative_symlinks
884 enable_symlink_relative_symlinks
885 enable_symlink_build
886 enable_verbose_makecmds
887 enable_elf_shlibs
888 enable_bsd_shlibs
889 enable_profile
890 enable_gcov
891 enable_hardening
892 enable_jbd_debug
893 enable_blkid_debug
894 enable_testio_debug
895 enable_libuuid
896 enable_libblkid
897 enable_backtrace
898 enable_debugfs
899 enable_imager
900 enable_resizer
901 enable_defrag
902 enable_fsck
903 enable_e2initrd_helper
904 enable_tls
905 enable_uuidd
906 enable_mmp
907 enable_tdb
908 enable_bmap_stats
909 enable_bmap_stats_ops
910 enable_nls
911 enable_threads
912 with_gnu_ld
913 enable_rpath
914 with_libpth_prefix
915 with_libiconv_prefix
916 with_included_gettext
917 with_libintl_prefix
918 enable_fuse2fs
919 enable_lto
920 enable_ubsan
921 enable_addrsan
922 enable_threadsan
923 with_multiarch
924 with_udev_rules_dir
925 with_crond_dir
926 with_systemd_unit_dir
927 '
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 PKG_CONFIG
938 PKG_CONFIG_PATH
939 PKG_CONFIG_LIBDIR
940 udev_CFLAGS
941 udev_LIBS
942 systemd_CFLAGS
943 systemd_LIBS'
944
945
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 runstatedir='${localstatedir}/run'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999   # If the previous option needs an argument, assign it.
1000   if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004   fi
1005
1006   case $ac_option in
1007   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008   *=)   ac_optarg= ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054       as_fn_error $? "invalid feature name: $ac_useropt"
1055     ac_useropt_orig=$ac_useropt
1056     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057     case $ac_user_opts in
1058       *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062          ac_unrecognized_sep=', ';;
1063     esac
1064     eval enable_$ac_useropt=no ;;
1065
1066   -docdir | --docdir | --docdi | --doc | --do)
1067     ac_prev=docdir ;;
1068   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069     docdir=$ac_optarg ;;
1070
1071   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072     ac_prev=dvidir ;;
1073   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074     dvidir=$ac_optarg ;;
1075
1076   -enable-* | --enable-*)
1077     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080       as_fn_error $? "invalid feature name: $ac_useropt"
1081     ac_useropt_orig=$ac_useropt
1082     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083     case $ac_user_opts in
1084       *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088          ac_unrecognized_sep=', ';;
1089     esac
1090     eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094   | --exec | --exe | --ex)
1095     ac_prev=exec_prefix ;;
1096   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098   | --exec=* | --exe=* | --ex=*)
1099     exec_prefix=$ac_optarg ;;
1100
1101   -gas | --gas | --ga | --g)
1102     # Obsolete; use --with-gas.
1103     with_gas=yes ;;
1104
1105   -help | --help | --hel | --he | -h)
1106     ac_init_help=long ;;
1107   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108     ac_init_help=recursive ;;
1109   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110     ac_init_help=short ;;
1111
1112   -host | --host | --hos | --ho)
1113     ac_prev=host_alias ;;
1114   -host=* | --host=* | --hos=* | --ho=*)
1115     host_alias=$ac_optarg ;;
1116
1117   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118     ac_prev=htmldir ;;
1119   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120   | --ht=*)
1121     htmldir=$ac_optarg ;;
1122
1123   -includedir | --includedir | --includedi | --included | --include \
1124   | --includ | --inclu | --incl | --inc)
1125     ac_prev=includedir ;;
1126   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127   | --includ=* | --inclu=* | --incl=* | --inc=*)
1128     includedir=$ac_optarg ;;
1129
1130   -infodir | --infodir | --infodi | --infod | --info | --inf)
1131     ac_prev=infodir ;;
1132   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133     infodir=$ac_optarg ;;
1134
1135   -libdir | --libdir | --libdi | --libd)
1136     ac_prev=libdir ;;
1137   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138     libdir=$ac_optarg ;;
1139
1140   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141   | --libexe | --libex | --libe)
1142     ac_prev=libexecdir ;;
1143   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144   | --libexe=* | --libex=* | --libe=*)
1145     libexecdir=$ac_optarg ;;
1146
1147   -localedir | --localedir | --localedi | --localed | --locale)
1148     ac_prev=localedir ;;
1149   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150     localedir=$ac_optarg ;;
1151
1152   -localstatedir | --localstatedir | --localstatedi | --localstated \
1153   | --localstate | --localstat | --localsta | --localst | --locals)
1154     ac_prev=localstatedir ;;
1155   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157     localstatedir=$ac_optarg ;;
1158
1159   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160     ac_prev=mandir ;;
1161   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162     mandir=$ac_optarg ;;
1163
1164   -nfp | --nfp | --nf)
1165     # Obsolete; use --without-fp.
1166     with_fp=no ;;
1167
1168   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169   | --no-cr | --no-c | -n)
1170     no_create=yes ;;
1171
1172   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174     no_recursion=yes ;;
1175
1176   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178   | --oldin | --oldi | --old | --ol | --o)
1179     ac_prev=oldincludedir ;;
1180   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183     oldincludedir=$ac_optarg ;;
1184
1185   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186     ac_prev=prefix ;;
1187   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188     prefix=$ac_optarg ;;
1189
1190   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191   | --program-pre | --program-pr | --program-p)
1192     ac_prev=program_prefix ;;
1193   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195     program_prefix=$ac_optarg ;;
1196
1197   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198   | --program-suf | --program-su | --program-s)
1199     ac_prev=program_suffix ;;
1200   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202     program_suffix=$ac_optarg ;;
1203
1204   -program-transform-name | --program-transform-name \
1205   | --program-transform-nam | --program-transform-na \
1206   | --program-transform-n | --program-transform- \
1207   | --program-transform | --program-transfor \
1208   | --program-transfo | --program-transf \
1209   | --program-trans | --program-tran \
1210   | --progr-tra | --program-tr | --program-t)
1211     ac_prev=program_transform_name ;;
1212   -program-transform-name=* | --program-transform-name=* \
1213   | --program-transform-nam=* | --program-transform-na=* \
1214   | --program-transform-n=* | --program-transform-=* \
1215   | --program-transform=* | --program-transfor=* \
1216   | --program-transfo=* | --program-transf=* \
1217   | --program-trans=* | --program-tran=* \
1218   | --progr-tra=* | --program-tr=* | --program-t=*)
1219     program_transform_name=$ac_optarg ;;
1220
1221   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222     ac_prev=pdfdir ;;
1223   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224     pdfdir=$ac_optarg ;;
1225
1226   -psdir | --psdir | --psdi | --psd | --ps)
1227     ac_prev=psdir ;;
1228   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229     psdir=$ac_optarg ;;
1230
1231   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232   | -silent | --silent | --silen | --sile | --sil)
1233     silent=yes ;;
1234
1235   -runstatedir | --runstatedir | --runstatedi | --runstated \
1236   | --runstate | --runstat | --runsta | --runst | --runs \
1237   | --run | --ru | --r)
1238     ac_prev=runstatedir ;;
1239   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1240   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1241   | --run=* | --ru=* | --r=*)
1242     runstatedir=$ac_optarg ;;
1243
1244   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245     ac_prev=sbindir ;;
1246   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247   | --sbi=* | --sb=*)
1248     sbindir=$ac_optarg ;;
1249
1250   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252   | --sharedst | --shareds | --shared | --share | --shar \
1253   | --sha | --sh)
1254     ac_prev=sharedstatedir ;;
1255   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258   | --sha=* | --sh=*)
1259     sharedstatedir=$ac_optarg ;;
1260
1261   -site | --site | --sit)
1262     ac_prev=site ;;
1263   -site=* | --site=* | --sit=*)
1264     site=$ac_optarg ;;
1265
1266   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267     ac_prev=srcdir ;;
1268   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269     srcdir=$ac_optarg ;;
1270
1271   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272   | --syscon | --sysco | --sysc | --sys | --sy)
1273     ac_prev=sysconfdir ;;
1274   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276     sysconfdir=$ac_optarg ;;
1277
1278   -target | --target | --targe | --targ | --tar | --ta | --t)
1279     ac_prev=target_alias ;;
1280   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281     target_alias=$ac_optarg ;;
1282
1283   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284     verbose=yes ;;
1285
1286   -version | --version | --versio | --versi | --vers | -V)
1287     ac_init_version=: ;;
1288
1289   -with-* | --with-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error $? "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=\$ac_optarg ;;
1304
1305   -without-* | --without-*)
1306     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309       as_fn_error $? "invalid package name: $ac_useropt"
1310     ac_useropt_orig=$ac_useropt
1311     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312     case $ac_user_opts in
1313       *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317          ac_unrecognized_sep=', ';;
1318     esac
1319     eval with_$ac_useropt=no ;;
1320
1321   --x)
1322     # Obsolete; use --with-x.
1323     with_x=yes ;;
1324
1325   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326   | --x-incl | --x-inc | --x-in | --x-i)
1327     ac_prev=x_includes ;;
1328   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330     x_includes=$ac_optarg ;;
1331
1332   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334     ac_prev=x_libraries ;;
1335   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337     x_libraries=$ac_optarg ;;
1338
1339   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1341     ;;
1342
1343   *=*)
1344     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345     # Reject names that are not valid shell variable names.
1346     case $ac_envvar in #(
1347       '' | [0-9]* | *[!_$as_cr_alnum]* )
1348       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349     esac
1350     eval $ac_envvar=\$ac_optarg
1351     export $ac_envvar ;;
1352
1353   *)
1354     # FIXME: should be removed in autoconf 3.0.
1355     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359     ;;
1360
1361   esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366   as_fn_error $? "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370   case $enable_option_checking in
1371     no) ;;
1372     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374   esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379                 datadir sysconfdir sharedstatedir localstatedir includedir \
1380                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381                 libdir localedir mandir runstatedir
1382 do
1383   eval ac_val=\$$ac_var
1384   # Remove trailing slashes.
1385   case $ac_val in
1386     */ )
1387       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388       eval $ac_var=\$ac_val;;
1389   esac
1390   # Be sure to have absolute directory names.
1391   case $ac_val in
1392     [\\/$]* | ?:[\\/]* )  continue;;
1393     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394   esac
1395   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407   if test "x$build_alias" = x; then
1408     cross_compiling=maybe
1409   elif test "x$build_alias" != "x$host_alias"; then
1410     cross_compiling=yes
1411   fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423   as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425   as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430   ac_srcdir_defaulted=yes
1431   # Try the directory containing this script, then the parent directory.
1432   ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434          X"$as_myself" : 'X\(//\)[^/]' \| \
1435          X"$as_myself" : 'X\(//\)$' \| \
1436          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)[^/].*/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\/\)$/{
1447             s//\1/
1448             q
1449           }
1450           /^X\(\/\).*/{
1451             s//\1/
1452             q
1453           }
1454           s/.*/./; q'`
1455   srcdir=$ac_confdir
1456   if test ! -r "$srcdir/$ac_unique_file"; then
1457     srcdir=..
1458   fi
1459 else
1460   ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469         pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472   srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_env_${ac_var}_value=\$${ac_var}
1483   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491   # Omit some internal or obsolete options to make the list less imposing.
1492   # This message is too long to be a string in the A/UX 3.1 sh.
1493   cat <<_ACEOF
1494 \`configure' configures this package to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE.  See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504   -h, --help              display this help and exit
1505       --help=short        display options specific to this package
1506       --help=recursive    display the short help of all the included packages
1507   -V, --version           display version information and exit
1508   -q, --quiet, --silent   do not print \`checking ...' messages
1509       --cache-file=FILE   cache test results in FILE [disabled]
1510   -C, --config-cache      alias for \`--cache-file=config.cache'
1511   -n, --no-create         do not create output files
1512       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515   --prefix=PREFIX         install architecture-independent files in PREFIX
1516                           [$ac_default_prefix]
1517   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1518                           [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528   --bindir=DIR            user executables [EPREFIX/bin]
1529   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1530   --libexecdir=DIR        program executables [EPREFIX/libexec]
1531   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1532   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1533   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1534   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1535   --libdir=DIR            object code libraries [EPREFIX/lib]
1536   --includedir=DIR        C header files [PREFIX/include]
1537   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1538   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1539   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1540   --infodir=DIR           info documentation [DATAROOTDIR/info]
1541   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1542   --mandir=DIR            man documentation [DATAROOTDIR/man]
1543   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1544   --htmldir=DIR           html documentation [DOCDIR]
1545   --dvidir=DIR            dvi documentation [DOCDIR]
1546   --pdfdir=DIR            pdf documentation [DOCDIR]
1547   --psdir=DIR             ps documentation [DOCDIR]
1548 _ACEOF
1549
1550   cat <<\_ACEOF
1551
1552 System types:
1553   --build=BUILD     configure for building on BUILD [guessed]
1554   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1555 _ACEOF
1556 fi
1557
1558 if test -n "$ac_init_help"; then
1559
1560   cat <<\_ACEOF
1561
1562 Optional Features:
1563   --disable-option-checking  ignore unrecognized --enable/--with options
1564   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566   --enable-maintainer-mode enable makefile rules useful for maintainers
1567   --enable-symlink-install use symlinks when installing instead of hard links
1568   --enable-relative-symlinks use relative symlinks when installing
1569
1570   --enable-symlink-build  use symlinks while building instead of hard links
1571   --enable-verbose-makecmds enable verbose make command output
1572   --enable-elf-shlibs     select ELF shared libraries
1573   --enable-bsd-shlibs     select BSD shared libraries
1574   --enable-profile        build profiling libraries
1575   --enable-gcov           build for coverage testing using gcov
1576   --enable-hardening              build for coverage testing using gcov
1577   --enable-jbd-debug      enable journal debugging
1578   --enable-blkid-debug    enable blkid debugging
1579   --disable-testio-debug  disable the use of the test I/O manager for debugging
1580   --enable-libuuid        build and use private uuid library
1581   --enable-libblkid       build and use private blkid library
1582   --disable-backtrace     disable use backtrace
1583   --disable-debugfs       disable support of debugfs program
1584   --disable-imager        disable support of e2image program
1585   --disable-resizer       disable support of e2resize program
1586   --disable-defrag        disable support of e4defrag program
1587   --enable-fsck           build fsck wrapper program
1588   --enable-e2initrd-helper build e2initrd-helper program
1589   --disable-tls           disable use of thread local support
1590   --disable-uuidd         disable building the uuid daemon
1591   --disable-mmp           disable support mmp, Multi Mount Protection
1592   --disable-tdb           disable tdb support
1593   --disable-bmap-stats    disable collection of bitmap stats.
1594   --enable-bmap-stats-ops enable collection of additional bitmap stats
1595   --disable-nls           do not use Native Language Support
1596   --enable-threads={posix|solaris|pth|windows}
1597                           specify multithreading API
1598   --disable-threads       build without multithread safety
1599   --disable-rpath         do not hardcode runtime library paths
1600   --disable-fuse2fs       do not build fuse2fs
1601   --enable-lto            enable link time optimization
1602   --enable-ubsan          enable undefined behavior sanitizer
1603   --enable-addrsan        enable address sanitizer
1604   --enable-threadsan      enable thread sanitizer
1605
1606 Optional Packages:
1607   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1608   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1609   --with-diet-libc        use diet libc
1610   --with-cc               no longer supported, use CC= instead
1611   --with-ccopts           no longer supported, use CFLAGS= instead
1612   --with-ldopts           no longer supported, use LDFLAGS= instead
1613   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1614   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1615   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1616   --without-libpth-prefix     don't search for libpth in includedir and libdir
1617   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1618   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1619   --with-included-gettext use the GNU gettext library included here
1620   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1621   --without-libintl-prefix     don't search for libintl in includedir and libdir
1622   --with-multiarch=ARCH specify the multiarch triplet
1623   --with-udev-rules-dir[=DIR]
1624                           Install udev rules into DIR.
1625   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1626   --with-systemd-unit-dir[=DIR]
1627                           Install systemd system units into DIR.
1628
1629 Some influential environment variables:
1630   CC          C compiler command
1631   CFLAGS      C compiler flags
1632   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1633               nonstandard directory <lib dir>
1634   LIBS        libraries to pass to the linker, e.g. -l<library>
1635   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636               you have headers in a nonstandard directory <include dir>
1637   CPP         C preprocessor
1638   PKG_CONFIG  path to pkg-config utility
1639   PKG_CONFIG_PATH
1640               directories to add to pkg-config's search path
1641   PKG_CONFIG_LIBDIR
1642               path overriding pkg-config's built-in search path
1643   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1644   udev_LIBS   linker flags for udev, overriding pkg-config
1645   systemd_CFLAGS
1646               C compiler flags for systemd, overriding pkg-config
1647   systemd_LIBS
1648               linker flags for systemd, overriding pkg-config
1649
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1652
1653 Report bugs to the package provider.
1654 _ACEOF
1655 ac_status=$?
1656 fi
1657
1658 if test "$ac_init_help" = "recursive"; then
1659   # If there are subdirs, report their specific --help.
1660   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661     test -d "$ac_dir" ||
1662       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663       continue
1664     ac_builddir=.
1665
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *)
1669   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670   # A ".." for each directory in $ac_dir_suffix.
1671   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672   case $ac_top_builddir_sub in
1673   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675   esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1681
1682 case $srcdir in
1683   .)  # We are building in place.
1684     ac_srcdir=.
1685     ac_top_srcdir=$ac_top_builddir_sub
1686     ac_abs_top_srcdir=$ac_pwd ;;
1687   [\\/]* | ?:[\\/]* )  # Absolute name.
1688     ac_srcdir=$srcdir$ac_dir_suffix;
1689     ac_top_srcdir=$srcdir
1690     ac_abs_top_srcdir=$srcdir ;;
1691   *) # Relative name.
1692     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693     ac_top_srcdir=$ac_top_build_prefix$srcdir
1694     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698     cd "$ac_dir" || { ac_status=$?; continue; }
1699     # Check for guested configure.
1700     if test -f "$ac_srcdir/configure.gnu"; then
1701       echo &&
1702       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703     elif test -f "$ac_srcdir/configure"; then
1704       echo &&
1705       $SHELL "$ac_srcdir/configure" --help=recursive
1706     else
1707       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708     fi || ac_status=$?
1709     cd "$ac_pwd" || { ac_status=$?; break; }
1710   done
1711 fi
1712
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715   cat <<\_ACEOF
1716 configure
1717 generated by GNU Autoconf 2.69
1718
1719 Copyright (C) 2012 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1722 _ACEOF
1723   exit
1724 fi
1725
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1729
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   rm -f conftest.$ac_objext
1737   if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_compile") 2>conftest.err
1745   ac_status=$?
1746   if test -s conftest.err; then
1747     grep -v '^ *+' conftest.err >conftest.er1
1748     cat conftest.er1 >&5
1749     mv -f conftest.er1 conftest.err
1750   fi
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && {
1753          test -z "$ac_c_werror_flag" ||
1754          test ! -s conftest.err
1755        } && test -s conftest.$ac_objext; then :
1756   ac_retval=0
1757 else
1758   $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761         ac_retval=1
1762 fi
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764   as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext conftest$ac_exeext
1775   if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_link") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest$ac_exeext && {
1794          test "$cross_compiling" = yes ||
1795          test -x conftest$ac_exeext
1796        }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806   # interfere with the next link command; also delete a directory that is
1807   # left behind by Apple's compiler.  We do this before executing the actions.
1808   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_link
1813
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_cpp ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828   ac_status=$?
1829   if test -s conftest.err; then
1830     grep -v '^ *+' conftest.err >conftest.er1
1831     cat conftest.er1 >&5
1832     mv -f conftest.er1 conftest.err
1833   fi
1834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835   test $ac_status = 0; } > conftest.i && {
1836          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837          test ! -s conftest.err
1838        }; then :
1839   ac_retval=0
1840 else
1841   $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844     ac_retval=1
1845 fi
1846   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847   as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_cpp
1850
1851 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854 # the include files in INCLUDES and setting the cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_header_mongrel ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   if eval \${$3+:} false; then :
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 fi
1865 eval ac_res=\$$3
1866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 else
1869   # Is the header compilable?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871 $as_echo_n "checking $2 usability... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 $4
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878   ac_header_compiler=yes
1879 else
1880   ac_header_compiler=no
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884 $as_echo "$ac_header_compiler" >&6; }
1885
1886 # Is the header present?
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888 $as_echo_n "checking $2 presence... " >&6; }
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h.  */
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_cpp "$LINENO"; then :
1894   ac_header_preproc=yes
1895 else
1896   ac_header_preproc=no
1897 fi
1898 rm -f conftest.err conftest.i conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900 $as_echo "$ac_header_preproc" >&6; }
1901
1902 # So?  What about this header?
1903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904   yes:no: )
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909     ;;
1910   no:yes:* )
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1914 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1918 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921     ;;
1922 esac
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   eval "$3=\$ac_header_compiler"
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 fi
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_header_mongrel
1937
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941 # that executables *can* be run.
1942 ac_fn_c_try_run ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_link") 2>&5
1953   ac_status=$?
1954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956   { { case "(($ac_try" in
1957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958   *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962   (eval "$ac_try") 2>&5
1963   ac_status=$?
1964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965   test $ac_status = 0; }; }; then :
1966   ac_retval=0
1967 else
1968   $as_echo "$as_me: program exited with status $ac_status" >&5
1969        $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972        ac_retval=$ac_status
1973 fi
1974   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_c_try_run
1979
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990   $as_echo_n "(cached) " >&6
1991 else
1992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 $4
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   eval "$3=yes"
1999 else
2000   eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$3
2005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009 } # ac_fn_c_check_header_compile
2010
2011 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2012 # -------------------------------------------
2013 # Tests whether TYPE exists after having included INCLUDES, setting cache
2014 # variable VAR accordingly.
2015 ac_fn_c_check_type ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021   $as_echo_n "(cached) " >&6
2022 else
2023   eval "$3=no"
2024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 if (sizeof ($2))
2031          return 0;
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 if (sizeof (($2)))
2044             return 0;
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050
2051 else
2052   eval "$3=yes"
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_type
2064
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074   $as_echo_n "(cached) " >&6
2075 else
2076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2080 #define $2 innocuous_$2
2081
2082 /* System header to define __stub macros and hopefully few prototypes,
2083     which can conflict with char $2 (); below.
2084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085     <limits.h> exists even on freestanding compilers.  */
2086
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2092
2093 #undef $2
2094
2095 /* Override any GCC internal prototype to avoid an error.
2096    Use char because int might match the return type of a GCC
2097    builtin and then its argument prototype would still apply.  */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103     to always fail with ENOSYS.  Some functions are actually named
2104     something starting with __ and the normal name is an alias.  */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2108
2109 int
2110 main ()
2111 {
2112 return $2 ();
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118   eval "$3=yes"
2119 else
2120   eval "$3=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext \
2123     conftest$ac_exeext conftest.$ac_ext
2124 fi
2125 eval ac_res=\$$3
2126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129
2130 } # ac_fn_c_check_func
2131
2132 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2133 # ---------------------------------------------
2134 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2135 # accordingly.
2136 ac_fn_c_check_decl ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   as_decl_name=`echo $2|sed 's/ *(.*//'`
2140   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2142 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2143 if eval \${$3+:} false; then :
2144   $as_echo_n "(cached) " >&6
2145 else
2146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h.  */
2148 $4
2149 int
2150 main ()
2151 {
2152 #ifndef $as_decl_name
2153 #ifdef __cplusplus
2154   (void) $as_decl_use;
2155 #else
2156   (void) $as_decl_name;
2157 #endif
2158 #endif
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   eval "$3=yes"
2166 else
2167   eval "$3=no"
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 eval ac_res=\$$3
2172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176 } # ac_fn_c_check_decl
2177
2178 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2179 # --------------------------------------------
2180 # Tries to find the compile-time value of EXPR in a program that includes
2181 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2182 # computed
2183 ac_fn_c_compute_int ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   if test "$cross_compiling" = yes; then
2187     # Depending upon the size, compute the lo and hi bounds.
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $4
2191 int
2192 main ()
2193 {
2194 static int test_array [1 - 2 * !(($2) >= 0)];
2195 test_array [0] = 0;
2196 return test_array [0];
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203   ac_lo=0 ac_mid=0
2204   while :; do
2205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 $4
2208 int
2209 main ()
2210 {
2211 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2212 test_array [0] = 0;
2213 return test_array [0];
2214
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220   ac_hi=$ac_mid; break
2221 else
2222   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2223                         if test $ac_lo -le $ac_mid; then
2224                           ac_lo= ac_hi=
2225                           break
2226                         fi
2227                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2228 fi
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230   done
2231 else
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 int
2236 main ()
2237 {
2238 static int test_array [1 - 2 * !(($2) < 0)];
2239 test_array [0] = 0;
2240 return test_array [0];
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   ac_hi=-1 ac_mid=-1
2248   while :; do
2249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $4
2252 int
2253 main ()
2254 {
2255 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2256 test_array [0] = 0;
2257 return test_array [0];
2258
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264   ac_lo=$ac_mid; break
2265 else
2266   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2267                         if test $ac_mid -le $ac_hi; then
2268                           ac_lo= ac_hi=
2269                           break
2270                         fi
2271                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274   done
2275 else
2276   ac_lo= ac_hi=
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 # Binary search between lo and hi bounds.
2282 while test "x$ac_lo" != "x$ac_hi"; do
2283   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h.  */
2286 $4
2287 int
2288 main ()
2289 {
2290 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2291 test_array [0] = 0;
2292 return test_array [0];
2293
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299   ac_hi=$ac_mid
2300 else
2301   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 done
2305 case $ac_lo in #((
2306 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 '') ac_retval=1 ;;
2308 esac
2309   else
2310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 $4
2313 static long int longval () { return $2; }
2314 static unsigned long int ulongval () { return $2; }
2315 #include <stdio.h>
2316 #include <stdlib.h>
2317 int
2318 main ()
2319 {
2320
2321   FILE *f = fopen ("conftest.val", "w");
2322   if (! f)
2323     return 1;
2324   if (($2) < 0)
2325     {
2326       long int i = longval ();
2327       if (i != ($2))
2328         return 1;
2329       fprintf (f, "%ld", i);
2330     }
2331   else
2332     {
2333       unsigned long int i = ulongval ();
2334       if (i != ($2))
2335         return 1;
2336       fprintf (f, "%lu", i);
2337     }
2338   /* Do not output a trailing newline, as this causes \r\n confusion
2339      on some platforms.  */
2340   return ferror (f) || fclose (f) != 0;
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 if ac_fn_c_try_run "$LINENO"; then :
2347   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 else
2349   ac_retval=1
2350 fi
2351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2352   conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 rm -f conftest.val
2354
2355   fi
2356   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357   as_fn_set_status $ac_retval
2358
2359 } # ac_fn_c_compute_int
2360
2361 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2362 # ----------------------------------------------------
2363 # Tries to find if the field MEMBER exists in type AGGR, after including
2364 # INCLUDES, setting cache variable VAR accordingly.
2365 ac_fn_c_check_member ()
2366 {
2367   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2369 $as_echo_n "checking for $2.$3... " >&6; }
2370 if eval \${$4+:} false; then :
2371   $as_echo_n "(cached) " >&6
2372 else
2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $5
2376 int
2377 main ()
2378 {
2379 static $2 ac_aggr;
2380 if (ac_aggr.$3)
2381 return 0;
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387   eval "$4=yes"
2388 else
2389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 $5
2392 int
2393 main ()
2394 {
2395 static $2 ac_aggr;
2396 if (sizeof ac_aggr.$3)
2397 return 0;
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403   eval "$4=yes"
2404 else
2405   eval "$4=no"
2406 fi
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 fi
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 fi
2411 eval ac_res=\$$4
2412                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415
2416 } # ac_fn_c_check_member
2417 cat >config.log <<_ACEOF
2418 This file contains any messages produced by compilers while
2419 running configure, to aid debugging if configure makes a mistake.
2420
2421 It was created by $as_me, which was
2422 generated by GNU Autoconf 2.69.  Invocation command line was
2423
2424   $ $0 $@
2425
2426 _ACEOF
2427 exec 5>>config.log
2428 {
2429 cat <<_ASUNAME
2430 ## --------- ##
2431 ## Platform. ##
2432 ## --------- ##
2433
2434 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2435 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2436 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2437 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2438 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2439
2440 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2441 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2442
2443 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2444 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2445 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2446 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2447 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2448 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2449 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2450
2451 _ASUNAME
2452
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458     $as_echo "PATH: $as_dir"
2459   done
2460 IFS=$as_save_IFS
2461
2462 } >&5
2463
2464 cat >&5 <<_ACEOF
2465
2466
2467 ## ----------- ##
2468 ## Core tests. ##
2469 ## ----------- ##
2470
2471 _ACEOF
2472
2473
2474 # Keep a trace of the command line.
2475 # Strip out --no-create and --no-recursion so they do not pile up.
2476 # Strip out --silent because we don't want to record it for future runs.
2477 # Also quote any args containing shell meta-characters.
2478 # Make two passes to allow for proper duplicate-argument suppression.
2479 ac_configure_args=
2480 ac_configure_args0=
2481 ac_configure_args1=
2482 ac_must_keep_next=false
2483 for ac_pass in 1 2
2484 do
2485   for ac_arg
2486   do
2487     case $ac_arg in
2488     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2489     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2490     | -silent | --silent | --silen | --sile | --sil)
2491       continue ;;
2492     *\'*)
2493       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2494     esac
2495     case $ac_pass in
2496     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2497     2)
2498       as_fn_append ac_configure_args1 " '$ac_arg'"
2499       if test $ac_must_keep_next = true; then
2500         ac_must_keep_next=false # Got value, back to normal.
2501       else
2502         case $ac_arg in
2503           *=* | --config-cache | -C | -disable-* | --disable-* \
2504           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2505           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2506           | -with-* | --with-* | -without-* | --without-* | --x)
2507             case "$ac_configure_args0 " in
2508               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2509             esac
2510             ;;
2511           -* ) ac_must_keep_next=true ;;
2512         esac
2513       fi
2514       as_fn_append ac_configure_args " '$ac_arg'"
2515       ;;
2516     esac
2517   done
2518 done
2519 { ac_configure_args0=; unset ac_configure_args0;}
2520 { ac_configure_args1=; unset ac_configure_args1;}
2521
2522 # When interrupted or exit'd, cleanup temporary files, and complete
2523 # config.log.  We remove comments because anyway the quotes in there
2524 # would cause problems or look ugly.
2525 # WARNING: Use '\'' to represent an apostrophe within the trap.
2526 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2527 trap 'exit_status=$?
2528   # Save into config.log some information that might help in debugging.
2529   {
2530     echo
2531
2532     $as_echo "## ---------------- ##
2533 ## Cache variables. ##
2534 ## ---------------- ##"
2535     echo
2536     # The following way of writing the cache mishandles newlines in values,
2537 (
2538   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2539     eval ac_val=\$$ac_var
2540     case $ac_val in #(
2541     *${as_nl}*)
2542       case $ac_var in #(
2543       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2545       esac
2546       case $ac_var in #(
2547       _ | IFS | as_nl) ;; #(
2548       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2549       *) { eval $ac_var=; unset $ac_var;} ;;
2550       esac ;;
2551     esac
2552   done
2553   (set) 2>&1 |
2554     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2555     *${as_nl}ac_space=\ *)
2556       sed -n \
2557         "s/'\''/'\''\\\\'\'''\''/g;
2558           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2559       ;; #(
2560     *)
2561       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2562       ;;
2563     esac |
2564     sort
2565 )
2566     echo
2567
2568     $as_echo "## ----------------- ##
2569 ## Output variables. ##
2570 ## ----------------- ##"
2571     echo
2572     for ac_var in $ac_subst_vars
2573     do
2574       eval ac_val=\$$ac_var
2575       case $ac_val in
2576       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2577       esac
2578       $as_echo "$ac_var='\''$ac_val'\''"
2579     done | sort
2580     echo
2581
2582     if test -n "$ac_subst_files"; then
2583       $as_echo "## ------------------- ##
2584 ## File substitutions. ##
2585 ## ------------------- ##"
2586       echo
2587       for ac_var in $ac_subst_files
2588       do
2589         eval ac_val=\$$ac_var
2590         case $ac_val in
2591         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2592         esac
2593         $as_echo "$ac_var='\''$ac_val'\''"
2594       done | sort
2595       echo
2596     fi
2597
2598     if test -s confdefs.h; then
2599       $as_echo "## ----------- ##
2600 ## confdefs.h. ##
2601 ## ----------- ##"
2602       echo
2603       cat confdefs.h
2604       echo
2605     fi
2606     test "$ac_signal" != 0 &&
2607       $as_echo "$as_me: caught signal $ac_signal"
2608     $as_echo "$as_me: exit $exit_status"
2609   } >&5
2610   rm -f core *.core core.conftest.* &&
2611     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2612     exit $exit_status
2613 ' 0
2614 for ac_signal in 1 2 13 15; do
2615   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2616 done
2617 ac_signal=0
2618
2619 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2620 rm -f -r conftest* confdefs.h
2621
2622 $as_echo "/* confdefs.h */" > confdefs.h
2623
2624 # Predefined preprocessor variables.
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_NAME "$PACKAGE_NAME"
2628 _ACEOF
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2632 _ACEOF
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2636 _ACEOF
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_STRING "$PACKAGE_STRING"
2640 _ACEOF
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2644 _ACEOF
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_URL "$PACKAGE_URL"
2648 _ACEOF
2649
2650
2651 # Let the site file select an alternate cache file if it wants to.
2652 # Prefer an explicitly selected file to automatically selected ones.
2653 ac_site_file1=NONE
2654 ac_site_file2=NONE
2655 if test -n "$CONFIG_SITE"; then
2656   # We do not want a PATH search for config.site.
2657   case $CONFIG_SITE in #((
2658     -*)  ac_site_file1=./$CONFIG_SITE;;
2659     */*) ac_site_file1=$CONFIG_SITE;;
2660     *)   ac_site_file1=./$CONFIG_SITE;;
2661   esac
2662 elif test "x$prefix" != xNONE; then
2663   ac_site_file1=$prefix/share/config.site
2664   ac_site_file2=$prefix/etc/config.site
2665 else
2666   ac_site_file1=$ac_default_prefix/share/config.site
2667   ac_site_file2=$ac_default_prefix/etc/config.site
2668 fi
2669 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2670 do
2671   test "x$ac_site_file" = xNONE && continue
2672   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2673     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2674 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2675     sed 's/^/| /' "$ac_site_file" >&5
2676     . "$ac_site_file" \
2677       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 as_fn_error $? "failed to load site script $ac_site_file
2680 See \`config.log' for more details" "$LINENO" 5; }
2681   fi
2682 done
2683
2684 if test -r "$cache_file"; then
2685   # Some versions of bash will fail to source /dev/null (special files
2686   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2687   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2688     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2689 $as_echo "$as_me: loading cache $cache_file" >&6;}
2690     case $cache_file in
2691       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2692       *)                      . "./$cache_file";;
2693     esac
2694   fi
2695 else
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2697 $as_echo "$as_me: creating cache $cache_file" >&6;}
2698   >$cache_file
2699 fi
2700
2701 gt_needs="$gt_needs "
2702 as_fn_append ac_header_list " stdlib.h"
2703 as_fn_append ac_header_list " unistd.h"
2704 as_fn_append ac_header_list " sys/param.h"
2705 as_fn_append ac_func_list " symlink"
2706 # Check that the precious variables saved in the cache have kept the same
2707 # value.
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711   eval ac_new_set=\$ac_env_${ac_var}_set
2712   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713   eval ac_new_val=\$ac_env_${ac_var}_value
2714   case $ac_old_set,$ac_new_set in
2715     set,)
2716       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718       ac_cache_corrupted=: ;;
2719     ,set)
2720       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722       ac_cache_corrupted=: ;;
2723     ,);;
2724     *)
2725       if test "x$ac_old_val" != "x$ac_new_val"; then
2726         # differences in whitespace do not lead to failure.
2727         ac_old_val_w=`echo x $ac_old_val`
2728         ac_new_val_w=`echo x $ac_new_val`
2729         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732           ac_cache_corrupted=:
2733         else
2734           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736           eval $ac_var=\$ac_old_val
2737         fi
2738         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2739 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2740         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2742       fi;;
2743   esac
2744   # Pass precious variables to config.status.
2745   if test "$ac_new_set" = set; then
2746     case $ac_new_val in
2747     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748     *) ac_arg=$ac_var=$ac_new_val ;;
2749     esac
2750     case " $ac_configure_args " in
2751       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2752       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2753     esac
2754   fi
2755 done
2756 if $ac_cache_corrupted; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2762 fi
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773
2774
2775 ac_aux_dir=
2776 for ac_dir in config "$srcdir"/config; do
2777   if test -f "$ac_dir/install-sh"; then
2778     ac_aux_dir=$ac_dir
2779     ac_install_sh="$ac_aux_dir/install-sh -c"
2780     break
2781   elif test -f "$ac_dir/install.sh"; then
2782     ac_aux_dir=$ac_dir
2783     ac_install_sh="$ac_aux_dir/install.sh -c"
2784     break
2785   elif test -f "$ac_dir/shtool"; then
2786     ac_aux_dir=$ac_dir
2787     ac_install_sh="$ac_aux_dir/shtool install -c"
2788     break
2789   fi
2790 done
2791 if test -z "$ac_aux_dir"; then
2792   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2793 fi
2794
2795 # These three variables are undocumented and unsupported,
2796 # and are intended to be withdrawn in a future Autoconf release.
2797 # They can cause serious problems if a builder's source tree is in a directory
2798 # whose full name contains unusual characters.
2799 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2800 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2801 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2802
2803
2804 ac_config_headers="$ac_config_headers lib/config.h"
2805
2806
2807 MCONFIG=./MCONFIG
2808
2809 BINARY_TYPE=bin
2810 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2811         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2812 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2813         | tr \" " " | awk '{print $1}'`
2814 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2815 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2816 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2817
2818 if expr $YEAR ">" 1900 > /dev/null ; then
2819         E2FSPROGS_YEAR=$YEAR
2820 elif expr $YEAR ">" 90 >/dev/null ; then
2821         E2FSPROGS_YEAR=19$YEAR
2822 else
2823         E2FSPROGS_YEAR=20$YEAR
2824 fi
2825
2826 case $MONTH in
2827 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2828 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2829 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2830 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2831 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2832 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2833 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2834 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2835 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2836 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2837 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2838 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2839 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2840 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2841 esac
2842
2843 base_ver=`echo $E2FSPROGS_VERSION | \
2844                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2845
2846 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2847
2848 case $E2FSPROGS_VERSION in
2849 *-WIP|pre-*)
2850         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2851         ;;
2852 *)
2853         E2FSPROGS_PKGVER="$base_ver"
2854         ;;
2855 esac
2856
2857 unset DATE MONTH YEAR base_ver pre_vers date_spec
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2859 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2861 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2862
2863
2864
2865
2866
2867
2868 WITH_DIET_LIBC=
2869
2870 # Check whether --with-diet-libc was given.
2871 if test "${with_diet_libc+set}" = set; then :
2872   withval=$with_diet_libc; CC="diet cc -nostdinc"
2873 WITH_DIET_LIBC=yes
2874 if test -z "$LIBS"
2875 then
2876         LIBS="-lcompat"
2877 else
2878         LIBS="$LIBS -lcompat"
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2881 $as_echo "CC=$CC" >&6; }
2882 fi
2883 # Make sure we can run config.sub.
2884 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2885   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2888 $as_echo_n "checking build system type... " >&6; }
2889 if ${ac_cv_build+:} false; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   ac_build_alias=$build_alias
2893 test "x$ac_build_alias" = x &&
2894   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2895 test "x$ac_build_alias" = x &&
2896   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2897 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2898   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2899
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2902 $as_echo "$ac_cv_build" >&6; }
2903 case $ac_cv_build in
2904 *-*-*) ;;
2905 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2906 esac
2907 build=$ac_cv_build
2908 ac_save_IFS=$IFS; IFS='-'
2909 set x $ac_cv_build
2910 shift
2911 build_cpu=$1
2912 build_vendor=$2
2913 shift; shift
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2916 build_os=$*
2917 IFS=$ac_save_IFS
2918 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2919
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2922 $as_echo_n "checking host system type... " >&6; }
2923 if ${ac_cv_host+:} false; then :
2924   $as_echo_n "(cached) " >&6
2925 else
2926   if test "x$host_alias" = x; then
2927   ac_cv_host=$ac_cv_build
2928 else
2929   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2930     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2931 fi
2932
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2935 $as_echo "$ac_cv_host" >&6; }
2936 case $ac_cv_host in
2937 *-*-*) ;;
2938 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2939 esac
2940 host=$ac_cv_host
2941 ac_save_IFS=$IFS; IFS='-'
2942 set x $ac_cv_host
2943 shift
2944 host_cpu=$1
2945 host_vendor=$2
2946 shift; shift
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2949 host_os=$*
2950 IFS=$ac_save_IFS
2951 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2952
2953
2954 DLOPEN_LIB=''
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 if test -n "$ac_tool_prefix"; then
2961   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$CC"; then
2969   ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983   done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998 fi
2999 if test -z "$ac_cv_prog_CC"; then
3000   ac_ct_CC=$CC
3001   # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   if test -n "$ac_ct_CC"; then
3009   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018     ac_cv_prog_ac_ct_CC="gcc"
3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020     break 2
3021   fi
3022 done
3023   done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037   if test "x$ac_ct_CC" = x; then
3038     CC=""
3039   else
3040     case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046     CC=$ac_ct_CC
3047   fi
3048 else
3049   CC="$ac_cv_prog_CC"
3050 fi
3051
3052 if test -z "$CC"; then
3053           if test -n "$ac_tool_prefix"; then
3054     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071     ac_cv_prog_CC="${ac_tool_prefix}cc"
3072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076   done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091   fi
3092 fi
3093 if test -z "$CC"; then
3094   # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104   ac_prog_rejected=no
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113        ac_prog_rejected=yes
3114        continue
3115      fi
3116     ac_cv_prog_CC="cc"
3117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121   done
3122 IFS=$as_save_IFS
3123
3124 if test $ac_prog_rejected = yes; then
3125   # We found a bogon in the path, so make sure we never use it.
3126   set dummy $ac_cv_prog_CC
3127   shift
3128   if test $# != 0; then
3129     # We chose a different compiler from the bogus one.
3130     # However, it has the same basename, so the bogon will be chosen
3131     # first if we set CC to just the basename; use the full file name.
3132     shift
3133     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134   fi
3135 fi
3136 fi
3137 fi
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 fi
3149 if test -z "$CC"; then
3150   if test -n "$ac_tool_prefix"; then
3151   for ac_prog in cl.exe
3152   do
3153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CC+:} false; then :
3158   $as_echo_n "(cached) " >&6
3159 else
3160   if test -n "$CC"; then
3161   ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168     for ac_exec_ext in '' $ac_executable_extensions; do
3169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172     break 2
3173   fi
3174 done
3175   done
3176 IFS=$as_save_IFS
3177
3178 fi
3179 fi
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3184 else
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 fi
3188
3189
3190     test -n "$CC" && break
3191   done
3192 fi
3193 if test -z "$CC"; then
3194   ac_ct_CC=$CC
3195   for ac_prog in cl.exe
3196 do
3197   # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$ac_ct_CC"; then
3205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214     ac_cv_prog_ac_ct_CC="$ac_prog"
3215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219   done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 $as_echo "$ac_ct_CC" >&6; }
3228 else
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233
3234   test -n "$ac_ct_CC" && break
3235 done
3236
3237   if test "x$ac_ct_CC" = x; then
3238     CC=""
3239   else
3240     case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246     CC=$ac_ct_CC
3247   fi
3248 fi
3249
3250 fi
3251
3252
3253 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error $? "no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details" "$LINENO" 5; }
3257
3258 # Provide some information about the compiler.
3259 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3260 set X $ac_compile
3261 ac_compiler=$2
3262 for ac_option in --version -v -V -qversion; do
3263   { { ac_try="$ac_compiler $ac_option >&5"
3264 case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3271   ac_status=$?
3272   if test -s conftest.err; then
3273     sed '10a\
3274 ... rest of stderr output deleted ...
3275          10q' conftest.err >conftest.er1
3276     cat conftest.er1 >&5
3277   fi
3278   rm -f conftest.er1 conftest.err
3279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280   test $ac_status = 0; }
3281 done
3282
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h.  */
3285
3286 int
3287 main ()
3288 {
3289
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 ac_clean_files_save=$ac_clean_files
3295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3296 # Try to create an executable without -o first, disregard a.out.
3297 # It will help us diagnose broken compilers, and finding out an intuition
3298 # of exeext.
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3300 $as_echo_n "checking whether the C compiler works... " >&6; }
3301 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3302
3303 # The possible output files:
3304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305
3306 ac_rmfiles=
3307 for ac_file in $ac_files
3308 do
3309   case $ac_file in
3310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3312   esac
3313 done
3314 rm -f $ac_rmfiles
3315
3316 if { { ac_try="$ac_link_default"
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_default") 2>&5
3324   ac_status=$?
3325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326   test $ac_status = 0; }; then :
3327   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3328 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3329 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3330 # so that the user can short-circuit this test for compilers unknown to
3331 # Autoconf.
3332 for ac_file in $ac_files ''
3333 do
3334   test -f "$ac_file" || continue
3335   case $ac_file in
3336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337         ;;
3338     [ab].out )
3339         # We found the default executable, but exeext='' is most
3340         # certainly right.
3341         break;;
3342     *.* )
3343         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344         then :; else
3345            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346         fi
3347         # We set ac_cv_exeext here because the later test for it is not
3348         # safe: cross compilers may not add the suffix if given an `-o'
3349         # argument, so we may need to know it at that point already.
3350         # Even if this section looks crufty: it has the advantage of
3351         # actually working.
3352         break;;
3353     * )
3354         break;;
3355   esac
3356 done
3357 test "$ac_cv_exeext" = no && ac_cv_exeext=
3358
3359 else
3360   ac_file=''
3361 fi
3362 if test -z "$ac_file"; then :
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error 77 "C compiler cannot create executables
3371 See \`config.log' for more details" "$LINENO" 5; }
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3377 $as_echo_n "checking for C compiler default output file name... " >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3379 $as_echo "$ac_file" >&6; }
3380 ac_exeext=$ac_cv_exeext
3381
3382 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3385 $as_echo_n "checking for suffix of executables... " >&6; }
3386 if { { ac_try="$ac_link"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393   (eval "$ac_link") 2>&5
3394   ac_status=$?
3395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396   test $ac_status = 0; }; then :
3397   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3398 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3399 # work properly (i.e., refer to `conftest.exe'), while it won't with
3400 # `rm'.
3401 for ac_file in conftest.exe conftest conftest.*; do
3402   test -f "$ac_file" || continue
3403   case $ac_file in
3404     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406           break;;
3407     * ) break;;
3408   esac
3409 done
3410 else
3411   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details" "$LINENO" 5; }
3415 fi
3416 rm -f conftest conftest$ac_cv_exeext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3418 $as_echo "$ac_cv_exeext" >&6; }
3419
3420 rm -f conftest.$ac_ext
3421 EXEEXT=$ac_cv_exeext
3422 ac_exeext=$EXEEXT
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h.  */
3425 #include <stdio.h>
3426 int
3427 main ()
3428 {
3429 FILE *f = fopen ("conftest.out", "w");
3430  return ferror (f) || fclose (f) != 0;
3431
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 ac_clean_files="$ac_clean_files conftest.out"
3437 # Check that the compiler produces executables we can run.  If not, either
3438 # the compiler is broken, or we cross compile.
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3440 $as_echo_n "checking whether we are cross compiling... " >&6; }
3441 if test "$cross_compiling" != yes; then
3442   { { ac_try="$ac_link"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449   (eval "$ac_link") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }
3453   if { ac_try='./conftest$ac_cv_exeext'
3454   { { case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_try") 2>&5
3461   ac_status=$?
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }; }; then
3464     cross_compiling=no
3465   else
3466     if test "$cross_compiling" = maybe; then
3467         cross_compiling=yes
3468     else
3469         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot run C compiled programs.
3472 If you meant to cross compile, use \`--host'.
3473 See \`config.log' for more details" "$LINENO" 5; }
3474     fi
3475   fi
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3478 $as_echo "$cross_compiling" >&6; }
3479
3480 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3481 ac_clean_files=$ac_clean_files_save
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3483 $as_echo_n "checking for suffix of object files... " >&6; }
3484 if ${ac_cv_objext+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.o conftest.obj
3499 if { { ac_try="$ac_compile"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_compile") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   for ac_file in conftest.o conftest.obj conftest.*; do
3511   test -f "$ac_file" || continue;
3512   case $ac_file in
3513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3514     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3515        break;;
3516   esac
3517 done
3518 else
3519   $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error $? "cannot compute suffix of object files: cannot compile
3525 See \`config.log' for more details" "$LINENO" 5; }
3526 fi
3527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3530 $as_echo "$ac_cv_objext" >&6; }
3531 OBJEXT=$ac_cv_objext
3532 ac_objext=$OBJEXT
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3534 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3535 if ${ac_cv_c_compiler_gnu+:} false; then :
3536   $as_echo_n "(cached) " >&6
3537 else
3538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544 #ifndef __GNUC__
3545        choke me
3546 #endif
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553   ac_compiler_gnu=yes
3554 else
3555   ac_compiler_gnu=no
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3559
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3562 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3563 if test $ac_compiler_gnu = yes; then
3564   GCC=yes
3565 else
3566   GCC=
3567 fi
3568 ac_test_CFLAGS=${CFLAGS+set}
3569 ac_save_CFLAGS=$CFLAGS
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3571 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3572 if ${ac_cv_prog_cc_g+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   ac_save_c_werror_flag=$ac_c_werror_flag
3576    ac_c_werror_flag=yes
3577    ac_cv_prog_cc_g=no
3578    CFLAGS="-g"
3579    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591   ac_cv_prog_cc_g=yes
3592 else
3593   CFLAGS=""
3594       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606
3607 else
3608   ac_c_werror_flag=$ac_save_c_werror_flag
3609          CFLAGS="-g"
3610          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622   ac_cv_prog_cc_g=yes
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629    ac_c_werror_flag=$ac_save_c_werror_flag
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3632 $as_echo "$ac_cv_prog_cc_g" >&6; }
3633 if test "$ac_test_CFLAGS" = set; then
3634   CFLAGS=$ac_save_CFLAGS
3635 elif test $ac_cv_prog_cc_g = yes; then
3636   if test "$GCC" = yes; then
3637     CFLAGS="-g -O2"
3638   else
3639     CFLAGS="-g"
3640   fi
3641 else
3642   if test "$GCC" = yes; then
3643     CFLAGS="-O2"
3644   else
3645     CFLAGS=
3646   fi
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3649 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3650 if ${ac_cv_prog_cc_c89+:} false; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   ac_cv_prog_cc_c89=no
3654 ac_save_CC=$CC
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h.  */
3657 #include <stdarg.h>
3658 #include <stdio.h>
3659 struct stat;
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689    inside strings and character constants.  */
3690 #define FOO(x) 'x'
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3692
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 int argc;
3698 char **argv;
3699 int
3700 main ()
3701 {
3702 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 do
3710   CC="$ac_save_CC $ac_arg"
3711   if ac_fn_c_try_compile "$LINENO"; then :
3712   ac_cv_prog_cc_c89=$ac_arg
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext
3715   test "x$ac_cv_prog_cc_c89" != "xno" && break
3716 done
3717 rm -f conftest.$ac_ext
3718 CC=$ac_save_CC
3719
3720 fi
3721 # AC_CACHE_VAL
3722 case "x$ac_cv_prog_cc_c89" in
3723   x)
3724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3726   xno)
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3729   *)
3730     CC="$CC $ac_cv_prog_cc_c89"
3731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3733 esac
3734 if test "x$ac_cv_prog_cc_c89" != xno; then :
3735
3736 fi
3737
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3746 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3747 if ${ac_cv_lib_dl_dlopen+:} false; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   ac_check_lib_save_LIBS=$LIBS
3751 LIBS="-ldl  $LIBS"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h.  */
3754
3755 /* Override any GCC internal prototype to avoid an error.
3756    Use char because int might match the return type of a GCC
3757    builtin and then its argument prototype would still apply.  */
3758 #ifdef __cplusplus
3759 extern "C"
3760 #endif
3761 char dlopen ();
3762 int
3763 main ()
3764 {
3765 return dlopen ();
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_link "$LINENO"; then :
3771   ac_cv_lib_dl_dlopen=yes
3772 else
3773   ac_cv_lib_dl_dlopen=no
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext \
3776     conftest$ac_exeext conftest.$ac_ext
3777 LIBS=$ac_check_lib_save_LIBS
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3781 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3782   DLOPEN_LIB=-ldl
3783 fi
3784
3785
3786
3787 # Check whether --with-cc was given.
3788 if test "${with_cc+set}" = set; then :
3789   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3790 fi
3791
3792
3793 # Check whether --with-ccopts was given.
3794 if test "${with_ccopts+set}" = set; then :
3795   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3796 fi
3797
3798
3799 # Check whether --with-ldopts was given.
3800 if test "${with_ldopts+set}" = set; then :
3801   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3802 fi
3803
3804 ac_ext=c
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 if test -n "$ac_tool_prefix"; then
3810   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847 fi
3848 if test -z "$ac_cv_prog_CC"; then
3849   ac_ct_CC=$CC
3850   # Extract the first word of "gcc", so it can be a program name with args.
3851 set dummy gcc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   if test -n "$ac_ct_CC"; then
3858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863   IFS=$as_save_IFS
3864   test -z "$as_dir" && as_dir=.
3865     for ac_exec_ext in '' $ac_executable_extensions; do
3866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867     ac_cv_prog_ac_ct_CC="gcc"
3868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869     break 2
3870   fi
3871 done
3872   done
3873 IFS=$as_save_IFS
3874
3875 fi
3876 fi
3877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3878 if test -n "$ac_ct_CC"; then
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3880 $as_echo "$ac_ct_CC" >&6; }
3881 else
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3884 fi
3885
3886   if test "x$ac_ct_CC" = x; then
3887     CC=""
3888   else
3889     case $cross_compiling:$ac_tool_warned in
3890 yes:)
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3893 ac_tool_warned=yes ;;
3894 esac
3895     CC=$ac_ct_CC
3896   fi
3897 else
3898   CC="$ac_cv_prog_CC"
3899 fi
3900
3901 if test -z "$CC"; then
3902           if test -n "$ac_tool_prefix"; then
3903     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}cc; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if ${ac_cv_prog_CC+:} false; then :
3908   $as_echo_n "(cached) " >&6
3909 else
3910   if test -n "$CC"; then
3911   ac_cv_prog_CC="$CC" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918     for ac_exec_ext in '' $ac_executable_extensions; do
3919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920     ac_cv_prog_CC="${ac_tool_prefix}cc"
3921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922     break 2
3923   fi
3924 done
3925   done
3926 IFS=$as_save_IFS
3927
3928 fi
3929 fi
3930 CC=$ac_cv_prog_CC
3931 if test -n "$CC"; then
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3933 $as_echo "$CC" >&6; }
3934 else
3935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3937 fi
3938
3939
3940   fi
3941 fi
3942 if test -z "$CC"; then
3943   # Extract the first word of "cc", so it can be a program name with args.
3944 set dummy cc; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_CC+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   if test -n "$CC"; then
3951   ac_cv_prog_CC="$CC" # Let the user override the test.
3952 else
3953   ac_prog_rejected=no
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957   IFS=$as_save_IFS
3958   test -z "$as_dir" && as_dir=.
3959     for ac_exec_ext in '' $ac_executable_extensions; do
3960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3962        ac_prog_rejected=yes
3963        continue
3964      fi
3965     ac_cv_prog_CC="cc"
3966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967     break 2
3968   fi
3969 done
3970   done
3971 IFS=$as_save_IFS
3972
3973 if test $ac_prog_rejected = yes; then
3974   # We found a bogon in the path, so make sure we never use it.
3975   set dummy $ac_cv_prog_CC
3976   shift
3977   if test $# != 0; then
3978     # We chose a different compiler from the bogus one.
3979     # However, it has the same basename, so the bogon will be chosen
3980     # first if we set CC to just the basename; use the full file name.
3981     shift
3982     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3983   fi
3984 fi
3985 fi
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 $as_echo "$CC" >&6; }
3991 else
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997 fi
3998 if test -z "$CC"; then
3999   if test -n "$ac_tool_prefix"; then
4000   for ac_prog in cl.exe
4001   do
4002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   if test -n "$CC"; then
4010   ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017     for ac_exec_ext in '' $ac_executable_extensions; do
4018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024   done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038
4039     test -n "$CC" && break
4040   done
4041 fi
4042 if test -z "$CC"; then
4043   ac_ct_CC=$CC
4044   for ac_prog in cl.exe
4045 do
4046   # Extract the first word of "$ac_prog", so it can be a program name with args.
4047 set dummy $ac_prog; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   if test -n "$ac_ct_CC"; then
4054   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_ac_ct_CC="$ac_prog"
4064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4074 if test -n "$ac_ct_CC"; then
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076 $as_echo "$ac_ct_CC" >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083   test -n "$ac_ct_CC" && break
4084 done
4085
4086   if test "x$ac_ct_CC" = x; then
4087     CC=""
4088   else
4089     case $cross_compiling:$ac_tool_warned in
4090 yes:)
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4093 ac_tool_warned=yes ;;
4094 esac
4095     CC=$ac_ct_CC
4096   fi
4097 fi
4098
4099 fi
4100
4101
4102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "no acceptable C compiler found in \$PATH
4105 See \`config.log' for more details" "$LINENO" 5; }
4106
4107 # Provide some information about the compiler.
4108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4109 set X $ac_compile
4110 ac_compiler=$2
4111 for ac_option in --version -v -V -qversion; do
4112   { { ac_try="$ac_compiler $ac_option >&5"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4120   ac_status=$?
4121   if test -s conftest.err; then
4122     sed '10a\
4123 ... rest of stderr output deleted ...
4124          10q' conftest.err >conftest.er1
4125     cat conftest.er1 >&5
4126   fi
4127   rm -f conftest.er1 conftest.err
4128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129   test $ac_status = 0; }
4130 done
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4134 if ${ac_cv_c_compiler_gnu+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h.  */
4139
4140 int
4141 main ()
4142 {
4143 #ifndef __GNUC__
4144        choke me
4145 #endif
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152   ac_compiler_gnu=yes
4153 else
4154   ac_compiler_gnu=no
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4158
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4162 if test $ac_compiler_gnu = yes; then
4163   GCC=yes
4164 else
4165   GCC=
4166 fi
4167 ac_test_CFLAGS=${CFLAGS+set}
4168 ac_save_CFLAGS=$CFLAGS
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4171 if ${ac_cv_prog_cc_g+:} false; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   ac_save_c_werror_flag=$ac_c_werror_flag
4175    ac_c_werror_flag=yes
4176    ac_cv_prog_cc_g=no
4177    CFLAGS="-g"
4178    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h.  */
4180
4181 int
4182 main ()
4183 {
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190   ac_cv_prog_cc_g=yes
4191 else
4192   CFLAGS=""
4193       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h.  */
4195
4196 int
4197 main ()
4198 {
4199
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205
4206 else
4207   ac_c_werror_flag=$ac_save_c_werror_flag
4208          CFLAGS="-g"
4209          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_cv_prog_cc_g=yes
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228    ac_c_werror_flag=$ac_save_c_werror_flag
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4231 $as_echo "$ac_cv_prog_cc_g" >&6; }
4232 if test "$ac_test_CFLAGS" = set; then
4233   CFLAGS=$ac_save_CFLAGS
4234 elif test $ac_cv_prog_cc_g = yes; then
4235   if test "$GCC" = yes; then
4236     CFLAGS="-g -O2"
4237   else
4238     CFLAGS="-g"
4239   fi
4240 else
4241   if test "$GCC" = yes; then
4242     CFLAGS="-O2"
4243   else
4244     CFLAGS=
4245   fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4249 if ${ac_cv_prog_cc_c89+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   ac_cv_prog_cc_c89=no
4253 ac_save_CC=$CC
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 #include <stdarg.h>
4257 #include <stdio.h>
4258 struct stat;
4259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4260 struct buf { int x; };
4261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4262 static char *e (p, i)
4263      char **p;
4264      int i;
4265 {
4266   return p[i];
4267 }
4268 static char *f (char * (*g) (char **, int), char **p, ...)
4269 {
4270   char *s;
4271   va_list v;
4272   va_start (v,p);
4273   s = g (p, va_arg (v,int));
4274   va_end (v);
4275   return s;
4276 }
4277
4278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4279    function prototypes and stuff, but not '\xHH' hex character constants.
4280    These don't provoke an error unfortunately, instead are silently treated
4281    as 'x'.  The following induces an error, until -std is added to get
4282    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4283    array size at least.  It's necessary to write '\x00'==0 to get something
4284    that's true only with -std.  */
4285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4286
4287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4288    inside strings and character constants.  */
4289 #define FOO(x) 'x'
4290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4291
4292 int test (int i, double x);
4293 struct s1 {int (*f) (int a);};
4294 struct s2 {int (*f) (double a);};
4295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4296 int argc;
4297 char **argv;
4298 int
4299 main ()
4300 {
4301 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4307         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4308 do
4309   CC="$ac_save_CC $ac_arg"
4310   if ac_fn_c_try_compile "$LINENO"; then :
4311   ac_cv_prog_cc_c89=$ac_arg
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext
4314   test "x$ac_cv_prog_cc_c89" != "xno" && break
4315 done
4316 rm -f conftest.$ac_ext
4317 CC=$ac_save_CC
4318
4319 fi
4320 # AC_CACHE_VAL
4321 case "x$ac_cv_prog_cc_c89" in
4322   x)
4323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4324 $as_echo "none needed" >&6; } ;;
4325   xno)
4326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4327 $as_echo "unsupported" >&6; } ;;
4328   *)
4329     CC="$CC $ac_cv_prog_cc_c89"
4330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4331 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4332 esac
4333 if test "x$ac_cv_prog_cc_c89" != xno; then :
4334
4335 fi
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343 if test "$GCC" = yes; then
4344    RDYNAMIC="-rdynamic"
4345
4346 fi
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4353 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4354 # On Suns, sometimes $CPP names a directory.
4355 if test -n "$CPP" && test -d "$CPP"; then
4356   CPP=
4357 fi
4358 if test -z "$CPP"; then
4359   if ${ac_cv_prog_CPP+:} false; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362       # Double quotes because CPP needs to be expanded
4363     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4364     do
4365       ac_preproc_ok=false
4366 for ac_c_preproc_warn_flag in '' yes
4367 do
4368   # Use a header file that comes with gcc, so configuring glibc
4369   # with a fresh cross-compiler works.
4370   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371   # <limits.h> exists even on freestanding compilers.
4372   # On the NeXT, cc -E runs the code through the compiler's parser,
4373   # not just through cpp. "Syntax error" is here to catch this case.
4374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376 #ifdef __STDC__
4377 # include <limits.h>
4378 #else
4379 # include <assert.h>
4380 #endif
4381                      Syntax error
4382 _ACEOF
4383 if ac_fn_c_try_cpp "$LINENO"; then :
4384
4385 else
4386   # Broken: fails on valid input.
4387 continue
4388 fi
4389 rm -f conftest.err conftest.i conftest.$ac_ext
4390
4391   # OK, works on sane cases.  Now check whether nonexistent headers
4392   # can be detected and how.
4393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395 #include <ac_nonexistent.h>
4396 _ACEOF
4397 if ac_fn_c_try_cpp "$LINENO"; then :
4398   # Broken: success on invalid input.
4399 continue
4400 else
4401   # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4404 fi
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4406
4407 done
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.i conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then :
4411   break
4412 fi
4413
4414     done
4415     ac_cv_prog_CPP=$CPP
4416
4417 fi
4418   CPP=$ac_cv_prog_CPP
4419 else
4420   ac_cv_prog_CPP=$CPP
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4423 $as_echo "$CPP" >&6; }
4424 ac_preproc_ok=false
4425 for ac_c_preproc_warn_flag in '' yes
4426 do
4427   # Use a header file that comes with gcc, so configuring glibc
4428   # with a fresh cross-compiler works.
4429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430   # <limits.h> exists even on freestanding compilers.
4431   # On the NeXT, cc -E runs the code through the compiler's parser,
4432   # not just through cpp. "Syntax error" is here to catch this case.
4433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435 #ifdef __STDC__
4436 # include <limits.h>
4437 #else
4438 # include <assert.h>
4439 #endif
4440                      Syntax error
4441 _ACEOF
4442 if ac_fn_c_try_cpp "$LINENO"; then :
4443
4444 else
4445   # Broken: fails on valid input.
4446 continue
4447 fi
4448 rm -f conftest.err conftest.i conftest.$ac_ext
4449
4450   # OK, works on sane cases.  Now check whether nonexistent headers
4451   # can be detected and how.
4452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h.  */
4454 #include <ac_nonexistent.h>
4455 _ACEOF
4456 if ac_fn_c_try_cpp "$LINENO"; then :
4457   # Broken: success on invalid input.
4458 continue
4459 else
4460   # Passes both tests.
4461 ac_preproc_ok=:
4462 break
4463 fi
4464 rm -f conftest.err conftest.i conftest.$ac_ext
4465
4466 done
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.i conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then :
4470
4471 else
4472   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4475 See \`config.log' for more details" "$LINENO" 5; }
4476 fi
4477
4478 ac_ext=c
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4485 $as_echo_n "checking for additional special compiler flags... " >&6; }
4486 if test "$GCC" = yes
4487 then
4488     case "$host_cpu" in
4489         alpha)          addcflags="-mieee" ;;
4490     esac
4491 fi
4492 if test "x$addcflags" != x
4493 then
4494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4495 $as_echo "$addcflags" >&6; }
4496     CFLAGS="$addcflags $CFLAGS"
4497 else
4498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4499 $as_echo "(none)" >&6; }
4500 fi
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4503 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4504 if ${ac_cv_path_GREP+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   if test -z "$GREP"; then
4508   ac_path_GREP_found=false
4509   # Loop through the user's path and test for each of PROGNAME-LIST
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515     for ac_prog in grep ggrep; do
4516     for ac_exec_ext in '' $ac_executable_extensions; do
4517       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4518       as_fn_executable_p "$ac_path_GREP" || continue
4519 # Check for GNU ac_path_GREP and select it if it is found.
4520   # Check for GNU $ac_path_GREP
4521 case `"$ac_path_GREP" --version 2>&1` in
4522 *GNU*)
4523   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4524 *)
4525   ac_count=0
4526   $as_echo_n 0123456789 >"conftest.in"
4527   while :
4528   do
4529     cat "conftest.in" "conftest.in" >"conftest.tmp"
4530     mv "conftest.tmp" "conftest.in"
4531     cp "conftest.in" "conftest.nl"
4532     $as_echo 'GREP' >> "conftest.nl"
4533     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535     as_fn_arith $ac_count + 1 && ac_count=$as_val
4536     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4537       # Best one so far, save it but keep looking for a better one
4538       ac_cv_path_GREP="$ac_path_GREP"
4539       ac_path_GREP_max=$ac_count
4540     fi
4541     # 10*(2^10) chars as input seems more than enough
4542     test $ac_count -gt 10 && break
4543   done
4544   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 esac
4546
4547       $ac_path_GREP_found && break 3
4548     done
4549   done
4550   done
4551 IFS=$as_save_IFS
4552   if test -z "$ac_cv_path_GREP"; then
4553     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554   fi
4555 else
4556   ac_cv_path_GREP=$GREP
4557 fi
4558
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4561 $as_echo "$ac_cv_path_GREP" >&6; }
4562  GREP="$ac_cv_path_GREP"
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4566 $as_echo_n "checking for egrep... " >&6; }
4567 if ${ac_cv_path_EGREP+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4571    then ac_cv_path_EGREP="$GREP -E"
4572    else
4573      if test -z "$EGREP"; then
4574   ac_path_EGREP_found=false
4575   # Loop through the user's path and test for each of PROGNAME-LIST
4576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581     for ac_prog in egrep; do
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4584       as_fn_executable_p "$ac_path_EGREP" || continue
4585 # Check for GNU ac_path_EGREP and select it if it is found.
4586   # Check for GNU $ac_path_EGREP
4587 case `"$ac_path_EGREP" --version 2>&1` in
4588 *GNU*)
4589   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4590 *)
4591   ac_count=0
4592   $as_echo_n 0123456789 >"conftest.in"
4593   while :
4594   do
4595     cat "conftest.in" "conftest.in" >"conftest.tmp"
4596     mv "conftest.tmp" "conftest.in"
4597     cp "conftest.in" "conftest.nl"
4598     $as_echo 'EGREP' >> "conftest.nl"
4599     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601     as_fn_arith $ac_count + 1 && ac_count=$as_val
4602     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603       # Best one so far, save it but keep looking for a better one
4604       ac_cv_path_EGREP="$ac_path_EGREP"
4605       ac_path_EGREP_max=$ac_count
4606     fi
4607     # 10*(2^10) chars as input seems more than enough
4608     test $ac_count -gt 10 && break
4609   done
4610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4612
4613       $ac_path_EGREP_found && break 3
4614     done
4615   done
4616   done
4617 IFS=$as_save_IFS
4618   if test -z "$ac_cv_path_EGREP"; then
4619     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620   fi
4621 else
4622   ac_cv_path_EGREP=$EGREP
4623 fi
4624
4625    fi
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4628 $as_echo "$ac_cv_path_EGREP" >&6; }
4629  EGREP="$ac_cv_path_EGREP"
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4633 $as_echo_n "checking for ANSI C header files... " >&6; }
4634 if ${ac_cv_header_stdc+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h.  */
4639 #include <stdlib.h>
4640 #include <stdarg.h>
4641 #include <string.h>
4642 #include <float.h>
4643
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653   ac_cv_header_stdc=yes
4654 else
4655   ac_cv_header_stdc=no
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658
4659 if test $ac_cv_header_stdc = yes; then
4660   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h.  */
4663 #include <string.h>
4664
4665 _ACEOF
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667   $EGREP "memchr" >/dev/null 2>&1; then :
4668
4669 else
4670   ac_cv_header_stdc=no
4671 fi
4672 rm -f conftest*
4673
4674 fi
4675
4676 if test $ac_cv_header_stdc = yes; then
4677   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680 #include <stdlib.h>
4681
4682 _ACEOF
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684   $EGREP "free" >/dev/null 2>&1; then :
4685
4686 else
4687   ac_cv_header_stdc=no
4688 fi
4689 rm -f conftest*
4690
4691 fi
4692
4693 if test $ac_cv_header_stdc = yes; then
4694   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4695   if test "$cross_compiling" = yes; then :
4696   :
4697 else
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 #include <ctype.h>
4701 #include <stdlib.h>
4702 #if ((' ' & 0x0FF) == 0x020)
4703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4705 #else
4706 # define ISLOWER(c) \
4707                    (('a' <= (c) && (c) <= 'i') \
4708                      || ('j' <= (c) && (c) <= 'r') \
4709                      || ('s' <= (c) && (c) <= 'z'))
4710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4711 #endif
4712
4713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4714 int
4715 main ()
4716 {
4717   int i;
4718   for (i = 0; i < 256; i++)
4719     if (XOR (islower (i), ISLOWER (i))
4720         || toupper (i) != TOUPPER (i))
4721       return 2;
4722   return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_run "$LINENO"; then :
4726
4727 else
4728   ac_cv_header_stdc=no
4729 fi
4730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4731   conftest.$ac_objext conftest.beam conftest.$ac_ext
4732 fi
4733
4734 fi
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4737 $as_echo "$ac_cv_header_stdc" >&6; }
4738 if test $ac_cv_header_stdc = yes; then
4739
4740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4741
4742 fi
4743
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4746                   inttypes.h stdint.h unistd.h
4747 do :
4748   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4749 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4750 "
4751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4752   cat >>confdefs.h <<_ACEOF
4753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 _ACEOF
4755
4756 fi
4757
4758 done
4759
4760
4761
4762   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4763 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4764   MINIX=yes
4765 else
4766   MINIX=
4767 fi
4768
4769
4770   if test "$MINIX" = yes; then
4771
4772 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4773
4774
4775 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4776
4777
4778 $as_echo "#define _MINIX 1" >>confdefs.h
4779
4780   fi
4781
4782
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4784 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4785 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790
4791 #         define __EXTENSIONS__ 1
4792           $ac_includes_default
4793 int
4794 main ()
4795 {
4796
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802   ac_cv_safe_to_define___extensions__=yes
4803 else
4804   ac_cv_safe_to_define___extensions__=no
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4809 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4810   test $ac_cv_safe_to_define___extensions__ = yes &&
4811     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4812
4813   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4814
4815   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4816
4817   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4818
4819   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4820
4821
4822 LIB_EXT=.a
4823 STATIC_LIB_EXT=.a
4824 PROFILED_LIB_EXT=.a
4825
4826 # Check whether --with-root-prefix was given.
4827 if test "${with_root_prefix+set}" = set; then :
4828   withval=$with_root_prefix; root_prefix=$withval
4829 else
4830   root_prefix=NONE
4831 fi
4832 # Check whether --enable-maintainer-mode was given.
4833 if test "${enable_maintainer_mode+set}" = set; then :
4834   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4835 then
4836         MAINTAINER_CMT=#
4837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4838 $as_echo "Disabling maintainer mode" >&6; }
4839 else
4840         MAINTAINER_CMT=
4841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4842 $as_echo "Enabling maintainer mode" >&6; }
4843 fi
4844
4845 else
4846   MAINTAINER_CMT=#
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4848 $as_echo "Disabling maintainer mode by default" >&6; }
4849
4850 fi
4851
4852
4853 # Check whether --enable-symlink-install was given.
4854 if test "${enable_symlink_install+set}" = set; then :
4855   enableval=$enable_symlink_install; if test "$enableval" = "no"
4856 then
4857         LINK_INSTALL_FLAGS=-f
4858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4859 $as_echo "Disabling symlinks for install" >&6; }
4860 else
4861         LINK_INSTALL_FLAGS=-sf
4862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4863 $as_echo "Enabling symlinks for install" >&6; }
4864 fi
4865
4866 else
4867   LINK_INSTALL_FLAGS=-f
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4869 $as_echo "Disabling symlinks for install by default" >&6; }
4870
4871 fi
4872
4873
4874 relative_symlink_defined=
4875 # Check whether --enable-relative-symlinks was given.
4876 if test "${enable_relative_symlinks+set}" = set; then :
4877   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4878 then
4879         SYMLINK_RELATIVE=
4880         relative_symlink_defined=yes
4881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4882 $as_echo "Disabling relative symlinks for install" >&6; }
4883 else
4884         SYMLINK_RELATIVE=--relative
4885         relative_symlink_defined=yes
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4887 $as_echo "Enabling relative symlinks for install" >&6; }
4888 fi
4889 fi
4890
4891 # Check whether --enable-symlink-relative-symlinks was given.
4892 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4893   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4894 then
4895         SYMLINK_RELATIVE=yes
4896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4897 $as_echo "Disabling relative symlinks for install" >&6; }
4898 else
4899         SYMLINK_RELATIVE=--relative
4900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4901 $as_echo "Enabling relative symlinks for install" >&6; }
4902 fi
4903
4904 else
4905   if test -z "$relative_symlink_defined"
4906 then
4907         SYMLINK_RELATIVE=
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4909 $as_echo "Disabling relative symlinks for install by default" >&6; }
4910 fi
4911
4912 fi
4913
4914
4915 # Check whether --enable-symlink-build was given.
4916 if test "${enable_symlink_build+set}" = set; then :
4917   enableval=$enable_symlink_build; if test "$enableval" = "no"
4918 then
4919         LINK_BUILD_FLAGS=
4920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4921 $as_echo "Disabling symlinks for build" >&6; }
4922 else
4923         LINK_BUILD_FLAGS=-s
4924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4925 $as_echo "Enabling symlinks for build" >&6; }
4926 fi
4927
4928 else
4929   LINK_BUILD_FLAGS=
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4931 $as_echo "Disabling symlinks for build by default" >&6; }
4932
4933 fi
4934
4935
4936 # Check whether --enable-verbose-makecmds was given.
4937 if test "${enable_verbose_makecmds+set}" = set; then :
4938   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4939 then
4940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4941 $as_echo "Disabling verbose make commands" >&6; }
4942         E=@echo
4943         ES=echo
4944         Q=@
4945 else
4946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4947 $as_echo "Enabling verbose make commands" >&6; }
4948         E=@\\#
4949         ES=\\#
4950         Q=
4951 fi
4952
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4955 $as_echo "Disabling verbose make commands" >&6; }
4956 E=@echo
4957 ES=echo
4958 Q=@
4959
4960 fi
4961
4962
4963
4964
4965 E2_PKG_CONFIG_STATIC=--static
4966 LDFLAG_DYNAMIC=
4967 PRIVATE_LIBS_CMT=
4968 # Check whether --enable-elf-shlibs was given.
4969 if test "${enable_elf_shlibs+set}" = set; then :
4970   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4971 then
4972         ELF_CMT=#
4973         MAKEFILE_ELF=/dev/null
4974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4975 $as_echo "Disabling ELF shared libraries" >&6; }
4976 else
4977         E2_PKG_CONFIG_STATIC=
4978         ELF_CMT=
4979         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4980         case "$host_os" in
4981         solaris2.*)
4982                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4983         ;;
4984         esac
4985         BINARY_TYPE=elfbin
4986         LIB_EXT=.so
4987         PRIVATE_LIBS_CMT=#
4988         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4990 $as_echo "Enabling ELF shared libraries" >&6; }
4991 fi
4992
4993 else
4994   MAKEFILE_ELF=/dev/null
4995 ELF_CMT=#
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4997 $as_echo "Disabling ELF shared libraries by default" >&6; }
4998
4999 fi
5000
5001
5002
5003 # Check whether --enable-bsd-shlibs was given.
5004 if test "${enable_bsd_shlibs+set}" = set; then :
5005   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5006 then
5007         BSDLIB_CMT=#
5008         MAKEFILE_BSDLIB=/dev/null
5009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5010 $as_echo "Disabling BSD shared libraries" >&6; }
5011 else
5012         E2_PKG_CONFIG_STATIC=
5013         BSDLIB_CMT=
5014         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5015         LIB_EXT=.so
5016         case "$host_os" in
5017         darwin*)
5018                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5019                 LIB_EXT=.dylib
5020         ;;
5021         esac
5022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5023 $as_echo "Enabling BSD shared libraries" >&6; }
5024 fi
5025
5026 else
5027   MAKEFILE_BSDLIB=/dev/null
5028 BSDLIB_CMT=#
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5030 $as_echo "Disabling BSD shared libraries by default" >&6; }
5031
5032 fi
5033
5034
5035
5036 # Check whether --enable-profile was given.
5037 if test "${enable_profile+set}" = set; then :
5038   enableval=$enable_profile; if test "$enableval" = "no"
5039 then
5040         PROFILE_CMT=#
5041         MAKEFILE_PROFILE=/dev/null
5042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5043 $as_echo "Disabling profiling libraries" >&6; }
5044 else
5045         PROFILE_CMT=
5046         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5047         PROFILED_LIB_EXT=_p.a
5048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5049 $as_echo "Building profiling libraries" >&6; }
5050 fi
5051
5052 else
5053   PROFILE_CMT=#
5054 MAKEFILE_PROFILE=/dev/null
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5056 $as_echo "Disabling profiling libraries by default" >&6; }
5057
5058 fi
5059
5060
5061
5062 # Check whether --enable-gcov was given.
5063 if test "${enable_gcov+set}" = set; then :
5064   enableval=$enable_gcov; if test "$enableval" = "yes"
5065 then
5066         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5067         LDFLAGS="-fprofile-arcs -ftest-coverage"
5068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5069 $as_echo "Enabling gcov support" >&6; }
5070 fi
5071
5072 fi
5073
5074 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5075 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5076 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5077 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5078 # Check whether --enable-hardening was given.
5079 if test "${enable_hardening+set}" = set; then :
5080   enableval=$enable_hardening; if test "$enableval" = "yes"
5081 then
5082         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5083         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5084         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5085         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5086         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5087         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5088         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5089         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5091 $as_echo "Enabling hardening support" >&6; }
5092 fi
5093
5094 fi
5095
5096
5097
5098
5099
5100
5101 # Check whether --enable-jbd-debug was given.
5102 if test "${enable_jbd_debug+set}" = set; then :
5103   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5104 then
5105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5106 $as_echo "Disabling journal debugging" >&6; }
5107 else
5108
5109 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5110
5111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5112 $as_echo "Enabling journal debugging" >&6; }
5113 fi
5114
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5117 $as_echo "Disabling journal debugging by default" >&6; }
5118
5119 fi
5120
5121 # Check whether --enable-blkid-debug was given.
5122 if test "${enable_blkid_debug+set}" = set; then :
5123   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5124 then
5125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5126 $as_echo "Disabling blkid debugging" >&6; }
5127 else
5128
5129 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5130
5131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5132 $as_echo "Enabling blkid debugging" >&6; }
5133 fi
5134
5135 else
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5137 $as_echo "Disabling blkid debugging by default" >&6; }
5138
5139 fi
5140
5141 # Check whether --enable-testio-debug was given.
5142 if test "${enable_testio_debug+set}" = set; then :
5143   enableval=$enable_testio_debug;
5144 if test "$enableval" = "no"
5145 then
5146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5147 $as_echo "Disabling testio debugging" >&6; }
5148         TEST_IO_CMT="#"
5149 else
5150         TEST_IO_CMT=
5151         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5152
5153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5154 $as_echo "Enabling testio debugging" >&6; }
5155 fi
5156
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5159 $as_echo "Enabling testio debugging by default" >&6; }
5160 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5161
5162 TEST_IO_CMT=
5163
5164 fi
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5175         if test -n "$ac_tool_prefix"; then
5176   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   case $PKG_CONFIG in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202
5203   ;;
5204 esac
5205 fi
5206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5207 if test -n "$PKG_CONFIG"; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5209 $as_echo "$PKG_CONFIG" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216 fi
5217 if test -z "$ac_cv_path_PKG_CONFIG"; then
5218   ac_pt_PKG_CONFIG=$PKG_CONFIG
5219   # Extract the first word of "pkg-config", so it can be a program name with args.
5220 set dummy pkg-config; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   case $ac_pt_PKG_CONFIG in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246   ;;
5247 esac
5248 fi
5249 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5250 if test -n "$ac_pt_PKG_CONFIG"; then
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5252 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5253 else
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5256 fi
5257
5258   if test "x$ac_pt_PKG_CONFIG" = x; then
5259     PKG_CONFIG=""
5260   else
5261     case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267     PKG_CONFIG=$ac_pt_PKG_CONFIG
5268   fi
5269 else
5270   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5271 fi
5272
5273 fi
5274 if test -n "$PKG_CONFIG"; then
5275         _pkg_min_version=0.9.0
5276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5277 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5278         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5279                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5281         else
5282                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284                 PKG_CONFIG=""
5285         fi
5286 fi
5287 LIBUUID=
5288 DEPLIBUUID=
5289 STATIC_LIBUUID=
5290 DEPSTATIC_LIBUUID=
5291 PROFILED_LIBUUID=
5292 DEPPROFILED_LIBUUID=
5293 UUID_CMT=
5294 # Check whether --enable-libuuid was given.
5295 if test "${enable_libuuid+set}" = set; then :
5296   enableval=$enable_libuuid; if test "$enableval" = "no"
5297 then
5298         if test -z "$PKG_CONFIG"; then
5299                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5300         fi
5301
5302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5303 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5304 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   ac_check_lib_save_LIBS=$LIBS
5308 LIBS="-luuid  $LIBS"
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311
5312 /* Override any GCC internal prototype to avoid an error.
5313    Use char because int might match the return type of a GCC
5314    builtin and then its argument prototype would still apply.  */
5315 #ifdef __cplusplus
5316 extern "C"
5317 #endif
5318 char uuid_generate ();
5319 int
5320 main ()
5321 {
5322 return uuid_generate ();
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_link "$LINENO"; then :
5328   ac_cv_lib_uuid_uuid_generate=yes
5329 else
5330   ac_cv_lib_uuid_uuid_generate=no
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext \
5333     conftest$ac_exeext conftest.$ac_ext
5334 LIBS=$ac_check_lib_save_LIBS
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5337 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5338 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5339   LIBUUID=`$PKG_CONFIG --libs uuid`;
5340                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5341 else
5342   as_fn_error $? "external uuid library not found" "$LINENO" 5
5343 fi
5344
5345         PROFILED_LIBUUID=$LIBUUID
5346         UUID_CMT=#
5347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5348 $as_echo "Disabling private uuid library" >&6; }
5349 else
5350         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5351         DEPLIBUUID=$LIBUUID
5352         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5353         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5354         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5355         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5357 $as_echo "Enabling private uuid library" >&6; }
5358 fi
5359
5360 else
5361   if test -n "$PKG_CONFIG"; then
5362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5363 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5364 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   ac_check_lib_save_LIBS=$LIBS
5368 LIBS="-luuid  $LIBS"
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371
5372 /* Override any GCC internal prototype to avoid an error.
5373    Use char because int might match the return type of a GCC
5374    builtin and then its argument prototype would still apply.  */
5375 #ifdef __cplusplus
5376 extern "C"
5377 #endif
5378 char uuid_generate ();
5379 int
5380 main ()
5381 {
5382 return uuid_generate ();
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_link "$LINENO"; then :
5388   ac_cv_lib_uuid_uuid_generate=yes
5389 else
5390   ac_cv_lib_uuid_uuid_generate=no
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext \
5393     conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5397 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5398 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5399   LIBUUID=`$PKG_CONFIG --libs uuid`;
5400                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5401 fi
5402
5403 fi
5404 if test -n "$LIBUUID"; then
5405         PROFILED_LIBUUID=$LIBUUID
5406         UUID_CMT=#
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5408 $as_echo "Using system uuid by default" >&6; }
5409 else
5410         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5411         DEPLIBUUID=$LIBUUID
5412         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5413         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5414         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5415         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5417 $as_echo "Enabling private uuid library by default" >&6; }
5418 fi
5419
5420 fi
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437         if test -n "$ac_tool_prefix"; then
5438   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   case $PKG_CONFIG in
5446   [\\/]* | ?:[\\/]*)
5447   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5448   ;;
5449   *)
5450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465   ;;
5466 esac
5467 fi
5468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469 if test -n "$PKG_CONFIG"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471 $as_echo "$PKG_CONFIG" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 fi
5479 if test -z "$ac_cv_path_PKG_CONFIG"; then
5480   ac_pt_PKG_CONFIG=$PKG_CONFIG
5481   # Extract the first word of "pkg-config", so it can be a program name with args.
5482 set dummy pkg-config; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   case $ac_pt_PKG_CONFIG in
5489   [\\/]* | ?:[\\/]*)
5490   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5491   ;;
5492   *)
5493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507
5508   ;;
5509 esac
5510 fi
5511 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512 if test -n "$ac_pt_PKG_CONFIG"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520   if test "x$ac_pt_PKG_CONFIG" = x; then
5521     PKG_CONFIG=""
5522   else
5523     case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529     PKG_CONFIG=$ac_pt_PKG_CONFIG
5530   fi
5531 else
5532   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5533 fi
5534
5535 fi
5536 if test -n "$PKG_CONFIG"; then
5537         _pkg_min_version=0.9.0
5538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542 $as_echo "yes" >&6; }
5543         else
5544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546                 PKG_CONFIG=""
5547         fi
5548 fi
5549 LIBBLKID=
5550 DEPLIBBLKID=
5551 STATIC_LIBBLKID=
5552 DEPSTATIC_LIBBLKID=
5553 PROFILED_LIBBLKID=
5554 DEPPROFILED_LIBBLKID=
5555 BLKID_CMT=
5556
5557 # Check whether --enable-libblkid was given.
5558 if test "${enable_libblkid+set}" = set; then :
5559   enableval=$enable_libblkid; if test "$enableval" = "no"
5560 then
5561         if test -z "$PKG_CONFIG"; then
5562                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5563         fi
5564
5565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5566 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5567 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lblkid -luuid $LIBS"
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h.  */
5574
5575 /* Override any GCC internal prototype to avoid an error.
5576    Use char because int might match the return type of a GCC
5577    builtin and then its argument prototype would still apply.  */
5578 #ifdef __cplusplus
5579 extern "C"
5580 #endif
5581 char blkid_get_cache ();
5582 int
5583 main ()
5584 {
5585 return blkid_get_cache ();
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_link "$LINENO"; then :
5591   ac_cv_lib_blkid_blkid_get_cache=yes
5592 else
5593   ac_cv_lib_blkid_blkid_get_cache=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext \
5596     conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5600 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5601 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5602   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5603                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5604 else
5605   as_fn_error $? "external blkid library not found" "$LINENO" 5
5606 fi
5607
5608         BLKID_CMT=#
5609         PROFILED_LIBBLKID=$LIBBLKID
5610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5611 $as_echo "Disabling private blkid library" >&6; }
5612 else
5613         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5614         DEPLIBBLKID=$LIBBLKID
5615         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5616         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5617         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5618         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5619         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5620
5621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5622 $as_echo "Enabling private blkid library" >&6; }
5623 fi
5624
5625 else
5626   if test -n "$PKG_CONFIG"; then
5627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5628 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5629 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   ac_check_lib_save_LIBS=$LIBS
5633 LIBS="-lblkid  $LIBS"
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636
5637 /* Override any GCC internal prototype to avoid an error.
5638    Use char because int might match the return type of a GCC
5639    builtin and then its argument prototype would still apply.  */
5640 #ifdef __cplusplus
5641 extern "C"
5642 #endif
5643 char blkid_get_cache ();
5644 int
5645 main ()
5646 {
5647 return blkid_get_cache ();
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_link "$LINENO"; then :
5653   ac_cv_lib_blkid_blkid_get_cache=yes
5654 else
5655   ac_cv_lib_blkid_blkid_get_cache=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext \
5658     conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5662 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5663 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5664   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5665                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5666 fi
5667
5668 fi
5669 if test -n "$LIBBLKID"; then
5670         BLKID_CMT=#
5671         PROFILED_LIBBLKID=$LIBBLKID
5672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5673 $as_echo "Using system blkid library by default" >&6; }
5674 else
5675         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5676         DEPLIBBLKID=$LIBBLKID
5677         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5678         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5679         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5680         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5681         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5682
5683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5684 $as_echo "Enabling private blkid library by default" >&6; }
5685 fi
5686
5687 fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697 # Check whether --enable-backtrace was given.
5698 if test "${enable_backtrace+set}" = set; then :
5699   enableval=$enable_backtrace; if test "$enableval" = "no"
5700 then
5701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5702 $as_echo "Disabling use of backtrace" >&6; }
5703         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5704
5705 else
5706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5707 $as_echo "Enabling use of backtrace" >&6; }
5708 fi
5709
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5712 $as_echo "Enabling use of backtrace by default" >&6; }
5713
5714 fi
5715
5716 # Check whether --enable-debugfs was given.
5717 if test "${enable_debugfs+set}" = set; then :
5718   enableval=$enable_debugfs; if test "$enableval" = "no"
5719 then
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5721 $as_echo "Disabling debugfs support" >&6; }
5722         DEBUGFS_CMT="#"
5723 else
5724         DEBUGFS_CMT=
5725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5726 $as_echo "Enabling debugfs support" >&6; }
5727 fi
5728
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5731 $as_echo "Enabling debugfs support by default" >&6; }
5732 DEBUGFS_CMT=
5733
5734 fi
5735
5736
5737 # Check whether --enable-imager was given.
5738 if test "${enable_imager+set}" = set; then :
5739   enableval=$enable_imager; if test "$enableval" = "no"
5740 then
5741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5742 $as_echo "Disabling e2image support" >&6; }
5743         IMAGER_CMT="#"
5744 else
5745         IMAGER_CMT=
5746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5747 $as_echo "Enabling e2image support" >&6; }
5748 fi
5749
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5752 $as_echo "Enabling e2image support by default" >&6; }
5753 IMAGER_CMT=
5754
5755 fi
5756
5757
5758 # Check whether --enable-resizer was given.
5759 if test "${enable_resizer+set}" = set; then :
5760   enableval=$enable_resizer; if test "$enableval" = "no"
5761 then
5762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5763 $as_echo "Disabling e2resize support" >&6; }
5764         RESIZER_CMT="#"
5765 else
5766         RESIZER_CMT=
5767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5768 $as_echo "Enabling e2resize support" >&6; }
5769 fi
5770
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5773 $as_echo "Enabling e2resize support by default" >&6; }
5774 RESIZER_CMT=
5775
5776 fi
5777
5778
5779 # Check whether --enable-defrag was given.
5780 if test "${enable_defrag+set}" = set; then :
5781   enableval=$enable_defrag; if test "$enableval" = "no"
5782 then
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5784 $as_echo "Disabling e4defrag support" >&6; }
5785         DEFRAG_CMT="#"
5786 else
5787         DEFRAG_CMT=
5788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5789 $as_echo "Enabling e4defrag support" >&6; }
5790 fi
5791
5792 else
5793   if test -z "$WITH_DIET_LIBC"
5794 then
5795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5796 $as_echo "Enabling e4defrag support by default" >&6; }
5797         DEFRAG_CMT=
5798 else
5799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5800 $as_echo "Disabling e4defrag support by default" >&6; }
5801         DEFRAG_CMT="#"
5802 fi
5803
5804 fi
5805
5806
5807 # Check whether --enable-fsck was given.
5808 if test "${enable_fsck+set}" = set; then :
5809   enableval=$enable_fsck; if test "$enableval" = "no"
5810 then
5811         FSCK_PROG='' FSCK_MAN=''
5812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5813 $as_echo "Not building fsck wrapper" >&6; }
5814 else
5815         FSCK_PROG=fsck FSCK_MAN=fsck.8
5816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5817 $as_echo "Building fsck wrapper" >&6; }
5818 fi
5819
5820 else
5821   case "$host_os" in
5822   gnu*)
5823     FSCK_PROG='' FSCK_MAN=''
5824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5825 $as_echo "Not building fsck wrapper by default" >&6; }
5826     ;;
5827   *)
5828     FSCK_PROG=fsck FSCK_MAN=fsck.8
5829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5830 $as_echo "Building fsck wrapper by default" >&6; }
5831 esac
5832
5833 fi
5834
5835
5836
5837 # Check whether --enable-e2initrd-helper was given.
5838 if test "${enable_e2initrd_helper+set}" = set; then :
5839   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5840 then
5841         E2INITRD_PROG='' E2INITRD_MAN=''
5842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5843 $as_echo "Not building e2initrd helper" >&6; }
5844 else
5845         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5847 $as_echo "Building e2initrd helper" >&6; }
5848 fi
5849
5850 else
5851   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5853 $as_echo "Building e2initrd helper by default" >&6; }
5854
5855 fi
5856
5857
5858
5859 # Check whether --enable-tls was given.
5860 if test "${enable_tls+set}" = set; then :
5861   enableval=$enable_tls; if test "$enableval" = "no"
5862 then
5863         try_tls=""
5864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5865 $as_echo "Disabling thread local support" >&6; }
5866 else
5867         try_tls="yes"
5868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5869 $as_echo "Enabling thread local support" >&6; }
5870 fi
5871
5872 else
5873   if test -n "$WITH_DIET_LIBC"
5874 then
5875         try_tls=""
5876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5877 $as_echo "Diet libc does not support thread local support" >&6; }
5878 else
5879         try_tls="yes"
5880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5881 $as_echo "Try using thread local support by default" >&6; }
5882 fi
5883
5884 fi
5885
5886 if test "$try_tls" = "yes"
5887 then
5888
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5890 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5891   if ${ac_cv_tls+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894
5895     ax_tls_keywords="__thread __declspec(thread) none"
5896     for ax_tls_keyword in $ax_tls_keywords; do
5897        case $ax_tls_keyword in
5898           none) ac_cv_tls=none ; break ;;
5899           *)
5900              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h.  */
5902 #include <stdlib.h>
5903                  static void
5904                  foo(void) {
5905                  static  $ax_tls_keyword  int bar;
5906                  exit(1);
5907                  }
5908 int
5909 main ()
5910 {
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917   ac_cv_tls=$ax_tls_keyword ; break
5918 else
5919   ac_cv_tls=none
5920
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923           esac
5924     done
5925
5926 fi
5927
5928
5929   if test "$ac_cv_tls" != "none"; then
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define TLS $ac_cv_tls
5933 _ACEOF
5934
5935   fi
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5937 $as_echo "$ac_cv_tls" >&6; }
5938
5939 fi
5940
5941 # Check whether --enable-uuidd was given.
5942 if test "${enable_uuidd+set}" = set; then :
5943   enableval=$enable_uuidd; if test "$enableval" = "no"
5944 then
5945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5946 $as_echo "Not building uuidd" >&6; }
5947         UUIDD_CMT="#"
5948 else
5949         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5950
5951         UUIDD_CMT=""
5952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5953 $as_echo "Building uuidd" >&6; }
5954 fi
5955
5956 else
5957   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5958
5959 if test -z "$UUID_CMT"
5960 then
5961         UUIDD_CMT=""
5962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5963 $as_echo "Building uuidd by default" >&6; }
5964 else
5965         UUIDD_CMT="#"
5966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5967 $as_echo "Disabling uuidd by default" >&6; }
5968 fi
5969
5970 fi
5971
5972
5973
5974 # Check whether --enable-mmp was given.
5975 if test "${enable_mmp+set}" = set; then :
5976   enableval=$enable_mmp; if test "$enableval" = "no"
5977 then
5978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5979 $as_echo "Disabling mmp support" >&6; }
5980 else
5981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5982 $as_echo "Enabling mmp support" >&6; }
5983         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5984
5985 fi
5986
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5989 $as_echo "Enabling mmp support by default" >&6; }
5990 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5991
5992
5993 fi
5994
5995
5996 # Check whether --enable-tdb was given.
5997 if test "${enable_tdb+set}" = set; then :
5998   enableval=$enable_tdb; if test "$enableval" = "no"
5999 then
6000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6001 $as_echo "Disabling tdb support" >&6; }
6002         TDB_CMT="#"
6003         TDB_MAN_COMMENT='.\"'
6004 else
6005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6006 $as_echo "Enabling tdb support" >&6; }
6007         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6008
6009         TDB_CMT=""
6010         TDB_MAN_COMMENT=""
6011 fi
6012
6013 else
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6015 $as_echo "Enabling mmp support by default" >&6; }
6016 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6017
6018 TDB_CMT=""
6019 TDB_MAN_COMMENT=""
6020
6021 fi
6022
6023
6024
6025
6026 # Check whether --enable-bmap-stats was given.
6027 if test "${enable_bmap_stats+set}" = set; then :
6028   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6029 then
6030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6031 $as_echo "Disabling bitmap statistics support" >&6; }
6032 else
6033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6034 $as_echo "Enabling bitmap statistics support" >&6; }
6035         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6036
6037 fi
6038
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6041 $as_echo "Enabling bitmap statistics support by default" >&6; }
6042 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6043
6044
6045 fi
6046
6047
6048 # Check whether --enable-bmap-stats-ops was given.
6049 if test "${enable_bmap_stats_ops+set}" = set; then :
6050   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6051 then
6052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6053 $as_echo "Disabling additional bitmap statistics" >&6; }
6054 else
6055                 if test "x${enable_bmap_stats}" = "xno"; then :
6056   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6059 See \`config.log' for more details" "$LINENO" 5; }
6060 fi
6061
6062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6063 $as_echo "Enabling additional bitmap statistics" >&6; }
6064         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6065
6066 fi
6067
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6070 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6071
6072 fi
6073
6074 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6075
6076 GETTEXT_PACKAGE=e2fsprogs
6077 PACKAGE=e2fsprogs
6078 VERSION="$E2FSPROGS_VERSION"
6079 VERSION=0.14.1
6080
6081 cat >>confdefs.h <<_ACEOF
6082 #define PACKAGE "$PACKAGE"
6083 _ACEOF
6084
6085
6086 cat >>confdefs.h <<_ACEOF
6087 #define VERSION "$VERSION"
6088 _ACEOF
6089
6090
6091
6092
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6095 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6096 set x ${MAKE-make}
6097 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6098 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   cat >conftest.make <<\_ACEOF
6102 SHELL = /bin/sh
6103 all:
6104         @echo '@@@%%%=$(MAKE)=@@@%%%'
6105 _ACEOF
6106 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6107 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6108   *@@@%%%=?*=@@@%%%*)
6109     eval ac_cv_prog_make_${ac_make}_set=yes;;
6110   *)
6111     eval ac_cv_prog_make_${ac_make}_set=no;;
6112 esac
6113 rm -f conftest.make
6114 fi
6115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6117 $as_echo "yes" >&6; }
6118   SET_MAKE=
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122   SET_MAKE="MAKE=${MAKE-make}"
6123 fi
6124
6125 # Find a good install program.  We prefer a C program (faster),
6126 # so one script is as good as another.  But avoid the broken or
6127 # incompatible versions:
6128 # SysV /etc/install, /usr/sbin/install
6129 # SunOS /usr/etc/install
6130 # IRIX /sbin/install
6131 # AIX /bin/install
6132 # AmigaOS /C/install, which installs bootblocks on floppy discs
6133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6136 # OS/2's system install, which has a completely different semantic
6137 # ./install, which can be erroneously created by make from ./install.sh.
6138 # Reject install programs that cannot install multiple files.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6141 if test -z "$INSTALL"; then
6142 if ${ac_cv_path_install+:} false; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     # Account for people who put trailing slashes in PATH elements.
6151 case $as_dir/ in #((
6152   ./ | .// | /[cC]/* | \
6153   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6154   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6155   /usr/ucb/* ) ;;
6156   *)
6157     # OSF1 and SCO ODT 3.0 have their own names for install.
6158     # Don't use installbsd from OSF since it installs stuff as root
6159     # by default.
6160     for ac_prog in ginstall scoinst install; do
6161       for ac_exec_ext in '' $ac_executable_extensions; do
6162         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6163           if test $ac_prog = install &&
6164             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6165             # AIX install.  It has an incompatible calling convention.
6166             :
6167           elif test $ac_prog = install &&
6168             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6169             # program-specific install script used by HP pwplus--don't use.
6170             :
6171           else
6172             rm -rf conftest.one conftest.two conftest.dir
6173             echo one > conftest.one
6174             echo two > conftest.two
6175             mkdir conftest.dir
6176             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6177               test -s conftest.one && test -s conftest.two &&
6178               test -s conftest.dir/conftest.one &&
6179               test -s conftest.dir/conftest.two
6180             then
6181               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6182               break 3
6183             fi
6184           fi
6185         fi
6186       done
6187     done
6188     ;;
6189 esac
6190
6191   done
6192 IFS=$as_save_IFS
6193
6194 rm -rf conftest.one conftest.two conftest.dir
6195
6196 fi
6197   if test "${ac_cv_path_install+set}" = set; then
6198     INSTALL=$ac_cv_path_install
6199   else
6200     # As a last resort, use the slow shell script.  Don't cache a
6201     # value for INSTALL within a source directory, because that will
6202     # break other packages using the cache if that directory is
6203     # removed, or if the value is a relative name.
6204     INSTALL=$ac_install_sh
6205   fi
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6208 $as_echo "$INSTALL" >&6; }
6209
6210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6211 # It thinks the first close brace ends the variable substitution.
6212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6213
6214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6215
6216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6219 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6220 if test -z "$MKDIR_P"; then
6221   if ${ac_cv_path_mkdir+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229     for ac_prog in mkdir gmkdir; do
6230          for ac_exec_ext in '' $ac_executable_extensions; do
6231            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6232            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6233              'mkdir (GNU coreutils) '* | \
6234              'mkdir (coreutils) '* | \
6235              'mkdir (fileutils) '4.1*)
6236                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6237                break 3;;
6238            esac
6239          done
6240        done
6241   done
6242 IFS=$as_save_IFS
6243
6244 fi
6245
6246   test -d ./--version && rmdir ./--version
6247   if test "${ac_cv_path_mkdir+set}" = set; then
6248     MKDIR_P="$ac_cv_path_mkdir -p"
6249   else
6250     # As a last resort, use the slow shell script.  Don't cache a
6251     # value for MKDIR_P within a source directory, because that will
6252     # break other packages using the cache if that directory is
6253     # removed, or if the value is a relative name.
6254     MKDIR_P="$ac_install_sh -d"
6255   fi
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6258 $as_echo "$MKDIR_P" >&6; }
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6261 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6262 if ${ac_cv_path_SED+:} false; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6266      for ac_i in 1 2 3 4 5 6 7; do
6267        ac_script="$ac_script$as_nl$ac_script"
6268      done
6269      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6270      { ac_script=; unset ac_script;}
6271      if test -z "$SED"; then
6272   ac_path_SED_found=false
6273   # Loop through the user's path and test for each of PROGNAME-LIST
6274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279     for ac_prog in sed gsed; do
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6282       as_fn_executable_p "$ac_path_SED" || continue
6283 # Check for GNU ac_path_SED and select it if it is found.
6284   # Check for GNU $ac_path_SED
6285 case `"$ac_path_SED" --version 2>&1` in
6286 *GNU*)
6287   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6288 *)
6289   ac_count=0
6290   $as_echo_n 0123456789 >"conftest.in"
6291   while :
6292   do
6293     cat "conftest.in" "conftest.in" >"conftest.tmp"
6294     mv "conftest.tmp" "conftest.in"
6295     cp "conftest.in" "conftest.nl"
6296     $as_echo '' >> "conftest.nl"
6297     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6298     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6299     as_fn_arith $ac_count + 1 && ac_count=$as_val
6300     if test $ac_count -gt ${ac_path_SED_max-0}; then
6301       # Best one so far, save it but keep looking for a better one
6302       ac_cv_path_SED="$ac_path_SED"
6303       ac_path_SED_max=$ac_count
6304     fi
6305     # 10*(2^10) chars as input seems more than enough
6306     test $ac_count -gt 10 && break
6307   done
6308   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6309 esac
6310
6311       $ac_path_SED_found && break 3
6312     done
6313   done
6314   done
6315 IFS=$as_save_IFS
6316   if test -z "$ac_cv_path_SED"; then
6317     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6318   fi
6319 else
6320   ac_cv_path_SED=$SED
6321 fi
6322
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6325 $as_echo "$ac_cv_path_SED" >&6; }
6326  SED="$ac_cv_path_SED"
6327   rm -f conftest.sed
6328
6329
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6331 $as_echo_n "checking whether NLS is requested... " >&6; }
6332     # Check whether --enable-nls was given.
6333 if test "${enable_nls+set}" = set; then :
6334   enableval=$enable_nls; USE_NLS=$enableval
6335 else
6336   USE_NLS=yes
6337 fi
6338
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6340 $as_echo "$USE_NLS" >&6; }
6341
6342
6343
6344
6345       GETTEXT_MACRO_VERSION=0.18
6346
6347
6348
6349
6350 # Prepare PATH_SEPARATOR.
6351 # The user is always right.
6352 if test "${PATH_SEPARATOR+set}" != set; then
6353   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6354   # contains only /bin. Note that ksh looks also at the FPATH variable,
6355   # so we have to set that as well for the test.
6356   PATH_SEPARATOR=:
6357   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6358     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359            || PATH_SEPARATOR=';'
6360        }
6361 fi
6362
6363 # Find out how to test for executable files. Don't use a zero-byte file,
6364 # as systems may use methods other than mode bits to determine executability.
6365 cat >conf$$.file <<_ASEOF
6366 #! /bin/sh
6367 exit 0
6368 _ASEOF
6369 chmod +x conf$$.file
6370 if test -x conf$$.file >/dev/null 2>&1; then
6371   ac_executable_p="test -x"
6372 else
6373   ac_executable_p="test -f"
6374 fi
6375 rm -f conf$$.file
6376
6377 # Extract the first word of "msgfmt", so it can be a program name with args.
6378 set dummy msgfmt; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_path_MSGFMT+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   case "$MSGFMT" in
6385   [\\/]* | ?:[\\/]*)
6386     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6387     ;;
6388   *)
6389     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6390     for ac_dir in $PATH; do
6391       IFS="$ac_save_IFS"
6392       test -z "$ac_dir" && ac_dir=.
6393       for ac_exec_ext in '' $ac_executable_extensions; do
6394         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6395           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6396           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6397      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6398             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6399             break 2
6400           fi
6401         fi
6402       done
6403     done
6404     IFS="$ac_save_IFS"
6405   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6406     ;;
6407 esac
6408 fi
6409 MSGFMT="$ac_cv_path_MSGFMT"
6410 if test "$MSGFMT" != ":"; then
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6412 $as_echo "$MSGFMT" >&6; }
6413 else
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6419 set dummy gmsgfmt; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_path_GMSGFMT+:} false; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   case $GMSGFMT in
6426   [\\/]* | ?:[\\/]*)
6427   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6428   ;;
6429   *)
6430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444
6445   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6446   ;;
6447 esac
6448 fi
6449 GMSGFMT=$ac_cv_path_GMSGFMT
6450 if test -n "$GMSGFMT"; then
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6452 $as_echo "$GMSGFMT" >&6; }
6453 else
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6456 fi
6457
6458
6459
6460     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6461     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6462     *) MSGFMT_015=$MSGFMT ;;
6463   esac
6464
6465   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6466     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6467     *) GMSGFMT_015=$GMSGFMT ;;
6468   esac
6469
6470
6471
6472 # Prepare PATH_SEPARATOR.
6473 # The user is always right.
6474 if test "${PATH_SEPARATOR+set}" != set; then
6475   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6476   # contains only /bin. Note that ksh looks also at the FPATH variable,
6477   # so we have to set that as well for the test.
6478   PATH_SEPARATOR=:
6479   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6480     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6481            || PATH_SEPARATOR=';'
6482        }
6483 fi
6484
6485 # Find out how to test for executable files. Don't use a zero-byte file,
6486 # as systems may use methods other than mode bits to determine executability.
6487 cat >conf$$.file <<_ASEOF
6488 #! /bin/sh
6489 exit 0
6490 _ASEOF
6491 chmod +x conf$$.file
6492 if test -x conf$$.file >/dev/null 2>&1; then
6493   ac_executable_p="test -x"
6494 else
6495   ac_executable_p="test -f"
6496 fi
6497 rm -f conf$$.file
6498
6499 # Extract the first word of "xgettext", so it can be a program name with args.
6500 set dummy xgettext; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_path_XGETTEXT+:} false; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   case "$XGETTEXT" in
6507   [\\/]* | ?:[\\/]*)
6508     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6509     ;;
6510   *)
6511     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6512     for ac_dir in $PATH; do
6513       IFS="$ac_save_IFS"
6514       test -z "$ac_dir" && ac_dir=.
6515       for ac_exec_ext in '' $ac_executable_extensions; do
6516         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6517           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6518           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6519      (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
6520             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6521             break 2
6522           fi
6523         fi
6524       done
6525     done
6526     IFS="$ac_save_IFS"
6527   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6528     ;;
6529 esac
6530 fi
6531 XGETTEXT="$ac_cv_path_XGETTEXT"
6532 if test "$XGETTEXT" != ":"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6534 $as_echo "$XGETTEXT" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540     rm -f messages.po
6541
6542     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6543     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6544     *) XGETTEXT_015=$XGETTEXT ;;
6545   esac
6546
6547
6548
6549 # Prepare PATH_SEPARATOR.
6550 # The user is always right.
6551 if test "${PATH_SEPARATOR+set}" != set; then
6552   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6553   # contains only /bin. Note that ksh looks also at the FPATH variable,
6554   # so we have to set that as well for the test.
6555   PATH_SEPARATOR=:
6556   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6557     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6558            || PATH_SEPARATOR=';'
6559        }
6560 fi
6561
6562 # Find out how to test for executable files. Don't use a zero-byte file,
6563 # as systems may use methods other than mode bits to determine executability.
6564 cat >conf$$.file <<_ASEOF
6565 #! /bin/sh
6566 exit 0
6567 _ASEOF
6568 chmod +x conf$$.file
6569 if test -x conf$$.file >/dev/null 2>&1; then
6570   ac_executable_p="test -x"
6571 else
6572   ac_executable_p="test -f"
6573 fi
6574 rm -f conf$$.file
6575
6576 # Extract the first word of "msgmerge", so it can be a program name with args.
6577 set dummy msgmerge; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_path_MSGMERGE+:} false; then :
6581   $as_echo_n "(cached) " >&6
6582 else
6583   case "$MSGMERGE" in
6584   [\\/]* | ?:[\\/]*)
6585     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6586     ;;
6587   *)
6588     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6589     for ac_dir in $PATH; do
6590       IFS="$ac_save_IFS"
6591       test -z "$ac_dir" && ac_dir=.
6592       for ac_exec_ext in '' $ac_executable_extensions; do
6593         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6594           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6595           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6596             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6597             break 2
6598           fi
6599         fi
6600       done
6601     done
6602     IFS="$ac_save_IFS"
6603   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6604     ;;
6605 esac
6606 fi
6607 MSGMERGE="$ac_cv_path_MSGMERGE"
6608 if test "$MSGMERGE" != ":"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6610 $as_echo "$MSGMERGE" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616
6617         test -n "$localedir" || localedir='${datadir}/locale'
6618
6619
6620     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6621
6622
6623   ac_config_commands="$ac_config_commands po-directories"
6624
6625
6626
6627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6628 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6629 if ${ac_cv_gnu_library_2+:} false; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h.  */
6634
6635 #include <features.h>
6636 #ifdef __GNU_LIBRARY__
6637  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6638   Lucky GNU user
6639  #endif
6640 #endif
6641
6642 _ACEOF
6643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6645   ac_cv_gnu_library_2=yes
6646 else
6647   ac_cv_gnu_library_2=no
6648 fi
6649 rm -f conftest*
6650
6651
6652
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6655 $as_echo "$ac_cv_gnu_library_2" >&6; }
6656
6657     GLIBC2="$ac_cv_gnu_library_2"
6658
6659
6660 if test -n "$ac_tool_prefix"; then
6661   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_RANLIB+:} false; then :
6666   $as_echo_n "(cached) " >&6
6667 else
6668   if test -n "$RANLIB"; then
6669   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676     for ac_exec_ext in '' $ac_executable_extensions; do
6677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683   done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 RANLIB=$ac_cv_prog_RANLIB
6689 if test -n "$RANLIB"; then
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6691 $as_echo "$RANLIB" >&6; }
6692 else
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_RANLIB"; then
6700   ac_ct_RANLIB=$RANLIB
6701   # Extract the first word of "ranlib", so it can be a program name with args.
6702 set dummy ranlib; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   if test -n "$ac_ct_RANLIB"; then
6709   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716     for ac_exec_ext in '' $ac_executable_extensions; do
6717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718     ac_cv_prog_ac_ct_RANLIB="ranlib"
6719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723   done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6729 if test -n "$ac_ct_RANLIB"; then
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6731 $as_echo "$ac_ct_RANLIB" >&6; }
6732 else
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737   if test "x$ac_ct_RANLIB" = x; then
6738     RANLIB=":"
6739   else
6740     case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746     RANLIB=$ac_ct_RANLIB
6747   fi
6748 else
6749   RANLIB="$ac_cv_prog_RANLIB"
6750 fi
6751
6752
6753
6754   CFLAG_VISIBILITY=
6755   HAVE_VISIBILITY=0
6756   if test -n "$GCC"; then
6757                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6758 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6759     if ${gl_cv_cc_vis_werror+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762
6763       gl_save_CFLAGS="$CFLAGS"
6764       CFLAGS="$CFLAGS -Werror"
6765       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777   gl_cv_cc_vis_werror=yes
6778 else
6779   gl_cv_cc_vis_werror=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782       CFLAGS="$gl_save_CFLAGS"
6783 fi
6784
6785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6786 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6788 $as_echo_n "checking for simple visibility declarations... " >&6; }
6789     if ${gl_cv_cc_visibility+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792
6793       gl_save_CFLAGS="$CFLAGS"
6794       CFLAGS="$CFLAGS -fvisibility=hidden"
6795                                     if test $gl_cv_cc_vis_werror = yes; then
6796         CFLAGS="$CFLAGS -Werror"
6797       fi
6798       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h.  */
6800 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6801              extern __attribute__((__visibility__("default"))) int exportedvar;
6802              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6803              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6804              void dummyfunc (void) {}
6805
6806 int
6807 main ()
6808 {
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815   gl_cv_cc_visibility=yes
6816 else
6817   gl_cv_cc_visibility=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820       CFLAGS="$gl_save_CFLAGS"
6821 fi
6822
6823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6824 $as_echo "$gl_cv_cc_visibility" >&6; }
6825     if test $gl_cv_cc_visibility = yes; then
6826       CFLAG_VISIBILITY="-fvisibility=hidden"
6827       HAVE_VISIBILITY=1
6828     fi
6829   fi
6830
6831
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6835 _ACEOF
6836
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6839 $as_echo_n "checking for inline... " >&6; }
6840 if ${ac_cv_c_inline+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   ac_cv_c_inline=no
6844 for ac_kw in inline __inline__ __inline; do
6845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h.  */
6847 #ifndef __cplusplus
6848 typedef int foo_t;
6849 static $ac_kw foo_t static_foo () {return 0; }
6850 $ac_kw foo_t foo () {return 0; }
6851 #endif
6852
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855   ac_cv_c_inline=$ac_kw
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858   test "$ac_cv_c_inline" != no && break
6859 done
6860
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6863 $as_echo "$ac_cv_c_inline" >&6; }
6864
6865 case $ac_cv_c_inline in
6866   inline | yes) ;;
6867   *)
6868     case $ac_cv_c_inline in
6869       no) ac_val=;;
6870       *) ac_val=$ac_cv_c_inline;;
6871     esac
6872     cat >>confdefs.h <<_ACEOF
6873 #ifndef __cplusplus
6874 #define inline $ac_val
6875 #endif
6876 _ACEOF
6877     ;;
6878 esac
6879
6880 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6881 if test "x$ac_cv_type_size_t" = xyes; then :
6882
6883 else
6884
6885 cat >>confdefs.h <<_ACEOF
6886 #define size_t unsigned int
6887 _ACEOF
6888
6889 fi
6890
6891
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6893 $as_echo_n "checking for stdint.h... " >&6; }
6894 if ${gl_cv_header_stdint_h+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899 #include <sys/types.h>
6900             #include <stdint.h>
6901 int
6902 main ()
6903 {
6904 uintmax_t i = (uintmax_t) -1; return !i;
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_c_try_compile "$LINENO"; then :
6910   gl_cv_header_stdint_h=yes
6911 else
6912   gl_cv_header_stdint_h=no
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 fi
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6917 $as_echo "$gl_cv_header_stdint_h" >&6; }
6918   if test $gl_cv_header_stdint_h = yes; then
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_STDINT_H_WITH_UINTMAX 1
6922 _ACEOF
6923
6924   fi
6925
6926 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6927 # for constant arguments.  Useless!
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6929 $as_echo_n "checking for working alloca.h... " >&6; }
6930 if ${ac_cv_working_alloca_h+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h.  */
6935 #include <alloca.h>
6936 int
6937 main ()
6938 {
6939 char *p = (char *) alloca (2 * sizeof (int));
6940                           if (p) return 0;
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946   ac_cv_working_alloca_h=yes
6947 else
6948   ac_cv_working_alloca_h=no
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext \
6951     conftest$ac_exeext conftest.$ac_ext
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6954 $as_echo "$ac_cv_working_alloca_h" >&6; }
6955 if test $ac_cv_working_alloca_h = yes; then
6956
6957 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6958
6959 fi
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6962 $as_echo_n "checking for alloca... " >&6; }
6963 if ${ac_cv_func_alloca_works+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h.  */
6968 #ifdef __GNUC__
6969 # define alloca __builtin_alloca
6970 #else
6971 # ifdef _MSC_VER
6972 #  include <malloc.h>
6973 #  define alloca _alloca
6974 # else
6975 #  ifdef HAVE_ALLOCA_H
6976 #   include <alloca.h>
6977 #  else
6978 #   ifdef _AIX
6979  #pragma alloca
6980 #   else
6981 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6982 void *alloca (size_t);
6983 #    endif
6984 #   endif
6985 #  endif
6986 # endif
6987 #endif
6988
6989 int
6990 main ()
6991 {
6992 char *p = (char *) alloca (1);
6993                                     if (p) return 0;
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_link "$LINENO"; then :
6999   ac_cv_func_alloca_works=yes
7000 else
7001   ac_cv_func_alloca_works=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext \
7004     conftest$ac_exeext conftest.$ac_ext
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7007 $as_echo "$ac_cv_func_alloca_works" >&6; }
7008
7009 if test $ac_cv_func_alloca_works = yes; then
7010
7011 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7012
7013 else
7014   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7015 # that cause trouble.  Some versions do not even contain alloca or
7016 # contain a buggy version.  If you still want to use their alloca,
7017 # use ar to extract alloca.o from them instead of compiling alloca.c.
7018
7019 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7020
7021 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7022
7023
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7025 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7026 if ${ac_cv_os_cray+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h.  */
7031 #if defined CRAY && ! defined CRAY2
7032 webecray
7033 #else
7034 wenotbecray
7035 #endif
7036
7037 _ACEOF
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039   $EGREP "webecray" >/dev/null 2>&1; then :
7040   ac_cv_os_cray=yes
7041 else
7042   ac_cv_os_cray=no
7043 fi
7044 rm -f conftest*
7045
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7048 $as_echo "$ac_cv_os_cray" >&6; }
7049 if test $ac_cv_os_cray = yes; then
7050   for ac_func in _getb67 GETB67 getb67; do
7051     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7052 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7053 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7054
7055 cat >>confdefs.h <<_ACEOF
7056 #define CRAY_STACKSEG_END $ac_func
7057 _ACEOF
7058
7059     break
7060 fi
7061
7062   done
7063 fi
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7066 $as_echo_n "checking stack direction for C alloca... " >&6; }
7067 if ${ac_cv_c_stack_direction+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test "$cross_compiling" = yes; then :
7071   ac_cv_c_stack_direction=0
7072 else
7073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h.  */
7075 $ac_includes_default
7076 int
7077 find_stack_direction (int *addr, int depth)
7078 {
7079   int dir, dummy = 0;
7080   if (! addr)
7081     addr = &dummy;
7082   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7083   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7084   return dir + dummy;
7085 }
7086
7087 int
7088 main (int argc, char **argv)
7089 {
7090   return find_stack_direction (0, argc + !argv + 20) < 0;
7091 }
7092 _ACEOF
7093 if ac_fn_c_try_run "$LINENO"; then :
7094   ac_cv_c_stack_direction=1
7095 else
7096   ac_cv_c_stack_direction=-1
7097 fi
7098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7099   conftest.$ac_objext conftest.beam conftest.$ac_ext
7100 fi
7101
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7104 $as_echo "$ac_cv_c_stack_direction" >&6; }
7105 cat >>confdefs.h <<_ACEOF
7106 #define STACK_DIRECTION $ac_cv_c_stack_direction
7107 _ACEOF
7108
7109
7110 fi
7111
7112
7113
7114
7115   for ac_header in $ac_header_list
7116 do :
7117   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7119 "
7120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7121   cat >>confdefs.h <<_ACEOF
7122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7123 _ACEOF
7124
7125 fi
7126
7127 done
7128
7129
7130
7131
7132
7133
7134
7135
7136 for ac_func in getpagesize
7137 do :
7138   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7139 if test "x$ac_cv_func_getpagesize" = xyes; then :
7140   cat >>confdefs.h <<_ACEOF
7141 #define HAVE_GETPAGESIZE 1
7142 _ACEOF
7143
7144 fi
7145 done
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7148 $as_echo_n "checking for working mmap... " >&6; }
7149 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   if test "$cross_compiling" = yes; then :
7153   ac_cv_func_mmap_fixed_mapped=no
7154 else
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 $ac_includes_default
7158 /* malloc might have been renamed as rpl_malloc. */
7159 #undef malloc
7160
7161 /* Thanks to Mike Haertel and Jim Avera for this test.
7162    Here is a matrix of mmap possibilities:
7163         mmap private not fixed
7164         mmap private fixed at somewhere currently unmapped
7165         mmap private fixed at somewhere already mapped
7166         mmap shared not fixed
7167         mmap shared fixed at somewhere currently unmapped
7168         mmap shared fixed at somewhere already mapped
7169    For private mappings, we should verify that changes cannot be read()
7170    back from the file, nor mmap's back from the file at a different
7171    address.  (There have been systems where private was not correctly
7172    implemented like the infamous i386 svr4.0, and systems where the
7173    VM page cache was not coherent with the file system buffer cache
7174    like early versions of FreeBSD and possibly contemporary NetBSD.)
7175    For shared mappings, we should conversely verify that changes get
7176    propagated back to all the places they're supposed to be.
7177
7178    Grep wants private fixed already mapped.
7179    The main things grep needs to know about mmap are:
7180    * does it exist and is it safe to write into the mmap'd area
7181    * how to use it (BSD variants)  */
7182
7183 #include <fcntl.h>
7184 #include <sys/mman.h>
7185
7186 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7187 char *malloc ();
7188 #endif
7189
7190 /* This mess was copied from the GNU getpagesize.h.  */
7191 #ifndef HAVE_GETPAGESIZE
7192 # ifdef _SC_PAGESIZE
7193 #  define getpagesize() sysconf(_SC_PAGESIZE)
7194 # else /* no _SC_PAGESIZE */
7195 #  ifdef HAVE_SYS_PARAM_H
7196 #   include <sys/param.h>
7197 #   ifdef EXEC_PAGESIZE
7198 #    define getpagesize() EXEC_PAGESIZE
7199 #   else /* no EXEC_PAGESIZE */
7200 #    ifdef NBPG
7201 #     define getpagesize() NBPG * CLSIZE
7202 #     ifndef CLSIZE
7203 #      define CLSIZE 1
7204 #     endif /* no CLSIZE */
7205 #    else /* no NBPG */
7206 #     ifdef NBPC
7207 #      define getpagesize() NBPC
7208 #     else /* no NBPC */
7209 #      ifdef PAGESIZE
7210 #       define getpagesize() PAGESIZE
7211 #      endif /* PAGESIZE */
7212 #     endif /* no NBPC */
7213 #    endif /* no NBPG */
7214 #   endif /* no EXEC_PAGESIZE */
7215 #  else /* no HAVE_SYS_PARAM_H */
7216 #   define getpagesize() 8192   /* punt totally */
7217 #  endif /* no HAVE_SYS_PARAM_H */
7218 # endif /* no _SC_PAGESIZE */
7219
7220 #endif /* no HAVE_GETPAGESIZE */
7221
7222 int
7223 main ()
7224 {
7225   char *data, *data2, *data3;
7226   const char *cdata2;
7227   int i, pagesize;
7228   int fd, fd2;
7229
7230   pagesize = getpagesize ();
7231
7232   /* First, make a file with some known garbage in it. */
7233   data = (char *) malloc (pagesize);
7234   if (!data)
7235     return 1;
7236   for (i = 0; i < pagesize; ++i)
7237     *(data + i) = rand ();
7238   umask (0);
7239   fd = creat ("conftest.mmap", 0600);
7240   if (fd < 0)
7241     return 2;
7242   if (write (fd, data, pagesize) != pagesize)
7243     return 3;
7244   close (fd);
7245
7246   /* Next, check that the tail of a page is zero-filled.  File must have
7247      non-zero length, otherwise we risk SIGBUS for entire page.  */
7248   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7249   if (fd2 < 0)
7250     return 4;
7251   cdata2 = "";
7252   if (write (fd2, cdata2, 1) != 1)
7253     return 5;
7254   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7255   if (data2 == MAP_FAILED)
7256     return 6;
7257   for (i = 0; i < pagesize; ++i)
7258     if (*(data2 + i))
7259       return 7;
7260   close (fd2);
7261   if (munmap (data2, pagesize))
7262     return 8;
7263
7264   /* Next, try to mmap the file at a fixed address which already has
7265      something else allocated at it.  If we can, also make sure that
7266      we see the same garbage.  */
7267   fd = open ("conftest.mmap", O_RDWR);
7268   if (fd < 0)
7269     return 9;
7270   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7271                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7272     return 10;
7273   for (i = 0; i < pagesize; ++i)
7274     if (*(data + i) != *(data2 + i))
7275       return 11;
7276
7277   /* Finally, make sure that changes to the mapped area do not
7278      percolate back to the file as seen by read().  (This is a bug on
7279      some variants of i386 svr4.0.)  */
7280   for (i = 0; i < pagesize; ++i)
7281     *(data2 + i) = *(data2 + i) + 1;
7282   data3 = (char *) malloc (pagesize);
7283   if (!data3)
7284     return 12;
7285   if (read (fd, data3, pagesize) != pagesize)
7286     return 13;
7287   for (i = 0; i < pagesize; ++i)
7288     if (*(data + i) != *(data3 + i))
7289       return 14;
7290   close (fd);
7291   free (data);
7292   free (data3);
7293   return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_run "$LINENO"; then :
7297   ac_cv_func_mmap_fixed_mapped=yes
7298 else
7299   ac_cv_func_mmap_fixed_mapped=no
7300 fi
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302   conftest.$ac_objext conftest.beam conftest.$ac_ext
7303 fi
7304
7305 fi
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7307 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7308 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7309
7310 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7311
7312 fi
7313 rm -f conftest.mmap conftest.txt
7314
7315
7316
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7318 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7319 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322
7323       gt_cv_int_divbyzero_sigfpe=
7324       case "$host_os" in
7325         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7326           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7327           # compiling. If we were to perform the real test, 1 Crash Report
7328           # dialog window would pop up.
7329           case "$host_cpu" in
7330             i[34567]86 | x86_64)
7331               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7332           esac
7333           ;;
7334       esac
7335       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7336         if test "$cross_compiling" = yes; then :
7337
7338             # Guess based on the CPU.
7339             case "$host_cpu" in
7340               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7341                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7342               *)
7343                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7344             esac
7345
7346 else
7347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h.  */
7349
7350 #include <stdlib.h>
7351 #include <signal.h>
7352
7353 static void
7354 sigfpe_handler (int sig)
7355 {
7356   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7357   exit (sig != SIGFPE);
7358 }
7359
7360 int x = 1;
7361 int y = 0;
7362 int z;
7363 int nan;
7364
7365 int main ()
7366 {
7367   signal (SIGFPE, sigfpe_handler);
7368 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7369 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7370   signal (SIGTRAP, sigfpe_handler);
7371 #endif
7372 /* Linux/SPARC yields signal SIGILL.  */
7373 #if defined (__sparc__) && defined (__linux__)
7374   signal (SIGILL, sigfpe_handler);
7375 #endif
7376
7377   z = x / y;
7378   nan = y / y;
7379   exit (2);
7380 }
7381
7382 _ACEOF
7383 if ac_fn_c_try_run "$LINENO"; then :
7384   gt_cv_int_divbyzero_sigfpe=yes
7385 else
7386   gt_cv_int_divbyzero_sigfpe=no
7387 fi
7388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7389   conftest.$ac_objext conftest.beam conftest.$ac_ext
7390 fi
7391
7392       fi
7393
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7396 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7397   case "$gt_cv_int_divbyzero_sigfpe" in
7398     *yes) value=1;;
7399     *) value=0;;
7400   esac
7401
7402 cat >>confdefs.h <<_ACEOF
7403 #define INTDIV0_RAISES_SIGFPE $value
7404 _ACEOF
7405
7406
7407
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7409 $as_echo_n "checking for inttypes.h... " >&6; }
7410 if ${gl_cv_header_inttypes_h+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h.  */
7415
7416 #include <sys/types.h>
7417 #include <inttypes.h>
7418
7419 int
7420 main ()
7421 {
7422 uintmax_t i = (uintmax_t) -1; return !i;
7423   ;
7424   return 0;
7425 }
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"; then :
7428   gl_cv_header_inttypes_h=yes
7429 else
7430   gl_cv_header_inttypes_h=no
7431 fi
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7435 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7436   if test $gl_cv_header_inttypes_h = yes; then
7437
7438 cat >>confdefs.h <<_ACEOF
7439 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7440 _ACEOF
7441
7442   fi
7443
7444
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7446 $as_echo_n "checking for unsigned long long int... " >&6; }
7447 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   ac_cv_type_unsigned_long_long_int=yes
7451      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7452        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h.  */
7454
7455   /* For now, do not test the preprocessor; as of 2007 there are too many
7456          implementations with broken preprocessors.  Perhaps this can
7457          be revisited in 2012.  In the meantime, code should not expect
7458          #if to work with literals wider than 32 bits.  */
7459       /* Test literals.  */
7460       long long int ll = 9223372036854775807ll;
7461       long long int nll = -9223372036854775807LL;
7462       unsigned long long int ull = 18446744073709551615ULL;
7463       /* Test constant expressions.   */
7464       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7465                      ? 1 : -1)];
7466       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7467                      ? 1 : -1)];
7468       int i = 63;
7469 int
7470 main ()
7471 {
7472 /* Test availability of runtime routines for shift and division.  */
7473       long long int llmax = 9223372036854775807ll;
7474       unsigned long long int ullmax = 18446744073709551615ull;
7475       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7476               | (llmax / ll) | (llmax % ll)
7477               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7478               | (ullmax / ull) | (ullmax % ull));
7479   ;
7480   return 0;
7481 }
7482
7483 _ACEOF
7484 if ac_fn_c_try_link "$LINENO"; then :
7485
7486 else
7487   ac_cv_type_unsigned_long_long_int=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext \
7490     conftest$ac_exeext conftest.$ac_ext
7491      fi
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7494 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7495   if test $ac_cv_type_unsigned_long_long_int = yes; then
7496
7497 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7498
7499   fi
7500
7501
7502
7503
7504   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7505
7506     test $ac_cv_type_unsigned_long_long_int = yes \
7507       && ac_type='unsigned long long' \
7508       || ac_type='unsigned long'
7509
7510 cat >>confdefs.h <<_ACEOF
7511 #define uintmax_t $ac_type
7512 _ACEOF
7513
7514   else
7515
7516 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7517
7518   fi
7519
7520
7521   for ac_header in inttypes.h
7522 do :
7523   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7524 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7525   cat >>confdefs.h <<_ACEOF
7526 #define HAVE_INTTYPES_H 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533   if test $ac_cv_header_inttypes_h = yes; then
7534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7535 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7536 if ${gt_cv_inttypes_pri_broken+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539
7540         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h.  */
7542
7543 #include <inttypes.h>
7544 #ifdef PRId32
7545 char *p = PRId32;
7546 #endif
7547
7548 int
7549 main ()
7550 {
7551
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557   gt_cv_inttypes_pri_broken=no
7558 else
7559   gt_cv_inttypes_pri_broken=yes
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7565 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7566   fi
7567   if test "$gt_cv_inttypes_pri_broken" = yes; then
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define PRI_MACROS_BROKEN 1
7571 _ACEOF
7572
7573     PRI_MACROS_BROKEN=1
7574   else
7575     PRI_MACROS_BROKEN=0
7576   fi
7577
7578
7579
7580
7581
7582
7583
7584   # Check whether --enable-threads was given.
7585 if test "${enable_threads+set}" = set; then :
7586   enableval=$enable_threads; gl_use_threads=$enableval
7587 else
7588   if test -n "$gl_use_threads_default"; then
7589        gl_use_threads="$gl_use_threads_default"
7590      else
7591        case "$host_os" in
7592                                                                osf*) gl_use_threads=no ;;
7593          cygwin*)
7594                case `uname -r` in
7595                  1.[0-5].*) gl_use_threads=no ;;
7596                  *)         gl_use_threads=yes ;;
7597                esac
7598                ;;
7599          *)    gl_use_threads=yes ;;
7600        esac
7601      fi
7602
7603 fi
7604
7605   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7606     # For using <pthread.h>:
7607     case "$host_os" in
7608       osf*)
7609         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7610         # groks <pthread.h>. cc also understands the flag -pthread, but
7611         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7612         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7613         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7614         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7615         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7616         ;;
7617     esac
7618     # Some systems optimize for single-threaded programs by default, and
7619     # need special flags to disable these optimizations. For example, the
7620     # definition of 'errno' in <errno.h>.
7621     case "$host_os" in
7622       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7623       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7624     esac
7625   fi
7626
7627
7628
7629
7630
7631       if test "X$prefix" = "XNONE"; then
7632     acl_final_prefix="$ac_default_prefix"
7633   else
7634     acl_final_prefix="$prefix"
7635   fi
7636   if test "X$exec_prefix" = "XNONE"; then
7637     acl_final_exec_prefix='${prefix}'
7638   else
7639     acl_final_exec_prefix="$exec_prefix"
7640   fi
7641   acl_save_prefix="$prefix"
7642   prefix="$acl_final_prefix"
7643   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7644   prefix="$acl_save_prefix"
7645
7646
7647
7648 # Check whether --with-gnu-ld was given.
7649 if test "${with_gnu_ld+set}" = set; then :
7650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7651 else
7652   with_gnu_ld=no
7653 fi
7654
7655 # Prepare PATH_SEPARATOR.
7656 # The user is always right.
7657 if test "${PATH_SEPARATOR+set}" != set; then
7658   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7659   # contains only /bin. Note that ksh looks also at the FPATH variable,
7660   # so we have to set that as well for the test.
7661   PATH_SEPARATOR=:
7662   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7663     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7664            || PATH_SEPARATOR=';'
7665        }
7666 fi
7667
7668 ac_prog=ld
7669 if test "$GCC" = yes; then
7670   # Check if gcc -print-prog-name=ld gives a path.
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7672 $as_echo_n "checking for ld used by $CC... " >&6; }
7673   case $host in
7674   *-*-mingw*)
7675     # gcc leaves a trailing carriage return which upsets mingw
7676     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7677   *)
7678     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7679   esac
7680   case $ac_prog in
7681     # Accept absolute paths.
7682     [\\/]* | ?:[\\/]*)
7683       re_direlt='/[^/][^/]*/\.\./'
7684       # Canonicalize the pathname of ld
7685       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7686       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7687         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7688       done
7689       test -z "$LD" && LD="$ac_prog"
7690       ;;
7691   "")
7692     # If it fails, then pretend we aren't using GCC.
7693     ac_prog=ld
7694     ;;
7695   *)
7696     # If it is relative, then search for the first ld in PATH.
7697     with_gnu_ld=unknown
7698     ;;
7699   esac
7700 elif test "$with_gnu_ld" = yes; then
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7702 $as_echo_n "checking for GNU ld... " >&6; }
7703 else
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7705 $as_echo_n "checking for non-GNU ld... " >&6; }
7706 fi
7707 if ${acl_cv_path_LD+:} false; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   if test -z "$LD"; then
7711   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712   for ac_dir in $PATH; do
7713     IFS="$acl_save_ifs"
7714     test -z "$ac_dir" && ac_dir=.
7715     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7716       acl_cv_path_LD="$ac_dir/$ac_prog"
7717       # Check to see if the program is GNU ld.  I'd rather use --version,
7718       # but apparently some variants of GNU ld only accept -v.
7719       # Break only if it was the GNU/non-GNU ld that we prefer.
7720       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7721       *GNU* | *'with BFD'*)
7722         test "$with_gnu_ld" != no && break
7723         ;;
7724       *)
7725         test "$with_gnu_ld" != yes && break
7726         ;;
7727       esac
7728     fi
7729   done
7730   IFS="$acl_save_ifs"
7731 else
7732   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7733 fi
7734 fi
7735
7736 LD="$acl_cv_path_LD"
7737 if test -n "$LD"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7739 $as_echo "$LD" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7746 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7747 if ${acl_cv_prog_gnu_ld+:} false; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7751 case `$LD -v 2>&1 </dev/null` in
7752 *GNU* | *'with BFD'*)
7753   acl_cv_prog_gnu_ld=yes
7754   ;;
7755 *)
7756   acl_cv_prog_gnu_ld=no
7757   ;;
7758 esac
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7761 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7762 with_gnu_ld=$acl_cv_prog_gnu_ld
7763
7764
7765
7766
7767                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7768 $as_echo_n "checking for shared library run path origin... " >&6; }
7769 if ${acl_cv_rpath+:} false; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772
7773     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7774     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7775     . ./conftest.sh
7776     rm -f ./conftest.sh
7777     acl_cv_rpath=done
7778
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7781 $as_echo "$acl_cv_rpath" >&6; }
7782   wl="$acl_cv_wl"
7783   acl_libext="$acl_cv_libext"
7784   acl_shlibext="$acl_cv_shlibext"
7785   acl_libname_spec="$acl_cv_libname_spec"
7786   acl_library_names_spec="$acl_cv_library_names_spec"
7787   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7788   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7789   acl_hardcode_direct="$acl_cv_hardcode_direct"
7790   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7791     # Check whether --enable-rpath was given.
7792 if test "${enable_rpath+set}" = set; then :
7793   enableval=$enable_rpath; :
7794 else
7795   enable_rpath=yes
7796 fi
7797
7798
7799
7800
7801   acl_libdirstem=lib
7802   acl_libdirstem2=
7803   case "$host_os" in
7804     solaris*)
7805                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7806 $as_echo_n "checking for 64-bit host... " >&6; }
7807 if ${gl_cv_solaris_64bit+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h.  */
7812
7813 #ifdef _LP64
7814 sixtyfour bits
7815 #endif
7816
7817 _ACEOF
7818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7819   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7820   gl_cv_solaris_64bit=yes
7821 else
7822   gl_cv_solaris_64bit=no
7823 fi
7824 rm -f conftest*
7825
7826
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7829 $as_echo "$gl_cv_solaris_64bit" >&6; }
7830       if test $gl_cv_solaris_64bit = yes; then
7831         acl_libdirstem=lib/64
7832         case "$host_cpu" in
7833           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7834           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7835         esac
7836       fi
7837       ;;
7838     *)
7839       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7840       if test -n "$searchpath"; then
7841         acl_save_IFS="${IFS=    }"; IFS=":"
7842         for searchdir in $searchpath; do
7843           if test -d "$searchdir"; then
7844             case "$searchdir" in
7845               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7846               */../ | */.. )
7847                 # Better ignore directories of this form. They are misleading.
7848                 ;;
7849               *) searchdir=`cd "$searchdir" && pwd`
7850                  case "$searchdir" in
7851                    */lib64 ) acl_libdirstem=lib64 ;;
7852                  esac ;;
7853             esac
7854           fi
7855         done
7856         IFS="$acl_save_IFS"
7857       fi
7858       ;;
7859   esac
7860   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7861
7862
7863
7864   gl_threads_api=none
7865   LIBTHREAD=
7866   LTLIBTHREAD=
7867   LIBMULTITHREAD=
7868   LTLIBMULTITHREAD=
7869   if test "$gl_use_threads" != no; then
7870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7871 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7872 if ${gl_cv_have_weak+:} false; then :
7873   $as_echo_n "(cached) " >&6
7874 else
7875   gl_cv_have_weak=no
7876               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878 extern void xyzzy ();
7879 #pragma weak xyzzy
7880 int
7881 main ()
7882 {
7883 xyzzy();
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"; then :
7889   gl_cv_have_weak=maybe
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext \
7892     conftest$ac_exeext conftest.$ac_ext
7893        if test $gl_cv_have_weak = maybe; then
7894                            if test "$cross_compiling" = yes; then :
7895                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h.  */
7897 #ifdef __ELF__
7898                Extensible Linking Format
7899                #endif
7900
7901 _ACEOF
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7904   gl_cv_have_weak="guessing yes"
7905 else
7906   gl_cv_have_weak="guessing no"
7907 fi
7908 rm -f conftest*
7909
7910
7911 else
7912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914
7915 #include <stdio.h>
7916 #pragma weak fputs
7917 int main ()
7918 {
7919   return (fputs == NULL);
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_run "$LINENO"; then :
7923   gl_cv_have_weak=yes
7924 else
7925   gl_cv_have_weak=no
7926 fi
7927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7928   conftest.$ac_objext conftest.beam conftest.$ac_ext
7929 fi
7930
7931        fi
7932
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7935 $as_echo "$gl_cv_have_weak" >&6; }
7936     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7937       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7938       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7939       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7940 if test "x$ac_cv_header_pthread_h" = xyes; then :
7941   gl_have_pthread_h=yes
7942 else
7943   gl_have_pthread_h=no
7944 fi
7945
7946
7947       if test "$gl_have_pthread_h" = yes; then
7948         # Other possible tests:
7949         #   -lpthreads (FSU threads, PCthreads)
7950         #   -lgthreads
7951         gl_have_pthread=
7952         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7953         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7954         # the second one only in libpthread, and lock.c needs it.
7955         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <pthread.h>
7958 int
7959 main ()
7960 {
7961 pthread_mutex_lock((pthread_mutex_t*)0);
7962                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 if ac_fn_c_try_link "$LINENO"; then :
7968   gl_have_pthread=yes
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext \
7971     conftest$ac_exeext conftest.$ac_ext
7972         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7973         # since it is defined as a macro on OSF/1.)
7974         if test -n "$gl_have_pthread"; then
7975           # The program links fine without libpthread. But it may actually
7976           # need to link with libpthread in order to create multiple threads.
7977           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7978 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7979 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lpthread  $LIBS"
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986
7987 /* Override any GCC internal prototype to avoid an error.
7988    Use char because int might match the return type of a GCC
7989    builtin and then its argument prototype would still apply.  */
7990 #ifdef __cplusplus
7991 extern "C"
7992 #endif
7993 char pthread_kill ();
7994 int
7995 main ()
7996 {
7997 return pthread_kill ();
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_link "$LINENO"; then :
8003   ac_cv_lib_pthread_pthread_kill=yes
8004 else
8005   ac_cv_lib_pthread_pthread_kill=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext \
8008     conftest$ac_exeext conftest.$ac_ext
8009 LIBS=$ac_check_lib_save_LIBS
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8012 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8013 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8014   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8015              # On Solaris and HP-UX, most pthread functions exist also in libc.
8016              # Therefore pthread_in_use() needs to actually try to create a
8017              # thread: pthread_create from libc will fail, whereas
8018              # pthread_create will actually create a thread.
8019              case "$host_os" in
8020                solaris* | hpux*)
8021
8022 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8023
8024              esac
8025
8026 fi
8027
8028         else
8029           # Some library is needed. Try libpthread and libc_r.
8030           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8031 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8032 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lpthread  $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039
8040 /* Override any GCC internal prototype to avoid an error.
8041    Use char because int might match the return type of a GCC
8042    builtin and then its argument prototype would still apply.  */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 char pthread_kill ();
8047 int
8048 main ()
8049 {
8050 return pthread_kill ();
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056   ac_cv_lib_pthread_pthread_kill=yes
8057 else
8058   ac_cv_lib_pthread_pthread_kill=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext \
8061     conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8065 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8066 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8067   gl_have_pthread=yes
8068              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8069              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8070 fi
8071
8072           if test -z "$gl_have_pthread"; then
8073             # For FreeBSD 4.
8074             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8075 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8076 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   ac_check_lib_save_LIBS=$LIBS
8080 LIBS="-lc_r  $LIBS"
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h.  */
8083
8084 /* Override any GCC internal prototype to avoid an error.
8085    Use char because int might match the return type of a GCC
8086    builtin and then its argument prototype would still apply.  */
8087 #ifdef __cplusplus
8088 extern "C"
8089 #endif
8090 char pthread_kill ();
8091 int
8092 main ()
8093 {
8094 return pthread_kill ();
8095   ;
8096   return 0;
8097 }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100   ac_cv_lib_c_r_pthread_kill=yes
8101 else
8102   ac_cv_lib_c_r_pthread_kill=no
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext \
8105     conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_check_lib_save_LIBS
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8109 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8110 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8111   gl_have_pthread=yes
8112                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8113                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8114 fi
8115
8116           fi
8117         fi
8118         if test -n "$gl_have_pthread"; then
8119           gl_threads_api=posix
8120
8121 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8122
8123           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8124             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8125
8126 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8127
8128               LIBTHREAD=
8129               LTLIBTHREAD=
8130             fi
8131           fi
8132         fi
8133       fi
8134     fi
8135     if test -z "$gl_have_pthread"; then
8136       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8137         gl_have_solaristhread=
8138         gl_save_LIBS="$LIBS"
8139         LIBS="$LIBS -lthread"
8140         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h.  */
8142
8143 #include <thread.h>
8144 #include <synch.h>
8145
8146 int
8147 main ()
8148 {
8149 thr_self();
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155   gl_have_solaristhread=yes
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext \
8158     conftest$ac_exeext conftest.$ac_ext
8159         LIBS="$gl_save_LIBS"
8160         if test -n "$gl_have_solaristhread"; then
8161           gl_threads_api=solaris
8162           LIBTHREAD=-lthread
8163           LTLIBTHREAD=-lthread
8164           LIBMULTITHREAD="$LIBTHREAD"
8165           LTLIBMULTITHREAD="$LTLIBTHREAD"
8166
8167 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8168
8169           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8170
8171 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8172
8173             LIBTHREAD=
8174             LTLIBTHREAD=
8175           fi
8176         fi
8177       fi
8178     fi
8179     if test "$gl_use_threads" = pth; then
8180       gl_save_CPPFLAGS="$CPPFLAGS"
8181
8182
8183
8184
8185
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8187 $as_echo_n "checking how to link with libpth... " >&6; }
8188 if ${ac_cv_libpth_libs+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191
8192
8193
8194
8195
8196
8197
8198
8199     use_additional=yes
8200
8201   acl_save_prefix="$prefix"
8202   prefix="$acl_final_prefix"
8203   acl_save_exec_prefix="$exec_prefix"
8204   exec_prefix="$acl_final_exec_prefix"
8205
8206     eval additional_includedir=\"$includedir\"
8207     eval additional_libdir=\"$libdir\"
8208
8209   exec_prefix="$acl_save_exec_prefix"
8210   prefix="$acl_save_prefix"
8211
8212
8213 # Check whether --with-libpth-prefix was given.
8214 if test "${with_libpth_prefix+set}" = set; then :
8215   withval=$with_libpth_prefix;
8216     if test "X$withval" = "Xno"; then
8217       use_additional=no
8218     else
8219       if test "X$withval" = "X"; then
8220
8221   acl_save_prefix="$prefix"
8222   prefix="$acl_final_prefix"
8223   acl_save_exec_prefix="$exec_prefix"
8224   exec_prefix="$acl_final_exec_prefix"
8225
8226           eval additional_includedir=\"$includedir\"
8227           eval additional_libdir=\"$libdir\"
8228
8229   exec_prefix="$acl_save_exec_prefix"
8230   prefix="$acl_save_prefix"
8231
8232       else
8233         additional_includedir="$withval/include"
8234         additional_libdir="$withval/$acl_libdirstem"
8235         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8236            && ! test -d "$withval/$acl_libdirstem"; then
8237           additional_libdir="$withval/$acl_libdirstem2"
8238         fi
8239       fi
8240     fi
8241
8242 fi
8243
8244       LIBPTH=
8245   LTLIBPTH=
8246   INCPTH=
8247   LIBPTH_PREFIX=
8248       HAVE_LIBPTH=
8249   rpathdirs=
8250   ltrpathdirs=
8251   names_already_handled=
8252   names_next_round='pth '
8253   while test -n "$names_next_round"; do
8254     names_this_round="$names_next_round"
8255     names_next_round=
8256     for name in $names_this_round; do
8257       already_handled=
8258       for n in $names_already_handled; do
8259         if test "$n" = "$name"; then
8260           already_handled=yes
8261           break
8262         fi
8263       done
8264       if test -z "$already_handled"; then
8265         names_already_handled="$names_already_handled $name"
8266                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8267         eval value=\"\$HAVE_LIB$uppername\"
8268         if test -n "$value"; then
8269           if test "$value" = yes; then
8270             eval value=\"\$LIB$uppername\"
8271             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8272             eval value=\"\$LTLIB$uppername\"
8273             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8274           else
8275                                     :
8276           fi
8277         else
8278                               found_dir=
8279           found_la=
8280           found_so=
8281           found_a=
8282           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8283           if test -n "$acl_shlibext"; then
8284             shrext=".$acl_shlibext"             # typically: shrext=.so
8285           else
8286             shrext=
8287           fi
8288           if test $use_additional = yes; then
8289             dir="$additional_libdir"
8290                                     if test -n "$acl_shlibext"; then
8291               if test -f "$dir/$libname$shrext"; then
8292                 found_dir="$dir"
8293                 found_so="$dir/$libname$shrext"
8294               else
8295                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8296                   ver=`(cd "$dir" && \
8297                         for f in "$libname$shrext".*; do echo "$f"; done \
8298                         | sed -e "s,^$libname$shrext\\\\.,," \
8299                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8300                         | sed 1q ) 2>/dev/null`
8301                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8302                     found_dir="$dir"
8303                     found_so="$dir/$libname$shrext.$ver"
8304                   fi
8305                 else
8306                   eval library_names=\"$acl_library_names_spec\"
8307                   for f in $library_names; do
8308                     if test -f "$dir/$f"; then
8309                       found_dir="$dir"
8310                       found_so="$dir/$f"
8311                       break
8312                     fi
8313                   done
8314                 fi
8315               fi
8316             fi
8317                         if test "X$found_dir" = "X"; then
8318               if test -f "$dir/$libname.$acl_libext"; then
8319                 found_dir="$dir"
8320                 found_a="$dir/$libname.$acl_libext"
8321               fi
8322             fi
8323             if test "X$found_dir" != "X"; then
8324               if test -f "$dir/$libname.la"; then
8325                 found_la="$dir/$libname.la"
8326               fi
8327             fi
8328           fi
8329           if test "X$found_dir" = "X"; then
8330             for x in $LDFLAGS $LTLIBPTH; do
8331
8332   acl_save_prefix="$prefix"
8333   prefix="$acl_final_prefix"
8334   acl_save_exec_prefix="$exec_prefix"
8335   exec_prefix="$acl_final_exec_prefix"
8336   eval x=\"$x\"
8337   exec_prefix="$acl_save_exec_prefix"
8338   prefix="$acl_save_prefix"
8339
8340               case "$x" in
8341                 -L*)
8342                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8343                                     if test -n "$acl_shlibext"; then
8344                     if test -f "$dir/$libname$shrext"; then
8345                       found_dir="$dir"
8346                       found_so="$dir/$libname$shrext"
8347                     else
8348                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8349                         ver=`(cd "$dir" && \
8350                               for f in "$libname$shrext".*; do echo "$f"; done \
8351                               | sed -e "s,^$libname$shrext\\\\.,," \
8352                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8353                               | sed 1q ) 2>/dev/null`
8354                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8355                           found_dir="$dir"
8356                           found_so="$dir/$libname$shrext.$ver"
8357                         fi
8358                       else
8359                         eval library_names=\"$acl_library_names_spec\"
8360                         for f in $library_names; do
8361                           if test -f "$dir/$f"; then
8362                             found_dir="$dir"
8363                             found_so="$dir/$f"
8364                             break
8365                           fi
8366                         done
8367                       fi
8368                     fi
8369                   fi
8370                                     if test "X$found_dir" = "X"; then
8371                     if test -f "$dir/$libname.$acl_libext"; then
8372                       found_dir="$dir"
8373                       found_a="$dir/$libname.$acl_libext"
8374                     fi
8375                   fi
8376                   if test "X$found_dir" != "X"; then
8377                     if test -f "$dir/$libname.la"; then
8378                       found_la="$dir/$libname.la"
8379                     fi
8380                   fi
8381                   ;;
8382               esac
8383               if test "X$found_dir" != "X"; then
8384                 break
8385               fi
8386             done
8387           fi
8388           if test "X$found_dir" != "X"; then
8389                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8390             if test "X$found_so" != "X"; then
8391                                                         if test "$enable_rpath" = no \
8392                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8393                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8394                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8395               else
8396                                                                                 haveit=
8397                 for x in $ltrpathdirs; do
8398                   if test "X$x" = "X$found_dir"; then
8399                     haveit=yes
8400                     break
8401                   fi
8402                 done
8403                 if test -z "$haveit"; then
8404                   ltrpathdirs="$ltrpathdirs $found_dir"
8405                 fi
8406                                 if test "$acl_hardcode_direct" = yes; then
8407                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8408                 else
8409                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8410                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8411                                                             haveit=
8412                     for x in $rpathdirs; do
8413                       if test "X$x" = "X$found_dir"; then
8414                         haveit=yes
8415                         break
8416                       fi
8417                     done
8418                     if test -z "$haveit"; then
8419                       rpathdirs="$rpathdirs $found_dir"
8420                     fi
8421                   else
8422                                                                                 haveit=
8423                     for x in $LDFLAGS $LIBPTH; do
8424
8425   acl_save_prefix="$prefix"
8426   prefix="$acl_final_prefix"
8427   acl_save_exec_prefix="$exec_prefix"
8428   exec_prefix="$acl_final_exec_prefix"
8429   eval x=\"$x\"
8430   exec_prefix="$acl_save_exec_prefix"
8431   prefix="$acl_save_prefix"
8432
8433                       if test "X$x" = "X-L$found_dir"; then
8434                         haveit=yes
8435                         break
8436                       fi
8437                     done
8438                     if test -z "$haveit"; then
8439                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8440                     fi
8441                     if test "$acl_hardcode_minus_L" != no; then
8442                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8443                     else
8444                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8445                     fi
8446                   fi
8447                 fi
8448               fi
8449             else
8450               if test "X$found_a" != "X"; then
8451                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8452               else
8453                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8454               fi
8455             fi
8456                         additional_includedir=
8457             case "$found_dir" in
8458               */$acl_libdirstem | */$acl_libdirstem/)
8459                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8460                 if test "$name" = 'pth'; then
8461                   LIBPTH_PREFIX="$basedir"
8462                 fi
8463                 additional_includedir="$basedir/include"
8464                 ;;
8465               */$acl_libdirstem2 | */$acl_libdirstem2/)
8466                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8467                 if test "$name" = 'pth'; then
8468                   LIBPTH_PREFIX="$basedir"
8469                 fi
8470                 additional_includedir="$basedir/include"
8471                 ;;
8472             esac
8473             if test "X$additional_includedir" != "X"; then
8474                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8475                 haveit=
8476                 if test "X$additional_includedir" = "X/usr/local/include"; then
8477                   if test -n "$GCC"; then
8478                     case $host_os in
8479                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8480                     esac
8481                   fi
8482                 fi
8483                 if test -z "$haveit"; then
8484                   for x in $CPPFLAGS $INCPTH; do
8485
8486   acl_save_prefix="$prefix"
8487   prefix="$acl_final_prefix"
8488   acl_save_exec_prefix="$exec_prefix"
8489   exec_prefix="$acl_final_exec_prefix"
8490   eval x=\"$x\"
8491   exec_prefix="$acl_save_exec_prefix"
8492   prefix="$acl_save_prefix"
8493
8494                     if test "X$x" = "X-I$additional_includedir"; then
8495                       haveit=yes
8496                       break
8497                     fi
8498                   done
8499                   if test -z "$haveit"; then
8500                     if test -d "$additional_includedir"; then
8501                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8502                     fi
8503                   fi
8504                 fi
8505               fi
8506             fi
8507                         if test -n "$found_la"; then
8508                                                         save_libdir="$libdir"
8509               case "$found_la" in
8510                 */* | *\\*) . "$found_la" ;;
8511                 *) . "./$found_la" ;;
8512               esac
8513               libdir="$save_libdir"
8514                             for dep in $dependency_libs; do
8515                 case "$dep" in
8516                   -L*)
8517                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8518                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8519                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8520                       haveit=
8521                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8522                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8523                         if test -n "$GCC"; then
8524                           case $host_os in
8525                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8526                           esac
8527                         fi
8528                       fi
8529                       if test -z "$haveit"; then
8530                         haveit=
8531                         for x in $LDFLAGS $LIBPTH; do
8532
8533   acl_save_prefix="$prefix"
8534   prefix="$acl_final_prefix"
8535   acl_save_exec_prefix="$exec_prefix"
8536   exec_prefix="$acl_final_exec_prefix"
8537   eval x=\"$x\"
8538   exec_prefix="$acl_save_exec_prefix"
8539   prefix="$acl_save_prefix"
8540
8541                           if test "X$x" = "X-L$additional_libdir"; then
8542                             haveit=yes
8543                             break
8544                           fi
8545                         done
8546                         if test -z "$haveit"; then
8547                           if test -d "$additional_libdir"; then
8548                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8549                           fi
8550                         fi
8551                         haveit=
8552                         for x in $LDFLAGS $LTLIBPTH; do
8553
8554   acl_save_prefix="$prefix"
8555   prefix="$acl_final_prefix"
8556   acl_save_exec_prefix="$exec_prefix"
8557   exec_prefix="$acl_final_exec_prefix"
8558   eval x=\"$x\"
8559   exec_prefix="$acl_save_exec_prefix"
8560   prefix="$acl_save_prefix"
8561
8562                           if test "X$x" = "X-L$additional_libdir"; then
8563                             haveit=yes
8564                             break
8565                           fi
8566                         done
8567                         if test -z "$haveit"; then
8568                           if test -d "$additional_libdir"; then
8569                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8570                           fi
8571                         fi
8572                       fi
8573                     fi
8574                     ;;
8575                   -R*)
8576                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8577                     if test "$enable_rpath" != no; then
8578                                                                   haveit=
8579                       for x in $rpathdirs; do
8580                         if test "X$x" = "X$dir"; then
8581                           haveit=yes
8582                           break
8583                         fi
8584                       done
8585                       if test -z "$haveit"; then
8586                         rpathdirs="$rpathdirs $dir"
8587                       fi
8588                                                                   haveit=
8589                       for x in $ltrpathdirs; do
8590                         if test "X$x" = "X$dir"; then
8591                           haveit=yes
8592                           break
8593                         fi
8594                       done
8595                       if test -z "$haveit"; then
8596                         ltrpathdirs="$ltrpathdirs $dir"
8597                       fi
8598                     fi
8599                     ;;
8600                   -l*)
8601                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8602                     ;;
8603                   *.la)
8604                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8605                     ;;
8606                   *)
8607                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8608                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8609                     ;;
8610                 esac
8611               done
8612             fi
8613           else
8614                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8615             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8616           fi
8617         fi
8618       fi
8619     done
8620   done
8621   if test "X$rpathdirs" != "X"; then
8622     if test -n "$acl_hardcode_libdir_separator"; then
8623                         alldirs=
8624       for found_dir in $rpathdirs; do
8625         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8626       done
8627             acl_save_libdir="$libdir"
8628       libdir="$alldirs"
8629       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8630       libdir="$acl_save_libdir"
8631       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8632     else
8633             for found_dir in $rpathdirs; do
8634         acl_save_libdir="$libdir"
8635         libdir="$found_dir"
8636         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8637         libdir="$acl_save_libdir"
8638         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8639       done
8640     fi
8641   fi
8642   if test "X$ltrpathdirs" != "X"; then
8643             for found_dir in $ltrpathdirs; do
8644       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8645     done
8646   fi
8647
8648
8649
8650
8651
8652
8653     ac_cv_libpth_libs="$LIBPTH"
8654     ac_cv_libpth_ltlibs="$LTLIBPTH"
8655     ac_cv_libpth_cppflags="$INCPTH"
8656     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8657
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8660 $as_echo "$ac_cv_libpth_libs" >&6; }
8661   LIBPTH="$ac_cv_libpth_libs"
8662   LTLIBPTH="$ac_cv_libpth_ltlibs"
8663   INCPTH="$ac_cv_libpth_cppflags"
8664   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8665
8666   for element in $INCPTH; do
8667     haveit=
8668     for x in $CPPFLAGS; do
8669
8670   acl_save_prefix="$prefix"
8671   prefix="$acl_final_prefix"
8672   acl_save_exec_prefix="$exec_prefix"
8673   exec_prefix="$acl_final_exec_prefix"
8674   eval x=\"$x\"
8675   exec_prefix="$acl_save_exec_prefix"
8676   prefix="$acl_save_prefix"
8677
8678       if test "X$x" = "X$element"; then
8679         haveit=yes
8680         break
8681       fi
8682     done
8683     if test -z "$haveit"; then
8684       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8685     fi
8686   done
8687
8688
8689
8690
8691       HAVE_LIBPTH=yes
8692
8693
8694
8695       gl_have_pth=
8696       gl_save_LIBS="$LIBS"
8697       LIBS="$LIBS $LIBPTH"
8698       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h.  */
8700 #include <pth.h>
8701 int
8702 main ()
8703 {
8704 pth_self();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 if ac_fn_c_try_link "$LINENO"; then :
8710   gl_have_pth=yes
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext \
8713     conftest$ac_exeext conftest.$ac_ext
8714       LIBS="$gl_save_LIBS"
8715       if test -n "$gl_have_pth"; then
8716         gl_threads_api=pth
8717         LIBTHREAD="$LIBPTH"
8718         LTLIBTHREAD="$LTLIBPTH"
8719         LIBMULTITHREAD="$LIBTHREAD"
8720         LTLIBMULTITHREAD="$LTLIBTHREAD"
8721
8722 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8723
8724         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8725           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8726
8727 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8728
8729             LIBTHREAD=
8730             LTLIBTHREAD=
8731           fi
8732         fi
8733       else
8734         CPPFLAGS="$gl_save_CPPFLAGS"
8735       fi
8736     fi
8737     if test -z "$gl_have_pthread"; then
8738       case "$gl_use_threads" in
8739         yes | windows | win32) # The 'win32' is for backward compatibility.
8740           if { case "$host_os" in
8741                  mingw*) true;;
8742                  *) false;;
8743                esac
8744              }; then
8745             gl_threads_api=windows
8746
8747 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8748
8749           fi
8750           ;;
8751       esac
8752     fi
8753   fi
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8755 $as_echo_n "checking for multithread API to use... " >&6; }
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8757 $as_echo "$gl_threads_api" >&6; }
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769   if test "$gl_threads_api" = posix; then
8770     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8771     # pthread_rwlock_* functions.
8772     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8773 "
8774 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8775
8776 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8777
8778 fi
8779
8780     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h.  */
8783
8784       #include <pthread.h>
8785 int
8786 main ()
8787 {
8788
8789 #if __FreeBSD__ == 4
8790 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8791 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8792        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8793 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8794 #else
8795 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8796 return !x;
8797 #endif
8798
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_compile "$LINENO"; then :
8804
8805 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8806
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809   fi
8810   :
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823     use_additional=yes
8824
8825   acl_save_prefix="$prefix"
8826   prefix="$acl_final_prefix"
8827   acl_save_exec_prefix="$exec_prefix"
8828   exec_prefix="$acl_final_exec_prefix"
8829
8830     eval additional_includedir=\"$includedir\"
8831     eval additional_libdir=\"$libdir\"
8832
8833   exec_prefix="$acl_save_exec_prefix"
8834   prefix="$acl_save_prefix"
8835
8836
8837 # Check whether --with-libiconv-prefix was given.
8838 if test "${with_libiconv_prefix+set}" = set; then :
8839   withval=$with_libiconv_prefix;
8840     if test "X$withval" = "Xno"; then
8841       use_additional=no
8842     else
8843       if test "X$withval" = "X"; then
8844
8845   acl_save_prefix="$prefix"
8846   prefix="$acl_final_prefix"
8847   acl_save_exec_prefix="$exec_prefix"
8848   exec_prefix="$acl_final_exec_prefix"
8849
8850           eval additional_includedir=\"$includedir\"
8851           eval additional_libdir=\"$libdir\"
8852
8853   exec_prefix="$acl_save_exec_prefix"
8854   prefix="$acl_save_prefix"
8855
8856       else
8857         additional_includedir="$withval/include"
8858         additional_libdir="$withval/$acl_libdirstem"
8859         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8860            && ! test -d "$withval/$acl_libdirstem"; then
8861           additional_libdir="$withval/$acl_libdirstem2"
8862         fi
8863       fi
8864     fi
8865
8866 fi
8867
8868       LIBICONV=
8869   LTLIBICONV=
8870   INCICONV=
8871   LIBICONV_PREFIX=
8872       HAVE_LIBICONV=
8873   rpathdirs=
8874   ltrpathdirs=
8875   names_already_handled=
8876   names_next_round='iconv '
8877   while test -n "$names_next_round"; do
8878     names_this_round="$names_next_round"
8879     names_next_round=
8880     for name in $names_this_round; do
8881       already_handled=
8882       for n in $names_already_handled; do
8883         if test "$n" = "$name"; then
8884           already_handled=yes
8885           break
8886         fi
8887       done
8888       if test -z "$already_handled"; then
8889         names_already_handled="$names_already_handled $name"
8890                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8891         eval value=\"\$HAVE_LIB$uppername\"
8892         if test -n "$value"; then
8893           if test "$value" = yes; then
8894             eval value=\"\$LIB$uppername\"
8895             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8896             eval value=\"\$LTLIB$uppername\"
8897             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8898           else
8899                                     :
8900           fi
8901         else
8902                               found_dir=
8903           found_la=
8904           found_so=
8905           found_a=
8906           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8907           if test -n "$acl_shlibext"; then
8908             shrext=".$acl_shlibext"             # typically: shrext=.so
8909           else
8910             shrext=
8911           fi
8912           if test $use_additional = yes; then
8913             dir="$additional_libdir"
8914                                     if test -n "$acl_shlibext"; then
8915               if test -f "$dir/$libname$shrext"; then
8916                 found_dir="$dir"
8917                 found_so="$dir/$libname$shrext"
8918               else
8919                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920                   ver=`(cd "$dir" && \
8921                         for f in "$libname$shrext".*; do echo "$f"; done \
8922                         | sed -e "s,^$libname$shrext\\\\.,," \
8923                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924                         | sed 1q ) 2>/dev/null`
8925                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8926                     found_dir="$dir"
8927                     found_so="$dir/$libname$shrext.$ver"
8928                   fi
8929                 else
8930                   eval library_names=\"$acl_library_names_spec\"
8931                   for f in $library_names; do
8932                     if test -f "$dir/$f"; then
8933                       found_dir="$dir"
8934                       found_so="$dir/$f"
8935                       break
8936                     fi
8937                   done
8938                 fi
8939               fi
8940             fi
8941                         if test "X$found_dir" = "X"; then
8942               if test -f "$dir/$libname.$acl_libext"; then
8943                 found_dir="$dir"
8944                 found_a="$dir/$libname.$acl_libext"
8945               fi
8946             fi
8947             if test "X$found_dir" != "X"; then
8948               if test -f "$dir/$libname.la"; then
8949                 found_la="$dir/$libname.la"
8950               fi
8951             fi
8952           fi
8953           if test "X$found_dir" = "X"; then
8954             for x in $LDFLAGS $LTLIBICONV; do
8955
8956   acl_save_prefix="$prefix"
8957   prefix="$acl_final_prefix"
8958   acl_save_exec_prefix="$exec_prefix"
8959   exec_prefix="$acl_final_exec_prefix"
8960   eval x=\"$x\"
8961   exec_prefix="$acl_save_exec_prefix"
8962   prefix="$acl_save_prefix"
8963
8964               case "$x" in
8965                 -L*)
8966                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8967                                     if test -n "$acl_shlibext"; then
8968                     if test -f "$dir/$libname$shrext"; then
8969                       found_dir="$dir"
8970                       found_so="$dir/$libname$shrext"
8971                     else
8972                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8973                         ver=`(cd "$dir" && \
8974                               for f in "$libname$shrext".*; do echo "$f"; done \
8975                               | sed -e "s,^$libname$shrext\\\\.,," \
8976                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8977                               | sed 1q ) 2>/dev/null`
8978                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8979                           found_dir="$dir"
8980                           found_so="$dir/$libname$shrext.$ver"
8981                         fi
8982                       else
8983                         eval library_names=\"$acl_library_names_spec\"
8984                         for f in $library_names; do
8985                           if test -f "$dir/$f"; then
8986                             found_dir="$dir"
8987                             found_so="$dir/$f"
8988                             break
8989                           fi
8990                         done
8991                       fi
8992                     fi
8993                   fi
8994                                     if test "X$found_dir" = "X"; then
8995                     if test -f "$dir/$libname.$acl_libext"; then
8996                       found_dir="$dir"
8997                       found_a="$dir/$libname.$acl_libext"
8998                     fi
8999                   fi
9000                   if test "X$found_dir" != "X"; then
9001                     if test -f "$dir/$libname.la"; then
9002                       found_la="$dir/$libname.la"
9003                     fi
9004                   fi
9005                   ;;
9006               esac
9007               if test "X$found_dir" != "X"; then
9008                 break
9009               fi
9010             done
9011           fi
9012           if test "X$found_dir" != "X"; then
9013                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9014             if test "X$found_so" != "X"; then
9015                                                         if test "$enable_rpath" = no \
9016                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9017                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9018                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9019               else
9020                                                                                 haveit=
9021                 for x in $ltrpathdirs; do
9022                   if test "X$x" = "X$found_dir"; then
9023                     haveit=yes
9024                     break
9025                   fi
9026                 done
9027                 if test -z "$haveit"; then
9028                   ltrpathdirs="$ltrpathdirs $found_dir"
9029                 fi
9030                                 if test "$acl_hardcode_direct" = yes; then
9031                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9032                 else
9033                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9034                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9035                                                             haveit=
9036                     for x in $rpathdirs; do
9037                       if test "X$x" = "X$found_dir"; then
9038                         haveit=yes
9039                         break
9040                       fi
9041                     done
9042                     if test -z "$haveit"; then
9043                       rpathdirs="$rpathdirs $found_dir"
9044                     fi
9045                   else
9046                                                                                 haveit=
9047                     for x in $LDFLAGS $LIBICONV; do
9048
9049   acl_save_prefix="$prefix"
9050   prefix="$acl_final_prefix"
9051   acl_save_exec_prefix="$exec_prefix"
9052   exec_prefix="$acl_final_exec_prefix"
9053   eval x=\"$x\"
9054   exec_prefix="$acl_save_exec_prefix"
9055   prefix="$acl_save_prefix"
9056
9057                       if test "X$x" = "X-L$found_dir"; then
9058                         haveit=yes
9059                         break
9060                       fi
9061                     done
9062                     if test -z "$haveit"; then
9063                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9064                     fi
9065                     if test "$acl_hardcode_minus_L" != no; then
9066                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9067                     else
9068                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9069                     fi
9070                   fi
9071                 fi
9072               fi
9073             else
9074               if test "X$found_a" != "X"; then
9075                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9076               else
9077                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9078               fi
9079             fi
9080                         additional_includedir=
9081             case "$found_dir" in
9082               */$acl_libdirstem | */$acl_libdirstem/)
9083                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9084                 if test "$name" = 'iconv'; then
9085                   LIBICONV_PREFIX="$basedir"
9086                 fi
9087                 additional_includedir="$basedir/include"
9088                 ;;
9089               */$acl_libdirstem2 | */$acl_libdirstem2/)
9090                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9091                 if test "$name" = 'iconv'; then
9092                   LIBICONV_PREFIX="$basedir"
9093                 fi
9094                 additional_includedir="$basedir/include"
9095                 ;;
9096             esac
9097             if test "X$additional_includedir" != "X"; then
9098                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9099                 haveit=
9100                 if test "X$additional_includedir" = "X/usr/local/include"; then
9101                   if test -n "$GCC"; then
9102                     case $host_os in
9103                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9104                     esac
9105                   fi
9106                 fi
9107                 if test -z "$haveit"; then
9108                   for x in $CPPFLAGS $INCICONV; do
9109
9110   acl_save_prefix="$prefix"
9111   prefix="$acl_final_prefix"
9112   acl_save_exec_prefix="$exec_prefix"
9113   exec_prefix="$acl_final_exec_prefix"
9114   eval x=\"$x\"
9115   exec_prefix="$acl_save_exec_prefix"
9116   prefix="$acl_save_prefix"
9117
9118                     if test "X$x" = "X-I$additional_includedir"; then
9119                       haveit=yes
9120                       break
9121                     fi
9122                   done
9123                   if test -z "$haveit"; then
9124                     if test -d "$additional_includedir"; then
9125                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9126                     fi
9127                   fi
9128                 fi
9129               fi
9130             fi
9131                         if test -n "$found_la"; then
9132                                                         save_libdir="$libdir"
9133               case "$found_la" in
9134                 */* | *\\*) . "$found_la" ;;
9135                 *) . "./$found_la" ;;
9136               esac
9137               libdir="$save_libdir"
9138                             for dep in $dependency_libs; do
9139                 case "$dep" in
9140                   -L*)
9141                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9142                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9143                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9144                       haveit=
9145                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9146                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9147                         if test -n "$GCC"; then
9148                           case $host_os in
9149                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9150                           esac
9151                         fi
9152                       fi
9153                       if test -z "$haveit"; then
9154                         haveit=
9155                         for x in $LDFLAGS $LIBICONV; do
9156
9157   acl_save_prefix="$prefix"
9158   prefix="$acl_final_prefix"
9159   acl_save_exec_prefix="$exec_prefix"
9160   exec_prefix="$acl_final_exec_prefix"
9161   eval x=\"$x\"
9162   exec_prefix="$acl_save_exec_prefix"
9163   prefix="$acl_save_prefix"
9164
9165                           if test "X$x" = "X-L$additional_libdir"; then
9166                             haveit=yes
9167                             break
9168                           fi
9169                         done
9170                         if test -z "$haveit"; then
9171                           if test -d "$additional_libdir"; then
9172                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9173                           fi
9174                         fi
9175                         haveit=
9176                         for x in $LDFLAGS $LTLIBICONV; do
9177
9178   acl_save_prefix="$prefix"
9179   prefix="$acl_final_prefix"
9180   acl_save_exec_prefix="$exec_prefix"
9181   exec_prefix="$acl_final_exec_prefix"
9182   eval x=\"$x\"
9183   exec_prefix="$acl_save_exec_prefix"
9184   prefix="$acl_save_prefix"
9185
9186                           if test "X$x" = "X-L$additional_libdir"; then
9187                             haveit=yes
9188                             break
9189                           fi
9190                         done
9191                         if test -z "$haveit"; then
9192                           if test -d "$additional_libdir"; then
9193                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9194                           fi
9195                         fi
9196                       fi
9197                     fi
9198                     ;;
9199                   -R*)
9200                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9201                     if test "$enable_rpath" != no; then
9202                                                                   haveit=
9203                       for x in $rpathdirs; do
9204                         if test "X$x" = "X$dir"; then
9205                           haveit=yes
9206                           break
9207                         fi
9208                       done
9209                       if test -z "$haveit"; then
9210                         rpathdirs="$rpathdirs $dir"
9211                       fi
9212                                                                   haveit=
9213                       for x in $ltrpathdirs; do
9214                         if test "X$x" = "X$dir"; then
9215                           haveit=yes
9216                           break
9217                         fi
9218                       done
9219                       if test -z "$haveit"; then
9220                         ltrpathdirs="$ltrpathdirs $dir"
9221                       fi
9222                     fi
9223                     ;;
9224                   -l*)
9225                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9226                     ;;
9227                   *.la)
9228                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9229                     ;;
9230                   *)
9231                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9232                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9233                     ;;
9234                 esac
9235               done
9236             fi
9237           else
9238                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9239             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9240           fi
9241         fi
9242       fi
9243     done
9244   done
9245   if test "X$rpathdirs" != "X"; then
9246     if test -n "$acl_hardcode_libdir_separator"; then
9247                         alldirs=
9248       for found_dir in $rpathdirs; do
9249         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9250       done
9251             acl_save_libdir="$libdir"
9252       libdir="$alldirs"
9253       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9254       libdir="$acl_save_libdir"
9255       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9256     else
9257             for found_dir in $rpathdirs; do
9258         acl_save_libdir="$libdir"
9259         libdir="$found_dir"
9260         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9261         libdir="$acl_save_libdir"
9262         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9263       done
9264     fi
9265   fi
9266   if test "X$ltrpathdirs" != "X"; then
9267             for found_dir in $ltrpathdirs; do
9268       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9269     done
9270   fi
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283           am_save_CPPFLAGS="$CPPFLAGS"
9284
9285   for element in $INCICONV; do
9286     haveit=
9287     for x in $CPPFLAGS; do
9288
9289   acl_save_prefix="$prefix"
9290   prefix="$acl_final_prefix"
9291   acl_save_exec_prefix="$exec_prefix"
9292   exec_prefix="$acl_final_exec_prefix"
9293   eval x=\"$x\"
9294   exec_prefix="$acl_save_exec_prefix"
9295   prefix="$acl_save_prefix"
9296
9297       if test "X$x" = "X$element"; then
9298         haveit=yes
9299         break
9300       fi
9301     done
9302     if test -z "$haveit"; then
9303       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9304     fi
9305   done
9306
9307
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9309 $as_echo_n "checking for iconv... " >&6; }
9310 if ${am_cv_func_iconv+:} false; then :
9311   $as_echo_n "(cached) " >&6
9312 else
9313
9314     am_cv_func_iconv="no, consider installing GNU libiconv"
9315     am_cv_lib_iconv=no
9316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h.  */
9318
9319 #include <stdlib.h>
9320 #include <iconv.h>
9321
9322 int
9323 main ()
9324 {
9325 iconv_t cd = iconv_open("","");
9326            iconv(cd,NULL,NULL,NULL,NULL);
9327            iconv_close(cd);
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 if ac_fn_c_try_link "$LINENO"; then :
9333   am_cv_func_iconv=yes
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext \
9336     conftest$ac_exeext conftest.$ac_ext
9337     if test "$am_cv_func_iconv" != yes; then
9338       am_save_LIBS="$LIBS"
9339       LIBS="$LIBS $LIBICONV"
9340       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h.  */
9342
9343 #include <stdlib.h>
9344 #include <iconv.h>
9345
9346 int
9347 main ()
9348 {
9349 iconv_t cd = iconv_open("","");
9350              iconv(cd,NULL,NULL,NULL,NULL);
9351              iconv_close(cd);
9352   ;
9353   return 0;
9354 }
9355 _ACEOF
9356 if ac_fn_c_try_link "$LINENO"; then :
9357   am_cv_lib_iconv=yes
9358         am_cv_func_iconv=yes
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361     conftest$ac_exeext conftest.$ac_ext
9362       LIBS="$am_save_LIBS"
9363     fi
9364
9365 fi
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9367 $as_echo "$am_cv_func_iconv" >&6; }
9368   if test "$am_cv_func_iconv" = yes; then
9369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9370 $as_echo_n "checking for working iconv... " >&6; }
9371 if ${am_cv_func_iconv_works+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374
9375                   am_save_LIBS="$LIBS"
9376       if test $am_cv_lib_iconv = yes; then
9377         LIBS="$LIBS $LIBICONV"
9378       fi
9379       if test "$cross_compiling" = yes; then :
9380
9381          case "$host_os" in
9382            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9383            *)            am_cv_func_iconv_works="guessing yes" ;;
9384          esac
9385
9386 else
9387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h.  */
9389
9390 #include <iconv.h>
9391 #include <string.h>
9392 int main ()
9393 {
9394   int result = 0;
9395   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9396      returns.  */
9397   {
9398     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9399     if (cd_utf8_to_88591 != (iconv_t)(-1))
9400       {
9401         static const char input[] = "\342\202\254"; /* EURO SIGN */
9402         char buf[10];
9403         const char *inptr = input;
9404         size_t inbytesleft = strlen (input);
9405         char *outptr = buf;
9406         size_t outbytesleft = sizeof (buf);
9407         size_t res = iconv (cd_utf8_to_88591,
9408                             (char **) &inptr, &inbytesleft,
9409                             &outptr, &outbytesleft);
9410         if (res == 0)
9411           result |= 1;
9412         iconv_close (cd_utf8_to_88591);
9413       }
9414   }
9415   /* Test against Solaris 10 bug: Failures are not distinguishable from
9416      successful returns.  */
9417   {
9418     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9419     if (cd_ascii_to_88591 != (iconv_t)(-1))
9420       {
9421         static const char input[] = "\263";
9422         char buf[10];
9423         const char *inptr = input;
9424         size_t inbytesleft = strlen (input);
9425         char *outptr = buf;
9426         size_t outbytesleft = sizeof (buf);
9427         size_t res = iconv (cd_ascii_to_88591,
9428                             (char **) &inptr, &inbytesleft,
9429                             &outptr, &outbytesleft);
9430         if (res == 0)
9431           result |= 2;
9432         iconv_close (cd_ascii_to_88591);
9433       }
9434   }
9435   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9436   {
9437     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9438     if (cd_88591_to_utf8 != (iconv_t)(-1))
9439       {
9440         static const char input[] = "\304";
9441         static char buf[2] = { (char)0xDE, (char)0xAD };
9442         const char *inptr = input;
9443         size_t inbytesleft = 1;
9444         char *outptr = buf;
9445         size_t outbytesleft = 1;
9446         size_t res = iconv (cd_88591_to_utf8,
9447                             (char **) &inptr, &inbytesleft,
9448                             &outptr, &outbytesleft);
9449         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9450           result |= 4;
9451         iconv_close (cd_88591_to_utf8);
9452       }
9453   }
9454 #if 0 /* This bug could be worked around by the caller.  */
9455   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9456   {
9457     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9458     if (cd_88591_to_utf8 != (iconv_t)(-1))
9459       {
9460         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9461         char buf[50];
9462         const char *inptr = input;
9463         size_t inbytesleft = strlen (input);
9464         char *outptr = buf;
9465         size_t outbytesleft = sizeof (buf);
9466         size_t res = iconv (cd_88591_to_utf8,
9467                             (char **) &inptr, &inbytesleft,
9468                             &outptr, &outbytesleft);
9469         if ((int)res > 0)
9470           result |= 8;
9471         iconv_close (cd_88591_to_utf8);
9472       }
9473   }
9474 #endif
9475   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9476      provided.  */
9477   if (/* Try standardized names.  */
9478       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9479       /* Try IRIX, OSF/1 names.  */
9480       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9481       /* Try AIX names.  */
9482       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9483       /* Try HP-UX names.  */
9484       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9485     result |= 16;
9486   return result;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_run "$LINENO"; then :
9490   am_cv_func_iconv_works=yes
9491 else
9492   am_cv_func_iconv_works=no
9493 fi
9494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9495   conftest.$ac_objext conftest.beam conftest.$ac_ext
9496 fi
9497
9498       LIBS="$am_save_LIBS"
9499
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9502 $as_echo "$am_cv_func_iconv_works" >&6; }
9503     case "$am_cv_func_iconv_works" in
9504       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9505       *)   am_func_iconv=yes ;;
9506     esac
9507   else
9508     am_func_iconv=no am_cv_lib_iconv=no
9509   fi
9510   if test "$am_func_iconv" = yes; then
9511
9512 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9513
9514   fi
9515   if test "$am_cv_lib_iconv" = yes; then
9516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9517 $as_echo_n "checking how to link with libiconv... " >&6; }
9518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9519 $as_echo "$LIBICONV" >&6; }
9520   else
9521             CPPFLAGS="$am_save_CPPFLAGS"
9522     LIBICONV=
9523     LTLIBICONV=
9524   fi
9525
9526
9527
9528   if test "$am_cv_func_iconv" = yes; then
9529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9530 $as_echo_n "checking for iconv declaration... " >&6; }
9531     if ${am_cv_proto_iconv+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534
9535       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h.  */
9537
9538 #include <stdlib.h>
9539 #include <iconv.h>
9540 extern
9541 #ifdef __cplusplus
9542 "C"
9543 #endif
9544 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9545 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9546 #else
9547 size_t iconv();
9548 #endif
9549
9550 int
9551 main ()
9552 {
9553
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559   am_cv_proto_iconv_arg1=""
9560 else
9561   am_cv_proto_iconv_arg1="const"
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564       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);"
9565 fi
9566
9567     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9568     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9569          $am_cv_proto_iconv" >&5
9570 $as_echo "
9571          $am_cv_proto_iconv" >&6; }
9572
9573 cat >>confdefs.h <<_ACEOF
9574 #define ICONV_CONST $am_cv_proto_iconv_arg1
9575 _ACEOF
9576
9577
9578   fi
9579
9580
9581
9582
9583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h.  */
9585 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9586 int
9587 main ()
9588 {
9589
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"; then :
9595
9596 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9597
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext \
9600     conftest$ac_exeext conftest.$ac_ext
9601
9602   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9603 do :
9604   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9607   cat >>confdefs.h <<_ACEOF
9608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9609 _ACEOF
9610
9611 fi
9612
9613 done
9614
9615   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9616     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9617     argz_stringify argz_next __fsetlocking
9618 do :
9619   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9622   cat >>confdefs.h <<_ACEOF
9623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9624 _ACEOF
9625
9626 fi
9627 done
9628
9629
9630           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9631 "
9632 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9633   ac_have_decl=1
9634 else
9635   ac_have_decl=0
9636 fi
9637
9638 cat >>confdefs.h <<_ACEOF
9639 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9640 _ACEOF
9641 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9642 "
9643 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9644   ac_have_decl=1
9645 else
9646   ac_have_decl=0
9647 fi
9648
9649 cat >>confdefs.h <<_ACEOF
9650 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9651 _ACEOF
9652
9653
9654
9655
9656                       for ac_prog in bison
9657 do
9658   # Extract the first word of "$ac_prog", so it can be a program name with args.
9659 set dummy $ac_prog; ac_word=$2
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if ${ac_cv_prog_INTLBISON+:} false; then :
9663   $as_echo_n "(cached) " >&6
9664 else
9665   if test -n "$INTLBISON"; then
9666   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9667 else
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671   IFS=$as_save_IFS
9672   test -z "$as_dir" && as_dir=.
9673     for ac_exec_ext in '' $ac_executable_extensions; do
9674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675     ac_cv_prog_INTLBISON="$ac_prog"
9676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677     break 2
9678   fi
9679 done
9680   done
9681 IFS=$as_save_IFS
9682
9683 fi
9684 fi
9685 INTLBISON=$ac_cv_prog_INTLBISON
9686 if test -n "$INTLBISON"; then
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9688 $as_echo "$INTLBISON" >&6; }
9689 else
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695   test -n "$INTLBISON" && break
9696 done
9697
9698   if test -z "$INTLBISON"; then
9699     ac_verc_fail=yes
9700   else
9701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9702 $as_echo_n "checking version of bison... " >&6; }
9703     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9704     case $ac_prog_version in
9705       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9706       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9707          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9708       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9709     esac
9710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9711 $as_echo "$ac_prog_version" >&6; }
9712   fi
9713   if test $ac_verc_fail = yes; then
9714     INTLBISON=:
9715   fi
9716
9717
9718
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9720 $as_echo_n "checking for long long int... " >&6; }
9721 if ${ac_cv_type_long_long_int+:} false; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   ac_cv_type_long_long_int=yes
9725       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9726         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9727         if test $ac_cv_type_long_long_int = yes; then
9728                                         if test "$cross_compiling" = yes; then :
9729   :
9730 else
9731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h.  */
9733 #include <limits.h>
9734                  #ifndef LLONG_MAX
9735                  # define HALF \
9736                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9737                  # define LLONG_MAX (HALF - 1 + HALF)
9738                  #endif
9739 int
9740 main ()
9741 {
9742 long long int n = 1;
9743                  int i;
9744                  for (i = 0; ; i++)
9745                    {
9746                      long long int m = n << i;
9747                      if (m >> i != n)
9748                        return 1;
9749                      if (LLONG_MAX / 2 < m)
9750                        break;
9751                    }
9752                  return 0;
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 if ac_fn_c_try_run "$LINENO"; then :
9758
9759 else
9760   ac_cv_type_long_long_int=no
9761 fi
9762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9763   conftest.$ac_objext conftest.beam conftest.$ac_ext
9764 fi
9765
9766         fi
9767       fi
9768 fi
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9770 $as_echo "$ac_cv_type_long_long_int" >&6; }
9771   if test $ac_cv_type_long_long_int = yes; then
9772
9773 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9774
9775   fi
9776
9777
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9779 $as_echo_n "checking for wchar_t... " >&6; }
9780 if ${gt_cv_c_wchar_t+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h.  */
9785 #include <stddef.h>
9786             wchar_t foo = (wchar_t)'\0';
9787 int
9788 main ()
9789 {
9790
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_compile "$LINENO"; then :
9796   gt_cv_c_wchar_t=yes
9797 else
9798   gt_cv_c_wchar_t=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9803 $as_echo "$gt_cv_c_wchar_t" >&6; }
9804   if test $gt_cv_c_wchar_t = yes; then
9805
9806 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9807
9808   fi
9809
9810
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9812 $as_echo_n "checking for wint_t... " >&6; }
9813 if ${gt_cv_c_wint_t+:} false; then :
9814   $as_echo_n "(cached) " >&6
9815 else
9816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h.  */
9818
9819 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9820    <wchar.h>.
9821    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9822    before <wchar.h>.  */
9823 #include <stddef.h>
9824 #include <stdio.h>
9825 #include <time.h>
9826 #include <wchar.h>
9827             wint_t foo = (wchar_t)'\0';
9828 int
9829 main ()
9830 {
9831
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_c_try_compile "$LINENO"; then :
9837   gt_cv_c_wint_t=yes
9838 else
9839   gt_cv_c_wint_t=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9844 $as_echo "$gt_cv_c_wint_t" >&6; }
9845   if test $gt_cv_c_wint_t = yes; then
9846
9847 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9848
9849   fi
9850
9851
9852
9853
9854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9855 $as_echo_n "checking for intmax_t... " >&6; }
9856 if ${gt_cv_c_intmax_t+:} false; then :
9857   $as_echo_n "(cached) " >&6
9858 else
9859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h.  */
9861
9862 #include <stddef.h>
9863 #include <stdlib.h>
9864 #if HAVE_STDINT_H_WITH_UINTMAX
9865 #include <stdint.h>
9866 #endif
9867 #if HAVE_INTTYPES_H_WITH_UINTMAX
9868 #include <inttypes.h>
9869 #endif
9870
9871 int
9872 main ()
9873 {
9874 intmax_t x = -1;
9875             return !x;
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_compile "$LINENO"; then :
9881   gt_cv_c_intmax_t=yes
9882 else
9883   gt_cv_c_intmax_t=no
9884 fi
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9888 $as_echo "$gt_cv_c_intmax_t" >&6; }
9889   if test $gt_cv_c_intmax_t = yes; then
9890
9891 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9892
9893   fi
9894
9895
9896
9897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9898 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9899 if ${gt_cv_func_printf_posix+:} false; then :
9900   $as_echo_n "(cached) " >&6
9901 else
9902
9903       if test "$cross_compiling" = yes; then :
9904
9905           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h.  */
9907
9908 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9909   notposix
9910 #endif
9911
9912 _ACEOF
9913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9914   $EGREP "notposix" >/dev/null 2>&1; then :
9915   gt_cv_func_printf_posix="guessing no"
9916 else
9917   gt_cv_func_printf_posix="guessing yes"
9918 fi
9919 rm -f conftest*
9920
9921
9922 else
9923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h.  */
9925
9926 #include <stdio.h>
9927 #include <string.h>
9928 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9929    dollar expansion (possibly an autoconf bug).  */
9930 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9931 static char buf[100];
9932 int main ()
9933 {
9934   sprintf (buf, format, 33, 55);
9935   return (strcmp (buf, "55 33") != 0);
9936 }
9937 _ACEOF
9938 if ac_fn_c_try_run "$LINENO"; then :
9939   gt_cv_func_printf_posix=yes
9940 else
9941   gt_cv_func_printf_posix=no
9942 fi
9943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9944   conftest.$ac_objext conftest.beam conftest.$ac_ext
9945 fi
9946
9947
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9950 $as_echo "$gt_cv_func_printf_posix" >&6; }
9951   case $gt_cv_func_printf_posix in
9952     *yes)
9953
9954 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9955
9956       ;;
9957   esac
9958
9959
9960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9961 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9962 if ${ac_cv_gnu_library_2_1+:} false; then :
9963   $as_echo_n "(cached) " >&6
9964 else
9965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h.  */
9967
9968 #include <features.h>
9969 #ifdef __GNU_LIBRARY__
9970  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9971   Lucky GNU user
9972  #endif
9973 #endif
9974 #ifdef __UCLIBC__
9975  Lucky user
9976 #endif
9977
9978 _ACEOF
9979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9980   $EGREP "Lucky" >/dev/null 2>&1; then :
9981   ac_cv_gnu_library_2_1=yes
9982 else
9983   ac_cv_gnu_library_2_1=no
9984 fi
9985 rm -f conftest*
9986
9987
9988
9989 fi
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9991 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9992
9993     GLIBC21="$ac_cv_gnu_library_2_1"
9994
9995
9996
9997   for ac_header in stdint.h
9998 do :
9999   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10000 if test "x$ac_cv_header_stdint_h" = xyes; then :
10001   cat >>confdefs.h <<_ACEOF
10002 #define HAVE_STDINT_H 1
10003 _ACEOF
10004
10005 fi
10006
10007 done
10008
10009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10010 $as_echo_n "checking for SIZE_MAX... " >&6; }
10011 if ${gl_cv_size_max+:} false; then :
10012   $as_echo_n "(cached) " >&6
10013 else
10014
10015     gl_cv_size_max=
10016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h.  */
10018
10019 #include <limits.h>
10020 #if HAVE_STDINT_H
10021 #include <stdint.h>
10022 #endif
10023 #ifdef SIZE_MAX
10024 Found it
10025 #endif
10026
10027 _ACEOF
10028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10029   $EGREP "Found it" >/dev/null 2>&1; then :
10030   gl_cv_size_max=yes
10031 fi
10032 rm -f conftest*
10033
10034     if test -z "$gl_cv_size_max"; then
10035                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10036 #include <limits.h>"; then :
10037
10038 else
10039   size_t_bits_minus_1=
10040 fi
10041
10042       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10043
10044 else
10045   fits_in_uint=
10046 fi
10047
10048       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10049         if test $fits_in_uint = 1; then
10050                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h.  */
10052 #include <stddef.h>
10053                  extern size_t foo;
10054                  extern unsigned long foo;
10055
10056 int
10057 main ()
10058 {
10059
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065   fits_in_uint=0
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068         fi
10069                                 if test $fits_in_uint = 1; then
10070           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10071         else
10072           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10073         fi
10074       else
10075                 gl_cv_size_max='((size_t)~(size_t)0)'
10076       fi
10077     fi
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10081 $as_echo "$gl_cv_size_max" >&6; }
10082   if test "$gl_cv_size_max" != yes; then
10083
10084 cat >>confdefs.h <<_ACEOF
10085 #define SIZE_MAX $gl_cv_size_max
10086 _ACEOF
10087
10088   fi
10089
10090
10091
10092
10093   for ac_header in stdint.h
10094 do :
10095   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10096 if test "x$ac_cv_header_stdint_h" = xyes; then :
10097   cat >>confdefs.h <<_ACEOF
10098 #define HAVE_STDINT_H 1
10099 _ACEOF
10100
10101 fi
10102
10103 done
10104
10105
10106
10107
10108
10109   for ac_func in $ac_func_list
10110 do :
10111   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10114   cat >>confdefs.h <<_ACEOF
10115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10116 _ACEOF
10117
10118 fi
10119 done
10120
10121
10122
10123
10124
10125
10126
10127
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10129 $as_echo_n "checking for working fcntl.h... " >&6; }
10130 if ${gl_cv_header_working_fcntl_h+:} false; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133   if test "$cross_compiling" = yes; then :
10134   gl_cv_header_working_fcntl_h=cross-compiling
10135 else
10136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h.  */
10138 #include <sys/types.h>
10139            #include <sys/stat.h>
10140            #if HAVE_UNISTD_H
10141            # include <unistd.h>
10142            #else /* on Windows with MSVC */
10143            # include <io.h>
10144            # include <stdlib.h>
10145            # defined sleep(n) _sleep ((n) * 1000)
10146            #endif
10147            #include <fcntl.h>
10148            #ifndef O_NOATIME
10149             #define O_NOATIME 0
10150            #endif
10151            #ifndef O_NOFOLLOW
10152             #define O_NOFOLLOW 0
10153            #endif
10154            static int const constants[] =
10155             {
10156               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10157               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10158             };
10159
10160 int
10161 main ()
10162 {
10163
10164             int result = !constants;
10165             #if HAVE_SYMLINK
10166             {
10167               static char const sym[] = "conftest.sym";
10168               if (symlink ("/dev/null", sym) != 0)
10169                 result |= 2;
10170               else
10171                 {
10172                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10173                   if (fd >= 0)
10174                     {
10175                       close (fd);
10176                       result |= 4;
10177                     }
10178                 }
10179               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10180                 result |= 2;
10181               else
10182                 {
10183                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10184                   if (fd >= 0)
10185                     {
10186                       close (fd);
10187                       result |= 4;
10188                     }
10189                 }
10190               unlink (sym);
10191             }
10192             #endif
10193             {
10194               static char const file[] = "confdefs.h";
10195               int fd = open (file, O_RDONLY | O_NOATIME);
10196               if (fd < 0)
10197                 result |= 8;
10198               else
10199                 {
10200                   struct stat st0;
10201                   if (fstat (fd, &st0) != 0)
10202                     result |= 16;
10203                   else
10204                     {
10205                       char c;
10206                       sleep (1);
10207                       if (read (fd, &c, 1) != 1)
10208                         result |= 24;
10209                       else
10210                         {
10211                           if (close (fd) != 0)
10212                             result |= 32;
10213                           else
10214                             {
10215                               struct stat st1;
10216                               if (stat (file, &st1) != 0)
10217                                 result |= 40;
10218                               else
10219                                 if (st0.st_atime != st1.st_atime)
10220                                   result |= 64;
10221                             }
10222                         }
10223                     }
10224                 }
10225             }
10226             return result;
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_run "$LINENO"; then :
10232   gl_cv_header_working_fcntl_h=yes
10233 else
10234   case $? in #(
10235         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10236         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10237         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10238          *) gl_cv_header_working_fcntl_h='no';;
10239         esac
10240 fi
10241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10242   conftest.$ac_objext conftest.beam conftest.$ac_ext
10243 fi
10244
10245 fi
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10247 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10248
10249   case $gl_cv_header_working_fcntl_h in #(
10250   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10251   *) ac_val=1;;
10252   esac
10253
10254 cat >>confdefs.h <<_ACEOF
10255 #define HAVE_WORKING_O_NOATIME $ac_val
10256 _ACEOF
10257
10258
10259   case $gl_cv_header_working_fcntl_h in #(
10260   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10261   *) ac_val=1;;
10262   esac
10263
10264 cat >>confdefs.h <<_ACEOF
10265 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10266 _ACEOF
10267
10268
10269
10270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10271 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10272 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   gt_save_LIBS="$LIBS"
10276      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10277      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h.  */
10279 #include <CoreFoundation/CFPreferences.h>
10280 int
10281 main ()
10282 {
10283 CFPreferencesCopyAppValue(NULL, NULL)
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 if ac_fn_c_try_link "$LINENO"; then :
10289   gt_cv_func_CFPreferencesCopyAppValue=yes
10290 else
10291   gt_cv_func_CFPreferencesCopyAppValue=no
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext \
10294     conftest$ac_exeext conftest.$ac_ext
10295      LIBS="$gt_save_LIBS"
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10298 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10299   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10300
10301 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10302
10303   fi
10304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10305 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10306 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10307   $as_echo_n "(cached) " >&6
10308 else
10309   gt_save_LIBS="$LIBS"
10310      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h.  */
10313 #include <CoreFoundation/CFLocale.h>
10314 int
10315 main ()
10316 {
10317 CFLocaleCopyCurrent();
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323   gt_cv_func_CFLocaleCopyCurrent=yes
10324 else
10325   gt_cv_func_CFLocaleCopyCurrent=no
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328     conftest$ac_exeext conftest.$ac_ext
10329      LIBS="$gt_save_LIBS"
10330 fi
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10332 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10333   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10334
10335 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10336
10337   fi
10338   INTL_MACOSX_LIBS=
10339   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10340     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10341   fi
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352     case "$enable_silent_rules" in
10353     yes) INTL_DEFAULT_VERBOSITY=0;;
10354     no)  INTL_DEFAULT_VERBOSITY=1;;
10355     *)   INTL_DEFAULT_VERBOSITY=1;;
10356   esac
10357
10358
10359   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10360 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10361
10362 else
10363
10364 $as_echo "#define ptrdiff_t long" >>confdefs.h
10365
10366
10367 fi
10368
10369   for ac_header in features.h stddef.h stdlib.h string.h
10370 do :
10371   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10374   cat >>confdefs.h <<_ACEOF
10375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376 _ACEOF
10377
10378 fi
10379
10380 done
10381
10382   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10383     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10384 do :
10385   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10387 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10388   cat >>confdefs.h <<_ACEOF
10389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10390 _ACEOF
10391
10392 fi
10393 done
10394
10395
10396       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10397 "
10398 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10399   ac_have_decl=1
10400 else
10401   ac_have_decl=0
10402 fi
10403
10404 cat >>confdefs.h <<_ACEOF
10405 #define HAVE_DECL__SNPRINTF $ac_have_decl
10406 _ACEOF
10407 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10408 "
10409 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10410   ac_have_decl=1
10411 else
10412   ac_have_decl=0
10413 fi
10414
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10417 _ACEOF
10418
10419
10420           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10421 "
10422 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10423   ac_have_decl=1
10424 else
10425   ac_have_decl=0
10426 fi
10427
10428 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10430 _ACEOF
10431
10432
10433   case $gt_cv_func_printf_posix in
10434     *yes) HAVE_POSIX_PRINTF=1 ;;
10435     *) HAVE_POSIX_PRINTF=0 ;;
10436   esac
10437
10438   if test "$ac_cv_func_asprintf" = yes; then
10439     HAVE_ASPRINTF=1
10440   else
10441     HAVE_ASPRINTF=0
10442   fi
10443
10444   if test "$ac_cv_func_snprintf" = yes; then
10445     HAVE_SNPRINTF=1
10446   else
10447     HAVE_SNPRINTF=0
10448   fi
10449
10450   if test "$ac_cv_func_newlocale" = yes; then
10451     HAVE_NEWLOCALE=1
10452   else
10453     HAVE_NEWLOCALE=0
10454   fi
10455
10456   if test "$ac_cv_func_wprintf" = yes; then
10457     HAVE_WPRINTF=1
10458   else
10459     HAVE_WPRINTF=0
10460   fi
10461
10462
10463
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10465 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10466 if ${am_cv_langinfo_codeset+:} false; then :
10467   $as_echo_n "(cached) " >&6
10468 else
10469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h.  */
10471 #include <langinfo.h>
10472 int
10473 main ()
10474 {
10475 char* cs = nl_langinfo(CODESET); return !cs;
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481   am_cv_langinfo_codeset=yes
10482 else
10483   am_cv_langinfo_codeset=no
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext \
10486     conftest$ac_exeext conftest.$ac_ext
10487
10488 fi
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10490 $as_echo "$am_cv_langinfo_codeset" >&6; }
10491   if test $am_cv_langinfo_codeset = yes; then
10492
10493 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10494
10495   fi
10496
10497
10498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10499 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10500 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10501   $as_echo_n "(cached) " >&6
10502 else
10503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h.  */
10505 #include <locale.h>
10506 int
10507 main ()
10508 {
10509 return LC_MESSAGES
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515   gt_cv_val_LC_MESSAGES=yes
10516 else
10517   gt_cv_val_LC_MESSAGES=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext \
10520     conftest$ac_exeext conftest.$ac_ext
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10523 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10524   if test $gt_cv_val_LC_MESSAGES = yes; then
10525
10526 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10527
10528   fi
10529
10530
10531                 if test "$enable_shared" = yes; then
10532     case "$host_os" in
10533       mingw* | cygwin*) is_woe32dll=yes ;;
10534       *) is_woe32dll=no ;;
10535     esac
10536   else
10537     is_woe32dll=no
10538   fi
10539   WOE32DLL=$is_woe32dll
10540
10541
10542       case "$host_os" in
10543     mingw* | cygwin*) is_woe32=yes ;;
10544     *) is_woe32=no ;;
10545   esac
10546   WOE32=$is_woe32
10547
10548   if test $WOE32 = yes; then
10549         if test -n "$ac_tool_prefix"; then
10550   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10551 set dummy ${ac_tool_prefix}windres; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_prog_WINDRES+:} false; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   if test -n "$WINDRES"; then
10558   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10559 else
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574
10575 fi
10576 fi
10577 WINDRES=$ac_cv_prog_WINDRES
10578 if test -n "$WINDRES"; then
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10580 $as_echo "$WINDRES" >&6; }
10581 else
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585
10586
10587 fi
10588 if test -z "$ac_cv_prog_WINDRES"; then
10589   ac_ct_WINDRES=$WINDRES
10590   # Extract the first word of "windres", so it can be a program name with args.
10591 set dummy windres; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   if test -n "$ac_ct_WINDRES"; then
10598   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10599 else
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10602 do
10603   IFS=$as_save_IFS
10604   test -z "$as_dir" && as_dir=.
10605     for ac_exec_ext in '' $ac_executable_extensions; do
10606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607     ac_cv_prog_ac_ct_WINDRES="windres"
10608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609     break 2
10610   fi
10611 done
10612   done
10613 IFS=$as_save_IFS
10614
10615 fi
10616 fi
10617 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10618 if test -n "$ac_ct_WINDRES"; then
10619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10620 $as_echo "$ac_ct_WINDRES" >&6; }
10621 else
10622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10624 fi
10625
10626   if test "x$ac_ct_WINDRES" = x; then
10627     WINDRES=""
10628   else
10629     case $cross_compiling:$ac_tool_warned in
10630 yes:)
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10633 ac_tool_warned=yes ;;
10634 esac
10635     WINDRES=$ac_ct_WINDRES
10636   fi
10637 else
10638   WINDRES="$ac_cv_prog_WINDRES"
10639 fi
10640
10641   fi
10642
10643               case "$host_os" in
10644     hpux*) LTLIBC="" ;;
10645     *)     LTLIBC="-lc" ;;
10646   esac
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10675 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10676 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   gt_save_LIBS="$LIBS"
10680      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10681      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683 #include <CoreFoundation/CFPreferences.h>
10684 int
10685 main ()
10686 {
10687 CFPreferencesCopyAppValue(NULL, NULL)
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693   gt_cv_func_CFPreferencesCopyAppValue=yes
10694 else
10695   gt_cv_func_CFPreferencesCopyAppValue=no
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698     conftest$ac_exeext conftest.$ac_ext
10699      LIBS="$gt_save_LIBS"
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10702 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10703   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10704
10705 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10706
10707   fi
10708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10709 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10710 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10711   $as_echo_n "(cached) " >&6
10712 else
10713   gt_save_LIBS="$LIBS"
10714      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10715      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h.  */
10717 #include <CoreFoundation/CFLocale.h>
10718 int
10719 main ()
10720 {
10721 CFLocaleCopyCurrent();
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727   gt_cv_func_CFLocaleCopyCurrent=yes
10728 else
10729   gt_cv_func_CFLocaleCopyCurrent=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext \
10732     conftest$ac_exeext conftest.$ac_ext
10733      LIBS="$gt_save_LIBS"
10734 fi
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10736 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10737   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10738
10739 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10740
10741   fi
10742   INTL_MACOSX_LIBS=
10743   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10744     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10745   fi
10746
10747
10748
10749
10750
10751
10752     BUILD_INCLUDED_LIBINTL=no
10753     USE_INCLUDED_LIBINTL=no
10754
10755   LIBINTL=
10756   LTLIBINTL=
10757   POSUB=
10758
10759     case " $gt_needs " in
10760     *" need-formatstring-macros "*) gt_api_version=3 ;;
10761     *" need-ngettext "*) gt_api_version=2 ;;
10762     *) gt_api_version=1 ;;
10763   esac
10764   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10765   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10766
10767     if test "$USE_NLS" = "yes"; then
10768     gt_use_preinstalled_gnugettext=no
10769
10770       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10771 $as_echo_n "checking whether included gettext is requested... " >&6; }
10772
10773 # Check whether --with-included-gettext was given.
10774 if test "${with_included_gettext+set}" = set; then :
10775   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10776 else
10777   nls_cv_force_use_gnu_gettext=no
10778 fi
10779
10780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10781 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10782
10783       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10784       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10785
10786
10787         if test $gt_api_version -ge 3; then
10788           gt_revision_test_code='
10789 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10790 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10791 #endif
10792 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10793 '
10794         else
10795           gt_revision_test_code=
10796         fi
10797         if test $gt_api_version -ge 2; then
10798           gt_expression_test_code=' + * ngettext ("", "", 0)'
10799         else
10800           gt_expression_test_code=
10801         fi
10802
10803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10804 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10805 if eval \${$gt_func_gnugettext_libc+:} false; then :
10806   $as_echo_n "(cached) " >&6
10807 else
10808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h.  */
10810
10811 #include <libintl.h>
10812 $gt_revision_test_code
10813 extern int _nl_msg_cat_cntr;
10814 extern int *_nl_domain_bindings;
10815
10816 int
10817 main ()
10818 {
10819
10820 bindtextdomain ("", "");
10821 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10822
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828   eval "$gt_func_gnugettext_libc=yes"
10829 else
10830   eval "$gt_func_gnugettext_libc=no"
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833     conftest$ac_exeext conftest.$ac_ext
10834 fi
10835 eval ac_res=\$$gt_func_gnugettext_libc
10836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10837 $as_echo "$ac_res" >&6; }
10838
10839         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10840
10841
10842
10843
10844
10845
10846
10847
10848     use_additional=yes
10849
10850   acl_save_prefix="$prefix"
10851   prefix="$acl_final_prefix"
10852   acl_save_exec_prefix="$exec_prefix"
10853   exec_prefix="$acl_final_exec_prefix"
10854
10855     eval additional_includedir=\"$includedir\"
10856     eval additional_libdir=\"$libdir\"
10857
10858   exec_prefix="$acl_save_exec_prefix"
10859   prefix="$acl_save_prefix"
10860
10861
10862 # Check whether --with-libintl-prefix was given.
10863 if test "${with_libintl_prefix+set}" = set; then :
10864   withval=$with_libintl_prefix;
10865     if test "X$withval" = "Xno"; then
10866       use_additional=no
10867     else
10868       if test "X$withval" = "X"; then
10869
10870   acl_save_prefix="$prefix"
10871   prefix="$acl_final_prefix"
10872   acl_save_exec_prefix="$exec_prefix"
10873   exec_prefix="$acl_final_exec_prefix"
10874
10875           eval additional_includedir=\"$includedir\"
10876           eval additional_libdir=\"$libdir\"
10877
10878   exec_prefix="$acl_save_exec_prefix"
10879   prefix="$acl_save_prefix"
10880
10881       else
10882         additional_includedir="$withval/include"
10883         additional_libdir="$withval/$acl_libdirstem"
10884         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10885            && ! test -d "$withval/$acl_libdirstem"; then
10886           additional_libdir="$withval/$acl_libdirstem2"
10887         fi
10888       fi
10889     fi
10890
10891 fi
10892
10893       LIBINTL=
10894   LTLIBINTL=
10895   INCINTL=
10896   LIBINTL_PREFIX=
10897       HAVE_LIBINTL=
10898   rpathdirs=
10899   ltrpathdirs=
10900   names_already_handled=
10901   names_next_round='intl '
10902   while test -n "$names_next_round"; do
10903     names_this_round="$names_next_round"
10904     names_next_round=
10905     for name in $names_this_round; do
10906       already_handled=
10907       for n in $names_already_handled; do
10908         if test "$n" = "$name"; then
10909           already_handled=yes
10910           break
10911         fi
10912       done
10913       if test -z "$already_handled"; then
10914         names_already_handled="$names_already_handled $name"
10915                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10916         eval value=\"\$HAVE_LIB$uppername\"
10917         if test -n "$value"; then
10918           if test "$value" = yes; then
10919             eval value=\"\$LIB$uppername\"
10920             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10921             eval value=\"\$LTLIB$uppername\"
10922             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10923           else
10924                                     :
10925           fi
10926         else
10927                               found_dir=
10928           found_la=
10929           found_so=
10930           found_a=
10931           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10932           if test -n "$acl_shlibext"; then
10933             shrext=".$acl_shlibext"             # typically: shrext=.so
10934           else
10935             shrext=
10936           fi
10937           if test $use_additional = yes; then
10938             dir="$additional_libdir"
10939                                     if test -n "$acl_shlibext"; then
10940               if test -f "$dir/$libname$shrext"; then
10941                 found_dir="$dir"
10942                 found_so="$dir/$libname$shrext"
10943               else
10944                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10945                   ver=`(cd "$dir" && \
10946                         for f in "$libname$shrext".*; do echo "$f"; done \
10947                         | sed -e "s,^$libname$shrext\\\\.,," \
10948                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10949                         | sed 1q ) 2>/dev/null`
10950                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10951                     found_dir="$dir"
10952                     found_so="$dir/$libname$shrext.$ver"
10953                   fi
10954                 else
10955                   eval library_names=\"$acl_library_names_spec\"
10956                   for f in $library_names; do
10957                     if test -f "$dir/$f"; then
10958                       found_dir="$dir"
10959                       found_so="$dir/$f"
10960                       break
10961                     fi
10962                   done
10963                 fi
10964               fi
10965             fi
10966                         if test "X$found_dir" = "X"; then
10967               if test -f "$dir/$libname.$acl_libext"; then
10968                 found_dir="$dir"
10969                 found_a="$dir/$libname.$acl_libext"
10970               fi
10971             fi
10972             if test "X$found_dir" != "X"; then
10973               if test -f "$dir/$libname.la"; then
10974                 found_la="$dir/$libname.la"
10975               fi
10976             fi
10977           fi
10978           if test "X$found_dir" = "X"; then
10979             for x in $LDFLAGS $LTLIBINTL; do
10980
10981   acl_save_prefix="$prefix"
10982   prefix="$acl_final_prefix"
10983   acl_save_exec_prefix="$exec_prefix"
10984   exec_prefix="$acl_final_exec_prefix"
10985   eval x=\"$x\"
10986   exec_prefix="$acl_save_exec_prefix"
10987   prefix="$acl_save_prefix"
10988
10989               case "$x" in
10990                 -L*)
10991                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10992                                     if test -n "$acl_shlibext"; then
10993                     if test -f "$dir/$libname$shrext"; then
10994                       found_dir="$dir"
10995                       found_so="$dir/$libname$shrext"
10996                     else
10997                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10998                         ver=`(cd "$dir" && \
10999                               for f in "$libname$shrext".*; do echo "$f"; done \
11000                               | sed -e "s,^$libname$shrext\\\\.,," \
11001                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11002                               | sed 1q ) 2>/dev/null`
11003                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11004                           found_dir="$dir"
11005                           found_so="$dir/$libname$shrext.$ver"
11006                         fi
11007                       else
11008                         eval library_names=\"$acl_library_names_spec\"
11009                         for f in $library_names; do
11010                           if test -f "$dir/$f"; then
11011                             found_dir="$dir"
11012                             found_so="$dir/$f"
11013                             break
11014                           fi
11015                         done
11016                       fi
11017                     fi
11018                   fi
11019                                     if test "X$found_dir" = "X"; then
11020                     if test -f "$dir/$libname.$acl_libext"; then
11021                       found_dir="$dir"
11022                       found_a="$dir/$libname.$acl_libext"
11023                     fi
11024                   fi
11025                   if test "X$found_dir" != "X"; then
11026                     if test -f "$dir/$libname.la"; then
11027                       found_la="$dir/$libname.la"
11028                     fi
11029                   fi
11030                   ;;
11031               esac
11032               if test "X$found_dir" != "X"; then
11033                 break
11034               fi
11035             done
11036           fi
11037           if test "X$found_dir" != "X"; then
11038                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11039             if test "X$found_so" != "X"; then
11040                                                         if test "$enable_rpath" = no \
11041                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11042                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11043                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11044               else
11045                                                                                 haveit=
11046                 for x in $ltrpathdirs; do
11047                   if test "X$x" = "X$found_dir"; then
11048                     haveit=yes
11049                     break
11050                   fi
11051                 done
11052                 if test -z "$haveit"; then
11053                   ltrpathdirs="$ltrpathdirs $found_dir"
11054                 fi
11055                                 if test "$acl_hardcode_direct" = yes; then
11056                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11057                 else
11058                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11059                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11060                                                             haveit=
11061                     for x in $rpathdirs; do
11062                       if test "X$x" = "X$found_dir"; then
11063                         haveit=yes
11064                         break
11065                       fi
11066                     done
11067                     if test -z "$haveit"; then
11068                       rpathdirs="$rpathdirs $found_dir"
11069                     fi
11070                   else
11071                                                                                 haveit=
11072                     for x in $LDFLAGS $LIBINTL; do
11073
11074   acl_save_prefix="$prefix"
11075   prefix="$acl_final_prefix"
11076   acl_save_exec_prefix="$exec_prefix"
11077   exec_prefix="$acl_final_exec_prefix"
11078   eval x=\"$x\"
11079   exec_prefix="$acl_save_exec_prefix"
11080   prefix="$acl_save_prefix"
11081
11082                       if test "X$x" = "X-L$found_dir"; then
11083                         haveit=yes
11084                         break
11085                       fi
11086                     done
11087                     if test -z "$haveit"; then
11088                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11089                     fi
11090                     if test "$acl_hardcode_minus_L" != no; then
11091                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11092                     else
11093                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11094                     fi
11095                   fi
11096                 fi
11097               fi
11098             else
11099               if test "X$found_a" != "X"; then
11100                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11101               else
11102                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11103               fi
11104             fi
11105                         additional_includedir=
11106             case "$found_dir" in
11107               */$acl_libdirstem | */$acl_libdirstem/)
11108                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11109                 if test "$name" = 'intl'; then
11110                   LIBINTL_PREFIX="$basedir"
11111                 fi
11112                 additional_includedir="$basedir/include"
11113                 ;;
11114               */$acl_libdirstem2 | */$acl_libdirstem2/)
11115                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11116                 if test "$name" = 'intl'; then
11117                   LIBINTL_PREFIX="$basedir"
11118                 fi
11119                 additional_includedir="$basedir/include"
11120                 ;;
11121             esac
11122             if test "X$additional_includedir" != "X"; then
11123                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11124                 haveit=
11125                 if test "X$additional_includedir" = "X/usr/local/include"; then
11126                   if test -n "$GCC"; then
11127                     case $host_os in
11128                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11129                     esac
11130                   fi
11131                 fi
11132                 if test -z "$haveit"; then
11133                   for x in $CPPFLAGS $INCINTL; do
11134
11135   acl_save_prefix="$prefix"
11136   prefix="$acl_final_prefix"
11137   acl_save_exec_prefix="$exec_prefix"
11138   exec_prefix="$acl_final_exec_prefix"
11139   eval x=\"$x\"
11140   exec_prefix="$acl_save_exec_prefix"
11141   prefix="$acl_save_prefix"
11142
11143                     if test "X$x" = "X-I$additional_includedir"; then
11144                       haveit=yes
11145                       break
11146                     fi
11147                   done
11148                   if test -z "$haveit"; then
11149                     if test -d "$additional_includedir"; then
11150                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11151                     fi
11152                   fi
11153                 fi
11154               fi
11155             fi
11156                         if test -n "$found_la"; then
11157                                                         save_libdir="$libdir"
11158               case "$found_la" in
11159                 */* | *\\*) . "$found_la" ;;
11160                 *) . "./$found_la" ;;
11161               esac
11162               libdir="$save_libdir"
11163                             for dep in $dependency_libs; do
11164                 case "$dep" in
11165                   -L*)
11166                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11167                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11168                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11169                       haveit=
11170                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11171                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11172                         if test -n "$GCC"; then
11173                           case $host_os in
11174                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11175                           esac
11176                         fi
11177                       fi
11178                       if test -z "$haveit"; then
11179                         haveit=
11180                         for x in $LDFLAGS $LIBINTL; do
11181
11182   acl_save_prefix="$prefix"
11183   prefix="$acl_final_prefix"
11184   acl_save_exec_prefix="$exec_prefix"
11185   exec_prefix="$acl_final_exec_prefix"
11186   eval x=\"$x\"
11187   exec_prefix="$acl_save_exec_prefix"
11188   prefix="$acl_save_prefix"
11189
11190                           if test "X$x" = "X-L$additional_libdir"; then
11191                             haveit=yes
11192                             break
11193                           fi
11194                         done
11195                         if test -z "$haveit"; then
11196                           if test -d "$additional_libdir"; then
11197                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11198                           fi
11199                         fi
11200                         haveit=
11201                         for x in $LDFLAGS $LTLIBINTL; do
11202
11203   acl_save_prefix="$prefix"
11204   prefix="$acl_final_prefix"
11205   acl_save_exec_prefix="$exec_prefix"
11206   exec_prefix="$acl_final_exec_prefix"
11207   eval x=\"$x\"
11208   exec_prefix="$acl_save_exec_prefix"
11209   prefix="$acl_save_prefix"
11210
11211                           if test "X$x" = "X-L$additional_libdir"; then
11212                             haveit=yes
11213                             break
11214                           fi
11215                         done
11216                         if test -z "$haveit"; then
11217                           if test -d "$additional_libdir"; then
11218                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11219                           fi
11220                         fi
11221                       fi
11222                     fi
11223                     ;;
11224                   -R*)
11225                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11226                     if test "$enable_rpath" != no; then
11227                                                                   haveit=
11228                       for x in $rpathdirs; do
11229                         if test "X$x" = "X$dir"; then
11230                           haveit=yes
11231                           break
11232                         fi
11233                       done
11234                       if test -z "$haveit"; then
11235                         rpathdirs="$rpathdirs $dir"
11236                       fi
11237                                                                   haveit=
11238                       for x in $ltrpathdirs; do
11239                         if test "X$x" = "X$dir"; then
11240                           haveit=yes
11241                           break
11242                         fi
11243                       done
11244                       if test -z "$haveit"; then
11245                         ltrpathdirs="$ltrpathdirs $dir"
11246                       fi
11247                     fi
11248                     ;;
11249                   -l*)
11250                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11251                     ;;
11252                   *.la)
11253                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11254                     ;;
11255                   *)
11256                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11257                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11258                     ;;
11259                 esac
11260               done
11261             fi
11262           else
11263                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11264             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11265           fi
11266         fi
11267       fi
11268     done
11269   done
11270   if test "X$rpathdirs" != "X"; then
11271     if test -n "$acl_hardcode_libdir_separator"; then
11272                         alldirs=
11273       for found_dir in $rpathdirs; do
11274         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11275       done
11276             acl_save_libdir="$libdir"
11277       libdir="$alldirs"
11278       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11279       libdir="$acl_save_libdir"
11280       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11281     else
11282             for found_dir in $rpathdirs; do
11283         acl_save_libdir="$libdir"
11284         libdir="$found_dir"
11285         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11286         libdir="$acl_save_libdir"
11287         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11288       done
11289     fi
11290   fi
11291   if test "X$ltrpathdirs" != "X"; then
11292             for found_dir in $ltrpathdirs; do
11293       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11294     done
11295   fi
11296
11297
11298
11299
11300
11301
11302           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11303 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11304 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   gt_save_CPPFLAGS="$CPPFLAGS"
11308             CPPFLAGS="$CPPFLAGS $INCINTL"
11309             gt_save_LIBS="$LIBS"
11310             LIBS="$LIBS $LIBINTL"
11311                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h.  */
11313
11314 #include <libintl.h>
11315 $gt_revision_test_code
11316 extern int _nl_msg_cat_cntr;
11317 extern
11318 #ifdef __cplusplus
11319 "C"
11320 #endif
11321 const char *_nl_expand_alias (const char *);
11322
11323 int
11324 main ()
11325 {
11326
11327 bindtextdomain ("", "");
11328 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11329
11330   ;
11331   return 0;
11332 }
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335   eval "$gt_func_gnugettext_libintl=yes"
11336 else
11337   eval "$gt_func_gnugettext_libintl=no"
11338 fi
11339 rm -f core conftest.err conftest.$ac_objext \
11340     conftest$ac_exeext conftest.$ac_ext
11341                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11342               LIBS="$LIBS $LIBICONV"
11343               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h.  */
11345
11346 #include <libintl.h>
11347 $gt_revision_test_code
11348 extern int _nl_msg_cat_cntr;
11349 extern
11350 #ifdef __cplusplus
11351 "C"
11352 #endif
11353 const char *_nl_expand_alias (const char *);
11354
11355 int
11356 main ()
11357 {
11358
11359 bindtextdomain ("", "");
11360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11361
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367   LIBINTL="$LIBINTL $LIBICONV"
11368                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11369                  eval "$gt_func_gnugettext_libintl=yes"
11370
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext \
11373     conftest$ac_exeext conftest.$ac_ext
11374             fi
11375             CPPFLAGS="$gt_save_CPPFLAGS"
11376             LIBS="$gt_save_LIBS"
11377 fi
11378 eval ac_res=\$$gt_func_gnugettext_libintl
11379                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11380 $as_echo "$ac_res" >&6; }
11381         fi
11382
11383                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11384            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11385                 && test "$PACKAGE" != gettext-runtime \
11386                 && test "$PACKAGE" != gettext-tools; }; then
11387           gt_use_preinstalled_gnugettext=yes
11388         else
11389                     LIBINTL=
11390           LTLIBINTL=
11391           INCINTL=
11392         fi
11393
11394
11395         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11396                               nls_cv_use_gnu_gettext=yes
11397         fi
11398       fi
11399
11400       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11401                 BUILD_INCLUDED_LIBINTL=yes
11402         USE_INCLUDED_LIBINTL=yes
11403         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11404         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11405         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11406       fi
11407
11408       CATOBJEXT=
11409       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11410          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11411                 CATOBJEXT=.gmo
11412       fi
11413
11414
11415     if test -n "$INTL_MACOSX_LIBS"; then
11416       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11417          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11418                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11419         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11420       fi
11421     fi
11422
11423     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11424        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11425
11426 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11427
11428     else
11429       USE_NLS=no
11430     fi
11431   fi
11432
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11434 $as_echo_n "checking whether to use NLS... " >&6; }
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11436 $as_echo "$USE_NLS" >&6; }
11437   if test "$USE_NLS" = "yes"; then
11438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11439 $as_echo_n "checking where the gettext function comes from... " >&6; }
11440     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11441       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11442         gt_source="external libintl"
11443       else
11444         gt_source="libc"
11445       fi
11446     else
11447       gt_source="included intl directory"
11448     fi
11449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11450 $as_echo "$gt_source" >&6; }
11451   fi
11452
11453   if test "$USE_NLS" = "yes"; then
11454
11455     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11456       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11458 $as_echo_n "checking how to link with libintl... " >&6; }
11459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11460 $as_echo "$LIBINTL" >&6; }
11461
11462   for element in $INCINTL; do
11463     haveit=
11464     for x in $CPPFLAGS; do
11465
11466   acl_save_prefix="$prefix"
11467   prefix="$acl_final_prefix"
11468   acl_save_exec_prefix="$exec_prefix"
11469   exec_prefix="$acl_final_exec_prefix"
11470   eval x=\"$x\"
11471   exec_prefix="$acl_save_exec_prefix"
11472   prefix="$acl_save_prefix"
11473
11474       if test "X$x" = "X$element"; then
11475         haveit=yes
11476         break
11477       fi
11478     done
11479     if test -z "$haveit"; then
11480       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11481     fi
11482   done
11483
11484       fi
11485
11486
11487 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11488
11489
11490 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11491
11492     fi
11493
11494         POSUB=po
11495   fi
11496
11497
11498             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11499       BUILD_INCLUDED_LIBINTL=yes
11500     fi
11501
11502
11503
11504
11505
11506         nls_cv_header_intl=
11507     nls_cv_header_libgt=
11508
11509         DATADIRNAME=share
11510
11511
11512         INSTOBJEXT=.mo
11513
11514
11515         GENCAT=gencat
11516
11517
11518         INTLOBJS=
11519     if test "$USE_INCLUDED_LIBINTL" = yes; then
11520       INTLOBJS="\$(GETTOBJS)"
11521     fi
11522
11523
11524         INTL_LIBTOOL_SUFFIX_PREFIX=
11525
11526
11527
11528     INTLLIBS="$LIBINTL"
11529
11530
11531
11532
11533
11534
11535
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11537 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11538 set x ${MAKE-make}
11539 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11540 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11541   $as_echo_n "(cached) " >&6
11542 else
11543   cat >conftest.make <<\_ACEOF
11544 SHELL = /bin/sh
11545 all:
11546         @echo '@@@%%%=$(MAKE)=@@@%%%'
11547 _ACEOF
11548 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11549 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11550   *@@@%%%=?*=@@@%%%*)
11551     eval ac_cv_prog_make_${ac_make}_set=yes;;
11552   *)
11553     eval ac_cv_prog_make_${ac_make}_set=no;;
11554 esac
11555 rm -f conftest.make
11556 fi
11557 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; }
11560   SET_MAKE=
11561 else
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564   SET_MAKE="MAKE=${MAKE-make}"
11565 fi
11566
11567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11568 $as_echo_n "checking for GNU make... " >&6; }
11569 if ${_cv_gnu_make_command+:} false; then :
11570   $as_echo_n "(cached) " >&6
11571 else
11572   _cv_gnu_make_command='' ;
11573                 if test -n "$FORCE_NATIVE_MAKE" ; then
11574                    MAKES="make"
11575                 else
11576                    MAKES="make gmake gnumake"
11577                 fi
11578                 for a in "$MAKE" $MAKES ; do
11579                         if test -z "$a" ; then continue ; fi ;
11580                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11581                                 _cv_gnu_make_command=$a ;
11582                                 break;
11583                         fi
11584                 done ;
11585
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11588 $as_echo "$_cv_gnu_make_command" >&6; } ;
11589         if test  "x$_cv_gnu_make_command" != "x"  ; then
11590                 ifGNUmake='' ;
11591                 ifNotGNUmake='#' ;
11592         else
11593                 ifGNUmake='#' ;
11594                 ifNotGNUmake='' ;
11595                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11596 $as_echo "\"Not found\"" >&6; };
11597         fi
11598
11599
11600
11601 # Extract the first word of "ln", so it can be a program name with args.
11602 set dummy ln; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if ${ac_cv_path_LN+:} false; then :
11606   $as_echo_n "(cached) " >&6
11607 else
11608   case $LN in
11609   [\\/]* | ?:[\\/]*)
11610   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11611   ;;
11612   *)
11613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616   IFS=$as_save_IFS
11617   test -z "$as_dir" && as_dir=.
11618     for ac_exec_ext in '' $ac_executable_extensions; do
11619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622     break 2
11623   fi
11624 done
11625   done
11626 IFS=$as_save_IFS
11627
11628   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11629   ;;
11630 esac
11631 fi
11632 LN=$ac_cv_path_LN
11633 if test -n "$LN"; then
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11635 $as_echo "$LN" >&6; }
11636 else
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11639 fi
11640
11641
11642
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11644 $as_echo_n "checking whether ln -s works... " >&6; }
11645 LN_S=$as_ln_s
11646 if test "$LN_S" = "ln -s"; then
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11649 else
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11651 $as_echo "no, using $LN_S" >&6; }
11652 fi
11653
11654 # Extract the first word of "mv", so it can be a program name with args.
11655 set dummy mv; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_MV+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   case $MV in
11662   [\\/]* | ?:[\\/]*)
11663   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11664   ;;
11665   *)
11666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678   done
11679 IFS=$as_save_IFS
11680
11681   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11682   ;;
11683 esac
11684 fi
11685 MV=$ac_cv_path_MV
11686 if test -n "$MV"; then
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11688 $as_echo "$MV" >&6; }
11689 else
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693
11694
11695 # Extract the first word of "cp", so it can be a program name with args.
11696 set dummy cp; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_CP+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   case $CP in
11703   [\\/]* | ?:[\\/]*)
11704   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11705   ;;
11706   *)
11707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710   IFS=$as_save_IFS
11711   test -z "$as_dir" && as_dir=.
11712     for ac_exec_ext in '' $ac_executable_extensions; do
11713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716     break 2
11717   fi
11718 done
11719   done
11720 IFS=$as_save_IFS
11721
11722   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11723   ;;
11724 esac
11725 fi
11726 CP=$ac_cv_path_CP
11727 if test -n "$CP"; then
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11729 $as_echo "$CP" >&6; }
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735
11736 # Extract the first word of "rm", so it can be a program name with args.
11737 set dummy rm; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_path_RM+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   case $RM in
11744   [\\/]* | ?:[\\/]*)
11745   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11746   ;;
11747   *)
11748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   test -z "$as_dir" && as_dir=.
11753     for ac_exec_ext in '' $ac_executable_extensions; do
11754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757     break 2
11758   fi
11759 done
11760   done
11761 IFS=$as_save_IFS
11762
11763   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11764   ;;
11765 esac
11766 fi
11767 RM=$ac_cv_path_RM
11768 if test -n "$RM"; then
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11770 $as_echo "$RM" >&6; }
11771 else
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 # Extract the first word of "chmod", so it can be a program name with args.
11778 set dummy chmod; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_path_CHMOD+:} false; then :
11782   $as_echo_n "(cached) " >&6
11783 else
11784   case $CHMOD in
11785   [\\/]* | ?:[\\/]*)
11786   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11787   ;;
11788   *)
11789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11791 do
11792   IFS=$as_save_IFS
11793   test -z "$as_dir" && as_dir=.
11794     for ac_exec_ext in '' $ac_executable_extensions; do
11795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798     break 2
11799   fi
11800 done
11801   done
11802 IFS=$as_save_IFS
11803
11804   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11805   ;;
11806 esac
11807 fi
11808 CHMOD=$ac_cv_path_CHMOD
11809 if test -n "$CHMOD"; then
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11811 $as_echo "$CHMOD" >&6; }
11812 else
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818 for ac_prog in gawk mawk nawk awk
11819 do
11820   # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_AWK+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   if test -n "$AWK"; then
11828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_exec_ext in '' $ac_executable_extensions; do
11836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837     ac_cv_prog_AWK="$ac_prog"
11838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839     break 2
11840   fi
11841 done
11842   done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 AWK=$ac_cv_prog_AWK
11848 if test -n "$AWK"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11850 $as_echo "$AWK" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857   test -n "$AWK" && break
11858 done
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if ${ac_cv_path_EGREP+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866    then ac_cv_path_EGREP="$GREP -E"
11867    else
11868      if test -z "$EGREP"; then
11869   ac_path_EGREP_found=false
11870   # Loop through the user's path and test for each of PROGNAME-LIST
11871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_prog in egrep; do
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879       as_fn_executable_p "$ac_path_EGREP" || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881   # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11883 *GNU*)
11884   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11885 *)
11886   ac_count=0
11887   $as_echo_n 0123456789 >"conftest.in"
11888   while :
11889   do
11890     cat "conftest.in" "conftest.in" >"conftest.tmp"
11891     mv "conftest.tmp" "conftest.in"
11892     cp "conftest.in" "conftest.nl"
11893     $as_echo 'EGREP' >> "conftest.nl"
11894     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896     as_fn_arith $ac_count + 1 && ac_count=$as_val
11897     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898       # Best one so far, save it but keep looking for a better one
11899       ac_cv_path_EGREP="$ac_path_EGREP"
11900       ac_path_EGREP_max=$ac_count
11901     fi
11902     # 10*(2^10) chars as input seems more than enough
11903     test $ac_count -gt 10 && break
11904   done
11905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11906 esac
11907
11908       $ac_path_EGREP_found && break 3
11909     done
11910   done
11911   done
11912 IFS=$as_save_IFS
11913   if test -z "$ac_cv_path_EGREP"; then
11914     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11915   fi
11916 else
11917   ac_cv_path_EGREP=$EGREP
11918 fi
11919
11920    fi
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11923 $as_echo "$ac_cv_path_EGREP" >&6; }
11924  EGREP="$ac_cv_path_EGREP"
11925
11926
11927 # Extract the first word of "sed", so it can be a program name with args.
11928 set dummy sed; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_SED+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   case $SED in
11935   [\\/]* | ?:[\\/]*)
11936   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11937   ;;
11938   *)
11939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11955   ;;
11956 esac
11957 fi
11958 SED=$ac_cv_path_SED
11959 if test -n "$SED"; then
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11961 $as_echo "$SED" >&6; }
11962 else
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967
11968 # Extract the first word of "perl", so it can be a program name with args.
11969 set dummy perl; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_PERL+:} false; then :
11973   $as_echo_n "(cached) " >&6
11974 else
11975   case $PERL in
11976   [\\/]* | ?:[\\/]*)
11977   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11978   ;;
11979   *)
11980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11982 do
11983   IFS=$as_save_IFS
11984   test -z "$as_dir" && as_dir=.
11985     for ac_exec_ext in '' $ac_executable_extensions; do
11986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989     break 2
11990   fi
11991 done
11992   done
11993 IFS=$as_save_IFS
11994
11995   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11996   ;;
11997 esac
11998 fi
11999 PERL=$ac_cv_path_PERL
12000 if test -n "$PERL"; then
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12002 $as_echo "$PERL" >&6; }
12003 else
12004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 fi
12007
12008
12009 # Extract the first word of "ldconfig", so it can be a program name with args.
12010 set dummy ldconfig; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_LDCONFIG+:} false; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   case $LDCONFIG in
12017   [\\/]* | ?:[\\/]*)
12018   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12019   ;;
12020   *)
12021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12023 do
12024   IFS=$as_save_IFS
12025   test -z "$as_dir" && as_dir=.
12026     for ac_exec_ext in '' $ac_executable_extensions; do
12027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030     break 2
12031   fi
12032 done
12033   done
12034 IFS=$as_save_IFS
12035
12036   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12037   ;;
12038 esac
12039 fi
12040 LDCONFIG=$ac_cv_path_LDCONFIG
12041 if test -n "$LDCONFIG"; then
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12043 $as_echo "$LDCONFIG" >&6; }
12044 else
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 if test -n "$ac_tool_prefix"; then
12051   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12052 set dummy ${ac_tool_prefix}ar; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_AR+:} false; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058   if test -n "$AR"; then
12059   ac_cv_prog_AR="$AR" # Let the user override the test.
12060 else
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064   IFS=$as_save_IFS
12065   test -z "$as_dir" && as_dir=.
12066     for ac_exec_ext in '' $ac_executable_extensions; do
12067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068     ac_cv_prog_AR="${ac_tool_prefix}ar"
12069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070     break 2
12071   fi
12072 done
12073   done
12074 IFS=$as_save_IFS
12075
12076 fi
12077 fi
12078 AR=$ac_cv_prog_AR
12079 if test -n "$AR"; then
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12081 $as_echo "$AR" >&6; }
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 fi
12089 if test -z "$ac_cv_prog_AR"; then
12090   ac_ct_AR=$AR
12091   # Extract the first word of "ar", so it can be a program name with args.
12092 set dummy ar; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098   if test -n "$ac_ct_AR"; then
12099   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12100 else
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106     for ac_exec_ext in '' $ac_executable_extensions; do
12107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108     ac_cv_prog_ac_ct_AR="ar"
12109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113   done
12114 IFS=$as_save_IFS
12115
12116 fi
12117 fi
12118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12119 if test -n "$ac_ct_AR"; then
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12121 $as_echo "$ac_ct_AR" >&6; }
12122 else
12123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126
12127   if test "x$ac_ct_AR" = x; then
12128     AR="ar"
12129   else
12130     case $cross_compiling:$ac_tool_warned in
12131 yes:)
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12134 ac_tool_warned=yes ;;
12135 esac
12136     AR=$ac_ct_AR
12137   fi
12138 else
12139   AR="$ac_cv_prog_AR"
12140 fi
12141
12142 if test -n "$ac_tool_prefix"; then
12143   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_RANLIB+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   if test -n "$RANLIB"; then
12151   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158     for ac_exec_ext in '' $ac_executable_extensions; do
12159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165   done
12166 IFS=$as_save_IFS
12167
12168 fi
12169 fi
12170 RANLIB=$ac_cv_prog_RANLIB
12171 if test -n "$RANLIB"; then
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12173 $as_echo "$RANLIB" >&6; }
12174 else
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 fi
12178
12179
12180 fi
12181 if test -z "$ac_cv_prog_RANLIB"; then
12182   ac_ct_RANLIB=$RANLIB
12183   # Extract the first word of "ranlib", so it can be a program name with args.
12184 set dummy ranlib; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12188   $as_echo_n "(cached) " >&6
12189 else
12190   if test -n "$ac_ct_RANLIB"; then
12191   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196   IFS=$as_save_IFS
12197   test -z "$as_dir" && as_dir=.
12198     for ac_exec_ext in '' $ac_executable_extensions; do
12199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200     ac_cv_prog_ac_ct_RANLIB="ranlib"
12201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202     break 2
12203   fi
12204 done
12205   done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12211 if test -n "$ac_ct_RANLIB"; then
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12213 $as_echo "$ac_ct_RANLIB" >&6; }
12214 else
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219   if test "x$ac_ct_RANLIB" = x; then
12220     RANLIB=":"
12221   else
12222     case $cross_compiling:$ac_tool_warned in
12223 yes:)
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12226 ac_tool_warned=yes ;;
12227 esac
12228     RANLIB=$ac_ct_RANLIB
12229   fi
12230 else
12231   RANLIB="$ac_cv_prog_RANLIB"
12232 fi
12233
12234 if test -n "$ac_tool_prefix"; then
12235   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12236 set dummy ${ac_tool_prefix}strip; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_prog_STRIP+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   if test -n "$STRIP"; then
12243   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12247 do
12248   IFS=$as_save_IFS
12249   test -z "$as_dir" && as_dir=.
12250     for ac_exec_ext in '' $ac_executable_extensions; do
12251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254     break 2
12255   fi
12256 done
12257   done
12258 IFS=$as_save_IFS
12259
12260 fi
12261 fi
12262 STRIP=$ac_cv_prog_STRIP
12263 if test -n "$STRIP"; then
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12265 $as_echo "$STRIP" >&6; }
12266 else
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272 fi
12273 if test -z "$ac_cv_prog_STRIP"; then
12274   ac_ct_STRIP=$STRIP
12275   # Extract the first word of "strip", so it can be a program name with args.
12276 set dummy strip; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282   if test -n "$ac_ct_STRIP"; then
12283   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12287 do
12288   IFS=$as_save_IFS
12289   test -z "$as_dir" && as_dir=.
12290     for ac_exec_ext in '' $ac_executable_extensions; do
12291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292     ac_cv_prog_ac_ct_STRIP="strip"
12293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294     break 2
12295   fi
12296 done
12297   done
12298 IFS=$as_save_IFS
12299
12300 fi
12301 fi
12302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12303 if test -n "$ac_ct_STRIP"; then
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12305 $as_echo "$ac_ct_STRIP" >&6; }
12306 else
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309 fi
12310
12311   if test "x$ac_ct_STRIP" = x; then
12312     STRIP=":"
12313   else
12314     case $cross_compiling:$ac_tool_warned in
12315 yes:)
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12318 ac_tool_warned=yes ;;
12319 esac
12320     STRIP=$ac_ct_STRIP
12321   fi
12322 else
12323   STRIP="$ac_cv_prog_STRIP"
12324 fi
12325
12326 # Extract the first word of "makeinfo", so it can be a program name with args.
12327 set dummy makeinfo; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if ${ac_cv_prog_MAKEINFO+:} false; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   if test -n "$MAKEINFO"; then
12334   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12335 else
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12338 do
12339   IFS=$as_save_IFS
12340   test -z "$as_dir" && as_dir=.
12341     for ac_exec_ext in '' $ac_executable_extensions; do
12342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343     ac_cv_prog_MAKEINFO="makeinfo"
12344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345     break 2
12346   fi
12347 done
12348   done
12349 IFS=$as_save_IFS
12350
12351 fi
12352 fi
12353 MAKEINFO=$ac_cv_prog_MAKEINFO
12354 if test -n "$MAKEINFO"; then
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12356 $as_echo "$MAKEINFO" >&6; }
12357 else
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12360 fi
12361
12362
12363 if test "_$MAKEINFO" = "_"; then
12364     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12365 else
12366     case "$MAKEINFO" in
12367       */missing.*)
12368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12369 *** Makeinfo is missing. Info documentation will not be built." >&5
12370 $as_echo "$as_me: WARNING:
12371 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12372         ;;
12373       *)
12374         ;;
12375     esac
12376 fi
12377
12378
12379 # See if we need a separate native compiler.
12380 if test $cross_compiling = no; then
12381   BUILD_CC="$CC"
12382
12383 else
12384   for ac_prog in gcc cc
12385 do
12386   # Extract the first word of "$ac_prog", so it can be a program name with args.
12387 set dummy $ac_prog; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_BUILD_CC+:} false; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   if test -n "$BUILD_CC"; then
12394   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401     for ac_exec_ext in '' $ac_executable_extensions; do
12402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403     ac_cv_prog_BUILD_CC="$ac_prog"
12404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408   done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 BUILD_CC=$ac_cv_prog_BUILD_CC
12414 if test -n "$BUILD_CC"; then
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12416 $as_echo "$BUILD_CC" >&6; }
12417 else
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421
12422
12423   test -n "$BUILD_CC" && break
12424 done
12425
12426 fi
12427 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         attr/xattr.h    linux/falloc.h  linux/fd.h      linux/fsmap.h   linux/major.h   linux/loop.h    linux/types.h   net/if_dl.h     netinet/in.h    sys/acl.h       sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/key.h       sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysctl.h    sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h      sys/xattr.h
12428 do :
12429   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12430 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12432   cat >>confdefs.h <<_ACEOF
12433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12434 _ACEOF
12435
12436 fi
12437
12438 done
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12441 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12442 DD=
12443 for i in dd gdd ; do
12444         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12445                 DD=$i
12446                 break
12447         fi
12448 done
12449 if test -n "$DD" ; then
12450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12451 $as_echo "$DD" >&6; }
12452 else
12453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12454 $as_echo "not found, using dd" >&6; }
12455         DD=dd
12456         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12457 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12458 fi
12459
12460
12461 for ac_header in net/if.h
12462 do :
12463   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12464 #if HAVE_SYS_TYPES_H
12465 #include <sys/types.h>
12466 #endif
12467 #if HAVE_SYS_SOCKET
12468 #include <sys/socket.h>
12469 #endif
12470
12471 "
12472 if test "x$ac_cv_header_net_if_h" = xyes; then :
12473   cat >>confdefs.h <<_ACEOF
12474 #define HAVE_NET_IF_H 1
12475 _ACEOF
12476
12477 fi
12478
12479 done
12480
12481 for ac_func in vprintf
12482 do :
12483   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12484 if test "x$ac_cv_func_vprintf" = xyes; then :
12485   cat >>confdefs.h <<_ACEOF
12486 #define HAVE_VPRINTF 1
12487 _ACEOF
12488
12489 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12490 if test "x$ac_cv_func__doprnt" = xyes; then :
12491
12492 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12493
12494 fi
12495
12496 fi
12497 done
12498
12499
12500 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12501 "
12502 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12503
12504 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12505
12506 fi
12507
12508 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12509 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12510
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_STRUCT_STAT_ST_ATIM 1
12513 _ACEOF
12514
12515
12516 fi
12517
12518 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12519 "
12520 if test "x$ac_cv_type_ssize_t" = xyes; then :
12521
12522 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12523
12524 fi
12525
12526 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12527 "
12528 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12529
12530 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12531
12532 fi
12533
12534 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12535                  #define _LARGEFILE64_SOURCE
12536                  #include <unistd.h>
12537 "
12538 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12539
12540 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12541
12542 fi
12543
12544 # The cast to long int works around a bug in the HP C Compiler
12545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12547 # This bug is HP SR number 8606223364.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12549 $as_echo_n "checking size of short... " >&6; }
12550 if ${ac_cv_sizeof_short+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12554
12555 else
12556   if test "$ac_cv_type_short" = yes; then
12557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12559 as_fn_error 77 "cannot compute sizeof (short)
12560 See \`config.log' for more details" "$LINENO" 5; }
12561    else
12562      ac_cv_sizeof_short=0
12563    fi
12564 fi
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12568 $as_echo "$ac_cv_sizeof_short" >&6; }
12569
12570
12571
12572 cat >>confdefs.h <<_ACEOF
12573 #define SIZEOF_SHORT $ac_cv_sizeof_short
12574 _ACEOF
12575
12576
12577 # The cast to long int works around a bug in the HP C Compiler
12578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12580 # This bug is HP SR number 8606223364.
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12582 $as_echo_n "checking size of int... " >&6; }
12583 if ${ac_cv_sizeof_int+:} false; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12587
12588 else
12589   if test "$ac_cv_type_int" = yes; then
12590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592 as_fn_error 77 "cannot compute sizeof (int)
12593 See \`config.log' for more details" "$LINENO" 5; }
12594    else
12595      ac_cv_sizeof_int=0
12596    fi
12597 fi
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12601 $as_echo "$ac_cv_sizeof_int" >&6; }
12602
12603
12604
12605 cat >>confdefs.h <<_ACEOF
12606 #define SIZEOF_INT $ac_cv_sizeof_int
12607 _ACEOF
12608
12609
12610 # The cast to long int works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12615 $as_echo_n "checking size of long... " >&6; }
12616 if ${ac_cv_sizeof_long+:} false; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12620
12621 else
12622   if test "$ac_cv_type_long" = yes; then
12623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12625 as_fn_error 77 "cannot compute sizeof (long)
12626 See \`config.log' for more details" "$LINENO" 5; }
12627    else
12628      ac_cv_sizeof_long=0
12629    fi
12630 fi
12631
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12634 $as_echo "$ac_cv_sizeof_long" >&6; }
12635
12636
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define SIZEOF_LONG $ac_cv_sizeof_long
12640 _ACEOF
12641
12642
12643 # The cast to long int works around a bug in the HP C Compiler
12644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12646 # This bug is HP SR number 8606223364.
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12648 $as_echo_n "checking size of long long... " >&6; }
12649 if ${ac_cv_sizeof_long_long+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12653
12654 else
12655   if test "$ac_cv_type_long_long" = yes; then
12656      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12658 as_fn_error 77 "cannot compute sizeof (long long)
12659 See \`config.log' for more details" "$LINENO" 5; }
12660    else
12661      ac_cv_sizeof_long_long=0
12662    fi
12663 fi
12664
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12667 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12668
12669
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12673 _ACEOF
12674
12675
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12681 $as_echo_n "checking size of off_t... " >&6; }
12682 if ${ac_cv_sizeof_off_t+:} false; then :
12683   $as_echo_n "(cached) " >&6
12684 else
12685   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12686
12687 else
12688   if test "$ac_cv_type_off_t" = yes; then
12689      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12691 as_fn_error 77 "cannot compute sizeof (off_t)
12692 See \`config.log' for more details" "$LINENO" 5; }
12693    else
12694      ac_cv_sizeof_off_t=0
12695    fi
12696 fi
12697
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12700 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12701
12702
12703
12704 cat >>confdefs.h <<_ACEOF
12705 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12706 _ACEOF
12707
12708
12709 # The cast to long int works around a bug in the HP C Compiler
12710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12712 # This bug is HP SR number 8606223364.
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12714 $as_echo_n "checking size of time_t... " >&6; }
12715 if ${ac_cv_sizeof_time_t+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12719
12720 else
12721   if test "$ac_cv_type_time_t" = yes; then
12722      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12724 as_fn_error 77 "cannot compute sizeof (time_t)
12725 See \`config.log' for more details" "$LINENO" 5; }
12726    else
12727      ac_cv_sizeof_time_t=0
12728    fi
12729 fi
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12733 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12734
12735
12736
12737 cat >>confdefs.h <<_ACEOF
12738 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12739 _ACEOF
12740
12741
12742 SIZEOF_SHORT=$ac_cv_sizeof_short
12743 SIZEOF_INT=$ac_cv_sizeof_int
12744 SIZEOF_LONG=$ac_cv_sizeof_long
12745 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12746 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12747 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12748
12749
12750
12751
12752
12753
12754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12756 if ${ac_cv_c_bigendian+:} false; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   ac_cv_c_bigendian=unknown
12760     # See if we're dealing with a universal compiler.
12761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h.  */
12763 #ifndef __APPLE_CC__
12764                not a universal capable compiler
12765              #endif
12766              typedef int dummy;
12767
12768 _ACEOF
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770
12771         # Check for potential -arch flags.  It is not universal unless
12772         # there are at least two -arch flags with different values.
12773         ac_arch=
12774         ac_prev=
12775         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12776          if test -n "$ac_prev"; then
12777            case $ac_word in
12778              i?86 | x86_64 | ppc | ppc64)
12779                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12780                  ac_arch=$ac_word
12781                else
12782                  ac_cv_c_bigendian=universal
12783                  break
12784                fi
12785                ;;
12786            esac
12787            ac_prev=
12788          elif test "x$ac_word" = "x-arch"; then
12789            ac_prev=arch
12790          fi
12791        done
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794     if test $ac_cv_c_bigendian = unknown; then
12795       # See if sys/param.h defines the BYTE_ORDER macro.
12796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h.  */
12798 #include <sys/types.h>
12799              #include <sys/param.h>
12800
12801 int
12802 main ()
12803 {
12804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12805                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12806                      && LITTLE_ENDIAN)
12807               bogus endian macros
12808              #endif
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815   # It does; now see whether it defined to BIG_ENDIAN or not.
12816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h.  */
12818 #include <sys/types.h>
12819                 #include <sys/param.h>
12820
12821 int
12822 main ()
12823 {
12824 #if BYTE_ORDER != BIG_ENDIAN
12825                  not big endian
12826                 #endif
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833   ac_cv_c_bigendian=yes
12834 else
12835   ac_cv_c_bigendian=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840     fi
12841     if test $ac_cv_c_bigendian = unknown; then
12842       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845 #include <limits.h>
12846
12847 int
12848 main ()
12849 {
12850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12851               bogus endian macros
12852              #endif
12853
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859   # It does; now see whether it defined to _BIG_ENDIAN or not.
12860          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862 #include <limits.h>
12863
12864 int
12865 main ()
12866 {
12867 #ifndef _BIG_ENDIAN
12868                  not big endian
12869                 #endif
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_compile "$LINENO"; then :
12876   ac_cv_c_bigendian=yes
12877 else
12878   ac_cv_c_bigendian=no
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883     fi
12884     if test $ac_cv_c_bigendian = unknown; then
12885       # Compile a test program.
12886       if test "$cross_compiling" = yes; then :
12887   # Try to guess by grepping values from an object file.
12888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h.  */
12890 short int ascii_mm[] =
12891                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12892                 short int ascii_ii[] =
12893                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12894                 int use_ascii (int i) {
12895                   return ascii_mm[i] + ascii_ii[i];
12896                 }
12897                 short int ebcdic_ii[] =
12898                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12899                 short int ebcdic_mm[] =
12900                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12901                 int use_ebcdic (int i) {
12902                   return ebcdic_mm[i] + ebcdic_ii[i];
12903                 }
12904                 extern int foo;
12905
12906 int
12907 main ()
12908 {
12909 return use_ascii (foo) == use_ebcdic (foo);
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_c_try_compile "$LINENO"; then :
12915   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12916               ac_cv_c_bigendian=yes
12917             fi
12918             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12919               if test "$ac_cv_c_bigendian" = unknown; then
12920                 ac_cv_c_bigendian=no
12921               else
12922                 # finding both strings is unlikely to happen, but who knows?
12923                 ac_cv_c_bigendian=unknown
12924               fi
12925             fi
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 else
12929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931 $ac_includes_default
12932 int
12933 main ()
12934 {
12935
12936              /* Are we little or big endian?  From Harbison&Steele.  */
12937              union
12938              {
12939                long int l;
12940                char c[sizeof (long int)];
12941              } u;
12942              u.l = 1;
12943              return u.c[sizeof (long int) - 1] == 1;
12944
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_run "$LINENO"; then :
12950   ac_cv_c_bigendian=no
12951 else
12952   ac_cv_c_bigendian=yes
12953 fi
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955   conftest.$ac_objext conftest.beam conftest.$ac_ext
12956 fi
12957
12958     fi
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12961 $as_echo "$ac_cv_c_bigendian" >&6; }
12962  case $ac_cv_c_bigendian in #(
12963    yes)
12964      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12965 ;; #(
12966    no)
12967       ;; #(
12968    universal)
12969
12970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12971
12972      ;; #(
12973    *)
12974      as_fn_error $? "unknown endianness
12975  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12976  esac
12977
12978 if test $cross_compiling = no; then
12979   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12980 else
12981   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12982 fi
12983 ASM_TYPES_HEADER=./asm_types.h
12984
12985 echo "/* These defines are needed for the public ext2fs.h header file */" \
12986      > public_config.h
12987 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12988   uniq tmp_config.$$ >> public_config.h
12989 else
12990   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12991 fi
12992 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12993   uniq tmp_config.$$ >> public_config.h
12994 else
12995   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12996 fi
12997 rm -f tmp_config.$$
12998 PUBLIC_CONFIG_HEADER=./public_config.h
12999
13000 for ac_header in inttypes.h
13001 do :
13002   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13003 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13004   cat >>confdefs.h <<_ACEOF
13005 #define HAVE_INTTYPES_H 1
13006 _ACEOF
13007
13008 fi
13009
13010 done
13011
13012 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13013 if test "x$ac_cv_type_intptr_t" = xyes; then :
13014
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_INTPTR_T 1
13017 _ACEOF
13018
13019
13020 fi
13021
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13023 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13024 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h.  */
13029 #include <sys/stat.h>
13030 int
13031 main ()
13032 {
13033 struct stat stat; stat.st_flags = 0;
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039   e2fsprogs_cv_struct_st_flags=yes
13040 else
13041   e2fsprogs_cv_struct_st_flags=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 fi
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13047 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13048 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13050 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13051   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #include <sys/stat.h>
13057 int
13058 main ()
13059 {
13060 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066   e2fsprogs_cv_struct_st_flags_immut=yes
13067 else
13068   e2fsprogs_cv_struct_st_flags_immut=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13074 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13075   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13076
13077 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13078
13079   fi
13080 fi
13081 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13082          #include <sys/socket.h>
13083 "
13084 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13085
13086 cat >>confdefs.h <<_ACEOF
13087 #define HAVE_SA_LEN 1
13088 _ACEOF
13089
13090 fi
13091
13092 if test -n "$BLKID_CMT"; then
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13094 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13095 if ${ac_cv_search_blkid_probe_all+:} false; then :
13096   $as_echo_n "(cached) " >&6
13097 else
13098   ac_func_search_save_LIBS=$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 blkid_probe_all ();
13109 int
13110 main ()
13111 {
13112 return blkid_probe_all ();
13113   ;
13114   return 0;
13115 }
13116 _ACEOF
13117 for ac_lib in '' blkid; do
13118   if test -z "$ac_lib"; then
13119     ac_res="none required"
13120   else
13121     ac_res=-l$ac_lib
13122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13123   fi
13124   if ac_fn_c_try_link "$LINENO"; then :
13125   ac_cv_search_blkid_probe_all=$ac_res
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext \
13128     conftest$ac_exeext
13129   if ${ac_cv_search_blkid_probe_all+:} false; then :
13130   break
13131 fi
13132 done
13133 if ${ac_cv_search_blkid_probe_all+:} false; then :
13134
13135 else
13136   ac_cv_search_blkid_probe_all=no
13137 fi
13138 rm conftest.$ac_ext
13139 LIBS=$ac_func_search_save_LIBS
13140 fi
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13142 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13143 ac_res=$ac_cv_search_blkid_probe_all
13144 if test "$ac_res" != no; then :
13145   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13146
13147 fi
13148
13149 fi
13150 if test -n "$DLOPEN_LIB" ; then
13151    ac_cv_func_dlopen=yes
13152 fi
13153 for ac_func in          __secure_getenv         add_key         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         dlopen  fadvise64       fallocate       fallocate64     fchown  fcntl   fdatasync       fstat64         fsync   ftruncate64     futimes         getcwd  getdtablesize   gethostname     getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         keyctl  llistxattr      llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   utimes  valloc
13154 do :
13155   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13158   cat >>confdefs.h <<_ACEOF
13159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13160 _ACEOF
13161
13162 fi
13163 done
13164
13165 SOCKET_LIB=''
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13167 $as_echo_n "checking for socket in -lsocket... " >&6; }
13168 if ${ac_cv_lib_socket_socket+:} false; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lsocket  $LIBS"
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h.  */
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177    Use char because int might match the return type of a GCC
13178    builtin and then its argument prototype would still apply.  */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char socket ();
13183 int
13184 main ()
13185 {
13186 return socket ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 if ac_fn_c_try_link "$LINENO"; then :
13192   ac_cv_lib_socket_socket=yes
13193 else
13194   ac_cv_lib_socket_socket=no
13195 fi
13196 rm -f core conftest.err conftest.$ac_objext \
13197     conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13199 fi
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13201 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13202 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13203   SOCKET_LIB=-lsocket
13204 fi
13205
13206
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13208 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13209 if ${ac_cv_lib_magic_magic_file+:} false; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lmagic  $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h.  */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218    Use char because int might match the return type of a GCC
13219    builtin and then its argument prototype would still apply.  */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char magic_file ();
13224 int
13225 main ()
13226 {
13227 return magic_file ();
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233   ac_cv_lib_magic_magic_file=yes
13234 else
13235   ac_cv_lib_magic_magic_file=no
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext \
13238     conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13242 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13243 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13244   MAGIC_LIB=-lmagic
13245 for ac_header in magic.h
13246 do :
13247   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13248 if test "x$ac_cv_header_magic_h" = xyes; then :
13249   cat >>confdefs.h <<_ACEOF
13250 #define HAVE_MAGIC_H 1
13251 _ACEOF
13252
13253 fi
13254
13255 done
13256
13257 fi
13258
13259 if test "$ac_cv_func_dlopen" = yes ; then
13260    MAGIC_LIB=$DLOPEN_LIB
13261 fi
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13264 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13265 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lrt  $LIBS"
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h.  */
13272
13273 /* Override any GCC internal prototype to avoid an error.
13274    Use char because int might match the return type of a GCC
13275    builtin and then its argument prototype would still apply.  */
13276 #ifdef __cplusplus
13277 extern "C"
13278 #endif
13279 char clock_gettime ();
13280 int
13281 main ()
13282 {
13283 return clock_gettime ();
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13289   ac_cv_lib_rt_clock_gettime=yes
13290 else
13291   ac_cv_lib_rt_clock_gettime=no
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext \
13294     conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13298 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13299 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13300   CLOCK_GETTIME_LIB=-lrt
13301 fi
13302
13303
13304 FUSE_CMT=
13305 FUSE_LIB=
13306 # Check whether --enable-fuse2fs was given.
13307 if test "${enable_fuse2fs+set}" = set; then :
13308   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13309 then
13310         FUSE_CMT="#"
13311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13312 $as_echo "Disabling fuse2fs" >&6; }
13313 else
13314         for ac_header in pthread.h fuse.h
13315 do :
13316   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13317 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13318 #define FUSE_USE_VERSION 29
13319 "
13320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13321   cat >>confdefs.h <<_ACEOF
13322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323 _ACEOF
13324
13325 else
13326   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13328 as_fn_error $? "Cannot find fuse2fs headers.
13329 See \`config.log' for more details" "$LINENO" 5; }
13330 fi
13331
13332 done
13333
13334
13335         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337 #define FUSE_USE_VERSION 29
13338 #ifdef __linux__
13339 #include <linux/fs.h>
13340 #include <linux/falloc.h>
13341 #include <linux/xattr.h>
13342 #endif
13343
13344 int
13345 main ()
13346 {
13347
13348   ;
13349   return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_cpp "$LINENO"; then :
13353
13354 else
13355   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13357 as_fn_error $? "Cannot find fuse2fs Linux headers.
13358 See \`config.log' for more details" "$LINENO" 5; }
13359 fi
13360 rm -f conftest.err conftest.i conftest.$ac_ext
13361
13362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13363 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13364 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-losxfuse  $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h.  */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373    Use char because int might match the return type of a GCC
13374    builtin and then its argument prototype would still apply.  */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char fuse_main ();
13379 int
13380 main ()
13381 {
13382 return fuse_main ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 if ac_fn_c_try_link "$LINENO"; then :
13388   ac_cv_lib_osxfuse_fuse_main=yes
13389 else
13390   ac_cv_lib_osxfuse_fuse_main=no
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext \
13393     conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13397 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13398 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13399   FUSE_LIB=-losxfuse
13400 else
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13402 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13403 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   ac_check_lib_save_LIBS=$LIBS
13407 LIBS="-lfuse  $LIBS"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410
13411 /* Override any GCC internal prototype to avoid an error.
13412    Use char because int might match the return type of a GCC
13413    builtin and then its argument prototype would still apply.  */
13414 #ifdef __cplusplus
13415 extern "C"
13416 #endif
13417 char fuse_main ();
13418 int
13419 main ()
13420 {
13421 return fuse_main ();
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_link "$LINENO"; then :
13427   ac_cv_lib_fuse_fuse_main=yes
13428 else
13429   ac_cv_lib_fuse_fuse_main=no
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext \
13432     conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13436 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13437 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13438   FUSE_LIB=-lfuse
13439 else
13440   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13442 as_fn_error $? "Cannot find fuse library.
13443 See \`config.log' for more details" "$LINENO" 5; }
13444 fi
13445
13446 fi
13447
13448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13449 $as_echo "Enabling fuse2fs" >&6; }
13450 fi
13451
13452 else
13453   for ac_header in pthread.h fuse.h
13454 do :
13455   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13457 #define FUSE_USE_VERSION 29
13458 #ifdef __linux__
13459 # include <linux/fs.h>
13460 # include <linux/falloc.h>
13461 # include <linux/xattr.h>
13462 #endif
13463 "
13464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13465   cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13467 _ACEOF
13468
13469 else
13470   FUSE_CMT="#"
13471 fi
13472
13473 done
13474
13475 if test -z "$FUSE_CMT"
13476 then
13477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13478 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13479 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13480   $as_echo_n "(cached) " >&6
13481 else
13482   ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-losxfuse  $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h.  */
13486
13487 /* Override any GCC internal prototype to avoid an error.
13488    Use char because int might match the return type of a GCC
13489    builtin and then its argument prototype would still apply.  */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 char fuse_main ();
13494 int
13495 main ()
13496 {
13497 return fuse_main ();
13498   ;
13499   return 0;
13500 }
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503   ac_cv_lib_osxfuse_fuse_main=yes
13504 else
13505   ac_cv_lib_osxfuse_fuse_main=no
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext \
13508     conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13512 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13513 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13514   FUSE_LIB=-losxfuse
13515 else
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13517 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13518 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521   ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-lfuse  $LIBS"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h.  */
13525
13526 /* Override any GCC internal prototype to avoid an error.
13527    Use char because int might match the return type of a GCC
13528    builtin and then its argument prototype would still apply.  */
13529 #ifdef __cplusplus
13530 extern "C"
13531 #endif
13532 char fuse_main ();
13533 int
13534 main ()
13535 {
13536 return fuse_main ();
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_c_try_link "$LINENO"; then :
13542   ac_cv_lib_fuse_fuse_main=yes
13543 else
13544   ac_cv_lib_fuse_fuse_main=no
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext \
13547     conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13551 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13552 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13553   FUSE_LIB=-lfuse
13554 else
13555   FUSE_CMT="#"
13556 fi
13557
13558 fi
13559
13560 fi
13561 if test -z "$FUSE_CMT"
13562 then
13563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13564 $as_echo "Enabling fuse2fs by default." >&6; }
13565 fi
13566
13567 fi
13568
13569
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13572 $as_echo_n "checking for optreset... " >&6; }
13573 if ${ac_cv_have_optreset+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h.  */
13578 #include <unistd.h>
13579
13580 _ACEOF
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582   $EGREP "optreset" >/dev/null 2>&1; then :
13583   ac_cv_have_optreset=yes
13584 else
13585   ac_cv_have_optreset=no
13586 fi
13587 rm -f conftest*
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13591 $as_echo "$ac_cv_have_optreset" >&6; }
13592 if test $ac_cv_have_optreset = yes; then
13593
13594 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13595
13596 fi
13597
13598 SEM_INIT_LIB=''
13599 echo GL_THREADS_API: ${gl_threads_api}
13600 if test "${gl_threads_api}" != none
13601 then
13602   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13603 if test "x$ac_cv_func_sem_init" = xyes; then :
13604
13605 else
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13607 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13608 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611   ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lpthread  $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h.  */
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617    Use char because int might match the return type of a GCC
13618    builtin and then its argument prototype would still apply.  */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char sem_init ();
13623 int
13624 main ()
13625 {
13626 return sem_init ();
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632   ac_cv_lib_pthread_sem_init=yes
13633 else
13634   ac_cv_lib_pthread_sem_init=no
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637     conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13641 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13642 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13643   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13644
13645         SEM_INIT_LIB=-lpthread
13646 else
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13648 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13649 if ${ac_cv_lib_rt_sem_init+:} false; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-lrt  $LIBS"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h.  */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char sem_init ();
13664 int
13665 main ()
13666 {
13667 return sem_init ();
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_link "$LINENO"; then :
13673   ac_cv_lib_rt_sem_init=yes
13674 else
13675   ac_cv_lib_rt_sem_init=no
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext \
13678     conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13682 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13683 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13684   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13685
13686         SEM_INIT_LIB=-lrt
13687 else
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13689 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13690 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693   ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lposix4  $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h.  */
13697
13698 /* Override any GCC internal prototype to avoid an error.
13699    Use char because int might match the return type of a GCC
13700    builtin and then its argument prototype would still apply.  */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char sem_init ();
13705 int
13706 main ()
13707 {
13708 return sem_init ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714   ac_cv_lib_posix4_sem_init=yes
13715 else
13716   ac_cv_lib_posix4_sem_init=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719     conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13723 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13724 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13725   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13726
13727         SEM_INIT_LIB=-lposix4
13728 fi
13729
13730 fi
13731
13732 fi
13733
13734 fi
13735 fi
13736
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13738 $as_echo_n "checking for unified diff option... " >&6; }
13739 if diff -u $0 $0 > /dev/null 2>&1 ; then
13740    UNI_DIFF_OPTS=-u
13741 else
13742    UNI_DIFF_OPTS=-c
13743 fi
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13745 $as_echo "$UNI_DIFF_OPTS" >&6; }
13746
13747 case "$host_os" in
13748 linux*)
13749
13750 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13751
13752         ;;
13753 esac
13754 # Check whether --enable-lto was given.
13755 if test "${enable_lto+set}" = set; then :
13756   enableval=$enable_lto;
13757 else
13758   enable_lto=no
13759 fi
13760
13761 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13762         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13763 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13764         OLD_CFLAGS="$CFLAGS"
13765         OLD_LDFLAGS="$LDFLAGS"
13766         LTO_FLAGS="-g -flto -ffat-lto-objects"
13767         CFLAGS="$CFLAGS $LTO_FLAGS"
13768         LDFLAGS="$LDFLAGS $LTO_FLAGS"
13769         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h.  */
13771
13772 int
13773 main ()
13774 {
13775
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 if ac_fn_c_try_link "$LINENO"; then :
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783                 lto_cflags=$LTO_FLAGS
13784                 lto_ldflags=$LTO_FLAGS
13785                 # Extract the first word of "gcc-ar", so it can be a program name with args.
13786 set dummy gcc-ar; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if ${ac_cv_path_gcc_ar+:} false; then :
13790   $as_echo_n "(cached) " >&6
13791 else
13792   case $gcc_ar in
13793   [\\/]* | ?:[\\/]*)
13794   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13795   ;;
13796   *)
13797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800   IFS=$as_save_IFS
13801   test -z "$as_dir" && as_dir=.
13802     for ac_exec_ext in '' $ac_executable_extensions; do
13803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806     break 2
13807   fi
13808 done
13809   done
13810 IFS=$as_save_IFS
13811
13812   ;;
13813 esac
13814 fi
13815 gcc_ar=$ac_cv_path_gcc_ar
13816 if test -n "$gcc_ar"; then
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13818 $as_echo "$gcc_ar" >&6; }
13819 else
13820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822 fi
13823
13824
13825                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13826 set dummy gcc-ranlib; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_path_gcc_ranlib+:} false; then :
13830   $as_echo_n "(cached) " >&6
13831 else
13832   case $gcc_ranlib in
13833   [\\/]* | ?:[\\/]*)
13834   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13835   ;;
13836   *)
13837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840   IFS=$as_save_IFS
13841   test -z "$as_dir" && as_dir=.
13842     for ac_exec_ext in '' $ac_executable_extensions; do
13843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846     break 2
13847   fi
13848 done
13849   done
13850 IFS=$as_save_IFS
13851
13852   ;;
13853 esac
13854 fi
13855 gcc_ranlib=$ac_cv_path_gcc_ranlib
13856 if test -n "$gcc_ranlib"; then
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13858 $as_echo "$gcc_ranlib" >&6; }
13859 else
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13862 fi
13863
13864
13865 else
13866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext \
13870     conftest$ac_exeext conftest.$ac_ext
13871         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13872                 have_lto=yes
13873                 AR="${gcc_ar}"
13874                 RANLIB="${gcc_ranlib}"
13875         fi
13876         CFLAGS="${OLD_CFLAGS}"
13877         LDFLAGS="${OLD_LDFLAGS}"
13878
13879
13880
13881 fi
13882 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13883         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13884 fi
13885 # Check whether --enable-ubsan was given.
13886 if test "${enable_ubsan+set}" = set; then :
13887   enableval=$enable_ubsan;
13888 else
13889   enable_ubsan=no
13890 fi
13891
13892 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13894 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13895         OLD_CFLAGS="$CFLAGS"
13896         OLD_LDFLAGS="$LDFLAGS"
13897         UBSAN_FLAGS="-fsanitize=undefined"
13898         CFLAGS="$CFLAGS $UBSAN_FLAGS"
13899         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902
13903 int
13904 main ()
13905 {
13906
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913 $as_echo "yes" >&6; }
13914                 ubsan_cflags=$UBSAN_FLAGS
13915                 ubsan_ldflags=$UBSAN_FLAGS
13916                 have_ubsan=yes
13917 else
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922     conftest$ac_exeext conftest.$ac_ext
13923         CFLAGS="${OLD_CFLAGS}"
13924         LDFLAGS="${OLD_LDFLAGS}"
13925
13926
13927
13928 fi
13929 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13930         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13931 fi
13932 # Check whether --enable-addrsan was given.
13933 if test "${enable_addrsan+set}" = set; then :
13934   enableval=$enable_addrsan;
13935 else
13936   enable_addrsan=no
13937 fi
13938
13939 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
13940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
13941 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
13942         OLD_CFLAGS="$CFLAGS"
13943         OLD_LDFLAGS="$LDFLAGS"
13944         ADDRSAN_FLAGS="-fsanitize=address"
13945         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
13946         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
13947         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949
13950 int
13951 main ()
13952 {
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960 $as_echo "yes" >&6; }
13961                 addrsan_cflags=$ADDRSAN_FLAGS
13962                 addrsan_ldflags=$ADDRSAN_FLAGS
13963                 have_addrsan=yes
13964 else
13965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext \
13969     conftest$ac_exeext conftest.$ac_ext
13970         CFLAGS="${OLD_CFLAGS}"
13971         LDFLAGS="${OLD_LDFLAGS}"
13972
13973
13974
13975 fi
13976 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
13977         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
13978 fi
13979 # Check whether --enable-threadsan was given.
13980 if test "${enable_threadsan+set}" = set; then :
13981   enableval=$enable_threadsan;
13982 else
13983   enable_threadsan=no
13984 fi
13985
13986 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
13987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
13988 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
13989         OLD_CFLAGS="$CFLAGS"
13990         OLD_LDFLAGS="$LDFLAGS"
13991         THREADSAN_FLAGS="-fsanitize=thread"
13992         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
13993         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
13994         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h.  */
13996
13997 int
13998 main ()
13999 {
14000
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008                 threadsan_cflags=$THREADSAN_FLAGS
14009                 threadsan_ldflags=$THREADSAN_FLAGS
14010                 have_threadsan=yes
14011 else
14012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext \
14016     conftest$ac_exeext conftest.$ac_ext
14017         CFLAGS="${OLD_CFLAGS}"
14018         LDFLAGS="${OLD_LDFLAGS}"
14019
14020
14021
14022 fi
14023 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14024         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14025 fi
14026 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14027         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14028 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14029 fi
14030 LINUX_CMT="#"
14031 CYGWIN_CMT="#"
14032 UNIX_CMT=
14033 case "$host_os" in
14034 linux*)
14035         LINUX_CMT=
14036         ;;
14037 cygwin)
14038         CYGWIN_CMT=
14039         UNIX_CMT="#"
14040         ;;
14041 esac
14042
14043
14044
14045 E2SCRUB_CMT="$LINUX_CMT"
14046
14047 case "$host_os" in
14048 linux* | gnu* | k*bsd*-gnu)
14049         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14050                 root_prefix="";
14051                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14052 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14053         fi
14054         ;;
14055 esac
14056 case "$host_os" in
14057 linux* | gnu* | k*bsd*-gnu)
14058         if test "$prefix" = NONE ; then
14059                 prefix="/usr";
14060                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14061 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14062                 if test "$mandir" = '${prefix}/man' ; then
14063                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14064 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14065                         mandir=/usr/share/man
14066                 fi
14067         fi
14068 ;;
14069 esac
14070 if test "$root_prefix" = NONE ; then
14071         if test "$prefix" = NONE ; then
14072                 root_prefix="$ac_default_prefix"
14073         else
14074                 root_prefix="$prefix"
14075         fi
14076         root_bindir=$bindir
14077         root_sbindir=$sbindir
14078         root_libdir=$libdir
14079         root_sysconfdir=$sysconfdir
14080 else
14081         root_bindir='${root_prefix}/bin'
14082         root_sbindir='${root_prefix}/sbin'
14083         root_libdir='${root_prefix}/lib'
14084         root_sysconfdir='${root_prefix}/etc'
14085 fi
14086 if test "$bindir" != '${exec_prefix}/bin'; then
14087     root_bindir=$bindir
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14089 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14090 fi
14091 if test "$sbindir" != '${exec_prefix}/sbin'; then
14092     root_sbindir=$sbindir
14093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14094 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14095 fi
14096 if test "$libdir" != '${exec_prefix}/lib'; then
14097     root_libdir=$libdir
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14099 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14100 fi
14101 if test "$sysconfdir" != '${prefix}/etc'; then
14102     root_sysconfdir=$sysconfdir
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14104 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14105 fi
14106
14107
14108
14109
14110
14111
14112 # Check whether --with-multiarch was given.
14113 if test "${with_multiarch+set}" = set; then :
14114   withval=$with_multiarch; if test "$withval" = "lib64"; then
14115     libdir=/usr/lib64
14116     root_libdir=/lib64
14117 else
14118     libdir=$libdir/$withval
14119     root_libdir=$root_libdir/$withval
14120 fi
14121
14122 fi
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14125 $as_echo_n "checking whether we can link with -static... " >&6; }
14126 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14127   $as_echo_n "(cached) " >&6
14128 else
14129   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h.  */
14132 #include <stdio.h>
14133 int
14134 main ()
14135 {
14136 fflush(stdout);
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 if ac_fn_c_try_link "$LINENO"; then :
14142   ac_cv_e2fsprogs_use_static=yes
14143 else
14144   ac_cv_e2fsprogs_use_static=no
14145 fi
14146 rm -f core conftest.err conftest.$ac_objext \
14147     conftest$ac_exeext conftest.$ac_ext
14148 LDFLAGS=$SAVE_LDFLAGS
14149 fi
14150
14151 case "$host_os" in
14152 solaris2.*)
14153         ac_cv_e2fsprogs_use_static=no
14154 ;;
14155 esac
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14157 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14158 if test $ac_cv_e2fsprogs_use_static = yes; then
14159         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14160 fi
14161
14162 case "$host_os" in
14163 darwin*)
14164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14165 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14166
14167 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14168
14169         ;;
14170 esac
14171 if test "$cross_compiling" = yes ; then
14172   DO_TEST_SUITE=
14173 else
14174   DO_TEST_SUITE=check
14175 fi
14176
14177 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14178 if test -n "$CPPFLAGS" ; then
14179         INCLUDES="$INCLUDES $CPPFLAGS"
14180 fi
14181 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14182         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14183 fi
14184 if test -n "$WITH_DIET_LIBC" ; then
14185         INCLUDES="$INCLUDES -D_REENTRANT"
14186 fi
14187
14188 if test $cross_compiling = no; then
14189    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14190    BUILD_LDFLAGS="$LDFLAGS"
14191 fi
14192
14193
14194 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14195 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14196 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14197
14198
14199
14200
14201
14202 # Check whether --with-udev_rules_dir was given.
14203 if test "${with_udev_rules_dir+set}" = set; then :
14204   withval=$with_udev_rules_dir;
14205 else
14206   with_udev_rules_dir=yes
14207 fi
14208
14209 if test "x${with_udev_rules_dir}" != "xno"; then :
14210
14211         if test "x${with_udev_rules_dir}" = "xyes"; then :
14212
14213
14214 pkg_failed=no
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14216 $as_echo_n "checking for udev... " >&6; }
14217
14218 if test -n "$udev_CFLAGS"; then
14219     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14220  elif test -n "$PKG_CONFIG"; then
14221     if test -n "$PKG_CONFIG" && \
14222     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14223   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14224   ac_status=$?
14225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226   test $ac_status = 0; }; then
14227   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14228                       test "x$?" != "x0" && pkg_failed=yes
14229 else
14230   pkg_failed=yes
14231 fi
14232  else
14233     pkg_failed=untried
14234 fi
14235 if test -n "$udev_LIBS"; then
14236     pkg_cv_udev_LIBS="$udev_LIBS"
14237  elif test -n "$PKG_CONFIG"; then
14238     if test -n "$PKG_CONFIG" && \
14239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14240   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14241   ac_status=$?
14242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243   test $ac_status = 0; }; then
14244   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14245                       test "x$?" != "x0" && pkg_failed=yes
14246 else
14247   pkg_failed=yes
14248 fi
14249  else
14250     pkg_failed=untried
14251 fi
14252
14253
14254
14255 if test $pkg_failed = yes; then
14256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258
14259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14260         _pkg_short_errors_supported=yes
14261 else
14262         _pkg_short_errors_supported=no
14263 fi
14264         if test $_pkg_short_errors_supported = yes; then
14265                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14266         else
14267                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14268         fi
14269         # Put the nasty error message in config.log where it belongs
14270         echo "$udev_PKG_ERRORS" >&5
14271
14272
14273                         with_udev_rules_dir=""
14274
14275 elif test $pkg_failed = untried; then
14276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14278
14279                         with_udev_rules_dir=""
14280
14281 else
14282         udev_CFLAGS=$pkg_cv_udev_CFLAGS
14283         udev_LIBS=$pkg_cv_udev_LIBS
14284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14285 $as_echo "yes" >&6; }
14286
14287                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14288
14289 fi
14290
14291 fi
14292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14293 $as_echo_n "checking for udev rules dir... " >&6; }
14294         pkg_udev_rules_dir="${with_udev_rules_dir}"
14295         if test -n "${pkg_udev_rules_dir}"; then :
14296
14297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14298 $as_echo "${pkg_udev_rules_dir}" >&6; }
14299                 have_udev="yes"
14300
14301 else
14302
14303                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14305                 have_udev="no"
14306
14307 fi
14308
14309 else
14310
14311         have_udev="disabled"
14312
14313 fi
14314
14315
14316
14317
14318 # Check whether --with-crond_dir was given.
14319 if test "${with_crond_dir+set}" = set; then :
14320   withval=$with_crond_dir;
14321 else
14322   with_crond_dir=yes
14323 fi
14324
14325 if test "x${with_crond_dir}" != "xno"; then :
14326
14327         if test "x${with_crond_dir}" = "xyes"; then :
14328
14329                 if test -d "/etc/cron.d"; then :
14330   with_crond_dir="/etc/cron.d"
14331 fi
14332
14333 fi
14334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14335 $as_echo_n "checking for system crontab dir... " >&6; }
14336         crond_dir="${with_crond_dir}"
14337         if test -n "${crond_dir}"; then :
14338
14339                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14340 $as_echo "${crond_dir}" >&6; }
14341                 have_crond="yes"
14342
14343 else
14344
14345                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14347                 have_crond="no"
14348
14349 fi
14350
14351 else
14352
14353         have_crond="disabled"
14354
14355 fi
14356
14357
14358
14359
14360 # Check whether --with-systemd_unit_dir was given.
14361 if test "${with_systemd_unit_dir+set}" = set; then :
14362   withval=$with_systemd_unit_dir;
14363 else
14364   with_systemd_unit_dir=yes
14365 fi
14366
14367 if test "x${with_systemd_unit_dir}" != "xno"; then :
14368
14369         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14370
14371
14372 pkg_failed=no
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14374 $as_echo_n "checking for systemd... " >&6; }
14375
14376 if test -n "$systemd_CFLAGS"; then
14377     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14378  elif test -n "$PKG_CONFIG"; then
14379     if test -n "$PKG_CONFIG" && \
14380     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14381   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14382   ac_status=$?
14383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384   test $ac_status = 0; }; then
14385   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14386                       test "x$?" != "x0" && pkg_failed=yes
14387 else
14388   pkg_failed=yes
14389 fi
14390  else
14391     pkg_failed=untried
14392 fi
14393 if test -n "$systemd_LIBS"; then
14394     pkg_cv_systemd_LIBS="$systemd_LIBS"
14395  elif test -n "$PKG_CONFIG"; then
14396     if test -n "$PKG_CONFIG" && \
14397     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14398   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14399   ac_status=$?
14400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14401   test $ac_status = 0; }; then
14402   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14403                       test "x$?" != "x0" && pkg_failed=yes
14404 else
14405   pkg_failed=yes
14406 fi
14407  else
14408     pkg_failed=untried
14409 fi
14410
14411
14412
14413 if test $pkg_failed = yes; then
14414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14416
14417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14418         _pkg_short_errors_supported=yes
14419 else
14420         _pkg_short_errors_supported=no
14421 fi
14422         if test $_pkg_short_errors_supported = yes; then
14423                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14424         else
14425                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14426         fi
14427         # Put the nasty error message in config.log where it belongs
14428         echo "$systemd_PKG_ERRORS" >&5
14429
14430
14431                         with_systemd_unit_dir=""
14432
14433 elif test $pkg_failed = untried; then
14434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14436
14437                         with_systemd_unit_dir=""
14438
14439 else
14440         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14441         systemd_LIBS=$pkg_cv_systemd_LIBS
14442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14443 $as_echo "yes" >&6; }
14444
14445                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14446
14447 fi
14448
14449
14450 fi
14451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14452 $as_echo_n "checking for systemd system unit dir... " >&6; }
14453         systemd_system_unit_dir="${with_systemd_unit_dir}"
14454         if test -n "${systemd_system_unit_dir}"; then :
14455
14456                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14457 $as_echo "${systemd_system_unit_dir}" >&6; }
14458                 have_systemd="yes"
14459
14460 else
14461
14462                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14464                 have_systemd="no"
14465
14466 fi
14467
14468 else
14469
14470         have_systemd="disabled"
14471
14472 fi
14473
14474
14475
14476 test -d lib || mkdir lib
14477 test -d include || mkdir include
14478 test -d include/linux || mkdir include/linux
14479 test -d include/asm || mkdir include/asm
14480 if test -z "$UUID_CMT" ; then
14481         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14482                 lib/uuid/uuid_types.h"
14483 fi
14484 if test -z "$BLKID_CMT" ; then
14485         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14486                 lib/blkid/blkid_types.h"
14487 fi
14488 for i in MCONFIG Makefile e2fsprogs.spec \
14489         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14490         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14491         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14492         $uuid_out_list $blkid_out_list lib/support/Makefile \
14493         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14494         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14495         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14496         resize/Makefile doc/Makefile intl/Makefile \
14497         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14498         if test -d `dirname ${srcdir}/$i` ; then
14499                 outlist="$outlist $i"
14500         fi
14501 done
14502 ac_config_files="$ac_config_files $outlist"
14503
14504 cat >confcache <<\_ACEOF
14505 # This file is a shell script that caches the results of configure
14506 # tests run on this system so they can be shared between configure
14507 # scripts and configure runs, see configure's option --config-cache.
14508 # It is not useful on other systems.  If it contains results you don't
14509 # want to keep, you may remove or edit it.
14510 #
14511 # config.status only pays attention to the cache file if you give it
14512 # the --recheck option to rerun configure.
14513 #
14514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14516 # following values.
14517
14518 _ACEOF
14519
14520 # The following way of writing the cache mishandles newlines in values,
14521 # but we know of no workaround that is simple, portable, and efficient.
14522 # So, we kill variables containing newlines.
14523 # Ultrix sh set writes to stderr and can't be redirected directly,
14524 # and sets the high bit in the cache file unless we assign to the vars.
14525 (
14526   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14527     eval ac_val=\$$ac_var
14528     case $ac_val in #(
14529     *${as_nl}*)
14530       case $ac_var in #(
14531       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14533       esac
14534       case $ac_var in #(
14535       _ | IFS | as_nl) ;; #(
14536       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14537       *) { eval $ac_var=; unset $ac_var;} ;;
14538       esac ;;
14539     esac
14540   done
14541
14542   (set) 2>&1 |
14543     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14544     *${as_nl}ac_space=\ *)
14545       # `set' does not quote correctly, so add quotes: double-quote
14546       # substitution turns \\\\ into \\, and sed turns \\ into \.
14547       sed -n \
14548         "s/'/'\\\\''/g;
14549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14550       ;; #(
14551     *)
14552       # `set' quotes correctly as required by POSIX, so do not add quotes.
14553       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14554       ;;
14555     esac |
14556     sort
14557 ) |
14558   sed '
14559      /^ac_cv_env_/b end
14560      t clear
14561      :clear
14562      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14563      t end
14564      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14565      :end' >>confcache
14566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14567   if test -w "$cache_file"; then
14568     if test "x$cache_file" != "x/dev/null"; then
14569       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14570 $as_echo "$as_me: updating cache $cache_file" >&6;}
14571       if test ! -f "$cache_file" || test -h "$cache_file"; then
14572         cat confcache >"$cache_file"
14573       else
14574         case $cache_file in #(
14575         */* | ?:*)
14576           mv -f confcache "$cache_file"$$ &&
14577           mv -f "$cache_file"$$ "$cache_file" ;; #(
14578         *)
14579           mv -f confcache "$cache_file" ;;
14580         esac
14581       fi
14582     fi
14583   else
14584     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14585 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14586   fi
14587 fi
14588 rm -f confcache
14589
14590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14591 # Let make expand exec_prefix.
14592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14593
14594 DEFS=-DHAVE_CONFIG_H
14595
14596 ac_libobjs=
14597 ac_ltlibobjs=
14598 U=
14599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14600   # 1. Remove the extension, and $U if already installed.
14601   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14602   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14603   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14604   #    will be set to the directory where LIBOBJS objects are built.
14605   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14606   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14607 done
14608 LIBOBJS=$ac_libobjs
14609
14610 LTLIBOBJS=$ac_ltlibobjs
14611
14612
14613
14614
14615 : "${CONFIG_STATUS=./config.status}"
14616 ac_write_fail=0
14617 ac_clean_files_save=$ac_clean_files
14618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14621 as_write_fail=0
14622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14623 #! $SHELL
14624 # Generated by $as_me.
14625 # Run this file to recreate the current configuration.
14626 # Compiler output produced by configure, useful for debugging
14627 # configure, is in config.log if it exists.
14628
14629 debug=false
14630 ac_cs_recheck=false
14631 ac_cs_silent=false
14632
14633 SHELL=\${CONFIG_SHELL-$SHELL}
14634 export SHELL
14635 _ASEOF
14636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14637 ## -------------------- ##
14638 ## M4sh Initialization. ##
14639 ## -------------------- ##
14640
14641 # Be more Bourne compatible
14642 DUALCASE=1; export DUALCASE # for MKS sh
14643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14644   emulate sh
14645   NULLCMD=:
14646   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14647   # is contrary to our usage.  Disable this feature.
14648   alias -g '${1+"$@"}'='"$@"'
14649   setopt NO_GLOB_SUBST
14650 else
14651   case `(set -o) 2>/dev/null` in #(
14652   *posix*) :
14653     set -o posix ;; #(
14654   *) :
14655      ;;
14656 esac
14657 fi
14658
14659
14660 as_nl='
14661 '
14662 export as_nl
14663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14664 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14667 # Prefer a ksh shell builtin over an external printf program on Solaris,
14668 # but without wasting forks for bash or zsh.
14669 if test -z "$BASH_VERSION$ZSH_VERSION" \
14670     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14671   as_echo='print -r --'
14672   as_echo_n='print -rn --'
14673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14674   as_echo='printf %s\n'
14675   as_echo_n='printf %s'
14676 else
14677   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14678     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14679     as_echo_n='/usr/ucb/echo -n'
14680   else
14681     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14682     as_echo_n_body='eval
14683       arg=$1;
14684       case $arg in #(
14685       *"$as_nl"*)
14686         expr "X$arg" : "X\\(.*\\)$as_nl";
14687         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14688       esac;
14689       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14690     '
14691     export as_echo_n_body
14692     as_echo_n='sh -c $as_echo_n_body as_echo'
14693   fi
14694   export as_echo_body
14695   as_echo='sh -c $as_echo_body as_echo'
14696 fi
14697
14698 # The user is always right.
14699 if test "${PATH_SEPARATOR+set}" != set; then
14700   PATH_SEPARATOR=:
14701   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14702     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14703       PATH_SEPARATOR=';'
14704   }
14705 fi
14706
14707
14708 # IFS
14709 # We need space, tab and new line, in precisely that order.  Quoting is
14710 # there to prevent editors from complaining about space-tab.
14711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14712 # splitting by setting IFS to empty value.)
14713 IFS=" ""        $as_nl"
14714
14715 # Find who we are.  Look in the path if we contain no directory separator.
14716 as_myself=
14717 case $0 in #((
14718   *[\\/]* ) as_myself=$0 ;;
14719   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14721 do
14722   IFS=$as_save_IFS
14723   test -z "$as_dir" && as_dir=.
14724     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14725   done
14726 IFS=$as_save_IFS
14727
14728      ;;
14729 esac
14730 # We did not find ourselves, most probably we were run as `sh COMMAND'
14731 # in which case we are not to be found in the path.
14732 if test "x$as_myself" = x; then
14733   as_myself=$0
14734 fi
14735 if test ! -f "$as_myself"; then
14736   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14737   exit 1
14738 fi
14739
14740 # Unset variables that we do not need and which cause bugs (e.g. in
14741 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14742 # suppresses any "Segmentation fault" message there.  '((' could
14743 # trigger a bug in pdksh 5.2.14.
14744 for as_var in BASH_ENV ENV MAIL MAILPATH
14745 do eval test x\${$as_var+set} = xset \
14746   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14747 done
14748 PS1='$ '
14749 PS2='> '
14750 PS4='+ '
14751
14752 # NLS nuisances.
14753 LC_ALL=C
14754 export LC_ALL
14755 LANGUAGE=C
14756 export LANGUAGE
14757
14758 # CDPATH.
14759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14760
14761
14762 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14763 # ----------------------------------------
14764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14766 # script with STATUS, using 1 if that was 0.
14767 as_fn_error ()
14768 {
14769   as_status=$1; test $as_status -eq 0 && as_status=1
14770   if test "$4"; then
14771     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14772     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14773   fi
14774   $as_echo "$as_me: error: $2" >&2
14775   as_fn_exit $as_status
14776 } # as_fn_error
14777
14778
14779 # as_fn_set_status STATUS
14780 # -----------------------
14781 # Set $? to STATUS, without forking.
14782 as_fn_set_status ()
14783 {
14784   return $1
14785 } # as_fn_set_status
14786
14787 # as_fn_exit STATUS
14788 # -----------------
14789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14790 as_fn_exit ()
14791 {
14792   set +e
14793   as_fn_set_status $1
14794   exit $1
14795 } # as_fn_exit
14796
14797 # as_fn_unset VAR
14798 # ---------------
14799 # Portably unset VAR.
14800 as_fn_unset ()
14801 {
14802   { eval $1=; unset $1;}
14803 }
14804 as_unset=as_fn_unset
14805 # as_fn_append VAR VALUE
14806 # ----------------------
14807 # Append the text in VALUE to the end of the definition contained in VAR. Take
14808 # advantage of any shell optimizations that allow amortized linear growth over
14809 # repeated appends, instead of the typical quadratic growth present in naive
14810 # implementations.
14811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14812   eval 'as_fn_append ()
14813   {
14814     eval $1+=\$2
14815   }'
14816 else
14817   as_fn_append ()
14818   {
14819     eval $1=\$$1\$2
14820   }
14821 fi # as_fn_append
14822
14823 # as_fn_arith ARG...
14824 # ------------------
14825 # Perform arithmetic evaluation on the ARGs, and store the result in the
14826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14827 # must be portable across $(()) and expr.
14828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14829   eval 'as_fn_arith ()
14830   {
14831     as_val=$(( $* ))
14832   }'
14833 else
14834   as_fn_arith ()
14835   {
14836     as_val=`expr "$@" || test $? -eq 1`
14837   }
14838 fi # as_fn_arith
14839
14840
14841 if expr a : '\(a\)' >/dev/null 2>&1 &&
14842    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14843   as_expr=expr
14844 else
14845   as_expr=false
14846 fi
14847
14848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14849   as_basename=basename
14850 else
14851   as_basename=false
14852 fi
14853
14854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14855   as_dirname=dirname
14856 else
14857   as_dirname=false
14858 fi
14859
14860 as_me=`$as_basename -- "$0" ||
14861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14862          X"$0" : 'X\(//\)$' \| \
14863          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14864 $as_echo X/"$0" |
14865     sed '/^.*\/\([^/][^/]*\)\/*$/{
14866             s//\1/
14867             q
14868           }
14869           /^X\/\(\/\/\)$/{
14870             s//\1/
14871             q
14872           }
14873           /^X\/\(\/\).*/{
14874             s//\1/
14875             q
14876           }
14877           s/.*/./; q'`
14878
14879 # Avoid depending upon Character Ranges.
14880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14883 as_cr_digits='0123456789'
14884 as_cr_alnum=$as_cr_Letters$as_cr_digits
14885
14886 ECHO_C= ECHO_N= ECHO_T=
14887 case `echo -n x` in #(((((
14888 -n*)
14889   case `echo 'xy\c'` in
14890   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14891   xy)  ECHO_C='\c';;
14892   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14893        ECHO_T=' ';;
14894   esac;;
14895 *)
14896   ECHO_N='-n';;
14897 esac
14898
14899 rm -f conf$$ conf$$.exe conf$$.file
14900 if test -d conf$$.dir; then
14901   rm -f conf$$.dir/conf$$.file
14902 else
14903   rm -f conf$$.dir
14904   mkdir conf$$.dir 2>/dev/null
14905 fi
14906 if (echo >conf$$.file) 2>/dev/null; then
14907   if ln -s conf$$.file conf$$ 2>/dev/null; then
14908     as_ln_s='ln -s'
14909     # ... but there are two gotchas:
14910     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14911     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14912     # In both cases, we have to default to `cp -pR'.
14913     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14914       as_ln_s='cp -pR'
14915   elif ln conf$$.file conf$$ 2>/dev/null; then
14916     as_ln_s=ln
14917   else
14918     as_ln_s='cp -pR'
14919   fi
14920 else
14921   as_ln_s='cp -pR'
14922 fi
14923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14924 rmdir conf$$.dir 2>/dev/null
14925
14926
14927 # as_fn_mkdir_p
14928 # -------------
14929 # Create "$as_dir" as a directory, including parents if necessary.
14930 as_fn_mkdir_p ()
14931 {
14932
14933   case $as_dir in #(
14934   -*) as_dir=./$as_dir;;
14935   esac
14936   test -d "$as_dir" || eval $as_mkdir_p || {
14937     as_dirs=
14938     while :; do
14939       case $as_dir in #(
14940       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14941       *) as_qdir=$as_dir;;
14942       esac
14943       as_dirs="'$as_qdir' $as_dirs"
14944       as_dir=`$as_dirname -- "$as_dir" ||
14945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946          X"$as_dir" : 'X\(//\)[^/]' \| \
14947          X"$as_dir" : 'X\(//\)$' \| \
14948          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14949 $as_echo X"$as_dir" |
14950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14951             s//\1/
14952             q
14953           }
14954           /^X\(\/\/\)[^/].*/{
14955             s//\1/
14956             q
14957           }
14958           /^X\(\/\/\)$/{
14959             s//\1/
14960             q
14961           }
14962           /^X\(\/\).*/{
14963             s//\1/
14964             q
14965           }
14966           s/.*/./; q'`
14967       test -d "$as_dir" && break
14968     done
14969     test -z "$as_dirs" || eval "mkdir $as_dirs"
14970   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14971
14972
14973 } # as_fn_mkdir_p
14974 if mkdir -p . 2>/dev/null; then
14975   as_mkdir_p='mkdir -p "$as_dir"'
14976 else
14977   test -d ./-p && rmdir ./-p
14978   as_mkdir_p=false
14979 fi
14980
14981
14982 # as_fn_executable_p FILE
14983 # -----------------------
14984 # Test if FILE is an executable regular file.
14985 as_fn_executable_p ()
14986 {
14987   test -f "$1" && test -x "$1"
14988 } # as_fn_executable_p
14989 as_test_x='test -x'
14990 as_executable_p=as_fn_executable_p
14991
14992 # Sed expression to map a string onto a valid CPP name.
14993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14994
14995 # Sed expression to map a string onto a valid variable name.
14996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14997
14998
14999 exec 6>&1
15000 ## ----------------------------------- ##
15001 ## Main body of $CONFIG_STATUS script. ##
15002 ## ----------------------------------- ##
15003 _ASEOF
15004 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15005
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 # Save the log message, to keep $0 and so on meaningful, and to
15008 # report actual input values of CONFIG_FILES etc. instead of their
15009 # values after options handling.
15010 ac_log="
15011 This file was extended by $as_me, which was
15012 generated by GNU Autoconf 2.69.  Invocation command line was
15013
15014   CONFIG_FILES    = $CONFIG_FILES
15015   CONFIG_HEADERS  = $CONFIG_HEADERS
15016   CONFIG_LINKS    = $CONFIG_LINKS
15017   CONFIG_COMMANDS = $CONFIG_COMMANDS
15018   $ $0 $@
15019
15020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15021 "
15022
15023 _ACEOF
15024
15025 case $ac_config_files in *"
15026 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15027 esac
15028
15029 case $ac_config_headers in *"
15030 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15031 esac
15032
15033
15034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15035 # Files that config.status was made for.
15036 config_files="$ac_config_files"
15037 config_headers="$ac_config_headers"
15038 config_commands="$ac_config_commands"
15039
15040 _ACEOF
15041
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 ac_cs_usage="\
15044 \`$as_me' instantiates files and other configuration actions
15045 from templates according to the current configuration.  Unless the files
15046 and actions are specified as TAGs, all are instantiated by default.
15047
15048 Usage: $0 [OPTION]... [TAG]...
15049
15050   -h, --help       print this help, then exit
15051   -V, --version    print version number and configuration settings, then exit
15052       --config     print configuration, then exit
15053   -q, --quiet, --silent
15054                    do not print progress messages
15055   -d, --debug      don't remove temporary files
15056       --recheck    update $as_me by reconfiguring in the same conditions
15057       --file=FILE[:TEMPLATE]
15058                    instantiate the configuration file FILE
15059       --header=FILE[:TEMPLATE]
15060                    instantiate the configuration header FILE
15061
15062 Configuration files:
15063 $config_files
15064
15065 Configuration headers:
15066 $config_headers
15067
15068 Configuration commands:
15069 $config_commands
15070
15071 Report bugs to the package provider."
15072
15073 _ACEOF
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15076 ac_cs_version="\\
15077 config.status
15078 configured by $0, generated by GNU Autoconf 2.69,
15079   with options \\"\$ac_cs_config\\"
15080
15081 Copyright (C) 2012 Free Software Foundation, Inc.
15082 This config.status script is free software; the Free Software Foundation
15083 gives unlimited permission to copy, distribute and modify it."
15084
15085 ac_pwd='$ac_pwd'
15086 srcdir='$srcdir'
15087 INSTALL='$INSTALL'
15088 MKDIR_P='$MKDIR_P'
15089 AWK='$AWK'
15090 test -n "\$AWK" || AWK=awk
15091 _ACEOF
15092
15093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15094 # The default lists apply if the user does not specify any file.
15095 ac_need_defaults=:
15096 while test $# != 0
15097 do
15098   case $1 in
15099   --*=?*)
15100     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15101     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15102     ac_shift=:
15103     ;;
15104   --*=)
15105     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15106     ac_optarg=
15107     ac_shift=:
15108     ;;
15109   *)
15110     ac_option=$1
15111     ac_optarg=$2
15112     ac_shift=shift
15113     ;;
15114   esac
15115
15116   case $ac_option in
15117   # Handling of the options.
15118   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15119     ac_cs_recheck=: ;;
15120   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15121     $as_echo "$ac_cs_version"; exit ;;
15122   --config | --confi | --conf | --con | --co | --c )
15123     $as_echo "$ac_cs_config"; exit ;;
15124   --debug | --debu | --deb | --de | --d | -d )
15125     debug=: ;;
15126   --file | --fil | --fi | --f )
15127     $ac_shift
15128     case $ac_optarg in
15129     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15130     '') as_fn_error $? "missing file argument" ;;
15131     esac
15132     as_fn_append CONFIG_FILES " '$ac_optarg'"
15133     ac_need_defaults=false;;
15134   --header | --heade | --head | --hea )
15135     $ac_shift
15136     case $ac_optarg in
15137     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15138     esac
15139     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15140     ac_need_defaults=false;;
15141   --he | --h)
15142     # Conflict between --help and --header
15143     as_fn_error $? "ambiguous option: \`$1'
15144 Try \`$0 --help' for more information.";;
15145   --help | --hel | -h )
15146     $as_echo "$ac_cs_usage"; exit ;;
15147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15149     ac_cs_silent=: ;;
15150
15151   # This is an error.
15152   -*) as_fn_error $? "unrecognized option: \`$1'
15153 Try \`$0 --help' for more information." ;;
15154
15155   *) as_fn_append ac_config_targets " $1"
15156      ac_need_defaults=false ;;
15157
15158   esac
15159   shift
15160 done
15161
15162 ac_configure_extra_args=
15163
15164 if $ac_cs_silent; then
15165   exec 6>/dev/null
15166   ac_configure_extra_args="$ac_configure_extra_args --silent"
15167 fi
15168
15169 _ACEOF
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 if \$ac_cs_recheck; then
15172   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15173   shift
15174   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15175   CONFIG_SHELL='$SHELL'
15176   export CONFIG_SHELL
15177   exec "\$@"
15178 fi
15179
15180 _ACEOF
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182 exec 5>>config.log
15183 {
15184   echo
15185   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15186 ## Running $as_me. ##
15187 _ASBOX
15188   $as_echo "$ac_log"
15189 } >&5
15190
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 #
15194 # INIT-COMMANDS
15195 #
15196 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15197     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15198     # from automake < 1.5.
15199     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15200     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15201     LINGUAS="${LINGUAS-%UNSET%}"
15202
15203
15204 _ACEOF
15205
15206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15207
15208 # Handling of arguments.
15209 for ac_config_target in $ac_config_targets
15210 do
15211   case $ac_config_target in
15212     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15213     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15214     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15215
15216   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15217   esac
15218 done
15219
15220
15221 # If the user did not use the arguments to specify the items to instantiate,
15222 # then the envvar interface is used.  Set only those that are not.
15223 # We use the long form for the default assignment because of an extremely
15224 # bizarre bug on SunOS 4.1.3.
15225 if $ac_need_defaults; then
15226   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15227   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15228   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15229 fi
15230
15231 # Have a temporary directory for convenience.  Make it in the build tree
15232 # simply because there is no reason against having it here, and in addition,
15233 # creating and moving files from /tmp can sometimes cause problems.
15234 # Hook for its removal unless debugging.
15235 # Note that there is a small window in which the directory will not be cleaned:
15236 # after its creation but before its name has been assigned to `$tmp'.
15237 $debug ||
15238 {
15239   tmp= ac_tmp=
15240   trap 'exit_status=$?
15241   : "${ac_tmp:=$tmp}"
15242   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15243 ' 0
15244   trap 'as_fn_exit 1' 1 2 13 15
15245 }
15246 # Create a (secure) tmp directory for tmp files.
15247
15248 {
15249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15250   test -d "$tmp"
15251 }  ||
15252 {
15253   tmp=./conf$$-$RANDOM
15254   (umask 077 && mkdir "$tmp")
15255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15256 ac_tmp=$tmp
15257
15258 # Set up the scripts for CONFIG_FILES section.
15259 # No need to generate them if there are no CONFIG_FILES.
15260 # This happens for instance with `./config.status config.h'.
15261 if test -n "$CONFIG_FILES"; then
15262
15263 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15264   ac_cs_awk_getline=:
15265   ac_cs_awk_pipe_init=
15266   ac_cs_awk_read_file='
15267       while ((getline aline < (F[key])) > 0)
15268         print(aline)
15269       close(F[key])'
15270   ac_cs_awk_pipe_fini=
15271 else
15272   ac_cs_awk_getline=false
15273   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15274   ac_cs_awk_read_file='
15275       print "|#_!!_#|"
15276       print "cat " F[key] " &&"
15277       '$ac_cs_awk_pipe_init
15278   # The final `:' finishes the AND list.
15279   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15280 fi
15281 ac_cr=`echo X | tr X '\015'`
15282 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15283 # But we know of no other shell where ac_cr would be empty at this
15284 # point, so we can use a bashism as a fallback.
15285 if test "x$ac_cr" = x; then
15286   eval ac_cr=\$\'\\r\'
15287 fi
15288 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15289 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15290   ac_cs_awk_cr='\\r'
15291 else
15292   ac_cs_awk_cr=$ac_cr
15293 fi
15294
15295 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15296 _ACEOF
15297
15298 # Create commands to substitute file output variables.
15299 {
15300   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15301   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15302   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15303   echo "_ACAWK" &&
15304   echo "_ACEOF"
15305 } >conf$$files.sh &&
15306 . ./conf$$files.sh ||
15307   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15308 rm -f conf$$files.sh
15309
15310 {
15311   echo "cat >conf$$subs.awk <<_ACEOF" &&
15312   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15313   echo "_ACEOF"
15314 } >conf$$subs.sh ||
15315   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15317 ac_delim='%!_!# '
15318 for ac_last_try in false false false false false :; do
15319   . ./conf$$subs.sh ||
15320     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15321
15322   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15323   if test $ac_delim_n = $ac_delim_num; then
15324     break
15325   elif $ac_last_try; then
15326     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15327   else
15328     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15329   fi
15330 done
15331 rm -f conf$$subs.sh
15332
15333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15335 _ACEOF
15336 sed -n '
15337 h
15338 s/^/S["/; s/!.*/"]=/
15339 p
15340 g
15341 s/^[^!]*!//
15342 :repl
15343 t repl
15344 s/'"$ac_delim"'$//
15345 t delim
15346 :nl
15347 h
15348 s/\(.\{148\}\)..*/\1/
15349 t more1
15350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15351 p
15352 n
15353 b repl
15354 :more1
15355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15356 p
15357 g
15358 s/.\{148\}//
15359 t nl
15360 :delim
15361 h
15362 s/\(.\{148\}\)..*/\1/
15363 t more2
15364 s/["\\]/\\&/g; s/^/"/; s/$/"/
15365 p
15366 b
15367 :more2
15368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15369 p
15370 g
15371 s/.\{148\}//
15372 t delim
15373 ' <conf$$subs.awk | sed '
15374 /^[^""]/{
15375   N
15376   s/\n//
15377 }
15378 ' >>$CONFIG_STATUS || ac_write_fail=1
15379 rm -f conf$$subs.awk
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381 _ACAWK
15382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15383   for (key in S) S_is_set[key] = 1
15384   FS = "\a"
15385   \$ac_cs_awk_pipe_init
15386 }
15387 {
15388   line = $ 0
15389   nfields = split(line, field, "@")
15390   substed = 0
15391   len = length(field[1])
15392   for (i = 2; i < nfields; i++) {
15393     key = field[i]
15394     keylen = length(key)
15395     if (S_is_set[key]) {
15396       value = S[key]
15397       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15398       len += length(value) + length(field[++i])
15399       substed = 1
15400     } else
15401       len += 1 + keylen
15402   }
15403   if (nfields == 3 && !substed) {
15404     key = field[2]
15405     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15406       \$ac_cs_awk_read_file
15407       next
15408     }
15409   }
15410   print line
15411 }
15412 \$ac_cs_awk_pipe_fini
15413 _ACAWK
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15417   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15418 else
15419   cat
15420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15421   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15422 _ACEOF
15423
15424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15426 # trailing colons and then remove the whole line if VPATH becomes empty
15427 # (actually we leave an empty line to preserve line numbers).
15428 if test "x$srcdir" = x.; then
15429   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15430 h
15431 s///
15432 s/^/:/
15433 s/[      ]*$/:/
15434 s/:\$(srcdir):/:/g
15435 s/:\${srcdir}:/:/g
15436 s/:@srcdir@:/:/g
15437 s/^:*//
15438 s/:*$//
15439 x
15440 s/\(=[   ]*\).*/\1/
15441 G
15442 s/\n//
15443 s/^[^=]*=[       ]*$//
15444 }'
15445 fi
15446
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448 fi # test -n "$CONFIG_FILES"
15449
15450 # Set up the scripts for CONFIG_HEADERS section.
15451 # No need to generate them if there are no CONFIG_HEADERS.
15452 # This happens for instance with `./config.status Makefile'.
15453 if test -n "$CONFIG_HEADERS"; then
15454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15455 BEGIN {
15456 _ACEOF
15457
15458 # Transform confdefs.h into an awk script `defines.awk', embedded as
15459 # here-document in config.status, that substitutes the proper values into
15460 # config.h.in to produce config.h.
15461
15462 # Create a delimiter string that does not exist in confdefs.h, to ease
15463 # handling of long lines.
15464 ac_delim='%!_!# '
15465 for ac_last_try in false false :; do
15466   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15467   if test -z "$ac_tt"; then
15468     break
15469   elif $ac_last_try; then
15470     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15471   else
15472     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15473   fi
15474 done
15475
15476 # For the awk script, D is an array of macro values keyed by name,
15477 # likewise P contains macro parameters if any.  Preserve backslash
15478 # newline sequences.
15479
15480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15481 sed -n '
15482 s/.\{148\}/&'"$ac_delim"'/g
15483 t rset
15484 :rset
15485 s/^[     ]*#[    ]*define[       ][      ]*/ /
15486 t def
15487 d
15488 :def
15489 s/\\$//
15490 t bsnl
15491 s/["\\]/\\&/g
15492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15493 D["\1"]=" \3"/p
15494 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15495 d
15496 :bsnl
15497 s/["\\]/\\&/g
15498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15499 D["\1"]=" \3\\\\\\n"\\/p
15500 t cont
15501 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15502 t cont
15503 d
15504 :cont
15505 n
15506 s/.\{148\}/&'"$ac_delim"'/g
15507 t clear
15508 :clear
15509 s/\\$//
15510 t bsnlc
15511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15512 d
15513 :bsnlc
15514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15515 b cont
15516 ' <confdefs.h | sed '
15517 s/'"$ac_delim"'/"\\\
15518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15519
15520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521   for (key in D) D_is_set[key] = 1
15522   FS = "\a"
15523 }
15524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15525   line = \$ 0
15526   split(line, arg, " ")
15527   if (arg[1] == "#") {
15528     defundef = arg[2]
15529     mac1 = arg[3]
15530   } else {
15531     defundef = substr(arg[1], 2)
15532     mac1 = arg[2]
15533   }
15534   split(mac1, mac2, "(") #)
15535   macro = mac2[1]
15536   prefix = substr(line, 1, index(line, defundef) - 1)
15537   if (D_is_set[macro]) {
15538     # Preserve the white space surrounding the "#".
15539     print prefix "define", macro P[macro] D[macro]
15540     next
15541   } else {
15542     # Replace #undef with comments.  This is necessary, for example,
15543     # in the case of _POSIX_SOURCE, which is predefined and required
15544     # on some systems where configure will not decide to define it.
15545     if (defundef == "undef") {
15546       print "/*", prefix defundef, macro, "*/"
15547       next
15548     }
15549   }
15550 }
15551 { print }
15552 _ACAWK
15553 _ACEOF
15554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15555   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15556 fi # test -n "$CONFIG_HEADERS"
15557
15558
15559 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15560 shift
15561 for ac_tag
15562 do
15563   case $ac_tag in
15564   :[FHLC]) ac_mode=$ac_tag; continue;;
15565   esac
15566   case $ac_mode$ac_tag in
15567   :[FHL]*:*);;
15568   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15569   :[FH]-) ac_tag=-:-;;
15570   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15571   esac
15572   ac_save_IFS=$IFS
15573   IFS=:
15574   set x $ac_tag
15575   IFS=$ac_save_IFS
15576   shift
15577   ac_file=$1
15578   shift
15579
15580   case $ac_mode in
15581   :L) ac_source=$1;;
15582   :[FH])
15583     ac_file_inputs=
15584     for ac_f
15585     do
15586       case $ac_f in
15587       -) ac_f="$ac_tmp/stdin";;
15588       *) # Look for the file first in the build tree, then in the source tree
15589          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15590          # because $ac_f cannot contain `:'.
15591          test -f "$ac_f" ||
15592            case $ac_f in
15593            [\\/$]*) false;;
15594            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15595            esac ||
15596            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15597       esac
15598       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15599       as_fn_append ac_file_inputs " '$ac_f'"
15600     done
15601
15602     # Let's still pretend it is `configure' which instantiates (i.e., don't
15603     # use $as_me), people would be surprised to read:
15604     #    /* config.h.  Generated by config.status.  */
15605     configure_input='Generated from '`
15606           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15607         `' by configure.'
15608     if test x"$ac_file" != x-; then
15609       configure_input="$ac_file.  $configure_input"
15610       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15611 $as_echo "$as_me: creating $ac_file" >&6;}
15612     fi
15613     # Neutralize special characters interpreted by sed in replacement strings.
15614     case $configure_input in #(
15615     *\&* | *\|* | *\\* )
15616        ac_sed_conf_input=`$as_echo "$configure_input" |
15617        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15618     *) ac_sed_conf_input=$configure_input;;
15619     esac
15620
15621     case $ac_tag in
15622     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15623       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15624     esac
15625     ;;
15626   esac
15627
15628   ac_dir=`$as_dirname -- "$ac_file" ||
15629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630          X"$ac_file" : 'X\(//\)[^/]' \| \
15631          X"$ac_file" : 'X\(//\)$' \| \
15632          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15633 $as_echo X"$ac_file" |
15634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15635             s//\1/
15636             q
15637           }
15638           /^X\(\/\/\)[^/].*/{
15639             s//\1/
15640             q
15641           }
15642           /^X\(\/\/\)$/{
15643             s//\1/
15644             q
15645           }
15646           /^X\(\/\).*/{
15647             s//\1/
15648             q
15649           }
15650           s/.*/./; q'`
15651   as_dir="$ac_dir"; as_fn_mkdir_p
15652   ac_builddir=.
15653
15654 case "$ac_dir" in
15655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15656 *)
15657   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15658   # A ".." for each directory in $ac_dir_suffix.
15659   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15660   case $ac_top_builddir_sub in
15661   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15662   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15663   esac ;;
15664 esac
15665 ac_abs_top_builddir=$ac_pwd
15666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15667 # for backward compatibility:
15668 ac_top_builddir=$ac_top_build_prefix
15669
15670 case $srcdir in
15671   .)  # We are building in place.
15672     ac_srcdir=.
15673     ac_top_srcdir=$ac_top_builddir_sub
15674     ac_abs_top_srcdir=$ac_pwd ;;
15675   [\\/]* | ?:[\\/]* )  # Absolute name.
15676     ac_srcdir=$srcdir$ac_dir_suffix;
15677     ac_top_srcdir=$srcdir
15678     ac_abs_top_srcdir=$srcdir ;;
15679   *) # Relative name.
15680     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15681     ac_top_srcdir=$ac_top_build_prefix$srcdir
15682     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15683 esac
15684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15685
15686
15687   case $ac_mode in
15688   :F)
15689   #
15690   # CONFIG_FILE
15691   #
15692
15693   case $INSTALL in
15694   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15695   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15696   esac
15697   ac_MKDIR_P=$MKDIR_P
15698   case $MKDIR_P in
15699   [\\/$]* | ?:[\\/]* ) ;;
15700   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15701   esac
15702 _ACEOF
15703
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 # If the template does not know about datarootdir, expand it.
15706 # FIXME: This hack should be removed a few years after 2.60.
15707 ac_datarootdir_hack=; ac_datarootdir_seen=
15708 ac_sed_dataroot='
15709 /datarootdir/ {
15710   p
15711   q
15712 }
15713 /@datadir@/p
15714 /@docdir@/p
15715 /@infodir@/p
15716 /@localedir@/p
15717 /@mandir@/p'
15718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719 *datarootdir*) ac_datarootdir_seen=yes;;
15720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15723 _ACEOF
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725   ac_datarootdir_hack='
15726   s&@datadir@&$datadir&g
15727   s&@docdir@&$docdir&g
15728   s&@infodir@&$infodir&g
15729   s&@localedir@&$localedir&g
15730   s&@mandir@&$mandir&g
15731   s&\\\${datarootdir}&$datarootdir&g' ;;
15732 esac
15733 _ACEOF
15734
15735 # Neutralize VPATH when `$srcdir' = `.'.
15736 # Shell code in configure.ac might set extrasub.
15737 # FIXME: do we really want to maintain this feature?
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 ac_sed_extra="$ac_vpsub
15740 $extrasub
15741 _ACEOF
15742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15743 :t
15744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15745 s|@configure_input@|$ac_sed_conf_input|;t t
15746 s&@top_builddir@&$ac_top_builddir_sub&;t t
15747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748 s&@srcdir@&$ac_srcdir&;t t
15749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750 s&@top_srcdir@&$ac_top_srcdir&;t t
15751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752 s&@builddir@&$ac_builddir&;t t
15753 s&@abs_builddir@&$ac_abs_builddir&;t t
15754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755 s&@INSTALL@&$ac_INSTALL&;t t
15756 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15757 $ac_datarootdir_hack
15758 "
15759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15760 if $ac_cs_awk_getline; then
15761   $AWK -f "$ac_tmp/subs.awk"
15762 else
15763   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15764 fi \
15765   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15766
15767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15768   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15769   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15770       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15771   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15772 which seems to be undefined.  Please make sure it is defined" >&5
15773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15774 which seems to be undefined.  Please make sure it is defined" >&2;}
15775
15776   rm -f "$ac_tmp/stdin"
15777   case $ac_file in
15778   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15779   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15780   esac \
15781   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15782  ;;
15783   :H)
15784   #
15785   # CONFIG_HEADER
15786   #
15787   if test x"$ac_file" != x-; then
15788     {
15789       $as_echo "/* $configure_input  */" \
15790       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15791     } >"$ac_tmp/config.h" \
15792       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15793     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15794       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15795 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15796     else
15797       rm -f "$ac_file"
15798       mv "$ac_tmp/config.h" "$ac_file" \
15799         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15800     fi
15801   else
15802     $as_echo "/* $configure_input  */" \
15803       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15804       || as_fn_error $? "could not create -" "$LINENO" 5
15805   fi
15806  ;;
15807
15808   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15809 $as_echo "$as_me: executing $ac_file commands" >&6;}
15810  ;;
15811   esac
15812
15813
15814   case $ac_file$ac_mode in
15815     "po-directories":C)
15816     for ac_file in $CONFIG_FILES; do
15817       # Support "outfile[:infile[:infile...]]"
15818       case "$ac_file" in
15819         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15820       esac
15821       # PO directories have a Makefile.in generated from Makefile.in.in.
15822       case "$ac_file" in */Makefile.in)
15823         # Adjust a relative srcdir.
15824         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15825         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15826         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15827         # In autoconf-2.13 it is called $ac_given_srcdir.
15828         # In autoconf-2.50 it is called $srcdir.
15829         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15830         case "$ac_given_srcdir" in
15831           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15832           /*) top_srcdir="$ac_given_srcdir" ;;
15833           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15834         esac
15835         # Treat a directory as a PO directory if and only if it has a
15836         # POTFILES.in file. This allows packages to have multiple PO
15837         # directories under different names or in different locations.
15838         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15839           rm -f "$ac_dir/POTFILES"
15840           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15841           gt_tab=`printf '\t'`
15842           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"
15843           POMAKEFILEDEPS="POTFILES.in"
15844           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15845           # on $ac_dir but don't depend on user-specified configuration
15846           # parameters.
15847           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15848             # The LINGUAS file contains the set of available languages.
15849             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15850               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15851             fi
15852             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15853             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15854             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15855             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15856           else
15857             # The set of available languages was given in configure.in.
15858             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15859             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15860           fi
15861           # Compute POFILES
15862           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15863           # Compute UPDATEPOFILES
15864           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15865           # Compute DUMMYPOFILES
15866           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15867           # Compute GMOFILES
15868           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15869           case "$ac_given_srcdir" in
15870             .) srcdirpre= ;;
15871             *) srcdirpre='$(srcdir)/' ;;
15872           esac
15873           POFILES=
15874           UPDATEPOFILES=
15875           DUMMYPOFILES=
15876           GMOFILES=
15877           for lang in $ALL_LINGUAS; do
15878             POFILES="$POFILES $srcdirpre$lang.po"
15879             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15880             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15881             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15882           done
15883           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15884           # environment variable.
15885           INST_LINGUAS=
15886           if test -n "$ALL_LINGUAS"; then
15887             for presentlang in $ALL_LINGUAS; do
15888               useit=no
15889               if test "%UNSET%" != "$LINGUAS"; then
15890                 desiredlanguages="$LINGUAS"
15891               else
15892                 desiredlanguages="$ALL_LINGUAS"
15893               fi
15894               for desiredlang in $desiredlanguages; do
15895                 # Use the presentlang catalog if desiredlang is
15896                 #   a. equal to presentlang, or
15897                 #   b. a variant of presentlang (because in this case,
15898                 #      presentlang can be used as a fallback for messages
15899                 #      which are not translated in the desiredlang catalog).
15900                 case "$desiredlang" in
15901                   "$presentlang"*) useit=yes;;
15902                 esac
15903               done
15904               if test $useit = yes; then
15905                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15906               fi
15907             done
15908           fi
15909           CATALOGS=
15910           if test -n "$INST_LINGUAS"; then
15911             for lang in $INST_LINGUAS; do
15912               CATALOGS="$CATALOGS $lang.gmo"
15913             done
15914           fi
15915           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15916           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"
15917           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15918             if test -f "$f"; then
15919               case "$f" in
15920                 *.orig | *.bak | *~) ;;
15921                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15922               esac
15923             fi
15924           done
15925         fi
15926         ;;
15927       esac
15928     done ;;
15929
15930   esac
15931 done # for ac_tag
15932
15933
15934 as_fn_exit 0
15935 _ACEOF
15936 ac_clean_files=$ac_clean_files_save
15937
15938 test $ac_write_fail = 0 ||
15939   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15940
15941
15942 # configure is writing to config.log, and then calls config.status.
15943 # config.status does its own redirection, appending to config.log.
15944 # Unfortunately, on DOS this fails, as config.log is still kept open
15945 # by configure, so config.status won't be able to write to it; its
15946 # output is simply discarded.  So we exec the FD to /dev/null,
15947 # effectively closing config.log, so it can be properly (re)opened and
15948 # appended to by config.status.  When coming back to configure, we
15949 # need to make the FD available again.
15950 if test "$no_create" != yes; then
15951   ac_cs_success=:
15952   ac_config_status_args=
15953   test "$silent" = yes &&
15954     ac_config_status_args="$ac_config_status_args --quiet"
15955   exec 5>/dev/null
15956   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15957   exec 5>>config.log
15958   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15959   # would make configure fail if this is the last instruction.
15960   $ac_cs_success || as_fn_exit 1
15961 fi
15962 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15964 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15965 fi
15966
15967 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi