Whamcloud - gitweb
e2scrub: add service (cron, systemd) support
[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 MKINSTALLDIRS
644 INCLUDES
645 DO_TEST_SUITE
646 LDFLAGS_STATIC
647 root_sysconfdir
648 root_libdir
649 root_sbindir
650 root_bindir
651 root_prefix
652 E2SCRUB_CMT
653 UNIX_CMT
654 CYGWIN_CMT
655 LINUX_CMT
656 UNI_DIFF_OPTS
657 SEM_INIT_LIB
658 FUSE_CMT
659 FUSE_LIB
660 CLOCK_GETTIME_LIB
661 MAGIC_LIB
662 SOCKET_LIB
663 SIZEOF_TIME_T
664 SIZEOF_OFF_T
665 SIZEOF_LONG_LONG
666 SIZEOF_LONG
667 SIZEOF_INT
668 SIZEOF_SHORT
669 DD
670 BUILD_CC
671 MAKEINFO
672 STRIP
673 AR
674 LDCONFIG
675 PERL
676 AWK
677 CHMOD
678 RM
679 CP
680 MV
681 LN_S
682 LN
683 ifNotGNUmake
684 ifGNUmake
685 BINARY_TYPE
686 POSUB
687 LTLIBINTL
688 LIBINTL
689 INTLLIBS
690 INTL_LIBTOOL_SUFFIX_PREFIX
691 INTLOBJS
692 GENCAT
693 INSTOBJEXT
694 DATADIRNAME
695 CATOBJEXT
696 USE_INCLUDED_LIBINTL
697 BUILD_INCLUDED_LIBINTL
698 LTLIBC
699 WINDRES
700 WOE32
701 WOE32DLL
702 HAVE_WPRINTF
703 HAVE_NEWLOCALE
704 HAVE_SNPRINTF
705 HAVE_ASPRINTF
706 HAVE_POSIX_PRINTF
707 INTL_DEFAULT_VERBOSITY
708 INTL_MACOSX_LIBS
709 GLIBC21
710 INTLBISON
711 LTLIBICONV
712 LIBICONV
713 LTLIBMULTITHREAD
714 LIBMULTITHREAD
715 LTLIBTHREAD
716 LIBTHREAD
717 LIBPTH_PREFIX
718 LTLIBPTH
719 LIBPTH
720 PRI_MACROS_BROKEN
721 ALLOCA
722 HAVE_VISIBILITY
723 CFLAG_VISIBILITY
724 RANLIB
725 GLIBC2
726 XGETTEXT_EXTRA_OPTIONS
727 MSGMERGE
728 XGETTEXT_015
729 XGETTEXT
730 GMSGFMT_015
731 MSGFMT_015
732 GMSGFMT
733 MSGFMT
734 GETTEXT_MACRO_VERSION
735 USE_NLS
736 SED
737 MKDIR_P
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 SET_MAKE
742 VERSION
743 PACKAGE
744 GETTEXT_PACKAGE
745 TDB_MAN_COMMENT
746 TDB_CMT
747 UUIDD_CMT
748 E2INITRD_MAN
749 E2INITRD_PROG
750 FSCK_MAN
751 FSCK_PROG
752 DEFRAG_CMT
753 RESIZER_CMT
754 IMAGER_CMT
755 DEBUGFS_CMT
756 BLKID_CMT
757 DEPPROFILED_LIBBLKID
758 PROFILED_LIBBLKID
759 DEPSTATIC_LIBBLKID
760 STATIC_LIBBLKID
761 DEPLIBBLKID
762 LIBBLKID
763 UUID_CMT
764 DEPPROFILED_LIBUUID
765 PROFILED_LIBUUID
766 DEPSTATIC_LIBUUID
767 STATIC_LIBUUID
768 DEPLIBUUID
769 LIBUUID
770 PKG_CONFIG_LIBDIR
771 PKG_CONFIG_PATH
772 PKG_CONFIG
773 TEST_IO_CMT
774 PRIVATE_LIBS_CMT
775 LDFLAG_DYNAMIC
776 PROFILED_LIB_EXT
777 STATIC_LIB_EXT
778 LIB_EXT
779 PROFILE_CMT
780 BSDLIB_CMT
781 ELF_CMT
782 Q
783 ES
784 E
785 LINK_BUILD_FLAGS
786 SYMLINK_RELATIVE
787 LINK_INSTALL_FLAGS
788 MAINTAINER_CMT
789 EGREP
790 GREP
791 CPP
792 RDYNAMIC
793 DLOPEN_LIB
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 E2FSPROGS_DATE
810 E2FSPROGS_PKGVER
811 E2FSPROGS_VERSION
812 E2FSPROGS_DAY
813 E2FSPROGS_MONTH
814 E2FSPROGS_YEAR
815 target_alias
816 host_alias
817 build_alias
818 LIBS
819 ECHO_T
820 ECHO_N
821 ECHO_C
822 DEFS
823 mandir
824 localedir
825 libdir
826 psdir
827 pdfdir
828 dvidir
829 htmldir
830 infodir
831 docdir
832 oldincludedir
833 includedir
834 runstatedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='MCONFIG
855 MAKEFILE_ELF
856 MAKEFILE_BSDLIB
857 MAKEFILE_PROFILE
858 MAKEFILE_LIBRARY
859 ASM_TYPES_HEADER
860 PUBLIC_CONFIG_HEADER'
861 ac_user_opts='
862 enable_option_checking
863 with_diet_libc
864 with_cc
865 with_ccopts
866 with_ldopts
867 with_root_prefix
868 enable_maintainer_mode
869 enable_symlink_install
870 enable_relative_symlinks
871 enable_symlink_relative_symlinks
872 enable_symlink_build
873 enable_verbose_makecmds
874 enable_elf_shlibs
875 enable_bsd_shlibs
876 enable_profile
877 enable_gcov
878 enable_hardening
879 enable_jbd_debug
880 enable_blkid_debug
881 enable_testio_debug
882 enable_libuuid
883 enable_libblkid
884 enable_backtrace
885 enable_debugfs
886 enable_imager
887 enable_resizer
888 enable_defrag
889 enable_fsck
890 enable_e2initrd_helper
891 enable_tls
892 enable_uuidd
893 enable_mmp
894 enable_tdb
895 enable_bmap_stats
896 enable_bmap_stats_ops
897 enable_nls
898 enable_threads
899 with_gnu_ld
900 enable_rpath
901 with_libpth_prefix
902 with_libiconv_prefix
903 with_included_gettext
904 with_libintl_prefix
905 enable_fuse2fs
906 with_multiarch
907 with_udev_rules_dir
908 with_crond_dir
909 with_systemd_unit_dir
910 '
911       ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP
920 PKG_CONFIG
921 PKG_CONFIG_PATH
922 PKG_CONFIG_LIBDIR
923 udev_CFLAGS
924 udev_LIBS
925 systemd_CFLAGS
926 systemd_LIBS'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 ac_unrecognized_opts=
933 ac_unrecognized_sep=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
936 cache_file=/dev/null
937 exec_prefix=NONE
938 no_create=
939 no_recursion=
940 prefix=NONE
941 program_prefix=NONE
942 program_suffix=NONE
943 program_transform_name=s,x,x,
944 silent=
945 site=
946 srcdir=
947 verbose=
948 x_includes=NONE
949 x_libraries=NONE
950
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 runstatedir='${localstatedir}/run'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *=)   ac_optarg= ;;
992   *)    ac_optarg=yes ;;
993   esac
994
995   # Accept the important Cygnus configure options, so we can diagnose typos.
996
997   case $ac_dashdash$ac_option in
998   --)
999     ac_dashdash=yes ;;
1000
1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002     ac_prev=bindir ;;
1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004     bindir=$ac_optarg ;;
1005
1006   -build | --build | --buil | --bui | --bu)
1007     ac_prev=build_alias ;;
1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009     build_alias=$ac_optarg ;;
1010
1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013     ac_prev=cache_file ;;
1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016     cache_file=$ac_optarg ;;
1017
1018   --config-cache | -C)
1019     cache_file=config.cache ;;
1020
1021   -datadir | --datadir | --datadi | --datad)
1022     ac_prev=datadir ;;
1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024     datadir=$ac_optarg ;;
1025
1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027   | --dataroo | --dataro | --datar)
1028     ac_prev=datarootdir ;;
1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031     datarootdir=$ac_optarg ;;
1032
1033   -disable-* | --disable-*)
1034     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037       as_fn_error $? "invalid feature name: $ac_useropt"
1038     ac_useropt_orig=$ac_useropt
1039     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040     case $ac_user_opts in
1041       *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045          ac_unrecognized_sep=', ';;
1046     esac
1047     eval enable_$ac_useropt=no ;;
1048
1049   -docdir | --docdir | --docdi | --doc | --do)
1050     ac_prev=docdir ;;
1051   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052     docdir=$ac_optarg ;;
1053
1054   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055     ac_prev=dvidir ;;
1056   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057     dvidir=$ac_optarg ;;
1058
1059   -enable-* | --enable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error $? "invalid feature name: $ac_useropt"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -runstatedir | --runstatedir | --runstatedi | --runstated \
1219   | --runstate | --runstat | --runsta | --runst | --runs \
1220   | --run | --ru | --r)
1221     ac_prev=runstatedir ;;
1222   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1223   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1224   | --run=* | --ru=* | --r=*)
1225     runstatedir=$ac_optarg ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       as_fn_error $? "invalid package name: $ac_useropt"
1277     ac_useropt_orig=$ac_useropt
1278     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279     case $ac_user_opts in
1280       *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284          ac_unrecognized_sep=', ';;
1285     esac
1286     eval with_$ac_useropt=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292       as_fn_error $? "invalid package name: $ac_useropt"
1293     ac_useropt_orig=$ac_useropt
1294     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295     case $ac_user_opts in
1296       *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300          ac_unrecognized_sep=', ';;
1301     esac
1302     eval with_$ac_useropt=no ;;
1303
1304   --x)
1305     # Obsolete; use --with-x.
1306     with_x=yes ;;
1307
1308   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309   | --x-incl | --x-inc | --x-in | --x-i)
1310     ac_prev=x_includes ;;
1311   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313     x_includes=$ac_optarg ;;
1314
1315   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317     ac_prev=x_libraries ;;
1318   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320     x_libraries=$ac_optarg ;;
1321
1322   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1324     ;;
1325
1326   *=*)
1327     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328     # Reject names that are not valid shell variable names.
1329     case $ac_envvar in #(
1330       '' | [0-9]* | *[!_$as_cr_alnum]* )
1331       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1332     esac
1333     eval $ac_envvar=\$ac_optarg
1334     export $ac_envvar ;;
1335
1336   *)
1337     # FIXME: should be removed in autoconf 3.0.
1338     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1342     ;;
1343
1344   esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349   as_fn_error $? "missing argument to $ac_option"
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353   case $enable_option_checking in
1354     no) ;;
1355     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357   esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir runstatedir
1365 do
1366   eval ac_val=\$$ac_var
1367   # Remove trailing slashes.
1368   case $ac_val in
1369     */ )
1370       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371       eval $ac_var=\$ac_val;;
1372   esac
1373   # Be sure to have absolute directory names.
1374   case $ac_val in
1375     [\\/$]* | ?:[\\/]* )  continue;;
1376     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377   esac
1378   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390   if test "x$build_alias" = x; then
1391     cross_compiling=maybe
1392   elif test "x$build_alias" != "x$host_alias"; then
1393     cross_compiling=yes
1394   fi
1395 fi
1396
1397 ac_tool_prefix=
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399
1400 test "$silent" = yes && exec 6>/dev/null
1401
1402
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406   as_fn_error $? "working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408   as_fn_error $? "pwd does not report name of working directory"
1409
1410
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413   ac_srcdir_defaulted=yes
1414   # Try the directory containing this script, then the parent directory.
1415   ac_confdir=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417          X"$as_myself" : 'X\(//\)[^/]' \| \
1418          X"$as_myself" : 'X\(//\)$' \| \
1419          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)[^/].*/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\).*/{
1434             s//\1/
1435             q
1436           }
1437           s/.*/./; q'`
1438   srcdir=$ac_confdir
1439   if test ! -r "$srcdir/$ac_unique_file"; then
1440     srcdir=..
1441   fi
1442 else
1443   ac_srcdir_defaulted=no
1444 fi
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1448 fi
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1452         pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455   srcdir=.
1456 fi
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_env_${ac_var}_value=\$${ac_var}
1466   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1469
1470 #
1471 # Report the --help message.
1472 #
1473 if test "$ac_init_help" = "long"; then
1474   # Omit some internal or obsolete options to make the list less imposing.
1475   # This message is too long to be a string in the A/UX 3.1 sh.
1476   cat <<_ACEOF
1477 \`configure' configures this package to adapt to many kinds of systems.
1478
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE.  See below for descriptions of some of the useful variables.
1483
1484 Defaults for the options are specified in brackets.
1485
1486 Configuration:
1487   -h, --help              display this help and exit
1488       --help=short        display options specific to this package
1489       --help=recursive    display the short help of all the included packages
1490   -V, --version           display version information and exit
1491   -q, --quiet, --silent   do not print \`checking ...' messages
1492       --cache-file=FILE   cache test results in FILE [disabled]
1493   -C, --config-cache      alias for \`--cache-file=config.cache'
1494   -n, --no-create         do not create output files
1495       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1496
1497 Installation directories:
1498   --prefix=PREFIX         install architecture-independent files in PREFIX
1499                           [$ac_default_prefix]
1500   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1501                           [PREFIX]
1502
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1507
1508 For better control, use the options below.
1509
1510 Fine tuning of the installation directories:
1511   --bindir=DIR            user executables [EPREFIX/bin]
1512   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1513   --libexecdir=DIR        program executables [EPREFIX/libexec]
1514   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1515   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1516   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1517   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1518   --libdir=DIR            object code libraries [EPREFIX/lib]
1519   --includedir=DIR        C header files [PREFIX/include]
1520   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1521   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1522   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1523   --infodir=DIR           info documentation [DATAROOTDIR/info]
1524   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1525   --mandir=DIR            man documentation [DATAROOTDIR/man]
1526   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1527   --htmldir=DIR           html documentation [DOCDIR]
1528   --dvidir=DIR            dvi documentation [DOCDIR]
1529   --pdfdir=DIR            pdf documentation [DOCDIR]
1530   --psdir=DIR             ps documentation [DOCDIR]
1531 _ACEOF
1532
1533   cat <<\_ACEOF
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-option-checking  ignore unrecognized --enable/--with options
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-maintainer-mode enable makefile rules useful for maintainers
1550   --enable-symlink-install use symlinks when installing instead of hard links
1551   --enable-relative-symlinks use relative symlinks when installing
1552
1553   --enable-symlink-build  use symlinks while building instead of hard links
1554   --enable-verbose-makecmds enable verbose make command output
1555   --enable-elf-shlibs     select ELF shared libraries
1556   --enable-bsd-shlibs     select BSD shared libraries
1557   --enable-profile        build profiling libraries
1558   --enable-gcov           build for coverage testing using gcov
1559   --enable-hardening              build for coverage testing using gcov
1560   --enable-jbd-debug      enable journal debugging
1561   --enable-blkid-debug    enable blkid debugging
1562   --disable-testio-debug  disable the use of the test I/O manager for debugging
1563   --enable-libuuid        build and use private uuid library
1564   --enable-libblkid       build and use private blkid library
1565   --disable-backtrace     disable use backtrace
1566   --disable-debugfs       disable support of debugfs program
1567   --disable-imager        disable support of e2image program
1568   --disable-resizer       disable support of e2resize program
1569   --disable-defrag        disable support of e4defrag program
1570   --enable-fsck           build fsck wrapper program
1571   --enable-e2initrd-helper build e2initrd-helper program
1572   --disable-tls           disable use of thread local support
1573   --disable-uuidd         disable building the uuid daemon
1574   --disable-mmp           disable support mmp, Multi Mount Protection
1575   --disable-tdb           disable tdb support
1576   --disable-bmap-stats    disable collection of bitmap stats.
1577   --enable-bmap-stats-ops enable collection of additional bitmap stats
1578   --disable-nls           do not use Native Language Support
1579   --enable-threads={posix|solaris|pth|windows}
1580                           specify multithreading API
1581   --disable-threads       build without multithread safety
1582   --disable-rpath         do not hardcode runtime library paths
1583   --disable-fuse2fs       do not build fuse2fs
1584
1585 Optional Packages:
1586   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588   --with-diet-libc        use diet libc
1589   --with-cc               no longer supported, use CC= instead
1590   --with-ccopts           no longer supported, use CFLAGS= instead
1591   --with-ldopts           no longer supported, use LDFLAGS= instead
1592   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1593   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1594   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1595   --without-libpth-prefix     don't search for libpth in includedir and libdir
1596   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1597   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1598   --with-included-gettext use the GNU gettext library included here
1599   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1600   --without-libintl-prefix     don't search for libintl in includedir and libdir
1601   --with-multiarch=ARCH specify the multiarch triplet
1602   --with-udev-rules-dir[=DIR]
1603                           Install udev rules into DIR.
1604   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1605   --with-systemd-unit-dir[=DIR]
1606                           Install systemd system units into DIR.
1607
1608 Some influential environment variables:
1609   CC          C compiler command
1610   CFLAGS      C compiler flags
1611   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612               nonstandard directory <lib dir>
1613   LIBS        libraries to pass to the linker, e.g. -l<library>
1614   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1615               you have headers in a nonstandard directory <include dir>
1616   CPP         C preprocessor
1617   PKG_CONFIG  path to pkg-config utility
1618   PKG_CONFIG_PATH
1619               directories to add to pkg-config's search path
1620   PKG_CONFIG_LIBDIR
1621               path overriding pkg-config's built-in search path
1622   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1623   udev_LIBS   linker flags for udev, overriding pkg-config
1624   systemd_CFLAGS
1625               C compiler flags for systemd, overriding pkg-config
1626   systemd_LIBS
1627               linker flags for systemd, overriding pkg-config
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to the package provider.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638   # If there are subdirs, report their specific --help.
1639   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640     test -d "$ac_dir" ||
1641       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642       continue
1643     ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649   # A ".." for each directory in $ac_dir_suffix.
1650   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651   case $ac_top_builddir_sub in
1652   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654   esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662   .)  # We are building in place.
1663     ac_srcdir=.
1664     ac_top_srcdir=$ac_top_builddir_sub
1665     ac_abs_top_srcdir=$ac_pwd ;;
1666   [\\/]* | ?:[\\/]* )  # Absolute name.
1667     ac_srcdir=$srcdir$ac_dir_suffix;
1668     ac_top_srcdir=$srcdir
1669     ac_abs_top_srcdir=$srcdir ;;
1670   *) # Relative name.
1671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672     ac_top_srcdir=$ac_top_build_prefix$srcdir
1673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677     cd "$ac_dir" || { ac_status=$?; continue; }
1678     # Check for guested configure.
1679     if test -f "$ac_srcdir/configure.gnu"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682     elif test -f "$ac_srcdir/configure"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure" --help=recursive
1685     else
1686       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687     fi || ac_status=$?
1688     cd "$ac_pwd" || { ac_status=$?; break; }
1689   done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694   cat <<\_ACEOF
1695 configure
1696 generated by GNU Autoconf 2.69
1697
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702   exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext
1716   if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_compile") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest.$ac_objext; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740         ac_retval=1
1741 fi
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   rm -f conftest.$ac_objext conftest$ac_exeext
1754   if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_link") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && {
1770          test -z "$ac_c_werror_flag" ||
1771          test ! -s conftest.err
1772        } && test -s conftest$ac_exeext && {
1773          test "$cross_compiling" = yes ||
1774          test -x conftest$ac_exeext
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781         ac_retval=1
1782 fi
1783   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785   # interfere with the next link command; also delete a directory that is
1786   # left behind by Apple's compiler.  We do this before executing the actions.
1787   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789   as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_link
1792
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } > conftest.i && {
1815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816          test ! -s conftest.err
1817        }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823     ac_retval=1
1824 fi
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_cpp
1829
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   if eval \${$3+:} false; then :
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 fi
1844 eval ac_res=\$$3
1845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848   # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857   ac_header_compiler=yes
1858 else
1859   ac_header_compiler=no
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1864
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873   ac_header_preproc=yes
1874 else
1875   ac_header_preproc=no
1876 fi
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1880
1881 # So?  What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883   yes:no: )
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888     ;;
1889   no:yes:* )
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900     ;;
1901 esac
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905   $as_echo_n "(cached) " >&6
1906 else
1907   eval "$3=\$ac_header_compiler"
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 fi
1913   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_header_mongrel
1916
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1921 ac_fn_c_try_run ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_link") 2>&5
1932   ac_status=$?
1933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935   { { case "(($ac_try" in
1936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937   *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941   (eval "$ac_try") 2>&5
1942   ac_status=$?
1943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944   test $ac_status = 0; }; }; then :
1945   ac_retval=0
1946 else
1947   $as_echo "$as_me: program exited with status $ac_status" >&5
1948        $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951        ac_retval=$ac_status
1952 fi
1953   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955   as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_run
1958
1959 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists and can be compiled using the include files in
1962 # INCLUDES, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_compile ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969   $as_echo_n "(cached) " >&6
1970 else
1971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 $4
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   eval "$3=yes"
1978 else
1979   eval "$3=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_header_compile
1989
1990 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1991 # -------------------------------------------
1992 # Tests whether TYPE exists after having included INCLUDES, setting cache
1993 # variable VAR accordingly.
1994 ac_fn_c_check_type ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000   $as_echo_n "(cached) " >&6
2001 else
2002   eval "$3=no"
2003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $4
2006 int
2007 main ()
2008 {
2009 if (sizeof ($2))
2010          return 0;
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 int
2020 main ()
2021 {
2022 if (sizeof (($2)))
2023             return 0;
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029
2030 else
2031   eval "$3=yes"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_type
2043
2044 # ac_fn_c_check_func LINENO FUNC VAR
2045 # ----------------------------------
2046 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2047 ac_fn_c_check_func ()
2048 {
2049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053   $as_echo_n "(cached) " >&6
2054 else
2055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2059 #define $2 innocuous_$2
2060
2061 /* System header to define __stub macros and hopefully few prototypes,
2062     which can conflict with char $2 (); below.
2063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2064     <limits.h> exists even on freestanding compilers.  */
2065
2066 #ifdef __STDC__
2067 # include <limits.h>
2068 #else
2069 # include <assert.h>
2070 #endif
2071
2072 #undef $2
2073
2074 /* Override any GCC internal prototype to avoid an error.
2075    Use char because int might match the return type of a GCC
2076    builtin and then its argument prototype would still apply.  */
2077 #ifdef __cplusplus
2078 extern "C"
2079 #endif
2080 char $2 ();
2081 /* The GNU C library defines this for functions which it implements
2082     to always fail with ENOSYS.  Some functions are actually named
2083     something starting with __ and the normal name is an alias.  */
2084 #if defined __stub_$2 || defined __stub___$2
2085 choke me
2086 #endif
2087
2088 int
2089 main ()
2090 {
2091 return $2 ();
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_link "$LINENO"; then :
2097   eval "$3=yes"
2098 else
2099   eval "$3=no"
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext \
2102     conftest$ac_exeext conftest.$ac_ext
2103 fi
2104 eval ac_res=\$$3
2105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109 } # ac_fn_c_check_func
2110
2111 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2112 # ---------------------------------------------
2113 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2114 # accordingly.
2115 ac_fn_c_check_decl ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   as_decl_name=`echo $2|sed 's/ *(.*//'`
2119   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2121 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2122 if eval \${$3+:} false; then :
2123   $as_echo_n "(cached) " >&6
2124 else
2125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 $4
2128 int
2129 main ()
2130 {
2131 #ifndef $as_decl_name
2132 #ifdef __cplusplus
2133   (void) $as_decl_use;
2134 #else
2135   (void) $as_decl_name;
2136 #endif
2137 #endif
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   eval "$3=yes"
2145 else
2146   eval "$3=no"
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155 } # ac_fn_c_check_decl
2156
2157 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2158 # --------------------------------------------
2159 # Tries to find the compile-time value of EXPR in a program that includes
2160 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2161 # computed
2162 ac_fn_c_compute_int ()
2163 {
2164   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165   if test "$cross_compiling" = yes; then
2166     # Depending upon the size, compute the lo and hi bounds.
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 int
2171 main ()
2172 {
2173 static int test_array [1 - 2 * !(($2) >= 0)];
2174 test_array [0] = 0;
2175 return test_array [0];
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182   ac_lo=0 ac_mid=0
2183   while :; do
2184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $4
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 test_array [0] = 0;
2192 return test_array [0];
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   ac_hi=$ac_mid; break
2200 else
2201   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2202                         if test $ac_lo -le $ac_mid; then
2203                           ac_lo= ac_hi=
2204                           break
2205                         fi
2206                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209   done
2210 else
2211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h.  */
2213 $4
2214 int
2215 main ()
2216 {
2217 static int test_array [1 - 2 * !(($2) < 0)];
2218 test_array [0] = 0;
2219 return test_array [0];
2220
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   ac_hi=-1 ac_mid=-1
2227   while :; do
2228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h.  */
2230 $4
2231 int
2232 main ()
2233 {
2234 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2235 test_array [0] = 0;
2236 return test_array [0];
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   ac_lo=$ac_mid; break
2244 else
2245   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2246                         if test $ac_mid -le $ac_hi; then
2247                           ac_lo= ac_hi=
2248                           break
2249                         fi
2250                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253   done
2254 else
2255   ac_lo= ac_hi=
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 # Binary search between lo and hi bounds.
2261 while test "x$ac_lo" != "x$ac_hi"; do
2262   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h.  */
2265 $4
2266 int
2267 main ()
2268 {
2269 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2270 test_array [0] = 0;
2271 return test_array [0];
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278   ac_hi=$ac_mid
2279 else
2280   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 done
2284 case $ac_lo in #((
2285 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2286 '') ac_retval=1 ;;
2287 esac
2288   else
2289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 static long int longval () { return $2; }
2293 static unsigned long int ulongval () { return $2; }
2294 #include <stdio.h>
2295 #include <stdlib.h>
2296 int
2297 main ()
2298 {
2299
2300   FILE *f = fopen ("conftest.val", "w");
2301   if (! f)
2302     return 1;
2303   if (($2) < 0)
2304     {
2305       long int i = longval ();
2306       if (i != ($2))
2307         return 1;
2308       fprintf (f, "%ld", i);
2309     }
2310   else
2311     {
2312       unsigned long int i = ulongval ();
2313       if (i != ($2))
2314         return 1;
2315       fprintf (f, "%lu", i);
2316     }
2317   /* Do not output a trailing newline, as this causes \r\n confusion
2318      on some platforms.  */
2319   return ferror (f) || fclose (f) != 0;
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_run "$LINENO"; then :
2326   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2327 else
2328   ac_retval=1
2329 fi
2330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2331   conftest.$ac_objext conftest.beam conftest.$ac_ext
2332 rm -f conftest.val
2333
2334   fi
2335   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336   as_fn_set_status $ac_retval
2337
2338 } # ac_fn_c_compute_int
2339
2340 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2341 # ----------------------------------------------------
2342 # Tries to find if the field MEMBER exists in type AGGR, after including
2343 # INCLUDES, setting cache variable VAR accordingly.
2344 ac_fn_c_check_member ()
2345 {
2346   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2348 $as_echo_n "checking for $2.$3... " >&6; }
2349 if eval \${$4+:} false; then :
2350   $as_echo_n "(cached) " >&6
2351 else
2352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h.  */
2354 $5
2355 int
2356 main ()
2357 {
2358 static $2 ac_aggr;
2359 if (ac_aggr.$3)
2360 return 0;
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366   eval "$4=yes"
2367 else
2368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 $5
2371 int
2372 main ()
2373 {
2374 static $2 ac_aggr;
2375 if (sizeof ac_aggr.$3)
2376 return 0;
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382   eval "$4=yes"
2383 else
2384   eval "$4=no"
2385 fi
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 fi
2390 eval ac_res=\$$4
2391                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392 $as_echo "$ac_res" >&6; }
2393   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394
2395 } # ac_fn_c_check_member
2396 cat >config.log <<_ACEOF
2397 This file contains any messages produced by compilers while
2398 running configure, to aid debugging if configure makes a mistake.
2399
2400 It was created by $as_me, which was
2401 generated by GNU Autoconf 2.69.  Invocation command line was
2402
2403   $ $0 $@
2404
2405 _ACEOF
2406 exec 5>>config.log
2407 {
2408 cat <<_ASUNAME
2409 ## --------- ##
2410 ## Platform. ##
2411 ## --------- ##
2412
2413 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2414 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2415 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2416 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2417 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2418
2419 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2420 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2421
2422 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2423 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2424 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2425 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2426 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2427 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2428 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2429
2430 _ASUNAME
2431
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437     $as_echo "PATH: $as_dir"
2438   done
2439 IFS=$as_save_IFS
2440
2441 } >&5
2442
2443 cat >&5 <<_ACEOF
2444
2445
2446 ## ----------- ##
2447 ## Core tests. ##
2448 ## ----------- ##
2449
2450 _ACEOF
2451
2452
2453 # Keep a trace of the command line.
2454 # Strip out --no-create and --no-recursion so they do not pile up.
2455 # Strip out --silent because we don't want to record it for future runs.
2456 # Also quote any args containing shell meta-characters.
2457 # Make two passes to allow for proper duplicate-argument suppression.
2458 ac_configure_args=
2459 ac_configure_args0=
2460 ac_configure_args1=
2461 ac_must_keep_next=false
2462 for ac_pass in 1 2
2463 do
2464   for ac_arg
2465   do
2466     case $ac_arg in
2467     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2468     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2469     | -silent | --silent | --silen | --sile | --sil)
2470       continue ;;
2471     *\'*)
2472       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2473     esac
2474     case $ac_pass in
2475     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2476     2)
2477       as_fn_append ac_configure_args1 " '$ac_arg'"
2478       if test $ac_must_keep_next = true; then
2479         ac_must_keep_next=false # Got value, back to normal.
2480       else
2481         case $ac_arg in
2482           *=* | --config-cache | -C | -disable-* | --disable-* \
2483           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2484           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2485           | -with-* | --with-* | -without-* | --without-* | --x)
2486             case "$ac_configure_args0 " in
2487               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2488             esac
2489             ;;
2490           -* ) ac_must_keep_next=true ;;
2491         esac
2492       fi
2493       as_fn_append ac_configure_args " '$ac_arg'"
2494       ;;
2495     esac
2496   done
2497 done
2498 { ac_configure_args0=; unset ac_configure_args0;}
2499 { ac_configure_args1=; unset ac_configure_args1;}
2500
2501 # When interrupted or exit'd, cleanup temporary files, and complete
2502 # config.log.  We remove comments because anyway the quotes in there
2503 # would cause problems or look ugly.
2504 # WARNING: Use '\'' to represent an apostrophe within the trap.
2505 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2506 trap 'exit_status=$?
2507   # Save into config.log some information that might help in debugging.
2508   {
2509     echo
2510
2511     $as_echo "## ---------------- ##
2512 ## Cache variables. ##
2513 ## ---------------- ##"
2514     echo
2515     # The following way of writing the cache mishandles newlines in values,
2516 (
2517   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2518     eval ac_val=\$$ac_var
2519     case $ac_val in #(
2520     *${as_nl}*)
2521       case $ac_var in #(
2522       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2523 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2524       esac
2525       case $ac_var in #(
2526       _ | IFS | as_nl) ;; #(
2527       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2528       *) { eval $ac_var=; unset $ac_var;} ;;
2529       esac ;;
2530     esac
2531   done
2532   (set) 2>&1 |
2533     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2534     *${as_nl}ac_space=\ *)
2535       sed -n \
2536         "s/'\''/'\''\\\\'\'''\''/g;
2537           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2538       ;; #(
2539     *)
2540       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2541       ;;
2542     esac |
2543     sort
2544 )
2545     echo
2546
2547     $as_echo "## ----------------- ##
2548 ## Output variables. ##
2549 ## ----------------- ##"
2550     echo
2551     for ac_var in $ac_subst_vars
2552     do
2553       eval ac_val=\$$ac_var
2554       case $ac_val in
2555       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556       esac
2557       $as_echo "$ac_var='\''$ac_val'\''"
2558     done | sort
2559     echo
2560
2561     if test -n "$ac_subst_files"; then
2562       $as_echo "## ------------------- ##
2563 ## File substitutions. ##
2564 ## ------------------- ##"
2565       echo
2566       for ac_var in $ac_subst_files
2567       do
2568         eval ac_val=\$$ac_var
2569         case $ac_val in
2570         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571         esac
2572         $as_echo "$ac_var='\''$ac_val'\''"
2573       done | sort
2574       echo
2575     fi
2576
2577     if test -s confdefs.h; then
2578       $as_echo "## ----------- ##
2579 ## confdefs.h. ##
2580 ## ----------- ##"
2581       echo
2582       cat confdefs.h
2583       echo
2584     fi
2585     test "$ac_signal" != 0 &&
2586       $as_echo "$as_me: caught signal $ac_signal"
2587     $as_echo "$as_me: exit $exit_status"
2588   } >&5
2589   rm -f core *.core core.conftest.* &&
2590     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2591     exit $exit_status
2592 ' 0
2593 for ac_signal in 1 2 13 15; do
2594   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2595 done
2596 ac_signal=0
2597
2598 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2599 rm -f -r conftest* confdefs.h
2600
2601 $as_echo "/* confdefs.h */" > confdefs.h
2602
2603 # Predefined preprocessor variables.
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_NAME "$PACKAGE_NAME"
2607 _ACEOF
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2611 _ACEOF
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2615 _ACEOF
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_STRING "$PACKAGE_STRING"
2619 _ACEOF
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_URL "$PACKAGE_URL"
2627 _ACEOF
2628
2629
2630 # Let the site file select an alternate cache file if it wants to.
2631 # Prefer an explicitly selected file to automatically selected ones.
2632 ac_site_file1=NONE
2633 ac_site_file2=NONE
2634 if test -n "$CONFIG_SITE"; then
2635   # We do not want a PATH search for config.site.
2636   case $CONFIG_SITE in #((
2637     -*)  ac_site_file1=./$CONFIG_SITE;;
2638     */*) ac_site_file1=$CONFIG_SITE;;
2639     *)   ac_site_file1=./$CONFIG_SITE;;
2640   esac
2641 elif test "x$prefix" != xNONE; then
2642   ac_site_file1=$prefix/share/config.site
2643   ac_site_file2=$prefix/etc/config.site
2644 else
2645   ac_site_file1=$ac_default_prefix/share/config.site
2646   ac_site_file2=$ac_default_prefix/etc/config.site
2647 fi
2648 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2649 do
2650   test "x$ac_site_file" = xNONE && continue
2651   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2652     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2654     sed 's/^/| /' "$ac_site_file" >&5
2655     . "$ac_site_file" \
2656       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 as_fn_error $? "failed to load site script $ac_site_file
2659 See \`config.log' for more details" "$LINENO" 5; }
2660   fi
2661 done
2662
2663 if test -r "$cache_file"; then
2664   # Some versions of bash will fail to source /dev/null (special files
2665   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2666   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2668 $as_echo "$as_me: loading cache $cache_file" >&6;}
2669     case $cache_file in
2670       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2671       *)                      . "./$cache_file";;
2672     esac
2673   fi
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2676 $as_echo "$as_me: creating cache $cache_file" >&6;}
2677   >$cache_file
2678 fi
2679
2680 gt_needs="$gt_needs "
2681 as_fn_append ac_header_list " stdlib.h"
2682 as_fn_append ac_header_list " unistd.h"
2683 as_fn_append ac_header_list " sys/param.h"
2684 as_fn_append ac_func_list " symlink"
2685 # Check that the precious variables saved in the cache have kept the same
2686 # value.
2687 ac_cache_corrupted=false
2688 for ac_var in $ac_precious_vars; do
2689   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2690   eval ac_new_set=\$ac_env_${ac_var}_set
2691   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2692   eval ac_new_val=\$ac_env_${ac_var}_value
2693   case $ac_old_set,$ac_new_set in
2694     set,)
2695       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2696 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2697       ac_cache_corrupted=: ;;
2698     ,set)
2699       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2701       ac_cache_corrupted=: ;;
2702     ,);;
2703     *)
2704       if test "x$ac_old_val" != "x$ac_new_val"; then
2705         # differences in whitespace do not lead to failure.
2706         ac_old_val_w=`echo x $ac_old_val`
2707         ac_new_val_w=`echo x $ac_new_val`
2708         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2709           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2710 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2711           ac_cache_corrupted=:
2712         else
2713           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2714 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2715           eval $ac_var=\$ac_old_val
2716         fi
2717         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2718 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2719         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2720 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2721       fi;;
2722   esac
2723   # Pass precious variables to config.status.
2724   if test "$ac_new_set" = set; then
2725     case $ac_new_val in
2726     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2727     *) ac_arg=$ac_var=$ac_new_val ;;
2728     esac
2729     case " $ac_configure_args " in
2730       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2731       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2732     esac
2733   fi
2734 done
2735 if $ac_cache_corrupted; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2739 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2740   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2741 fi
2742 ## -------------------- ##
2743 ## Main body of script. ##
2744 ## -------------------- ##
2745
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
2752
2753
2754 ac_aux_dir=
2755 for ac_dir in config "$srcdir"/config; do
2756   if test -f "$ac_dir/install-sh"; then
2757     ac_aux_dir=$ac_dir
2758     ac_install_sh="$ac_aux_dir/install-sh -c"
2759     break
2760   elif test -f "$ac_dir/install.sh"; then
2761     ac_aux_dir=$ac_dir
2762     ac_install_sh="$ac_aux_dir/install.sh -c"
2763     break
2764   elif test -f "$ac_dir/shtool"; then
2765     ac_aux_dir=$ac_dir
2766     ac_install_sh="$ac_aux_dir/shtool install -c"
2767     break
2768   fi
2769 done
2770 if test -z "$ac_aux_dir"; then
2771   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2772 fi
2773
2774 # These three variables are undocumented and unsupported,
2775 # and are intended to be withdrawn in a future Autoconf release.
2776 # They can cause serious problems if a builder's source tree is in a directory
2777 # whose full name contains unusual characters.
2778 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2779 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2780 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2781
2782
2783 ac_config_headers="$ac_config_headers lib/config.h"
2784
2785
2786 MCONFIG=./MCONFIG
2787
2788 BINARY_TYPE=bin
2789 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2790         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2791 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2792         | tr \" " " | awk '{print $1}'`
2793 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2794 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2795 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2796
2797 if expr $YEAR ">" 1900 > /dev/null ; then
2798         E2FSPROGS_YEAR=$YEAR
2799 elif expr $YEAR ">" 90 >/dev/null ; then
2800         E2FSPROGS_YEAR=19$YEAR
2801 else
2802         E2FSPROGS_YEAR=20$YEAR
2803 fi
2804
2805 case $MONTH in
2806 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2807 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2808 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2809 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2810 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2811 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2812 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2813 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2814 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2815 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2816 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2817 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2818 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2819 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2820 esac
2821
2822 base_ver=`echo $E2FSPROGS_VERSION | \
2823                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2824
2825 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2826
2827 case $E2FSPROGS_VERSION in
2828 *-WIP|pre-*)
2829         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2830         ;;
2831 *)
2832         E2FSPROGS_PKGVER="$base_ver"
2833         ;;
2834 esac
2835
2836 unset DATE MONTH YEAR base_ver pre_vers date_spec
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2838 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2840 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2841
2842
2843
2844
2845
2846
2847 WITH_DIET_LIBC=
2848
2849 # Check whether --with-diet-libc was given.
2850 if test "${with_diet_libc+set}" = set; then :
2851   withval=$with_diet_libc; CC="diet cc -nostdinc"
2852 WITH_DIET_LIBC=yes
2853 if test -z "$LIBS"
2854 then
2855         LIBS="-lcompat"
2856 else
2857         LIBS="$LIBS -lcompat"
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2860 $as_echo "CC=$CC" >&6; }
2861 fi
2862 # Make sure we can run config.sub.
2863 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2864   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2867 $as_echo_n "checking build system type... " >&6; }
2868 if ${ac_cv_build+:} false; then :
2869   $as_echo_n "(cached) " >&6
2870 else
2871   ac_build_alias=$build_alias
2872 test "x$ac_build_alias" = x &&
2873   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2874 test "x$ac_build_alias" = x &&
2875   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2877   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2878
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2881 $as_echo "$ac_cv_build" >&6; }
2882 case $ac_cv_build in
2883 *-*-*) ;;
2884 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2885 esac
2886 build=$ac_cv_build
2887 ac_save_IFS=$IFS; IFS='-'
2888 set x $ac_cv_build
2889 shift
2890 build_cpu=$1
2891 build_vendor=$2
2892 shift; shift
2893 # Remember, the first character of IFS is used to create $*,
2894 # except with old shells:
2895 build_os=$*
2896 IFS=$ac_save_IFS
2897 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2898
2899
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2901 $as_echo_n "checking host system type... " >&6; }
2902 if ${ac_cv_host+:} false; then :
2903   $as_echo_n "(cached) " >&6
2904 else
2905   if test "x$host_alias" = x; then
2906   ac_cv_host=$ac_cv_build
2907 else
2908   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2909     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2910 fi
2911
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2914 $as_echo "$ac_cv_host" >&6; }
2915 case $ac_cv_host in
2916 *-*-*) ;;
2917 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2918 esac
2919 host=$ac_cv_host
2920 ac_save_IFS=$IFS; IFS='-'
2921 set x $ac_cv_host
2922 shift
2923 host_cpu=$1
2924 host_vendor=$2
2925 shift; shift
2926 # Remember, the first character of IFS is used to create $*,
2927 # except with old shells:
2928 host_os=$*
2929 IFS=$ac_save_IFS
2930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2931
2932
2933 DLOPEN_LIB=''
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$CC"; then
2948   ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$ac_cv_prog_CC"; then
2979   ac_ct_CC=$CC
2980   # Extract the first word of "gcc", so it can be a program name with args.
2981 set dummy gcc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   if test -n "$ac_ct_CC"; then
2988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995     for ac_exec_ext in '' $ac_executable_extensions; do
2996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997     ac_cv_prog_ac_ct_CC="gcc"
2998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002   done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016   if test "x$ac_ct_CC" = x; then
3017     CC=""
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025     CC=$ac_ct_CC
3026   fi
3027 else
3028   CC="$ac_cv_prog_CC"
3029 fi
3030
3031 if test -z "$CC"; then
3032           if test -n "$ac_tool_prefix"; then
3033     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}cc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     for ac_exec_ext in '' $ac_executable_extensions; do
3049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050     ac_cv_prog_CC="${ac_tool_prefix}cc"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070   fi
3071 fi
3072 if test -z "$CC"; then
3073   # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$CC"; then
3081   ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083   ac_prog_rejected=no
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092        ac_prog_rejected=yes
3093        continue
3094      fi
3095     ac_cv_prog_CC="cc"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 if test $ac_prog_rejected = yes; then
3104   # We found a bogon in the path, so make sure we never use it.
3105   set dummy $ac_cv_prog_CC
3106   shift
3107   if test $# != 0; then
3108     # We chose a different compiler from the bogus one.
3109     # However, it has the same basename, so the bogon will be chosen
3110     # first if we set CC to just the basename; use the full file name.
3111     shift
3112     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113   fi
3114 fi
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$CC"; then
3129   if test -n "$ac_tool_prefix"; then
3130   for ac_prog in cl.exe
3131   do
3132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169     test -n "$CC" && break
3170   done
3171 fi
3172 if test -z "$CC"; then
3173   ac_ct_CC=$CC
3174   for ac_prog in cl.exe
3175 do
3176   # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   if test -n "$ac_ct_CC"; then
3184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191     for ac_exec_ext in '' $ac_executable_extensions; do
3192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193     ac_cv_prog_ac_ct_CC="$ac_prog"
3194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198   done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213   test -n "$ac_ct_CC" && break
3214 done
3215
3216   if test "x$ac_ct_CC" = x; then
3217     CC=""
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     CC=$ac_ct_CC
3226   fi
3227 fi
3228
3229 fi
3230
3231
3232 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details" "$LINENO" 5; }
3236
3237 # Provide some information about the compiler.
3238 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3239 set X $ac_compile
3240 ac_compiler=$2
3241 for ac_option in --version -v -V -qversion; do
3242   { { ac_try="$ac_compiler $ac_option >&5"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3250   ac_status=$?
3251   if test -s conftest.err; then
3252     sed '10a\
3253 ... rest of stderr output deleted ...
3254          10q' conftest.err >conftest.er1
3255     cat conftest.er1 >&5
3256   fi
3257   rm -f conftest.er1 conftest.err
3258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259   test $ac_status = 0; }
3260 done
3261
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 ac_clean_files_save=$ac_clean_files
3274 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275 # Try to create an executable without -o first, disregard a.out.
3276 # It will help us diagnose broken compilers, and finding out an intuition
3277 # of exeext.
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279 $as_echo_n "checking whether the C compiler works... " >&6; }
3280 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281
3282 # The possible output files:
3283 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3284
3285 ac_rmfiles=
3286 for ac_file in $ac_files
3287 do
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291   esac
3292 done
3293 rm -f $ac_rmfiles
3294
3295 if { { ac_try="$ac_link_default"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302   (eval "$ac_link_default") 2>&5
3303   ac_status=$?
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }; then :
3306   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3309 # so that the user can short-circuit this test for compilers unknown to
3310 # Autoconf.
3311 for ac_file in $ac_files ''
3312 do
3313   test -f "$ac_file" || continue
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3316         ;;
3317     [ab].out )
3318         # We found the default executable, but exeext='' is most
3319         # certainly right.
3320         break;;
3321     *.* )
3322         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3323         then :; else
3324            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325         fi
3326         # We set ac_cv_exeext here because the later test for it is not
3327         # safe: cross compilers may not add the suffix if given an `-o'
3328         # argument, so we may need to know it at that point already.
3329         # Even if this section looks crufty: it has the advantage of
3330         # actually working.
3331         break;;
3332     * )
3333         break;;
3334   esac
3335 done
3336 test "$ac_cv_exeext" = no && ac_cv_exeext=
3337
3338 else
3339   ac_file=''
3340 fi
3341 if test -z "$ac_file"; then :
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error 77 "C compiler cannot create executables
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356 $as_echo_n "checking for C compiler default output file name... " >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358 $as_echo "$ac_file" >&6; }
3359 ac_exeext=$ac_cv_exeext
3360
3361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364 $as_echo_n "checking for suffix of executables... " >&6; }
3365 if { { ac_try="$ac_link"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372   (eval "$ac_link") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375   test $ac_status = 0; }; then :
3376   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3378 # work properly (i.e., refer to `conftest.exe'), while it won't with
3379 # `rm'.
3380 for ac_file in conftest.exe conftest conftest.*; do
3381   test -f "$ac_file" || continue
3382   case $ac_file in
3383     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385           break;;
3386     * ) break;;
3387   esac
3388 done
3389 else
3390   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 fi
3395 rm -f conftest conftest$ac_cv_exeext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397 $as_echo "$ac_cv_exeext" >&6; }
3398
3399 rm -f conftest.$ac_ext
3400 EXEEXT=$ac_cv_exeext
3401 ac_exeext=$EXEEXT
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h.  */
3404 #include <stdio.h>
3405 int
3406 main ()
3407 {
3408 FILE *f = fopen ("conftest.out", "w");
3409  return ferror (f) || fclose (f) != 0;
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files="$ac_clean_files conftest.out"
3416 # Check that the compiler produces executables we can run.  If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419 $as_echo_n "checking whether we are cross compiling... " >&6; }
3420 if test "$cross_compiling" != yes; then
3421   { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }
3432   if { ac_try='./conftest$ac_cv_exeext'
3433   { { case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439   (eval "$ac_try") 2>&5
3440   ac_status=$?
3441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442   test $ac_status = 0; }; }; then
3443     cross_compiling=no
3444   else
3445     if test "$cross_compiling" = maybe; then
3446         cross_compiling=yes
3447     else
3448         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot run C compiled programs.
3451 If you meant to cross compile, use \`--host'.
3452 See \`config.log' for more details" "$LINENO" 5; }
3453     fi
3454   fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457 $as_echo "$cross_compiling" >&6; }
3458
3459 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460 ac_clean_files=$ac_clean_files_save
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462 $as_echo_n "checking for suffix of object files... " >&6; }
3463 if ${ac_cv_objext+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.o conftest.obj
3478 if { { ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485   (eval "$ac_compile") 2>&5
3486   ac_status=$?
3487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488   test $ac_status = 0; }; then :
3489   for ac_file in conftest.o conftest.obj conftest.*; do
3490   test -f "$ac_file" || continue;
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494        break;;
3495   esac
3496 done
3497 else
3498   $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error $? "cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details" "$LINENO" 5; }
3505 fi
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509 $as_echo "$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3511 ac_objext=$OBJEXT
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514 if ${ac_cv_c_compiler_gnu+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523 #ifndef __GNUC__
3524        choke me
3525 #endif
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_compiler_gnu=yes
3533 else
3534   ac_compiler_gnu=no
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3543   GCC=yes
3544 else
3545   GCC=
3546 fi
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if ${ac_cv_prog_cc_g+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   ac_save_c_werror_flag=$ac_c_werror_flag
3555    ac_c_werror_flag=yes
3556    ac_cv_prog_cc_g=no
3557    CFLAGS="-g"
3558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570   ac_cv_prog_cc_g=yes
3571 else
3572   CFLAGS=""
3573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585
3586 else
3587   ac_c_werror_flag=$ac_save_c_werror_flag
3588          CFLAGS="-g"
3589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_g=yes
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613   CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615   if test "$GCC" = yes; then
3616     CFLAGS="-g -O2"
3617   else
3618     CFLAGS="-g"
3619   fi
3620 else
3621   if test "$GCC" = yes; then
3622     CFLAGS="-O2"
3623   else
3624     CFLAGS=
3625   fi
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if ${ac_cv_prog_cc_c89+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   ac_cv_prog_cc_c89=no
3633 ac_save_CC=$CC
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636 #include <stdarg.h>
3637 #include <stdio.h>
3638 struct stat;
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3643      char **p;
3644      int i;
3645 {
3646   return p[i];
3647 }
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3649 {
3650   char *s;
3651   va_list v;
3652   va_start (v,p);
3653   s = g (p, va_arg (v,int));
3654   va_end (v);
3655   return s;
3656 }
3657
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3659    function prototypes and stuff, but not '\xHH' hex character constants.
3660    These don't provoke an error unfortunately, instead are silently treated
3661    as 'x'.  The following induces an error, until -std is added to get
3662    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3663    array size at least.  It's necessary to write '\x00'==0 to get something
3664    that's true only with -std.  */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668    inside strings and character constants.  */
3669 #define FOO(x) 'x'
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676 int argc;
3677 char **argv;
3678 int
3679 main ()
3680 {
3681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 do
3689   CC="$ac_save_CC $ac_arg"
3690   if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_cv_prog_cc_c89=$ac_arg
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext
3694   test "x$ac_cv_prog_cc_c89" != "xno" && break
3695 done
3696 rm -f conftest.$ac_ext
3697 CC=$ac_save_CC
3698
3699 fi
3700 # AC_CACHE_VAL
3701 case "x$ac_cv_prog_cc_c89" in
3702   x)
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3705   xno)
3706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3708   *)
3709     CC="$CC $ac_cv_prog_cc_c89"
3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712 esac
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3726 if ${ac_cv_lib_dl_dlopen+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   ac_check_lib_save_LIBS=$LIBS
3730 LIBS="-ldl  $LIBS"
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733
3734 /* Override any GCC internal prototype to avoid an error.
3735    Use char because int might match the return type of a GCC
3736    builtin and then its argument prototype would still apply.  */
3737 #ifdef __cplusplus
3738 extern "C"
3739 #endif
3740 char dlopen ();
3741 int
3742 main ()
3743 {
3744 return dlopen ();
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_link "$LINENO"; then :
3750   ac_cv_lib_dl_dlopen=yes
3751 else
3752   ac_cv_lib_dl_dlopen=no
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext \
3755     conftest$ac_exeext conftest.$ac_ext
3756 LIBS=$ac_check_lib_save_LIBS
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3761   DLOPEN_LIB=-ldl
3762 fi
3763
3764
3765
3766 # Check whether --with-cc was given.
3767 if test "${with_cc+set}" = set; then :
3768   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3769 fi
3770
3771
3772 # Check whether --with-ccopts was given.
3773 if test "${with_ccopts+set}" = set; then :
3774   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3775 fi
3776
3777
3778 # Check whether --with-ldopts was given.
3779 if test "${with_ldopts+set}" = set; then :
3780   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3781 fi
3782
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 if test -n "$ac_tool_prefix"; then
3789   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_CC+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -n "$CC"; then
3797   ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_exec_ext in '' $ac_executable_extensions; do
3805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811   done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$ac_cv_prog_CC"; then
3828   ac_ct_CC=$CC
3829   # Extract the first word of "gcc", so it can be a program name with args.
3830 set dummy gcc; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   if test -n "$ac_ct_CC"; then
3837   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844     for ac_exec_ext in '' $ac_executable_extensions; do
3845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_ac_ct_CC="gcc"
3847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851   done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3857 if test -n "$ac_ct_CC"; then
3858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3859 $as_echo "$ac_ct_CC" >&6; }
3860 else
3861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865   if test "x$ac_ct_CC" = x; then
3866     CC=""
3867   else
3868     case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874     CC=$ac_ct_CC
3875   fi
3876 else
3877   CC="$ac_cv_prog_CC"
3878 fi
3879
3880 if test -z "$CC"; then
3881           if test -n "$ac_tool_prefix"; then
3882     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}cc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_CC+:} false; then :
3887   $as_echo_n "(cached) " >&6
3888 else
3889   if test -n "$CC"; then
3890   ac_cv_prog_CC="$CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897     for ac_exec_ext in '' $ac_executable_extensions; do
3898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899     ac_cv_prog_CC="${ac_tool_prefix}cc"
3900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904   done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 CC=$ac_cv_prog_CC
3910 if test -n "$CC"; then
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3913 else
3914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918
3919   fi
3920 fi
3921 if test -z "$CC"; then
3922   # Extract the first word of "cc", so it can be a program name with args.
3923 set dummy cc; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if ${ac_cv_prog_CC+:} false; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   if test -n "$CC"; then
3930   ac_cv_prog_CC="$CC" # Let the user override the test.
3931 else
3932   ac_prog_rejected=no
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938     for ac_exec_ext in '' $ac_executable_extensions; do
3939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3941        ac_prog_rejected=yes
3942        continue
3943      fi
3944     ac_cv_prog_CC="cc"
3945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946     break 2
3947   fi
3948 done
3949   done
3950 IFS=$as_save_IFS
3951
3952 if test $ac_prog_rejected = yes; then
3953   # We found a bogon in the path, so make sure we never use it.
3954   set dummy $ac_cv_prog_CC
3955   shift
3956   if test $# != 0; then
3957     # We chose a different compiler from the bogus one.
3958     # However, it has the same basename, so the bogon will be chosen
3959     # first if we set CC to just the basename; use the full file name.
3960     shift
3961     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3962   fi
3963 fi
3964 fi
3965 fi
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975
3976 fi
3977 if test -z "$CC"; then
3978   if test -n "$ac_tool_prefix"; then
3979   for ac_prog in cl.exe
3980   do
3981     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_CC+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -n "$CC"; then
3989   ac_cv_prog_CC="$CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 CC=$ac_cv_prog_CC
4009 if test -n "$CC"; then
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4011 $as_echo "$CC" >&6; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018     test -n "$CC" && break
4019   done
4020 fi
4021 if test -z "$CC"; then
4022   ac_ct_CC=$CC
4023   for ac_prog in cl.exe
4024 do
4025   # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy $ac_prog; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   if test -n "$ac_ct_CC"; then
4033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040     for ac_exec_ext in '' $ac_executable_extensions; do
4041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042     ac_cv_prog_ac_ct_CC="$ac_prog"
4043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047   done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4053 if test -n "$ac_ct_CC"; then
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4055 $as_echo "$ac_ct_CC" >&6; }
4056 else
4057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061
4062   test -n "$ac_ct_CC" && break
4063 done
4064
4065   if test "x$ac_ct_CC" = x; then
4066     CC=""
4067   else
4068     case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074     CC=$ac_ct_CC
4075   fi
4076 fi
4077
4078 fi
4079
4080
4081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error $? "no acceptable C compiler found in \$PATH
4084 See \`config.log' for more details" "$LINENO" 5; }
4085
4086 # Provide some information about the compiler.
4087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4088 set X $ac_compile
4089 ac_compiler=$2
4090 for ac_option in --version -v -V -qversion; do
4091   { { ac_try="$ac_compiler $ac_option >&5"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4099   ac_status=$?
4100   if test -s conftest.err; then
4101     sed '10a\
4102 ... rest of stderr output deleted ...
4103          10q' conftest.err >conftest.er1
4104     cat conftest.er1 >&5
4105   fi
4106   rm -f conftest.er1 conftest.err
4107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108   test $ac_status = 0; }
4109 done
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4113 if ${ac_cv_c_compiler_gnu+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h.  */
4118
4119 int
4120 main ()
4121 {
4122 #ifndef __GNUC__
4123        choke me
4124 #endif
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_compiler_gnu=yes
4132 else
4133   ac_compiler_gnu=no
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4137
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4141 if test $ac_compiler_gnu = yes; then
4142   GCC=yes
4143 else
4144   GCC=
4145 fi
4146 ac_test_CFLAGS=${CFLAGS+set}
4147 ac_save_CFLAGS=$CFLAGS
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4150 if ${ac_cv_prog_cc_g+:} false; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   ac_save_c_werror_flag=$ac_c_werror_flag
4154    ac_c_werror_flag=yes
4155    ac_cv_prog_cc_g=no
4156    CFLAGS="-g"
4157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h.  */
4159
4160 int
4161 main ()
4162 {
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169   ac_cv_prog_cc_g=yes
4170 else
4171   CFLAGS=""
4172       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h.  */
4174
4175 int
4176 main ()
4177 {
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184
4185 else
4186   ac_c_werror_flag=$ac_save_c_werror_flag
4187          CFLAGS="-g"
4188          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h.  */
4190
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200   ac_cv_prog_cc_g=yes
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207    ac_c_werror_flag=$ac_save_c_werror_flag
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4210 $as_echo "$ac_cv_prog_cc_g" >&6; }
4211 if test "$ac_test_CFLAGS" = set; then
4212   CFLAGS=$ac_save_CFLAGS
4213 elif test $ac_cv_prog_cc_g = yes; then
4214   if test "$GCC" = yes; then
4215     CFLAGS="-g -O2"
4216   else
4217     CFLAGS="-g"
4218   fi
4219 else
4220   if test "$GCC" = yes; then
4221     CFLAGS="-O2"
4222   else
4223     CFLAGS=
4224   fi
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4228 if ${ac_cv_prog_cc_c89+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   ac_cv_prog_cc_c89=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235 #include <stdarg.h>
4236 #include <stdio.h>
4237 struct stat;
4238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4239 struct buf { int x; };
4240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4241 static char *e (p, i)
4242      char **p;
4243      int i;
4244 {
4245   return p[i];
4246 }
4247 static char *f (char * (*g) (char **, int), char **p, ...)
4248 {
4249   char *s;
4250   va_list v;
4251   va_start (v,p);
4252   s = g (p, va_arg (v,int));
4253   va_end (v);
4254   return s;
4255 }
4256
4257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4258    function prototypes and stuff, but not '\xHH' hex character constants.
4259    These don't provoke an error unfortunately, instead are silently treated
4260    as 'x'.  The following induces an error, until -std is added to get
4261    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4262    array size at least.  It's necessary to write '\x00'==0 to get something
4263    that's true only with -std.  */
4264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4265
4266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4267    inside strings and character constants.  */
4268 #define FOO(x) 'x'
4269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4270
4271 int test (int i, double x);
4272 struct s1 {int (*f) (int a);};
4273 struct s2 {int (*f) (double a);};
4274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4275 int argc;
4276 char **argv;
4277 int
4278 main ()
4279 {
4280 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4286         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4287 do
4288   CC="$ac_save_CC $ac_arg"
4289   if ac_fn_c_try_compile "$LINENO"; then :
4290   ac_cv_prog_cc_c89=$ac_arg
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext
4293   test "x$ac_cv_prog_cc_c89" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC
4297
4298 fi
4299 # AC_CACHE_VAL
4300 case "x$ac_cv_prog_cc_c89" in
4301   x)
4302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4303 $as_echo "none needed" >&6; } ;;
4304   xno)
4305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 $as_echo "unsupported" >&6; } ;;
4307   *)
4308     CC="$CC $ac_cv_prog_cc_c89"
4309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4311 esac
4312 if test "x$ac_cv_prog_cc_c89" != xno; then :
4313
4314 fi
4315
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322 if test "$GCC" = yes; then
4323    RDYNAMIC="-rdynamic"
4324
4325 fi
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4333 # On Suns, sometimes $CPP names a directory.
4334 if test -n "$CPP" && test -d "$CPP"; then
4335   CPP=
4336 fi
4337 if test -z "$CPP"; then
4338   if ${ac_cv_prog_CPP+:} false; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341       # Double quotes because CPP needs to be expanded
4342     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4343     do
4344       ac_preproc_ok=false
4345 for ac_c_preproc_warn_flag in '' yes
4346 do
4347   # Use a header file that comes with gcc, so configuring glibc
4348   # with a fresh cross-compiler works.
4349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350   # <limits.h> exists even on freestanding compilers.
4351   # On the NeXT, cc -E runs the code through the compiler's parser,
4352   # not just through cpp. "Syntax error" is here to catch this case.
4353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355 #ifdef __STDC__
4356 # include <limits.h>
4357 #else
4358 # include <assert.h>
4359 #endif
4360                      Syntax error
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363
4364 else
4365   # Broken: fails on valid input.
4366 continue
4367 fi
4368 rm -f conftest.err conftest.i conftest.$ac_ext
4369
4370   # OK, works on sane cases.  Now check whether nonexistent headers
4371   # can be detected and how.
4372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h.  */
4374 #include <ac_nonexistent.h>
4375 _ACEOF
4376 if ac_fn_c_try_cpp "$LINENO"; then :
4377   # Broken: success on invalid input.
4378 continue
4379 else
4380   # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384 rm -f conftest.err conftest.i conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.i conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then :
4390   break
4391 fi
4392
4393     done
4394     ac_cv_prog_CPP=$CPP
4395
4396 fi
4397   CPP=$ac_cv_prog_CPP
4398 else
4399   ac_cv_prog_CPP=$CPP
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4402 $as_echo "$CPP" >&6; }
4403 ac_preproc_ok=false
4404 for ac_c_preproc_warn_flag in '' yes
4405 do
4406   # Use a header file that comes with gcc, so configuring glibc
4407   # with a fresh cross-compiler works.
4408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4409   # <limits.h> exists even on freestanding compilers.
4410   # On the NeXT, cc -E runs the code through the compiler's parser,
4411   # not just through cpp. "Syntax error" is here to catch this case.
4412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #ifdef __STDC__
4415 # include <limits.h>
4416 #else
4417 # include <assert.h>
4418 #endif
4419                      Syntax error
4420 _ACEOF
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4422
4423 else
4424   # Broken: fails on valid input.
4425 continue
4426 fi
4427 rm -f conftest.err conftest.i conftest.$ac_ext
4428
4429   # OK, works on sane cases.  Now check whether nonexistent headers
4430   # can be detected and how.
4431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h.  */
4433 #include <ac_nonexistent.h>
4434 _ACEOF
4435 if ac_fn_c_try_cpp "$LINENO"; then :
4436   # Broken: success on invalid input.
4437 continue
4438 else
4439   # Passes both tests.
4440 ac_preproc_ok=:
4441 break
4442 fi
4443 rm -f conftest.err conftest.i conftest.$ac_ext
4444
4445 done
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.i conftest.err conftest.$ac_ext
4448 if $ac_preproc_ok; then :
4449
4450 else
4451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details" "$LINENO" 5; }
4455 fi
4456
4457 ac_ext=c
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4464 $as_echo_n "checking for additional special compiler flags... " >&6; }
4465 if test "$GCC" = yes
4466 then
4467     case "$host_cpu" in
4468         alpha)          addcflags="-mieee" ;;
4469     esac
4470 fi
4471 if test "x$addcflags" != x
4472 then
4473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4474 $as_echo "$addcflags" >&6; }
4475     CFLAGS="$addcflags $CFLAGS"
4476 else
4477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4478 $as_echo "(none)" >&6; }
4479 fi
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4482 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4483 if ${ac_cv_path_GREP+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   if test -z "$GREP"; then
4487   ac_path_GREP_found=false
4488   # Loop through the user's path and test for each of PROGNAME-LIST
4489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494     for ac_prog in grep ggrep; do
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4497       as_fn_executable_p "$ac_path_GREP" || continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499   # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4501 *GNU*)
4502   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4503 *)
4504   ac_count=0
4505   $as_echo_n 0123456789 >"conftest.in"
4506   while :
4507   do
4508     cat "conftest.in" "conftest.in" >"conftest.tmp"
4509     mv "conftest.tmp" "conftest.in"
4510     cp "conftest.in" "conftest.nl"
4511     $as_echo 'GREP' >> "conftest.nl"
4512     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514     as_fn_arith $ac_count + 1 && ac_count=$as_val
4515     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516       # Best one so far, save it but keep looking for a better one
4517       ac_cv_path_GREP="$ac_path_GREP"
4518       ac_path_GREP_max=$ac_count
4519     fi
4520     # 10*(2^10) chars as input seems more than enough
4521     test $ac_count -gt 10 && break
4522   done
4523   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526       $ac_path_GREP_found && break 3
4527     done
4528   done
4529   done
4530 IFS=$as_save_IFS
4531   if test -z "$ac_cv_path_GREP"; then
4532     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533   fi
4534 else
4535   ac_cv_path_GREP=$GREP
4536 fi
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4540 $as_echo "$ac_cv_path_GREP" >&6; }
4541  GREP="$ac_cv_path_GREP"
4542
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4545 $as_echo_n "checking for egrep... " >&6; }
4546 if ${ac_cv_path_EGREP+:} false; then :
4547   $as_echo_n "(cached) " >&6
4548 else
4549   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4550    then ac_cv_path_EGREP="$GREP -E"
4551    else
4552      if test -z "$EGREP"; then
4553   ac_path_EGREP_found=false
4554   # Loop through the user's path and test for each of PROGNAME-LIST
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_prog in egrep; do
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4563       as_fn_executable_p "$ac_path_EGREP" || continue
4564 # Check for GNU ac_path_EGREP and select it if it is found.
4565   # Check for GNU $ac_path_EGREP
4566 case `"$ac_path_EGREP" --version 2>&1` in
4567 *GNU*)
4568   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4569 *)
4570   ac_count=0
4571   $as_echo_n 0123456789 >"conftest.in"
4572   while :
4573   do
4574     cat "conftest.in" "conftest.in" >"conftest.tmp"
4575     mv "conftest.tmp" "conftest.in"
4576     cp "conftest.in" "conftest.nl"
4577     $as_echo 'EGREP' >> "conftest.nl"
4578     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580     as_fn_arith $ac_count + 1 && ac_count=$as_val
4581     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4582       # Best one so far, save it but keep looking for a better one
4583       ac_cv_path_EGREP="$ac_path_EGREP"
4584       ac_path_EGREP_max=$ac_count
4585     fi
4586     # 10*(2^10) chars as input seems more than enough
4587     test $ac_count -gt 10 && break
4588   done
4589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592       $ac_path_EGREP_found && break 3
4593     done
4594   done
4595   done
4596 IFS=$as_save_IFS
4597   if test -z "$ac_cv_path_EGREP"; then
4598     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599   fi
4600 else
4601   ac_cv_path_EGREP=$EGREP
4602 fi
4603
4604    fi
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4607 $as_echo "$ac_cv_path_EGREP" >&6; }
4608  EGREP="$ac_cv_path_EGREP"
4609
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4612 $as_echo_n "checking for ANSI C header files... " >&6; }
4613 if ${ac_cv_header_stdc+:} false; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <stdlib.h>
4619 #include <stdarg.h>
4620 #include <string.h>
4621 #include <float.h>
4622
4623 int
4624 main ()
4625 {
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632   ac_cv_header_stdc=yes
4633 else
4634   ac_cv_header_stdc=no
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637
4638 if test $ac_cv_header_stdc = yes; then
4639   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642 #include <string.h>
4643
4644 _ACEOF
4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4646   $EGREP "memchr" >/dev/null 2>&1; then :
4647
4648 else
4649   ac_cv_header_stdc=no
4650 fi
4651 rm -f conftest*
4652
4653 fi
4654
4655 if test $ac_cv_header_stdc = yes; then
4656   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h.  */
4659 #include <stdlib.h>
4660
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663   $EGREP "free" >/dev/null 2>&1; then :
4664
4665 else
4666   ac_cv_header_stdc=no
4667 fi
4668 rm -f conftest*
4669
4670 fi
4671
4672 if test $ac_cv_header_stdc = yes; then
4673   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674   if test "$cross_compiling" = yes; then :
4675   :
4676 else
4677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679 #include <ctype.h>
4680 #include <stdlib.h>
4681 #if ((' ' & 0x0FF) == 0x020)
4682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684 #else
4685 # define ISLOWER(c) \
4686                    (('a' <= (c) && (c) <= 'i') \
4687                      || ('j' <= (c) && (c) <= 'r') \
4688                      || ('s' <= (c) && (c) <= 'z'))
4689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #endif
4691
4692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693 int
4694 main ()
4695 {
4696   int i;
4697   for (i = 0; i < 256; i++)
4698     if (XOR (islower (i), ISLOWER (i))
4699         || toupper (i) != TOUPPER (i))
4700       return 2;
4701   return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_run "$LINENO"; then :
4705
4706 else
4707   ac_cv_header_stdc=no
4708 fi
4709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4710   conftest.$ac_objext conftest.beam conftest.$ac_ext
4711 fi
4712
4713 fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4716 $as_echo "$ac_cv_header_stdc" >&6; }
4717 if test $ac_cv_header_stdc = yes; then
4718
4719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4720
4721 fi
4722
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4725                   inttypes.h stdint.h unistd.h
4726 do :
4727   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4729 "
4730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4731   cat >>confdefs.h <<_ACEOF
4732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4733 _ACEOF
4734
4735 fi
4736
4737 done
4738
4739
4740
4741   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4742 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4743   MINIX=yes
4744 else
4745   MINIX=
4746 fi
4747
4748
4749   if test "$MINIX" = yes; then
4750
4751 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4752
4753
4754 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4755
4756
4757 $as_echo "#define _MINIX 1" >>confdefs.h
4758
4759   fi
4760
4761
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4763 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4764 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h.  */
4769
4770 #         define __EXTENSIONS__ 1
4771           $ac_includes_default
4772 int
4773 main ()
4774 {
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781   ac_cv_safe_to_define___extensions__=yes
4782 else
4783   ac_cv_safe_to_define___extensions__=no
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4788 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4789   test $ac_cv_safe_to_define___extensions__ = yes &&
4790     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4791
4792   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4793
4794   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4795
4796   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4797
4798   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4799
4800
4801 LIB_EXT=.a
4802 STATIC_LIB_EXT=.a
4803 PROFILED_LIB_EXT=.a
4804
4805 # Check whether --with-root-prefix was given.
4806 if test "${with_root_prefix+set}" = set; then :
4807   withval=$with_root_prefix; root_prefix=$withval
4808 else
4809   root_prefix=NONE
4810 fi
4811 # Check whether --enable-maintainer-mode was given.
4812 if test "${enable_maintainer_mode+set}" = set; then :
4813   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4814 then
4815         MAINTAINER_CMT=#
4816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4817 $as_echo "Disabling maintainer mode" >&6; }
4818 else
4819         MAINTAINER_CMT=
4820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4821 $as_echo "Enabling maintainer mode" >&6; }
4822 fi
4823
4824 else
4825   MAINTAINER_CMT=#
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4827 $as_echo "Disabling maintainer mode by default" >&6; }
4828
4829 fi
4830
4831
4832 # Check whether --enable-symlink-install was given.
4833 if test "${enable_symlink_install+set}" = set; then :
4834   enableval=$enable_symlink_install; if test "$enableval" = "no"
4835 then
4836         LINK_INSTALL_FLAGS=-f
4837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4838 $as_echo "Disabling symlinks for install" >&6; }
4839 else
4840         LINK_INSTALL_FLAGS=-sf
4841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4842 $as_echo "Enabling symlinks for install" >&6; }
4843 fi
4844
4845 else
4846   LINK_INSTALL_FLAGS=-f
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4848 $as_echo "Disabling symlinks for install by default" >&6; }
4849
4850 fi
4851
4852
4853 relative_symlink_defined=
4854 # Check whether --enable-relative-symlinks was given.
4855 if test "${enable_relative_symlinks+set}" = set; then :
4856   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4857 then
4858         SYMLINK_RELATIVE=
4859         relative_symlink_defined=yes
4860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4861 $as_echo "Disabling relative symlinks for install" >&6; }
4862 else
4863         SYMLINK_RELATIVE=--relative
4864         relative_symlink_defined=yes
4865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4866 $as_echo "Enabling relative symlinks for install" >&6; }
4867 fi
4868 fi
4869
4870 # Check whether --enable-symlink-relative-symlinks was given.
4871 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4872   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4873 then
4874         SYMLINK_RELATIVE=yes
4875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4876 $as_echo "Disabling relative symlinks for install" >&6; }
4877 else
4878         SYMLINK_RELATIVE=--relative
4879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4880 $as_echo "Enabling relative symlinks for install" >&6; }
4881 fi
4882
4883 else
4884   if test -z "$relative_symlink_defined"
4885 then
4886         SYMLINK_RELATIVE=
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4888 $as_echo "Disabling relative symlinks for install by default" >&6; }
4889 fi
4890
4891 fi
4892
4893
4894 # Check whether --enable-symlink-build was given.
4895 if test "${enable_symlink_build+set}" = set; then :
4896   enableval=$enable_symlink_build; if test "$enableval" = "no"
4897 then
4898         LINK_BUILD_FLAGS=
4899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4900 $as_echo "Disabling symlinks for build" >&6; }
4901 else
4902         LINK_BUILD_FLAGS=-s
4903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4904 $as_echo "Enabling symlinks for build" >&6; }
4905 fi
4906
4907 else
4908   LINK_BUILD_FLAGS=
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4910 $as_echo "Disabling symlinks for build by default" >&6; }
4911
4912 fi
4913
4914
4915 # Check whether --enable-verbose-makecmds was given.
4916 if test "${enable_verbose_makecmds+set}" = set; then :
4917   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4918 then
4919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4920 $as_echo "Disabling verbose make commands" >&6; }
4921         E=@echo
4922         ES=echo
4923         Q=@
4924 else
4925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4926 $as_echo "Enabling verbose make commands" >&6; }
4927         E=@\\#
4928         ES=\\#
4929         Q=
4930 fi
4931
4932 else
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4934 $as_echo "Disabling verbose make commands" >&6; }
4935 E=@echo
4936 ES=echo
4937 Q=@
4938
4939 fi
4940
4941
4942
4943
4944 E2_PKG_CONFIG_STATIC=--static
4945 LDFLAG_DYNAMIC=
4946 PRIVATE_LIBS_CMT=
4947 # Check whether --enable-elf-shlibs was given.
4948 if test "${enable_elf_shlibs+set}" = set; then :
4949   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4950 then
4951         ELF_CMT=#
4952         MAKEFILE_ELF=/dev/null
4953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4954 $as_echo "Disabling ELF shared libraries" >&6; }
4955 else
4956         E2_PKG_CONFIG_STATIC=
4957         ELF_CMT=
4958         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4959         case "$host_os" in
4960         solaris2.*)
4961                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4962         ;;
4963         esac
4964         BINARY_TYPE=elfbin
4965         LIB_EXT=.so
4966         PRIVATE_LIBS_CMT=#
4967         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4969 $as_echo "Enabling ELF shared libraries" >&6; }
4970 fi
4971
4972 else
4973   MAKEFILE_ELF=/dev/null
4974 ELF_CMT=#
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4976 $as_echo "Disabling ELF shared libraries by default" >&6; }
4977
4978 fi
4979
4980
4981
4982 # Check whether --enable-bsd-shlibs was given.
4983 if test "${enable_bsd_shlibs+set}" = set; then :
4984   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4985 then
4986         BSDLIB_CMT=#
4987         MAKEFILE_BSDLIB=/dev/null
4988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4989 $as_echo "Disabling BSD shared libraries" >&6; }
4990 else
4991         E2_PKG_CONFIG_STATIC=
4992         BSDLIB_CMT=
4993         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4994         LIB_EXT=.so
4995         case "$host_os" in
4996         darwin*)
4997                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4998                 LIB_EXT=.dylib
4999         ;;
5000         esac
5001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5002 $as_echo "Enabling BSD shared libraries" >&6; }
5003 fi
5004
5005 else
5006   MAKEFILE_BSDLIB=/dev/null
5007 BSDLIB_CMT=#
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5009 $as_echo "Disabling BSD shared libraries by default" >&6; }
5010
5011 fi
5012
5013
5014
5015 # Check whether --enable-profile was given.
5016 if test "${enable_profile+set}" = set; then :
5017   enableval=$enable_profile; if test "$enableval" = "no"
5018 then
5019         PROFILE_CMT=#
5020         MAKEFILE_PROFILE=/dev/null
5021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5022 $as_echo "Disabling profiling libraries" >&6; }
5023 else
5024         PROFILE_CMT=
5025         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5026         PROFILED_LIB_EXT=_p.a
5027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5028 $as_echo "Building profiling libraries" >&6; }
5029 fi
5030
5031 else
5032   PROFILE_CMT=#
5033 MAKEFILE_PROFILE=/dev/null
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5035 $as_echo "Disabling profiling libraries by default" >&6; }
5036
5037 fi
5038
5039
5040
5041 # Check whether --enable-gcov was given.
5042 if test "${enable_gcov+set}" = set; then :
5043   enableval=$enable_gcov; if test "$enableval" = "yes"
5044 then
5045         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5046         LDFLAGS="-fprofile-arcs -ftest-coverage"
5047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5048 $as_echo "Enabling gcov support" >&6; }
5049 fi
5050
5051 fi
5052
5053 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5054 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5055 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5056 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5057 # Check whether --enable-hardening was given.
5058 if test "${enable_hardening+set}" = set; then :
5059   enableval=$enable_hardening; if test "$enableval" = "yes"
5060 then
5061         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5062         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5063         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5064         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5065         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5066         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5067         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5068         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5070 $as_echo "Enabling hardening support" >&6; }
5071 fi
5072
5073 fi
5074
5075
5076
5077
5078
5079
5080 # Check whether --enable-jbd-debug was given.
5081 if test "${enable_jbd_debug+set}" = set; then :
5082   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5083 then
5084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5085 $as_echo "Disabling journal debugging" >&6; }
5086 else
5087
5088 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5089
5090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5091 $as_echo "Enabling journal debugging" >&6; }
5092 fi
5093
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5096 $as_echo "Disabling journal debugging by default" >&6; }
5097
5098 fi
5099
5100 # Check whether --enable-blkid-debug was given.
5101 if test "${enable_blkid_debug+set}" = set; then :
5102   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5103 then
5104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5105 $as_echo "Disabling blkid debugging" >&6; }
5106 else
5107
5108 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5109
5110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5111 $as_echo "Enabling blkid debugging" >&6; }
5112 fi
5113
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5116 $as_echo "Disabling blkid debugging by default" >&6; }
5117
5118 fi
5119
5120 # Check whether --enable-testio-debug was given.
5121 if test "${enable_testio_debug+set}" = set; then :
5122   enableval=$enable_testio_debug;
5123 if test "$enableval" = "no"
5124 then
5125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5126 $as_echo "Disabling testio debugging" >&6; }
5127         TEST_IO_CMT="#"
5128 else
5129         TEST_IO_CMT=
5130         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5131
5132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5133 $as_echo "Enabling testio debugging" >&6; }
5134 fi
5135
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5138 $as_echo "Enabling testio debugging by default" >&6; }
5139 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5140
5141 TEST_IO_CMT=
5142
5143 fi
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5154         if test -n "$ac_tool_prefix"; then
5155   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   case $PKG_CONFIG in
5163   [\\/]* | ?:[\\/]*)
5164   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5165   ;;
5166   *)
5167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179   done
5180 IFS=$as_save_IFS
5181
5182   ;;
5183 esac
5184 fi
5185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5186 if test -n "$PKG_CONFIG"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5188 $as_echo "$PKG_CONFIG" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195 fi
5196 if test -z "$ac_cv_path_PKG_CONFIG"; then
5197   ac_pt_PKG_CONFIG=$PKG_CONFIG
5198   # Extract the first word of "pkg-config", so it can be a program name with args.
5199 set dummy pkg-config; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   case $ac_pt_PKG_CONFIG in
5206   [\\/]* | ?:[\\/]*)
5207   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5208   ;;
5209   *)
5210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222   done
5223 IFS=$as_save_IFS
5224
5225   ;;
5226 esac
5227 fi
5228 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5229 if test -n "$ac_pt_PKG_CONFIG"; then
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5231 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5232 else
5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236
5237   if test "x$ac_pt_PKG_CONFIG" = x; then
5238     PKG_CONFIG=""
5239   else
5240     case $cross_compiling:$ac_tool_warned in
5241 yes:)
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5244 ac_tool_warned=yes ;;
5245 esac
5246     PKG_CONFIG=$ac_pt_PKG_CONFIG
5247   fi
5248 else
5249   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5250 fi
5251
5252 fi
5253 if test -n "$PKG_CONFIG"; then
5254         _pkg_min_version=0.9.0
5255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5256 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5257         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5260         else
5261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263                 PKG_CONFIG=""
5264         fi
5265 fi
5266 LIBUUID=
5267 DEPLIBUUID=
5268 STATIC_LIBUUID=
5269 DEPSTATIC_LIBUUID=
5270 PROFILED_LIBUUID=
5271 DEPPROFILED_LIBUUID=
5272 UUID_CMT=
5273 # Check whether --enable-libuuid was given.
5274 if test "${enable_libuuid+set}" = set; then :
5275   enableval=$enable_libuuid; if test "$enableval" = "no"
5276 then
5277         if test -z "$PKG_CONFIG"; then
5278                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5279         fi
5280
5281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5282 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5283 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   ac_check_lib_save_LIBS=$LIBS
5287 LIBS="-luuid  $LIBS"
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h.  */
5290
5291 /* Override any GCC internal prototype to avoid an error.
5292    Use char because int might match the return type of a GCC
5293    builtin and then its argument prototype would still apply.  */
5294 #ifdef __cplusplus
5295 extern "C"
5296 #endif
5297 char uuid_generate ();
5298 int
5299 main ()
5300 {
5301 return uuid_generate ();
5302   ;
5303   return 0;
5304 }
5305 _ACEOF
5306 if ac_fn_c_try_link "$LINENO"; then :
5307   ac_cv_lib_uuid_uuid_generate=yes
5308 else
5309   ac_cv_lib_uuid_uuid_generate=no
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext \
5312     conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5316 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5317 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5318   LIBUUID=`$PKG_CONFIG --libs uuid`;
5319                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5320 else
5321   as_fn_error $? "external uuid library not found" "$LINENO" 5
5322 fi
5323
5324         PROFILED_LIBUUID=$LIBUUID
5325         UUID_CMT=#
5326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5327 $as_echo "Disabling private uuid library" >&6; }
5328 else
5329         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5330         DEPLIBUUID=$LIBUUID
5331         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5332         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5333         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5334         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5336 $as_echo "Enabling private uuid library" >&6; }
5337 fi
5338
5339 else
5340   if test -n "$PKG_CONFIG"; then
5341         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5342 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5343 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-luuid  $LIBS"
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350
5351 /* Override any GCC internal prototype to avoid an error.
5352    Use char because int might match the return type of a GCC
5353    builtin and then its argument prototype would still apply.  */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 char uuid_generate ();
5358 int
5359 main ()
5360 {
5361 return uuid_generate ();
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"; then :
5367   ac_cv_lib_uuid_uuid_generate=yes
5368 else
5369   ac_cv_lib_uuid_uuid_generate=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372     conftest$ac_exeext conftest.$ac_ext
5373 LIBS=$ac_check_lib_save_LIBS
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5376 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5377 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5378   LIBUUID=`$PKG_CONFIG --libs uuid`;
5379                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5380 fi
5381
5382 fi
5383 if test -n "$LIBUUID"; then
5384         PROFILED_LIBUUID=$LIBUUID
5385         UUID_CMT=#
5386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5387 $as_echo "Using system uuid by default" >&6; }
5388 else
5389         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5390         DEPLIBUUID=$LIBUUID
5391         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5392         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5393         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5394         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5396 $as_echo "Enabling private uuid library by default" >&6; }
5397 fi
5398
5399 fi
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5416         if test -n "$ac_tool_prefix"; then
5417   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5418 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   case $PKG_CONFIG in
5425   [\\/]* | ?:[\\/]*)
5426   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5427   ;;
5428   *)
5429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444   ;;
5445 esac
5446 fi
5447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5448 if test -n "$PKG_CONFIG"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5450 $as_echo "$PKG_CONFIG" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457 fi
5458 if test -z "$ac_cv_path_PKG_CONFIG"; then
5459   ac_pt_PKG_CONFIG=$PKG_CONFIG
5460   # Extract the first word of "pkg-config", so it can be a program name with args.
5461 set dummy pkg-config; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   case $ac_pt_PKG_CONFIG in
5468   [\\/]* | ?:[\\/]*)
5469   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486
5487   ;;
5488 esac
5489 fi
5490 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5491 if test -n "$ac_pt_PKG_CONFIG"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5493 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499   if test "x$ac_pt_PKG_CONFIG" = x; then
5500     PKG_CONFIG=""
5501   else
5502     case $cross_compiling:$ac_tool_warned in
5503 yes:)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned=yes ;;
5507 esac
5508     PKG_CONFIG=$ac_pt_PKG_CONFIG
5509   fi
5510 else
5511   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5512 fi
5513
5514 fi
5515 if test -n "$PKG_CONFIG"; then
5516         _pkg_min_version=0.9.0
5517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5518 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5519         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5520                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522         else
5523                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525                 PKG_CONFIG=""
5526         fi
5527 fi
5528 LIBBLKID=
5529 DEPLIBBLKID=
5530 STATIC_LIBBLKID=
5531 DEPSTATIC_LIBBLKID=
5532 PROFILED_LIBBLKID=
5533 DEPPROFILED_LIBBLKID=
5534 BLKID_CMT=
5535
5536 # Check whether --enable-libblkid was given.
5537 if test "${enable_libblkid+set}" = set; then :
5538   enableval=$enable_libblkid; if test "$enableval" = "no"
5539 then
5540         if test -z "$PKG_CONFIG"; then
5541                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5542         fi
5543
5544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5545 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5546 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   ac_check_lib_save_LIBS=$LIBS
5550 LIBS="-lblkid -luuid $LIBS"
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h.  */
5553
5554 /* Override any GCC internal prototype to avoid an error.
5555    Use char because int might match the return type of a GCC
5556    builtin and then its argument prototype would still apply.  */
5557 #ifdef __cplusplus
5558 extern "C"
5559 #endif
5560 char blkid_get_cache ();
5561 int
5562 main ()
5563 {
5564 return blkid_get_cache ();
5565   ;
5566   return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_link "$LINENO"; then :
5570   ac_cv_lib_blkid_blkid_get_cache=yes
5571 else
5572   ac_cv_lib_blkid_blkid_get_cache=no
5573 fi
5574 rm -f core conftest.err conftest.$ac_objext \
5575     conftest$ac_exeext conftest.$ac_ext
5576 LIBS=$ac_check_lib_save_LIBS
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5579 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5580 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5581   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5582                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5583 else
5584   as_fn_error $? "external blkid library not found" "$LINENO" 5
5585 fi
5586
5587         BLKID_CMT=#
5588         PROFILED_LIBBLKID=$LIBBLKID
5589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5590 $as_echo "Disabling private blkid library" >&6; }
5591 else
5592         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5593         DEPLIBBLKID=$LIBBLKID
5594         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5595         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5596         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5597         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5598         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5599
5600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5601 $as_echo "Enabling private blkid library" >&6; }
5602 fi
5603
5604 else
5605   if test -n "$PKG_CONFIG"; then
5606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5607 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5608 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   ac_check_lib_save_LIBS=$LIBS
5612 LIBS="-lblkid  $LIBS"
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h.  */
5615
5616 /* Override any GCC internal prototype to avoid an error.
5617    Use char because int might match the return type of a GCC
5618    builtin and then its argument prototype would still apply.  */
5619 #ifdef __cplusplus
5620 extern "C"
5621 #endif
5622 char blkid_get_cache ();
5623 int
5624 main ()
5625 {
5626 return blkid_get_cache ();
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_link "$LINENO"; then :
5632   ac_cv_lib_blkid_blkid_get_cache=yes
5633 else
5634   ac_cv_lib_blkid_blkid_get_cache=no
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext \
5637     conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5641 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5642 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5643   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5644                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5645 fi
5646
5647 fi
5648 if test -n "$LIBBLKID"; then
5649         BLKID_CMT=#
5650         PROFILED_LIBBLKID=$LIBBLKID
5651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5652 $as_echo "Using system blkid library by default" >&6; }
5653 else
5654         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5655         DEPLIBBLKID=$LIBBLKID
5656         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5657         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5658         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5659         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5660         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5661
5662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5663 $as_echo "Enabling private blkid library by default" >&6; }
5664 fi
5665
5666 fi
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 # Check whether --enable-backtrace was given.
5677 if test "${enable_backtrace+set}" = set; then :
5678   enableval=$enable_backtrace; if test "$enableval" = "no"
5679 then
5680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5681 $as_echo "Disabling use of backtrace" >&6; }
5682         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5683
5684 else
5685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5686 $as_echo "Enabling use of backtrace" >&6; }
5687 fi
5688
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5691 $as_echo "Enabling use of backtrace by default" >&6; }
5692
5693 fi
5694
5695 # Check whether --enable-debugfs was given.
5696 if test "${enable_debugfs+set}" = set; then :
5697   enableval=$enable_debugfs; if test "$enableval" = "no"
5698 then
5699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5700 $as_echo "Disabling debugfs support" >&6; }
5701         DEBUGFS_CMT="#"
5702 else
5703         DEBUGFS_CMT=
5704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5705 $as_echo "Enabling debugfs support" >&6; }
5706 fi
5707
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5710 $as_echo "Enabling debugfs support by default" >&6; }
5711 DEBUGFS_CMT=
5712
5713 fi
5714
5715
5716 # Check whether --enable-imager was given.
5717 if test "${enable_imager+set}" = set; then :
5718   enableval=$enable_imager; if test "$enableval" = "no"
5719 then
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5721 $as_echo "Disabling e2image support" >&6; }
5722         IMAGER_CMT="#"
5723 else
5724         IMAGER_CMT=
5725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5726 $as_echo "Enabling e2image support" >&6; }
5727 fi
5728
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5731 $as_echo "Enabling e2image support by default" >&6; }
5732 IMAGER_CMT=
5733
5734 fi
5735
5736
5737 # Check whether --enable-resizer was given.
5738 if test "${enable_resizer+set}" = set; then :
5739   enableval=$enable_resizer; if test "$enableval" = "no"
5740 then
5741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5742 $as_echo "Disabling e2resize support" >&6; }
5743         RESIZER_CMT="#"
5744 else
5745         RESIZER_CMT=
5746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5747 $as_echo "Enabling e2resize support" >&6; }
5748 fi
5749
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5752 $as_echo "Enabling e2resize support by default" >&6; }
5753 RESIZER_CMT=
5754
5755 fi
5756
5757
5758 # Check whether --enable-defrag was given.
5759 if test "${enable_defrag+set}" = set; then :
5760   enableval=$enable_defrag; if test "$enableval" = "no"
5761 then
5762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5763 $as_echo "Disabling e4defrag support" >&6; }
5764         DEFRAG_CMT="#"
5765 else
5766         DEFRAG_CMT=
5767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5768 $as_echo "Enabling e4defrag support" >&6; }
5769 fi
5770
5771 else
5772   if test -z "$WITH_DIET_LIBC"
5773 then
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5775 $as_echo "Enabling e4defrag support by default" >&6; }
5776         DEFRAG_CMT=
5777 else
5778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5779 $as_echo "Disabling e4defrag support by default" >&6; }
5780         DEFRAG_CMT="#"
5781 fi
5782
5783 fi
5784
5785
5786 # Check whether --enable-fsck was given.
5787 if test "${enable_fsck+set}" = set; then :
5788   enableval=$enable_fsck; if test "$enableval" = "no"
5789 then
5790         FSCK_PROG='' FSCK_MAN=''
5791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5792 $as_echo "Not building fsck wrapper" >&6; }
5793 else
5794         FSCK_PROG=fsck FSCK_MAN=fsck.8
5795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5796 $as_echo "Building fsck wrapper" >&6; }
5797 fi
5798
5799 else
5800   case "$host_os" in
5801   gnu*)
5802     FSCK_PROG='' FSCK_MAN=''
5803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5804 $as_echo "Not building fsck wrapper by default" >&6; }
5805     ;;
5806   *)
5807     FSCK_PROG=fsck FSCK_MAN=fsck.8
5808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5809 $as_echo "Building fsck wrapper by default" >&6; }
5810 esac
5811
5812 fi
5813
5814
5815
5816 # Check whether --enable-e2initrd-helper was given.
5817 if test "${enable_e2initrd_helper+set}" = set; then :
5818   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5819 then
5820         E2INITRD_PROG='' E2INITRD_MAN=''
5821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5822 $as_echo "Not building e2initrd helper" >&6; }
5823 else
5824         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5826 $as_echo "Building e2initrd helper" >&6; }
5827 fi
5828
5829 else
5830   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5832 $as_echo "Building e2initrd helper by default" >&6; }
5833
5834 fi
5835
5836
5837
5838 # Check whether --enable-tls was given.
5839 if test "${enable_tls+set}" = set; then :
5840   enableval=$enable_tls; if test "$enableval" = "no"
5841 then
5842         try_tls=""
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5844 $as_echo "Disabling thread local support" >&6; }
5845 else
5846         try_tls="yes"
5847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5848 $as_echo "Enabling thread local support" >&6; }
5849 fi
5850
5851 else
5852   if test -n "$WITH_DIET_LIBC"
5853 then
5854         try_tls=""
5855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5856 $as_echo "Diet libc does not support thread local support" >&6; }
5857 else
5858         try_tls="yes"
5859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5860 $as_echo "Try using thread local support by default" >&6; }
5861 fi
5862
5863 fi
5864
5865 if test "$try_tls" = "yes"
5866 then
5867
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5869 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5870   if ${ac_cv_tls+:} false; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873
5874     ax_tls_keywords="__thread __declspec(thread) none"
5875     for ax_tls_keyword in $ax_tls_keywords; do
5876        case $ax_tls_keyword in
5877           none) ac_cv_tls=none ; break ;;
5878           *)
5879              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h.  */
5881 #include <stdlib.h>
5882                  static void
5883                  foo(void) {
5884                  static  $ax_tls_keyword  int bar;
5885                  exit(1);
5886                  }
5887 int
5888 main ()
5889 {
5890
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896   ac_cv_tls=$ax_tls_keyword ; break
5897 else
5898   ac_cv_tls=none
5899
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902           esac
5903     done
5904
5905 fi
5906
5907
5908   if test "$ac_cv_tls" != "none"; then
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define TLS $ac_cv_tls
5912 _ACEOF
5913
5914   fi
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5916 $as_echo "$ac_cv_tls" >&6; }
5917
5918 fi
5919
5920 # Check whether --enable-uuidd was given.
5921 if test "${enable_uuidd+set}" = set; then :
5922   enableval=$enable_uuidd; if test "$enableval" = "no"
5923 then
5924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5925 $as_echo "Not building uuidd" >&6; }
5926         UUIDD_CMT="#"
5927 else
5928         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5929
5930         UUIDD_CMT=""
5931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5932 $as_echo "Building uuidd" >&6; }
5933 fi
5934
5935 else
5936   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5937
5938 if test -z "$UUID_CMT"
5939 then
5940         UUIDD_CMT=""
5941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5942 $as_echo "Building uuidd by default" >&6; }
5943 else
5944         UUIDD_CMT="#"
5945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5946 $as_echo "Disabling uuidd by default" >&6; }
5947 fi
5948
5949 fi
5950
5951
5952
5953 # Check whether --enable-mmp was given.
5954 if test "${enable_mmp+set}" = set; then :
5955   enableval=$enable_mmp; if test "$enableval" = "no"
5956 then
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5958 $as_echo "Disabling mmp support" >&6; }
5959 else
5960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5961 $as_echo "Enabling mmp support" >&6; }
5962         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5963
5964 fi
5965
5966 else
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5968 $as_echo "Enabling mmp support by default" >&6; }
5969 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5970
5971
5972 fi
5973
5974
5975 # Check whether --enable-tdb was given.
5976 if test "${enable_tdb+set}" = set; then :
5977   enableval=$enable_tdb; if test "$enableval" = "no"
5978 then
5979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5980 $as_echo "Disabling tdb support" >&6; }
5981         TDB_CMT="#"
5982         TDB_MAN_COMMENT='.\"'
5983 else
5984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5985 $as_echo "Enabling tdb support" >&6; }
5986         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5987
5988         TDB_CMT=""
5989         TDB_MAN_COMMENT=""
5990 fi
5991
5992 else
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5994 $as_echo "Enabling mmp support by default" >&6; }
5995 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5996
5997 TDB_CMT=""
5998 TDB_MAN_COMMENT=""
5999
6000 fi
6001
6002
6003
6004
6005 # Check whether --enable-bmap-stats was given.
6006 if test "${enable_bmap_stats+set}" = set; then :
6007   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6008 then
6009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6010 $as_echo "Disabling bitmap statistics support" >&6; }
6011 else
6012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6013 $as_echo "Enabling bitmap statistics support" >&6; }
6014         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6015
6016 fi
6017
6018 else
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6020 $as_echo "Enabling bitmap statistics support by default" >&6; }
6021 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6022
6023
6024 fi
6025
6026
6027 # Check whether --enable-bmap-stats-ops was given.
6028 if test "${enable_bmap_stats_ops+set}" = set; then :
6029   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6030 then
6031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6032 $as_echo "Disabling additional bitmap statistics" >&6; }
6033 else
6034                 if test "x${enable_bmap_stats}" = "xno"; then :
6035   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6037 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6038 See \`config.log' for more details" "$LINENO" 5; }
6039 fi
6040
6041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6042 $as_echo "Enabling additional bitmap statistics" >&6; }
6043         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6044
6045 fi
6046
6047 else
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6049 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6050
6051 fi
6052
6053 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6054
6055 GETTEXT_PACKAGE=e2fsprogs
6056 PACKAGE=e2fsprogs
6057 VERSION="$E2FSPROGS_VERSION"
6058 VERSION=0.14.1
6059
6060 cat >>confdefs.h <<_ACEOF
6061 #define PACKAGE "$PACKAGE"
6062 _ACEOF
6063
6064
6065 cat >>confdefs.h <<_ACEOF
6066 #define VERSION "$VERSION"
6067 _ACEOF
6068
6069
6070
6071
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6074 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6075 set x ${MAKE-make}
6076 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6077 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   cat >conftest.make <<\_ACEOF
6081 SHELL = /bin/sh
6082 all:
6083         @echo '@@@%%%=$(MAKE)=@@@%%%'
6084 _ACEOF
6085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6087   *@@@%%%=?*=@@@%%%*)
6088     eval ac_cv_prog_make_${ac_make}_set=yes;;
6089   *)
6090     eval ac_cv_prog_make_${ac_make}_set=no;;
6091 esac
6092 rm -f conftest.make
6093 fi
6094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6096 $as_echo "yes" >&6; }
6097   SET_MAKE=
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101   SET_MAKE="MAKE=${MAKE-make}"
6102 fi
6103
6104 # Find a good install program.  We prefer a C program (faster),
6105 # so one script is as good as another.  But avoid the broken or
6106 # incompatible versions:
6107 # SysV /etc/install, /usr/sbin/install
6108 # SunOS /usr/etc/install
6109 # IRIX /sbin/install
6110 # AIX /bin/install
6111 # AmigaOS /C/install, which installs bootblocks on floppy discs
6112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6115 # OS/2's system install, which has a completely different semantic
6116 # ./install, which can be erroneously created by make from ./install.sh.
6117 # Reject install programs that cannot install multiple files.
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6119 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6120 if test -z "$INSTALL"; then
6121 if ${ac_cv_path_install+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129     # Account for people who put trailing slashes in PATH elements.
6130 case $as_dir/ in #((
6131   ./ | .// | /[cC]/* | \
6132   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6133   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6134   /usr/ucb/* ) ;;
6135   *)
6136     # OSF1 and SCO ODT 3.0 have their own names for install.
6137     # Don't use installbsd from OSF since it installs stuff as root
6138     # by default.
6139     for ac_prog in ginstall scoinst install; do
6140       for ac_exec_ext in '' $ac_executable_extensions; do
6141         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6142           if test $ac_prog = install &&
6143             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6144             # AIX install.  It has an incompatible calling convention.
6145             :
6146           elif test $ac_prog = install &&
6147             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6148             # program-specific install script used by HP pwplus--don't use.
6149             :
6150           else
6151             rm -rf conftest.one conftest.two conftest.dir
6152             echo one > conftest.one
6153             echo two > conftest.two
6154             mkdir conftest.dir
6155             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6156               test -s conftest.one && test -s conftest.two &&
6157               test -s conftest.dir/conftest.one &&
6158               test -s conftest.dir/conftest.two
6159             then
6160               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6161               break 3
6162             fi
6163           fi
6164         fi
6165       done
6166     done
6167     ;;
6168 esac
6169
6170   done
6171 IFS=$as_save_IFS
6172
6173 rm -rf conftest.one conftest.two conftest.dir
6174
6175 fi
6176   if test "${ac_cv_path_install+set}" = set; then
6177     INSTALL=$ac_cv_path_install
6178   else
6179     # As a last resort, use the slow shell script.  Don't cache a
6180     # value for INSTALL within a source directory, because that will
6181     # break other packages using the cache if that directory is
6182     # removed, or if the value is a relative name.
6183     INSTALL=$ac_install_sh
6184   fi
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6187 $as_echo "$INSTALL" >&6; }
6188
6189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6190 # It thinks the first close brace ends the variable substitution.
6191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6192
6193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6194
6195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6198 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6199 if test -z "$MKDIR_P"; then
6200   if ${ac_cv_path_mkdir+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208     for ac_prog in mkdir gmkdir; do
6209          for ac_exec_ext in '' $ac_executable_extensions; do
6210            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6211            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6212              'mkdir (GNU coreutils) '* | \
6213              'mkdir (coreutils) '* | \
6214              'mkdir (fileutils) '4.1*)
6215                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6216                break 3;;
6217            esac
6218          done
6219        done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224
6225   test -d ./--version && rmdir ./--version
6226   if test "${ac_cv_path_mkdir+set}" = set; then
6227     MKDIR_P="$ac_cv_path_mkdir -p"
6228   else
6229     # As a last resort, use the slow shell script.  Don't cache a
6230     # value for MKDIR_P within a source directory, because that will
6231     # break other packages using the cache if that directory is
6232     # removed, or if the value is a relative name.
6233     MKDIR_P="$ac_install_sh -d"
6234   fi
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6237 $as_echo "$MKDIR_P" >&6; }
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6240 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6241 if ${ac_cv_path_SED+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6245      for ac_i in 1 2 3 4 5 6 7; do
6246        ac_script="$ac_script$as_nl$ac_script"
6247      done
6248      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6249      { ac_script=; unset ac_script;}
6250      if test -z "$SED"; then
6251   ac_path_SED_found=false
6252   # Loop through the user's path and test for each of PROGNAME-LIST
6253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258     for ac_prog in sed gsed; do
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6261       as_fn_executable_p "$ac_path_SED" || continue
6262 # Check for GNU ac_path_SED and select it if it is found.
6263   # Check for GNU $ac_path_SED
6264 case `"$ac_path_SED" --version 2>&1` in
6265 *GNU*)
6266   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6267 *)
6268   ac_count=0
6269   $as_echo_n 0123456789 >"conftest.in"
6270   while :
6271   do
6272     cat "conftest.in" "conftest.in" >"conftest.tmp"
6273     mv "conftest.tmp" "conftest.in"
6274     cp "conftest.in" "conftest.nl"
6275     $as_echo '' >> "conftest.nl"
6276     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6277     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6278     as_fn_arith $ac_count + 1 && ac_count=$as_val
6279     if test $ac_count -gt ${ac_path_SED_max-0}; then
6280       # Best one so far, save it but keep looking for a better one
6281       ac_cv_path_SED="$ac_path_SED"
6282       ac_path_SED_max=$ac_count
6283     fi
6284     # 10*(2^10) chars as input seems more than enough
6285     test $ac_count -gt 10 && break
6286   done
6287   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6288 esac
6289
6290       $ac_path_SED_found && break 3
6291     done
6292   done
6293   done
6294 IFS=$as_save_IFS
6295   if test -z "$ac_cv_path_SED"; then
6296     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6297   fi
6298 else
6299   ac_cv_path_SED=$SED
6300 fi
6301
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6304 $as_echo "$ac_cv_path_SED" >&6; }
6305  SED="$ac_cv_path_SED"
6306   rm -f conftest.sed
6307
6308
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6310 $as_echo_n "checking whether NLS is requested... " >&6; }
6311     # Check whether --enable-nls was given.
6312 if test "${enable_nls+set}" = set; then :
6313   enableval=$enable_nls; USE_NLS=$enableval
6314 else
6315   USE_NLS=yes
6316 fi
6317
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6319 $as_echo "$USE_NLS" >&6; }
6320
6321
6322
6323
6324       GETTEXT_MACRO_VERSION=0.18
6325
6326
6327
6328
6329 # Prepare PATH_SEPARATOR.
6330 # The user is always right.
6331 if test "${PATH_SEPARATOR+set}" != set; then
6332   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6333   # contains only /bin. Note that ksh looks also at the FPATH variable,
6334   # so we have to set that as well for the test.
6335   PATH_SEPARATOR=:
6336   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6337     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6338            || PATH_SEPARATOR=';'
6339        }
6340 fi
6341
6342 # Find out how to test for executable files. Don't use a zero-byte file,
6343 # as systems may use methods other than mode bits to determine executability.
6344 cat >conf$$.file <<_ASEOF
6345 #! /bin/sh
6346 exit 0
6347 _ASEOF
6348 chmod +x conf$$.file
6349 if test -x conf$$.file >/dev/null 2>&1; then
6350   ac_executable_p="test -x"
6351 else
6352   ac_executable_p="test -f"
6353 fi
6354 rm -f conf$$.file
6355
6356 # Extract the first word of "msgfmt", so it can be a program name with args.
6357 set dummy msgfmt; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_path_MSGFMT+:} false; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   case "$MSGFMT" in
6364   [\\/]* | ?:[\\/]*)
6365     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6366     ;;
6367   *)
6368     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6369     for ac_dir in $PATH; do
6370       IFS="$ac_save_IFS"
6371       test -z "$ac_dir" && ac_dir=.
6372       for ac_exec_ext in '' $ac_executable_extensions; do
6373         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6374           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6375           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6376      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6377             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6378             break 2
6379           fi
6380         fi
6381       done
6382     done
6383     IFS="$ac_save_IFS"
6384   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6385     ;;
6386 esac
6387 fi
6388 MSGFMT="$ac_cv_path_MSGFMT"
6389 if test "$MSGFMT" != ":"; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6391 $as_echo "$MSGFMT" >&6; }
6392 else
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6398 set dummy gmsgfmt; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_path_GMSGFMT+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   case $GMSGFMT in
6405   [\\/]* | ?:[\\/]*)
6406   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6407   ;;
6408   *)
6409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6425   ;;
6426 esac
6427 fi
6428 GMSGFMT=$ac_cv_path_GMSGFMT
6429 if test -n "$GMSGFMT"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6431 $as_echo "$GMSGFMT" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437
6438
6439     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6440     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6441     *) MSGFMT_015=$MSGFMT ;;
6442   esac
6443
6444   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6445     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6446     *) GMSGFMT_015=$GMSGFMT ;;
6447   esac
6448
6449
6450
6451 # Prepare PATH_SEPARATOR.
6452 # The user is always right.
6453 if test "${PATH_SEPARATOR+set}" != set; then
6454   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6455   # contains only /bin. Note that ksh looks also at the FPATH variable,
6456   # so we have to set that as well for the test.
6457   PATH_SEPARATOR=:
6458   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6459     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6460            || PATH_SEPARATOR=';'
6461        }
6462 fi
6463
6464 # Find out how to test for executable files. Don't use a zero-byte file,
6465 # as systems may use methods other than mode bits to determine executability.
6466 cat >conf$$.file <<_ASEOF
6467 #! /bin/sh
6468 exit 0
6469 _ASEOF
6470 chmod +x conf$$.file
6471 if test -x conf$$.file >/dev/null 2>&1; then
6472   ac_executable_p="test -x"
6473 else
6474   ac_executable_p="test -f"
6475 fi
6476 rm -f conf$$.file
6477
6478 # Extract the first word of "xgettext", so it can be a program name with args.
6479 set dummy xgettext; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_path_XGETTEXT+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   case "$XGETTEXT" in
6486   [\\/]* | ?:[\\/]*)
6487     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6488     ;;
6489   *)
6490     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6491     for ac_dir in $PATH; do
6492       IFS="$ac_save_IFS"
6493       test -z "$ac_dir" && ac_dir=.
6494       for ac_exec_ext in '' $ac_executable_extensions; do
6495         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6496           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6497           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6498      (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
6499             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6500             break 2
6501           fi
6502         fi
6503       done
6504     done
6505     IFS="$ac_save_IFS"
6506   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6507     ;;
6508 esac
6509 fi
6510 XGETTEXT="$ac_cv_path_XGETTEXT"
6511 if test "$XGETTEXT" != ":"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6513 $as_echo "$XGETTEXT" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519     rm -f messages.po
6520
6521     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6522     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6523     *) XGETTEXT_015=$XGETTEXT ;;
6524   esac
6525
6526
6527
6528 # Prepare PATH_SEPARATOR.
6529 # The user is always right.
6530 if test "${PATH_SEPARATOR+set}" != set; then
6531   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6532   # contains only /bin. Note that ksh looks also at the FPATH variable,
6533   # so we have to set that as well for the test.
6534   PATH_SEPARATOR=:
6535   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6536     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6537            || PATH_SEPARATOR=';'
6538        }
6539 fi
6540
6541 # Find out how to test for executable files. Don't use a zero-byte file,
6542 # as systems may use methods other than mode bits to determine executability.
6543 cat >conf$$.file <<_ASEOF
6544 #! /bin/sh
6545 exit 0
6546 _ASEOF
6547 chmod +x conf$$.file
6548 if test -x conf$$.file >/dev/null 2>&1; then
6549   ac_executable_p="test -x"
6550 else
6551   ac_executable_p="test -f"
6552 fi
6553 rm -f conf$$.file
6554
6555 # Extract the first word of "msgmerge", so it can be a program name with args.
6556 set dummy msgmerge; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_path_MSGMERGE+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   case "$MSGMERGE" in
6563   [\\/]* | ?:[\\/]*)
6564     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6565     ;;
6566   *)
6567     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6568     for ac_dir in $PATH; do
6569       IFS="$ac_save_IFS"
6570       test -z "$ac_dir" && ac_dir=.
6571       for ac_exec_ext in '' $ac_executable_extensions; do
6572         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6573           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6574           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6575             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6576             break 2
6577           fi
6578         fi
6579       done
6580     done
6581     IFS="$ac_save_IFS"
6582   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6583     ;;
6584 esac
6585 fi
6586 MSGMERGE="$ac_cv_path_MSGMERGE"
6587 if test "$MSGMERGE" != ":"; then
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6589 $as_echo "$MSGMERGE" >&6; }
6590 else
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595
6596         test -n "$localedir" || localedir='${datadir}/locale'
6597
6598
6599     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6600
6601
6602   ac_config_commands="$ac_config_commands po-directories"
6603
6604
6605
6606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6607 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6608 if ${ac_cv_gnu_library_2+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613
6614 #include <features.h>
6615 #ifdef __GNU_LIBRARY__
6616  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6617   Lucky GNU user
6618  #endif
6619 #endif
6620
6621 _ACEOF
6622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6623   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6624   ac_cv_gnu_library_2=yes
6625 else
6626   ac_cv_gnu_library_2=no
6627 fi
6628 rm -f conftest*
6629
6630
6631
6632 fi
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6634 $as_echo "$ac_cv_gnu_library_2" >&6; }
6635
6636     GLIBC2="$ac_cv_gnu_library_2"
6637
6638
6639 if test -n "$ac_tool_prefix"; then
6640   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_RANLIB+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$RANLIB"; then
6648   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655     for ac_exec_ext in '' $ac_executable_extensions; do
6656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662   done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6670 $as_echo "$RANLIB" >&6; }
6671 else
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679   ac_ct_RANLIB=$RANLIB
6680   # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$ac_ct_RANLIB"; then
6688   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695     for ac_exec_ext in '' $ac_executable_extensions; do
6696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697     ac_cv_prog_ac_ct_RANLIB="ranlib"
6698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702   done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6710 $as_echo "$ac_ct_RANLIB" >&6; }
6711 else
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716   if test "x$ac_ct_RANLIB" = x; then
6717     RANLIB=":"
6718   else
6719     case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725     RANLIB=$ac_ct_RANLIB
6726   fi
6727 else
6728   RANLIB="$ac_cv_prog_RANLIB"
6729 fi
6730
6731
6732
6733   CFLAG_VISIBILITY=
6734   HAVE_VISIBILITY=0
6735   if test -n "$GCC"; then
6736                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6737 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6738     if ${gl_cv_cc_vis_werror+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741
6742       gl_save_CFLAGS="$CFLAGS"
6743       CFLAGS="$CFLAGS -Werror"
6744       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h.  */
6746
6747 int
6748 main ()
6749 {
6750
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756   gl_cv_cc_vis_werror=yes
6757 else
6758   gl_cv_cc_vis_werror=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761       CFLAGS="$gl_save_CFLAGS"
6762 fi
6763
6764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6765 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6767 $as_echo_n "checking for simple visibility declarations... " >&6; }
6768     if ${gl_cv_cc_visibility+:} false; then :
6769   $as_echo_n "(cached) " >&6
6770 else
6771
6772       gl_save_CFLAGS="$CFLAGS"
6773       CFLAGS="$CFLAGS -fvisibility=hidden"
6774                                     if test $gl_cv_cc_vis_werror = yes; then
6775         CFLAGS="$CFLAGS -Werror"
6776       fi
6777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6780              extern __attribute__((__visibility__("default"))) int exportedvar;
6781              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6782              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6783              void dummyfunc (void) {}
6784
6785 int
6786 main ()
6787 {
6788
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794   gl_cv_cc_visibility=yes
6795 else
6796   gl_cv_cc_visibility=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799       CFLAGS="$gl_save_CFLAGS"
6800 fi
6801
6802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6803 $as_echo "$gl_cv_cc_visibility" >&6; }
6804     if test $gl_cv_cc_visibility = yes; then
6805       CFLAG_VISIBILITY="-fvisibility=hidden"
6806       HAVE_VISIBILITY=1
6807     fi
6808   fi
6809
6810
6811
6812 cat >>confdefs.h <<_ACEOF
6813 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6814 _ACEOF
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6818 $as_echo_n "checking for inline... " >&6; }
6819 if ${ac_cv_c_inline+:} false; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   ac_cv_c_inline=no
6823 for ac_kw in inline __inline__ __inline; do
6824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h.  */
6826 #ifndef __cplusplus
6827 typedef int foo_t;
6828 static $ac_kw foo_t static_foo () {return 0; }
6829 $ac_kw foo_t foo () {return 0; }
6830 #endif
6831
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834   ac_cv_c_inline=$ac_kw
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837   test "$ac_cv_c_inline" != no && break
6838 done
6839
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6842 $as_echo "$ac_cv_c_inline" >&6; }
6843
6844 case $ac_cv_c_inline in
6845   inline | yes) ;;
6846   *)
6847     case $ac_cv_c_inline in
6848       no) ac_val=;;
6849       *) ac_val=$ac_cv_c_inline;;
6850     esac
6851     cat >>confdefs.h <<_ACEOF
6852 #ifndef __cplusplus
6853 #define inline $ac_val
6854 #endif
6855 _ACEOF
6856     ;;
6857 esac
6858
6859 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_size_t" = xyes; then :
6861
6862 else
6863
6864 cat >>confdefs.h <<_ACEOF
6865 #define size_t unsigned int
6866 _ACEOF
6867
6868 fi
6869
6870
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6872 $as_echo_n "checking for stdint.h... " >&6; }
6873 if ${gl_cv_header_stdint_h+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h.  */
6878 #include <sys/types.h>
6879             #include <stdint.h>
6880 int
6881 main ()
6882 {
6883 uintmax_t i = (uintmax_t) -1; return !i;
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889   gl_cv_header_stdint_h=yes
6890 else
6891   gl_cv_header_stdint_h=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 fi
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6896 $as_echo "$gl_cv_header_stdint_h" >&6; }
6897   if test $gl_cv_header_stdint_h = yes; then
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define HAVE_STDINT_H_WITH_UINTMAX 1
6901 _ACEOF
6902
6903   fi
6904
6905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6906 # for constant arguments.  Useless!
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6908 $as_echo_n "checking for working alloca.h... " >&6; }
6909 if ${ac_cv_working_alloca_h+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h.  */
6914 #include <alloca.h>
6915 int
6916 main ()
6917 {
6918 char *p = (char *) alloca (2 * sizeof (int));
6919                           if (p) return 0;
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925   ac_cv_working_alloca_h=yes
6926 else
6927   ac_cv_working_alloca_h=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930     conftest$ac_exeext conftest.$ac_ext
6931 fi
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6933 $as_echo "$ac_cv_working_alloca_h" >&6; }
6934 if test $ac_cv_working_alloca_h = yes; then
6935
6936 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6937
6938 fi
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6941 $as_echo_n "checking for alloca... " >&6; }
6942 if ${ac_cv_func_alloca_works+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h.  */
6947 #ifdef __GNUC__
6948 # define alloca __builtin_alloca
6949 #else
6950 # ifdef _MSC_VER
6951 #  include <malloc.h>
6952 #  define alloca _alloca
6953 # else
6954 #  ifdef HAVE_ALLOCA_H
6955 #   include <alloca.h>
6956 #  else
6957 #   ifdef _AIX
6958  #pragma alloca
6959 #   else
6960 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6961 void *alloca (size_t);
6962 #    endif
6963 #   endif
6964 #  endif
6965 # endif
6966 #endif
6967
6968 int
6969 main ()
6970 {
6971 char *p = (char *) alloca (1);
6972                                     if (p) return 0;
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978   ac_cv_func_alloca_works=yes
6979 else
6980   ac_cv_func_alloca_works=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983     conftest$ac_exeext conftest.$ac_ext
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6986 $as_echo "$ac_cv_func_alloca_works" >&6; }
6987
6988 if test $ac_cv_func_alloca_works = yes; then
6989
6990 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6991
6992 else
6993   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6994 # that cause trouble.  Some versions do not even contain alloca or
6995 # contain a buggy version.  If you still want to use their alloca,
6996 # use ar to extract alloca.o from them instead of compiling alloca.c.
6997
6998 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6999
7000 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7001
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7004 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7005 if ${ac_cv_os_cray+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h.  */
7010 #if defined CRAY && ! defined CRAY2
7011 webecray
7012 #else
7013 wenotbecray
7014 #endif
7015
7016 _ACEOF
7017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018   $EGREP "webecray" >/dev/null 2>&1; then :
7019   ac_cv_os_cray=yes
7020 else
7021   ac_cv_os_cray=no
7022 fi
7023 rm -f conftest*
7024
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7027 $as_echo "$ac_cv_os_cray" >&6; }
7028 if test $ac_cv_os_cray = yes; then
7029   for ac_func in _getb67 GETB67 getb67; do
7030     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7032 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define CRAY_STACKSEG_END $ac_func
7036 _ACEOF
7037
7038     break
7039 fi
7040
7041   done
7042 fi
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7045 $as_echo_n "checking stack direction for C alloca... " >&6; }
7046 if ${ac_cv_c_stack_direction+:} false; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test "$cross_compiling" = yes; then :
7050   ac_cv_c_stack_direction=0
7051 else
7052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h.  */
7054 $ac_includes_default
7055 int
7056 find_stack_direction (int *addr, int depth)
7057 {
7058   int dir, dummy = 0;
7059   if (! addr)
7060     addr = &dummy;
7061   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7062   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7063   return dir + dummy;
7064 }
7065
7066 int
7067 main (int argc, char **argv)
7068 {
7069   return find_stack_direction (0, argc + !argv + 20) < 0;
7070 }
7071 _ACEOF
7072 if ac_fn_c_try_run "$LINENO"; then :
7073   ac_cv_c_stack_direction=1
7074 else
7075   ac_cv_c_stack_direction=-1
7076 fi
7077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7078   conftest.$ac_objext conftest.beam conftest.$ac_ext
7079 fi
7080
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7083 $as_echo "$ac_cv_c_stack_direction" >&6; }
7084 cat >>confdefs.h <<_ACEOF
7085 #define STACK_DIRECTION $ac_cv_c_stack_direction
7086 _ACEOF
7087
7088
7089 fi
7090
7091
7092
7093
7094   for ac_header in $ac_header_list
7095 do :
7096   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7098 "
7099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7100   cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7102 _ACEOF
7103
7104 fi
7105
7106 done
7107
7108
7109
7110
7111
7112
7113
7114
7115 for ac_func in getpagesize
7116 do :
7117   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7118 if test "x$ac_cv_func_getpagesize" = xyes; then :
7119   cat >>confdefs.h <<_ACEOF
7120 #define HAVE_GETPAGESIZE 1
7121 _ACEOF
7122
7123 fi
7124 done
7125
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7127 $as_echo_n "checking for working mmap... " >&6; }
7128 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test "$cross_compiling" = yes; then :
7132   ac_cv_func_mmap_fixed_mapped=no
7133 else
7134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h.  */
7136 $ac_includes_default
7137 /* malloc might have been renamed as rpl_malloc. */
7138 #undef malloc
7139
7140 /* Thanks to Mike Haertel and Jim Avera for this test.
7141    Here is a matrix of mmap possibilities:
7142         mmap private not fixed
7143         mmap private fixed at somewhere currently unmapped
7144         mmap private fixed at somewhere already mapped
7145         mmap shared not fixed
7146         mmap shared fixed at somewhere currently unmapped
7147         mmap shared fixed at somewhere already mapped
7148    For private mappings, we should verify that changes cannot be read()
7149    back from the file, nor mmap's back from the file at a different
7150    address.  (There have been systems where private was not correctly
7151    implemented like the infamous i386 svr4.0, and systems where the
7152    VM page cache was not coherent with the file system buffer cache
7153    like early versions of FreeBSD and possibly contemporary NetBSD.)
7154    For shared mappings, we should conversely verify that changes get
7155    propagated back to all the places they're supposed to be.
7156
7157    Grep wants private fixed already mapped.
7158    The main things grep needs to know about mmap are:
7159    * does it exist and is it safe to write into the mmap'd area
7160    * how to use it (BSD variants)  */
7161
7162 #include <fcntl.h>
7163 #include <sys/mman.h>
7164
7165 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7166 char *malloc ();
7167 #endif
7168
7169 /* This mess was copied from the GNU getpagesize.h.  */
7170 #ifndef HAVE_GETPAGESIZE
7171 # ifdef _SC_PAGESIZE
7172 #  define getpagesize() sysconf(_SC_PAGESIZE)
7173 # else /* no _SC_PAGESIZE */
7174 #  ifdef HAVE_SYS_PARAM_H
7175 #   include <sys/param.h>
7176 #   ifdef EXEC_PAGESIZE
7177 #    define getpagesize() EXEC_PAGESIZE
7178 #   else /* no EXEC_PAGESIZE */
7179 #    ifdef NBPG
7180 #     define getpagesize() NBPG * CLSIZE
7181 #     ifndef CLSIZE
7182 #      define CLSIZE 1
7183 #     endif /* no CLSIZE */
7184 #    else /* no NBPG */
7185 #     ifdef NBPC
7186 #      define getpagesize() NBPC
7187 #     else /* no NBPC */
7188 #      ifdef PAGESIZE
7189 #       define getpagesize() PAGESIZE
7190 #      endif /* PAGESIZE */
7191 #     endif /* no NBPC */
7192 #    endif /* no NBPG */
7193 #   endif /* no EXEC_PAGESIZE */
7194 #  else /* no HAVE_SYS_PARAM_H */
7195 #   define getpagesize() 8192   /* punt totally */
7196 #  endif /* no HAVE_SYS_PARAM_H */
7197 # endif /* no _SC_PAGESIZE */
7198
7199 #endif /* no HAVE_GETPAGESIZE */
7200
7201 int
7202 main ()
7203 {
7204   char *data, *data2, *data3;
7205   const char *cdata2;
7206   int i, pagesize;
7207   int fd, fd2;
7208
7209   pagesize = getpagesize ();
7210
7211   /* First, make a file with some known garbage in it. */
7212   data = (char *) malloc (pagesize);
7213   if (!data)
7214     return 1;
7215   for (i = 0; i < pagesize; ++i)
7216     *(data + i) = rand ();
7217   umask (0);
7218   fd = creat ("conftest.mmap", 0600);
7219   if (fd < 0)
7220     return 2;
7221   if (write (fd, data, pagesize) != pagesize)
7222     return 3;
7223   close (fd);
7224
7225   /* Next, check that the tail of a page is zero-filled.  File must have
7226      non-zero length, otherwise we risk SIGBUS for entire page.  */
7227   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7228   if (fd2 < 0)
7229     return 4;
7230   cdata2 = "";
7231   if (write (fd2, cdata2, 1) != 1)
7232     return 5;
7233   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7234   if (data2 == MAP_FAILED)
7235     return 6;
7236   for (i = 0; i < pagesize; ++i)
7237     if (*(data2 + i))
7238       return 7;
7239   close (fd2);
7240   if (munmap (data2, pagesize))
7241     return 8;
7242
7243   /* Next, try to mmap the file at a fixed address which already has
7244      something else allocated at it.  If we can, also make sure that
7245      we see the same garbage.  */
7246   fd = open ("conftest.mmap", O_RDWR);
7247   if (fd < 0)
7248     return 9;
7249   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7250                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7251     return 10;
7252   for (i = 0; i < pagesize; ++i)
7253     if (*(data + i) != *(data2 + i))
7254       return 11;
7255
7256   /* Finally, make sure that changes to the mapped area do not
7257      percolate back to the file as seen by read().  (This is a bug on
7258      some variants of i386 svr4.0.)  */
7259   for (i = 0; i < pagesize; ++i)
7260     *(data2 + i) = *(data2 + i) + 1;
7261   data3 = (char *) malloc (pagesize);
7262   if (!data3)
7263     return 12;
7264   if (read (fd, data3, pagesize) != pagesize)
7265     return 13;
7266   for (i = 0; i < pagesize; ++i)
7267     if (*(data + i) != *(data3 + i))
7268       return 14;
7269   close (fd);
7270   free (data);
7271   free (data3);
7272   return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_run "$LINENO"; then :
7276   ac_cv_func_mmap_fixed_mapped=yes
7277 else
7278   ac_cv_func_mmap_fixed_mapped=no
7279 fi
7280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7281   conftest.$ac_objext conftest.beam conftest.$ac_ext
7282 fi
7283
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7286 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7287 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7288
7289 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7290
7291 fi
7292 rm -f conftest.mmap conftest.txt
7293
7294
7295
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7297 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7298 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301
7302       gt_cv_int_divbyzero_sigfpe=
7303       case "$host_os" in
7304         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7305           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7306           # compiling. If we were to perform the real test, 1 Crash Report
7307           # dialog window would pop up.
7308           case "$host_cpu" in
7309             i[34567]86 | x86_64)
7310               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7311           esac
7312           ;;
7313       esac
7314       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7315         if test "$cross_compiling" = yes; then :
7316
7317             # Guess based on the CPU.
7318             case "$host_cpu" in
7319               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7320                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7321               *)
7322                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7323             esac
7324
7325 else
7326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h.  */
7328
7329 #include <stdlib.h>
7330 #include <signal.h>
7331
7332 static void
7333 sigfpe_handler (int sig)
7334 {
7335   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7336   exit (sig != SIGFPE);
7337 }
7338
7339 int x = 1;
7340 int y = 0;
7341 int z;
7342 int nan;
7343
7344 int main ()
7345 {
7346   signal (SIGFPE, sigfpe_handler);
7347 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7348 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7349   signal (SIGTRAP, sigfpe_handler);
7350 #endif
7351 /* Linux/SPARC yields signal SIGILL.  */
7352 #if defined (__sparc__) && defined (__linux__)
7353   signal (SIGILL, sigfpe_handler);
7354 #endif
7355
7356   z = x / y;
7357   nan = y / y;
7358   exit (2);
7359 }
7360
7361 _ACEOF
7362 if ac_fn_c_try_run "$LINENO"; then :
7363   gt_cv_int_divbyzero_sigfpe=yes
7364 else
7365   gt_cv_int_divbyzero_sigfpe=no
7366 fi
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7368   conftest.$ac_objext conftest.beam conftest.$ac_ext
7369 fi
7370
7371       fi
7372
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7375 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7376   case "$gt_cv_int_divbyzero_sigfpe" in
7377     *yes) value=1;;
7378     *) value=0;;
7379   esac
7380
7381 cat >>confdefs.h <<_ACEOF
7382 #define INTDIV0_RAISES_SIGFPE $value
7383 _ACEOF
7384
7385
7386
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7388 $as_echo_n "checking for inttypes.h... " >&6; }
7389 if ${gl_cv_header_inttypes_h+:} false; then :
7390   $as_echo_n "(cached) " >&6
7391 else
7392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h.  */
7394
7395 #include <sys/types.h>
7396 #include <inttypes.h>
7397
7398 int
7399 main ()
7400 {
7401 uintmax_t i = (uintmax_t) -1; return !i;
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407   gl_cv_header_inttypes_h=yes
7408 else
7409   gl_cv_header_inttypes_h=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7414 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7415   if test $gl_cv_header_inttypes_h = yes; then
7416
7417 cat >>confdefs.h <<_ACEOF
7418 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7419 _ACEOF
7420
7421   fi
7422
7423
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7425 $as_echo_n "checking for unsigned long long int... " >&6; }
7426 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   ac_cv_type_unsigned_long_long_int=yes
7430      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7431        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h.  */
7433
7434   /* For now, do not test the preprocessor; as of 2007 there are too many
7435          implementations with broken preprocessors.  Perhaps this can
7436          be revisited in 2012.  In the meantime, code should not expect
7437          #if to work with literals wider than 32 bits.  */
7438       /* Test literals.  */
7439       long long int ll = 9223372036854775807ll;
7440       long long int nll = -9223372036854775807LL;
7441       unsigned long long int ull = 18446744073709551615ULL;
7442       /* Test constant expressions.   */
7443       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7444                      ? 1 : -1)];
7445       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7446                      ? 1 : -1)];
7447       int i = 63;
7448 int
7449 main ()
7450 {
7451 /* Test availability of runtime routines for shift and division.  */
7452       long long int llmax = 9223372036854775807ll;
7453       unsigned long long int ullmax = 18446744073709551615ull;
7454       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7455               | (llmax / ll) | (llmax % ll)
7456               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7457               | (ullmax / ull) | (ullmax % ull));
7458   ;
7459   return 0;
7460 }
7461
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464
7465 else
7466   ac_cv_type_unsigned_long_long_int=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext \
7469     conftest$ac_exeext conftest.$ac_ext
7470      fi
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7473 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7474   if test $ac_cv_type_unsigned_long_long_int = yes; then
7475
7476 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7477
7478   fi
7479
7480
7481
7482
7483   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7484
7485     test $ac_cv_type_unsigned_long_long_int = yes \
7486       && ac_type='unsigned long long' \
7487       || ac_type='unsigned long'
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define uintmax_t $ac_type
7491 _ACEOF
7492
7493   else
7494
7495 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7496
7497   fi
7498
7499
7500   for ac_header in inttypes.h
7501 do :
7502   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7503 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7504   cat >>confdefs.h <<_ACEOF
7505 #define HAVE_INTTYPES_H 1
7506 _ACEOF
7507
7508 fi
7509
7510 done
7511
7512   if test $ac_cv_header_inttypes_h = yes; then
7513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7514 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7515 if ${gt_cv_inttypes_pri_broken+:} false; then :
7516   $as_echo_n "(cached) " >&6
7517 else
7518
7519         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h.  */
7521
7522 #include <inttypes.h>
7523 #ifdef PRId32
7524 char *p = PRId32;
7525 #endif
7526
7527 int
7528 main ()
7529 {
7530
7531   ;
7532   return 0;
7533 }
7534 _ACEOF
7535 if ac_fn_c_try_compile "$LINENO"; then :
7536   gt_cv_inttypes_pri_broken=no
7537 else
7538   gt_cv_inttypes_pri_broken=yes
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7544 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7545   fi
7546   if test "$gt_cv_inttypes_pri_broken" = yes; then
7547
7548 cat >>confdefs.h <<_ACEOF
7549 #define PRI_MACROS_BROKEN 1
7550 _ACEOF
7551
7552     PRI_MACROS_BROKEN=1
7553   else
7554     PRI_MACROS_BROKEN=0
7555   fi
7556
7557
7558
7559
7560
7561
7562
7563   # Check whether --enable-threads was given.
7564 if test "${enable_threads+set}" = set; then :
7565   enableval=$enable_threads; gl_use_threads=$enableval
7566 else
7567   if test -n "$gl_use_threads_default"; then
7568        gl_use_threads="$gl_use_threads_default"
7569      else
7570        case "$host_os" in
7571                                                                osf*) gl_use_threads=no ;;
7572          cygwin*)
7573                case `uname -r` in
7574                  1.[0-5].*) gl_use_threads=no ;;
7575                  *)         gl_use_threads=yes ;;
7576                esac
7577                ;;
7578          *)    gl_use_threads=yes ;;
7579        esac
7580      fi
7581
7582 fi
7583
7584   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7585     # For using <pthread.h>:
7586     case "$host_os" in
7587       osf*)
7588         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7589         # groks <pthread.h>. cc also understands the flag -pthread, but
7590         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7591         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7592         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7593         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7594         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7595         ;;
7596     esac
7597     # Some systems optimize for single-threaded programs by default, and
7598     # need special flags to disable these optimizations. For example, the
7599     # definition of 'errno' in <errno.h>.
7600     case "$host_os" in
7601       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7602       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7603     esac
7604   fi
7605
7606
7607
7608
7609
7610       if test "X$prefix" = "XNONE"; then
7611     acl_final_prefix="$ac_default_prefix"
7612   else
7613     acl_final_prefix="$prefix"
7614   fi
7615   if test "X$exec_prefix" = "XNONE"; then
7616     acl_final_exec_prefix='${prefix}'
7617   else
7618     acl_final_exec_prefix="$exec_prefix"
7619   fi
7620   acl_save_prefix="$prefix"
7621   prefix="$acl_final_prefix"
7622   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7623   prefix="$acl_save_prefix"
7624
7625
7626
7627 # Check whether --with-gnu-ld was given.
7628 if test "${with_gnu_ld+set}" = set; then :
7629   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7630 else
7631   with_gnu_ld=no
7632 fi
7633
7634 # Prepare PATH_SEPARATOR.
7635 # The user is always right.
7636 if test "${PATH_SEPARATOR+set}" != set; then
7637   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7638   # contains only /bin. Note that ksh looks also at the FPATH variable,
7639   # so we have to set that as well for the test.
7640   PATH_SEPARATOR=:
7641   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7642     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7643            || PATH_SEPARATOR=';'
7644        }
7645 fi
7646
7647 ac_prog=ld
7648 if test "$GCC" = yes; then
7649   # Check if gcc -print-prog-name=ld gives a path.
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7651 $as_echo_n "checking for ld used by $CC... " >&6; }
7652   case $host in
7653   *-*-mingw*)
7654     # gcc leaves a trailing carriage return which upsets mingw
7655     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7656   *)
7657     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7658   esac
7659   case $ac_prog in
7660     # Accept absolute paths.
7661     [\\/]* | ?:[\\/]*)
7662       re_direlt='/[^/][^/]*/\.\./'
7663       # Canonicalize the pathname of ld
7664       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7665       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7666         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7667       done
7668       test -z "$LD" && LD="$ac_prog"
7669       ;;
7670   "")
7671     # If it fails, then pretend we aren't using GCC.
7672     ac_prog=ld
7673     ;;
7674   *)
7675     # If it is relative, then search for the first ld in PATH.
7676     with_gnu_ld=unknown
7677     ;;
7678   esac
7679 elif test "$with_gnu_ld" = yes; then
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7681 $as_echo_n "checking for GNU ld... " >&6; }
7682 else
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7684 $as_echo_n "checking for non-GNU ld... " >&6; }
7685 fi
7686 if ${acl_cv_path_LD+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   if test -z "$LD"; then
7690   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691   for ac_dir in $PATH; do
7692     IFS="$acl_save_ifs"
7693     test -z "$ac_dir" && ac_dir=.
7694     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7695       acl_cv_path_LD="$ac_dir/$ac_prog"
7696       # Check to see if the program is GNU ld.  I'd rather use --version,
7697       # but apparently some variants of GNU ld only accept -v.
7698       # Break only if it was the GNU/non-GNU ld that we prefer.
7699       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7700       *GNU* | *'with BFD'*)
7701         test "$with_gnu_ld" != no && break
7702         ;;
7703       *)
7704         test "$with_gnu_ld" != yes && break
7705         ;;
7706       esac
7707     fi
7708   done
7709   IFS="$acl_save_ifs"
7710 else
7711   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7712 fi
7713 fi
7714
7715 LD="$acl_cv_path_LD"
7716 if test -n "$LD"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7718 $as_echo "$LD" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7726 if ${acl_cv_prog_gnu_ld+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7730 case `$LD -v 2>&1 </dev/null` in
7731 *GNU* | *'with BFD'*)
7732   acl_cv_prog_gnu_ld=yes
7733   ;;
7734 *)
7735   acl_cv_prog_gnu_ld=no
7736   ;;
7737 esac
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7740 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7741 with_gnu_ld=$acl_cv_prog_gnu_ld
7742
7743
7744
7745
7746                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7747 $as_echo_n "checking for shared library run path origin... " >&6; }
7748 if ${acl_cv_rpath+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751
7752     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7753     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7754     . ./conftest.sh
7755     rm -f ./conftest.sh
7756     acl_cv_rpath=done
7757
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7760 $as_echo "$acl_cv_rpath" >&6; }
7761   wl="$acl_cv_wl"
7762   acl_libext="$acl_cv_libext"
7763   acl_shlibext="$acl_cv_shlibext"
7764   acl_libname_spec="$acl_cv_libname_spec"
7765   acl_library_names_spec="$acl_cv_library_names_spec"
7766   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7767   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7768   acl_hardcode_direct="$acl_cv_hardcode_direct"
7769   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7770     # Check whether --enable-rpath was given.
7771 if test "${enable_rpath+set}" = set; then :
7772   enableval=$enable_rpath; :
7773 else
7774   enable_rpath=yes
7775 fi
7776
7777
7778
7779
7780   acl_libdirstem=lib
7781   acl_libdirstem2=
7782   case "$host_os" in
7783     solaris*)
7784                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7785 $as_echo_n "checking for 64-bit host... " >&6; }
7786 if ${gl_cv_solaris_64bit+:} false; then :
7787   $as_echo_n "(cached) " >&6
7788 else
7789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h.  */
7791
7792 #ifdef _LP64
7793 sixtyfour bits
7794 #endif
7795
7796 _ACEOF
7797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7798   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7799   gl_cv_solaris_64bit=yes
7800 else
7801   gl_cv_solaris_64bit=no
7802 fi
7803 rm -f conftest*
7804
7805
7806 fi
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7808 $as_echo "$gl_cv_solaris_64bit" >&6; }
7809       if test $gl_cv_solaris_64bit = yes; then
7810         acl_libdirstem=lib/64
7811         case "$host_cpu" in
7812           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7813           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7814         esac
7815       fi
7816       ;;
7817     *)
7818       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7819       if test -n "$searchpath"; then
7820         acl_save_IFS="${IFS=    }"; IFS=":"
7821         for searchdir in $searchpath; do
7822           if test -d "$searchdir"; then
7823             case "$searchdir" in
7824               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7825               */../ | */.. )
7826                 # Better ignore directories of this form. They are misleading.
7827                 ;;
7828               *) searchdir=`cd "$searchdir" && pwd`
7829                  case "$searchdir" in
7830                    */lib64 ) acl_libdirstem=lib64 ;;
7831                  esac ;;
7832             esac
7833           fi
7834         done
7835         IFS="$acl_save_IFS"
7836       fi
7837       ;;
7838   esac
7839   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7840
7841
7842
7843   gl_threads_api=none
7844   LIBTHREAD=
7845   LTLIBTHREAD=
7846   LIBMULTITHREAD=
7847   LTLIBMULTITHREAD=
7848   if test "$gl_use_threads" != no; then
7849         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7850 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7851 if ${gl_cv_have_weak+:} false; then :
7852   $as_echo_n "(cached) " >&6
7853 else
7854   gl_cv_have_weak=no
7855               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857 extern void xyzzy ();
7858 #pragma weak xyzzy
7859 int
7860 main ()
7861 {
7862 xyzzy();
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868   gl_cv_have_weak=maybe
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871     conftest$ac_exeext conftest.$ac_ext
7872        if test $gl_cv_have_weak = maybe; then
7873                            if test "$cross_compiling" = yes; then :
7874                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h.  */
7876 #ifdef __ELF__
7877                Extensible Linking Format
7878                #endif
7879
7880 _ACEOF
7881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7882   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7883   gl_cv_have_weak="guessing yes"
7884 else
7885   gl_cv_have_weak="guessing no"
7886 fi
7887 rm -f conftest*
7888
7889
7890 else
7891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893
7894 #include <stdio.h>
7895 #pragma weak fputs
7896 int main ()
7897 {
7898   return (fputs == NULL);
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_run "$LINENO"; then :
7902   gl_cv_have_weak=yes
7903 else
7904   gl_cv_have_weak=no
7905 fi
7906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7907   conftest.$ac_objext conftest.beam conftest.$ac_ext
7908 fi
7909
7910        fi
7911
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7914 $as_echo "$gl_cv_have_weak" >&6; }
7915     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7916       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7917       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7918       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7919 if test "x$ac_cv_header_pthread_h" = xyes; then :
7920   gl_have_pthread_h=yes
7921 else
7922   gl_have_pthread_h=no
7923 fi
7924
7925
7926       if test "$gl_have_pthread_h" = yes; then
7927         # Other possible tests:
7928         #   -lpthreads (FSU threads, PCthreads)
7929         #   -lgthreads
7930         gl_have_pthread=
7931         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7932         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7933         # the second one only in libpthread, and lock.c needs it.
7934         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h.  */
7936 #include <pthread.h>
7937 int
7938 main ()
7939 {
7940 pthread_mutex_lock((pthread_mutex_t*)0);
7941                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947   gl_have_pthread=yes
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext \
7950     conftest$ac_exeext conftest.$ac_ext
7951         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7952         # since it is defined as a macro on OSF/1.)
7953         if test -n "$gl_have_pthread"; then
7954           # The program links fine without libpthread. But it may actually
7955           # need to link with libpthread in order to create multiple threads.
7956           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7957 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7958 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961   ac_check_lib_save_LIBS=$LIBS
7962 LIBS="-lpthread  $LIBS"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h.  */
7965
7966 /* Override any GCC internal prototype to avoid an error.
7967    Use char because int might match the return type of a GCC
7968    builtin and then its argument prototype would still apply.  */
7969 #ifdef __cplusplus
7970 extern "C"
7971 #endif
7972 char pthread_kill ();
7973 int
7974 main ()
7975 {
7976 return pthread_kill ();
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"; then :
7982   ac_cv_lib_pthread_pthread_kill=yes
7983 else
7984   ac_cv_lib_pthread_pthread_kill=no
7985 fi
7986 rm -f core conftest.err conftest.$ac_objext \
7987     conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7991 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7992 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7993   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7994              # On Solaris and HP-UX, most pthread functions exist also in libc.
7995              # Therefore pthread_in_use() needs to actually try to create a
7996              # thread: pthread_create from libc will fail, whereas
7997              # pthread_create will actually create a thread.
7998              case "$host_os" in
7999                solaris* | hpux*)
8000
8001 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8002
8003              esac
8004
8005 fi
8006
8007         else
8008           # Some library is needed. Try libpthread and libc_r.
8009           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8010 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8011 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-lpthread  $LIBS"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h.  */
8018
8019 /* Override any GCC internal prototype to avoid an error.
8020    Use char because int might match the return type of a GCC
8021    builtin and then its argument prototype would still apply.  */
8022 #ifdef __cplusplus
8023 extern "C"
8024 #endif
8025 char pthread_kill ();
8026 int
8027 main ()
8028 {
8029 return pthread_kill ();
8030   ;
8031   return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"; then :
8035   ac_cv_lib_pthread_pthread_kill=yes
8036 else
8037   ac_cv_lib_pthread_pthread_kill=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext \
8040     conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8044 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8045 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8046   gl_have_pthread=yes
8047              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8048              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8049 fi
8050
8051           if test -z "$gl_have_pthread"; then
8052             # For FreeBSD 4.
8053             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8054 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8055 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lc_r  $LIBS"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h.  */
8062
8063 /* Override any GCC internal prototype to avoid an error.
8064    Use char because int might match the return type of a GCC
8065    builtin and then its argument prototype would still apply.  */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 char pthread_kill ();
8070 int
8071 main ()
8072 {
8073 return pthread_kill ();
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079   ac_cv_lib_c_r_pthread_kill=yes
8080 else
8081   ac_cv_lib_c_r_pthread_kill=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext \
8084     conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8088 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8089 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8090   gl_have_pthread=yes
8091                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8092                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8093 fi
8094
8095           fi
8096         fi
8097         if test -n "$gl_have_pthread"; then
8098           gl_threads_api=posix
8099
8100 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8101
8102           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8103             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8104
8105 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8106
8107               LIBTHREAD=
8108               LTLIBTHREAD=
8109             fi
8110           fi
8111         fi
8112       fi
8113     fi
8114     if test -z "$gl_have_pthread"; then
8115       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8116         gl_have_solaristhread=
8117         gl_save_LIBS="$LIBS"
8118         LIBS="$LIBS -lthread"
8119         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121
8122 #include <thread.h>
8123 #include <synch.h>
8124
8125 int
8126 main ()
8127 {
8128 thr_self();
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"; then :
8134   gl_have_solaristhread=yes
8135 fi
8136 rm -f core conftest.err conftest.$ac_objext \
8137     conftest$ac_exeext conftest.$ac_ext
8138         LIBS="$gl_save_LIBS"
8139         if test -n "$gl_have_solaristhread"; then
8140           gl_threads_api=solaris
8141           LIBTHREAD=-lthread
8142           LTLIBTHREAD=-lthread
8143           LIBMULTITHREAD="$LIBTHREAD"
8144           LTLIBMULTITHREAD="$LTLIBTHREAD"
8145
8146 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8147
8148           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8149
8150 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8151
8152             LIBTHREAD=
8153             LTLIBTHREAD=
8154           fi
8155         fi
8156       fi
8157     fi
8158     if test "$gl_use_threads" = pth; then
8159       gl_save_CPPFLAGS="$CPPFLAGS"
8160
8161
8162
8163
8164
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8166 $as_echo_n "checking how to link with libpth... " >&6; }
8167 if ${ac_cv_libpth_libs+:} false; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170
8171
8172
8173
8174
8175
8176
8177
8178     use_additional=yes
8179
8180   acl_save_prefix="$prefix"
8181   prefix="$acl_final_prefix"
8182   acl_save_exec_prefix="$exec_prefix"
8183   exec_prefix="$acl_final_exec_prefix"
8184
8185     eval additional_includedir=\"$includedir\"
8186     eval additional_libdir=\"$libdir\"
8187
8188   exec_prefix="$acl_save_exec_prefix"
8189   prefix="$acl_save_prefix"
8190
8191
8192 # Check whether --with-libpth-prefix was given.
8193 if test "${with_libpth_prefix+set}" = set; then :
8194   withval=$with_libpth_prefix;
8195     if test "X$withval" = "Xno"; then
8196       use_additional=no
8197     else
8198       if test "X$withval" = "X"; then
8199
8200   acl_save_prefix="$prefix"
8201   prefix="$acl_final_prefix"
8202   acl_save_exec_prefix="$exec_prefix"
8203   exec_prefix="$acl_final_exec_prefix"
8204
8205           eval additional_includedir=\"$includedir\"
8206           eval additional_libdir=\"$libdir\"
8207
8208   exec_prefix="$acl_save_exec_prefix"
8209   prefix="$acl_save_prefix"
8210
8211       else
8212         additional_includedir="$withval/include"
8213         additional_libdir="$withval/$acl_libdirstem"
8214         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8215            && ! test -d "$withval/$acl_libdirstem"; then
8216           additional_libdir="$withval/$acl_libdirstem2"
8217         fi
8218       fi
8219     fi
8220
8221 fi
8222
8223       LIBPTH=
8224   LTLIBPTH=
8225   INCPTH=
8226   LIBPTH_PREFIX=
8227       HAVE_LIBPTH=
8228   rpathdirs=
8229   ltrpathdirs=
8230   names_already_handled=
8231   names_next_round='pth '
8232   while test -n "$names_next_round"; do
8233     names_this_round="$names_next_round"
8234     names_next_round=
8235     for name in $names_this_round; do
8236       already_handled=
8237       for n in $names_already_handled; do
8238         if test "$n" = "$name"; then
8239           already_handled=yes
8240           break
8241         fi
8242       done
8243       if test -z "$already_handled"; then
8244         names_already_handled="$names_already_handled $name"
8245                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8246         eval value=\"\$HAVE_LIB$uppername\"
8247         if test -n "$value"; then
8248           if test "$value" = yes; then
8249             eval value=\"\$LIB$uppername\"
8250             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8251             eval value=\"\$LTLIB$uppername\"
8252             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8253           else
8254                                     :
8255           fi
8256         else
8257                               found_dir=
8258           found_la=
8259           found_so=
8260           found_a=
8261           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8262           if test -n "$acl_shlibext"; then
8263             shrext=".$acl_shlibext"             # typically: shrext=.so
8264           else
8265             shrext=
8266           fi
8267           if test $use_additional = yes; then
8268             dir="$additional_libdir"
8269                                     if test -n "$acl_shlibext"; then
8270               if test -f "$dir/$libname$shrext"; then
8271                 found_dir="$dir"
8272                 found_so="$dir/$libname$shrext"
8273               else
8274                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8275                   ver=`(cd "$dir" && \
8276                         for f in "$libname$shrext".*; do echo "$f"; done \
8277                         | sed -e "s,^$libname$shrext\\\\.,," \
8278                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8279                         | sed 1q ) 2>/dev/null`
8280                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8281                     found_dir="$dir"
8282                     found_so="$dir/$libname$shrext.$ver"
8283                   fi
8284                 else
8285                   eval library_names=\"$acl_library_names_spec\"
8286                   for f in $library_names; do
8287                     if test -f "$dir/$f"; then
8288                       found_dir="$dir"
8289                       found_so="$dir/$f"
8290                       break
8291                     fi
8292                   done
8293                 fi
8294               fi
8295             fi
8296                         if test "X$found_dir" = "X"; then
8297               if test -f "$dir/$libname.$acl_libext"; then
8298                 found_dir="$dir"
8299                 found_a="$dir/$libname.$acl_libext"
8300               fi
8301             fi
8302             if test "X$found_dir" != "X"; then
8303               if test -f "$dir/$libname.la"; then
8304                 found_la="$dir/$libname.la"
8305               fi
8306             fi
8307           fi
8308           if test "X$found_dir" = "X"; then
8309             for x in $LDFLAGS $LTLIBPTH; do
8310
8311   acl_save_prefix="$prefix"
8312   prefix="$acl_final_prefix"
8313   acl_save_exec_prefix="$exec_prefix"
8314   exec_prefix="$acl_final_exec_prefix"
8315   eval x=\"$x\"
8316   exec_prefix="$acl_save_exec_prefix"
8317   prefix="$acl_save_prefix"
8318
8319               case "$x" in
8320                 -L*)
8321                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8322                                     if test -n "$acl_shlibext"; then
8323                     if test -f "$dir/$libname$shrext"; then
8324                       found_dir="$dir"
8325                       found_so="$dir/$libname$shrext"
8326                     else
8327                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8328                         ver=`(cd "$dir" && \
8329                               for f in "$libname$shrext".*; do echo "$f"; done \
8330                               | sed -e "s,^$libname$shrext\\\\.,," \
8331                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8332                               | sed 1q ) 2>/dev/null`
8333                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8334                           found_dir="$dir"
8335                           found_so="$dir/$libname$shrext.$ver"
8336                         fi
8337                       else
8338                         eval library_names=\"$acl_library_names_spec\"
8339                         for f in $library_names; do
8340                           if test -f "$dir/$f"; then
8341                             found_dir="$dir"
8342                             found_so="$dir/$f"
8343                             break
8344                           fi
8345                         done
8346                       fi
8347                     fi
8348                   fi
8349                                     if test "X$found_dir" = "X"; then
8350                     if test -f "$dir/$libname.$acl_libext"; then
8351                       found_dir="$dir"
8352                       found_a="$dir/$libname.$acl_libext"
8353                     fi
8354                   fi
8355                   if test "X$found_dir" != "X"; then
8356                     if test -f "$dir/$libname.la"; then
8357                       found_la="$dir/$libname.la"
8358                     fi
8359                   fi
8360                   ;;
8361               esac
8362               if test "X$found_dir" != "X"; then
8363                 break
8364               fi
8365             done
8366           fi
8367           if test "X$found_dir" != "X"; then
8368                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8369             if test "X$found_so" != "X"; then
8370                                                         if test "$enable_rpath" = no \
8371                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8372                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8373                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8374               else
8375                                                                                 haveit=
8376                 for x in $ltrpathdirs; do
8377                   if test "X$x" = "X$found_dir"; then
8378                     haveit=yes
8379                     break
8380                   fi
8381                 done
8382                 if test -z "$haveit"; then
8383                   ltrpathdirs="$ltrpathdirs $found_dir"
8384                 fi
8385                                 if test "$acl_hardcode_direct" = yes; then
8386                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8387                 else
8388                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8389                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8390                                                             haveit=
8391                     for x in $rpathdirs; do
8392                       if test "X$x" = "X$found_dir"; then
8393                         haveit=yes
8394                         break
8395                       fi
8396                     done
8397                     if test -z "$haveit"; then
8398                       rpathdirs="$rpathdirs $found_dir"
8399                     fi
8400                   else
8401                                                                                 haveit=
8402                     for x in $LDFLAGS $LIBPTH; do
8403
8404   acl_save_prefix="$prefix"
8405   prefix="$acl_final_prefix"
8406   acl_save_exec_prefix="$exec_prefix"
8407   exec_prefix="$acl_final_exec_prefix"
8408   eval x=\"$x\"
8409   exec_prefix="$acl_save_exec_prefix"
8410   prefix="$acl_save_prefix"
8411
8412                       if test "X$x" = "X-L$found_dir"; then
8413                         haveit=yes
8414                         break
8415                       fi
8416                     done
8417                     if test -z "$haveit"; then
8418                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8419                     fi
8420                     if test "$acl_hardcode_minus_L" != no; then
8421                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8422                     else
8423                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8424                     fi
8425                   fi
8426                 fi
8427               fi
8428             else
8429               if test "X$found_a" != "X"; then
8430                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8431               else
8432                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8433               fi
8434             fi
8435                         additional_includedir=
8436             case "$found_dir" in
8437               */$acl_libdirstem | */$acl_libdirstem/)
8438                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8439                 if test "$name" = 'pth'; then
8440                   LIBPTH_PREFIX="$basedir"
8441                 fi
8442                 additional_includedir="$basedir/include"
8443                 ;;
8444               */$acl_libdirstem2 | */$acl_libdirstem2/)
8445                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8446                 if test "$name" = 'pth'; then
8447                   LIBPTH_PREFIX="$basedir"
8448                 fi
8449                 additional_includedir="$basedir/include"
8450                 ;;
8451             esac
8452             if test "X$additional_includedir" != "X"; then
8453                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8454                 haveit=
8455                 if test "X$additional_includedir" = "X/usr/local/include"; then
8456                   if test -n "$GCC"; then
8457                     case $host_os in
8458                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8459                     esac
8460                   fi
8461                 fi
8462                 if test -z "$haveit"; then
8463                   for x in $CPPFLAGS $INCPTH; do
8464
8465   acl_save_prefix="$prefix"
8466   prefix="$acl_final_prefix"
8467   acl_save_exec_prefix="$exec_prefix"
8468   exec_prefix="$acl_final_exec_prefix"
8469   eval x=\"$x\"
8470   exec_prefix="$acl_save_exec_prefix"
8471   prefix="$acl_save_prefix"
8472
8473                     if test "X$x" = "X-I$additional_includedir"; then
8474                       haveit=yes
8475                       break
8476                     fi
8477                   done
8478                   if test -z "$haveit"; then
8479                     if test -d "$additional_includedir"; then
8480                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8481                     fi
8482                   fi
8483                 fi
8484               fi
8485             fi
8486                         if test -n "$found_la"; then
8487                                                         save_libdir="$libdir"
8488               case "$found_la" in
8489                 */* | *\\*) . "$found_la" ;;
8490                 *) . "./$found_la" ;;
8491               esac
8492               libdir="$save_libdir"
8493                             for dep in $dependency_libs; do
8494                 case "$dep" in
8495                   -L*)
8496                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8497                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8498                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8499                       haveit=
8500                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8501                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8502                         if test -n "$GCC"; then
8503                           case $host_os in
8504                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8505                           esac
8506                         fi
8507                       fi
8508                       if test -z "$haveit"; then
8509                         haveit=
8510                         for x in $LDFLAGS $LIBPTH; do
8511
8512   acl_save_prefix="$prefix"
8513   prefix="$acl_final_prefix"
8514   acl_save_exec_prefix="$exec_prefix"
8515   exec_prefix="$acl_final_exec_prefix"
8516   eval x=\"$x\"
8517   exec_prefix="$acl_save_exec_prefix"
8518   prefix="$acl_save_prefix"
8519
8520                           if test "X$x" = "X-L$additional_libdir"; then
8521                             haveit=yes
8522                             break
8523                           fi
8524                         done
8525                         if test -z "$haveit"; then
8526                           if test -d "$additional_libdir"; then
8527                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8528                           fi
8529                         fi
8530                         haveit=
8531                         for x in $LDFLAGS $LTLIBPTH; 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                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8549                           fi
8550                         fi
8551                       fi
8552                     fi
8553                     ;;
8554                   -R*)
8555                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8556                     if test "$enable_rpath" != no; then
8557                                                                   haveit=
8558                       for x in $rpathdirs; do
8559                         if test "X$x" = "X$dir"; then
8560                           haveit=yes
8561                           break
8562                         fi
8563                       done
8564                       if test -z "$haveit"; then
8565                         rpathdirs="$rpathdirs $dir"
8566                       fi
8567                                                                   haveit=
8568                       for x in $ltrpathdirs; do
8569                         if test "X$x" = "X$dir"; then
8570                           haveit=yes
8571                           break
8572                         fi
8573                       done
8574                       if test -z "$haveit"; then
8575                         ltrpathdirs="$ltrpathdirs $dir"
8576                       fi
8577                     fi
8578                     ;;
8579                   -l*)
8580                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8581                     ;;
8582                   *.la)
8583                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8584                     ;;
8585                   *)
8586                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8587                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8588                     ;;
8589                 esac
8590               done
8591             fi
8592           else
8593                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8594             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8595           fi
8596         fi
8597       fi
8598     done
8599   done
8600   if test "X$rpathdirs" != "X"; then
8601     if test -n "$acl_hardcode_libdir_separator"; then
8602                         alldirs=
8603       for found_dir in $rpathdirs; do
8604         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8605       done
8606             acl_save_libdir="$libdir"
8607       libdir="$alldirs"
8608       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8609       libdir="$acl_save_libdir"
8610       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8611     else
8612             for found_dir in $rpathdirs; do
8613         acl_save_libdir="$libdir"
8614         libdir="$found_dir"
8615         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8616         libdir="$acl_save_libdir"
8617         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8618       done
8619     fi
8620   fi
8621   if test "X$ltrpathdirs" != "X"; then
8622             for found_dir in $ltrpathdirs; do
8623       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8624     done
8625   fi
8626
8627
8628
8629
8630
8631
8632     ac_cv_libpth_libs="$LIBPTH"
8633     ac_cv_libpth_ltlibs="$LTLIBPTH"
8634     ac_cv_libpth_cppflags="$INCPTH"
8635     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8636
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8639 $as_echo "$ac_cv_libpth_libs" >&6; }
8640   LIBPTH="$ac_cv_libpth_libs"
8641   LTLIBPTH="$ac_cv_libpth_ltlibs"
8642   INCPTH="$ac_cv_libpth_cppflags"
8643   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8644
8645   for element in $INCPTH; do
8646     haveit=
8647     for x in $CPPFLAGS; do
8648
8649   acl_save_prefix="$prefix"
8650   prefix="$acl_final_prefix"
8651   acl_save_exec_prefix="$exec_prefix"
8652   exec_prefix="$acl_final_exec_prefix"
8653   eval x=\"$x\"
8654   exec_prefix="$acl_save_exec_prefix"
8655   prefix="$acl_save_prefix"
8656
8657       if test "X$x" = "X$element"; then
8658         haveit=yes
8659         break
8660       fi
8661     done
8662     if test -z "$haveit"; then
8663       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8664     fi
8665   done
8666
8667
8668
8669
8670       HAVE_LIBPTH=yes
8671
8672
8673
8674       gl_have_pth=
8675       gl_save_LIBS="$LIBS"
8676       LIBS="$LIBS $LIBPTH"
8677       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h.  */
8679 #include <pth.h>
8680 int
8681 main ()
8682 {
8683 pth_self();
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8689   gl_have_pth=yes
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext \
8692     conftest$ac_exeext conftest.$ac_ext
8693       LIBS="$gl_save_LIBS"
8694       if test -n "$gl_have_pth"; then
8695         gl_threads_api=pth
8696         LIBTHREAD="$LIBPTH"
8697         LTLIBTHREAD="$LTLIBPTH"
8698         LIBMULTITHREAD="$LIBTHREAD"
8699         LTLIBMULTITHREAD="$LTLIBTHREAD"
8700
8701 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8702
8703         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8704           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8705
8706 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8707
8708             LIBTHREAD=
8709             LTLIBTHREAD=
8710           fi
8711         fi
8712       else
8713         CPPFLAGS="$gl_save_CPPFLAGS"
8714       fi
8715     fi
8716     if test -z "$gl_have_pthread"; then
8717       case "$gl_use_threads" in
8718         yes | windows | win32) # The 'win32' is for backward compatibility.
8719           if { case "$host_os" in
8720                  mingw*) true;;
8721                  *) false;;
8722                esac
8723              }; then
8724             gl_threads_api=windows
8725
8726 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8727
8728           fi
8729           ;;
8730       esac
8731     fi
8732   fi
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8734 $as_echo_n "checking for multithread API to use... " >&6; }
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8736 $as_echo "$gl_threads_api" >&6; }
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748   if test "$gl_threads_api" = posix; then
8749     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8750     # pthread_rwlock_* functions.
8751     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8752 "
8753 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8754
8755 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8756
8757 fi
8758
8759     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h.  */
8762
8763       #include <pthread.h>
8764 int
8765 main ()
8766 {
8767
8768 #if __FreeBSD__ == 4
8769 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8770 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8771        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8772 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8773 #else
8774 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8775 return !x;
8776 #endif
8777
8778   ;
8779   return 0;
8780 }
8781 _ACEOF
8782 if ac_fn_c_try_compile "$LINENO"; then :
8783
8784 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8785
8786 fi
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788   fi
8789   :
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802     use_additional=yes
8803
8804   acl_save_prefix="$prefix"
8805   prefix="$acl_final_prefix"
8806   acl_save_exec_prefix="$exec_prefix"
8807   exec_prefix="$acl_final_exec_prefix"
8808
8809     eval additional_includedir=\"$includedir\"
8810     eval additional_libdir=\"$libdir\"
8811
8812   exec_prefix="$acl_save_exec_prefix"
8813   prefix="$acl_save_prefix"
8814
8815
8816 # Check whether --with-libiconv-prefix was given.
8817 if test "${with_libiconv_prefix+set}" = set; then :
8818   withval=$with_libiconv_prefix;
8819     if test "X$withval" = "Xno"; then
8820       use_additional=no
8821     else
8822       if test "X$withval" = "X"; then
8823
8824   acl_save_prefix="$prefix"
8825   prefix="$acl_final_prefix"
8826   acl_save_exec_prefix="$exec_prefix"
8827   exec_prefix="$acl_final_exec_prefix"
8828
8829           eval additional_includedir=\"$includedir\"
8830           eval additional_libdir=\"$libdir\"
8831
8832   exec_prefix="$acl_save_exec_prefix"
8833   prefix="$acl_save_prefix"
8834
8835       else
8836         additional_includedir="$withval/include"
8837         additional_libdir="$withval/$acl_libdirstem"
8838         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8839            && ! test -d "$withval/$acl_libdirstem"; then
8840           additional_libdir="$withval/$acl_libdirstem2"
8841         fi
8842       fi
8843     fi
8844
8845 fi
8846
8847       LIBICONV=
8848   LTLIBICONV=
8849   INCICONV=
8850   LIBICONV_PREFIX=
8851       HAVE_LIBICONV=
8852   rpathdirs=
8853   ltrpathdirs=
8854   names_already_handled=
8855   names_next_round='iconv '
8856   while test -n "$names_next_round"; do
8857     names_this_round="$names_next_round"
8858     names_next_round=
8859     for name in $names_this_round; do
8860       already_handled=
8861       for n in $names_already_handled; do
8862         if test "$n" = "$name"; then
8863           already_handled=yes
8864           break
8865         fi
8866       done
8867       if test -z "$already_handled"; then
8868         names_already_handled="$names_already_handled $name"
8869                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8870         eval value=\"\$HAVE_LIB$uppername\"
8871         if test -n "$value"; then
8872           if test "$value" = yes; then
8873             eval value=\"\$LIB$uppername\"
8874             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8875             eval value=\"\$LTLIB$uppername\"
8876             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8877           else
8878                                     :
8879           fi
8880         else
8881                               found_dir=
8882           found_la=
8883           found_so=
8884           found_a=
8885           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8886           if test -n "$acl_shlibext"; then
8887             shrext=".$acl_shlibext"             # typically: shrext=.so
8888           else
8889             shrext=
8890           fi
8891           if test $use_additional = yes; then
8892             dir="$additional_libdir"
8893                                     if test -n "$acl_shlibext"; then
8894               if test -f "$dir/$libname$shrext"; then
8895                 found_dir="$dir"
8896                 found_so="$dir/$libname$shrext"
8897               else
8898                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8899                   ver=`(cd "$dir" && \
8900                         for f in "$libname$shrext".*; do echo "$f"; done \
8901                         | sed -e "s,^$libname$shrext\\\\.,," \
8902                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8903                         | sed 1q ) 2>/dev/null`
8904                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8905                     found_dir="$dir"
8906                     found_so="$dir/$libname$shrext.$ver"
8907                   fi
8908                 else
8909                   eval library_names=\"$acl_library_names_spec\"
8910                   for f in $library_names; do
8911                     if test -f "$dir/$f"; then
8912                       found_dir="$dir"
8913                       found_so="$dir/$f"
8914                       break
8915                     fi
8916                   done
8917                 fi
8918               fi
8919             fi
8920                         if test "X$found_dir" = "X"; then
8921               if test -f "$dir/$libname.$acl_libext"; then
8922                 found_dir="$dir"
8923                 found_a="$dir/$libname.$acl_libext"
8924               fi
8925             fi
8926             if test "X$found_dir" != "X"; then
8927               if test -f "$dir/$libname.la"; then
8928                 found_la="$dir/$libname.la"
8929               fi
8930             fi
8931           fi
8932           if test "X$found_dir" = "X"; then
8933             for x in $LDFLAGS $LTLIBICONV; do
8934
8935   acl_save_prefix="$prefix"
8936   prefix="$acl_final_prefix"
8937   acl_save_exec_prefix="$exec_prefix"
8938   exec_prefix="$acl_final_exec_prefix"
8939   eval x=\"$x\"
8940   exec_prefix="$acl_save_exec_prefix"
8941   prefix="$acl_save_prefix"
8942
8943               case "$x" in
8944                 -L*)
8945                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8946                                     if test -n "$acl_shlibext"; then
8947                     if test -f "$dir/$libname$shrext"; then
8948                       found_dir="$dir"
8949                       found_so="$dir/$libname$shrext"
8950                     else
8951                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8952                         ver=`(cd "$dir" && \
8953                               for f in "$libname$shrext".*; do echo "$f"; done \
8954                               | sed -e "s,^$libname$shrext\\\\.,," \
8955                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8956                               | sed 1q ) 2>/dev/null`
8957                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8958                           found_dir="$dir"
8959                           found_so="$dir/$libname$shrext.$ver"
8960                         fi
8961                       else
8962                         eval library_names=\"$acl_library_names_spec\"
8963                         for f in $library_names; do
8964                           if test -f "$dir/$f"; then
8965                             found_dir="$dir"
8966                             found_so="$dir/$f"
8967                             break
8968                           fi
8969                         done
8970                       fi
8971                     fi
8972                   fi
8973                                     if test "X$found_dir" = "X"; then
8974                     if test -f "$dir/$libname.$acl_libext"; then
8975                       found_dir="$dir"
8976                       found_a="$dir/$libname.$acl_libext"
8977                     fi
8978                   fi
8979                   if test "X$found_dir" != "X"; then
8980                     if test -f "$dir/$libname.la"; then
8981                       found_la="$dir/$libname.la"
8982                     fi
8983                   fi
8984                   ;;
8985               esac
8986               if test "X$found_dir" != "X"; then
8987                 break
8988               fi
8989             done
8990           fi
8991           if test "X$found_dir" != "X"; then
8992                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8993             if test "X$found_so" != "X"; then
8994                                                         if test "$enable_rpath" = no \
8995                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8996                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8997                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8998               else
8999                                                                                 haveit=
9000                 for x in $ltrpathdirs; do
9001                   if test "X$x" = "X$found_dir"; then
9002                     haveit=yes
9003                     break
9004                   fi
9005                 done
9006                 if test -z "$haveit"; then
9007                   ltrpathdirs="$ltrpathdirs $found_dir"
9008                 fi
9009                                 if test "$acl_hardcode_direct" = yes; then
9010                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9011                 else
9012                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9013                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9014                                                             haveit=
9015                     for x in $rpathdirs; do
9016                       if test "X$x" = "X$found_dir"; then
9017                         haveit=yes
9018                         break
9019                       fi
9020                     done
9021                     if test -z "$haveit"; then
9022                       rpathdirs="$rpathdirs $found_dir"
9023                     fi
9024                   else
9025                                                                                 haveit=
9026                     for x in $LDFLAGS $LIBICONV; do
9027
9028   acl_save_prefix="$prefix"
9029   prefix="$acl_final_prefix"
9030   acl_save_exec_prefix="$exec_prefix"
9031   exec_prefix="$acl_final_exec_prefix"
9032   eval x=\"$x\"
9033   exec_prefix="$acl_save_exec_prefix"
9034   prefix="$acl_save_prefix"
9035
9036                       if test "X$x" = "X-L$found_dir"; then
9037                         haveit=yes
9038                         break
9039                       fi
9040                     done
9041                     if test -z "$haveit"; then
9042                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9043                     fi
9044                     if test "$acl_hardcode_minus_L" != no; then
9045                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9046                     else
9047                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9048                     fi
9049                   fi
9050                 fi
9051               fi
9052             else
9053               if test "X$found_a" != "X"; then
9054                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9055               else
9056                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9057               fi
9058             fi
9059                         additional_includedir=
9060             case "$found_dir" in
9061               */$acl_libdirstem | */$acl_libdirstem/)
9062                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9063                 if test "$name" = 'iconv'; then
9064                   LIBICONV_PREFIX="$basedir"
9065                 fi
9066                 additional_includedir="$basedir/include"
9067                 ;;
9068               */$acl_libdirstem2 | */$acl_libdirstem2/)
9069                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9070                 if test "$name" = 'iconv'; then
9071                   LIBICONV_PREFIX="$basedir"
9072                 fi
9073                 additional_includedir="$basedir/include"
9074                 ;;
9075             esac
9076             if test "X$additional_includedir" != "X"; then
9077                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9078                 haveit=
9079                 if test "X$additional_includedir" = "X/usr/local/include"; then
9080                   if test -n "$GCC"; then
9081                     case $host_os in
9082                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9083                     esac
9084                   fi
9085                 fi
9086                 if test -z "$haveit"; then
9087                   for x in $CPPFLAGS $INCICONV; do
9088
9089   acl_save_prefix="$prefix"
9090   prefix="$acl_final_prefix"
9091   acl_save_exec_prefix="$exec_prefix"
9092   exec_prefix="$acl_final_exec_prefix"
9093   eval x=\"$x\"
9094   exec_prefix="$acl_save_exec_prefix"
9095   prefix="$acl_save_prefix"
9096
9097                     if test "X$x" = "X-I$additional_includedir"; then
9098                       haveit=yes
9099                       break
9100                     fi
9101                   done
9102                   if test -z "$haveit"; then
9103                     if test -d "$additional_includedir"; then
9104                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9105                     fi
9106                   fi
9107                 fi
9108               fi
9109             fi
9110                         if test -n "$found_la"; then
9111                                                         save_libdir="$libdir"
9112               case "$found_la" in
9113                 */* | *\\*) . "$found_la" ;;
9114                 *) . "./$found_la" ;;
9115               esac
9116               libdir="$save_libdir"
9117                             for dep in $dependency_libs; do
9118                 case "$dep" in
9119                   -L*)
9120                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9121                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9122                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9123                       haveit=
9124                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9125                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9126                         if test -n "$GCC"; then
9127                           case $host_os in
9128                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9129                           esac
9130                         fi
9131                       fi
9132                       if test -z "$haveit"; then
9133                         haveit=
9134                         for x in $LDFLAGS $LIBICONV; do
9135
9136   acl_save_prefix="$prefix"
9137   prefix="$acl_final_prefix"
9138   acl_save_exec_prefix="$exec_prefix"
9139   exec_prefix="$acl_final_exec_prefix"
9140   eval x=\"$x\"
9141   exec_prefix="$acl_save_exec_prefix"
9142   prefix="$acl_save_prefix"
9143
9144                           if test "X$x" = "X-L$additional_libdir"; then
9145                             haveit=yes
9146                             break
9147                           fi
9148                         done
9149                         if test -z "$haveit"; then
9150                           if test -d "$additional_libdir"; then
9151                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9152                           fi
9153                         fi
9154                         haveit=
9155                         for x in $LDFLAGS $LTLIBICONV; 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                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9173                           fi
9174                         fi
9175                       fi
9176                     fi
9177                     ;;
9178                   -R*)
9179                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9180                     if test "$enable_rpath" != no; then
9181                                                                   haveit=
9182                       for x in $rpathdirs; do
9183                         if test "X$x" = "X$dir"; then
9184                           haveit=yes
9185                           break
9186                         fi
9187                       done
9188                       if test -z "$haveit"; then
9189                         rpathdirs="$rpathdirs $dir"
9190                       fi
9191                                                                   haveit=
9192                       for x in $ltrpathdirs; do
9193                         if test "X$x" = "X$dir"; then
9194                           haveit=yes
9195                           break
9196                         fi
9197                       done
9198                       if test -z "$haveit"; then
9199                         ltrpathdirs="$ltrpathdirs $dir"
9200                       fi
9201                     fi
9202                     ;;
9203                   -l*)
9204                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9205                     ;;
9206                   *.la)
9207                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9208                     ;;
9209                   *)
9210                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9211                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9212                     ;;
9213                 esac
9214               done
9215             fi
9216           else
9217                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9218             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9219           fi
9220         fi
9221       fi
9222     done
9223   done
9224   if test "X$rpathdirs" != "X"; then
9225     if test -n "$acl_hardcode_libdir_separator"; then
9226                         alldirs=
9227       for found_dir in $rpathdirs; do
9228         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9229       done
9230             acl_save_libdir="$libdir"
9231       libdir="$alldirs"
9232       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9233       libdir="$acl_save_libdir"
9234       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9235     else
9236             for found_dir in $rpathdirs; do
9237         acl_save_libdir="$libdir"
9238         libdir="$found_dir"
9239         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9240         libdir="$acl_save_libdir"
9241         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9242       done
9243     fi
9244   fi
9245   if test "X$ltrpathdirs" != "X"; then
9246             for found_dir in $ltrpathdirs; do
9247       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9248     done
9249   fi
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262           am_save_CPPFLAGS="$CPPFLAGS"
9263
9264   for element in $INCICONV; do
9265     haveit=
9266     for x in $CPPFLAGS; do
9267
9268   acl_save_prefix="$prefix"
9269   prefix="$acl_final_prefix"
9270   acl_save_exec_prefix="$exec_prefix"
9271   exec_prefix="$acl_final_exec_prefix"
9272   eval x=\"$x\"
9273   exec_prefix="$acl_save_exec_prefix"
9274   prefix="$acl_save_prefix"
9275
9276       if test "X$x" = "X$element"; then
9277         haveit=yes
9278         break
9279       fi
9280     done
9281     if test -z "$haveit"; then
9282       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9283     fi
9284   done
9285
9286
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9288 $as_echo_n "checking for iconv... " >&6; }
9289 if ${am_cv_func_iconv+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292
9293     am_cv_func_iconv="no, consider installing GNU libiconv"
9294     am_cv_lib_iconv=no
9295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297
9298 #include <stdlib.h>
9299 #include <iconv.h>
9300
9301 int
9302 main ()
9303 {
9304 iconv_t cd = iconv_open("","");
9305            iconv(cd,NULL,NULL,NULL,NULL);
9306            iconv_close(cd);
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312   am_cv_func_iconv=yes
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext \
9315     conftest$ac_exeext conftest.$ac_ext
9316     if test "$am_cv_func_iconv" != yes; then
9317       am_save_LIBS="$LIBS"
9318       LIBS="$LIBS $LIBICONV"
9319       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h.  */
9321
9322 #include <stdlib.h>
9323 #include <iconv.h>
9324
9325 int
9326 main ()
9327 {
9328 iconv_t cd = iconv_open("","");
9329              iconv(cd,NULL,NULL,NULL,NULL);
9330              iconv_close(cd);
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 if ac_fn_c_try_link "$LINENO"; then :
9336   am_cv_lib_iconv=yes
9337         am_cv_func_iconv=yes
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext \
9340     conftest$ac_exeext conftest.$ac_ext
9341       LIBS="$am_save_LIBS"
9342     fi
9343
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9346 $as_echo "$am_cv_func_iconv" >&6; }
9347   if test "$am_cv_func_iconv" = yes; then
9348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9349 $as_echo_n "checking for working iconv... " >&6; }
9350 if ${am_cv_func_iconv_works+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353
9354                   am_save_LIBS="$LIBS"
9355       if test $am_cv_lib_iconv = yes; then
9356         LIBS="$LIBS $LIBICONV"
9357       fi
9358       if test "$cross_compiling" = yes; then :
9359
9360          case "$host_os" in
9361            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9362            *)            am_cv_func_iconv_works="guessing yes" ;;
9363          esac
9364
9365 else
9366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h.  */
9368
9369 #include <iconv.h>
9370 #include <string.h>
9371 int main ()
9372 {
9373   int result = 0;
9374   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9375      returns.  */
9376   {
9377     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9378     if (cd_utf8_to_88591 != (iconv_t)(-1))
9379       {
9380         static const char input[] = "\342\202\254"; /* EURO SIGN */
9381         char buf[10];
9382         const char *inptr = input;
9383         size_t inbytesleft = strlen (input);
9384         char *outptr = buf;
9385         size_t outbytesleft = sizeof (buf);
9386         size_t res = iconv (cd_utf8_to_88591,
9387                             (char **) &inptr, &inbytesleft,
9388                             &outptr, &outbytesleft);
9389         if (res == 0)
9390           result |= 1;
9391         iconv_close (cd_utf8_to_88591);
9392       }
9393   }
9394   /* Test against Solaris 10 bug: Failures are not distinguishable from
9395      successful returns.  */
9396   {
9397     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9398     if (cd_ascii_to_88591 != (iconv_t)(-1))
9399       {
9400         static const char input[] = "\263";
9401         char buf[10];
9402         const char *inptr = input;
9403         size_t inbytesleft = strlen (input);
9404         char *outptr = buf;
9405         size_t outbytesleft = sizeof (buf);
9406         size_t res = iconv (cd_ascii_to_88591,
9407                             (char **) &inptr, &inbytesleft,
9408                             &outptr, &outbytesleft);
9409         if (res == 0)
9410           result |= 2;
9411         iconv_close (cd_ascii_to_88591);
9412       }
9413   }
9414   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9415   {
9416     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9417     if (cd_88591_to_utf8 != (iconv_t)(-1))
9418       {
9419         static const char input[] = "\304";
9420         static char buf[2] = { (char)0xDE, (char)0xAD };
9421         const char *inptr = input;
9422         size_t inbytesleft = 1;
9423         char *outptr = buf;
9424         size_t outbytesleft = 1;
9425         size_t res = iconv (cd_88591_to_utf8,
9426                             (char **) &inptr, &inbytesleft,
9427                             &outptr, &outbytesleft);
9428         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9429           result |= 4;
9430         iconv_close (cd_88591_to_utf8);
9431       }
9432   }
9433 #if 0 /* This bug could be worked around by the caller.  */
9434   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9435   {
9436     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9437     if (cd_88591_to_utf8 != (iconv_t)(-1))
9438       {
9439         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9440         char buf[50];
9441         const char *inptr = input;
9442         size_t inbytesleft = strlen (input);
9443         char *outptr = buf;
9444         size_t outbytesleft = sizeof (buf);
9445         size_t res = iconv (cd_88591_to_utf8,
9446                             (char **) &inptr, &inbytesleft,
9447                             &outptr, &outbytesleft);
9448         if ((int)res > 0)
9449           result |= 8;
9450         iconv_close (cd_88591_to_utf8);
9451       }
9452   }
9453 #endif
9454   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9455      provided.  */
9456   if (/* Try standardized names.  */
9457       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9458       /* Try IRIX, OSF/1 names.  */
9459       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9460       /* Try AIX names.  */
9461       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9462       /* Try HP-UX names.  */
9463       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9464     result |= 16;
9465   return result;
9466 }
9467 _ACEOF
9468 if ac_fn_c_try_run "$LINENO"; then :
9469   am_cv_func_iconv_works=yes
9470 else
9471   am_cv_func_iconv_works=no
9472 fi
9473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9474   conftest.$ac_objext conftest.beam conftest.$ac_ext
9475 fi
9476
9477       LIBS="$am_save_LIBS"
9478
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9481 $as_echo "$am_cv_func_iconv_works" >&6; }
9482     case "$am_cv_func_iconv_works" in
9483       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9484       *)   am_func_iconv=yes ;;
9485     esac
9486   else
9487     am_func_iconv=no am_cv_lib_iconv=no
9488   fi
9489   if test "$am_func_iconv" = yes; then
9490
9491 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9492
9493   fi
9494   if test "$am_cv_lib_iconv" = yes; then
9495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9496 $as_echo_n "checking how to link with libiconv... " >&6; }
9497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9498 $as_echo "$LIBICONV" >&6; }
9499   else
9500             CPPFLAGS="$am_save_CPPFLAGS"
9501     LIBICONV=
9502     LTLIBICONV=
9503   fi
9504
9505
9506
9507   if test "$am_cv_func_iconv" = yes; then
9508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9509 $as_echo_n "checking for iconv declaration... " >&6; }
9510     if ${am_cv_proto_iconv+:} false; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513
9514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h.  */
9516
9517 #include <stdlib.h>
9518 #include <iconv.h>
9519 extern
9520 #ifdef __cplusplus
9521 "C"
9522 #endif
9523 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9524 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9525 #else
9526 size_t iconv();
9527 #endif
9528
9529 int
9530 main ()
9531 {
9532
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538   am_cv_proto_iconv_arg1=""
9539 else
9540   am_cv_proto_iconv_arg1="const"
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543       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);"
9544 fi
9545
9546     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9547     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9548          $am_cv_proto_iconv" >&5
9549 $as_echo "
9550          $am_cv_proto_iconv" >&6; }
9551
9552 cat >>confdefs.h <<_ACEOF
9553 #define ICONV_CONST $am_cv_proto_iconv_arg1
9554 _ACEOF
9555
9556
9557   fi
9558
9559
9560
9561
9562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h.  */
9564 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9565 int
9566 main ()
9567 {
9568
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"; then :
9574
9575 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9576
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext \
9579     conftest$ac_exeext conftest.$ac_ext
9580
9581   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9582 do :
9583   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9586   cat >>confdefs.h <<_ACEOF
9587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9588 _ACEOF
9589
9590 fi
9591
9592 done
9593
9594   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9595     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9596     argz_stringify argz_next __fsetlocking
9597 do :
9598   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9601   cat >>confdefs.h <<_ACEOF
9602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9603 _ACEOF
9604
9605 fi
9606 done
9607
9608
9609           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9610 "
9611 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9612   ac_have_decl=1
9613 else
9614   ac_have_decl=0
9615 fi
9616
9617 cat >>confdefs.h <<_ACEOF
9618 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9619 _ACEOF
9620 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9621 "
9622 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9623   ac_have_decl=1
9624 else
9625   ac_have_decl=0
9626 fi
9627
9628 cat >>confdefs.h <<_ACEOF
9629 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9630 _ACEOF
9631
9632
9633
9634
9635                       for ac_prog in bison
9636 do
9637   # Extract the first word of "$ac_prog", so it can be a program name with args.
9638 set dummy $ac_prog; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_prog_INTLBISON+:} false; then :
9642   $as_echo_n "(cached) " >&6
9643 else
9644   if test -n "$INTLBISON"; then
9645   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9646 else
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650   IFS=$as_save_IFS
9651   test -z "$as_dir" && as_dir=.
9652     for ac_exec_ext in '' $ac_executable_extensions; do
9653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654     ac_cv_prog_INTLBISON="$ac_prog"
9655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656     break 2
9657   fi
9658 done
9659   done
9660 IFS=$as_save_IFS
9661
9662 fi
9663 fi
9664 INTLBISON=$ac_cv_prog_INTLBISON
9665 if test -n "$INTLBISON"; then
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9667 $as_echo "$INTLBISON" >&6; }
9668 else
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9671 fi
9672
9673
9674   test -n "$INTLBISON" && break
9675 done
9676
9677   if test -z "$INTLBISON"; then
9678     ac_verc_fail=yes
9679   else
9680         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9681 $as_echo_n "checking version of bison... " >&6; }
9682     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9683     case $ac_prog_version in
9684       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9685       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9686          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9687       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9688     esac
9689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9690 $as_echo "$ac_prog_version" >&6; }
9691   fi
9692   if test $ac_verc_fail = yes; then
9693     INTLBISON=:
9694   fi
9695
9696
9697
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9699 $as_echo_n "checking for long long int... " >&6; }
9700 if ${ac_cv_type_long_long_int+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   ac_cv_type_long_long_int=yes
9704       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9705         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9706         if test $ac_cv_type_long_long_int = yes; then
9707                                         if test "$cross_compiling" = yes; then :
9708   :
9709 else
9710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h.  */
9712 #include <limits.h>
9713                  #ifndef LLONG_MAX
9714                  # define HALF \
9715                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9716                  # define LLONG_MAX (HALF - 1 + HALF)
9717                  #endif
9718 int
9719 main ()
9720 {
9721 long long int n = 1;
9722                  int i;
9723                  for (i = 0; ; i++)
9724                    {
9725                      long long int m = n << i;
9726                      if (m >> i != n)
9727                        return 1;
9728                      if (LLONG_MAX / 2 < m)
9729                        break;
9730                    }
9731                  return 0;
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_run "$LINENO"; then :
9737
9738 else
9739   ac_cv_type_long_long_int=no
9740 fi
9741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9742   conftest.$ac_objext conftest.beam conftest.$ac_ext
9743 fi
9744
9745         fi
9746       fi
9747 fi
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9749 $as_echo "$ac_cv_type_long_long_int" >&6; }
9750   if test $ac_cv_type_long_long_int = yes; then
9751
9752 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9753
9754   fi
9755
9756
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9758 $as_echo_n "checking for wchar_t... " >&6; }
9759 if ${gt_cv_c_wchar_t+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h.  */
9764 #include <stddef.h>
9765             wchar_t foo = (wchar_t)'\0';
9766 int
9767 main ()
9768 {
9769
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"; then :
9775   gt_cv_c_wchar_t=yes
9776 else
9777   gt_cv_c_wchar_t=no
9778 fi
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 fi
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9782 $as_echo "$gt_cv_c_wchar_t" >&6; }
9783   if test $gt_cv_c_wchar_t = yes; then
9784
9785 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9786
9787   fi
9788
9789
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9791 $as_echo_n "checking for wint_t... " >&6; }
9792 if ${gt_cv_c_wint_t+:} false; then :
9793   $as_echo_n "(cached) " >&6
9794 else
9795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h.  */
9797
9798 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9799    <wchar.h>.
9800    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9801    before <wchar.h>.  */
9802 #include <stddef.h>
9803 #include <stdio.h>
9804 #include <time.h>
9805 #include <wchar.h>
9806             wint_t foo = (wchar_t)'\0';
9807 int
9808 main ()
9809 {
9810
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"; then :
9816   gt_cv_c_wint_t=yes
9817 else
9818   gt_cv_c_wint_t=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9823 $as_echo "$gt_cv_c_wint_t" >&6; }
9824   if test $gt_cv_c_wint_t = yes; then
9825
9826 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9827
9828   fi
9829
9830
9831
9832
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9834 $as_echo_n "checking for intmax_t... " >&6; }
9835 if ${gt_cv_c_intmax_t+:} false; then :
9836   $as_echo_n "(cached) " >&6
9837 else
9838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h.  */
9840
9841 #include <stddef.h>
9842 #include <stdlib.h>
9843 #if HAVE_STDINT_H_WITH_UINTMAX
9844 #include <stdint.h>
9845 #endif
9846 #if HAVE_INTTYPES_H_WITH_UINTMAX
9847 #include <inttypes.h>
9848 #endif
9849
9850 int
9851 main ()
9852 {
9853 intmax_t x = -1;
9854             return !x;
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 if ac_fn_c_try_compile "$LINENO"; then :
9860   gt_cv_c_intmax_t=yes
9861 else
9862   gt_cv_c_intmax_t=no
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9867 $as_echo "$gt_cv_c_intmax_t" >&6; }
9868   if test $gt_cv_c_intmax_t = yes; then
9869
9870 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9871
9872   fi
9873
9874
9875
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9877 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9878 if ${gt_cv_func_printf_posix+:} false; then :
9879   $as_echo_n "(cached) " >&6
9880 else
9881
9882       if test "$cross_compiling" = yes; then :
9883
9884           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h.  */
9886
9887 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9888   notposix
9889 #endif
9890
9891 _ACEOF
9892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9893   $EGREP "notposix" >/dev/null 2>&1; then :
9894   gt_cv_func_printf_posix="guessing no"
9895 else
9896   gt_cv_func_printf_posix="guessing yes"
9897 fi
9898 rm -f conftest*
9899
9900
9901 else
9902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h.  */
9904
9905 #include <stdio.h>
9906 #include <string.h>
9907 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9908    dollar expansion (possibly an autoconf bug).  */
9909 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9910 static char buf[100];
9911 int main ()
9912 {
9913   sprintf (buf, format, 33, 55);
9914   return (strcmp (buf, "55 33") != 0);
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_run "$LINENO"; then :
9918   gt_cv_func_printf_posix=yes
9919 else
9920   gt_cv_func_printf_posix=no
9921 fi
9922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9923   conftest.$ac_objext conftest.beam conftest.$ac_ext
9924 fi
9925
9926
9927 fi
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9929 $as_echo "$gt_cv_func_printf_posix" >&6; }
9930   case $gt_cv_func_printf_posix in
9931     *yes)
9932
9933 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9934
9935       ;;
9936   esac
9937
9938
9939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9940 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9941 if ${ac_cv_gnu_library_2_1+:} false; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h.  */
9946
9947 #include <features.h>
9948 #ifdef __GNU_LIBRARY__
9949  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9950   Lucky GNU user
9951  #endif
9952 #endif
9953 #ifdef __UCLIBC__
9954  Lucky user
9955 #endif
9956
9957 _ACEOF
9958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9959   $EGREP "Lucky" >/dev/null 2>&1; then :
9960   ac_cv_gnu_library_2_1=yes
9961 else
9962   ac_cv_gnu_library_2_1=no
9963 fi
9964 rm -f conftest*
9965
9966
9967
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9970 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9971
9972     GLIBC21="$ac_cv_gnu_library_2_1"
9973
9974
9975
9976   for ac_header in stdint.h
9977 do :
9978   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9979 if test "x$ac_cv_header_stdint_h" = xyes; then :
9980   cat >>confdefs.h <<_ACEOF
9981 #define HAVE_STDINT_H 1
9982 _ACEOF
9983
9984 fi
9985
9986 done
9987
9988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9989 $as_echo_n "checking for SIZE_MAX... " >&6; }
9990 if ${gl_cv_size_max+:} false; then :
9991   $as_echo_n "(cached) " >&6
9992 else
9993
9994     gl_cv_size_max=
9995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h.  */
9997
9998 #include <limits.h>
9999 #if HAVE_STDINT_H
10000 #include <stdint.h>
10001 #endif
10002 #ifdef SIZE_MAX
10003 Found it
10004 #endif
10005
10006 _ACEOF
10007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10008   $EGREP "Found it" >/dev/null 2>&1; then :
10009   gl_cv_size_max=yes
10010 fi
10011 rm -f conftest*
10012
10013     if test -z "$gl_cv_size_max"; then
10014                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10015 #include <limits.h>"; then :
10016
10017 else
10018   size_t_bits_minus_1=
10019 fi
10020
10021       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10022
10023 else
10024   fits_in_uint=
10025 fi
10026
10027       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10028         if test $fits_in_uint = 1; then
10029                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h.  */
10031 #include <stddef.h>
10032                  extern size_t foo;
10033                  extern unsigned long foo;
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_compile "$LINENO"; then :
10044   fits_in_uint=0
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047         fi
10048                                 if test $fits_in_uint = 1; then
10049           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10050         else
10051           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10052         fi
10053       else
10054                 gl_cv_size_max='((size_t)~(size_t)0)'
10055       fi
10056     fi
10057
10058 fi
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10060 $as_echo "$gl_cv_size_max" >&6; }
10061   if test "$gl_cv_size_max" != yes; then
10062
10063 cat >>confdefs.h <<_ACEOF
10064 #define SIZE_MAX $gl_cv_size_max
10065 _ACEOF
10066
10067   fi
10068
10069
10070
10071
10072   for ac_header in stdint.h
10073 do :
10074   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10075 if test "x$ac_cv_header_stdint_h" = xyes; then :
10076   cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STDINT_H 1
10078 _ACEOF
10079
10080 fi
10081
10082 done
10083
10084
10085
10086
10087
10088   for ac_func in $ac_func_list
10089 do :
10090   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10093   cat >>confdefs.h <<_ACEOF
10094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10095 _ACEOF
10096
10097 fi
10098 done
10099
10100
10101
10102
10103
10104
10105
10106
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10108 $as_echo_n "checking for working fcntl.h... " >&6; }
10109 if ${gl_cv_header_working_fcntl_h+:} false; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112   if test "$cross_compiling" = yes; then :
10113   gl_cv_header_working_fcntl_h=cross-compiling
10114 else
10115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h.  */
10117 #include <sys/types.h>
10118            #include <sys/stat.h>
10119            #if HAVE_UNISTD_H
10120            # include <unistd.h>
10121            #else /* on Windows with MSVC */
10122            # include <io.h>
10123            # include <stdlib.h>
10124            # defined sleep(n) _sleep ((n) * 1000)
10125            #endif
10126            #include <fcntl.h>
10127            #ifndef O_NOATIME
10128             #define O_NOATIME 0
10129            #endif
10130            #ifndef O_NOFOLLOW
10131             #define O_NOFOLLOW 0
10132            #endif
10133            static int const constants[] =
10134             {
10135               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10136               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10137             };
10138
10139 int
10140 main ()
10141 {
10142
10143             int result = !constants;
10144             #if HAVE_SYMLINK
10145             {
10146               static char const sym[] = "conftest.sym";
10147               if (symlink ("/dev/null", sym) != 0)
10148                 result |= 2;
10149               else
10150                 {
10151                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10152                   if (fd >= 0)
10153                     {
10154                       close (fd);
10155                       result |= 4;
10156                     }
10157                 }
10158               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10159                 result |= 2;
10160               else
10161                 {
10162                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10163                   if (fd >= 0)
10164                     {
10165                       close (fd);
10166                       result |= 4;
10167                     }
10168                 }
10169               unlink (sym);
10170             }
10171             #endif
10172             {
10173               static char const file[] = "confdefs.h";
10174               int fd = open (file, O_RDONLY | O_NOATIME);
10175               if (fd < 0)
10176                 result |= 8;
10177               else
10178                 {
10179                   struct stat st0;
10180                   if (fstat (fd, &st0) != 0)
10181                     result |= 16;
10182                   else
10183                     {
10184                       char c;
10185                       sleep (1);
10186                       if (read (fd, &c, 1) != 1)
10187                         result |= 24;
10188                       else
10189                         {
10190                           if (close (fd) != 0)
10191                             result |= 32;
10192                           else
10193                             {
10194                               struct stat st1;
10195                               if (stat (file, &st1) != 0)
10196                                 result |= 40;
10197                               else
10198                                 if (st0.st_atime != st1.st_atime)
10199                                   result |= 64;
10200                             }
10201                         }
10202                     }
10203                 }
10204             }
10205             return result;
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_run "$LINENO"; then :
10211   gl_cv_header_working_fcntl_h=yes
10212 else
10213   case $? in #(
10214         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10215         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10216         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10217          *) gl_cv_header_working_fcntl_h='no';;
10218         esac
10219 fi
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221   conftest.$ac_objext conftest.beam conftest.$ac_ext
10222 fi
10223
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10226 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10227
10228   case $gl_cv_header_working_fcntl_h in #(
10229   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10230   *) ac_val=1;;
10231   esac
10232
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_WORKING_O_NOATIME $ac_val
10235 _ACEOF
10236
10237
10238   case $gl_cv_header_working_fcntl_h in #(
10239   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10240   *) ac_val=1;;
10241   esac
10242
10243 cat >>confdefs.h <<_ACEOF
10244 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10245 _ACEOF
10246
10247
10248
10249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10250 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10251 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   gt_save_LIBS="$LIBS"
10255      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10256      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h.  */
10258 #include <CoreFoundation/CFPreferences.h>
10259 int
10260 main ()
10261 {
10262 CFPreferencesCopyAppValue(NULL, NULL)
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268   gt_cv_func_CFPreferencesCopyAppValue=yes
10269 else
10270   gt_cv_func_CFPreferencesCopyAppValue=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273     conftest$ac_exeext conftest.$ac_ext
10274      LIBS="$gt_save_LIBS"
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10277 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10278   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10279
10280 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10281
10282   fi
10283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10284 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10285 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   gt_save_LIBS="$LIBS"
10289      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h.  */
10292 #include <CoreFoundation/CFLocale.h>
10293 int
10294 main ()
10295 {
10296 CFLocaleCopyCurrent();
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302   gt_cv_func_CFLocaleCopyCurrent=yes
10303 else
10304   gt_cv_func_CFLocaleCopyCurrent=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307     conftest$ac_exeext conftest.$ac_ext
10308      LIBS="$gt_save_LIBS"
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10311 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10312   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10313
10314 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10315
10316   fi
10317   INTL_MACOSX_LIBS=
10318   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10319     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10320   fi
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331     case "$enable_silent_rules" in
10332     yes) INTL_DEFAULT_VERBOSITY=0;;
10333     no)  INTL_DEFAULT_VERBOSITY=1;;
10334     *)   INTL_DEFAULT_VERBOSITY=1;;
10335   esac
10336
10337
10338   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10339 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10340
10341 else
10342
10343 $as_echo "#define ptrdiff_t long" >>confdefs.h
10344
10345
10346 fi
10347
10348   for ac_header in features.h stddef.h stdlib.h string.h
10349 do :
10350   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10353   cat >>confdefs.h <<_ACEOF
10354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10355 _ACEOF
10356
10357 fi
10358
10359 done
10360
10361   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10362     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10363 do :
10364   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10367   cat >>confdefs.h <<_ACEOF
10368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10369 _ACEOF
10370
10371 fi
10372 done
10373
10374
10375       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10376 "
10377 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10378   ac_have_decl=1
10379 else
10380   ac_have_decl=0
10381 fi
10382
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_DECL__SNPRINTF $ac_have_decl
10385 _ACEOF
10386 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10387 "
10388 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10389   ac_have_decl=1
10390 else
10391   ac_have_decl=0
10392 fi
10393
10394 cat >>confdefs.h <<_ACEOF
10395 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10396 _ACEOF
10397
10398
10399           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10400 "
10401 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10402   ac_have_decl=1
10403 else
10404   ac_have_decl=0
10405 fi
10406
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10409 _ACEOF
10410
10411
10412   case $gt_cv_func_printf_posix in
10413     *yes) HAVE_POSIX_PRINTF=1 ;;
10414     *) HAVE_POSIX_PRINTF=0 ;;
10415   esac
10416
10417   if test "$ac_cv_func_asprintf" = yes; then
10418     HAVE_ASPRINTF=1
10419   else
10420     HAVE_ASPRINTF=0
10421   fi
10422
10423   if test "$ac_cv_func_snprintf" = yes; then
10424     HAVE_SNPRINTF=1
10425   else
10426     HAVE_SNPRINTF=0
10427   fi
10428
10429   if test "$ac_cv_func_newlocale" = yes; then
10430     HAVE_NEWLOCALE=1
10431   else
10432     HAVE_NEWLOCALE=0
10433   fi
10434
10435   if test "$ac_cv_func_wprintf" = yes; then
10436     HAVE_WPRINTF=1
10437   else
10438     HAVE_WPRINTF=0
10439   fi
10440
10441
10442
10443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10444 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10445 if ${am_cv_langinfo_codeset+:} false; then :
10446   $as_echo_n "(cached) " >&6
10447 else
10448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h.  */
10450 #include <langinfo.h>
10451 int
10452 main ()
10453 {
10454 char* cs = nl_langinfo(CODESET); return !cs;
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460   am_cv_langinfo_codeset=yes
10461 else
10462   am_cv_langinfo_codeset=no
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465     conftest$ac_exeext conftest.$ac_ext
10466
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10469 $as_echo "$am_cv_langinfo_codeset" >&6; }
10470   if test $am_cv_langinfo_codeset = yes; then
10471
10472 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10473
10474   fi
10475
10476
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10478 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10479 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10480   $as_echo_n "(cached) " >&6
10481 else
10482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h.  */
10484 #include <locale.h>
10485 int
10486 main ()
10487 {
10488 return LC_MESSAGES
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_link "$LINENO"; then :
10494   gt_cv_val_LC_MESSAGES=yes
10495 else
10496   gt_cv_val_LC_MESSAGES=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499     conftest$ac_exeext conftest.$ac_ext
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10502 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10503   if test $gt_cv_val_LC_MESSAGES = yes; then
10504
10505 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10506
10507   fi
10508
10509
10510                 if test "$enable_shared" = yes; then
10511     case "$host_os" in
10512       mingw* | cygwin*) is_woe32dll=yes ;;
10513       *) is_woe32dll=no ;;
10514     esac
10515   else
10516     is_woe32dll=no
10517   fi
10518   WOE32DLL=$is_woe32dll
10519
10520
10521       case "$host_os" in
10522     mingw* | cygwin*) is_woe32=yes ;;
10523     *) is_woe32=no ;;
10524   esac
10525   WOE32=$is_woe32
10526
10527   if test $WOE32 = yes; then
10528         if test -n "$ac_tool_prefix"; then
10529   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10530 set dummy ${ac_tool_prefix}windres; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_prog_WINDRES+:} false; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536   if test -n "$WINDRES"; then
10537   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542   IFS=$as_save_IFS
10543   test -z "$as_dir" && as_dir=.
10544     for ac_exec_ext in '' $ac_executable_extensions; do
10545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548     break 2
10549   fi
10550 done
10551   done
10552 IFS=$as_save_IFS
10553
10554 fi
10555 fi
10556 WINDRES=$ac_cv_prog_WINDRES
10557 if test -n "$WINDRES"; then
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10559 $as_echo "$WINDRES" >&6; }
10560 else
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564
10565
10566 fi
10567 if test -z "$ac_cv_prog_WINDRES"; then
10568   ac_ct_WINDRES=$WINDRES
10569   # Extract the first word of "windres", so it can be a program name with args.
10570 set dummy windres; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   if test -n "$ac_ct_WINDRES"; then
10577   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584     for ac_exec_ext in '' $ac_executable_extensions; do
10585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586     ac_cv_prog_ac_ct_WINDRES="windres"
10587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591   done
10592 IFS=$as_save_IFS
10593
10594 fi
10595 fi
10596 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10597 if test -n "$ac_ct_WINDRES"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10599 $as_echo "$ac_ct_WINDRES" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605   if test "x$ac_ct_WINDRES" = x; then
10606     WINDRES=""
10607   else
10608     case $cross_compiling:$ac_tool_warned in
10609 yes:)
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10613 esac
10614     WINDRES=$ac_ct_WINDRES
10615   fi
10616 else
10617   WINDRES="$ac_cv_prog_WINDRES"
10618 fi
10619
10620   fi
10621
10622               case "$host_os" in
10623     hpux*) LTLIBC="" ;;
10624     *)     LTLIBC="-lc" ;;
10625   esac
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10654 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10655 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10656   $as_echo_n "(cached) " >&6
10657 else
10658   gt_save_LIBS="$LIBS"
10659      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10660      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h.  */
10662 #include <CoreFoundation/CFPreferences.h>
10663 int
10664 main ()
10665 {
10666 CFPreferencesCopyAppValue(NULL, NULL)
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_c_try_link "$LINENO"; then :
10672   gt_cv_func_CFPreferencesCopyAppValue=yes
10673 else
10674   gt_cv_func_CFPreferencesCopyAppValue=no
10675 fi
10676 rm -f core conftest.err conftest.$ac_objext \
10677     conftest$ac_exeext conftest.$ac_ext
10678      LIBS="$gt_save_LIBS"
10679 fi
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10681 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10682   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10683
10684 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10685
10686   fi
10687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10688 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10689 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10690   $as_echo_n "(cached) " >&6
10691 else
10692   gt_save_LIBS="$LIBS"
10693      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10694      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h.  */
10696 #include <CoreFoundation/CFLocale.h>
10697 int
10698 main ()
10699 {
10700 CFLocaleCopyCurrent();
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706   gt_cv_func_CFLocaleCopyCurrent=yes
10707 else
10708   gt_cv_func_CFLocaleCopyCurrent=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711     conftest$ac_exeext conftest.$ac_ext
10712      LIBS="$gt_save_LIBS"
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10715 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10716   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10717
10718 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10719
10720   fi
10721   INTL_MACOSX_LIBS=
10722   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10723     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10724   fi
10725
10726
10727
10728
10729
10730
10731     BUILD_INCLUDED_LIBINTL=no
10732     USE_INCLUDED_LIBINTL=no
10733
10734   LIBINTL=
10735   LTLIBINTL=
10736   POSUB=
10737
10738     case " $gt_needs " in
10739     *" need-formatstring-macros "*) gt_api_version=3 ;;
10740     *" need-ngettext "*) gt_api_version=2 ;;
10741     *) gt_api_version=1 ;;
10742   esac
10743   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10744   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10745
10746     if test "$USE_NLS" = "yes"; then
10747     gt_use_preinstalled_gnugettext=no
10748
10749       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10750 $as_echo_n "checking whether included gettext is requested... " >&6; }
10751
10752 # Check whether --with-included-gettext was given.
10753 if test "${with_included_gettext+set}" = set; then :
10754   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10755 else
10756   nls_cv_force_use_gnu_gettext=no
10757 fi
10758
10759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10760 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10761
10762       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10763       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10764
10765
10766         if test $gt_api_version -ge 3; then
10767           gt_revision_test_code='
10768 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10769 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10770 #endif
10771 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10772 '
10773         else
10774           gt_revision_test_code=
10775         fi
10776         if test $gt_api_version -ge 2; then
10777           gt_expression_test_code=' + * ngettext ("", "", 0)'
10778         else
10779           gt_expression_test_code=
10780         fi
10781
10782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10783 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10784 if eval \${$gt_func_gnugettext_libc+:} false; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789
10790 #include <libintl.h>
10791 $gt_revision_test_code
10792 extern int _nl_msg_cat_cntr;
10793 extern int *_nl_domain_bindings;
10794
10795 int
10796 main ()
10797 {
10798
10799 bindtextdomain ("", "");
10800 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10801
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_link "$LINENO"; then :
10807   eval "$gt_func_gnugettext_libc=yes"
10808 else
10809   eval "$gt_func_gnugettext_libc=no"
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext \
10812     conftest$ac_exeext conftest.$ac_ext
10813 fi
10814 eval ac_res=\$$gt_func_gnugettext_libc
10815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10816 $as_echo "$ac_res" >&6; }
10817
10818         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10819
10820
10821
10822
10823
10824
10825
10826
10827     use_additional=yes
10828
10829   acl_save_prefix="$prefix"
10830   prefix="$acl_final_prefix"
10831   acl_save_exec_prefix="$exec_prefix"
10832   exec_prefix="$acl_final_exec_prefix"
10833
10834     eval additional_includedir=\"$includedir\"
10835     eval additional_libdir=\"$libdir\"
10836
10837   exec_prefix="$acl_save_exec_prefix"
10838   prefix="$acl_save_prefix"
10839
10840
10841 # Check whether --with-libintl-prefix was given.
10842 if test "${with_libintl_prefix+set}" = set; then :
10843   withval=$with_libintl_prefix;
10844     if test "X$withval" = "Xno"; then
10845       use_additional=no
10846     else
10847       if test "X$withval" = "X"; then
10848
10849   acl_save_prefix="$prefix"
10850   prefix="$acl_final_prefix"
10851   acl_save_exec_prefix="$exec_prefix"
10852   exec_prefix="$acl_final_exec_prefix"
10853
10854           eval additional_includedir=\"$includedir\"
10855           eval additional_libdir=\"$libdir\"
10856
10857   exec_prefix="$acl_save_exec_prefix"
10858   prefix="$acl_save_prefix"
10859
10860       else
10861         additional_includedir="$withval/include"
10862         additional_libdir="$withval/$acl_libdirstem"
10863         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10864            && ! test -d "$withval/$acl_libdirstem"; then
10865           additional_libdir="$withval/$acl_libdirstem2"
10866         fi
10867       fi
10868     fi
10869
10870 fi
10871
10872       LIBINTL=
10873   LTLIBINTL=
10874   INCINTL=
10875   LIBINTL_PREFIX=
10876       HAVE_LIBINTL=
10877   rpathdirs=
10878   ltrpathdirs=
10879   names_already_handled=
10880   names_next_round='intl '
10881   while test -n "$names_next_round"; do
10882     names_this_round="$names_next_round"
10883     names_next_round=
10884     for name in $names_this_round; do
10885       already_handled=
10886       for n in $names_already_handled; do
10887         if test "$n" = "$name"; then
10888           already_handled=yes
10889           break
10890         fi
10891       done
10892       if test -z "$already_handled"; then
10893         names_already_handled="$names_already_handled $name"
10894                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10895         eval value=\"\$HAVE_LIB$uppername\"
10896         if test -n "$value"; then
10897           if test "$value" = yes; then
10898             eval value=\"\$LIB$uppername\"
10899             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10900             eval value=\"\$LTLIB$uppername\"
10901             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10902           else
10903                                     :
10904           fi
10905         else
10906                               found_dir=
10907           found_la=
10908           found_so=
10909           found_a=
10910           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10911           if test -n "$acl_shlibext"; then
10912             shrext=".$acl_shlibext"             # typically: shrext=.so
10913           else
10914             shrext=
10915           fi
10916           if test $use_additional = yes; then
10917             dir="$additional_libdir"
10918                                     if test -n "$acl_shlibext"; then
10919               if test -f "$dir/$libname$shrext"; then
10920                 found_dir="$dir"
10921                 found_so="$dir/$libname$shrext"
10922               else
10923                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10924                   ver=`(cd "$dir" && \
10925                         for f in "$libname$shrext".*; do echo "$f"; done \
10926                         | sed -e "s,^$libname$shrext\\\\.,," \
10927                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10928                         | sed 1q ) 2>/dev/null`
10929                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10930                     found_dir="$dir"
10931                     found_so="$dir/$libname$shrext.$ver"
10932                   fi
10933                 else
10934                   eval library_names=\"$acl_library_names_spec\"
10935                   for f in $library_names; do
10936                     if test -f "$dir/$f"; then
10937                       found_dir="$dir"
10938                       found_so="$dir/$f"
10939                       break
10940                     fi
10941                   done
10942                 fi
10943               fi
10944             fi
10945                         if test "X$found_dir" = "X"; then
10946               if test -f "$dir/$libname.$acl_libext"; then
10947                 found_dir="$dir"
10948                 found_a="$dir/$libname.$acl_libext"
10949               fi
10950             fi
10951             if test "X$found_dir" != "X"; then
10952               if test -f "$dir/$libname.la"; then
10953                 found_la="$dir/$libname.la"
10954               fi
10955             fi
10956           fi
10957           if test "X$found_dir" = "X"; then
10958             for x in $LDFLAGS $LTLIBINTL; do
10959
10960   acl_save_prefix="$prefix"
10961   prefix="$acl_final_prefix"
10962   acl_save_exec_prefix="$exec_prefix"
10963   exec_prefix="$acl_final_exec_prefix"
10964   eval x=\"$x\"
10965   exec_prefix="$acl_save_exec_prefix"
10966   prefix="$acl_save_prefix"
10967
10968               case "$x" in
10969                 -L*)
10970                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10971                                     if test -n "$acl_shlibext"; then
10972                     if test -f "$dir/$libname$shrext"; then
10973                       found_dir="$dir"
10974                       found_so="$dir/$libname$shrext"
10975                     else
10976                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10977                         ver=`(cd "$dir" && \
10978                               for f in "$libname$shrext".*; do echo "$f"; done \
10979                               | sed -e "s,^$libname$shrext\\\\.,," \
10980                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10981                               | sed 1q ) 2>/dev/null`
10982                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10983                           found_dir="$dir"
10984                           found_so="$dir/$libname$shrext.$ver"
10985                         fi
10986                       else
10987                         eval library_names=\"$acl_library_names_spec\"
10988                         for f in $library_names; do
10989                           if test -f "$dir/$f"; then
10990                             found_dir="$dir"
10991                             found_so="$dir/$f"
10992                             break
10993                           fi
10994                         done
10995                       fi
10996                     fi
10997                   fi
10998                                     if test "X$found_dir" = "X"; then
10999                     if test -f "$dir/$libname.$acl_libext"; then
11000                       found_dir="$dir"
11001                       found_a="$dir/$libname.$acl_libext"
11002                     fi
11003                   fi
11004                   if test "X$found_dir" != "X"; then
11005                     if test -f "$dir/$libname.la"; then
11006                       found_la="$dir/$libname.la"
11007                     fi
11008                   fi
11009                   ;;
11010               esac
11011               if test "X$found_dir" != "X"; then
11012                 break
11013               fi
11014             done
11015           fi
11016           if test "X$found_dir" != "X"; then
11017                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11018             if test "X$found_so" != "X"; then
11019                                                         if test "$enable_rpath" = no \
11020                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11021                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11022                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11023               else
11024                                                                                 haveit=
11025                 for x in $ltrpathdirs; do
11026                   if test "X$x" = "X$found_dir"; then
11027                     haveit=yes
11028                     break
11029                   fi
11030                 done
11031                 if test -z "$haveit"; then
11032                   ltrpathdirs="$ltrpathdirs $found_dir"
11033                 fi
11034                                 if test "$acl_hardcode_direct" = yes; then
11035                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11036                 else
11037                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11038                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11039                                                             haveit=
11040                     for x in $rpathdirs; do
11041                       if test "X$x" = "X$found_dir"; then
11042                         haveit=yes
11043                         break
11044                       fi
11045                     done
11046                     if test -z "$haveit"; then
11047                       rpathdirs="$rpathdirs $found_dir"
11048                     fi
11049                   else
11050                                                                                 haveit=
11051                     for x in $LDFLAGS $LIBINTL; do
11052
11053   acl_save_prefix="$prefix"
11054   prefix="$acl_final_prefix"
11055   acl_save_exec_prefix="$exec_prefix"
11056   exec_prefix="$acl_final_exec_prefix"
11057   eval x=\"$x\"
11058   exec_prefix="$acl_save_exec_prefix"
11059   prefix="$acl_save_prefix"
11060
11061                       if test "X$x" = "X-L$found_dir"; then
11062                         haveit=yes
11063                         break
11064                       fi
11065                     done
11066                     if test -z "$haveit"; then
11067                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11068                     fi
11069                     if test "$acl_hardcode_minus_L" != no; then
11070                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11071                     else
11072                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11073                     fi
11074                   fi
11075                 fi
11076               fi
11077             else
11078               if test "X$found_a" != "X"; then
11079                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11080               else
11081                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11082               fi
11083             fi
11084                         additional_includedir=
11085             case "$found_dir" in
11086               */$acl_libdirstem | */$acl_libdirstem/)
11087                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11088                 if test "$name" = 'intl'; then
11089                   LIBINTL_PREFIX="$basedir"
11090                 fi
11091                 additional_includedir="$basedir/include"
11092                 ;;
11093               */$acl_libdirstem2 | */$acl_libdirstem2/)
11094                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11095                 if test "$name" = 'intl'; then
11096                   LIBINTL_PREFIX="$basedir"
11097                 fi
11098                 additional_includedir="$basedir/include"
11099                 ;;
11100             esac
11101             if test "X$additional_includedir" != "X"; then
11102                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11103                 haveit=
11104                 if test "X$additional_includedir" = "X/usr/local/include"; then
11105                   if test -n "$GCC"; then
11106                     case $host_os in
11107                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11108                     esac
11109                   fi
11110                 fi
11111                 if test -z "$haveit"; then
11112                   for x in $CPPFLAGS $INCINTL; do
11113
11114   acl_save_prefix="$prefix"
11115   prefix="$acl_final_prefix"
11116   acl_save_exec_prefix="$exec_prefix"
11117   exec_prefix="$acl_final_exec_prefix"
11118   eval x=\"$x\"
11119   exec_prefix="$acl_save_exec_prefix"
11120   prefix="$acl_save_prefix"
11121
11122                     if test "X$x" = "X-I$additional_includedir"; then
11123                       haveit=yes
11124                       break
11125                     fi
11126                   done
11127                   if test -z "$haveit"; then
11128                     if test -d "$additional_includedir"; then
11129                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11130                     fi
11131                   fi
11132                 fi
11133               fi
11134             fi
11135                         if test -n "$found_la"; then
11136                                                         save_libdir="$libdir"
11137               case "$found_la" in
11138                 */* | *\\*) . "$found_la" ;;
11139                 *) . "./$found_la" ;;
11140               esac
11141               libdir="$save_libdir"
11142                             for dep in $dependency_libs; do
11143                 case "$dep" in
11144                   -L*)
11145                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11146                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11147                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11148                       haveit=
11149                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11150                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11151                         if test -n "$GCC"; then
11152                           case $host_os in
11153                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11154                           esac
11155                         fi
11156                       fi
11157                       if test -z "$haveit"; then
11158                         haveit=
11159                         for x in $LDFLAGS $LIBINTL; do
11160
11161   acl_save_prefix="$prefix"
11162   prefix="$acl_final_prefix"
11163   acl_save_exec_prefix="$exec_prefix"
11164   exec_prefix="$acl_final_exec_prefix"
11165   eval x=\"$x\"
11166   exec_prefix="$acl_save_exec_prefix"
11167   prefix="$acl_save_prefix"
11168
11169                           if test "X$x" = "X-L$additional_libdir"; then
11170                             haveit=yes
11171                             break
11172                           fi
11173                         done
11174                         if test -z "$haveit"; then
11175                           if test -d "$additional_libdir"; then
11176                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11177                           fi
11178                         fi
11179                         haveit=
11180                         for x in $LDFLAGS $LTLIBINTL; 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                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11198                           fi
11199                         fi
11200                       fi
11201                     fi
11202                     ;;
11203                   -R*)
11204                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11205                     if test "$enable_rpath" != no; then
11206                                                                   haveit=
11207                       for x in $rpathdirs; do
11208                         if test "X$x" = "X$dir"; then
11209                           haveit=yes
11210                           break
11211                         fi
11212                       done
11213                       if test -z "$haveit"; then
11214                         rpathdirs="$rpathdirs $dir"
11215                       fi
11216                                                                   haveit=
11217                       for x in $ltrpathdirs; do
11218                         if test "X$x" = "X$dir"; then
11219                           haveit=yes
11220                           break
11221                         fi
11222                       done
11223                       if test -z "$haveit"; then
11224                         ltrpathdirs="$ltrpathdirs $dir"
11225                       fi
11226                     fi
11227                     ;;
11228                   -l*)
11229                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11230                     ;;
11231                   *.la)
11232                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11233                     ;;
11234                   *)
11235                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11236                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11237                     ;;
11238                 esac
11239               done
11240             fi
11241           else
11242                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11243             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11244           fi
11245         fi
11246       fi
11247     done
11248   done
11249   if test "X$rpathdirs" != "X"; then
11250     if test -n "$acl_hardcode_libdir_separator"; then
11251                         alldirs=
11252       for found_dir in $rpathdirs; do
11253         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11254       done
11255             acl_save_libdir="$libdir"
11256       libdir="$alldirs"
11257       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11258       libdir="$acl_save_libdir"
11259       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11260     else
11261             for found_dir in $rpathdirs; do
11262         acl_save_libdir="$libdir"
11263         libdir="$found_dir"
11264         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11265         libdir="$acl_save_libdir"
11266         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11267       done
11268     fi
11269   fi
11270   if test "X$ltrpathdirs" != "X"; then
11271             for found_dir in $ltrpathdirs; do
11272       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11273     done
11274   fi
11275
11276
11277
11278
11279
11280
11281           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11282 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11283 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   gt_save_CPPFLAGS="$CPPFLAGS"
11287             CPPFLAGS="$CPPFLAGS $INCINTL"
11288             gt_save_LIBS="$LIBS"
11289             LIBS="$LIBS $LIBINTL"
11290                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h.  */
11292
11293 #include <libintl.h>
11294 $gt_revision_test_code
11295 extern int _nl_msg_cat_cntr;
11296 extern
11297 #ifdef __cplusplus
11298 "C"
11299 #endif
11300 const char *_nl_expand_alias (const char *);
11301
11302 int
11303 main ()
11304 {
11305
11306 bindtextdomain ("", "");
11307 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11308
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314   eval "$gt_func_gnugettext_libintl=yes"
11315 else
11316   eval "$gt_func_gnugettext_libintl=no"
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319     conftest$ac_exeext conftest.$ac_ext
11320                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11321               LIBS="$LIBS $LIBICONV"
11322               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h.  */
11324
11325 #include <libintl.h>
11326 $gt_revision_test_code
11327 extern int _nl_msg_cat_cntr;
11328 extern
11329 #ifdef __cplusplus
11330 "C"
11331 #endif
11332 const char *_nl_expand_alias (const char *);
11333
11334 int
11335 main ()
11336 {
11337
11338 bindtextdomain ("", "");
11339 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11340
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346   LIBINTL="$LIBINTL $LIBICONV"
11347                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11348                  eval "$gt_func_gnugettext_libintl=yes"
11349
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext \
11352     conftest$ac_exeext conftest.$ac_ext
11353             fi
11354             CPPFLAGS="$gt_save_CPPFLAGS"
11355             LIBS="$gt_save_LIBS"
11356 fi
11357 eval ac_res=\$$gt_func_gnugettext_libintl
11358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11359 $as_echo "$ac_res" >&6; }
11360         fi
11361
11362                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11363            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11364                 && test "$PACKAGE" != gettext-runtime \
11365                 && test "$PACKAGE" != gettext-tools; }; then
11366           gt_use_preinstalled_gnugettext=yes
11367         else
11368                     LIBINTL=
11369           LTLIBINTL=
11370           INCINTL=
11371         fi
11372
11373
11374         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11375                               nls_cv_use_gnu_gettext=yes
11376         fi
11377       fi
11378
11379       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11380                 BUILD_INCLUDED_LIBINTL=yes
11381         USE_INCLUDED_LIBINTL=yes
11382         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11383         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11384         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11385       fi
11386
11387       CATOBJEXT=
11388       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11389          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11390                 CATOBJEXT=.gmo
11391       fi
11392
11393
11394     if test -n "$INTL_MACOSX_LIBS"; then
11395       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11397                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11398         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11399       fi
11400     fi
11401
11402     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11403        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11404
11405 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11406
11407     else
11408       USE_NLS=no
11409     fi
11410   fi
11411
11412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11413 $as_echo_n "checking whether to use NLS... " >&6; }
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11415 $as_echo "$USE_NLS" >&6; }
11416   if test "$USE_NLS" = "yes"; then
11417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11418 $as_echo_n "checking where the gettext function comes from... " >&6; }
11419     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11420       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11421         gt_source="external libintl"
11422       else
11423         gt_source="libc"
11424       fi
11425     else
11426       gt_source="included intl directory"
11427     fi
11428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11429 $as_echo "$gt_source" >&6; }
11430   fi
11431
11432   if test "$USE_NLS" = "yes"; then
11433
11434     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11435       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11437 $as_echo_n "checking how to link with libintl... " >&6; }
11438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11439 $as_echo "$LIBINTL" >&6; }
11440
11441   for element in $INCINTL; do
11442     haveit=
11443     for x in $CPPFLAGS; do
11444
11445   acl_save_prefix="$prefix"
11446   prefix="$acl_final_prefix"
11447   acl_save_exec_prefix="$exec_prefix"
11448   exec_prefix="$acl_final_exec_prefix"
11449   eval x=\"$x\"
11450   exec_prefix="$acl_save_exec_prefix"
11451   prefix="$acl_save_prefix"
11452
11453       if test "X$x" = "X$element"; then
11454         haveit=yes
11455         break
11456       fi
11457     done
11458     if test -z "$haveit"; then
11459       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11460     fi
11461   done
11462
11463       fi
11464
11465
11466 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11467
11468
11469 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11470
11471     fi
11472
11473         POSUB=po
11474   fi
11475
11476
11477             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11478       BUILD_INCLUDED_LIBINTL=yes
11479     fi
11480
11481
11482
11483
11484
11485         nls_cv_header_intl=
11486     nls_cv_header_libgt=
11487
11488         DATADIRNAME=share
11489
11490
11491         INSTOBJEXT=.mo
11492
11493
11494         GENCAT=gencat
11495
11496
11497         INTLOBJS=
11498     if test "$USE_INCLUDED_LIBINTL" = yes; then
11499       INTLOBJS="\$(GETTOBJS)"
11500     fi
11501
11502
11503         INTL_LIBTOOL_SUFFIX_PREFIX=
11504
11505
11506
11507     INTLLIBS="$LIBINTL"
11508
11509
11510
11511
11512
11513
11514
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11517 set x ${MAKE-make}
11518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11520   $as_echo_n "(cached) " >&6
11521 else
11522   cat >conftest.make <<\_ACEOF
11523 SHELL = /bin/sh
11524 all:
11525         @echo '@@@%%%=$(MAKE)=@@@%%%'
11526 _ACEOF
11527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11529   *@@@%%%=?*=@@@%%%*)
11530     eval ac_cv_prog_make_${ac_make}_set=yes;;
11531   *)
11532     eval ac_cv_prog_make_${ac_make}_set=no;;
11533 esac
11534 rm -f conftest.make
11535 fi
11536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11539   SET_MAKE=
11540 else
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543   SET_MAKE="MAKE=${MAKE-make}"
11544 fi
11545
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11547 $as_echo_n "checking for GNU make... " >&6; }
11548 if ${_cv_gnu_make_command+:} false; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551   _cv_gnu_make_command='' ;
11552                 if test -n "$FORCE_NATIVE_MAKE" ; then
11553                    MAKES="make"
11554                 else
11555                    MAKES="make gmake gnumake"
11556                 fi
11557                 for a in "$MAKE" $MAKES ; do
11558                         if test -z "$a" ; then continue ; fi ;
11559                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11560                                 _cv_gnu_make_command=$a ;
11561                                 break;
11562                         fi
11563                 done ;
11564
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11567 $as_echo "$_cv_gnu_make_command" >&6; } ;
11568         if test  "x$_cv_gnu_make_command" != "x"  ; then
11569                 ifGNUmake='' ;
11570                 ifNotGNUmake='#' ;
11571         else
11572                 ifGNUmake='#' ;
11573                 ifNotGNUmake='' ;
11574                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11575 $as_echo "\"Not found\"" >&6; };
11576         fi
11577
11578
11579
11580 # Extract the first word of "ln", so it can be a program name with args.
11581 set dummy ln; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_path_LN+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   case $LN in
11588   [\\/]* | ?:[\\/]*)
11589   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11590   ;;
11591   *)
11592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595   IFS=$as_save_IFS
11596   test -z "$as_dir" && as_dir=.
11597     for ac_exec_ext in '' $ac_executable_extensions; do
11598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601     break 2
11602   fi
11603 done
11604   done
11605 IFS=$as_save_IFS
11606
11607   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11608   ;;
11609 esac
11610 fi
11611 LN=$ac_cv_path_LN
11612 if test -n "$LN"; then
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11614 $as_echo "$LN" >&6; }
11615 else
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11622 $as_echo_n "checking whether ln -s works... " >&6; }
11623 LN_S=$as_ln_s
11624 if test "$LN_S" = "ln -s"; then
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11627 else
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11629 $as_echo "no, using $LN_S" >&6; }
11630 fi
11631
11632 # Extract the first word of "mv", so it can be a program name with args.
11633 set dummy mv; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if ${ac_cv_path_MV+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   case $MV in
11640   [\\/]* | ?:[\\/]*)
11641   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11642   ;;
11643   *)
11644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11646 do
11647   IFS=$as_save_IFS
11648   test -z "$as_dir" && as_dir=.
11649     for ac_exec_ext in '' $ac_executable_extensions; do
11650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653     break 2
11654   fi
11655 done
11656   done
11657 IFS=$as_save_IFS
11658
11659   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11660   ;;
11661 esac
11662 fi
11663 MV=$ac_cv_path_MV
11664 if test -n "$MV"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11666 $as_echo "$MV" >&6; }
11667 else
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670 fi
11671
11672
11673 # Extract the first word of "cp", so it can be a program name with args.
11674 set dummy cp; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_CP+:} false; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   case $CP in
11681   [\\/]* | ?:[\\/]*)
11682   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11683   ;;
11684   *)
11685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699
11700   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11701   ;;
11702 esac
11703 fi
11704 CP=$ac_cv_path_CP
11705 if test -n "$CP"; then
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11707 $as_echo "$CP" >&6; }
11708 else
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713
11714 # Extract the first word of "rm", so it can be a program name with args.
11715 set dummy rm; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_path_RM+:} false; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721   case $RM in
11722   [\\/]* | ?:[\\/]*)
11723   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11724   ;;
11725   *)
11726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   test -z "$as_dir" && as_dir=.
11731     for ac_exec_ext in '' $ac_executable_extensions; do
11732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735     break 2
11736   fi
11737 done
11738   done
11739 IFS=$as_save_IFS
11740
11741   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11742   ;;
11743 esac
11744 fi
11745 RM=$ac_cv_path_RM
11746 if test -n "$RM"; then
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11748 $as_echo "$RM" >&6; }
11749 else
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 fi
11753
11754
11755 # Extract the first word of "chmod", so it can be a program name with args.
11756 set dummy chmod; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_path_CHMOD+:} false; then :
11760   $as_echo_n "(cached) " >&6
11761 else
11762   case $CHMOD in
11763   [\\/]* | ?:[\\/]*)
11764   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11765   ;;
11766   *)
11767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768 for as_dir in $PATH
11769 do
11770   IFS=$as_save_IFS
11771   test -z "$as_dir" && as_dir=.
11772     for ac_exec_ext in '' $ac_executable_extensions; do
11773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11774     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776     break 2
11777   fi
11778 done
11779   done
11780 IFS=$as_save_IFS
11781
11782   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11783   ;;
11784 esac
11785 fi
11786 CHMOD=$ac_cv_path_CHMOD
11787 if test -n "$CHMOD"; then
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11789 $as_echo "$CHMOD" >&6; }
11790 else
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11793 fi
11794
11795
11796 for ac_prog in gawk mawk nawk awk
11797 do
11798   # Extract the first word of "$ac_prog", so it can be a program name with args.
11799 set dummy $ac_prog; ac_word=$2
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11801 $as_echo_n "checking for $ac_word... " >&6; }
11802 if ${ac_cv_prog_AWK+:} false; then :
11803   $as_echo_n "(cached) " >&6
11804 else
11805   if test -n "$AWK"; then
11806   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11807 else
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11810 do
11811   IFS=$as_save_IFS
11812   test -z "$as_dir" && as_dir=.
11813     for ac_exec_ext in '' $ac_executable_extensions; do
11814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11815     ac_cv_prog_AWK="$ac_prog"
11816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11817     break 2
11818   fi
11819 done
11820   done
11821 IFS=$as_save_IFS
11822
11823 fi
11824 fi
11825 AWK=$ac_cv_prog_AWK
11826 if test -n "$AWK"; then
11827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11828 $as_echo "$AWK" >&6; }
11829 else
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11832 fi
11833
11834
11835   test -n "$AWK" && break
11836 done
11837
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11839 $as_echo_n "checking for egrep... " >&6; }
11840 if ${ac_cv_path_EGREP+:} false; then :
11841   $as_echo_n "(cached) " >&6
11842 else
11843   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11844    then ac_cv_path_EGREP="$GREP -E"
11845    else
11846      if test -z "$EGREP"; then
11847   ac_path_EGREP_found=false
11848   # Loop through the user's path and test for each of PROGNAME-LIST
11849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854     for ac_prog in egrep; do
11855     for ac_exec_ext in '' $ac_executable_extensions; do
11856       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11857       as_fn_executable_p "$ac_path_EGREP" || continue
11858 # Check for GNU ac_path_EGREP and select it if it is found.
11859   # Check for GNU $ac_path_EGREP
11860 case `"$ac_path_EGREP" --version 2>&1` in
11861 *GNU*)
11862   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11863 *)
11864   ac_count=0
11865   $as_echo_n 0123456789 >"conftest.in"
11866   while :
11867   do
11868     cat "conftest.in" "conftest.in" >"conftest.tmp"
11869     mv "conftest.tmp" "conftest.in"
11870     cp "conftest.in" "conftest.nl"
11871     $as_echo 'EGREP' >> "conftest.nl"
11872     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11873     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11874     as_fn_arith $ac_count + 1 && ac_count=$as_val
11875     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11876       # Best one so far, save it but keep looking for a better one
11877       ac_cv_path_EGREP="$ac_path_EGREP"
11878       ac_path_EGREP_max=$ac_count
11879     fi
11880     # 10*(2^10) chars as input seems more than enough
11881     test $ac_count -gt 10 && break
11882   done
11883   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11884 esac
11885
11886       $ac_path_EGREP_found && break 3
11887     done
11888   done
11889   done
11890 IFS=$as_save_IFS
11891   if test -z "$ac_cv_path_EGREP"; then
11892     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11893   fi
11894 else
11895   ac_cv_path_EGREP=$EGREP
11896 fi
11897
11898    fi
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11901 $as_echo "$ac_cv_path_EGREP" >&6; }
11902  EGREP="$ac_cv_path_EGREP"
11903
11904
11905 # Extract the first word of "sed", so it can be a program name with args.
11906 set dummy sed; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_SED+:} false; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   case $SED in
11913   [\\/]* | ?:[\\/]*)
11914   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11915   ;;
11916   *)
11917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11919 do
11920   IFS=$as_save_IFS
11921   test -z "$as_dir" && as_dir=.
11922     for ac_exec_ext in '' $ac_executable_extensions; do
11923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926     break 2
11927   fi
11928 done
11929   done
11930 IFS=$as_save_IFS
11931
11932   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11933   ;;
11934 esac
11935 fi
11936 SED=$ac_cv_path_SED
11937 if test -n "$SED"; then
11938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11939 $as_echo "$SED" >&6; }
11940 else
11941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 fi
11944
11945
11946 # Extract the first word of "perl", so it can be a program name with args.
11947 set dummy perl; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_PERL+:} false; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   case $PERL in
11954   [\\/]* | ?:[\\/]*)
11955   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11956   ;;
11957   *)
11958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961   IFS=$as_save_IFS
11962   test -z "$as_dir" && as_dir=.
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967     break 2
11968   fi
11969 done
11970   done
11971 IFS=$as_save_IFS
11972
11973   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11974   ;;
11975 esac
11976 fi
11977 PERL=$ac_cv_path_PERL
11978 if test -n "$PERL"; then
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11980 $as_echo "$PERL" >&6; }
11981 else
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 # Extract the first word of "ldconfig", so it can be a program name with args.
11988 set dummy ldconfig; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_path_LDCONFIG+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   case $LDCONFIG in
11995   [\\/]* | ?:[\\/]*)
11996   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11997   ;;
11998   *)
11999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     for ac_exec_ext in '' $ac_executable_extensions; do
12005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011   done
12012 IFS=$as_save_IFS
12013
12014   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12015   ;;
12016 esac
12017 fi
12018 LDCONFIG=$ac_cv_path_LDCONFIG
12019 if test -n "$LDCONFIG"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12021 $as_echo "$LDCONFIG" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026
12027
12028 if test -n "$ac_tool_prefix"; then
12029   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12030 set dummy ${ac_tool_prefix}ar; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if ${ac_cv_prog_AR+:} false; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   if test -n "$AR"; then
12037   ac_cv_prog_AR="$AR" # Let the user override the test.
12038 else
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042   IFS=$as_save_IFS
12043   test -z "$as_dir" && as_dir=.
12044     for ac_exec_ext in '' $ac_executable_extensions; do
12045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046     ac_cv_prog_AR="${ac_tool_prefix}ar"
12047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048     break 2
12049   fi
12050 done
12051   done
12052 IFS=$as_save_IFS
12053
12054 fi
12055 fi
12056 AR=$ac_cv_prog_AR
12057 if test -n "$AR"; then
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12059 $as_echo "$AR" >&6; }
12060 else
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12063 fi
12064
12065
12066 fi
12067 if test -z "$ac_cv_prog_AR"; then
12068   ac_ct_AR=$AR
12069   # Extract the first word of "ar", so it can be a program name with args.
12070 set dummy ar; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   if test -n "$ac_ct_AR"; then
12077   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12078 else
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12081 do
12082   IFS=$as_save_IFS
12083   test -z "$as_dir" && as_dir=.
12084     for ac_exec_ext in '' $ac_executable_extensions; do
12085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086     ac_cv_prog_ac_ct_AR="ar"
12087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088     break 2
12089   fi
12090 done
12091   done
12092 IFS=$as_save_IFS
12093
12094 fi
12095 fi
12096 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12097 if test -n "$ac_ct_AR"; then
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12099 $as_echo "$ac_ct_AR" >&6; }
12100 else
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12103 fi
12104
12105   if test "x$ac_ct_AR" = x; then
12106     AR="ar"
12107   else
12108     case $cross_compiling:$ac_tool_warned in
12109 yes:)
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12112 ac_tool_warned=yes ;;
12113 esac
12114     AR=$ac_ct_AR
12115   fi
12116 else
12117   AR="$ac_cv_prog_AR"
12118 fi
12119
12120 if test -n "$ac_tool_prefix"; then
12121   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_RANLIB+:} false; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   if test -n "$RANLIB"; then
12129   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134   IFS=$as_save_IFS
12135   test -z "$as_dir" && as_dir=.
12136     for ac_exec_ext in '' $ac_executable_extensions; do
12137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140     break 2
12141   fi
12142 done
12143   done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 RANLIB=$ac_cv_prog_RANLIB
12149 if test -n "$RANLIB"; then
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12151 $as_echo "$RANLIB" >&6; }
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158 fi
12159 if test -z "$ac_cv_prog_RANLIB"; then
12160   ac_ct_RANLIB=$RANLIB
12161   # Extract the first word of "ranlib", so it can be a program name with args.
12162 set dummy ranlib; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12166   $as_echo_n "(cached) " >&6
12167 else
12168   if test -n "$ac_ct_RANLIB"; then
12169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12170 else
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174   IFS=$as_save_IFS
12175   test -z "$as_dir" && as_dir=.
12176     for ac_exec_ext in '' $ac_executable_extensions; do
12177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178     ac_cv_prog_ac_ct_RANLIB="ranlib"
12179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180     break 2
12181   fi
12182 done
12183   done
12184 IFS=$as_save_IFS
12185
12186 fi
12187 fi
12188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12189 if test -n "$ac_ct_RANLIB"; then
12190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12191 $as_echo "$ac_ct_RANLIB" >&6; }
12192 else
12193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195 fi
12196
12197   if test "x$ac_ct_RANLIB" = x; then
12198     RANLIB=":"
12199   else
12200     case $cross_compiling:$ac_tool_warned in
12201 yes:)
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12204 ac_tool_warned=yes ;;
12205 esac
12206     RANLIB=$ac_ct_RANLIB
12207   fi
12208 else
12209   RANLIB="$ac_cv_prog_RANLIB"
12210 fi
12211
12212 if test -n "$ac_tool_prefix"; then
12213   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12214 set dummy ${ac_tool_prefix}strip; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_prog_STRIP+:} false; then :
12218   $as_echo_n "(cached) " >&6
12219 else
12220   if test -n "$STRIP"; then
12221   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12222 else
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12225 do
12226   IFS=$as_save_IFS
12227   test -z "$as_dir" && as_dir=.
12228     for ac_exec_ext in '' $ac_executable_extensions; do
12229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232     break 2
12233   fi
12234 done
12235   done
12236 IFS=$as_save_IFS
12237
12238 fi
12239 fi
12240 STRIP=$ac_cv_prog_STRIP
12241 if test -n "$STRIP"; then
12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12243 $as_echo "$STRIP" >&6; }
12244 else
12245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12247 fi
12248
12249
12250 fi
12251 if test -z "$ac_cv_prog_STRIP"; then
12252   ac_ct_STRIP=$STRIP
12253   # Extract the first word of "strip", so it can be a program name with args.
12254 set dummy strip; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12258   $as_echo_n "(cached) " >&6
12259 else
12260   if test -n "$ac_ct_STRIP"; then
12261   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12262 else
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12265 do
12266   IFS=$as_save_IFS
12267   test -z "$as_dir" && as_dir=.
12268     for ac_exec_ext in '' $ac_executable_extensions; do
12269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270     ac_cv_prog_ac_ct_STRIP="strip"
12271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272     break 2
12273   fi
12274 done
12275   done
12276 IFS=$as_save_IFS
12277
12278 fi
12279 fi
12280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12281 if test -n "$ac_ct_STRIP"; then
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12283 $as_echo "$ac_ct_STRIP" >&6; }
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289   if test "x$ac_ct_STRIP" = x; then
12290     STRIP=":"
12291   else
12292     case $cross_compiling:$ac_tool_warned in
12293 yes:)
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12296 ac_tool_warned=yes ;;
12297 esac
12298     STRIP=$ac_ct_STRIP
12299   fi
12300 else
12301   STRIP="$ac_cv_prog_STRIP"
12302 fi
12303
12304 # Extract the first word of "makeinfo", so it can be a program name with args.
12305 set dummy makeinfo; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_prog_MAKEINFO+:} false; then :
12309   $as_echo_n "(cached) " >&6
12310 else
12311   if test -n "$MAKEINFO"; then
12312   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12313 else
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $PATH
12316 do
12317   IFS=$as_save_IFS
12318   test -z "$as_dir" && as_dir=.
12319     for ac_exec_ext in '' $ac_executable_extensions; do
12320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321     ac_cv_prog_MAKEINFO="makeinfo"
12322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323     break 2
12324   fi
12325 done
12326   done
12327 IFS=$as_save_IFS
12328
12329 fi
12330 fi
12331 MAKEINFO=$ac_cv_prog_MAKEINFO
12332 if test -n "$MAKEINFO"; then
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12334 $as_echo "$MAKEINFO" >&6; }
12335 else
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339
12340
12341 if test "_$MAKEINFO" = "_"; then
12342     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12343 else
12344     case "$MAKEINFO" in
12345       */missing.*)
12346         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12347 *** Makeinfo is missing. Info documentation will not be built." >&5
12348 $as_echo "$as_me: WARNING:
12349 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12350         ;;
12351       *)
12352         ;;
12353     esac
12354 fi
12355
12356
12357 # See if we need a separate native compiler.
12358 if test $cross_compiling = no; then
12359   BUILD_CC="$CC"
12360
12361 else
12362   for ac_prog in gcc cc
12363 do
12364   # Extract the first word of "$ac_prog", so it can be a program name with args.
12365 set dummy $ac_prog; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_BUILD_CC+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   if test -n "$BUILD_CC"; then
12372   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12373 else
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377   IFS=$as_save_IFS
12378   test -z "$as_dir" && as_dir=.
12379     for ac_exec_ext in '' $ac_executable_extensions; do
12380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381     ac_cv_prog_BUILD_CC="$ac_prog"
12382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383     break 2
12384   fi
12385 done
12386   done
12387 IFS=$as_save_IFS
12388
12389 fi
12390 fi
12391 BUILD_CC=$ac_cv_prog_BUILD_CC
12392 if test -n "$BUILD_CC"; then
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12394 $as_echo "$BUILD_CC" >&6; }
12395 else
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399
12400
12401   test -n "$BUILD_CC" && break
12402 done
12403
12404 fi
12405 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
12406 do :
12407   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12408 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12410   cat >>confdefs.h <<_ACEOF
12411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12412 _ACEOF
12413
12414 fi
12415
12416 done
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12419 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12420 DD=
12421 for i in dd gdd ; do
12422         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12423                 DD=$i
12424                 break
12425         fi
12426 done
12427 if test -n "$DD" ; then
12428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12429 $as_echo "$DD" >&6; }
12430 else
12431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12432 $as_echo "not found, using dd" >&6; }
12433         DD=dd
12434         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12435 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12436 fi
12437
12438
12439 for ac_header in net/if.h
12440 do :
12441   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12442 #if HAVE_SYS_TYPES_H
12443 #include <sys/types.h>
12444 #endif
12445 #if HAVE_SYS_SOCKET
12446 #include <sys/socket.h>
12447 #endif
12448
12449 "
12450 if test "x$ac_cv_header_net_if_h" = xyes; then :
12451   cat >>confdefs.h <<_ACEOF
12452 #define HAVE_NET_IF_H 1
12453 _ACEOF
12454
12455 fi
12456
12457 done
12458
12459 for ac_func in vprintf
12460 do :
12461   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12462 if test "x$ac_cv_func_vprintf" = xyes; then :
12463   cat >>confdefs.h <<_ACEOF
12464 #define HAVE_VPRINTF 1
12465 _ACEOF
12466
12467 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12468 if test "x$ac_cv_func__doprnt" = xyes; then :
12469
12470 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12471
12472 fi
12473
12474 fi
12475 done
12476
12477
12478 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12479 "
12480 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12481
12482 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12483
12484 fi
12485
12486 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12487 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12488
12489 cat >>confdefs.h <<_ACEOF
12490 #define HAVE_STRUCT_STAT_ST_ATIM 1
12491 _ACEOF
12492
12493
12494 fi
12495
12496 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12497 "
12498 if test "x$ac_cv_type_ssize_t" = xyes; then :
12499
12500 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12501
12502 fi
12503
12504 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12505 "
12506 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12507
12508 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12509
12510 fi
12511
12512 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12513                  #define _LARGEFILE64_SOURCE
12514                  #include <unistd.h>
12515 "
12516 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12517
12518 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12519
12520 fi
12521
12522 # The cast to long int works around a bug in the HP C Compiler
12523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525 # This bug is HP SR number 8606223364.
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12527 $as_echo_n "checking size of short... " >&6; }
12528 if ${ac_cv_sizeof_short+:} false; then :
12529   $as_echo_n "(cached) " >&6
12530 else
12531   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12532
12533 else
12534   if test "$ac_cv_type_short" = yes; then
12535      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12537 as_fn_error 77 "cannot compute sizeof (short)
12538 See \`config.log' for more details" "$LINENO" 5; }
12539    else
12540      ac_cv_sizeof_short=0
12541    fi
12542 fi
12543
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12546 $as_echo "$ac_cv_sizeof_short" >&6; }
12547
12548
12549
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF_SHORT $ac_cv_sizeof_short
12552 _ACEOF
12553
12554
12555 # The cast to long int works around a bug in the HP C Compiler
12556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12558 # This bug is HP SR number 8606223364.
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12560 $as_echo_n "checking size of int... " >&6; }
12561 if ${ac_cv_sizeof_int+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12565
12566 else
12567   if test "$ac_cv_type_int" = yes; then
12568      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12570 as_fn_error 77 "cannot compute sizeof (int)
12571 See \`config.log' for more details" "$LINENO" 5; }
12572    else
12573      ac_cv_sizeof_int=0
12574    fi
12575 fi
12576
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12579 $as_echo "$ac_cv_sizeof_int" >&6; }
12580
12581
12582
12583 cat >>confdefs.h <<_ACEOF
12584 #define SIZEOF_INT $ac_cv_sizeof_int
12585 _ACEOF
12586
12587
12588 # The cast to long int works around a bug in the HP C Compiler
12589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12591 # This bug is HP SR number 8606223364.
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12593 $as_echo_n "checking size of long... " >&6; }
12594 if ${ac_cv_sizeof_long+:} false; then :
12595   $as_echo_n "(cached) " >&6
12596 else
12597   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12598
12599 else
12600   if test "$ac_cv_type_long" = yes; then
12601      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12603 as_fn_error 77 "cannot compute sizeof (long)
12604 See \`config.log' for more details" "$LINENO" 5; }
12605    else
12606      ac_cv_sizeof_long=0
12607    fi
12608 fi
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12612 $as_echo "$ac_cv_sizeof_long" >&6; }
12613
12614
12615
12616 cat >>confdefs.h <<_ACEOF
12617 #define SIZEOF_LONG $ac_cv_sizeof_long
12618 _ACEOF
12619
12620
12621 # The cast to long int works around a bug in the HP C Compiler
12622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12624 # This bug is HP SR number 8606223364.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12626 $as_echo_n "checking size of long long... " >&6; }
12627 if ${ac_cv_sizeof_long_long+:} false; then :
12628   $as_echo_n "(cached) " >&6
12629 else
12630   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12631
12632 else
12633   if test "$ac_cv_type_long_long" = yes; then
12634      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12636 as_fn_error 77 "cannot compute sizeof (long long)
12637 See \`config.log' for more details" "$LINENO" 5; }
12638    else
12639      ac_cv_sizeof_long_long=0
12640    fi
12641 fi
12642
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12646
12647
12648
12649 cat >>confdefs.h <<_ACEOF
12650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12651 _ACEOF
12652
12653
12654 # The cast to long int works around a bug in the HP C Compiler
12655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12657 # This bug is HP SR number 8606223364.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12659 $as_echo_n "checking size of off_t... " >&6; }
12660 if ${ac_cv_sizeof_off_t+:} false; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12664
12665 else
12666   if test "$ac_cv_type_off_t" = yes; then
12667      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12669 as_fn_error 77 "cannot compute sizeof (off_t)
12670 See \`config.log' for more details" "$LINENO" 5; }
12671    else
12672      ac_cv_sizeof_off_t=0
12673    fi
12674 fi
12675
12676 fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12678 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12679
12680
12681
12682 cat >>confdefs.h <<_ACEOF
12683 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12684 _ACEOF
12685
12686
12687 # The cast to long int works around a bug in the HP C Compiler
12688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12690 # This bug is HP SR number 8606223364.
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12692 $as_echo_n "checking size of time_t... " >&6; }
12693 if ${ac_cv_sizeof_time_t+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12697
12698 else
12699   if test "$ac_cv_type_time_t" = yes; then
12700      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12702 as_fn_error 77 "cannot compute sizeof (time_t)
12703 See \`config.log' for more details" "$LINENO" 5; }
12704    else
12705      ac_cv_sizeof_time_t=0
12706    fi
12707 fi
12708
12709 fi
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12711 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12712
12713
12714
12715 cat >>confdefs.h <<_ACEOF
12716 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12717 _ACEOF
12718
12719
12720 SIZEOF_SHORT=$ac_cv_sizeof_short
12721 SIZEOF_INT=$ac_cv_sizeof_int
12722 SIZEOF_LONG=$ac_cv_sizeof_long
12723 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12724 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12725 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12726
12727
12728
12729
12730
12731
12732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12733 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12734 if ${ac_cv_c_bigendian+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   ac_cv_c_bigendian=unknown
12738     # See if we're dealing with a universal compiler.
12739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741 #ifndef __APPLE_CC__
12742                not a universal capable compiler
12743              #endif
12744              typedef int dummy;
12745
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748
12749         # Check for potential -arch flags.  It is not universal unless
12750         # there are at least two -arch flags with different values.
12751         ac_arch=
12752         ac_prev=
12753         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12754          if test -n "$ac_prev"; then
12755            case $ac_word in
12756              i?86 | x86_64 | ppc | ppc64)
12757                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12758                  ac_arch=$ac_word
12759                else
12760                  ac_cv_c_bigendian=universal
12761                  break
12762                fi
12763                ;;
12764            esac
12765            ac_prev=
12766          elif test "x$ac_word" = "x-arch"; then
12767            ac_prev=arch
12768          fi
12769        done
12770 fi
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772     if test $ac_cv_c_bigendian = unknown; then
12773       # See if sys/param.h defines the BYTE_ORDER macro.
12774       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h.  */
12776 #include <sys/types.h>
12777              #include <sys/param.h>
12778
12779 int
12780 main ()
12781 {
12782 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12783                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12784                      && LITTLE_ENDIAN)
12785               bogus endian macros
12786              #endif
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 if ac_fn_c_try_compile "$LINENO"; then :
12793   # It does; now see whether it defined to BIG_ENDIAN or not.
12794          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h.  */
12796 #include <sys/types.h>
12797                 #include <sys/param.h>
12798
12799 int
12800 main ()
12801 {
12802 #if BYTE_ORDER != BIG_ENDIAN
12803                  not big endian
12804                 #endif
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811   ac_cv_c_bigendian=yes
12812 else
12813   ac_cv_c_bigendian=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818     fi
12819     if test $ac_cv_c_bigendian = unknown; then
12820       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12823 #include <limits.h>
12824
12825 int
12826 main ()
12827 {
12828 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12829               bogus endian macros
12830              #endif
12831
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 if ac_fn_c_try_compile "$LINENO"; then :
12837   # It does; now see whether it defined to _BIG_ENDIAN or not.
12838          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h.  */
12840 #include <limits.h>
12841
12842 int
12843 main ()
12844 {
12845 #ifndef _BIG_ENDIAN
12846                  not big endian
12847                 #endif
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854   ac_cv_c_bigendian=yes
12855 else
12856   ac_cv_c_bigendian=no
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861     fi
12862     if test $ac_cv_c_bigendian = unknown; then
12863       # Compile a test program.
12864       if test "$cross_compiling" = yes; then :
12865   # Try to guess by grepping values from an object file.
12866          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h.  */
12868 short int ascii_mm[] =
12869                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12870                 short int ascii_ii[] =
12871                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12872                 int use_ascii (int i) {
12873                   return ascii_mm[i] + ascii_ii[i];
12874                 }
12875                 short int ebcdic_ii[] =
12876                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12877                 short int ebcdic_mm[] =
12878                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12879                 int use_ebcdic (int i) {
12880                   return ebcdic_mm[i] + ebcdic_ii[i];
12881                 }
12882                 extern int foo;
12883
12884 int
12885 main ()
12886 {
12887 return use_ascii (foo) == use_ebcdic (foo);
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 if ac_fn_c_try_compile "$LINENO"; then :
12893   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12894               ac_cv_c_bigendian=yes
12895             fi
12896             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12897               if test "$ac_cv_c_bigendian" = unknown; then
12898                 ac_cv_c_bigendian=no
12899               else
12900                 # finding both strings is unlikely to happen, but who knows?
12901                 ac_cv_c_bigendian=unknown
12902               fi
12903             fi
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 else
12907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h.  */
12909 $ac_includes_default
12910 int
12911 main ()
12912 {
12913
12914              /* Are we little or big endian?  From Harbison&Steele.  */
12915              union
12916              {
12917                long int l;
12918                char c[sizeof (long int)];
12919              } u;
12920              u.l = 1;
12921              return u.c[sizeof (long int) - 1] == 1;
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_run "$LINENO"; then :
12928   ac_cv_c_bigendian=no
12929 else
12930   ac_cv_c_bigendian=yes
12931 fi
12932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12933   conftest.$ac_objext conftest.beam conftest.$ac_ext
12934 fi
12935
12936     fi
12937 fi
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12939 $as_echo "$ac_cv_c_bigendian" >&6; }
12940  case $ac_cv_c_bigendian in #(
12941    yes)
12942      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12943 ;; #(
12944    no)
12945       ;; #(
12946    universal)
12947
12948 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12949
12950      ;; #(
12951    *)
12952      as_fn_error $? "unknown endianness
12953  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12954  esac
12955
12956 if test $cross_compiling = no; then
12957   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12958 else
12959   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12960 fi
12961 ASM_TYPES_HEADER=./asm_types.h
12962
12963 echo "/* These defines are needed for the public ext2fs.h header file */" \
12964      > public_config.h
12965 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12966   uniq tmp_config.$$ >> public_config.h
12967 else
12968   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12969 fi
12970 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12971   uniq tmp_config.$$ >> public_config.h
12972 else
12973   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12974 fi
12975 rm -f tmp_config.$$
12976 PUBLIC_CONFIG_HEADER=./public_config.h
12977
12978 for ac_header in inttypes.h
12979 do :
12980   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12981 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12982   cat >>confdefs.h <<_ACEOF
12983 #define HAVE_INTTYPES_H 1
12984 _ACEOF
12985
12986 fi
12987
12988 done
12989
12990 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12991 if test "x$ac_cv_type_intptr_t" = xyes; then :
12992
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_INTPTR_T 1
12995 _ACEOF
12996
12997
12998 fi
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13001 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13002 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13003   $as_echo_n "(cached) " >&6
13004 else
13005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h.  */
13007 #include <sys/stat.h>
13008 int
13009 main ()
13010 {
13011 struct stat stat; stat.st_flags = 0;
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_compile "$LINENO"; then :
13017   e2fsprogs_cv_struct_st_flags=yes
13018 else
13019   e2fsprogs_cv_struct_st_flags=no
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 fi
13023
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13025 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13026 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13028 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13029   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h.  */
13034 #include <sys/stat.h>
13035 int
13036 main ()
13037 {
13038 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"; then :
13044   e2fsprogs_cv_struct_st_flags_immut=yes
13045 else
13046   e2fsprogs_cv_struct_st_flags_immut=no
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 fi
13050
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13052 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13053   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13054
13055 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13056
13057   fi
13058 fi
13059 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13060          #include <sys/socket.h>
13061 "
13062 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_SA_LEN 1
13066 _ACEOF
13067
13068 fi
13069
13070 if test -n "$BLKID_CMT"; then
13071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13072 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13073 if ${ac_cv_search_blkid_probe_all+:} false; then :
13074   $as_echo_n "(cached) " >&6
13075 else
13076   ac_func_search_save_LIBS=$LIBS
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h.  */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081    Use char because int might match the return type of a GCC
13082    builtin and then its argument prototype would still apply.  */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char blkid_probe_all ();
13087 int
13088 main ()
13089 {
13090 return blkid_probe_all ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 for ac_lib in '' blkid; do
13096   if test -z "$ac_lib"; then
13097     ac_res="none required"
13098   else
13099     ac_res=-l$ac_lib
13100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13101   fi
13102   if ac_fn_c_try_link "$LINENO"; then :
13103   ac_cv_search_blkid_probe_all=$ac_res
13104 fi
13105 rm -f core conftest.err conftest.$ac_objext \
13106     conftest$ac_exeext
13107   if ${ac_cv_search_blkid_probe_all+:} false; then :
13108   break
13109 fi
13110 done
13111 if ${ac_cv_search_blkid_probe_all+:} false; then :
13112
13113 else
13114   ac_cv_search_blkid_probe_all=no
13115 fi
13116 rm conftest.$ac_ext
13117 LIBS=$ac_func_search_save_LIBS
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13120 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13121 ac_res=$ac_cv_search_blkid_probe_all
13122 if test "$ac_res" != no; then :
13123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13124
13125 fi
13126
13127 fi
13128 if test -n "$DLOPEN_LIB" ; then
13129    ac_cv_func_dlopen=yes
13130 fi
13131 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
13132 do :
13133   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13136   cat >>confdefs.h <<_ACEOF
13137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 _ACEOF
13139
13140 fi
13141 done
13142
13143 SOCKET_LIB=''
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13145 $as_echo_n "checking for socket in -lsocket... " >&6; }
13146 if ${ac_cv_lib_socket_socket+:} false; then :
13147   $as_echo_n "(cached) " >&6
13148 else
13149   ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-lsocket  $LIBS"
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h.  */
13153
13154 /* Override any GCC internal prototype to avoid an error.
13155    Use char because int might match the return type of a GCC
13156    builtin and then its argument prototype would still apply.  */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 char socket ();
13161 int
13162 main ()
13163 {
13164 return socket ();
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"; then :
13170   ac_cv_lib_socket_socket=yes
13171 else
13172   ac_cv_lib_socket_socket=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext \
13175     conftest$ac_exeext conftest.$ac_ext
13176 LIBS=$ac_check_lib_save_LIBS
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13179 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13180 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13181   SOCKET_LIB=-lsocket
13182 fi
13183
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13186 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13187 if ${ac_cv_lib_magic_magic_file+:} false; then :
13188   $as_echo_n "(cached) " >&6
13189 else
13190   ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lmagic  $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h.  */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196    Use char because int might match the return type of a GCC
13197    builtin and then its argument prototype would still apply.  */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char magic_file ();
13202 int
13203 main ()
13204 {
13205 return magic_file ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"; then :
13211   ac_cv_lib_magic_magic_file=yes
13212 else
13213   ac_cv_lib_magic_magic_file=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext \
13216     conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13220 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13221 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13222   MAGIC_LIB=-lmagic
13223 for ac_header in magic.h
13224 do :
13225   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13226 if test "x$ac_cv_header_magic_h" = xyes; then :
13227   cat >>confdefs.h <<_ACEOF
13228 #define HAVE_MAGIC_H 1
13229 _ACEOF
13230
13231 fi
13232
13233 done
13234
13235 fi
13236
13237 if test "$ac_cv_func_dlopen" = yes ; then
13238    MAGIC_LIB=$DLOPEN_LIB
13239 fi
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13242 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13243 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   ac_check_lib_save_LIBS=$LIBS
13247 LIBS="-lrt  $LIBS"
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h.  */
13250
13251 /* Override any GCC internal prototype to avoid an error.
13252    Use char because int might match the return type of a GCC
13253    builtin and then its argument prototype would still apply.  */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 char clock_gettime ();
13258 int
13259 main ()
13260 {
13261 return clock_gettime ();
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_link "$LINENO"; then :
13267   ac_cv_lib_rt_clock_gettime=yes
13268 else
13269   ac_cv_lib_rt_clock_gettime=no
13270 fi
13271 rm -f core conftest.err conftest.$ac_objext \
13272     conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13276 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13277 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13278   CLOCK_GETTIME_LIB=-lrt
13279 fi
13280
13281
13282 FUSE_CMT=
13283 FUSE_LIB=
13284 # Check whether --enable-fuse2fs was given.
13285 if test "${enable_fuse2fs+set}" = set; then :
13286   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13287 then
13288         FUSE_CMT="#"
13289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13290 $as_echo "Disabling fuse2fs" >&6; }
13291 else
13292         for ac_header in pthread.h fuse.h
13293 do :
13294   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13296 #define FUSE_USE_VERSION 29
13297 "
13298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13299   cat >>confdefs.h <<_ACEOF
13300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13301 _ACEOF
13302
13303 else
13304   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13306 as_fn_error $? "Cannot find fuse2fs headers.
13307 See \`config.log' for more details" "$LINENO" 5; }
13308 fi
13309
13310 done
13311
13312
13313         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h.  */
13315 #define FUSE_USE_VERSION 29
13316 #ifdef __linux__
13317 #include <linux/fs.h>
13318 #include <linux/falloc.h>
13319 #include <linux/xattr.h>
13320 #endif
13321
13322 int
13323 main ()
13324 {
13325
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_cpp "$LINENO"; then :
13331
13332 else
13333   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13335 as_fn_error $? "Cannot find fuse2fs Linux headers.
13336 See \`config.log' for more details" "$LINENO" 5; }
13337 fi
13338 rm -f conftest.err conftest.i conftest.$ac_ext
13339
13340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13341 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13342 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-losxfuse  $LIBS"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h.  */
13349
13350 /* Override any GCC internal prototype to avoid an error.
13351    Use char because int might match the return type of a GCC
13352    builtin and then its argument prototype would still apply.  */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char fuse_main ();
13357 int
13358 main ()
13359 {
13360 return fuse_main ();
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366   ac_cv_lib_osxfuse_fuse_main=yes
13367 else
13368   ac_cv_lib_osxfuse_fuse_main=no
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext \
13371     conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13373 fi
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13375 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13376 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13377   FUSE_LIB=-losxfuse
13378 else
13379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13380 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13381 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13382   $as_echo_n "(cached) " >&6
13383 else
13384   ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-lfuse  $LIBS"
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h.  */
13388
13389 /* Override any GCC internal prototype to avoid an error.
13390    Use char because int might match the return type of a GCC
13391    builtin and then its argument prototype would still apply.  */
13392 #ifdef __cplusplus
13393 extern "C"
13394 #endif
13395 char fuse_main ();
13396 int
13397 main ()
13398 {
13399 return fuse_main ();
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 if ac_fn_c_try_link "$LINENO"; then :
13405   ac_cv_lib_fuse_fuse_main=yes
13406 else
13407   ac_cv_lib_fuse_fuse_main=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext \
13410     conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13412 fi
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13414 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13415 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13416   FUSE_LIB=-lfuse
13417 else
13418   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13420 as_fn_error $? "Cannot find fuse library.
13421 See \`config.log' for more details" "$LINENO" 5; }
13422 fi
13423
13424 fi
13425
13426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13427 $as_echo "Enabling fuse2fs" >&6; }
13428 fi
13429
13430 else
13431   for ac_header in pthread.h fuse.h
13432 do :
13433   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13435 #define FUSE_USE_VERSION 29
13436 #ifdef __linux__
13437 # include <linux/fs.h>
13438 # include <linux/falloc.h>
13439 # include <linux/xattr.h>
13440 #endif
13441 "
13442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13443   cat >>confdefs.h <<_ACEOF
13444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13445 _ACEOF
13446
13447 else
13448   FUSE_CMT="#"
13449 fi
13450
13451 done
13452
13453 if test -z "$FUSE_CMT"
13454 then
13455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13456 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13457 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-losxfuse  $LIBS"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h.  */
13464
13465 /* Override any GCC internal prototype to avoid an error.
13466    Use char because int might match the return type of a GCC
13467    builtin and then its argument prototype would still apply.  */
13468 #ifdef __cplusplus
13469 extern "C"
13470 #endif
13471 char fuse_main ();
13472 int
13473 main ()
13474 {
13475 return fuse_main ();
13476   ;
13477   return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"; then :
13481   ac_cv_lib_osxfuse_fuse_main=yes
13482 else
13483   ac_cv_lib_osxfuse_fuse_main=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext \
13486     conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13490 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13491 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13492   FUSE_LIB=-losxfuse
13493 else
13494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13495 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13496 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13497   $as_echo_n "(cached) " >&6
13498 else
13499   ac_check_lib_save_LIBS=$LIBS
13500 LIBS="-lfuse  $LIBS"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h.  */
13503
13504 /* Override any GCC internal prototype to avoid an error.
13505    Use char because int might match the return type of a GCC
13506    builtin and then its argument prototype would still apply.  */
13507 #ifdef __cplusplus
13508 extern "C"
13509 #endif
13510 char fuse_main ();
13511 int
13512 main ()
13513 {
13514 return fuse_main ();
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_link "$LINENO"; then :
13520   ac_cv_lib_fuse_fuse_main=yes
13521 else
13522   ac_cv_lib_fuse_fuse_main=no
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext \
13525     conftest$ac_exeext conftest.$ac_ext
13526 LIBS=$ac_check_lib_save_LIBS
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13529 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13530 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13531   FUSE_LIB=-lfuse
13532 else
13533   FUSE_CMT="#"
13534 fi
13535
13536 fi
13537
13538 fi
13539 if test -z "$FUSE_CMT"
13540 then
13541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13542 $as_echo "Enabling fuse2fs by default." >&6; }
13543 fi
13544
13545 fi
13546
13547
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13550 $as_echo_n "checking for optreset... " >&6; }
13551 if ${ac_cv_have_optreset+:} false; then :
13552   $as_echo_n "(cached) " >&6
13553 else
13554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h.  */
13556 #include <unistd.h>
13557
13558 _ACEOF
13559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13560   $EGREP "optreset" >/dev/null 2>&1; then :
13561   ac_cv_have_optreset=yes
13562 else
13563   ac_cv_have_optreset=no
13564 fi
13565 rm -f conftest*
13566
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13569 $as_echo "$ac_cv_have_optreset" >&6; }
13570 if test $ac_cv_have_optreset = yes; then
13571
13572 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13573
13574 fi
13575
13576 SEM_INIT_LIB=''
13577 echo GL_THREADS_API: ${gl_threads_api}
13578 if test "${gl_threads_api}" != none
13579 then
13580   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13581 if test "x$ac_cv_func_sem_init" = xyes; then :
13582
13583 else
13584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13585 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13586 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-lpthread  $LIBS"
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h.  */
13593
13594 /* Override any GCC internal prototype to avoid an error.
13595    Use char because int might match the return type of a GCC
13596    builtin and then its argument prototype would still apply.  */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char sem_init ();
13601 int
13602 main ()
13603 {
13604 return sem_init ();
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 if ac_fn_c_try_link "$LINENO"; then :
13610   ac_cv_lib_pthread_sem_init=yes
13611 else
13612   ac_cv_lib_pthread_sem_init=no
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext \
13615     conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13619 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13620 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13621   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13622
13623         SEM_INIT_LIB=-lpthread
13624 else
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13626 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13627 if ${ac_cv_lib_rt_sem_init+:} false; then :
13628   $as_echo_n "(cached) " >&6
13629 else
13630   ac_check_lib_save_LIBS=$LIBS
13631 LIBS="-lrt  $LIBS"
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h.  */
13634
13635 /* Override any GCC internal prototype to avoid an error.
13636    Use char because int might match the return type of a GCC
13637    builtin and then its argument prototype would still apply.  */
13638 #ifdef __cplusplus
13639 extern "C"
13640 #endif
13641 char sem_init ();
13642 int
13643 main ()
13644 {
13645 return sem_init ();
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13651   ac_cv_lib_rt_sem_init=yes
13652 else
13653   ac_cv_lib_rt_sem_init=no
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext \
13656     conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13660 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13661 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13662   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13663
13664         SEM_INIT_LIB=-lrt
13665 else
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13667 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13668 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lposix4  $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h.  */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677    Use char because int might match the return type of a GCC
13678    builtin and then its argument prototype would still apply.  */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char sem_init ();
13683 int
13684 main ()
13685 {
13686 return sem_init ();
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692   ac_cv_lib_posix4_sem_init=yes
13693 else
13694   ac_cv_lib_posix4_sem_init=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext \
13697     conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13701 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13702 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13703   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13704
13705         SEM_INIT_LIB=-lposix4
13706 fi
13707
13708 fi
13709
13710 fi
13711
13712 fi
13713 fi
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13716 $as_echo_n "checking for unified diff option... " >&6; }
13717 if diff -u $0 $0 > /dev/null 2>&1 ; then
13718    UNI_DIFF_OPTS=-u
13719 else
13720    UNI_DIFF_OPTS=-c
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13723 $as_echo "$UNI_DIFF_OPTS" >&6; }
13724
13725 case "$host_os" in
13726 linux*)
13727
13728 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13729
13730         ;;
13731 esac
13732 LINUX_CMT="#"
13733 CYGWIN_CMT="#"
13734 UNIX_CMT=
13735 case "$host_os" in
13736 linux*)
13737         LINUX_CMT=
13738         ;;
13739 cygwin)
13740         CYGWIN_CMT=
13741         UNIX_CMT="#"
13742         ;;
13743 esac
13744
13745
13746
13747 E2SCRUB_CMT="$LINUX_CMT"
13748
13749 case "$host_os" in
13750 linux* | gnu* | k*bsd*-gnu)
13751         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13752                 root_prefix="";
13753                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13754 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13755         fi
13756         ;;
13757 esac
13758 case "$host_os" in
13759 linux* | gnu* | k*bsd*-gnu)
13760         if test "$prefix" = NONE ; then
13761                 prefix="/usr";
13762                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13763 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13764                 if test "$mandir" = '${prefix}/man' ; then
13765                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13766 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13767                         mandir=/usr/share/man
13768                 fi
13769         fi
13770 ;;
13771 esac
13772 if test "$root_prefix" = NONE ; then
13773         if test "$prefix" = NONE ; then
13774                 root_prefix="$ac_default_prefix"
13775         else
13776                 root_prefix="$prefix"
13777         fi
13778         root_bindir=$bindir
13779         root_sbindir=$sbindir
13780         root_libdir=$libdir
13781         root_sysconfdir=$sysconfdir
13782 else
13783         root_bindir='${root_prefix}/bin'
13784         root_sbindir='${root_prefix}/sbin'
13785         root_libdir='${root_prefix}/lib'
13786         root_sysconfdir='${root_prefix}/etc'
13787 fi
13788 if test "$bindir" != '${exec_prefix}/bin'; then
13789     root_bindir=$bindir
13790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13791 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13792 fi
13793 if test "$sbindir" != '${exec_prefix}/sbin'; then
13794     root_sbindir=$sbindir
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13796 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13797 fi
13798 if test "$libdir" != '${exec_prefix}/lib'; then
13799     root_libdir=$libdir
13800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13801 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13802 fi
13803 if test "$sysconfdir" != '${prefix}/etc'; then
13804     root_sysconfdir=$sysconfdir
13805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13806 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13807 fi
13808
13809
13810
13811
13812
13813
13814 # Check whether --with-multiarch was given.
13815 if test "${with_multiarch+set}" = set; then :
13816   withval=$with_multiarch; if test "$withval" = "lib64"; then
13817     libdir=/usr/lib64
13818     root_libdir=/lib64
13819 else
13820     libdir=$libdir/$withval
13821     root_libdir=$root_libdir/$withval
13822 fi
13823
13824 fi
13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13827 $as_echo_n "checking whether we can link with -static... " >&6; }
13828 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13829   $as_echo_n "(cached) " >&6
13830 else
13831   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h.  */
13834 #include <stdio.h>
13835 int
13836 main ()
13837 {
13838 fflush(stdout);
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 if ac_fn_c_try_link "$LINENO"; then :
13844   ac_cv_e2fsprogs_use_static=yes
13845 else
13846   ac_cv_e2fsprogs_use_static=no
13847 fi
13848 rm -f core conftest.err conftest.$ac_objext \
13849     conftest$ac_exeext conftest.$ac_ext
13850 LDFLAGS=$SAVE_LDFLAGS
13851 fi
13852
13853 case "$host_os" in
13854 solaris2.*)
13855         ac_cv_e2fsprogs_use_static=no
13856 ;;
13857 esac
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13859 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13860 if test $ac_cv_e2fsprogs_use_static = yes; then
13861         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13862 fi
13863
13864 case "$host_os" in
13865 darwin*)
13866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13867 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13868
13869 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13870
13871         ;;
13872 esac
13873 if test "$cross_compiling" = yes ; then
13874   DO_TEST_SUITE=
13875 else
13876   DO_TEST_SUITE=check
13877 fi
13878
13879 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13880 if test -n "$CPPFLAGS" ; then
13881         INCLUDES="$INCLUDES $CPPFLAGS"
13882 fi
13883 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13884         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13885 fi
13886 if test -n "$WITH_DIET_LIBC" ; then
13887         INCLUDES="$INCLUDES -D_REENTRANT"
13888 fi
13889
13890
13891         MKINSTALLDIRS=
13892   if test -n "$ac_aux_dir"; then
13893     case "$ac_aux_dir" in
13894       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13895       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13896     esac
13897   fi
13898   if test -z "$MKINSTALLDIRS"; then
13899     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13900   fi
13901
13902
13903 if test $cross_compiling = no; then
13904    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13905    BUILD_LDFLAGS="$LDFLAGS"
13906 fi
13907
13908
13909 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13910 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13911 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13912
13913
13914
13915
13916
13917 # Check whether --with-udev_rules_dir was given.
13918 if test "${with_udev_rules_dir+set}" = set; then :
13919   withval=$with_udev_rules_dir;
13920 else
13921   with_udev_rules_dir=yes
13922 fi
13923
13924 if test "x${with_udev_rules_dir}" != "xno"; then :
13925
13926         if test "x${with_udev_rules_dir}" = "xyes"; then :
13927
13928
13929 pkg_failed=no
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
13931 $as_echo_n "checking for udev... " >&6; }
13932
13933 if test -n "$udev_CFLAGS"; then
13934     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
13935  elif test -n "$PKG_CONFIG"; then
13936     if test -n "$PKG_CONFIG" && \
13937     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13938   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13939   ac_status=$?
13940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941   test $ac_status = 0; }; then
13942   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
13943                       test "x$?" != "x0" && pkg_failed=yes
13944 else
13945   pkg_failed=yes
13946 fi
13947  else
13948     pkg_failed=untried
13949 fi
13950 if test -n "$udev_LIBS"; then
13951     pkg_cv_udev_LIBS="$udev_LIBS"
13952  elif test -n "$PKG_CONFIG"; then
13953     if test -n "$PKG_CONFIG" && \
13954     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13955   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13956   ac_status=$?
13957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13958   test $ac_status = 0; }; then
13959   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
13960                       test "x$?" != "x0" && pkg_failed=yes
13961 else
13962   pkg_failed=yes
13963 fi
13964  else
13965     pkg_failed=untried
13966 fi
13967
13968
13969
13970 if test $pkg_failed = yes; then
13971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13973
13974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13975         _pkg_short_errors_supported=yes
13976 else
13977         _pkg_short_errors_supported=no
13978 fi
13979         if test $_pkg_short_errors_supported = yes; then
13980                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
13981         else
13982                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
13983         fi
13984         # Put the nasty error message in config.log where it belongs
13985         echo "$udev_PKG_ERRORS" >&5
13986
13987
13988                         with_udev_rules_dir=""
13989
13990 elif test $pkg_failed = untried; then
13991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13993
13994                         with_udev_rules_dir=""
13995
13996 else
13997         udev_CFLAGS=$pkg_cv_udev_CFLAGS
13998         udev_LIBS=$pkg_cv_udev_LIBS
13999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 $as_echo "yes" >&6; }
14001
14002                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14003
14004 fi
14005
14006 fi
14007         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14008 $as_echo_n "checking for udev rules dir... " >&6; }
14009         pkg_udev_rules_dir="${with_udev_rules_dir}"
14010         if test -n "${pkg_udev_rules_dir}"; then :
14011
14012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14013 $as_echo "${pkg_udev_rules_dir}" >&6; }
14014                 have_udev="yes"
14015
14016 else
14017
14018                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14020                 have_udev="no"
14021
14022 fi
14023
14024 else
14025
14026         have_udev="disabled"
14027
14028 fi
14029
14030
14031
14032
14033 # Check whether --with-crond_dir was given.
14034 if test "${with_crond_dir+set}" = set; then :
14035   withval=$with_crond_dir;
14036 else
14037   with_crond_dir=yes
14038 fi
14039
14040 if test "x${with_crond_dir}" != "xno"; then :
14041
14042         if test "x${with_crond_dir}" = "xyes"; then :
14043
14044                 if test -d "/etc/cron.d"; then :
14045   with_crond_dir="/etc/cron.d"
14046 fi
14047
14048 fi
14049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14050 $as_echo_n "checking for system crontab dir... " >&6; }
14051         crond_dir="${with_crond_dir}"
14052         if test -n "${crond_dir}"; then :
14053
14054                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14055 $as_echo "${crond_dir}" >&6; }
14056                 have_crond="yes"
14057
14058 else
14059
14060                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14062                 have_crond="no"
14063
14064 fi
14065
14066 else
14067
14068         have_crond="disabled"
14069
14070 fi
14071
14072
14073
14074
14075 # Check whether --with-systemd_unit_dir was given.
14076 if test "${with_systemd_unit_dir+set}" = set; then :
14077   withval=$with_systemd_unit_dir;
14078 else
14079   with_systemd_unit_dir=yes
14080 fi
14081
14082 if test "x${with_systemd_unit_dir}" != "xno"; then :
14083
14084         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14085
14086
14087 pkg_failed=no
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14089 $as_echo_n "checking for systemd... " >&6; }
14090
14091 if test -n "$systemd_CFLAGS"; then
14092     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14093  elif test -n "$PKG_CONFIG"; then
14094     if test -n "$PKG_CONFIG" && \
14095     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14096   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14097   ac_status=$?
14098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099   test $ac_status = 0; }; then
14100   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14101                       test "x$?" != "x0" && pkg_failed=yes
14102 else
14103   pkg_failed=yes
14104 fi
14105  else
14106     pkg_failed=untried
14107 fi
14108 if test -n "$systemd_LIBS"; then
14109     pkg_cv_systemd_LIBS="$systemd_LIBS"
14110  elif test -n "$PKG_CONFIG"; then
14111     if test -n "$PKG_CONFIG" && \
14112     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14113   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14114   ac_status=$?
14115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14116   test $ac_status = 0; }; then
14117   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14118                       test "x$?" != "x0" && pkg_failed=yes
14119 else
14120   pkg_failed=yes
14121 fi
14122  else
14123     pkg_failed=untried
14124 fi
14125
14126
14127
14128 if test $pkg_failed = yes; then
14129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131
14132 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14133         _pkg_short_errors_supported=yes
14134 else
14135         _pkg_short_errors_supported=no
14136 fi
14137         if test $_pkg_short_errors_supported = yes; then
14138                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14139         else
14140                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14141         fi
14142         # Put the nasty error message in config.log where it belongs
14143         echo "$systemd_PKG_ERRORS" >&5
14144
14145
14146                         with_systemd_unit_dir=""
14147
14148 elif test $pkg_failed = untried; then
14149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14151
14152                         with_systemd_unit_dir=""
14153
14154 else
14155         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14156         systemd_LIBS=$pkg_cv_systemd_LIBS
14157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14158 $as_echo "yes" >&6; }
14159
14160                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14161
14162 fi
14163
14164
14165 fi
14166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14167 $as_echo_n "checking for systemd system unit dir... " >&6; }
14168         systemd_system_unit_dir="${with_systemd_unit_dir}"
14169         if test -n "${systemd_system_unit_dir}"; then :
14170
14171                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14172 $as_echo "${systemd_system_unit_dir}" >&6; }
14173                 have_systemd="yes"
14174
14175 else
14176
14177                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179                 have_systemd="no"
14180
14181 fi
14182
14183 else
14184
14185         have_systemd="disabled"
14186
14187 fi
14188
14189
14190
14191 test -d lib || mkdir lib
14192 test -d include || mkdir include
14193 test -d include/linux || mkdir include/linux
14194 test -d include/asm || mkdir include/asm
14195 if test -z "$UUID_CMT" ; then
14196         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14197                 lib/uuid/uuid_types.h"
14198 fi
14199 if test -z "$BLKID_CMT" ; then
14200         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14201                 lib/blkid/blkid_types.h"
14202 fi
14203 for i in MCONFIG Makefile e2fsprogs.spec \
14204         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14205         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14206         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14207         $uuid_out_list $blkid_out_list lib/support/Makefile \
14208         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14209         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14210         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14211         resize/Makefile doc/Makefile intl/Makefile \
14212         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14213         if test -d `dirname ${srcdir}/$i` ; then
14214                 outlist="$outlist $i"
14215         fi
14216 done
14217 ac_config_files="$ac_config_files $outlist"
14218
14219 cat >confcache <<\_ACEOF
14220 # This file is a shell script that caches the results of configure
14221 # tests run on this system so they can be shared between configure
14222 # scripts and configure runs, see configure's option --config-cache.
14223 # It is not useful on other systems.  If it contains results you don't
14224 # want to keep, you may remove or edit it.
14225 #
14226 # config.status only pays attention to the cache file if you give it
14227 # the --recheck option to rerun configure.
14228 #
14229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14231 # following values.
14232
14233 _ACEOF
14234
14235 # The following way of writing the cache mishandles newlines in values,
14236 # but we know of no workaround that is simple, portable, and efficient.
14237 # So, we kill variables containing newlines.
14238 # Ultrix sh set writes to stderr and can't be redirected directly,
14239 # and sets the high bit in the cache file unless we assign to the vars.
14240 (
14241   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14242     eval ac_val=\$$ac_var
14243     case $ac_val in #(
14244     *${as_nl}*)
14245       case $ac_var in #(
14246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14248       esac
14249       case $ac_var in #(
14250       _ | IFS | as_nl) ;; #(
14251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14252       *) { eval $ac_var=; unset $ac_var;} ;;
14253       esac ;;
14254     esac
14255   done
14256
14257   (set) 2>&1 |
14258     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14259     *${as_nl}ac_space=\ *)
14260       # `set' does not quote correctly, so add quotes: double-quote
14261       # substitution turns \\\\ into \\, and sed turns \\ into \.
14262       sed -n \
14263         "s/'/'\\\\''/g;
14264           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14265       ;; #(
14266     *)
14267       # `set' quotes correctly as required by POSIX, so do not add quotes.
14268       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14269       ;;
14270     esac |
14271     sort
14272 ) |
14273   sed '
14274      /^ac_cv_env_/b end
14275      t clear
14276      :clear
14277      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14278      t end
14279      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14280      :end' >>confcache
14281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14282   if test -w "$cache_file"; then
14283     if test "x$cache_file" != "x/dev/null"; then
14284       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14285 $as_echo "$as_me: updating cache $cache_file" >&6;}
14286       if test ! -f "$cache_file" || test -h "$cache_file"; then
14287         cat confcache >"$cache_file"
14288       else
14289         case $cache_file in #(
14290         */* | ?:*)
14291           mv -f confcache "$cache_file"$$ &&
14292           mv -f "$cache_file"$$ "$cache_file" ;; #(
14293         *)
14294           mv -f confcache "$cache_file" ;;
14295         esac
14296       fi
14297     fi
14298   else
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14301   fi
14302 fi
14303 rm -f confcache
14304
14305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14306 # Let make expand exec_prefix.
14307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14308
14309 DEFS=-DHAVE_CONFIG_H
14310
14311 ac_libobjs=
14312 ac_ltlibobjs=
14313 U=
14314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14315   # 1. Remove the extension, and $U if already installed.
14316   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14317   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14318   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14319   #    will be set to the directory where LIBOBJS objects are built.
14320   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14321   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14322 done
14323 LIBOBJS=$ac_libobjs
14324
14325 LTLIBOBJS=$ac_ltlibobjs
14326
14327
14328
14329
14330 : "${CONFIG_STATUS=./config.status}"
14331 ac_write_fail=0
14332 ac_clean_files_save=$ac_clean_files
14333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14335 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14336 as_write_fail=0
14337 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14338 #! $SHELL
14339 # Generated by $as_me.
14340 # Run this file to recreate the current configuration.
14341 # Compiler output produced by configure, useful for debugging
14342 # configure, is in config.log if it exists.
14343
14344 debug=false
14345 ac_cs_recheck=false
14346 ac_cs_silent=false
14347
14348 SHELL=\${CONFIG_SHELL-$SHELL}
14349 export SHELL
14350 _ASEOF
14351 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14352 ## -------------------- ##
14353 ## M4sh Initialization. ##
14354 ## -------------------- ##
14355
14356 # Be more Bourne compatible
14357 DUALCASE=1; export DUALCASE # for MKS sh
14358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14359   emulate sh
14360   NULLCMD=:
14361   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14362   # is contrary to our usage.  Disable this feature.
14363   alias -g '${1+"$@"}'='"$@"'
14364   setopt NO_GLOB_SUBST
14365 else
14366   case `(set -o) 2>/dev/null` in #(
14367   *posix*) :
14368     set -o posix ;; #(
14369   *) :
14370      ;;
14371 esac
14372 fi
14373
14374
14375 as_nl='
14376 '
14377 export as_nl
14378 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14379 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14380 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14382 # Prefer a ksh shell builtin over an external printf program on Solaris,
14383 # but without wasting forks for bash or zsh.
14384 if test -z "$BASH_VERSION$ZSH_VERSION" \
14385     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14386   as_echo='print -r --'
14387   as_echo_n='print -rn --'
14388 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14389   as_echo='printf %s\n'
14390   as_echo_n='printf %s'
14391 else
14392   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14393     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14394     as_echo_n='/usr/ucb/echo -n'
14395   else
14396     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14397     as_echo_n_body='eval
14398       arg=$1;
14399       case $arg in #(
14400       *"$as_nl"*)
14401         expr "X$arg" : "X\\(.*\\)$as_nl";
14402         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14403       esac;
14404       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14405     '
14406     export as_echo_n_body
14407     as_echo_n='sh -c $as_echo_n_body as_echo'
14408   fi
14409   export as_echo_body
14410   as_echo='sh -c $as_echo_body as_echo'
14411 fi
14412
14413 # The user is always right.
14414 if test "${PATH_SEPARATOR+set}" != set; then
14415   PATH_SEPARATOR=:
14416   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14417     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14418       PATH_SEPARATOR=';'
14419   }
14420 fi
14421
14422
14423 # IFS
14424 # We need space, tab and new line, in precisely that order.  Quoting is
14425 # there to prevent editors from complaining about space-tab.
14426 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14427 # splitting by setting IFS to empty value.)
14428 IFS=" ""        $as_nl"
14429
14430 # Find who we are.  Look in the path if we contain no directory separator.
14431 as_myself=
14432 case $0 in #((
14433   *[\\/]* ) as_myself=$0 ;;
14434   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14436 do
14437   IFS=$as_save_IFS
14438   test -z "$as_dir" && as_dir=.
14439     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14440   done
14441 IFS=$as_save_IFS
14442
14443      ;;
14444 esac
14445 # We did not find ourselves, most probably we were run as `sh COMMAND'
14446 # in which case we are not to be found in the path.
14447 if test "x$as_myself" = x; then
14448   as_myself=$0
14449 fi
14450 if test ! -f "$as_myself"; then
14451   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14452   exit 1
14453 fi
14454
14455 # Unset variables that we do not need and which cause bugs (e.g. in
14456 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14457 # suppresses any "Segmentation fault" message there.  '((' could
14458 # trigger a bug in pdksh 5.2.14.
14459 for as_var in BASH_ENV ENV MAIL MAILPATH
14460 do eval test x\${$as_var+set} = xset \
14461   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14462 done
14463 PS1='$ '
14464 PS2='> '
14465 PS4='+ '
14466
14467 # NLS nuisances.
14468 LC_ALL=C
14469 export LC_ALL
14470 LANGUAGE=C
14471 export LANGUAGE
14472
14473 # CDPATH.
14474 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14475
14476
14477 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14478 # ----------------------------------------
14479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14481 # script with STATUS, using 1 if that was 0.
14482 as_fn_error ()
14483 {
14484   as_status=$1; test $as_status -eq 0 && as_status=1
14485   if test "$4"; then
14486     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14487     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14488   fi
14489   $as_echo "$as_me: error: $2" >&2
14490   as_fn_exit $as_status
14491 } # as_fn_error
14492
14493
14494 # as_fn_set_status STATUS
14495 # -----------------------
14496 # Set $? to STATUS, without forking.
14497 as_fn_set_status ()
14498 {
14499   return $1
14500 } # as_fn_set_status
14501
14502 # as_fn_exit STATUS
14503 # -----------------
14504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14505 as_fn_exit ()
14506 {
14507   set +e
14508   as_fn_set_status $1
14509   exit $1
14510 } # as_fn_exit
14511
14512 # as_fn_unset VAR
14513 # ---------------
14514 # Portably unset VAR.
14515 as_fn_unset ()
14516 {
14517   { eval $1=; unset $1;}
14518 }
14519 as_unset=as_fn_unset
14520 # as_fn_append VAR VALUE
14521 # ----------------------
14522 # Append the text in VALUE to the end of the definition contained in VAR. Take
14523 # advantage of any shell optimizations that allow amortized linear growth over
14524 # repeated appends, instead of the typical quadratic growth present in naive
14525 # implementations.
14526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14527   eval 'as_fn_append ()
14528   {
14529     eval $1+=\$2
14530   }'
14531 else
14532   as_fn_append ()
14533   {
14534     eval $1=\$$1\$2
14535   }
14536 fi # as_fn_append
14537
14538 # as_fn_arith ARG...
14539 # ------------------
14540 # Perform arithmetic evaluation on the ARGs, and store the result in the
14541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14542 # must be portable across $(()) and expr.
14543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14544   eval 'as_fn_arith ()
14545   {
14546     as_val=$(( $* ))
14547   }'
14548 else
14549   as_fn_arith ()
14550   {
14551     as_val=`expr "$@" || test $? -eq 1`
14552   }
14553 fi # as_fn_arith
14554
14555
14556 if expr a : '\(a\)' >/dev/null 2>&1 &&
14557    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14558   as_expr=expr
14559 else
14560   as_expr=false
14561 fi
14562
14563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14564   as_basename=basename
14565 else
14566   as_basename=false
14567 fi
14568
14569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14570   as_dirname=dirname
14571 else
14572   as_dirname=false
14573 fi
14574
14575 as_me=`$as_basename -- "$0" ||
14576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14577          X"$0" : 'X\(//\)$' \| \
14578          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14579 $as_echo X/"$0" |
14580     sed '/^.*\/\([^/][^/]*\)\/*$/{
14581             s//\1/
14582             q
14583           }
14584           /^X\/\(\/\/\)$/{
14585             s//\1/
14586             q
14587           }
14588           /^X\/\(\/\).*/{
14589             s//\1/
14590             q
14591           }
14592           s/.*/./; q'`
14593
14594 # Avoid depending upon Character Ranges.
14595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14598 as_cr_digits='0123456789'
14599 as_cr_alnum=$as_cr_Letters$as_cr_digits
14600
14601 ECHO_C= ECHO_N= ECHO_T=
14602 case `echo -n x` in #(((((
14603 -n*)
14604   case `echo 'xy\c'` in
14605   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14606   xy)  ECHO_C='\c';;
14607   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14608        ECHO_T=' ';;
14609   esac;;
14610 *)
14611   ECHO_N='-n';;
14612 esac
14613
14614 rm -f conf$$ conf$$.exe conf$$.file
14615 if test -d conf$$.dir; then
14616   rm -f conf$$.dir/conf$$.file
14617 else
14618   rm -f conf$$.dir
14619   mkdir conf$$.dir 2>/dev/null
14620 fi
14621 if (echo >conf$$.file) 2>/dev/null; then
14622   if ln -s conf$$.file conf$$ 2>/dev/null; then
14623     as_ln_s='ln -s'
14624     # ... but there are two gotchas:
14625     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14626     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14627     # In both cases, we have to default to `cp -pR'.
14628     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14629       as_ln_s='cp -pR'
14630   elif ln conf$$.file conf$$ 2>/dev/null; then
14631     as_ln_s=ln
14632   else
14633     as_ln_s='cp -pR'
14634   fi
14635 else
14636   as_ln_s='cp -pR'
14637 fi
14638 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14639 rmdir conf$$.dir 2>/dev/null
14640
14641
14642 # as_fn_mkdir_p
14643 # -------------
14644 # Create "$as_dir" as a directory, including parents if necessary.
14645 as_fn_mkdir_p ()
14646 {
14647
14648   case $as_dir in #(
14649   -*) as_dir=./$as_dir;;
14650   esac
14651   test -d "$as_dir" || eval $as_mkdir_p || {
14652     as_dirs=
14653     while :; do
14654       case $as_dir in #(
14655       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14656       *) as_qdir=$as_dir;;
14657       esac
14658       as_dirs="'$as_qdir' $as_dirs"
14659       as_dir=`$as_dirname -- "$as_dir" ||
14660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14661          X"$as_dir" : 'X\(//\)[^/]' \| \
14662          X"$as_dir" : 'X\(//\)$' \| \
14663          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14664 $as_echo X"$as_dir" |
14665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14666             s//\1/
14667             q
14668           }
14669           /^X\(\/\/\)[^/].*/{
14670             s//\1/
14671             q
14672           }
14673           /^X\(\/\/\)$/{
14674             s//\1/
14675             q
14676           }
14677           /^X\(\/\).*/{
14678             s//\1/
14679             q
14680           }
14681           s/.*/./; q'`
14682       test -d "$as_dir" && break
14683     done
14684     test -z "$as_dirs" || eval "mkdir $as_dirs"
14685   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14686
14687
14688 } # as_fn_mkdir_p
14689 if mkdir -p . 2>/dev/null; then
14690   as_mkdir_p='mkdir -p "$as_dir"'
14691 else
14692   test -d ./-p && rmdir ./-p
14693   as_mkdir_p=false
14694 fi
14695
14696
14697 # as_fn_executable_p FILE
14698 # -----------------------
14699 # Test if FILE is an executable regular file.
14700 as_fn_executable_p ()
14701 {
14702   test -f "$1" && test -x "$1"
14703 } # as_fn_executable_p
14704 as_test_x='test -x'
14705 as_executable_p=as_fn_executable_p
14706
14707 # Sed expression to map a string onto a valid CPP name.
14708 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14709
14710 # Sed expression to map a string onto a valid variable name.
14711 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14712
14713
14714 exec 6>&1
14715 ## ----------------------------------- ##
14716 ## Main body of $CONFIG_STATUS script. ##
14717 ## ----------------------------------- ##
14718 _ASEOF
14719 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14720
14721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14722 # Save the log message, to keep $0 and so on meaningful, and to
14723 # report actual input values of CONFIG_FILES etc. instead of their
14724 # values after options handling.
14725 ac_log="
14726 This file was extended by $as_me, which was
14727 generated by GNU Autoconf 2.69.  Invocation command line was
14728
14729   CONFIG_FILES    = $CONFIG_FILES
14730   CONFIG_HEADERS  = $CONFIG_HEADERS
14731   CONFIG_LINKS    = $CONFIG_LINKS
14732   CONFIG_COMMANDS = $CONFIG_COMMANDS
14733   $ $0 $@
14734
14735 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14736 "
14737
14738 _ACEOF
14739
14740 case $ac_config_files in *"
14741 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14742 esac
14743
14744 case $ac_config_headers in *"
14745 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14746 esac
14747
14748
14749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14750 # Files that config.status was made for.
14751 config_files="$ac_config_files"
14752 config_headers="$ac_config_headers"
14753 config_commands="$ac_config_commands"
14754
14755 _ACEOF
14756
14757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14758 ac_cs_usage="\
14759 \`$as_me' instantiates files and other configuration actions
14760 from templates according to the current configuration.  Unless the files
14761 and actions are specified as TAGs, all are instantiated by default.
14762
14763 Usage: $0 [OPTION]... [TAG]...
14764
14765   -h, --help       print this help, then exit
14766   -V, --version    print version number and configuration settings, then exit
14767       --config     print configuration, then exit
14768   -q, --quiet, --silent
14769                    do not print progress messages
14770   -d, --debug      don't remove temporary files
14771       --recheck    update $as_me by reconfiguring in the same conditions
14772       --file=FILE[:TEMPLATE]
14773                    instantiate the configuration file FILE
14774       --header=FILE[:TEMPLATE]
14775                    instantiate the configuration header FILE
14776
14777 Configuration files:
14778 $config_files
14779
14780 Configuration headers:
14781 $config_headers
14782
14783 Configuration commands:
14784 $config_commands
14785
14786 Report bugs to the package provider."
14787
14788 _ACEOF
14789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14790 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14791 ac_cs_version="\\
14792 config.status
14793 configured by $0, generated by GNU Autoconf 2.69,
14794   with options \\"\$ac_cs_config\\"
14795
14796 Copyright (C) 2012 Free Software Foundation, Inc.
14797 This config.status script is free software; the Free Software Foundation
14798 gives unlimited permission to copy, distribute and modify it."
14799
14800 ac_pwd='$ac_pwd'
14801 srcdir='$srcdir'
14802 INSTALL='$INSTALL'
14803 MKDIR_P='$MKDIR_P'
14804 AWK='$AWK'
14805 test -n "\$AWK" || AWK=awk
14806 _ACEOF
14807
14808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14809 # The default lists apply if the user does not specify any file.
14810 ac_need_defaults=:
14811 while test $# != 0
14812 do
14813   case $1 in
14814   --*=?*)
14815     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14816     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14817     ac_shift=:
14818     ;;
14819   --*=)
14820     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14821     ac_optarg=
14822     ac_shift=:
14823     ;;
14824   *)
14825     ac_option=$1
14826     ac_optarg=$2
14827     ac_shift=shift
14828     ;;
14829   esac
14830
14831   case $ac_option in
14832   # Handling of the options.
14833   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14834     ac_cs_recheck=: ;;
14835   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14836     $as_echo "$ac_cs_version"; exit ;;
14837   --config | --confi | --conf | --con | --co | --c )
14838     $as_echo "$ac_cs_config"; exit ;;
14839   --debug | --debu | --deb | --de | --d | -d )
14840     debug=: ;;
14841   --file | --fil | --fi | --f )
14842     $ac_shift
14843     case $ac_optarg in
14844     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14845     '') as_fn_error $? "missing file argument" ;;
14846     esac
14847     as_fn_append CONFIG_FILES " '$ac_optarg'"
14848     ac_need_defaults=false;;
14849   --header | --heade | --head | --hea )
14850     $ac_shift
14851     case $ac_optarg in
14852     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14853     esac
14854     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14855     ac_need_defaults=false;;
14856   --he | --h)
14857     # Conflict between --help and --header
14858     as_fn_error $? "ambiguous option: \`$1'
14859 Try \`$0 --help' for more information.";;
14860   --help | --hel | -h )
14861     $as_echo "$ac_cs_usage"; exit ;;
14862   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14863   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14864     ac_cs_silent=: ;;
14865
14866   # This is an error.
14867   -*) as_fn_error $? "unrecognized option: \`$1'
14868 Try \`$0 --help' for more information." ;;
14869
14870   *) as_fn_append ac_config_targets " $1"
14871      ac_need_defaults=false ;;
14872
14873   esac
14874   shift
14875 done
14876
14877 ac_configure_extra_args=
14878
14879 if $ac_cs_silent; then
14880   exec 6>/dev/null
14881   ac_configure_extra_args="$ac_configure_extra_args --silent"
14882 fi
14883
14884 _ACEOF
14885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14886 if \$ac_cs_recheck; then
14887   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14888   shift
14889   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14890   CONFIG_SHELL='$SHELL'
14891   export CONFIG_SHELL
14892   exec "\$@"
14893 fi
14894
14895 _ACEOF
14896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14897 exec 5>>config.log
14898 {
14899   echo
14900   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14901 ## Running $as_me. ##
14902 _ASBOX
14903   $as_echo "$ac_log"
14904 } >&5
14905
14906 _ACEOF
14907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14908 #
14909 # INIT-COMMANDS
14910 #
14911 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14912     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14913     # from automake < 1.5.
14914     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14915     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14916     LINGUAS="${LINGUAS-%UNSET%}"
14917
14918
14919 _ACEOF
14920
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922
14923 # Handling of arguments.
14924 for ac_config_target in $ac_config_targets
14925 do
14926   case $ac_config_target in
14927     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14928     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14929     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14930
14931   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14932   esac
14933 done
14934
14935
14936 # If the user did not use the arguments to specify the items to instantiate,
14937 # then the envvar interface is used.  Set only those that are not.
14938 # We use the long form for the default assignment because of an extremely
14939 # bizarre bug on SunOS 4.1.3.
14940 if $ac_need_defaults; then
14941   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14942   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14943   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14944 fi
14945
14946 # Have a temporary directory for convenience.  Make it in the build tree
14947 # simply because there is no reason against having it here, and in addition,
14948 # creating and moving files from /tmp can sometimes cause problems.
14949 # Hook for its removal unless debugging.
14950 # Note that there is a small window in which the directory will not be cleaned:
14951 # after its creation but before its name has been assigned to `$tmp'.
14952 $debug ||
14953 {
14954   tmp= ac_tmp=
14955   trap 'exit_status=$?
14956   : "${ac_tmp:=$tmp}"
14957   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14958 ' 0
14959   trap 'as_fn_exit 1' 1 2 13 15
14960 }
14961 # Create a (secure) tmp directory for tmp files.
14962
14963 {
14964   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14965   test -d "$tmp"
14966 }  ||
14967 {
14968   tmp=./conf$$-$RANDOM
14969   (umask 077 && mkdir "$tmp")
14970 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14971 ac_tmp=$tmp
14972
14973 # Set up the scripts for CONFIG_FILES section.
14974 # No need to generate them if there are no CONFIG_FILES.
14975 # This happens for instance with `./config.status config.h'.
14976 if test -n "$CONFIG_FILES"; then
14977
14978 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14979   ac_cs_awk_getline=:
14980   ac_cs_awk_pipe_init=
14981   ac_cs_awk_read_file='
14982       while ((getline aline < (F[key])) > 0)
14983         print(aline)
14984       close(F[key])'
14985   ac_cs_awk_pipe_fini=
14986 else
14987   ac_cs_awk_getline=false
14988   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14989   ac_cs_awk_read_file='
14990       print "|#_!!_#|"
14991       print "cat " F[key] " &&"
14992       '$ac_cs_awk_pipe_init
14993   # The final `:' finishes the AND list.
14994   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14995 fi
14996 ac_cr=`echo X | tr X '\015'`
14997 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14998 # But we know of no other shell where ac_cr would be empty at this
14999 # point, so we can use a bashism as a fallback.
15000 if test "x$ac_cr" = x; then
15001   eval ac_cr=\$\'\\r\'
15002 fi
15003 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15004 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15005   ac_cs_awk_cr='\\r'
15006 else
15007   ac_cs_awk_cr=$ac_cr
15008 fi
15009
15010 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15011 _ACEOF
15012
15013 # Create commands to substitute file output variables.
15014 {
15015   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15016   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15017   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15018   echo "_ACAWK" &&
15019   echo "_ACEOF"
15020 } >conf$$files.sh &&
15021 . ./conf$$files.sh ||
15022   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15023 rm -f conf$$files.sh
15024
15025 {
15026   echo "cat >conf$$subs.awk <<_ACEOF" &&
15027   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15028   echo "_ACEOF"
15029 } >conf$$subs.sh ||
15030   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15031 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15032 ac_delim='%!_!# '
15033 for ac_last_try in false false false false false :; do
15034   . ./conf$$subs.sh ||
15035     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15036
15037   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15038   if test $ac_delim_n = $ac_delim_num; then
15039     break
15040   elif $ac_last_try; then
15041     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15042   else
15043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15044   fi
15045 done
15046 rm -f conf$$subs.sh
15047
15048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15049 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15050 _ACEOF
15051 sed -n '
15052 h
15053 s/^/S["/; s/!.*/"]=/
15054 p
15055 g
15056 s/^[^!]*!//
15057 :repl
15058 t repl
15059 s/'"$ac_delim"'$//
15060 t delim
15061 :nl
15062 h
15063 s/\(.\{148\}\)..*/\1/
15064 t more1
15065 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15066 p
15067 n
15068 b repl
15069 :more1
15070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15071 p
15072 g
15073 s/.\{148\}//
15074 t nl
15075 :delim
15076 h
15077 s/\(.\{148\}\)..*/\1/
15078 t more2
15079 s/["\\]/\\&/g; s/^/"/; s/$/"/
15080 p
15081 b
15082 :more2
15083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15084 p
15085 g
15086 s/.\{148\}//
15087 t delim
15088 ' <conf$$subs.awk | sed '
15089 /^[^""]/{
15090   N
15091   s/\n//
15092 }
15093 ' >>$CONFIG_STATUS || ac_write_fail=1
15094 rm -f conf$$subs.awk
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15096 _ACAWK
15097 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15098   for (key in S) S_is_set[key] = 1
15099   FS = "\a"
15100   \$ac_cs_awk_pipe_init
15101 }
15102 {
15103   line = $ 0
15104   nfields = split(line, field, "@")
15105   substed = 0
15106   len = length(field[1])
15107   for (i = 2; i < nfields; i++) {
15108     key = field[i]
15109     keylen = length(key)
15110     if (S_is_set[key]) {
15111       value = S[key]
15112       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15113       len += length(value) + length(field[++i])
15114       substed = 1
15115     } else
15116       len += 1 + keylen
15117   }
15118   if (nfields == 3 && !substed) {
15119     key = field[2]
15120     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15121       \$ac_cs_awk_read_file
15122       next
15123     }
15124   }
15125   print line
15126 }
15127 \$ac_cs_awk_pipe_fini
15128 _ACAWK
15129 _ACEOF
15130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15131 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15132   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15133 else
15134   cat
15135 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15136   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15137 _ACEOF
15138
15139 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15140 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15141 # trailing colons and then remove the whole line if VPATH becomes empty
15142 # (actually we leave an empty line to preserve line numbers).
15143 if test "x$srcdir" = x.; then
15144   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15145 h
15146 s///
15147 s/^/:/
15148 s/[      ]*$/:/
15149 s/:\$(srcdir):/:/g
15150 s/:\${srcdir}:/:/g
15151 s/:@srcdir@:/:/g
15152 s/^:*//
15153 s/:*$//
15154 x
15155 s/\(=[   ]*\).*/\1/
15156 G
15157 s/\n//
15158 s/^[^=]*=[       ]*$//
15159 }'
15160 fi
15161
15162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15163 fi # test -n "$CONFIG_FILES"
15164
15165 # Set up the scripts for CONFIG_HEADERS section.
15166 # No need to generate them if there are no CONFIG_HEADERS.
15167 # This happens for instance with `./config.status Makefile'.
15168 if test -n "$CONFIG_HEADERS"; then
15169 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15170 BEGIN {
15171 _ACEOF
15172
15173 # Transform confdefs.h into an awk script `defines.awk', embedded as
15174 # here-document in config.status, that substitutes the proper values into
15175 # config.h.in to produce config.h.
15176
15177 # Create a delimiter string that does not exist in confdefs.h, to ease
15178 # handling of long lines.
15179 ac_delim='%!_!# '
15180 for ac_last_try in false false :; do
15181   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15182   if test -z "$ac_tt"; then
15183     break
15184   elif $ac_last_try; then
15185     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15186   else
15187     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15188   fi
15189 done
15190
15191 # For the awk script, D is an array of macro values keyed by name,
15192 # likewise P contains macro parameters if any.  Preserve backslash
15193 # newline sequences.
15194
15195 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15196 sed -n '
15197 s/.\{148\}/&'"$ac_delim"'/g
15198 t rset
15199 :rset
15200 s/^[     ]*#[    ]*define[       ][      ]*/ /
15201 t def
15202 d
15203 :def
15204 s/\\$//
15205 t bsnl
15206 s/["\\]/\\&/g
15207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15208 D["\1"]=" \3"/p
15209 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15210 d
15211 :bsnl
15212 s/["\\]/\\&/g
15213 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15214 D["\1"]=" \3\\\\\\n"\\/p
15215 t cont
15216 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15217 t cont
15218 d
15219 :cont
15220 n
15221 s/.\{148\}/&'"$ac_delim"'/g
15222 t clear
15223 :clear
15224 s/\\$//
15225 t bsnlc
15226 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15227 d
15228 :bsnlc
15229 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15230 b cont
15231 ' <confdefs.h | sed '
15232 s/'"$ac_delim"'/"\\\
15233 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15234
15235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15236   for (key in D) D_is_set[key] = 1
15237   FS = "\a"
15238 }
15239 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15240   line = \$ 0
15241   split(line, arg, " ")
15242   if (arg[1] == "#") {
15243     defundef = arg[2]
15244     mac1 = arg[3]
15245   } else {
15246     defundef = substr(arg[1], 2)
15247     mac1 = arg[2]
15248   }
15249   split(mac1, mac2, "(") #)
15250   macro = mac2[1]
15251   prefix = substr(line, 1, index(line, defundef) - 1)
15252   if (D_is_set[macro]) {
15253     # Preserve the white space surrounding the "#".
15254     print prefix "define", macro P[macro] D[macro]
15255     next
15256   } else {
15257     # Replace #undef with comments.  This is necessary, for example,
15258     # in the case of _POSIX_SOURCE, which is predefined and required
15259     # on some systems where configure will not decide to define it.
15260     if (defundef == "undef") {
15261       print "/*", prefix defundef, macro, "*/"
15262       next
15263     }
15264   }
15265 }
15266 { print }
15267 _ACAWK
15268 _ACEOF
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15271 fi # test -n "$CONFIG_HEADERS"
15272
15273
15274 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15275 shift
15276 for ac_tag
15277 do
15278   case $ac_tag in
15279   :[FHLC]) ac_mode=$ac_tag; continue;;
15280   esac
15281   case $ac_mode$ac_tag in
15282   :[FHL]*:*);;
15283   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15284   :[FH]-) ac_tag=-:-;;
15285   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15286   esac
15287   ac_save_IFS=$IFS
15288   IFS=:
15289   set x $ac_tag
15290   IFS=$ac_save_IFS
15291   shift
15292   ac_file=$1
15293   shift
15294
15295   case $ac_mode in
15296   :L) ac_source=$1;;
15297   :[FH])
15298     ac_file_inputs=
15299     for ac_f
15300     do
15301       case $ac_f in
15302       -) ac_f="$ac_tmp/stdin";;
15303       *) # Look for the file first in the build tree, then in the source tree
15304          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15305          # because $ac_f cannot contain `:'.
15306          test -f "$ac_f" ||
15307            case $ac_f in
15308            [\\/$]*) false;;
15309            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15310            esac ||
15311            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15312       esac
15313       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15314       as_fn_append ac_file_inputs " '$ac_f'"
15315     done
15316
15317     # Let's still pretend it is `configure' which instantiates (i.e., don't
15318     # use $as_me), people would be surprised to read:
15319     #    /* config.h.  Generated by config.status.  */
15320     configure_input='Generated from '`
15321           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15322         `' by configure.'
15323     if test x"$ac_file" != x-; then
15324       configure_input="$ac_file.  $configure_input"
15325       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15326 $as_echo "$as_me: creating $ac_file" >&6;}
15327     fi
15328     # Neutralize special characters interpreted by sed in replacement strings.
15329     case $configure_input in #(
15330     *\&* | *\|* | *\\* )
15331        ac_sed_conf_input=`$as_echo "$configure_input" |
15332        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15333     *) ac_sed_conf_input=$configure_input;;
15334     esac
15335
15336     case $ac_tag in
15337     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15338       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15339     esac
15340     ;;
15341   esac
15342
15343   ac_dir=`$as_dirname -- "$ac_file" ||
15344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15345          X"$ac_file" : 'X\(//\)[^/]' \| \
15346          X"$ac_file" : 'X\(//\)$' \| \
15347          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15348 $as_echo X"$ac_file" |
15349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15350             s//\1/
15351             q
15352           }
15353           /^X\(\/\/\)[^/].*/{
15354             s//\1/
15355             q
15356           }
15357           /^X\(\/\/\)$/{
15358             s//\1/
15359             q
15360           }
15361           /^X\(\/\).*/{
15362             s//\1/
15363             q
15364           }
15365           s/.*/./; q'`
15366   as_dir="$ac_dir"; as_fn_mkdir_p
15367   ac_builddir=.
15368
15369 case "$ac_dir" in
15370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15371 *)
15372   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15373   # A ".." for each directory in $ac_dir_suffix.
15374   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15375   case $ac_top_builddir_sub in
15376   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15377   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15378   esac ;;
15379 esac
15380 ac_abs_top_builddir=$ac_pwd
15381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15382 # for backward compatibility:
15383 ac_top_builddir=$ac_top_build_prefix
15384
15385 case $srcdir in
15386   .)  # We are building in place.
15387     ac_srcdir=.
15388     ac_top_srcdir=$ac_top_builddir_sub
15389     ac_abs_top_srcdir=$ac_pwd ;;
15390   [\\/]* | ?:[\\/]* )  # Absolute name.
15391     ac_srcdir=$srcdir$ac_dir_suffix;
15392     ac_top_srcdir=$srcdir
15393     ac_abs_top_srcdir=$srcdir ;;
15394   *) # Relative name.
15395     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15396     ac_top_srcdir=$ac_top_build_prefix$srcdir
15397     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15398 esac
15399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15400
15401
15402   case $ac_mode in
15403   :F)
15404   #
15405   # CONFIG_FILE
15406   #
15407
15408   case $INSTALL in
15409   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15410   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15411   esac
15412   ac_MKDIR_P=$MKDIR_P
15413   case $MKDIR_P in
15414   [\\/$]* | ?:[\\/]* ) ;;
15415   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15416   esac
15417 _ACEOF
15418
15419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15420 # If the template does not know about datarootdir, expand it.
15421 # FIXME: This hack should be removed a few years after 2.60.
15422 ac_datarootdir_hack=; ac_datarootdir_seen=
15423 ac_sed_dataroot='
15424 /datarootdir/ {
15425   p
15426   q
15427 }
15428 /@datadir@/p
15429 /@docdir@/p
15430 /@infodir@/p
15431 /@localedir@/p
15432 /@mandir@/p'
15433 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15434 *datarootdir*) ac_datarootdir_seen=yes;;
15435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15436   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15437 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15438 _ACEOF
15439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15440   ac_datarootdir_hack='
15441   s&@datadir@&$datadir&g
15442   s&@docdir@&$docdir&g
15443   s&@infodir@&$infodir&g
15444   s&@localedir@&$localedir&g
15445   s&@mandir@&$mandir&g
15446   s&\\\${datarootdir}&$datarootdir&g' ;;
15447 esac
15448 _ACEOF
15449
15450 # Neutralize VPATH when `$srcdir' = `.'.
15451 # Shell code in configure.ac might set extrasub.
15452 # FIXME: do we really want to maintain this feature?
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 ac_sed_extra="$ac_vpsub
15455 $extrasub
15456 _ACEOF
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15458 :t
15459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15460 s|@configure_input@|$ac_sed_conf_input|;t t
15461 s&@top_builddir@&$ac_top_builddir_sub&;t t
15462 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15463 s&@srcdir@&$ac_srcdir&;t t
15464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15465 s&@top_srcdir@&$ac_top_srcdir&;t t
15466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15467 s&@builddir@&$ac_builddir&;t t
15468 s&@abs_builddir@&$ac_abs_builddir&;t t
15469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15470 s&@INSTALL@&$ac_INSTALL&;t t
15471 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15472 $ac_datarootdir_hack
15473 "
15474 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15475 if $ac_cs_awk_getline; then
15476   $AWK -f "$ac_tmp/subs.awk"
15477 else
15478   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15479 fi \
15480   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15481
15482 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15483   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15484   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15485       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15486   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15487 which seems to be undefined.  Please make sure it is defined" >&5
15488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15489 which seems to be undefined.  Please make sure it is defined" >&2;}
15490
15491   rm -f "$ac_tmp/stdin"
15492   case $ac_file in
15493   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15494   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15495   esac \
15496   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15497  ;;
15498   :H)
15499   #
15500   # CONFIG_HEADER
15501   #
15502   if test x"$ac_file" != x-; then
15503     {
15504       $as_echo "/* $configure_input  */" \
15505       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15506     } >"$ac_tmp/config.h" \
15507       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15508     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15509       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15511     else
15512       rm -f "$ac_file"
15513       mv "$ac_tmp/config.h" "$ac_file" \
15514         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15515     fi
15516   else
15517     $as_echo "/* $configure_input  */" \
15518       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15519       || as_fn_error $? "could not create -" "$LINENO" 5
15520   fi
15521  ;;
15522
15523   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15524 $as_echo "$as_me: executing $ac_file commands" >&6;}
15525  ;;
15526   esac
15527
15528
15529   case $ac_file$ac_mode in
15530     "po-directories":C)
15531     for ac_file in $CONFIG_FILES; do
15532       # Support "outfile[:infile[:infile...]]"
15533       case "$ac_file" in
15534         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15535       esac
15536       # PO directories have a Makefile.in generated from Makefile.in.in.
15537       case "$ac_file" in */Makefile.in)
15538         # Adjust a relative srcdir.
15539         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15540         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15541         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15542         # In autoconf-2.13 it is called $ac_given_srcdir.
15543         # In autoconf-2.50 it is called $srcdir.
15544         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15545         case "$ac_given_srcdir" in
15546           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15547           /*) top_srcdir="$ac_given_srcdir" ;;
15548           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15549         esac
15550         # Treat a directory as a PO directory if and only if it has a
15551         # POTFILES.in file. This allows packages to have multiple PO
15552         # directories under different names or in different locations.
15553         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15554           rm -f "$ac_dir/POTFILES"
15555           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15556           gt_tab=`printf '\t'`
15557           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"
15558           POMAKEFILEDEPS="POTFILES.in"
15559           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15560           # on $ac_dir but don't depend on user-specified configuration
15561           # parameters.
15562           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15563             # The LINGUAS file contains the set of available languages.
15564             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15565               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15566             fi
15567             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15568             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15569             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15570             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15571           else
15572             # The set of available languages was given in configure.in.
15573             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15574             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15575           fi
15576           # Compute POFILES
15577           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15578           # Compute UPDATEPOFILES
15579           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15580           # Compute DUMMYPOFILES
15581           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15582           # Compute GMOFILES
15583           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15584           case "$ac_given_srcdir" in
15585             .) srcdirpre= ;;
15586             *) srcdirpre='$(srcdir)/' ;;
15587           esac
15588           POFILES=
15589           UPDATEPOFILES=
15590           DUMMYPOFILES=
15591           GMOFILES=
15592           for lang in $ALL_LINGUAS; do
15593             POFILES="$POFILES $srcdirpre$lang.po"
15594             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15595             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15596             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15597           done
15598           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15599           # environment variable.
15600           INST_LINGUAS=
15601           if test -n "$ALL_LINGUAS"; then
15602             for presentlang in $ALL_LINGUAS; do
15603               useit=no
15604               if test "%UNSET%" != "$LINGUAS"; then
15605                 desiredlanguages="$LINGUAS"
15606               else
15607                 desiredlanguages="$ALL_LINGUAS"
15608               fi
15609               for desiredlang in $desiredlanguages; do
15610                 # Use the presentlang catalog if desiredlang is
15611                 #   a. equal to presentlang, or
15612                 #   b. a variant of presentlang (because in this case,
15613                 #      presentlang can be used as a fallback for messages
15614                 #      which are not translated in the desiredlang catalog).
15615                 case "$desiredlang" in
15616                   "$presentlang"*) useit=yes;;
15617                 esac
15618               done
15619               if test $useit = yes; then
15620                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15621               fi
15622             done
15623           fi
15624           CATALOGS=
15625           if test -n "$INST_LINGUAS"; then
15626             for lang in $INST_LINGUAS; do
15627               CATALOGS="$CATALOGS $lang.gmo"
15628             done
15629           fi
15630           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15631           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"
15632           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15633             if test -f "$f"; then
15634               case "$f" in
15635                 *.orig | *.bak | *~) ;;
15636                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15637               esac
15638             fi
15639           done
15640         fi
15641         ;;
15642       esac
15643     done ;;
15644
15645   esac
15646 done # for ac_tag
15647
15648
15649 as_fn_exit 0
15650 _ACEOF
15651 ac_clean_files=$ac_clean_files_save
15652
15653 test $ac_write_fail = 0 ||
15654   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15655
15656
15657 # configure is writing to config.log, and then calls config.status.
15658 # config.status does its own redirection, appending to config.log.
15659 # Unfortunately, on DOS this fails, as config.log is still kept open
15660 # by configure, so config.status won't be able to write to it; its
15661 # output is simply discarded.  So we exec the FD to /dev/null,
15662 # effectively closing config.log, so it can be properly (re)opened and
15663 # appended to by config.status.  When coming back to configure, we
15664 # need to make the FD available again.
15665 if test "$no_create" != yes; then
15666   ac_cs_success=:
15667   ac_config_status_args=
15668   test "$silent" = yes &&
15669     ac_config_status_args="$ac_config_status_args --quiet"
15670   exec 5>/dev/null
15671   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15672   exec 5>>config.log
15673   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15674   # would make configure fail if this is the last instruction.
15675   $ac_cs_success || as_fn_exit 1
15676 fi
15677 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15678   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15679 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15680 fi
15681
15682 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi