Whamcloud - gitweb
enable link time optimization, if requested
[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 lto_ldflags
657 lto_cflags
658 have_lto
659 gcc_ranlib
660 gcc_ar
661 UNI_DIFF_OPTS
662 SEM_INIT_LIB
663 FUSE_CMT
664 FUSE_LIB
665 CLOCK_GETTIME_LIB
666 MAGIC_LIB
667 SOCKET_LIB
668 SIZEOF_TIME_T
669 SIZEOF_OFF_T
670 SIZEOF_LONG_LONG
671 SIZEOF_LONG
672 SIZEOF_INT
673 SIZEOF_SHORT
674 DD
675 BUILD_CC
676 MAKEINFO
677 STRIP
678 AR
679 LDCONFIG
680 PERL
681 AWK
682 CHMOD
683 RM
684 CP
685 MV
686 LN_S
687 LN
688 ifNotGNUmake
689 ifGNUmake
690 BINARY_TYPE
691 POSUB
692 LTLIBINTL
693 LIBINTL
694 INTLLIBS
695 INTL_LIBTOOL_SUFFIX_PREFIX
696 INTLOBJS
697 GENCAT
698 INSTOBJEXT
699 DATADIRNAME
700 CATOBJEXT
701 USE_INCLUDED_LIBINTL
702 BUILD_INCLUDED_LIBINTL
703 LTLIBC
704 WINDRES
705 WOE32
706 WOE32DLL
707 HAVE_WPRINTF
708 HAVE_NEWLOCALE
709 HAVE_SNPRINTF
710 HAVE_ASPRINTF
711 HAVE_POSIX_PRINTF
712 INTL_DEFAULT_VERBOSITY
713 INTL_MACOSX_LIBS
714 GLIBC21
715 INTLBISON
716 LTLIBICONV
717 LIBICONV
718 LTLIBMULTITHREAD
719 LIBMULTITHREAD
720 LTLIBTHREAD
721 LIBTHREAD
722 LIBPTH_PREFIX
723 LTLIBPTH
724 LIBPTH
725 PRI_MACROS_BROKEN
726 ALLOCA
727 HAVE_VISIBILITY
728 CFLAG_VISIBILITY
729 RANLIB
730 GLIBC2
731 XGETTEXT_EXTRA_OPTIONS
732 MSGMERGE
733 XGETTEXT_015
734 XGETTEXT
735 GMSGFMT_015
736 MSGFMT_015
737 GMSGFMT
738 MSGFMT
739 GETTEXT_MACRO_VERSION
740 USE_NLS
741 SED
742 MKDIR_P
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 SET_MAKE
747 VERSION
748 PACKAGE
749 GETTEXT_PACKAGE
750 TDB_MAN_COMMENT
751 TDB_CMT
752 UUIDD_CMT
753 E2INITRD_MAN
754 E2INITRD_PROG
755 FSCK_MAN
756 FSCK_PROG
757 DEFRAG_CMT
758 RESIZER_CMT
759 IMAGER_CMT
760 DEBUGFS_CMT
761 BLKID_CMT
762 DEPPROFILED_LIBBLKID
763 PROFILED_LIBBLKID
764 DEPSTATIC_LIBBLKID
765 STATIC_LIBBLKID
766 DEPLIBBLKID
767 LIBBLKID
768 UUID_CMT
769 DEPPROFILED_LIBUUID
770 PROFILED_LIBUUID
771 DEPSTATIC_LIBUUID
772 STATIC_LIBUUID
773 DEPLIBUUID
774 LIBUUID
775 PKG_CONFIG_LIBDIR
776 PKG_CONFIG_PATH
777 PKG_CONFIG
778 TEST_IO_CMT
779 PRIVATE_LIBS_CMT
780 LDFLAG_DYNAMIC
781 PROFILED_LIB_EXT
782 STATIC_LIB_EXT
783 LIB_EXT
784 PROFILE_CMT
785 BSDLIB_CMT
786 ELF_CMT
787 Q
788 ES
789 E
790 LINK_BUILD_FLAGS
791 SYMLINK_RELATIVE
792 LINK_INSTALL_FLAGS
793 MAINTAINER_CMT
794 EGREP
795 GREP
796 CPP
797 RDYNAMIC
798 DLOPEN_LIB
799 OBJEXT
800 EXEEXT
801 ac_ct_CC
802 CPPFLAGS
803 LDFLAGS
804 CFLAGS
805 CC
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 E2FSPROGS_DATE
815 E2FSPROGS_PKGVER
816 E2FSPROGS_VERSION
817 E2FSPROGS_DAY
818 E2FSPROGS_MONTH
819 E2FSPROGS_YEAR
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 runstatedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='MCONFIG
860 MAKEFILE_ELF
861 MAKEFILE_BSDLIB
862 MAKEFILE_PROFILE
863 MAKEFILE_LIBRARY
864 ASM_TYPES_HEADER
865 PUBLIC_CONFIG_HEADER'
866 ac_user_opts='
867 enable_option_checking
868 with_diet_libc
869 with_cc
870 with_ccopts
871 with_ldopts
872 with_root_prefix
873 enable_maintainer_mode
874 enable_symlink_install
875 enable_relative_symlinks
876 enable_symlink_relative_symlinks
877 enable_symlink_build
878 enable_verbose_makecmds
879 enable_elf_shlibs
880 enable_bsd_shlibs
881 enable_profile
882 enable_gcov
883 enable_hardening
884 enable_jbd_debug
885 enable_blkid_debug
886 enable_testio_debug
887 enable_libuuid
888 enable_libblkid
889 enable_backtrace
890 enable_debugfs
891 enable_imager
892 enable_resizer
893 enable_defrag
894 enable_fsck
895 enable_e2initrd_helper
896 enable_tls
897 enable_uuidd
898 enable_mmp
899 enable_tdb
900 enable_bmap_stats
901 enable_bmap_stats_ops
902 enable_nls
903 enable_threads
904 with_gnu_ld
905 enable_rpath
906 with_libpth_prefix
907 with_libiconv_prefix
908 with_included_gettext
909 with_libintl_prefix
910 enable_fuse2fs
911 enable_lto
912 with_multiarch
913 with_udev_rules_dir
914 with_crond_dir
915 with_systemd_unit_dir
916 '
917       ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CPP
926 PKG_CONFIG
927 PKG_CONFIG_PATH
928 PKG_CONFIG_LIBDIR
929 udev_CFLAGS
930 udev_LIBS
931 systemd_CFLAGS
932 systemd_LIBS'
933
934
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 ac_unrecognized_opts=
939 ac_unrecognized_sep=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 runstatedir='${localstatedir}/run'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988   # If the previous option needs an argument, assign it.
989   if test -n "$ac_prev"; then
990     eval $ac_prev=\$ac_option
991     ac_prev=
992     continue
993   fi
994
995   case $ac_option in
996   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997   *=)   ac_optarg= ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error $? "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error $? "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -runstatedir | --runstatedir | --runstatedi | --runstated \
1225   | --runstate | --runstat | --runsta | --runst | --runs \
1226   | --run | --ru | --r)
1227     ac_prev=runstatedir ;;
1228   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1229   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1230   | --run=* | --ru=* | --r=*)
1231     runstatedir=$ac_optarg ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=\$ac_optarg ;;
1293
1294   -without-* | --without-*)
1295     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298       as_fn_error $? "invalid package name: $ac_useropt"
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1330     ;;
1331
1332   *=*)
1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334     # Reject names that are not valid shell variable names.
1335     case $ac_envvar in #(
1336       '' | [0-9]* | *[!_$as_cr_alnum]* )
1337       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338     esac
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   as_fn_error $? "missing argument to $ac_option"
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359   case $enable_option_checking in
1360     no) ;;
1361     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363   esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368                 datadir sysconfdir sharedstatedir localstatedir includedir \
1369                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370                 libdir localedir mandir runstatedir
1371 do
1372   eval ac_val=\$$ac_var
1373   # Remove trailing slashes.
1374   case $ac_val in
1375     */ )
1376       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377       eval $ac_var=\$ac_val;;
1378   esac
1379   # Be sure to have absolute directory names.
1380   case $ac_val in
1381     [\\/$]* | ?:[\\/]* )  continue;;
1382     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383   esac
1384   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1386
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1393
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396   if test "x$build_alias" = x; then
1397     cross_compiling=maybe
1398   elif test "x$build_alias" != "x$host_alias"; then
1399     cross_compiling=yes
1400   fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412   as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414   as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458         pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461   srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_env_${ac_var}_value=\$${ac_var}
1472   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480   # Omit some internal or obsolete options to make the list less imposing.
1481   # This message is too long to be a string in the A/UX 3.1 sh.
1482   cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE.  See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493   -h, --help              display this help and exit
1494       --help=short        display options specific to this package
1495       --help=recursive    display the short help of all the included packages
1496   -V, --version           display version information and exit
1497   -q, --quiet, --silent   do not print \`checking ...' messages
1498       --cache-file=FILE   cache test results in FILE [disabled]
1499   -C, --config-cache      alias for \`--cache-file=config.cache'
1500   -n, --no-create         do not create output files
1501       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504   --prefix=PREFIX         install architecture-independent files in PREFIX
1505                           [$ac_default_prefix]
1506   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1507                           [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517   --bindir=DIR            user executables [EPREFIX/bin]
1518   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1519   --libexecdir=DIR        program executables [EPREFIX/libexec]
1520   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1521   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1522   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1523   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1524   --libdir=DIR            object code libraries [EPREFIX/lib]
1525   --includedir=DIR        C header files [PREFIX/include]
1526   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1527   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1528   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1529   --infodir=DIR           info documentation [DATAROOTDIR/info]
1530   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1531   --mandir=DIR            man documentation [DATAROOTDIR/man]
1532   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1533   --htmldir=DIR           html documentation [DOCDIR]
1534   --dvidir=DIR            dvi documentation [DOCDIR]
1535   --pdfdir=DIR            pdf documentation [DOCDIR]
1536   --psdir=DIR             ps documentation [DOCDIR]
1537 _ACEOF
1538
1539   cat <<\_ACEOF
1540
1541 System types:
1542   --build=BUILD     configure for building on BUILD [guessed]
1543   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548
1549   cat <<\_ACEOF
1550
1551 Optional Features:
1552   --disable-option-checking  ignore unrecognized --enable/--with options
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --enable-maintainer-mode enable makefile rules useful for maintainers
1556   --enable-symlink-install use symlinks when installing instead of hard links
1557   --enable-relative-symlinks use relative symlinks when installing
1558
1559   --enable-symlink-build  use symlinks while building instead of hard links
1560   --enable-verbose-makecmds enable verbose make command output
1561   --enable-elf-shlibs     select ELF shared libraries
1562   --enable-bsd-shlibs     select BSD shared libraries
1563   --enable-profile        build profiling libraries
1564   --enable-gcov           build for coverage testing using gcov
1565   --enable-hardening              build for coverage testing using gcov
1566   --enable-jbd-debug      enable journal debugging
1567   --enable-blkid-debug    enable blkid debugging
1568   --disable-testio-debug  disable the use of the test I/O manager for debugging
1569   --enable-libuuid        build and use private uuid library
1570   --enable-libblkid       build and use private blkid library
1571   --disable-backtrace     disable use backtrace
1572   --disable-debugfs       disable support of debugfs program
1573   --disable-imager        disable support of e2image program
1574   --disable-resizer       disable support of e2resize program
1575   --disable-defrag        disable support of e4defrag program
1576   --enable-fsck           build fsck wrapper program
1577   --enable-e2initrd-helper build e2initrd-helper program
1578   --disable-tls           disable use of thread local support
1579   --disable-uuidd         disable building the uuid daemon
1580   --disable-mmp           disable support mmp, Multi Mount Protection
1581   --disable-tdb           disable tdb support
1582   --disable-bmap-stats    disable collection of bitmap stats.
1583   --enable-bmap-stats-ops enable collection of additional bitmap stats
1584   --disable-nls           do not use Native Language Support
1585   --enable-threads={posix|solaris|pth|windows}
1586                           specify multithreading API
1587   --disable-threads       build without multithread safety
1588   --disable-rpath         do not hardcode runtime library paths
1589   --disable-fuse2fs       do not build fuse2fs
1590   --enable-lto            enable link time optimization
1591
1592 Optional Packages:
1593   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1594   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1595   --with-diet-libc        use diet libc
1596   --with-cc               no longer supported, use CC= instead
1597   --with-ccopts           no longer supported, use CFLAGS= instead
1598   --with-ldopts           no longer supported, use LDFLAGS= instead
1599   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1600   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1601   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1602   --without-libpth-prefix     don't search for libpth in includedir and libdir
1603   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1604   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1605   --with-included-gettext use the GNU gettext library included here
1606   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1607   --without-libintl-prefix     don't search for libintl in includedir and libdir
1608   --with-multiarch=ARCH specify the multiarch triplet
1609   --with-udev-rules-dir[=DIR]
1610                           Install udev rules into DIR.
1611   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1612   --with-systemd-unit-dir[=DIR]
1613                           Install systemd system units into DIR.
1614
1615 Some influential environment variables:
1616   CC          C compiler command
1617   CFLAGS      C compiler flags
1618   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1619               nonstandard directory <lib dir>
1620   LIBS        libraries to pass to the linker, e.g. -l<library>
1621   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622               you have headers in a nonstandard directory <include dir>
1623   CPP         C preprocessor
1624   PKG_CONFIG  path to pkg-config utility
1625   PKG_CONFIG_PATH
1626               directories to add to pkg-config's search path
1627   PKG_CONFIG_LIBDIR
1628               path overriding pkg-config's built-in search path
1629   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1630   udev_LIBS   linker flags for udev, overriding pkg-config
1631   systemd_CFLAGS
1632               C compiler flags for systemd, overriding pkg-config
1633   systemd_LIBS
1634               linker flags for systemd, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645   # If there are subdirs, report their specific --help.
1646   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647     test -d "$ac_dir" ||
1648       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649       continue
1650     ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656   # A ".." for each directory in $ac_dir_suffix.
1657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658   case $ac_top_builddir_sub in
1659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661   esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669   .)  # We are building in place.
1670     ac_srcdir=.
1671     ac_top_srcdir=$ac_top_builddir_sub
1672     ac_abs_top_srcdir=$ac_pwd ;;
1673   [\\/]* | ?:[\\/]* )  # Absolute name.
1674     ac_srcdir=$srcdir$ac_dir_suffix;
1675     ac_top_srcdir=$srcdir
1676     ac_abs_top_srcdir=$srcdir ;;
1677   *) # Relative name.
1678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679     ac_top_srcdir=$ac_top_build_prefix$srcdir
1680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684     cd "$ac_dir" || { ac_status=$?; continue; }
1685     # Check for guested configure.
1686     if test -f "$ac_srcdir/configure.gnu"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689     elif test -f "$ac_srcdir/configure"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure" --help=recursive
1692     else
1693       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694     fi || ac_status=$?
1695     cd "$ac_pwd" || { ac_status=$?; break; }
1696   done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701   cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.69
1704
1705 Copyright (C) 2012 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709   exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext
1723   if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_compile") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest.$ac_objext; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750   as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_link ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext conftest$ac_exeext
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest$ac_exeext && {
1780          test "$cross_compiling" = yes ||
1781          test -x conftest$ac_exeext
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788         ac_retval=1
1789 fi
1790   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792   # interfere with the next link command; also delete a directory that is
1793   # left behind by Apple's compiler.  We do this before executing the actions.
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_link
1799
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_cpp ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809   *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814   ac_status=$?
1815   if test -s conftest.err; then
1816     grep -v '^ *+' conftest.err >conftest.er1
1817     cat conftest.er1 >&5
1818     mv -f conftest.er1 conftest.err
1819   fi
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; } > conftest.i && {
1822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823          test ! -s conftest.err
1824        }; then :
1825   ac_retval=0
1826 else
1827   $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830     ac_retval=1
1831 fi
1832   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833   as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_cpp
1836
1837 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840 # the include files in INCLUDES and setting the cache variable VAR
1841 # accordingly.
1842 ac_fn_c_check_header_mongrel ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   if eval \${$3+:} false; then :
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 fi
1851 eval ac_res=\$$3
1852                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 else
1855   # Is the header compilable?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857 $as_echo_n "checking $2 usability... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h.  */
1860 $4
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864   ac_header_compiler=yes
1865 else
1866   ac_header_compiler=no
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870 $as_echo "$ac_header_compiler" >&6; }
1871
1872 # Is the header present?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874 $as_echo_n "checking $2 presence... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_cpp "$LINENO"; then :
1880   ac_header_preproc=yes
1881 else
1882   ac_header_preproc=no
1883 fi
1884 rm -f conftest.err conftest.i conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886 $as_echo "$ac_header_preproc" >&6; }
1887
1888 # So?  What about this header?
1889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1890   yes:no: )
1891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895     ;;
1896   no:yes:* )
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1900 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1904 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907     ;;
1908 esac
1909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912   $as_echo_n "(cached) " >&6
1913 else
1914   eval "$3=\$ac_header_compiler"
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 fi
1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922 } # ac_fn_c_check_header_mongrel
1923
1924 # ac_fn_c_try_run LINENO
1925 # ----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927 # that executables *can* be run.
1928 ac_fn_c_try_run ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934   *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938   (eval "$ac_link") 2>&5
1939   ac_status=$?
1940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942   { { case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_try") 2>&5
1949   ac_status=$?
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; }; }; then :
1952   ac_retval=0
1953 else
1954   $as_echo "$as_me: program exited with status $ac_status" >&5
1955        $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958        ac_retval=$ac_status
1959 fi
1960   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_run
1965
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 $4
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984   eval "$3=yes"
1985 else
1986   eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_header_compile
1996
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2002 {
2003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007   $as_echo_n "(cached) " >&6
2008 else
2009   eval "$3=no"
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $4
2013 int
2014 main ()
2015 {
2016 if (sizeof ($2))
2017          return 0;
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 int
2027 main ()
2028 {
2029 if (sizeof (($2)))
2030             return 0;
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036
2037 else
2038   eval "$3=yes"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_type
2050
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func ()
2055 {
2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060   $as_echo_n "(cached) " >&6
2061 else
2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2066 #define $2 innocuous_$2
2067
2068 /* System header to define __stub macros and hopefully few prototypes,
2069     which can conflict with char $2 (); below.
2070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071     <limits.h> exists even on freestanding compilers.  */
2072
2073 #ifdef __STDC__
2074 # include <limits.h>
2075 #else
2076 # include <assert.h>
2077 #endif
2078
2079 #undef $2
2080
2081 /* Override any GCC internal prototype to avoid an error.
2082    Use char because int might match the return type of a GCC
2083    builtin and then its argument prototype would still apply.  */
2084 #ifdef __cplusplus
2085 extern "C"
2086 #endif
2087 char $2 ();
2088 /* The GNU C library defines this for functions which it implements
2089     to always fail with ENOSYS.  Some functions are actually named
2090     something starting with __ and the normal name is an alias.  */
2091 #if defined __stub_$2 || defined __stub___$2
2092 choke me
2093 #endif
2094
2095 int
2096 main ()
2097 {
2098 return $2 ();
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_link "$LINENO"; then :
2104   eval "$3=yes"
2105 else
2106   eval "$3=no"
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext \
2109     conftest$ac_exeext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_func
2117
2118 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2119 # ---------------------------------------------
2120 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2121 # accordingly.
2122 ac_fn_c_check_decl ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   as_decl_name=`echo $2|sed 's/ *(.*//'`
2126   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2129 if eval \${$3+:} false; then :
2130   $as_echo_n "(cached) " >&6
2131 else
2132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 int
2136 main ()
2137 {
2138 #ifndef $as_decl_name
2139 #ifdef __cplusplus
2140   (void) $as_decl_use;
2141 #else
2142   (void) $as_decl_name;
2143 #endif
2144 #endif
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   eval "$3=yes"
2152 else
2153   eval "$3=no"
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 eval ac_res=\$$3
2158                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161
2162 } # ac_fn_c_check_decl
2163
2164 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165 # --------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 # computed
2169 ac_fn_c_compute_int ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   if test "$cross_compiling" = yes; then
2173     # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2181 test_array [0] = 0;
2182 return test_array [0];
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   ac_lo=0 ac_mid=0
2190   while :; do
2191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_hi=$ac_mid; break
2207 else
2208   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209                         if test $ac_lo -le $ac_mid; then
2210                           ac_lo= ac_hi=
2211                           break
2212                         fi
2213                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216   done
2217 else
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $4
2221 int
2222 main ()
2223 {
2224 static int test_array [1 - 2 * !(($2) < 0)];
2225 test_array [0] = 0;
2226 return test_array [0];
2227
2228   ;
2229   return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233   ac_hi=-1 ac_mid=-1
2234   while :; do
2235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   ac_lo=$ac_mid; break
2251 else
2252   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253                         if test $ac_mid -le $ac_hi; then
2254                           ac_lo= ac_hi=
2255                           break
2256                         fi
2257                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260   done
2261 else
2262   ac_lo= ac_hi=
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h.  */
2272 $4
2273 int
2274 main ()
2275 {
2276 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 test_array [0] = 0;
2278 return test_array [0];
2279
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   ac_hi=$ac_mid
2286 else
2287   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 case $ac_lo in #((
2292 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 '') ac_retval=1 ;;
2294 esac
2295   else
2296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $4
2299 static long int longval () { return $2; }
2300 static unsigned long int ulongval () { return $2; }
2301 #include <stdio.h>
2302 #include <stdlib.h>
2303 int
2304 main ()
2305 {
2306
2307   FILE *f = fopen ("conftest.val", "w");
2308   if (! f)
2309     return 1;
2310   if (($2) < 0)
2311     {
2312       long int i = longval ();
2313       if (i != ($2))
2314         return 1;
2315       fprintf (f, "%ld", i);
2316     }
2317   else
2318     {
2319       unsigned long int i = ulongval ();
2320       if (i != ($2))
2321         return 1;
2322       fprintf (f, "%lu", i);
2323     }
2324   /* Do not output a trailing newline, as this causes \r\n confusion
2325      on some platforms.  */
2326   return ferror (f) || fclose (f) != 0;
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_run "$LINENO"; then :
2333   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 else
2335   ac_retval=1
2336 fi
2337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338   conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 rm -f conftest.val
2340
2341   fi
2342   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343   as_fn_set_status $ac_retval
2344
2345 } # ac_fn_c_compute_int
2346
2347 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2348 # ----------------------------------------------------
2349 # Tries to find if the field MEMBER exists in type AGGR, after including
2350 # INCLUDES, setting cache variable VAR accordingly.
2351 ac_fn_c_check_member ()
2352 {
2353   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2355 $as_echo_n "checking for $2.$3... " >&6; }
2356 if eval \${$4+:} false; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $5
2362 int
2363 main ()
2364 {
2365 static $2 ac_aggr;
2366 if (ac_aggr.$3)
2367 return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373   eval "$4=yes"
2374 else
2375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 $5
2378 int
2379 main ()
2380 {
2381 static $2 ac_aggr;
2382 if (sizeof ac_aggr.$3)
2383 return 0;
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   eval "$4=yes"
2390 else
2391   eval "$4=no"
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 fi
2397 eval ac_res=\$$4
2398                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 $as_echo "$ac_res" >&6; }
2400   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401
2402 } # ac_fn_c_check_member
2403 cat >config.log <<_ACEOF
2404 This file contains any messages produced by compilers while
2405 running configure, to aid debugging if configure makes a mistake.
2406
2407 It was created by $as_me, which was
2408 generated by GNU Autoconf 2.69.  Invocation command line was
2409
2410   $ $0 $@
2411
2412 _ACEOF
2413 exec 5>>config.log
2414 {
2415 cat <<_ASUNAME
2416 ## --------- ##
2417 ## Platform. ##
2418 ## --------- ##
2419
2420 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2421 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2422 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2423 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2424 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2425
2426 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2427 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2428
2429 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2430 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2431 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2432 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2433 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2434 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2435 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2436
2437 _ASUNAME
2438
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444     $as_echo "PATH: $as_dir"
2445   done
2446 IFS=$as_save_IFS
2447
2448 } >&5
2449
2450 cat >&5 <<_ACEOF
2451
2452
2453 ## ----------- ##
2454 ## Core tests. ##
2455 ## ----------- ##
2456
2457 _ACEOF
2458
2459
2460 # Keep a trace of the command line.
2461 # Strip out --no-create and --no-recursion so they do not pile up.
2462 # Strip out --silent because we don't want to record it for future runs.
2463 # Also quote any args containing shell meta-characters.
2464 # Make two passes to allow for proper duplicate-argument suppression.
2465 ac_configure_args=
2466 ac_configure_args0=
2467 ac_configure_args1=
2468 ac_must_keep_next=false
2469 for ac_pass in 1 2
2470 do
2471   for ac_arg
2472   do
2473     case $ac_arg in
2474     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2475     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2476     | -silent | --silent | --silen | --sile | --sil)
2477       continue ;;
2478     *\'*)
2479       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2480     esac
2481     case $ac_pass in
2482     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2483     2)
2484       as_fn_append ac_configure_args1 " '$ac_arg'"
2485       if test $ac_must_keep_next = true; then
2486         ac_must_keep_next=false # Got value, back to normal.
2487       else
2488         case $ac_arg in
2489           *=* | --config-cache | -C | -disable-* | --disable-* \
2490           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2491           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2492           | -with-* | --with-* | -without-* | --without-* | --x)
2493             case "$ac_configure_args0 " in
2494               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2495             esac
2496             ;;
2497           -* ) ac_must_keep_next=true ;;
2498         esac
2499       fi
2500       as_fn_append ac_configure_args " '$ac_arg'"
2501       ;;
2502     esac
2503   done
2504 done
2505 { ac_configure_args0=; unset ac_configure_args0;}
2506 { ac_configure_args1=; unset ac_configure_args1;}
2507
2508 # When interrupted or exit'd, cleanup temporary files, and complete
2509 # config.log.  We remove comments because anyway the quotes in there
2510 # would cause problems or look ugly.
2511 # WARNING: Use '\'' to represent an apostrophe within the trap.
2512 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2513 trap 'exit_status=$?
2514   # Save into config.log some information that might help in debugging.
2515   {
2516     echo
2517
2518     $as_echo "## ---------------- ##
2519 ## Cache variables. ##
2520 ## ---------------- ##"
2521     echo
2522     # The following way of writing the cache mishandles newlines in values,
2523 (
2524   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525     eval ac_val=\$$ac_var
2526     case $ac_val in #(
2527     *${as_nl}*)
2528       case $ac_var in #(
2529       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2531       esac
2532       case $ac_var in #(
2533       _ | IFS | as_nl) ;; #(
2534       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535       *) { eval $ac_var=; unset $ac_var;} ;;
2536       esac ;;
2537     esac
2538   done
2539   (set) 2>&1 |
2540     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541     *${as_nl}ac_space=\ *)
2542       sed -n \
2543         "s/'\''/'\''\\\\'\'''\''/g;
2544           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2545       ;; #(
2546     *)
2547       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2548       ;;
2549     esac |
2550     sort
2551 )
2552     echo
2553
2554     $as_echo "## ----------------- ##
2555 ## Output variables. ##
2556 ## ----------------- ##"
2557     echo
2558     for ac_var in $ac_subst_vars
2559     do
2560       eval ac_val=\$$ac_var
2561       case $ac_val in
2562       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563       esac
2564       $as_echo "$ac_var='\''$ac_val'\''"
2565     done | sort
2566     echo
2567
2568     if test -n "$ac_subst_files"; then
2569       $as_echo "## ------------------- ##
2570 ## File substitutions. ##
2571 ## ------------------- ##"
2572       echo
2573       for ac_var in $ac_subst_files
2574       do
2575         eval ac_val=\$$ac_var
2576         case $ac_val in
2577         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578         esac
2579         $as_echo "$ac_var='\''$ac_val'\''"
2580       done | sort
2581       echo
2582     fi
2583
2584     if test -s confdefs.h; then
2585       $as_echo "## ----------- ##
2586 ## confdefs.h. ##
2587 ## ----------- ##"
2588       echo
2589       cat confdefs.h
2590       echo
2591     fi
2592     test "$ac_signal" != 0 &&
2593       $as_echo "$as_me: caught signal $ac_signal"
2594     $as_echo "$as_me: exit $exit_status"
2595   } >&5
2596   rm -f core *.core core.conftest.* &&
2597     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2598     exit $exit_status
2599 ' 0
2600 for ac_signal in 1 2 13 15; do
2601   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2602 done
2603 ac_signal=0
2604
2605 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2606 rm -f -r conftest* confdefs.h
2607
2608 $as_echo "/* confdefs.h */" > confdefs.h
2609
2610 # Predefined preprocessor variables.
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_NAME "$PACKAGE_NAME"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2618 _ACEOF
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_STRING "$PACKAGE_STRING"
2626 _ACEOF
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2630 _ACEOF
2631
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_URL "$PACKAGE_URL"
2634 _ACEOF
2635
2636
2637 # Let the site file select an alternate cache file if it wants to.
2638 # Prefer an explicitly selected file to automatically selected ones.
2639 ac_site_file1=NONE
2640 ac_site_file2=NONE
2641 if test -n "$CONFIG_SITE"; then
2642   # We do not want a PATH search for config.site.
2643   case $CONFIG_SITE in #((
2644     -*)  ac_site_file1=./$CONFIG_SITE;;
2645     */*) ac_site_file1=$CONFIG_SITE;;
2646     *)   ac_site_file1=./$CONFIG_SITE;;
2647   esac
2648 elif test "x$prefix" != xNONE; then
2649   ac_site_file1=$prefix/share/config.site
2650   ac_site_file2=$prefix/etc/config.site
2651 else
2652   ac_site_file1=$ac_default_prefix/share/config.site
2653   ac_site_file2=$ac_default_prefix/etc/config.site
2654 fi
2655 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2656 do
2657   test "x$ac_site_file" = xNONE && continue
2658   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2660 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2661     sed 's/^/| /' "$ac_site_file" >&5
2662     . "$ac_site_file" \
2663       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 as_fn_error $? "failed to load site script $ac_site_file
2666 See \`config.log' for more details" "$LINENO" 5; }
2667   fi
2668 done
2669
2670 if test -r "$cache_file"; then
2671   # Some versions of bash will fail to source /dev/null (special files
2672   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2673   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2675 $as_echo "$as_me: loading cache $cache_file" >&6;}
2676     case $cache_file in
2677       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2678       *)                      . "./$cache_file";;
2679     esac
2680   fi
2681 else
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2683 $as_echo "$as_me: creating cache $cache_file" >&6;}
2684   >$cache_file
2685 fi
2686
2687 gt_needs="$gt_needs "
2688 as_fn_append ac_header_list " stdlib.h"
2689 as_fn_append ac_header_list " unistd.h"
2690 as_fn_append ac_header_list " sys/param.h"
2691 as_fn_append ac_func_list " symlink"
2692 # Check that the precious variables saved in the cache have kept the same
2693 # value.
2694 ac_cache_corrupted=false
2695 for ac_var in $ac_precious_vars; do
2696   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2697   eval ac_new_set=\$ac_env_${ac_var}_set
2698   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2699   eval ac_new_val=\$ac_env_${ac_var}_value
2700   case $ac_old_set,$ac_new_set in
2701     set,)
2702       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2703 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2704       ac_cache_corrupted=: ;;
2705     ,set)
2706       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2707 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2708       ac_cache_corrupted=: ;;
2709     ,);;
2710     *)
2711       if test "x$ac_old_val" != "x$ac_new_val"; then
2712         # differences in whitespace do not lead to failure.
2713         ac_old_val_w=`echo x $ac_old_val`
2714         ac_new_val_w=`echo x $ac_new_val`
2715         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2716           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2717 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2718           ac_cache_corrupted=:
2719         else
2720           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2721 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2722           eval $ac_var=\$ac_old_val
2723         fi
2724         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2725 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2726         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2727 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2728       fi;;
2729   esac
2730   # Pass precious variables to config.status.
2731   if test "$ac_new_set" = set; then
2732     case $ac_new_val in
2733     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2734     *) ac_arg=$ac_var=$ac_new_val ;;
2735     esac
2736     case " $ac_configure_args " in
2737       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2738       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2739     esac
2740   fi
2741 done
2742 if $ac_cache_corrupted; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2746 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2747   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2748 fi
2749 ## -------------------- ##
2750 ## Main body of script. ##
2751 ## -------------------- ##
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759
2760
2761 ac_aux_dir=
2762 for ac_dir in config "$srcdir"/config; do
2763   if test -f "$ac_dir/install-sh"; then
2764     ac_aux_dir=$ac_dir
2765     ac_install_sh="$ac_aux_dir/install-sh -c"
2766     break
2767   elif test -f "$ac_dir/install.sh"; then
2768     ac_aux_dir=$ac_dir
2769     ac_install_sh="$ac_aux_dir/install.sh -c"
2770     break
2771   elif test -f "$ac_dir/shtool"; then
2772     ac_aux_dir=$ac_dir
2773     ac_install_sh="$ac_aux_dir/shtool install -c"
2774     break
2775   fi
2776 done
2777 if test -z "$ac_aux_dir"; then
2778   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2779 fi
2780
2781 # These three variables are undocumented and unsupported,
2782 # and are intended to be withdrawn in a future Autoconf release.
2783 # They can cause serious problems if a builder's source tree is in a directory
2784 # whose full name contains unusual characters.
2785 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2786 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2787 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2788
2789
2790 ac_config_headers="$ac_config_headers lib/config.h"
2791
2792
2793 MCONFIG=./MCONFIG
2794
2795 BINARY_TYPE=bin
2796 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2797         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2798 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2799         | tr \" " " | awk '{print $1}'`
2800 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2801 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2802 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2803
2804 if expr $YEAR ">" 1900 > /dev/null ; then
2805         E2FSPROGS_YEAR=$YEAR
2806 elif expr $YEAR ">" 90 >/dev/null ; then
2807         E2FSPROGS_YEAR=19$YEAR
2808 else
2809         E2FSPROGS_YEAR=20$YEAR
2810 fi
2811
2812 case $MONTH in
2813 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2814 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2815 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2816 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2817 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2818 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2819 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2820 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2821 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2822 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2823 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2824 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2825 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2826 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2827 esac
2828
2829 base_ver=`echo $E2FSPROGS_VERSION | \
2830                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2831
2832 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2833
2834 case $E2FSPROGS_VERSION in
2835 *-WIP|pre-*)
2836         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2837         ;;
2838 *)
2839         E2FSPROGS_PKGVER="$base_ver"
2840         ;;
2841 esac
2842
2843 unset DATE MONTH YEAR base_ver pre_vers date_spec
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2845 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2847 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2848
2849
2850
2851
2852
2853
2854 WITH_DIET_LIBC=
2855
2856 # Check whether --with-diet-libc was given.
2857 if test "${with_diet_libc+set}" = set; then :
2858   withval=$with_diet_libc; CC="diet cc -nostdinc"
2859 WITH_DIET_LIBC=yes
2860 if test -z "$LIBS"
2861 then
2862         LIBS="-lcompat"
2863 else
2864         LIBS="$LIBS -lcompat"
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2867 $as_echo "CC=$CC" >&6; }
2868 fi
2869 # Make sure we can run config.sub.
2870 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2871   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2874 $as_echo_n "checking build system type... " >&6; }
2875 if ${ac_cv_build+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   ac_build_alias=$build_alias
2879 test "x$ac_build_alias" = x &&
2880   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2881 test "x$ac_build_alias" = x &&
2882   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2883 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2884   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2885
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2888 $as_echo "$ac_cv_build" >&6; }
2889 case $ac_cv_build in
2890 *-*-*) ;;
2891 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2892 esac
2893 build=$ac_cv_build
2894 ac_save_IFS=$IFS; IFS='-'
2895 set x $ac_cv_build
2896 shift
2897 build_cpu=$1
2898 build_vendor=$2
2899 shift; shift
2900 # Remember, the first character of IFS is used to create $*,
2901 # except with old shells:
2902 build_os=$*
2903 IFS=$ac_save_IFS
2904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2905
2906
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2908 $as_echo_n "checking host system type... " >&6; }
2909 if ${ac_cv_host+:} false; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   if test "x$host_alias" = x; then
2913   ac_cv_host=$ac_cv_build
2914 else
2915   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2916     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2917 fi
2918
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2921 $as_echo "$ac_cv_host" >&6; }
2922 case $ac_cv_host in
2923 *-*-*) ;;
2924 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2925 esac
2926 host=$ac_cv_host
2927 ac_save_IFS=$IFS; IFS='-'
2928 set x $ac_cv_host
2929 shift
2930 host_cpu=$1
2931 host_vendor=$2
2932 shift; shift
2933 # Remember, the first character of IFS is used to create $*,
2934 # except with old shells:
2935 host_os=$*
2936 IFS=$ac_save_IFS
2937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2938
2939
2940 DLOPEN_LIB=''
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 if test -n "$ac_tool_prefix"; then
2947   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_CC+:} false; then :
2952   $as_echo_n "(cached) " >&6
2953 else
2954   if test -n "$CC"; then
2955   ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962     for ac_exec_ext in '' $ac_executable_extensions; do
2963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966     break 2
2967   fi
2968 done
2969   done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2978 else
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 if test -z "$ac_cv_prog_CC"; then
2986   ac_ct_CC=$CC
2987   # Extract the first word of "gcc", so it can be a program name with args.
2988 set dummy gcc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992   $as_echo_n "(cached) " >&6
2993 else
2994   if test -n "$ac_ct_CC"; then
2995   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000   IFS=$as_save_IFS
3001   test -z "$as_dir" && as_dir=.
3002     for ac_exec_ext in '' $ac_executable_extensions; do
3003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004     ac_cv_prog_ac_ct_CC="gcc"
3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006     break 2
3007   fi
3008 done
3009   done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017 $as_echo "$ac_ct_CC" >&6; }
3018 else
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023   if test "x$ac_ct_CC" = x; then
3024     CC=""
3025   else
3026     case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032     CC=$ac_ct_CC
3033   fi
3034 else
3035   CC="$ac_cv_prog_CC"
3036 fi
3037
3038 if test -z "$CC"; then
3039           if test -n "$ac_tool_prefix"; then
3040     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}cc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$CC"; then
3048   ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057     ac_cv_prog_CC="${ac_tool_prefix}cc"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077   fi
3078 fi
3079 if test -z "$CC"; then
3080   # Extract the first word of "cc", so it can be a program name with args.
3081 set dummy cc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test -n "$CC"; then
3088   ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090   ac_prog_rejected=no
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094   IFS=$as_save_IFS
3095   test -z "$as_dir" && as_dir=.
3096     for ac_exec_ext in '' $ac_executable_extensions; do
3097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099        ac_prog_rejected=yes
3100        continue
3101      fi
3102     ac_cv_prog_CC="cc"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 if test $ac_prog_rejected = yes; then
3111   # We found a bogon in the path, so make sure we never use it.
3112   set dummy $ac_cv_prog_CC
3113   shift
3114   if test $# != 0; then
3115     # We chose a different compiler from the bogus one.
3116     # However, it has the same basename, so the bogon will be chosen
3117     # first if we set CC to just the basename; use the full file name.
3118     shift
3119     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120   fi
3121 fi
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 if test -z "$CC"; then
3136   if test -n "$ac_tool_prefix"; then
3137   for ac_prog in cl.exe
3138   do
3139     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3144   $as_echo_n "(cached) " >&6
3145 else
3146   if test -n "$CC"; then
3147   ac_cv_prog_CC="$CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154     for ac_exec_ext in '' $ac_executable_extensions; do
3155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176     test -n "$CC" && break
3177   done
3178 fi
3179 if test -z "$CC"; then
3180   ac_ct_CC=$CC
3181   for ac_prog in cl.exe
3182 do
3183   # Extract the first word of "$ac_prog", so it can be a program name with args.
3184 set dummy $ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$ac_ct_CC"; then
3191   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200     ac_cv_prog_ac_ct_CC="$ac_prog"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213 $as_echo "$ac_ct_CC" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220   test -n "$ac_ct_CC" && break
3221 done
3222
3223   if test "x$ac_ct_CC" = x; then
3224     CC=""
3225   else
3226     case $cross_compiling:$ac_tool_warned in
3227 yes:)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230 ac_tool_warned=yes ;;
3231 esac
3232     CC=$ac_ct_CC
3233   fi
3234 fi
3235
3236 fi
3237
3238
3239 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details" "$LINENO" 5; }
3243
3244 # Provide some information about the compiler.
3245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246 set X $ac_compile
3247 ac_compiler=$2
3248 for ac_option in --version -v -V -qversion; do
3249   { { ac_try="$ac_compiler $ac_option >&5"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3257   ac_status=$?
3258   if test -s conftest.err; then
3259     sed '10a\
3260 ... rest of stderr output deleted ...
3261          10q' conftest.err >conftest.er1
3262     cat conftest.er1 >&5
3263   fi
3264   rm -f conftest.er1 conftest.err
3265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266   test $ac_status = 0; }
3267 done
3268
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h.  */
3271
3272 int
3273 main ()
3274 {
3275
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 ac_clean_files_save=$ac_clean_files
3281 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282 # Try to create an executable without -o first, disregard a.out.
3283 # It will help us diagnose broken compilers, and finding out an intuition
3284 # of exeext.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286 $as_echo_n "checking whether the C compiler works... " >&6; }
3287 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289 # The possible output files:
3290 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
3292 ac_rmfiles=
3293 for ac_file in $ac_files
3294 do
3295   case $ac_file in
3296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298   esac
3299 done
3300 rm -f $ac_rmfiles
3301
3302 if { { ac_try="$ac_link_default"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309   (eval "$ac_link_default") 2>&5
3310   ac_status=$?
3311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312   test $ac_status = 0; }; then :
3313   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3316 # so that the user can short-circuit this test for compilers unknown to
3317 # Autoconf.
3318 for ac_file in $ac_files ''
3319 do
3320   test -f "$ac_file" || continue
3321   case $ac_file in
3322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323         ;;
3324     [ab].out )
3325         # We found the default executable, but exeext='' is most
3326         # certainly right.
3327         break;;
3328     *.* )
3329         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330         then :; else
3331            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332         fi
3333         # We set ac_cv_exeext here because the later test for it is not
3334         # safe: cross compilers may not add the suffix if given an `-o'
3335         # argument, so we may need to know it at that point already.
3336         # Even if this section looks crufty: it has the advantage of
3337         # actually working.
3338         break;;
3339     * )
3340         break;;
3341   esac
3342 done
3343 test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
3345 else
3346   ac_file=''
3347 fi
3348 if test -z "$ac_file"; then :
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error 77 "C compiler cannot create executables
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363 $as_echo_n "checking for C compiler default output file name... " >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365 $as_echo "$ac_file" >&6; }
3366 ac_exeext=$ac_cv_exeext
3367
3368 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371 $as_echo_n "checking for suffix of executables... " >&6; }
3372 if { { ac_try="$ac_link"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_link") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; then :
3383   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3385 # work properly (i.e., refer to `conftest.exe'), while it won't with
3386 # `rm'.
3387 for ac_file in conftest.exe conftest conftest.*; do
3388   test -f "$ac_file" || continue
3389   case $ac_file in
3390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392           break;;
3393     * ) break;;
3394   esac
3395 done
3396 else
3397   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 fi
3402 rm -f conftest conftest$ac_cv_exeext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404 $as_echo "$ac_cv_exeext" >&6; }
3405
3406 rm -f conftest.$ac_ext
3407 EXEEXT=$ac_cv_exeext
3408 ac_exeext=$EXEEXT
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h.  */
3411 #include <stdio.h>
3412 int
3413 main ()
3414 {
3415 FILE *f = fopen ("conftest.out", "w");
3416  return ferror (f) || fclose (f) != 0;
3417
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 ac_clean_files="$ac_clean_files conftest.out"
3423 # Check that the compiler produces executables we can run.  If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 if test "$cross_compiling" != yes; then
3428   { { ac_try="$ac_link"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_link") 2>&5
3436   ac_status=$?
3437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438   test $ac_status = 0; }
3439   if { ac_try='./conftest$ac_cv_exeext'
3440   { { case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446   (eval "$ac_try") 2>&5
3447   ac_status=$?
3448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449   test $ac_status = 0; }; }; then
3450     cross_compiling=no
3451   else
3452     if test "$cross_compiling" = maybe; then
3453         cross_compiling=yes
3454     else
3455         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot run C compiled programs.
3458 If you meant to cross compile, use \`--host'.
3459 See \`config.log' for more details" "$LINENO" 5; }
3460     fi
3461   fi
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464 $as_echo "$cross_compiling" >&6; }
3465
3466 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467 ac_clean_files=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if ${ac_cv_objext+:} false; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.o conftest.obj
3485 if { { ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492   (eval "$ac_compile") 2>&5
3493   ac_status=$?
3494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495   test $ac_status = 0; }; then :
3496   for ac_file in conftest.o conftest.obj conftest.*; do
3497   test -f "$ac_file" || continue;
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501        break;;
3502   esac
3503 done
3504 else
3505   $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details" "$LINENO" 5; }
3512 fi
3513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516 $as_echo "$ac_cv_objext" >&6; }
3517 OBJEXT=$ac_cv_objext
3518 ac_objext=$OBJEXT
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521 if ${ac_cv_c_compiler_gnu+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530 #ifndef __GNUC__
3531        choke me
3532 #endif
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539   ac_compiler_gnu=yes
3540 else
3541   ac_compiler_gnu=no
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549 if test $ac_compiler_gnu = yes; then
3550   GCC=yes
3551 else
3552   GCC=
3553 fi
3554 ac_test_CFLAGS=${CFLAGS+set}
3555 ac_save_CFLAGS=$CFLAGS
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3558 if ${ac_cv_prog_cc_g+:} false; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   ac_save_c_werror_flag=$ac_c_werror_flag
3562    ac_c_werror_flag=yes
3563    ac_cv_prog_cc_g=no
3564    CFLAGS="-g"
3565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h.  */
3567
3568 int
3569 main ()
3570 {
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577   ac_cv_prog_cc_g=yes
3578 else
3579   CFLAGS=""
3580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592
3593 else
3594   ac_c_werror_flag=$ac_save_c_werror_flag
3595          CFLAGS="-g"
3596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608   ac_cv_prog_cc_g=yes
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615    ac_c_werror_flag=$ac_save_c_werror_flag
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618 $as_echo "$ac_cv_prog_cc_g" >&6; }
3619 if test "$ac_test_CFLAGS" = set; then
3620   CFLAGS=$ac_save_CFLAGS
3621 elif test $ac_cv_prog_cc_g = yes; then
3622   if test "$GCC" = yes; then
3623     CFLAGS="-g -O2"
3624   else
3625     CFLAGS="-g"
3626   fi
3627 else
3628   if test "$GCC" = yes; then
3629     CFLAGS="-O2"
3630   else
3631     CFLAGS=
3632   fi
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636 if ${ac_cv_prog_cc_c89+:} false; then :
3637   $as_echo_n "(cached) " >&6
3638 else
3639   ac_cv_prog_cc_c89=no
3640 ac_save_CC=$CC
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643 #include <stdarg.h>
3644 #include <stdio.h>
3645 struct stat;
3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3647 struct buf { int x; };
3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649 static char *e (p, i)
3650      char **p;
3651      int i;
3652 {
3653   return p[i];
3654 }
3655 static char *f (char * (*g) (char **, int), char **p, ...)
3656 {
3657   char *s;
3658   va_list v;
3659   va_start (v,p);
3660   s = g (p, va_arg (v,int));
3661   va_end (v);
3662   return s;
3663 }
3664
3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3666    function prototypes and stuff, but not '\xHH' hex character constants.
3667    These don't provoke an error unfortunately, instead are silently treated
3668    as 'x'.  The following induces an error, until -std is added to get
3669    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3670    array size at least.  It's necessary to write '\x00'==0 to get something
3671    that's true only with -std.  */
3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675    inside strings and character constants.  */
3676 #define FOO(x) 'x'
3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
3679 int test (int i, double x);
3680 struct s1 {int (*f) (int a);};
3681 struct s2 {int (*f) (double a);};
3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683 int argc;
3684 char **argv;
3685 int
3686 main ()
3687 {
3688 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3695 do
3696   CC="$ac_save_CC $ac_arg"
3697   if ac_fn_c_try_compile "$LINENO"; then :
3698   ac_cv_prog_cc_c89=$ac_arg
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext
3701   test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 done
3703 rm -f conftest.$ac_ext
3704 CC=$ac_save_CC
3705
3706 fi
3707 # AC_CACHE_VAL
3708 case "x$ac_cv_prog_cc_c89" in
3709   x)
3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711 $as_echo "none needed" >&6; } ;;
3712   xno)
3713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714 $as_echo "unsupported" >&6; } ;;
3715   *)
3716     CC="$CC $ac_cv_prog_cc_c89"
3717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719 esac
3720 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721
3722 fi
3723
3724 ac_ext=c
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3733 if ${ac_cv_lib_dl_dlopen+:} false; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   ac_check_lib_save_LIBS=$LIBS
3737 LIBS="-ldl  $LIBS"
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h.  */
3740
3741 /* Override any GCC internal prototype to avoid an error.
3742    Use char because int might match the return type of a GCC
3743    builtin and then its argument prototype would still apply.  */
3744 #ifdef __cplusplus
3745 extern "C"
3746 #endif
3747 char dlopen ();
3748 int
3749 main ()
3750 {
3751 return dlopen ();
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 if ac_fn_c_try_link "$LINENO"; then :
3757   ac_cv_lib_dl_dlopen=yes
3758 else
3759   ac_cv_lib_dl_dlopen=no
3760 fi
3761 rm -f core conftest.err conftest.$ac_objext \
3762     conftest$ac_exeext conftest.$ac_ext
3763 LIBS=$ac_check_lib_save_LIBS
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3768   DLOPEN_LIB=-ldl
3769 fi
3770
3771
3772
3773 # Check whether --with-cc was given.
3774 if test "${with_cc+set}" = set; then :
3775   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3776 fi
3777
3778
3779 # Check whether --with-ccopts was given.
3780 if test "${with_ccopts+set}" = set; then :
3781   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3782 fi
3783
3784
3785 # Check whether --with-ldopts was given.
3786 if test "${with_ldopts+set}" = set; then :
3787   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3788 fi
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811     for ac_exec_ext in '' $ac_executable_extensions; do
3812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818   done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 CC=$ac_cv_prog_CC
3824 if test -n "$CC"; then
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3827 else
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832
3833 fi
3834 if test -z "$ac_cv_prog_CC"; then
3835   ac_ct_CC=$CC
3836   # Extract the first word of "gcc", so it can be a program name with args.
3837 set dummy gcc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   if test -n "$ac_ct_CC"; then
3844   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_ac_ct_CC="gcc"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864 if test -n "$ac_ct_CC"; then
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866 $as_echo "$ac_ct_CC" >&6; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872   if test "x$ac_ct_CC" = x; then
3873     CC=""
3874   else
3875     case $cross_compiling:$ac_tool_warned in
3876 yes:)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879 ac_tool_warned=yes ;;
3880 esac
3881     CC=$ac_ct_CC
3882   fi
3883 else
3884   CC="$ac_cv_prog_CC"
3885 fi
3886
3887 if test -z "$CC"; then
3888           if test -n "$ac_tool_prefix"; then
3889     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}cc; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$CC"; then
3897   ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906     ac_cv_prog_CC="${ac_tool_prefix}cc"
3907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911   done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926   fi
3927 fi
3928 if test -z "$CC"; then
3929   # Extract the first word of "cc", so it can be a program name with args.
3930 set dummy cc; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_CC+:} false; then :
3934   $as_echo_n "(cached) " >&6
3935 else
3936   if test -n "$CC"; then
3937   ac_cv_prog_CC="$CC" # Let the user override the test.
3938 else
3939   ac_prog_rejected=no
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945     for ac_exec_ext in '' $ac_executable_extensions; do
3946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948        ac_prog_rejected=yes
3949        continue
3950      fi
3951     ac_cv_prog_CC="cc"
3952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956   done
3957 IFS=$as_save_IFS
3958
3959 if test $ac_prog_rejected = yes; then
3960   # We found a bogon in the path, so make sure we never use it.
3961   set dummy $ac_cv_prog_CC
3962   shift
3963   if test $# != 0; then
3964     # We chose a different compiler from the bogus one.
3965     # However, it has the same basename, so the bogon will be chosen
3966     # first if we set CC to just the basename; use the full file name.
3967     shift
3968     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3969   fi
3970 fi
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 fi
3984 if test -z "$CC"; then
3985   if test -n "$ac_tool_prefix"; then
3986   for ac_prog in cl.exe
3987   do
3988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_CC+:} false; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   if test -n "$CC"; then
3996   ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001   IFS=$as_save_IFS
4002   test -z "$as_dir" && as_dir=.
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007     break 2
4008   fi
4009 done
4010   done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025     test -n "$CC" && break
4026   done
4027 fi
4028 if test -z "$CC"; then
4029   ac_ct_CC=$CC
4030   for ac_prog in cl.exe
4031 do
4032   # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$ac_ct_CC"; then
4040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047     for ac_exec_ext in '' $ac_executable_extensions; do
4048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     ac_cv_prog_ac_ct_CC="$ac_prog"
4050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054   done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4063 else
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069   test -n "$ac_ct_CC" && break
4070 done
4071
4072   if test "x$ac_ct_CC" = x; then
4073     CC=""
4074   else
4075     case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081     CC=$ac_ct_CC
4082   fi
4083 fi
4084
4085 fi
4086
4087
4088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error $? "no acceptable C compiler found in \$PATH
4091 See \`config.log' for more details" "$LINENO" 5; }
4092
4093 # Provide some information about the compiler.
4094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095 set X $ac_compile
4096 ac_compiler=$2
4097 for ac_option in --version -v -V -qversion; do
4098   { { ac_try="$ac_compiler $ac_option >&5"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4106   ac_status=$?
4107   if test -s conftest.err; then
4108     sed '10a\
4109 ... rest of stderr output deleted ...
4110          10q' conftest.err >conftest.er1
4111     cat conftest.er1 >&5
4112   fi
4113   rm -f conftest.er1 conftest.err
4114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115   test $ac_status = 0; }
4116 done
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4120 if ${ac_cv_c_compiler_gnu+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125
4126 int
4127 main ()
4128 {
4129 #ifndef __GNUC__
4130        choke me
4131 #endif
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138   ac_compiler_gnu=yes
4139 else
4140   ac_compiler_gnu=no
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4144
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4148 if test $ac_compiler_gnu = yes; then
4149   GCC=yes
4150 else
4151   GCC=
4152 fi
4153 ac_test_CFLAGS=${CFLAGS+set}
4154 ac_save_CFLAGS=$CFLAGS
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4157 if ${ac_cv_prog_cc_g+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   ac_save_c_werror_flag=$ac_c_werror_flag
4161    ac_c_werror_flag=yes
4162    ac_cv_prog_cc_g=no
4163    CFLAGS="-g"
4164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166
4167 int
4168 main ()
4169 {
4170
4171   ;
4172   return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176   ac_cv_prog_cc_g=yes
4177 else
4178   CFLAGS=""
4179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191
4192 else
4193   ac_c_werror_flag=$ac_save_c_werror_flag
4194          CFLAGS="-g"
4195          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207   ac_cv_prog_cc_g=yes
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214    ac_c_werror_flag=$ac_save_c_werror_flag
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4217 $as_echo "$ac_cv_prog_cc_g" >&6; }
4218 if test "$ac_test_CFLAGS" = set; then
4219   CFLAGS=$ac_save_CFLAGS
4220 elif test $ac_cv_prog_cc_g = yes; then
4221   if test "$GCC" = yes; then
4222     CFLAGS="-g -O2"
4223   else
4224     CFLAGS="-g"
4225   fi
4226 else
4227   if test "$GCC" = yes; then
4228     CFLAGS="-O2"
4229   else
4230     CFLAGS=
4231   fi
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4235 if ${ac_cv_prog_cc_c89+:} false; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   ac_cv_prog_cc_c89=no
4239 ac_save_CC=$CC
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242 #include <stdarg.h>
4243 #include <stdio.h>
4244 struct stat;
4245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4246 struct buf { int x; };
4247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248 static char *e (p, i)
4249      char **p;
4250      int i;
4251 {
4252   return p[i];
4253 }
4254 static char *f (char * (*g) (char **, int), char **p, ...)
4255 {
4256   char *s;
4257   va_list v;
4258   va_start (v,p);
4259   s = g (p, va_arg (v,int));
4260   va_end (v);
4261   return s;
4262 }
4263
4264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4265    function prototypes and stuff, but not '\xHH' hex character constants.
4266    These don't provoke an error unfortunately, instead are silently treated
4267    as 'x'.  The following induces an error, until -std is added to get
4268    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4269    array size at least.  It's necessary to write '\x00'==0 to get something
4270    that's true only with -std.  */
4271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4272
4273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274    inside strings and character constants.  */
4275 #define FOO(x) 'x'
4276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4277
4278 int test (int i, double x);
4279 struct s1 {int (*f) (int a);};
4280 struct s2 {int (*f) (double a);};
4281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4282 int argc;
4283 char **argv;
4284 int
4285 main ()
4286 {
4287 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294 do
4295   CC="$ac_save_CC $ac_arg"
4296   if ac_fn_c_try_compile "$LINENO"; then :
4297   ac_cv_prog_cc_c89=$ac_arg
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext
4300   test "x$ac_cv_prog_cc_c89" != "xno" && break
4301 done
4302 rm -f conftest.$ac_ext
4303 CC=$ac_save_CC
4304
4305 fi
4306 # AC_CACHE_VAL
4307 case "x$ac_cv_prog_cc_c89" in
4308   x)
4309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4310 $as_echo "none needed" >&6; } ;;
4311   xno)
4312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313 $as_echo "unsupported" >&6; } ;;
4314   *)
4315     CC="$CC $ac_cv_prog_cc_c89"
4316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4317 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4318 esac
4319 if test "x$ac_cv_prog_cc_c89" != xno; then :
4320
4321 fi
4322
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329 if test "$GCC" = yes; then
4330    RDYNAMIC="-rdynamic"
4331
4332 fi
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4340 # On Suns, sometimes $CPP names a directory.
4341 if test -n "$CPP" && test -d "$CPP"; then
4342   CPP=
4343 fi
4344 if test -z "$CPP"; then
4345   if ${ac_cv_prog_CPP+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348       # Double quotes because CPP needs to be expanded
4349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4350     do
4351       ac_preproc_ok=false
4352 for ac_c_preproc_warn_flag in '' yes
4353 do
4354   # Use a header file that comes with gcc, so configuring glibc
4355   # with a fresh cross-compiler works.
4356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4357   # <limits.h> exists even on freestanding compilers.
4358   # On the NeXT, cc -E runs the code through the compiler's parser,
4359   # not just through cpp. "Syntax error" is here to catch this case.
4360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h.  */
4362 #ifdef __STDC__
4363 # include <limits.h>
4364 #else
4365 # include <assert.h>
4366 #endif
4367                      Syntax error
4368 _ACEOF
4369 if ac_fn_c_try_cpp "$LINENO"; then :
4370
4371 else
4372   # Broken: fails on valid input.
4373 continue
4374 fi
4375 rm -f conftest.err conftest.i conftest.$ac_ext
4376
4377   # OK, works on sane cases.  Now check whether nonexistent headers
4378   # can be detected and how.
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 #include <ac_nonexistent.h>
4382 _ACEOF
4383 if ac_fn_c_try_cpp "$LINENO"; then :
4384   # Broken: success on invalid input.
4385 continue
4386 else
4387   # Passes both tests.
4388 ac_preproc_ok=:
4389 break
4390 fi
4391 rm -f conftest.err conftest.i conftest.$ac_ext
4392
4393 done
4394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4395 rm -f conftest.i conftest.err conftest.$ac_ext
4396 if $ac_preproc_ok; then :
4397   break
4398 fi
4399
4400     done
4401     ac_cv_prog_CPP=$CPP
4402
4403 fi
4404   CPP=$ac_cv_prog_CPP
4405 else
4406   ac_cv_prog_CPP=$CPP
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4409 $as_echo "$CPP" >&6; }
4410 ac_preproc_ok=false
4411 for ac_c_preproc_warn_flag in '' yes
4412 do
4413   # Use a header file that comes with gcc, so configuring glibc
4414   # with a fresh cross-compiler works.
4415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416   # <limits.h> exists even on freestanding compilers.
4417   # On the NeXT, cc -E runs the code through the compiler's parser,
4418   # not just through cpp. "Syntax error" is here to catch this case.
4419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421 #ifdef __STDC__
4422 # include <limits.h>
4423 #else
4424 # include <assert.h>
4425 #endif
4426                      Syntax error
4427 _ACEOF
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4429
4430 else
4431   # Broken: fails on valid input.
4432 continue
4433 fi
4434 rm -f conftest.err conftest.i conftest.$ac_ext
4435
4436   # OK, works on sane cases.  Now check whether nonexistent headers
4437   # can be detected and how.
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440 #include <ac_nonexistent.h>
4441 _ACEOF
4442 if ac_fn_c_try_cpp "$LINENO"; then :
4443   # Broken: success on invalid input.
4444 continue
4445 else
4446   # Passes both tests.
4447 ac_preproc_ok=:
4448 break
4449 fi
4450 rm -f conftest.err conftest.i conftest.$ac_ext
4451
4452 done
4453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4454 rm -f conftest.i conftest.err conftest.$ac_ext
4455 if $ac_preproc_ok; then :
4456
4457 else
4458   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4461 See \`config.log' for more details" "$LINENO" 5; }
4462 fi
4463
4464 ac_ext=c
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4471 $as_echo_n "checking for additional special compiler flags... " >&6; }
4472 if test "$GCC" = yes
4473 then
4474     case "$host_cpu" in
4475         alpha)          addcflags="-mieee" ;;
4476     esac
4477 fi
4478 if test "x$addcflags" != x
4479 then
4480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4481 $as_echo "$addcflags" >&6; }
4482     CFLAGS="$addcflags $CFLAGS"
4483 else
4484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4485 $as_echo "(none)" >&6; }
4486 fi
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if ${ac_cv_path_GREP+:} false; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   if test -z "$GREP"; then
4494   ac_path_GREP_found=false
4495   # Loop through the user's path and test for each of PROGNAME-LIST
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501     for ac_prog in grep ggrep; do
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504       as_fn_executable_p "$ac_path_GREP" || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506   # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4508 *GNU*)
4509   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510 *)
4511   ac_count=0
4512   $as_echo_n 0123456789 >"conftest.in"
4513   while :
4514   do
4515     cat "conftest.in" "conftest.in" >"conftest.tmp"
4516     mv "conftest.tmp" "conftest.in"
4517     cp "conftest.in" "conftest.nl"
4518     $as_echo 'GREP' >> "conftest.nl"
4519     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521     as_fn_arith $ac_count + 1 && ac_count=$as_val
4522     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523       # Best one so far, save it but keep looking for a better one
4524       ac_cv_path_GREP="$ac_path_GREP"
4525       ac_path_GREP_max=$ac_count
4526     fi
4527     # 10*(2^10) chars as input seems more than enough
4528     test $ac_count -gt 10 && break
4529   done
4530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533       $ac_path_GREP_found && break 3
4534     done
4535   done
4536   done
4537 IFS=$as_save_IFS
4538   if test -z "$ac_cv_path_GREP"; then
4539     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540   fi
4541 else
4542   ac_cv_path_GREP=$GREP
4543 fi
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548  GREP="$ac_cv_path_GREP"
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if ${ac_cv_path_EGREP+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557    then ac_cv_path_EGREP="$GREP -E"
4558    else
4559      if test -z "$EGREP"; then
4560   ac_path_EGREP_found=false
4561   # Loop through the user's path and test for each of PROGNAME-LIST
4562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567     for ac_prog in egrep; do
4568     for ac_exec_ext in '' $ac_executable_extensions; do
4569       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570       as_fn_executable_p "$ac_path_EGREP" || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572   # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4574 *GNU*)
4575   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576 *)
4577   ac_count=0
4578   $as_echo_n 0123456789 >"conftest.in"
4579   while :
4580   do
4581     cat "conftest.in" "conftest.in" >"conftest.tmp"
4582     mv "conftest.tmp" "conftest.in"
4583     cp "conftest.in" "conftest.nl"
4584     $as_echo 'EGREP' >> "conftest.nl"
4585     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587     as_fn_arith $ac_count + 1 && ac_count=$as_val
4588     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589       # Best one so far, save it but keep looking for a better one
4590       ac_cv_path_EGREP="$ac_path_EGREP"
4591       ac_path_EGREP_max=$ac_count
4592     fi
4593     # 10*(2^10) chars as input seems more than enough
4594     test $ac_count -gt 10 && break
4595   done
4596   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4598
4599       $ac_path_EGREP_found && break 3
4600     done
4601   done
4602   done
4603 IFS=$as_save_IFS
4604   if test -z "$ac_cv_path_EGREP"; then
4605     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606   fi
4607 else
4608   ac_cv_path_EGREP=$EGREP
4609 fi
4610
4611    fi
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615  EGREP="$ac_cv_path_EGREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619 $as_echo_n "checking for ANSI C header files... " >&6; }
4620 if ${ac_cv_header_stdc+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625 #include <stdlib.h>
4626 #include <stdarg.h>
4627 #include <string.h>
4628 #include <float.h>
4629
4630 int
4631 main ()
4632 {
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639   ac_cv_header_stdc=yes
4640 else
4641   ac_cv_header_stdc=no
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644
4645 if test $ac_cv_header_stdc = yes; then
4646   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649 #include <string.h>
4650
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653   $EGREP "memchr" >/dev/null 2>&1; then :
4654
4655 else
4656   ac_cv_header_stdc=no
4657 fi
4658 rm -f conftest*
4659
4660 fi
4661
4662 if test $ac_cv_header_stdc = yes; then
4663   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <stdlib.h>
4667
4668 _ACEOF
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670   $EGREP "free" >/dev/null 2>&1; then :
4671
4672 else
4673   ac_cv_header_stdc=no
4674 fi
4675 rm -f conftest*
4676
4677 fi
4678
4679 if test $ac_cv_header_stdc = yes; then
4680   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681   if test "$cross_compiling" = yes; then :
4682   :
4683 else
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686 #include <ctype.h>
4687 #include <stdlib.h>
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691 #else
4692 # define ISLOWER(c) \
4693                    (('a' <= (c) && (c) <= 'i') \
4694                      || ('j' <= (c) && (c) <= 'r') \
4695                      || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4697 #endif
4698
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4700 int
4701 main ()
4702 {
4703   int i;
4704   for (i = 0; i < 256; i++)
4705     if (XOR (islower (i), ISLOWER (i))
4706         || toupper (i) != TOUPPER (i))
4707       return 2;
4708   return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_run "$LINENO"; then :
4712
4713 else
4714   ac_cv_header_stdc=no
4715 fi
4716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4717   conftest.$ac_objext conftest.beam conftest.$ac_ext
4718 fi
4719
4720 fi
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723 $as_echo "$ac_cv_header_stdc" >&6; }
4724 if test $ac_cv_header_stdc = yes; then
4725
4726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4727
4728 fi
4729
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732                   inttypes.h stdint.h unistd.h
4733 do :
4734   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4736 "
4737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4738   cat >>confdefs.h <<_ACEOF
4739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4740 _ACEOF
4741
4742 fi
4743
4744 done
4745
4746
4747
4748   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4749 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4750   MINIX=yes
4751 else
4752   MINIX=
4753 fi
4754
4755
4756   if test "$MINIX" = yes; then
4757
4758 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4759
4760
4761 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4762
4763
4764 $as_echo "#define _MINIX 1" >>confdefs.h
4765
4766   fi
4767
4768
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4770 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4771 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h.  */
4776
4777 #         define __EXTENSIONS__ 1
4778           $ac_includes_default
4779 int
4780 main ()
4781 {
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788   ac_cv_safe_to_define___extensions__=yes
4789 else
4790   ac_cv_safe_to_define___extensions__=no
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4795 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4796   test $ac_cv_safe_to_define___extensions__ = yes &&
4797     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4798
4799   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4800
4801   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4802
4803   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4804
4805   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4806
4807
4808 LIB_EXT=.a
4809 STATIC_LIB_EXT=.a
4810 PROFILED_LIB_EXT=.a
4811
4812 # Check whether --with-root-prefix was given.
4813 if test "${with_root_prefix+set}" = set; then :
4814   withval=$with_root_prefix; root_prefix=$withval
4815 else
4816   root_prefix=NONE
4817 fi
4818 # Check whether --enable-maintainer-mode was given.
4819 if test "${enable_maintainer_mode+set}" = set; then :
4820   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4821 then
4822         MAINTAINER_CMT=#
4823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4824 $as_echo "Disabling maintainer mode" >&6; }
4825 else
4826         MAINTAINER_CMT=
4827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4828 $as_echo "Enabling maintainer mode" >&6; }
4829 fi
4830
4831 else
4832   MAINTAINER_CMT=#
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4834 $as_echo "Disabling maintainer mode by default" >&6; }
4835
4836 fi
4837
4838
4839 # Check whether --enable-symlink-install was given.
4840 if test "${enable_symlink_install+set}" = set; then :
4841   enableval=$enable_symlink_install; if test "$enableval" = "no"
4842 then
4843         LINK_INSTALL_FLAGS=-f
4844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4845 $as_echo "Disabling symlinks for install" >&6; }
4846 else
4847         LINK_INSTALL_FLAGS=-sf
4848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4849 $as_echo "Enabling symlinks for install" >&6; }
4850 fi
4851
4852 else
4853   LINK_INSTALL_FLAGS=-f
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4855 $as_echo "Disabling symlinks for install by default" >&6; }
4856
4857 fi
4858
4859
4860 relative_symlink_defined=
4861 # Check whether --enable-relative-symlinks was given.
4862 if test "${enable_relative_symlinks+set}" = set; then :
4863   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4864 then
4865         SYMLINK_RELATIVE=
4866         relative_symlink_defined=yes
4867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4868 $as_echo "Disabling relative symlinks for install" >&6; }
4869 else
4870         SYMLINK_RELATIVE=--relative
4871         relative_symlink_defined=yes
4872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4873 $as_echo "Enabling relative symlinks for install" >&6; }
4874 fi
4875 fi
4876
4877 # Check whether --enable-symlink-relative-symlinks was given.
4878 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4879   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4880 then
4881         SYMLINK_RELATIVE=yes
4882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4883 $as_echo "Disabling relative symlinks for install" >&6; }
4884 else
4885         SYMLINK_RELATIVE=--relative
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4887 $as_echo "Enabling relative symlinks for install" >&6; }
4888 fi
4889
4890 else
4891   if test -z "$relative_symlink_defined"
4892 then
4893         SYMLINK_RELATIVE=
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4895 $as_echo "Disabling relative symlinks for install by default" >&6; }
4896 fi
4897
4898 fi
4899
4900
4901 # Check whether --enable-symlink-build was given.
4902 if test "${enable_symlink_build+set}" = set; then :
4903   enableval=$enable_symlink_build; if test "$enableval" = "no"
4904 then
4905         LINK_BUILD_FLAGS=
4906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4907 $as_echo "Disabling symlinks for build" >&6; }
4908 else
4909         LINK_BUILD_FLAGS=-s
4910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4911 $as_echo "Enabling symlinks for build" >&6; }
4912 fi
4913
4914 else
4915   LINK_BUILD_FLAGS=
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4917 $as_echo "Disabling symlinks for build by default" >&6; }
4918
4919 fi
4920
4921
4922 # Check whether --enable-verbose-makecmds was given.
4923 if test "${enable_verbose_makecmds+set}" = set; then :
4924   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4925 then
4926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4927 $as_echo "Disabling verbose make commands" >&6; }
4928         E=@echo
4929         ES=echo
4930         Q=@
4931 else
4932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4933 $as_echo "Enabling verbose make commands" >&6; }
4934         E=@\\#
4935         ES=\\#
4936         Q=
4937 fi
4938
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4941 $as_echo "Disabling verbose make commands" >&6; }
4942 E=@echo
4943 ES=echo
4944 Q=@
4945
4946 fi
4947
4948
4949
4950
4951 E2_PKG_CONFIG_STATIC=--static
4952 LDFLAG_DYNAMIC=
4953 PRIVATE_LIBS_CMT=
4954 # Check whether --enable-elf-shlibs was given.
4955 if test "${enable_elf_shlibs+set}" = set; then :
4956   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4957 then
4958         ELF_CMT=#
4959         MAKEFILE_ELF=/dev/null
4960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4961 $as_echo "Disabling ELF shared libraries" >&6; }
4962 else
4963         E2_PKG_CONFIG_STATIC=
4964         ELF_CMT=
4965         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4966         case "$host_os" in
4967         solaris2.*)
4968                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4969         ;;
4970         esac
4971         BINARY_TYPE=elfbin
4972         LIB_EXT=.so
4973         PRIVATE_LIBS_CMT=#
4974         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4976 $as_echo "Enabling ELF shared libraries" >&6; }
4977 fi
4978
4979 else
4980   MAKEFILE_ELF=/dev/null
4981 ELF_CMT=#
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4983 $as_echo "Disabling ELF shared libraries by default" >&6; }
4984
4985 fi
4986
4987
4988
4989 # Check whether --enable-bsd-shlibs was given.
4990 if test "${enable_bsd_shlibs+set}" = set; then :
4991   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4992 then
4993         BSDLIB_CMT=#
4994         MAKEFILE_BSDLIB=/dev/null
4995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4996 $as_echo "Disabling BSD shared libraries" >&6; }
4997 else
4998         E2_PKG_CONFIG_STATIC=
4999         BSDLIB_CMT=
5000         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5001         LIB_EXT=.so
5002         case "$host_os" in
5003         darwin*)
5004                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5005                 LIB_EXT=.dylib
5006         ;;
5007         esac
5008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5009 $as_echo "Enabling BSD shared libraries" >&6; }
5010 fi
5011
5012 else
5013   MAKEFILE_BSDLIB=/dev/null
5014 BSDLIB_CMT=#
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5016 $as_echo "Disabling BSD shared libraries by default" >&6; }
5017
5018 fi
5019
5020
5021
5022 # Check whether --enable-profile was given.
5023 if test "${enable_profile+set}" = set; then :
5024   enableval=$enable_profile; if test "$enableval" = "no"
5025 then
5026         PROFILE_CMT=#
5027         MAKEFILE_PROFILE=/dev/null
5028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5029 $as_echo "Disabling profiling libraries" >&6; }
5030 else
5031         PROFILE_CMT=
5032         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5033         PROFILED_LIB_EXT=_p.a
5034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5035 $as_echo "Building profiling libraries" >&6; }
5036 fi
5037
5038 else
5039   PROFILE_CMT=#
5040 MAKEFILE_PROFILE=/dev/null
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5042 $as_echo "Disabling profiling libraries by default" >&6; }
5043
5044 fi
5045
5046
5047
5048 # Check whether --enable-gcov was given.
5049 if test "${enable_gcov+set}" = set; then :
5050   enableval=$enable_gcov; if test "$enableval" = "yes"
5051 then
5052         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5053         LDFLAGS="-fprofile-arcs -ftest-coverage"
5054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5055 $as_echo "Enabling gcov support" >&6; }
5056 fi
5057
5058 fi
5059
5060 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5061 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5062 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5063 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5064 # Check whether --enable-hardening was given.
5065 if test "${enable_hardening+set}" = set; then :
5066   enableval=$enable_hardening; if test "$enableval" = "yes"
5067 then
5068         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5069         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5070         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5071         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5072         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5073         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5074         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5075         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5077 $as_echo "Enabling hardening support" >&6; }
5078 fi
5079
5080 fi
5081
5082
5083
5084
5085
5086
5087 # Check whether --enable-jbd-debug was given.
5088 if test "${enable_jbd_debug+set}" = set; then :
5089   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5090 then
5091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5092 $as_echo "Disabling journal debugging" >&6; }
5093 else
5094
5095 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5096
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5098 $as_echo "Enabling journal debugging" >&6; }
5099 fi
5100
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5103 $as_echo "Disabling journal debugging by default" >&6; }
5104
5105 fi
5106
5107 # Check whether --enable-blkid-debug was given.
5108 if test "${enable_blkid_debug+set}" = set; then :
5109   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5110 then
5111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5112 $as_echo "Disabling blkid debugging" >&6; }
5113 else
5114
5115 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5116
5117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5118 $as_echo "Enabling blkid debugging" >&6; }
5119 fi
5120
5121 else
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5123 $as_echo "Disabling blkid debugging by default" >&6; }
5124
5125 fi
5126
5127 # Check whether --enable-testio-debug was given.
5128 if test "${enable_testio_debug+set}" = set; then :
5129   enableval=$enable_testio_debug;
5130 if test "$enableval" = "no"
5131 then
5132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5133 $as_echo "Disabling testio debugging" >&6; }
5134         TEST_IO_CMT="#"
5135 else
5136         TEST_IO_CMT=
5137         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5138
5139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5140 $as_echo "Enabling testio debugging" >&6; }
5141 fi
5142
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5145 $as_echo "Enabling testio debugging by default" >&6; }
5146 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5147
5148 TEST_IO_CMT=
5149
5150 fi
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5161         if test -n "$ac_tool_prefix"; then
5162   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   case $PKG_CONFIG in
5170   [\\/]* | ?:[\\/]*)
5171   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5172   ;;
5173   *)
5174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189   ;;
5190 esac
5191 fi
5192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5193 if test -n "$PKG_CONFIG"; then
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5195 $as_echo "$PKG_CONFIG" >&6; }
5196 else
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 fi
5203 if test -z "$ac_cv_path_PKG_CONFIG"; then
5204   ac_pt_PKG_CONFIG=$PKG_CONFIG
5205   # Extract the first word of "pkg-config", so it can be a program name with args.
5206 set dummy pkg-config; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   case $ac_pt_PKG_CONFIG in
5213   [\\/]* | ?:[\\/]*)
5214   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5215   ;;
5216   *)
5217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229   done
5230 IFS=$as_save_IFS
5231
5232   ;;
5233 esac
5234 fi
5235 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5236 if test -n "$ac_pt_PKG_CONFIG"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5238 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244   if test "x$ac_pt_PKG_CONFIG" = x; then
5245     PKG_CONFIG=""
5246   else
5247     case $cross_compiling:$ac_tool_warned in
5248 yes:)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5252 esac
5253     PKG_CONFIG=$ac_pt_PKG_CONFIG
5254   fi
5255 else
5256   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5257 fi
5258
5259 fi
5260 if test -n "$PKG_CONFIG"; then
5261         _pkg_min_version=0.9.0
5262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5263 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5264         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5265                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5266 $as_echo "yes" >&6; }
5267         else
5268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5270                 PKG_CONFIG=""
5271         fi
5272 fi
5273 LIBUUID=
5274 DEPLIBUUID=
5275 STATIC_LIBUUID=
5276 DEPSTATIC_LIBUUID=
5277 PROFILED_LIBUUID=
5278 DEPPROFILED_LIBUUID=
5279 UUID_CMT=
5280 # Check whether --enable-libuuid was given.
5281 if test "${enable_libuuid+set}" = set; then :
5282   enableval=$enable_libuuid; if test "$enableval" = "no"
5283 then
5284         if test -z "$PKG_CONFIG"; then
5285                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5286         fi
5287
5288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5289 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5290 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   ac_check_lib_save_LIBS=$LIBS
5294 LIBS="-luuid  $LIBS"
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297
5298 /* Override any GCC internal prototype to avoid an error.
5299    Use char because int might match the return type of a GCC
5300    builtin and then its argument prototype would still apply.  */
5301 #ifdef __cplusplus
5302 extern "C"
5303 #endif
5304 char uuid_generate ();
5305 int
5306 main ()
5307 {
5308 return uuid_generate ();
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_c_try_link "$LINENO"; then :
5314   ac_cv_lib_uuid_uuid_generate=yes
5315 else
5316   ac_cv_lib_uuid_uuid_generate=no
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext \
5319     conftest$ac_exeext conftest.$ac_ext
5320 LIBS=$ac_check_lib_save_LIBS
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5323 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5324 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5325   LIBUUID=`$PKG_CONFIG --libs uuid`;
5326                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5327 else
5328   as_fn_error $? "external uuid library not found" "$LINENO" 5
5329 fi
5330
5331         PROFILED_LIBUUID=$LIBUUID
5332         UUID_CMT=#
5333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5334 $as_echo "Disabling private uuid library" >&6; }
5335 else
5336         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5337         DEPLIBUUID=$LIBUUID
5338         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5339         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5340         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5341         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5343 $as_echo "Enabling private uuid library" >&6; }
5344 fi
5345
5346 else
5347   if test -n "$PKG_CONFIG"; then
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5349 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5350 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   ac_check_lib_save_LIBS=$LIBS
5354 LIBS="-luuid  $LIBS"
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h.  */
5357
5358 /* Override any GCC internal prototype to avoid an error.
5359    Use char because int might match the return type of a GCC
5360    builtin and then its argument prototype would still apply.  */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 char uuid_generate ();
5365 int
5366 main ()
5367 {
5368 return uuid_generate ();
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374   ac_cv_lib_uuid_uuid_generate=yes
5375 else
5376   ac_cv_lib_uuid_uuid_generate=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext \
5379     conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5383 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5384 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5385   LIBUUID=`$PKG_CONFIG --libs uuid`;
5386                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5387 fi
5388
5389 fi
5390 if test -n "$LIBUUID"; then
5391         PROFILED_LIBUUID=$LIBUUID
5392         UUID_CMT=#
5393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5394 $as_echo "Using system uuid by default" >&6; }
5395 else
5396         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5397         DEPLIBUUID=$LIBUUID
5398         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5399         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5400         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5401         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5403 $as_echo "Enabling private uuid library by default" >&6; }
5404 fi
5405
5406 fi
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5423         if test -n "$ac_tool_prefix"; then
5424   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   case $PKG_CONFIG in
5432   [\\/]* | ?:[\\/]*)
5433   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5434   ;;
5435   *)
5436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451   ;;
5452 esac
5453 fi
5454 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5455 if test -n "$PKG_CONFIG"; then
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5457 $as_echo "$PKG_CONFIG" >&6; }
5458 else
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463
5464 fi
5465 if test -z "$ac_cv_path_PKG_CONFIG"; then
5466   ac_pt_PKG_CONFIG=$PKG_CONFIG
5467   # Extract the first word of "pkg-config", so it can be a program name with args.
5468 set dummy pkg-config; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   case $ac_pt_PKG_CONFIG in
5475   [\\/]* | ?:[\\/]*)
5476   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5477   ;;
5478   *)
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484     for ac_exec_ext in '' $ac_executable_extensions; do
5485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491   done
5492 IFS=$as_save_IFS
5493
5494   ;;
5495 esac
5496 fi
5497 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5498 if test -n "$ac_pt_PKG_CONFIG"; then
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5500 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5501 else
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506   if test "x$ac_pt_PKG_CONFIG" = x; then
5507     PKG_CONFIG=""
5508   else
5509     case $cross_compiling:$ac_tool_warned in
5510 yes:)
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5513 ac_tool_warned=yes ;;
5514 esac
5515     PKG_CONFIG=$ac_pt_PKG_CONFIG
5516   fi
5517 else
5518   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5519 fi
5520
5521 fi
5522 if test -n "$PKG_CONFIG"; then
5523         _pkg_min_version=0.9.0
5524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5525 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5526         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5527                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5529         else
5530                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532                 PKG_CONFIG=""
5533         fi
5534 fi
5535 LIBBLKID=
5536 DEPLIBBLKID=
5537 STATIC_LIBBLKID=
5538 DEPSTATIC_LIBBLKID=
5539 PROFILED_LIBBLKID=
5540 DEPPROFILED_LIBBLKID=
5541 BLKID_CMT=
5542
5543 # Check whether --enable-libblkid was given.
5544 if test "${enable_libblkid+set}" = set; then :
5545   enableval=$enable_libblkid; if test "$enableval" = "no"
5546 then
5547         if test -z "$PKG_CONFIG"; then
5548                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5549         fi
5550
5551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5552 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5553 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   ac_check_lib_save_LIBS=$LIBS
5557 LIBS="-lblkid -luuid $LIBS"
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h.  */
5560
5561 /* Override any GCC internal prototype to avoid an error.
5562    Use char because int might match the return type of a GCC
5563    builtin and then its argument prototype would still apply.  */
5564 #ifdef __cplusplus
5565 extern "C"
5566 #endif
5567 char blkid_get_cache ();
5568 int
5569 main ()
5570 {
5571 return blkid_get_cache ();
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_link "$LINENO"; then :
5577   ac_cv_lib_blkid_blkid_get_cache=yes
5578 else
5579   ac_cv_lib_blkid_blkid_get_cache=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext \
5582     conftest$ac_exeext conftest.$ac_ext
5583 LIBS=$ac_check_lib_save_LIBS
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5586 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5587 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5588   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5589                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5590 else
5591   as_fn_error $? "external blkid library not found" "$LINENO" 5
5592 fi
5593
5594         BLKID_CMT=#
5595         PROFILED_LIBBLKID=$LIBBLKID
5596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5597 $as_echo "Disabling private blkid library" >&6; }
5598 else
5599         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5600         DEPLIBBLKID=$LIBBLKID
5601         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5602         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5603         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5604         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5605         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5606
5607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5608 $as_echo "Enabling private blkid library" >&6; }
5609 fi
5610
5611 else
5612   if test -n "$PKG_CONFIG"; then
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5614 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5615 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   ac_check_lib_save_LIBS=$LIBS
5619 LIBS="-lblkid  $LIBS"
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622
5623 /* Override any GCC internal prototype to avoid an error.
5624    Use char because int might match the return type of a GCC
5625    builtin and then its argument prototype would still apply.  */
5626 #ifdef __cplusplus
5627 extern "C"
5628 #endif
5629 char blkid_get_cache ();
5630 int
5631 main ()
5632 {
5633 return blkid_get_cache ();
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_link "$LINENO"; then :
5639   ac_cv_lib_blkid_blkid_get_cache=yes
5640 else
5641   ac_cv_lib_blkid_blkid_get_cache=no
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext \
5644     conftest$ac_exeext conftest.$ac_ext
5645 LIBS=$ac_check_lib_save_LIBS
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5648 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5649 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5650   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5651                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5652 fi
5653
5654 fi
5655 if test -n "$LIBBLKID"; then
5656         BLKID_CMT=#
5657         PROFILED_LIBBLKID=$LIBBLKID
5658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5659 $as_echo "Using system blkid library by default" >&6; }
5660 else
5661         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5662         DEPLIBBLKID=$LIBBLKID
5663         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5664         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5665         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5666         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5667         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5668
5669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5670 $as_echo "Enabling private blkid library by default" >&6; }
5671 fi
5672
5673 fi
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 # Check whether --enable-backtrace was given.
5684 if test "${enable_backtrace+set}" = set; then :
5685   enableval=$enable_backtrace; if test "$enableval" = "no"
5686 then
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5688 $as_echo "Disabling use of backtrace" >&6; }
5689         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5690
5691 else
5692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5693 $as_echo "Enabling use of backtrace" >&6; }
5694 fi
5695
5696 else
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5698 $as_echo "Enabling use of backtrace by default" >&6; }
5699
5700 fi
5701
5702 # Check whether --enable-debugfs was given.
5703 if test "${enable_debugfs+set}" = set; then :
5704   enableval=$enable_debugfs; if test "$enableval" = "no"
5705 then
5706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5707 $as_echo "Disabling debugfs support" >&6; }
5708         DEBUGFS_CMT="#"
5709 else
5710         DEBUGFS_CMT=
5711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5712 $as_echo "Enabling debugfs support" >&6; }
5713 fi
5714
5715 else
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5717 $as_echo "Enabling debugfs support by default" >&6; }
5718 DEBUGFS_CMT=
5719
5720 fi
5721
5722
5723 # Check whether --enable-imager was given.
5724 if test "${enable_imager+set}" = set; then :
5725   enableval=$enable_imager; if test "$enableval" = "no"
5726 then
5727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5728 $as_echo "Disabling e2image support" >&6; }
5729         IMAGER_CMT="#"
5730 else
5731         IMAGER_CMT=
5732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5733 $as_echo "Enabling e2image support" >&6; }
5734 fi
5735
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5738 $as_echo "Enabling e2image support by default" >&6; }
5739 IMAGER_CMT=
5740
5741 fi
5742
5743
5744 # Check whether --enable-resizer was given.
5745 if test "${enable_resizer+set}" = set; then :
5746   enableval=$enable_resizer; if test "$enableval" = "no"
5747 then
5748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5749 $as_echo "Disabling e2resize support" >&6; }
5750         RESIZER_CMT="#"
5751 else
5752         RESIZER_CMT=
5753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5754 $as_echo "Enabling e2resize support" >&6; }
5755 fi
5756
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5759 $as_echo "Enabling e2resize support by default" >&6; }
5760 RESIZER_CMT=
5761
5762 fi
5763
5764
5765 # Check whether --enable-defrag was given.
5766 if test "${enable_defrag+set}" = set; then :
5767   enableval=$enable_defrag; if test "$enableval" = "no"
5768 then
5769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5770 $as_echo "Disabling e4defrag support" >&6; }
5771         DEFRAG_CMT="#"
5772 else
5773         DEFRAG_CMT=
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5775 $as_echo "Enabling e4defrag support" >&6; }
5776 fi
5777
5778 else
5779   if test -z "$WITH_DIET_LIBC"
5780 then
5781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5782 $as_echo "Enabling e4defrag support by default" >&6; }
5783         DEFRAG_CMT=
5784 else
5785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5786 $as_echo "Disabling e4defrag support by default" >&6; }
5787         DEFRAG_CMT="#"
5788 fi
5789
5790 fi
5791
5792
5793 # Check whether --enable-fsck was given.
5794 if test "${enable_fsck+set}" = set; then :
5795   enableval=$enable_fsck; if test "$enableval" = "no"
5796 then
5797         FSCK_PROG='' FSCK_MAN=''
5798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5799 $as_echo "Not building fsck wrapper" >&6; }
5800 else
5801         FSCK_PROG=fsck FSCK_MAN=fsck.8
5802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5803 $as_echo "Building fsck wrapper" >&6; }
5804 fi
5805
5806 else
5807   case "$host_os" in
5808   gnu*)
5809     FSCK_PROG='' FSCK_MAN=''
5810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5811 $as_echo "Not building fsck wrapper by default" >&6; }
5812     ;;
5813   *)
5814     FSCK_PROG=fsck FSCK_MAN=fsck.8
5815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5816 $as_echo "Building fsck wrapper by default" >&6; }
5817 esac
5818
5819 fi
5820
5821
5822
5823 # Check whether --enable-e2initrd-helper was given.
5824 if test "${enable_e2initrd_helper+set}" = set; then :
5825   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5826 then
5827         E2INITRD_PROG='' E2INITRD_MAN=''
5828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5829 $as_echo "Not building e2initrd helper" >&6; }
5830 else
5831         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5833 $as_echo "Building e2initrd helper" >&6; }
5834 fi
5835
5836 else
5837   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5839 $as_echo "Building e2initrd helper by default" >&6; }
5840
5841 fi
5842
5843
5844
5845 # Check whether --enable-tls was given.
5846 if test "${enable_tls+set}" = set; then :
5847   enableval=$enable_tls; if test "$enableval" = "no"
5848 then
5849         try_tls=""
5850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5851 $as_echo "Disabling thread local support" >&6; }
5852 else
5853         try_tls="yes"
5854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5855 $as_echo "Enabling thread local support" >&6; }
5856 fi
5857
5858 else
5859   if test -n "$WITH_DIET_LIBC"
5860 then
5861         try_tls=""
5862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5863 $as_echo "Diet libc does not support thread local support" >&6; }
5864 else
5865         try_tls="yes"
5866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5867 $as_echo "Try using thread local support by default" >&6; }
5868 fi
5869
5870 fi
5871
5872 if test "$try_tls" = "yes"
5873 then
5874
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5876 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5877   if ${ac_cv_tls+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880
5881     ax_tls_keywords="__thread __declspec(thread) none"
5882     for ax_tls_keyword in $ax_tls_keywords; do
5883        case $ax_tls_keyword in
5884           none) ac_cv_tls=none ; break ;;
5885           *)
5886              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h.  */
5888 #include <stdlib.h>
5889                  static void
5890                  foo(void) {
5891                  static  $ax_tls_keyword  int bar;
5892                  exit(1);
5893                  }
5894 int
5895 main ()
5896 {
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903   ac_cv_tls=$ax_tls_keyword ; break
5904 else
5905   ac_cv_tls=none
5906
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909           esac
5910     done
5911
5912 fi
5913
5914
5915   if test "$ac_cv_tls" != "none"; then
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define TLS $ac_cv_tls
5919 _ACEOF
5920
5921   fi
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5923 $as_echo "$ac_cv_tls" >&6; }
5924
5925 fi
5926
5927 # Check whether --enable-uuidd was given.
5928 if test "${enable_uuidd+set}" = set; then :
5929   enableval=$enable_uuidd; if test "$enableval" = "no"
5930 then
5931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5932 $as_echo "Not building uuidd" >&6; }
5933         UUIDD_CMT="#"
5934 else
5935         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5936
5937         UUIDD_CMT=""
5938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5939 $as_echo "Building uuidd" >&6; }
5940 fi
5941
5942 else
5943   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5944
5945 if test -z "$UUID_CMT"
5946 then
5947         UUIDD_CMT=""
5948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5949 $as_echo "Building uuidd by default" >&6; }
5950 else
5951         UUIDD_CMT="#"
5952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5953 $as_echo "Disabling uuidd by default" >&6; }
5954 fi
5955
5956 fi
5957
5958
5959
5960 # Check whether --enable-mmp was given.
5961 if test "${enable_mmp+set}" = set; then :
5962   enableval=$enable_mmp; if test "$enableval" = "no"
5963 then
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5965 $as_echo "Disabling mmp support" >&6; }
5966 else
5967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5968 $as_echo "Enabling mmp support" >&6; }
5969         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5970
5971 fi
5972
5973 else
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5975 $as_echo "Enabling mmp support by default" >&6; }
5976 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5977
5978
5979 fi
5980
5981
5982 # Check whether --enable-tdb was given.
5983 if test "${enable_tdb+set}" = set; then :
5984   enableval=$enable_tdb; if test "$enableval" = "no"
5985 then
5986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5987 $as_echo "Disabling tdb support" >&6; }
5988         TDB_CMT="#"
5989         TDB_MAN_COMMENT='.\"'
5990 else
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5992 $as_echo "Enabling tdb support" >&6; }
5993         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5994
5995         TDB_CMT=""
5996         TDB_MAN_COMMENT=""
5997 fi
5998
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6001 $as_echo "Enabling mmp support by default" >&6; }
6002 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6003
6004 TDB_CMT=""
6005 TDB_MAN_COMMENT=""
6006
6007 fi
6008
6009
6010
6011
6012 # Check whether --enable-bmap-stats was given.
6013 if test "${enable_bmap_stats+set}" = set; then :
6014   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6015 then
6016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6017 $as_echo "Disabling bitmap statistics support" >&6; }
6018 else
6019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6020 $as_echo "Enabling bitmap statistics support" >&6; }
6021         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6022
6023 fi
6024
6025 else
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6027 $as_echo "Enabling bitmap statistics support by default" >&6; }
6028 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6029
6030
6031 fi
6032
6033
6034 # Check whether --enable-bmap-stats-ops was given.
6035 if test "${enable_bmap_stats_ops+set}" = set; then :
6036   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6037 then
6038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6039 $as_echo "Disabling additional bitmap statistics" >&6; }
6040 else
6041                 if test "x${enable_bmap_stats}" = "xno"; then :
6042   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6045 See \`config.log' for more details" "$LINENO" 5; }
6046 fi
6047
6048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6049 $as_echo "Enabling additional bitmap statistics" >&6; }
6050         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6051
6052 fi
6053
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6056 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6057
6058 fi
6059
6060 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6061
6062 GETTEXT_PACKAGE=e2fsprogs
6063 PACKAGE=e2fsprogs
6064 VERSION="$E2FSPROGS_VERSION"
6065 VERSION=0.14.1
6066
6067 cat >>confdefs.h <<_ACEOF
6068 #define PACKAGE "$PACKAGE"
6069 _ACEOF
6070
6071
6072 cat >>confdefs.h <<_ACEOF
6073 #define VERSION "$VERSION"
6074 _ACEOF
6075
6076
6077
6078
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6081 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6082 set x ${MAKE-make}
6083 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6084 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   cat >conftest.make <<\_ACEOF
6088 SHELL = /bin/sh
6089 all:
6090         @echo '@@@%%%=$(MAKE)=@@@%%%'
6091 _ACEOF
6092 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6094   *@@@%%%=?*=@@@%%%*)
6095     eval ac_cv_prog_make_${ac_make}_set=yes;;
6096   *)
6097     eval ac_cv_prog_make_${ac_make}_set=no;;
6098 esac
6099 rm -f conftest.make
6100 fi
6101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103 $as_echo "yes" >&6; }
6104   SET_MAKE=
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108   SET_MAKE="MAKE=${MAKE-make}"
6109 fi
6110
6111 # Find a good install program.  We prefer a C program (faster),
6112 # so one script is as good as another.  But avoid the broken or
6113 # incompatible versions:
6114 # SysV /etc/install, /usr/sbin/install
6115 # SunOS /usr/etc/install
6116 # IRIX /sbin/install
6117 # AIX /bin/install
6118 # AmigaOS /C/install, which installs bootblocks on floppy discs
6119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6122 # OS/2's system install, which has a completely different semantic
6123 # ./install, which can be erroneously created by make from ./install.sh.
6124 # Reject install programs that cannot install multiple files.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6126 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6127 if test -z "$INSTALL"; then
6128 if ${ac_cv_path_install+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     # Account for people who put trailing slashes in PATH elements.
6137 case $as_dir/ in #((
6138   ./ | .// | /[cC]/* | \
6139   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6140   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6141   /usr/ucb/* ) ;;
6142   *)
6143     # OSF1 and SCO ODT 3.0 have their own names for install.
6144     # Don't use installbsd from OSF since it installs stuff as root
6145     # by default.
6146     for ac_prog in ginstall scoinst install; do
6147       for ac_exec_ext in '' $ac_executable_extensions; do
6148         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6149           if test $ac_prog = install &&
6150             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6151             # AIX install.  It has an incompatible calling convention.
6152             :
6153           elif test $ac_prog = install &&
6154             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6155             # program-specific install script used by HP pwplus--don't use.
6156             :
6157           else
6158             rm -rf conftest.one conftest.two conftest.dir
6159             echo one > conftest.one
6160             echo two > conftest.two
6161             mkdir conftest.dir
6162             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6163               test -s conftest.one && test -s conftest.two &&
6164               test -s conftest.dir/conftest.one &&
6165               test -s conftest.dir/conftest.two
6166             then
6167               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6168               break 3
6169             fi
6170           fi
6171         fi
6172       done
6173     done
6174     ;;
6175 esac
6176
6177   done
6178 IFS=$as_save_IFS
6179
6180 rm -rf conftest.one conftest.two conftest.dir
6181
6182 fi
6183   if test "${ac_cv_path_install+set}" = set; then
6184     INSTALL=$ac_cv_path_install
6185   else
6186     # As a last resort, use the slow shell script.  Don't cache a
6187     # value for INSTALL within a source directory, because that will
6188     # break other packages using the cache if that directory is
6189     # removed, or if the value is a relative name.
6190     INSTALL=$ac_install_sh
6191   fi
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6194 $as_echo "$INSTALL" >&6; }
6195
6196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6197 # It thinks the first close brace ends the variable substitution.
6198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6199
6200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6201
6202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6205 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6206 if test -z "$MKDIR_P"; then
6207   if ${ac_cv_path_mkdir+:} false; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215     for ac_prog in mkdir gmkdir; do
6216          for ac_exec_ext in '' $ac_executable_extensions; do
6217            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6218            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6219              'mkdir (GNU coreutils) '* | \
6220              'mkdir (coreutils) '* | \
6221              'mkdir (fileutils) '4.1*)
6222                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6223                break 3;;
6224            esac
6225          done
6226        done
6227   done
6228 IFS=$as_save_IFS
6229
6230 fi
6231
6232   test -d ./--version && rmdir ./--version
6233   if test "${ac_cv_path_mkdir+set}" = set; then
6234     MKDIR_P="$ac_cv_path_mkdir -p"
6235   else
6236     # As a last resort, use the slow shell script.  Don't cache a
6237     # value for MKDIR_P within a source directory, because that will
6238     # break other packages using the cache if that directory is
6239     # removed, or if the value is a relative name.
6240     MKDIR_P="$ac_install_sh -d"
6241   fi
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6244 $as_echo "$MKDIR_P" >&6; }
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6247 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6248 if ${ac_cv_path_SED+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6252      for ac_i in 1 2 3 4 5 6 7; do
6253        ac_script="$ac_script$as_nl$ac_script"
6254      done
6255      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6256      { ac_script=; unset ac_script;}
6257      if test -z "$SED"; then
6258   ac_path_SED_found=false
6259   # Loop through the user's path and test for each of PROGNAME-LIST
6260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_prog in sed gsed; do
6266     for ac_exec_ext in '' $ac_executable_extensions; do
6267       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6268       as_fn_executable_p "$ac_path_SED" || continue
6269 # Check for GNU ac_path_SED and select it if it is found.
6270   # Check for GNU $ac_path_SED
6271 case `"$ac_path_SED" --version 2>&1` in
6272 *GNU*)
6273   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6274 *)
6275   ac_count=0
6276   $as_echo_n 0123456789 >"conftest.in"
6277   while :
6278   do
6279     cat "conftest.in" "conftest.in" >"conftest.tmp"
6280     mv "conftest.tmp" "conftest.in"
6281     cp "conftest.in" "conftest.nl"
6282     $as_echo '' >> "conftest.nl"
6283     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285     as_fn_arith $ac_count + 1 && ac_count=$as_val
6286     if test $ac_count -gt ${ac_path_SED_max-0}; then
6287       # Best one so far, save it but keep looking for a better one
6288       ac_cv_path_SED="$ac_path_SED"
6289       ac_path_SED_max=$ac_count
6290     fi
6291     # 10*(2^10) chars as input seems more than enough
6292     test $ac_count -gt 10 && break
6293   done
6294   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6295 esac
6296
6297       $ac_path_SED_found && break 3
6298     done
6299   done
6300   done
6301 IFS=$as_save_IFS
6302   if test -z "$ac_cv_path_SED"; then
6303     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6304   fi
6305 else
6306   ac_cv_path_SED=$SED
6307 fi
6308
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6311 $as_echo "$ac_cv_path_SED" >&6; }
6312  SED="$ac_cv_path_SED"
6313   rm -f conftest.sed
6314
6315
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6317 $as_echo_n "checking whether NLS is requested... " >&6; }
6318     # Check whether --enable-nls was given.
6319 if test "${enable_nls+set}" = set; then :
6320   enableval=$enable_nls; USE_NLS=$enableval
6321 else
6322   USE_NLS=yes
6323 fi
6324
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6326 $as_echo "$USE_NLS" >&6; }
6327
6328
6329
6330
6331       GETTEXT_MACRO_VERSION=0.18
6332
6333
6334
6335
6336 # Prepare PATH_SEPARATOR.
6337 # The user is always right.
6338 if test "${PATH_SEPARATOR+set}" != set; then
6339   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6340   # contains only /bin. Note that ksh looks also at the FPATH variable,
6341   # so we have to set that as well for the test.
6342   PATH_SEPARATOR=:
6343   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6344     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6345            || PATH_SEPARATOR=';'
6346        }
6347 fi
6348
6349 # Find out how to test for executable files. Don't use a zero-byte file,
6350 # as systems may use methods other than mode bits to determine executability.
6351 cat >conf$$.file <<_ASEOF
6352 #! /bin/sh
6353 exit 0
6354 _ASEOF
6355 chmod +x conf$$.file
6356 if test -x conf$$.file >/dev/null 2>&1; then
6357   ac_executable_p="test -x"
6358 else
6359   ac_executable_p="test -f"
6360 fi
6361 rm -f conf$$.file
6362
6363 # Extract the first word of "msgfmt", so it can be a program name with args.
6364 set dummy msgfmt; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_path_MSGFMT+:} false; then :
6368   $as_echo_n "(cached) " >&6
6369 else
6370   case "$MSGFMT" in
6371   [\\/]* | ?:[\\/]*)
6372     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6373     ;;
6374   *)
6375     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6376     for ac_dir in $PATH; do
6377       IFS="$ac_save_IFS"
6378       test -z "$ac_dir" && ac_dir=.
6379       for ac_exec_ext in '' $ac_executable_extensions; do
6380         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6381           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6382           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6383      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6384             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6385             break 2
6386           fi
6387         fi
6388       done
6389     done
6390     IFS="$ac_save_IFS"
6391   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6392     ;;
6393 esac
6394 fi
6395 MSGFMT="$ac_cv_path_MSGFMT"
6396 if test "$MSGFMT" != ":"; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6398 $as_echo "$MSGFMT" >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6405 set dummy gmsgfmt; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_path_GMSGFMT+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   case $GMSGFMT in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6432   ;;
6433 esac
6434 fi
6435 GMSGFMT=$ac_cv_path_GMSGFMT
6436 if test -n "$GMSGFMT"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6438 $as_echo "$GMSGFMT" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444
6445
6446     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6447     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6448     *) MSGFMT_015=$MSGFMT ;;
6449   esac
6450
6451   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6452     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6453     *) GMSGFMT_015=$GMSGFMT ;;
6454   esac
6455
6456
6457
6458 # Prepare PATH_SEPARATOR.
6459 # The user is always right.
6460 if test "${PATH_SEPARATOR+set}" != set; then
6461   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6462   # contains only /bin. Note that ksh looks also at the FPATH variable,
6463   # so we have to set that as well for the test.
6464   PATH_SEPARATOR=:
6465   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6466     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6467            || PATH_SEPARATOR=';'
6468        }
6469 fi
6470
6471 # Find out how to test for executable files. Don't use a zero-byte file,
6472 # as systems may use methods other than mode bits to determine executability.
6473 cat >conf$$.file <<_ASEOF
6474 #! /bin/sh
6475 exit 0
6476 _ASEOF
6477 chmod +x conf$$.file
6478 if test -x conf$$.file >/dev/null 2>&1; then
6479   ac_executable_p="test -x"
6480 else
6481   ac_executable_p="test -f"
6482 fi
6483 rm -f conf$$.file
6484
6485 # Extract the first word of "xgettext", so it can be a program name with args.
6486 set dummy xgettext; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_path_XGETTEXT+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   case "$XGETTEXT" in
6493   [\\/]* | ?:[\\/]*)
6494     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6495     ;;
6496   *)
6497     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6498     for ac_dir in $PATH; do
6499       IFS="$ac_save_IFS"
6500       test -z "$ac_dir" && ac_dir=.
6501       for ac_exec_ext in '' $ac_executable_extensions; do
6502         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6503           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6504           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6505      (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
6506             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6507             break 2
6508           fi
6509         fi
6510       done
6511     done
6512     IFS="$ac_save_IFS"
6513   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6514     ;;
6515 esac
6516 fi
6517 XGETTEXT="$ac_cv_path_XGETTEXT"
6518 if test "$XGETTEXT" != ":"; then
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6520 $as_echo "$XGETTEXT" >&6; }
6521 else
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526     rm -f messages.po
6527
6528     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6529     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6530     *) XGETTEXT_015=$XGETTEXT ;;
6531   esac
6532
6533
6534
6535 # Prepare PATH_SEPARATOR.
6536 # The user is always right.
6537 if test "${PATH_SEPARATOR+set}" != set; then
6538   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6539   # contains only /bin. Note that ksh looks also at the FPATH variable,
6540   # so we have to set that as well for the test.
6541   PATH_SEPARATOR=:
6542   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6543     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6544            || PATH_SEPARATOR=';'
6545        }
6546 fi
6547
6548 # Find out how to test for executable files. Don't use a zero-byte file,
6549 # as systems may use methods other than mode bits to determine executability.
6550 cat >conf$$.file <<_ASEOF
6551 #! /bin/sh
6552 exit 0
6553 _ASEOF
6554 chmod +x conf$$.file
6555 if test -x conf$$.file >/dev/null 2>&1; then
6556   ac_executable_p="test -x"
6557 else
6558   ac_executable_p="test -f"
6559 fi
6560 rm -f conf$$.file
6561
6562 # Extract the first word of "msgmerge", so it can be a program name with args.
6563 set dummy msgmerge; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_path_MSGMERGE+:} false; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   case "$MSGMERGE" in
6570   [\\/]* | ?:[\\/]*)
6571     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6572     ;;
6573   *)
6574     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6575     for ac_dir in $PATH; do
6576       IFS="$ac_save_IFS"
6577       test -z "$ac_dir" && ac_dir=.
6578       for ac_exec_ext in '' $ac_executable_extensions; do
6579         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6580           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6581           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6582             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6583             break 2
6584           fi
6585         fi
6586       done
6587     done
6588     IFS="$ac_save_IFS"
6589   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6590     ;;
6591 esac
6592 fi
6593 MSGMERGE="$ac_cv_path_MSGMERGE"
6594 if test "$MSGMERGE" != ":"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6596 $as_echo "$MSGMERGE" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602
6603         test -n "$localedir" || localedir='${datadir}/locale'
6604
6605
6606     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6607
6608
6609   ac_config_commands="$ac_config_commands po-directories"
6610
6611
6612
6613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6614 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6615 if ${ac_cv_gnu_library_2+:} false; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h.  */
6620
6621 #include <features.h>
6622 #ifdef __GNU_LIBRARY__
6623  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6624   Lucky GNU user
6625  #endif
6626 #endif
6627
6628 _ACEOF
6629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6631   ac_cv_gnu_library_2=yes
6632 else
6633   ac_cv_gnu_library_2=no
6634 fi
6635 rm -f conftest*
6636
6637
6638
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6641 $as_echo "$ac_cv_gnu_library_2" >&6; }
6642
6643     GLIBC2="$ac_cv_gnu_library_2"
6644
6645
6646 if test -n "$ac_tool_prefix"; then
6647   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_RANLIB+:} false; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if test -n "$RANLIB"; then
6655   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662     for ac_exec_ext in '' $ac_executable_extensions; do
6663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669   done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 RANLIB=$ac_cv_prog_RANLIB
6675 if test -n "$RANLIB"; then
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6677 $as_echo "$RANLIB" >&6; }
6678 else
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683
6684 fi
6685 if test -z "$ac_cv_prog_RANLIB"; then
6686   ac_ct_RANLIB=$RANLIB
6687   # Extract the first word of "ranlib", so it can be a program name with args.
6688 set dummy ranlib; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   if test -n "$ac_ct_RANLIB"; then
6695   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702     for ac_exec_ext in '' $ac_executable_extensions; do
6703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704     ac_cv_prog_ac_ct_RANLIB="ranlib"
6705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709   done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6715 if test -n "$ac_ct_RANLIB"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6717 $as_echo "$ac_ct_RANLIB" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723   if test "x$ac_ct_RANLIB" = x; then
6724     RANLIB=":"
6725   else
6726     case $cross_compiling:$ac_tool_warned in
6727 yes:)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6731 esac
6732     RANLIB=$ac_ct_RANLIB
6733   fi
6734 else
6735   RANLIB="$ac_cv_prog_RANLIB"
6736 fi
6737
6738
6739
6740   CFLAG_VISIBILITY=
6741   HAVE_VISIBILITY=0
6742   if test -n "$GCC"; then
6743                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6744 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6745     if ${gl_cv_cc_vis_werror+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748
6749       gl_save_CFLAGS="$CFLAGS"
6750       CFLAGS="$CFLAGS -Werror"
6751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h.  */
6753
6754 int
6755 main ()
6756 {
6757
6758   ;
6759   return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763   gl_cv_cc_vis_werror=yes
6764 else
6765   gl_cv_cc_vis_werror=no
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768       CFLAGS="$gl_save_CFLAGS"
6769 fi
6770
6771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6772 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6774 $as_echo_n "checking for simple visibility declarations... " >&6; }
6775     if ${gl_cv_cc_visibility+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778
6779       gl_save_CFLAGS="$CFLAGS"
6780       CFLAGS="$CFLAGS -fvisibility=hidden"
6781                                     if test $gl_cv_cc_vis_werror = yes; then
6782         CFLAGS="$CFLAGS -Werror"
6783       fi
6784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6787              extern __attribute__((__visibility__("default"))) int exportedvar;
6788              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6789              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6790              void dummyfunc (void) {}
6791
6792 int
6793 main ()
6794 {
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801   gl_cv_cc_visibility=yes
6802 else
6803   gl_cv_cc_visibility=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806       CFLAGS="$gl_save_CFLAGS"
6807 fi
6808
6809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6810 $as_echo "$gl_cv_cc_visibility" >&6; }
6811     if test $gl_cv_cc_visibility = yes; then
6812       CFLAG_VISIBILITY="-fvisibility=hidden"
6813       HAVE_VISIBILITY=1
6814     fi
6815   fi
6816
6817
6818
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6821 _ACEOF
6822
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6825 $as_echo_n "checking for inline... " >&6; }
6826 if ${ac_cv_c_inline+:} false; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   ac_cv_c_inline=no
6830 for ac_kw in inline __inline__ __inline; do
6831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h.  */
6833 #ifndef __cplusplus
6834 typedef int foo_t;
6835 static $ac_kw foo_t static_foo () {return 0; }
6836 $ac_kw foo_t foo () {return 0; }
6837 #endif
6838
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841   ac_cv_c_inline=$ac_kw
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844   test "$ac_cv_c_inline" != no && break
6845 done
6846
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6849 $as_echo "$ac_cv_c_inline" >&6; }
6850
6851 case $ac_cv_c_inline in
6852   inline | yes) ;;
6853   *)
6854     case $ac_cv_c_inline in
6855       no) ac_val=;;
6856       *) ac_val=$ac_cv_c_inline;;
6857     esac
6858     cat >>confdefs.h <<_ACEOF
6859 #ifndef __cplusplus
6860 #define inline $ac_val
6861 #endif
6862 _ACEOF
6863     ;;
6864 esac
6865
6866 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6867 if test "x$ac_cv_type_size_t" = xyes; then :
6868
6869 else
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define size_t unsigned int
6873 _ACEOF
6874
6875 fi
6876
6877
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6879 $as_echo_n "checking for stdint.h... " >&6; }
6880 if ${gl_cv_header_stdint_h+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 #include <sys/types.h>
6886             #include <stdint.h>
6887 int
6888 main ()
6889 {
6890 uintmax_t i = (uintmax_t) -1; return !i;
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896   gl_cv_header_stdint_h=yes
6897 else
6898   gl_cv_header_stdint_h=no
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6903 $as_echo "$gl_cv_header_stdint_h" >&6; }
6904   if test $gl_cv_header_stdint_h = yes; then
6905
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_STDINT_H_WITH_UINTMAX 1
6908 _ACEOF
6909
6910   fi
6911
6912 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6913 # for constant arguments.  Useless!
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6915 $as_echo_n "checking for working alloca.h... " >&6; }
6916 if ${ac_cv_working_alloca_h+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h.  */
6921 #include <alloca.h>
6922 int
6923 main ()
6924 {
6925 char *p = (char *) alloca (2 * sizeof (int));
6926                           if (p) return 0;
6927   ;
6928   return 0;
6929 }
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932   ac_cv_working_alloca_h=yes
6933 else
6934   ac_cv_working_alloca_h=no
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext \
6937     conftest$ac_exeext conftest.$ac_ext
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6940 $as_echo "$ac_cv_working_alloca_h" >&6; }
6941 if test $ac_cv_working_alloca_h = yes; then
6942
6943 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6944
6945 fi
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6948 $as_echo_n "checking for alloca... " >&6; }
6949 if ${ac_cv_func_alloca_works+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h.  */
6954 #ifdef __GNUC__
6955 # define alloca __builtin_alloca
6956 #else
6957 # ifdef _MSC_VER
6958 #  include <malloc.h>
6959 #  define alloca _alloca
6960 # else
6961 #  ifdef HAVE_ALLOCA_H
6962 #   include <alloca.h>
6963 #  else
6964 #   ifdef _AIX
6965  #pragma alloca
6966 #   else
6967 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6968 void *alloca (size_t);
6969 #    endif
6970 #   endif
6971 #  endif
6972 # endif
6973 #endif
6974
6975 int
6976 main ()
6977 {
6978 char *p = (char *) alloca (1);
6979                                     if (p) return 0;
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985   ac_cv_func_alloca_works=yes
6986 else
6987   ac_cv_func_alloca_works=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext \
6990     conftest$ac_exeext conftest.$ac_ext
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6993 $as_echo "$ac_cv_func_alloca_works" >&6; }
6994
6995 if test $ac_cv_func_alloca_works = yes; then
6996
6997 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6998
6999 else
7000   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7001 # that cause trouble.  Some versions do not even contain alloca or
7002 # contain a buggy version.  If you still want to use their alloca,
7003 # use ar to extract alloca.o from them instead of compiling alloca.c.
7004
7005 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7006
7007 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7008
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7011 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7012 if ${ac_cv_os_cray+:} false; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h.  */
7017 #if defined CRAY && ! defined CRAY2
7018 webecray
7019 #else
7020 wenotbecray
7021 #endif
7022
7023 _ACEOF
7024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025   $EGREP "webecray" >/dev/null 2>&1; then :
7026   ac_cv_os_cray=yes
7027 else
7028   ac_cv_os_cray=no
7029 fi
7030 rm -f conftest*
7031
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7034 $as_echo "$ac_cv_os_cray" >&6; }
7035 if test $ac_cv_os_cray = yes; then
7036   for ac_func in _getb67 GETB67 getb67; do
7037     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7040
7041 cat >>confdefs.h <<_ACEOF
7042 #define CRAY_STACKSEG_END $ac_func
7043 _ACEOF
7044
7045     break
7046 fi
7047
7048   done
7049 fi
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7052 $as_echo_n "checking stack direction for C alloca... " >&6; }
7053 if ${ac_cv_c_stack_direction+:} false; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   if test "$cross_compiling" = yes; then :
7057   ac_cv_c_stack_direction=0
7058 else
7059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h.  */
7061 $ac_includes_default
7062 int
7063 find_stack_direction (int *addr, int depth)
7064 {
7065   int dir, dummy = 0;
7066   if (! addr)
7067     addr = &dummy;
7068   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7069   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7070   return dir + dummy;
7071 }
7072
7073 int
7074 main (int argc, char **argv)
7075 {
7076   return find_stack_direction (0, argc + !argv + 20) < 0;
7077 }
7078 _ACEOF
7079 if ac_fn_c_try_run "$LINENO"; then :
7080   ac_cv_c_stack_direction=1
7081 else
7082   ac_cv_c_stack_direction=-1
7083 fi
7084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7085   conftest.$ac_objext conftest.beam conftest.$ac_ext
7086 fi
7087
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7090 $as_echo "$ac_cv_c_stack_direction" >&6; }
7091 cat >>confdefs.h <<_ACEOF
7092 #define STACK_DIRECTION $ac_cv_c_stack_direction
7093 _ACEOF
7094
7095
7096 fi
7097
7098
7099
7100
7101   for ac_header in $ac_header_list
7102 do :
7103   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7105 "
7106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7107   cat >>confdefs.h <<_ACEOF
7108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 _ACEOF
7110
7111 fi
7112
7113 done
7114
7115
7116
7117
7118
7119
7120
7121
7122 for ac_func in getpagesize
7123 do :
7124   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7125 if test "x$ac_cv_func_getpagesize" = xyes; then :
7126   cat >>confdefs.h <<_ACEOF
7127 #define HAVE_GETPAGESIZE 1
7128 _ACEOF
7129
7130 fi
7131 done
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7134 $as_echo_n "checking for working mmap... " >&6; }
7135 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7136   $as_echo_n "(cached) " >&6
7137 else
7138   if test "$cross_compiling" = yes; then :
7139   ac_cv_func_mmap_fixed_mapped=no
7140 else
7141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143 $ac_includes_default
7144 /* malloc might have been renamed as rpl_malloc. */
7145 #undef malloc
7146
7147 /* Thanks to Mike Haertel and Jim Avera for this test.
7148    Here is a matrix of mmap possibilities:
7149         mmap private not fixed
7150         mmap private fixed at somewhere currently unmapped
7151         mmap private fixed at somewhere already mapped
7152         mmap shared not fixed
7153         mmap shared fixed at somewhere currently unmapped
7154         mmap shared fixed at somewhere already mapped
7155    For private mappings, we should verify that changes cannot be read()
7156    back from the file, nor mmap's back from the file at a different
7157    address.  (There have been systems where private was not correctly
7158    implemented like the infamous i386 svr4.0, and systems where the
7159    VM page cache was not coherent with the file system buffer cache
7160    like early versions of FreeBSD and possibly contemporary NetBSD.)
7161    For shared mappings, we should conversely verify that changes get
7162    propagated back to all the places they're supposed to be.
7163
7164    Grep wants private fixed already mapped.
7165    The main things grep needs to know about mmap are:
7166    * does it exist and is it safe to write into the mmap'd area
7167    * how to use it (BSD variants)  */
7168
7169 #include <fcntl.h>
7170 #include <sys/mman.h>
7171
7172 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7173 char *malloc ();
7174 #endif
7175
7176 /* This mess was copied from the GNU getpagesize.h.  */
7177 #ifndef HAVE_GETPAGESIZE
7178 # ifdef _SC_PAGESIZE
7179 #  define getpagesize() sysconf(_SC_PAGESIZE)
7180 # else /* no _SC_PAGESIZE */
7181 #  ifdef HAVE_SYS_PARAM_H
7182 #   include <sys/param.h>
7183 #   ifdef EXEC_PAGESIZE
7184 #    define getpagesize() EXEC_PAGESIZE
7185 #   else /* no EXEC_PAGESIZE */
7186 #    ifdef NBPG
7187 #     define getpagesize() NBPG * CLSIZE
7188 #     ifndef CLSIZE
7189 #      define CLSIZE 1
7190 #     endif /* no CLSIZE */
7191 #    else /* no NBPG */
7192 #     ifdef NBPC
7193 #      define getpagesize() NBPC
7194 #     else /* no NBPC */
7195 #      ifdef PAGESIZE
7196 #       define getpagesize() PAGESIZE
7197 #      endif /* PAGESIZE */
7198 #     endif /* no NBPC */
7199 #    endif /* no NBPG */
7200 #   endif /* no EXEC_PAGESIZE */
7201 #  else /* no HAVE_SYS_PARAM_H */
7202 #   define getpagesize() 8192   /* punt totally */
7203 #  endif /* no HAVE_SYS_PARAM_H */
7204 # endif /* no _SC_PAGESIZE */
7205
7206 #endif /* no HAVE_GETPAGESIZE */
7207
7208 int
7209 main ()
7210 {
7211   char *data, *data2, *data3;
7212   const char *cdata2;
7213   int i, pagesize;
7214   int fd, fd2;
7215
7216   pagesize = getpagesize ();
7217
7218   /* First, make a file with some known garbage in it. */
7219   data = (char *) malloc (pagesize);
7220   if (!data)
7221     return 1;
7222   for (i = 0; i < pagesize; ++i)
7223     *(data + i) = rand ();
7224   umask (0);
7225   fd = creat ("conftest.mmap", 0600);
7226   if (fd < 0)
7227     return 2;
7228   if (write (fd, data, pagesize) != pagesize)
7229     return 3;
7230   close (fd);
7231
7232   /* Next, check that the tail of a page is zero-filled.  File must have
7233      non-zero length, otherwise we risk SIGBUS for entire page.  */
7234   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7235   if (fd2 < 0)
7236     return 4;
7237   cdata2 = "";
7238   if (write (fd2, cdata2, 1) != 1)
7239     return 5;
7240   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7241   if (data2 == MAP_FAILED)
7242     return 6;
7243   for (i = 0; i < pagesize; ++i)
7244     if (*(data2 + i))
7245       return 7;
7246   close (fd2);
7247   if (munmap (data2, pagesize))
7248     return 8;
7249
7250   /* Next, try to mmap the file at a fixed address which already has
7251      something else allocated at it.  If we can, also make sure that
7252      we see the same garbage.  */
7253   fd = open ("conftest.mmap", O_RDWR);
7254   if (fd < 0)
7255     return 9;
7256   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7257                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7258     return 10;
7259   for (i = 0; i < pagesize; ++i)
7260     if (*(data + i) != *(data2 + i))
7261       return 11;
7262
7263   /* Finally, make sure that changes to the mapped area do not
7264      percolate back to the file as seen by read().  (This is a bug on
7265      some variants of i386 svr4.0.)  */
7266   for (i = 0; i < pagesize; ++i)
7267     *(data2 + i) = *(data2 + i) + 1;
7268   data3 = (char *) malloc (pagesize);
7269   if (!data3)
7270     return 12;
7271   if (read (fd, data3, pagesize) != pagesize)
7272     return 13;
7273   for (i = 0; i < pagesize; ++i)
7274     if (*(data + i) != *(data3 + i))
7275       return 14;
7276   close (fd);
7277   free (data);
7278   free (data3);
7279   return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_run "$LINENO"; then :
7283   ac_cv_func_mmap_fixed_mapped=yes
7284 else
7285   ac_cv_func_mmap_fixed_mapped=no
7286 fi
7287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7288   conftest.$ac_objext conftest.beam conftest.$ac_ext
7289 fi
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7293 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7295
7296 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7297
7298 fi
7299 rm -f conftest.mmap conftest.txt
7300
7301
7302
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7304 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7305 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308
7309       gt_cv_int_divbyzero_sigfpe=
7310       case "$host_os" in
7311         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7312           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7313           # compiling. If we were to perform the real test, 1 Crash Report
7314           # dialog window would pop up.
7315           case "$host_cpu" in
7316             i[34567]86 | x86_64)
7317               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7318           esac
7319           ;;
7320       esac
7321       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7322         if test "$cross_compiling" = yes; then :
7323
7324             # Guess based on the CPU.
7325             case "$host_cpu" in
7326               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7327                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7328               *)
7329                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7330             esac
7331
7332 else
7333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h.  */
7335
7336 #include <stdlib.h>
7337 #include <signal.h>
7338
7339 static void
7340 sigfpe_handler (int sig)
7341 {
7342   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7343   exit (sig != SIGFPE);
7344 }
7345
7346 int x = 1;
7347 int y = 0;
7348 int z;
7349 int nan;
7350
7351 int main ()
7352 {
7353   signal (SIGFPE, sigfpe_handler);
7354 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7355 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7356   signal (SIGTRAP, sigfpe_handler);
7357 #endif
7358 /* Linux/SPARC yields signal SIGILL.  */
7359 #if defined (__sparc__) && defined (__linux__)
7360   signal (SIGILL, sigfpe_handler);
7361 #endif
7362
7363   z = x / y;
7364   nan = y / y;
7365   exit (2);
7366 }
7367
7368 _ACEOF
7369 if ac_fn_c_try_run "$LINENO"; then :
7370   gt_cv_int_divbyzero_sigfpe=yes
7371 else
7372   gt_cv_int_divbyzero_sigfpe=no
7373 fi
7374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7375   conftest.$ac_objext conftest.beam conftest.$ac_ext
7376 fi
7377
7378       fi
7379
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7382 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7383   case "$gt_cv_int_divbyzero_sigfpe" in
7384     *yes) value=1;;
7385     *) value=0;;
7386   esac
7387
7388 cat >>confdefs.h <<_ACEOF
7389 #define INTDIV0_RAISES_SIGFPE $value
7390 _ACEOF
7391
7392
7393
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7395 $as_echo_n "checking for inttypes.h... " >&6; }
7396 if ${gl_cv_header_inttypes_h+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h.  */
7401
7402 #include <sys/types.h>
7403 #include <inttypes.h>
7404
7405 int
7406 main ()
7407 {
7408 uintmax_t i = (uintmax_t) -1; return !i;
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414   gl_cv_header_inttypes_h=yes
7415 else
7416   gl_cv_header_inttypes_h=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7421 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7422   if test $gl_cv_header_inttypes_h = yes; then
7423
7424 cat >>confdefs.h <<_ACEOF
7425 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7426 _ACEOF
7427
7428   fi
7429
7430
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7432 $as_echo_n "checking for unsigned long long int... " >&6; }
7433 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   ac_cv_type_unsigned_long_long_int=yes
7437      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7438        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h.  */
7440
7441   /* For now, do not test the preprocessor; as of 2007 there are too many
7442          implementations with broken preprocessors.  Perhaps this can
7443          be revisited in 2012.  In the meantime, code should not expect
7444          #if to work with literals wider than 32 bits.  */
7445       /* Test literals.  */
7446       long long int ll = 9223372036854775807ll;
7447       long long int nll = -9223372036854775807LL;
7448       unsigned long long int ull = 18446744073709551615ULL;
7449       /* Test constant expressions.   */
7450       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7451                      ? 1 : -1)];
7452       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7453                      ? 1 : -1)];
7454       int i = 63;
7455 int
7456 main ()
7457 {
7458 /* Test availability of runtime routines for shift and division.  */
7459       long long int llmax = 9223372036854775807ll;
7460       unsigned long long int ullmax = 18446744073709551615ull;
7461       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7462               | (llmax / ll) | (llmax % ll)
7463               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7464               | (ullmax / ull) | (ullmax % ull));
7465   ;
7466   return 0;
7467 }
7468
7469 _ACEOF
7470 if ac_fn_c_try_link "$LINENO"; then :
7471
7472 else
7473   ac_cv_type_unsigned_long_long_int=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext \
7476     conftest$ac_exeext conftest.$ac_ext
7477      fi
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7480 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7481   if test $ac_cv_type_unsigned_long_long_int = yes; then
7482
7483 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7484
7485   fi
7486
7487
7488
7489
7490   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7491
7492     test $ac_cv_type_unsigned_long_long_int = yes \
7493       && ac_type='unsigned long long' \
7494       || ac_type='unsigned long'
7495
7496 cat >>confdefs.h <<_ACEOF
7497 #define uintmax_t $ac_type
7498 _ACEOF
7499
7500   else
7501
7502 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7503
7504   fi
7505
7506
7507   for ac_header in inttypes.h
7508 do :
7509   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7510 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7511   cat >>confdefs.h <<_ACEOF
7512 #define HAVE_INTTYPES_H 1
7513 _ACEOF
7514
7515 fi
7516
7517 done
7518
7519   if test $ac_cv_header_inttypes_h = yes; then
7520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7521 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7522 if ${gt_cv_inttypes_pri_broken+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525
7526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h.  */
7528
7529 #include <inttypes.h>
7530 #ifdef PRId32
7531 char *p = PRId32;
7532 #endif
7533
7534 int
7535 main ()
7536 {
7537
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543   gt_cv_inttypes_pri_broken=no
7544 else
7545   gt_cv_inttypes_pri_broken=yes
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7551 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7552   fi
7553   if test "$gt_cv_inttypes_pri_broken" = yes; then
7554
7555 cat >>confdefs.h <<_ACEOF
7556 #define PRI_MACROS_BROKEN 1
7557 _ACEOF
7558
7559     PRI_MACROS_BROKEN=1
7560   else
7561     PRI_MACROS_BROKEN=0
7562   fi
7563
7564
7565
7566
7567
7568
7569
7570   # Check whether --enable-threads was given.
7571 if test "${enable_threads+set}" = set; then :
7572   enableval=$enable_threads; gl_use_threads=$enableval
7573 else
7574   if test -n "$gl_use_threads_default"; then
7575        gl_use_threads="$gl_use_threads_default"
7576      else
7577        case "$host_os" in
7578                                                                osf*) gl_use_threads=no ;;
7579          cygwin*)
7580                case `uname -r` in
7581                  1.[0-5].*) gl_use_threads=no ;;
7582                  *)         gl_use_threads=yes ;;
7583                esac
7584                ;;
7585          *)    gl_use_threads=yes ;;
7586        esac
7587      fi
7588
7589 fi
7590
7591   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7592     # For using <pthread.h>:
7593     case "$host_os" in
7594       osf*)
7595         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7596         # groks <pthread.h>. cc also understands the flag -pthread, but
7597         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7598         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7599         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7600         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7601         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7602         ;;
7603     esac
7604     # Some systems optimize for single-threaded programs by default, and
7605     # need special flags to disable these optimizations. For example, the
7606     # definition of 'errno' in <errno.h>.
7607     case "$host_os" in
7608       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7609       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7610     esac
7611   fi
7612
7613
7614
7615
7616
7617       if test "X$prefix" = "XNONE"; then
7618     acl_final_prefix="$ac_default_prefix"
7619   else
7620     acl_final_prefix="$prefix"
7621   fi
7622   if test "X$exec_prefix" = "XNONE"; then
7623     acl_final_exec_prefix='${prefix}'
7624   else
7625     acl_final_exec_prefix="$exec_prefix"
7626   fi
7627   acl_save_prefix="$prefix"
7628   prefix="$acl_final_prefix"
7629   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7630   prefix="$acl_save_prefix"
7631
7632
7633
7634 # Check whether --with-gnu-ld was given.
7635 if test "${with_gnu_ld+set}" = set; then :
7636   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7637 else
7638   with_gnu_ld=no
7639 fi
7640
7641 # Prepare PATH_SEPARATOR.
7642 # The user is always right.
7643 if test "${PATH_SEPARATOR+set}" != set; then
7644   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7645   # contains only /bin. Note that ksh looks also at the FPATH variable,
7646   # so we have to set that as well for the test.
7647   PATH_SEPARATOR=:
7648   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7649     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7650            || PATH_SEPARATOR=';'
7651        }
7652 fi
7653
7654 ac_prog=ld
7655 if test "$GCC" = yes; then
7656   # Check if gcc -print-prog-name=ld gives a path.
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7658 $as_echo_n "checking for ld used by $CC... " >&6; }
7659   case $host in
7660   *-*-mingw*)
7661     # gcc leaves a trailing carriage return which upsets mingw
7662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7663   *)
7664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7665   esac
7666   case $ac_prog in
7667     # Accept absolute paths.
7668     [\\/]* | ?:[\\/]*)
7669       re_direlt='/[^/][^/]*/\.\./'
7670       # Canonicalize the pathname of ld
7671       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7672       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7673         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7674       done
7675       test -z "$LD" && LD="$ac_prog"
7676       ;;
7677   "")
7678     # If it fails, then pretend we aren't using GCC.
7679     ac_prog=ld
7680     ;;
7681   *)
7682     # If it is relative, then search for the first ld in PATH.
7683     with_gnu_ld=unknown
7684     ;;
7685   esac
7686 elif test "$with_gnu_ld" = yes; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7688 $as_echo_n "checking for GNU ld... " >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7691 $as_echo_n "checking for non-GNU ld... " >&6; }
7692 fi
7693 if ${acl_cv_path_LD+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   if test -z "$LD"; then
7697   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698   for ac_dir in $PATH; do
7699     IFS="$acl_save_ifs"
7700     test -z "$ac_dir" && ac_dir=.
7701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7702       acl_cv_path_LD="$ac_dir/$ac_prog"
7703       # Check to see if the program is GNU ld.  I'd rather use --version,
7704       # but apparently some variants of GNU ld only accept -v.
7705       # Break only if it was the GNU/non-GNU ld that we prefer.
7706       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7707       *GNU* | *'with BFD'*)
7708         test "$with_gnu_ld" != no && break
7709         ;;
7710       *)
7711         test "$with_gnu_ld" != yes && break
7712         ;;
7713       esac
7714     fi
7715   done
7716   IFS="$acl_save_ifs"
7717 else
7718   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7719 fi
7720 fi
7721
7722 LD="$acl_cv_path_LD"
7723 if test -n "$LD"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7725 $as_echo "$LD" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7733 if ${acl_cv_prog_gnu_ld+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7737 case `$LD -v 2>&1 </dev/null` in
7738 *GNU* | *'with BFD'*)
7739   acl_cv_prog_gnu_ld=yes
7740   ;;
7741 *)
7742   acl_cv_prog_gnu_ld=no
7743   ;;
7744 esac
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7747 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7748 with_gnu_ld=$acl_cv_prog_gnu_ld
7749
7750
7751
7752
7753                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7754 $as_echo_n "checking for shared library run path origin... " >&6; }
7755 if ${acl_cv_rpath+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758
7759     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7760     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7761     . ./conftest.sh
7762     rm -f ./conftest.sh
7763     acl_cv_rpath=done
7764
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7767 $as_echo "$acl_cv_rpath" >&6; }
7768   wl="$acl_cv_wl"
7769   acl_libext="$acl_cv_libext"
7770   acl_shlibext="$acl_cv_shlibext"
7771   acl_libname_spec="$acl_cv_libname_spec"
7772   acl_library_names_spec="$acl_cv_library_names_spec"
7773   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7774   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7775   acl_hardcode_direct="$acl_cv_hardcode_direct"
7776   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7777     # Check whether --enable-rpath was given.
7778 if test "${enable_rpath+set}" = set; then :
7779   enableval=$enable_rpath; :
7780 else
7781   enable_rpath=yes
7782 fi
7783
7784
7785
7786
7787   acl_libdirstem=lib
7788   acl_libdirstem2=
7789   case "$host_os" in
7790     solaris*)
7791                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7792 $as_echo_n "checking for 64-bit host... " >&6; }
7793 if ${gl_cv_solaris_64bit+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798
7799 #ifdef _LP64
7800 sixtyfour bits
7801 #endif
7802
7803 _ACEOF
7804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7805   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7806   gl_cv_solaris_64bit=yes
7807 else
7808   gl_cv_solaris_64bit=no
7809 fi
7810 rm -f conftest*
7811
7812
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7815 $as_echo "$gl_cv_solaris_64bit" >&6; }
7816       if test $gl_cv_solaris_64bit = yes; then
7817         acl_libdirstem=lib/64
7818         case "$host_cpu" in
7819           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7820           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7821         esac
7822       fi
7823       ;;
7824     *)
7825       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7826       if test -n "$searchpath"; then
7827         acl_save_IFS="${IFS=    }"; IFS=":"
7828         for searchdir in $searchpath; do
7829           if test -d "$searchdir"; then
7830             case "$searchdir" in
7831               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7832               */../ | */.. )
7833                 # Better ignore directories of this form. They are misleading.
7834                 ;;
7835               *) searchdir=`cd "$searchdir" && pwd`
7836                  case "$searchdir" in
7837                    */lib64 ) acl_libdirstem=lib64 ;;
7838                  esac ;;
7839             esac
7840           fi
7841         done
7842         IFS="$acl_save_IFS"
7843       fi
7844       ;;
7845   esac
7846   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7847
7848
7849
7850   gl_threads_api=none
7851   LIBTHREAD=
7852   LTLIBTHREAD=
7853   LIBMULTITHREAD=
7854   LTLIBMULTITHREAD=
7855   if test "$gl_use_threads" != no; then
7856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7857 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7858 if ${gl_cv_have_weak+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   gl_cv_have_weak=no
7862               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h.  */
7864 extern void xyzzy ();
7865 #pragma weak xyzzy
7866 int
7867 main ()
7868 {
7869 xyzzy();
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 if ac_fn_c_try_link "$LINENO"; then :
7875   gl_cv_have_weak=maybe
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext \
7878     conftest$ac_exeext conftest.$ac_ext
7879        if test $gl_cv_have_weak = maybe; then
7880                            if test "$cross_compiling" = yes; then :
7881                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h.  */
7883 #ifdef __ELF__
7884                Extensible Linking Format
7885                #endif
7886
7887 _ACEOF
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7890   gl_cv_have_weak="guessing yes"
7891 else
7892   gl_cv_have_weak="guessing no"
7893 fi
7894 rm -f conftest*
7895
7896
7897 else
7898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900
7901 #include <stdio.h>
7902 #pragma weak fputs
7903 int main ()
7904 {
7905   return (fputs == NULL);
7906 }
7907 _ACEOF
7908 if ac_fn_c_try_run "$LINENO"; then :
7909   gl_cv_have_weak=yes
7910 else
7911   gl_cv_have_weak=no
7912 fi
7913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914   conftest.$ac_objext conftest.beam conftest.$ac_ext
7915 fi
7916
7917        fi
7918
7919 fi
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7921 $as_echo "$gl_cv_have_weak" >&6; }
7922     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7923       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7924       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7925       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7926 if test "x$ac_cv_header_pthread_h" = xyes; then :
7927   gl_have_pthread_h=yes
7928 else
7929   gl_have_pthread_h=no
7930 fi
7931
7932
7933       if test "$gl_have_pthread_h" = yes; then
7934         # Other possible tests:
7935         #   -lpthreads (FSU threads, PCthreads)
7936         #   -lgthreads
7937         gl_have_pthread=
7938         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7939         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7940         # the second one only in libpthread, and lock.c needs it.
7941         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h.  */
7943 #include <pthread.h>
7944 int
7945 main ()
7946 {
7947 pthread_mutex_lock((pthread_mutex_t*)0);
7948                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 if ac_fn_c_try_link "$LINENO"; then :
7954   gl_have_pthread=yes
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext \
7957     conftest$ac_exeext conftest.$ac_ext
7958         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7959         # since it is defined as a macro on OSF/1.)
7960         if test -n "$gl_have_pthread"; then
7961           # The program links fine without libpthread. But it may actually
7962           # need to link with libpthread in order to create multiple threads.
7963           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7964 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7965 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lpthread  $LIBS"
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h.  */
7972
7973 /* Override any GCC internal prototype to avoid an error.
7974    Use char because int might match the return type of a GCC
7975    builtin and then its argument prototype would still apply.  */
7976 #ifdef __cplusplus
7977 extern "C"
7978 #endif
7979 char pthread_kill ();
7980 int
7981 main ()
7982 {
7983 return pthread_kill ();
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_link "$LINENO"; then :
7989   ac_cv_lib_pthread_pthread_kill=yes
7990 else
7991   ac_cv_lib_pthread_pthread_kill=no
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext \
7994     conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7998 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7999 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8000   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8001              # On Solaris and HP-UX, most pthread functions exist also in libc.
8002              # Therefore pthread_in_use() needs to actually try to create a
8003              # thread: pthread_create from libc will fail, whereas
8004              # pthread_create will actually create a thread.
8005              case "$host_os" in
8006                solaris* | hpux*)
8007
8008 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8009
8010              esac
8011
8012 fi
8013
8014         else
8015           # Some library is needed. Try libpthread and libc_r.
8016           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8017 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8018 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8019   $as_echo_n "(cached) " >&6
8020 else
8021   ac_check_lib_save_LIBS=$LIBS
8022 LIBS="-lpthread  $LIBS"
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h.  */
8025
8026 /* Override any GCC internal prototype to avoid an error.
8027    Use char because int might match the return type of a GCC
8028    builtin and then its argument prototype would still apply.  */
8029 #ifdef __cplusplus
8030 extern "C"
8031 #endif
8032 char pthread_kill ();
8033 int
8034 main ()
8035 {
8036 return pthread_kill ();
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"; then :
8042   ac_cv_lib_pthread_pthread_kill=yes
8043 else
8044   ac_cv_lib_pthread_pthread_kill=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047     conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8051 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8052 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8053   gl_have_pthread=yes
8054              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8055              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8056 fi
8057
8058           if test -z "$gl_have_pthread"; then
8059             # For FreeBSD 4.
8060             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8061 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8062 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   ac_check_lib_save_LIBS=$LIBS
8066 LIBS="-lc_r  $LIBS"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h.  */
8069
8070 /* Override any GCC internal prototype to avoid an error.
8071    Use char because int might match the return type of a GCC
8072    builtin and then its argument prototype would still apply.  */
8073 #ifdef __cplusplus
8074 extern "C"
8075 #endif
8076 char pthread_kill ();
8077 int
8078 main ()
8079 {
8080 return pthread_kill ();
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086   ac_cv_lib_c_r_pthread_kill=yes
8087 else
8088   ac_cv_lib_c_r_pthread_kill=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext \
8091     conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8095 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8096 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8097   gl_have_pthread=yes
8098                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8099                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8100 fi
8101
8102           fi
8103         fi
8104         if test -n "$gl_have_pthread"; then
8105           gl_threads_api=posix
8106
8107 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8108
8109           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8110             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8111
8112 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8113
8114               LIBTHREAD=
8115               LTLIBTHREAD=
8116             fi
8117           fi
8118         fi
8119       fi
8120     fi
8121     if test -z "$gl_have_pthread"; then
8122       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8123         gl_have_solaristhread=
8124         gl_save_LIBS="$LIBS"
8125         LIBS="$LIBS -lthread"
8126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h.  */
8128
8129 #include <thread.h>
8130 #include <synch.h>
8131
8132 int
8133 main ()
8134 {
8135 thr_self();
8136   ;
8137   return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_link "$LINENO"; then :
8141   gl_have_solaristhread=yes
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144     conftest$ac_exeext conftest.$ac_ext
8145         LIBS="$gl_save_LIBS"
8146         if test -n "$gl_have_solaristhread"; then
8147           gl_threads_api=solaris
8148           LIBTHREAD=-lthread
8149           LTLIBTHREAD=-lthread
8150           LIBMULTITHREAD="$LIBTHREAD"
8151           LTLIBMULTITHREAD="$LTLIBTHREAD"
8152
8153 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8154
8155           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8156
8157 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8158
8159             LIBTHREAD=
8160             LTLIBTHREAD=
8161           fi
8162         fi
8163       fi
8164     fi
8165     if test "$gl_use_threads" = pth; then
8166       gl_save_CPPFLAGS="$CPPFLAGS"
8167
8168
8169
8170
8171
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8173 $as_echo_n "checking how to link with libpth... " >&6; }
8174 if ${ac_cv_libpth_libs+:} false; then :
8175   $as_echo_n "(cached) " >&6
8176 else
8177
8178
8179
8180
8181
8182
8183
8184
8185     use_additional=yes
8186
8187   acl_save_prefix="$prefix"
8188   prefix="$acl_final_prefix"
8189   acl_save_exec_prefix="$exec_prefix"
8190   exec_prefix="$acl_final_exec_prefix"
8191
8192     eval additional_includedir=\"$includedir\"
8193     eval additional_libdir=\"$libdir\"
8194
8195   exec_prefix="$acl_save_exec_prefix"
8196   prefix="$acl_save_prefix"
8197
8198
8199 # Check whether --with-libpth-prefix was given.
8200 if test "${with_libpth_prefix+set}" = set; then :
8201   withval=$with_libpth_prefix;
8202     if test "X$withval" = "Xno"; then
8203       use_additional=no
8204     else
8205       if test "X$withval" = "X"; then
8206
8207   acl_save_prefix="$prefix"
8208   prefix="$acl_final_prefix"
8209   acl_save_exec_prefix="$exec_prefix"
8210   exec_prefix="$acl_final_exec_prefix"
8211
8212           eval additional_includedir=\"$includedir\"
8213           eval additional_libdir=\"$libdir\"
8214
8215   exec_prefix="$acl_save_exec_prefix"
8216   prefix="$acl_save_prefix"
8217
8218       else
8219         additional_includedir="$withval/include"
8220         additional_libdir="$withval/$acl_libdirstem"
8221         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8222            && ! test -d "$withval/$acl_libdirstem"; then
8223           additional_libdir="$withval/$acl_libdirstem2"
8224         fi
8225       fi
8226     fi
8227
8228 fi
8229
8230       LIBPTH=
8231   LTLIBPTH=
8232   INCPTH=
8233   LIBPTH_PREFIX=
8234       HAVE_LIBPTH=
8235   rpathdirs=
8236   ltrpathdirs=
8237   names_already_handled=
8238   names_next_round='pth '
8239   while test -n "$names_next_round"; do
8240     names_this_round="$names_next_round"
8241     names_next_round=
8242     for name in $names_this_round; do
8243       already_handled=
8244       for n in $names_already_handled; do
8245         if test "$n" = "$name"; then
8246           already_handled=yes
8247           break
8248         fi
8249       done
8250       if test -z "$already_handled"; then
8251         names_already_handled="$names_already_handled $name"
8252                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8253         eval value=\"\$HAVE_LIB$uppername\"
8254         if test -n "$value"; then
8255           if test "$value" = yes; then
8256             eval value=\"\$LIB$uppername\"
8257             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8258             eval value=\"\$LTLIB$uppername\"
8259             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8260           else
8261                                     :
8262           fi
8263         else
8264                               found_dir=
8265           found_la=
8266           found_so=
8267           found_a=
8268           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8269           if test -n "$acl_shlibext"; then
8270             shrext=".$acl_shlibext"             # typically: shrext=.so
8271           else
8272             shrext=
8273           fi
8274           if test $use_additional = yes; then
8275             dir="$additional_libdir"
8276                                     if test -n "$acl_shlibext"; then
8277               if test -f "$dir/$libname$shrext"; then
8278                 found_dir="$dir"
8279                 found_so="$dir/$libname$shrext"
8280               else
8281                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8282                   ver=`(cd "$dir" && \
8283                         for f in "$libname$shrext".*; do echo "$f"; done \
8284                         | sed -e "s,^$libname$shrext\\\\.,," \
8285                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8286                         | sed 1q ) 2>/dev/null`
8287                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8288                     found_dir="$dir"
8289                     found_so="$dir/$libname$shrext.$ver"
8290                   fi
8291                 else
8292                   eval library_names=\"$acl_library_names_spec\"
8293                   for f in $library_names; do
8294                     if test -f "$dir/$f"; then
8295                       found_dir="$dir"
8296                       found_so="$dir/$f"
8297                       break
8298                     fi
8299                   done
8300                 fi
8301               fi
8302             fi
8303                         if test "X$found_dir" = "X"; then
8304               if test -f "$dir/$libname.$acl_libext"; then
8305                 found_dir="$dir"
8306                 found_a="$dir/$libname.$acl_libext"
8307               fi
8308             fi
8309             if test "X$found_dir" != "X"; then
8310               if test -f "$dir/$libname.la"; then
8311                 found_la="$dir/$libname.la"
8312               fi
8313             fi
8314           fi
8315           if test "X$found_dir" = "X"; then
8316             for x in $LDFLAGS $LTLIBPTH; do
8317
8318   acl_save_prefix="$prefix"
8319   prefix="$acl_final_prefix"
8320   acl_save_exec_prefix="$exec_prefix"
8321   exec_prefix="$acl_final_exec_prefix"
8322   eval x=\"$x\"
8323   exec_prefix="$acl_save_exec_prefix"
8324   prefix="$acl_save_prefix"
8325
8326               case "$x" in
8327                 -L*)
8328                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8329                                     if test -n "$acl_shlibext"; then
8330                     if test -f "$dir/$libname$shrext"; then
8331                       found_dir="$dir"
8332                       found_so="$dir/$libname$shrext"
8333                     else
8334                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8335                         ver=`(cd "$dir" && \
8336                               for f in "$libname$shrext".*; do echo "$f"; done \
8337                               | sed -e "s,^$libname$shrext\\\\.,," \
8338                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8339                               | sed 1q ) 2>/dev/null`
8340                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8341                           found_dir="$dir"
8342                           found_so="$dir/$libname$shrext.$ver"
8343                         fi
8344                       else
8345                         eval library_names=\"$acl_library_names_spec\"
8346                         for f in $library_names; do
8347                           if test -f "$dir/$f"; then
8348                             found_dir="$dir"
8349                             found_so="$dir/$f"
8350                             break
8351                           fi
8352                         done
8353                       fi
8354                     fi
8355                   fi
8356                                     if test "X$found_dir" = "X"; then
8357                     if test -f "$dir/$libname.$acl_libext"; then
8358                       found_dir="$dir"
8359                       found_a="$dir/$libname.$acl_libext"
8360                     fi
8361                   fi
8362                   if test "X$found_dir" != "X"; then
8363                     if test -f "$dir/$libname.la"; then
8364                       found_la="$dir/$libname.la"
8365                     fi
8366                   fi
8367                   ;;
8368               esac
8369               if test "X$found_dir" != "X"; then
8370                 break
8371               fi
8372             done
8373           fi
8374           if test "X$found_dir" != "X"; then
8375                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8376             if test "X$found_so" != "X"; then
8377                                                         if test "$enable_rpath" = no \
8378                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8379                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8380                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8381               else
8382                                                                                 haveit=
8383                 for x in $ltrpathdirs; do
8384                   if test "X$x" = "X$found_dir"; then
8385                     haveit=yes
8386                     break
8387                   fi
8388                 done
8389                 if test -z "$haveit"; then
8390                   ltrpathdirs="$ltrpathdirs $found_dir"
8391                 fi
8392                                 if test "$acl_hardcode_direct" = yes; then
8393                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8394                 else
8395                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8396                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8397                                                             haveit=
8398                     for x in $rpathdirs; do
8399                       if test "X$x" = "X$found_dir"; then
8400                         haveit=yes
8401                         break
8402                       fi
8403                     done
8404                     if test -z "$haveit"; then
8405                       rpathdirs="$rpathdirs $found_dir"
8406                     fi
8407                   else
8408                                                                                 haveit=
8409                     for x in $LDFLAGS $LIBPTH; do
8410
8411   acl_save_prefix="$prefix"
8412   prefix="$acl_final_prefix"
8413   acl_save_exec_prefix="$exec_prefix"
8414   exec_prefix="$acl_final_exec_prefix"
8415   eval x=\"$x\"
8416   exec_prefix="$acl_save_exec_prefix"
8417   prefix="$acl_save_prefix"
8418
8419                       if test "X$x" = "X-L$found_dir"; then
8420                         haveit=yes
8421                         break
8422                       fi
8423                     done
8424                     if test -z "$haveit"; then
8425                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8426                     fi
8427                     if test "$acl_hardcode_minus_L" != no; then
8428                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8429                     else
8430                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8431                     fi
8432                   fi
8433                 fi
8434               fi
8435             else
8436               if test "X$found_a" != "X"; then
8437                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8438               else
8439                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8440               fi
8441             fi
8442                         additional_includedir=
8443             case "$found_dir" in
8444               */$acl_libdirstem | */$acl_libdirstem/)
8445                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8446                 if test "$name" = 'pth'; then
8447                   LIBPTH_PREFIX="$basedir"
8448                 fi
8449                 additional_includedir="$basedir/include"
8450                 ;;
8451               */$acl_libdirstem2 | */$acl_libdirstem2/)
8452                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8453                 if test "$name" = 'pth'; then
8454                   LIBPTH_PREFIX="$basedir"
8455                 fi
8456                 additional_includedir="$basedir/include"
8457                 ;;
8458             esac
8459             if test "X$additional_includedir" != "X"; then
8460                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8461                 haveit=
8462                 if test "X$additional_includedir" = "X/usr/local/include"; then
8463                   if test -n "$GCC"; then
8464                     case $host_os in
8465                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8466                     esac
8467                   fi
8468                 fi
8469                 if test -z "$haveit"; then
8470                   for x in $CPPFLAGS $INCPTH; do
8471
8472   acl_save_prefix="$prefix"
8473   prefix="$acl_final_prefix"
8474   acl_save_exec_prefix="$exec_prefix"
8475   exec_prefix="$acl_final_exec_prefix"
8476   eval x=\"$x\"
8477   exec_prefix="$acl_save_exec_prefix"
8478   prefix="$acl_save_prefix"
8479
8480                     if test "X$x" = "X-I$additional_includedir"; then
8481                       haveit=yes
8482                       break
8483                     fi
8484                   done
8485                   if test -z "$haveit"; then
8486                     if test -d "$additional_includedir"; then
8487                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8488                     fi
8489                   fi
8490                 fi
8491               fi
8492             fi
8493                         if test -n "$found_la"; then
8494                                                         save_libdir="$libdir"
8495               case "$found_la" in
8496                 */* | *\\*) . "$found_la" ;;
8497                 *) . "./$found_la" ;;
8498               esac
8499               libdir="$save_libdir"
8500                             for dep in $dependency_libs; do
8501                 case "$dep" in
8502                   -L*)
8503                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8504                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8505                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8506                       haveit=
8507                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8508                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8509                         if test -n "$GCC"; then
8510                           case $host_os in
8511                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8512                           esac
8513                         fi
8514                       fi
8515                       if test -z "$haveit"; then
8516                         haveit=
8517                         for x in $LDFLAGS $LIBPTH; do
8518
8519   acl_save_prefix="$prefix"
8520   prefix="$acl_final_prefix"
8521   acl_save_exec_prefix="$exec_prefix"
8522   exec_prefix="$acl_final_exec_prefix"
8523   eval x=\"$x\"
8524   exec_prefix="$acl_save_exec_prefix"
8525   prefix="$acl_save_prefix"
8526
8527                           if test "X$x" = "X-L$additional_libdir"; then
8528                             haveit=yes
8529                             break
8530                           fi
8531                         done
8532                         if test -z "$haveit"; then
8533                           if test -d "$additional_libdir"; then
8534                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8535                           fi
8536                         fi
8537                         haveit=
8538                         for x in $LDFLAGS $LTLIBPTH; do
8539
8540   acl_save_prefix="$prefix"
8541   prefix="$acl_final_prefix"
8542   acl_save_exec_prefix="$exec_prefix"
8543   exec_prefix="$acl_final_exec_prefix"
8544   eval x=\"$x\"
8545   exec_prefix="$acl_save_exec_prefix"
8546   prefix="$acl_save_prefix"
8547
8548                           if test "X$x" = "X-L$additional_libdir"; then
8549                             haveit=yes
8550                             break
8551                           fi
8552                         done
8553                         if test -z "$haveit"; then
8554                           if test -d "$additional_libdir"; then
8555                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8556                           fi
8557                         fi
8558                       fi
8559                     fi
8560                     ;;
8561                   -R*)
8562                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8563                     if test "$enable_rpath" != no; then
8564                                                                   haveit=
8565                       for x in $rpathdirs; do
8566                         if test "X$x" = "X$dir"; then
8567                           haveit=yes
8568                           break
8569                         fi
8570                       done
8571                       if test -z "$haveit"; then
8572                         rpathdirs="$rpathdirs $dir"
8573                       fi
8574                                                                   haveit=
8575                       for x in $ltrpathdirs; do
8576                         if test "X$x" = "X$dir"; then
8577                           haveit=yes
8578                           break
8579                         fi
8580                       done
8581                       if test -z "$haveit"; then
8582                         ltrpathdirs="$ltrpathdirs $dir"
8583                       fi
8584                     fi
8585                     ;;
8586                   -l*)
8587                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8588                     ;;
8589                   *.la)
8590                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8591                     ;;
8592                   *)
8593                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8594                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8595                     ;;
8596                 esac
8597               done
8598             fi
8599           else
8600                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8601             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8602           fi
8603         fi
8604       fi
8605     done
8606   done
8607   if test "X$rpathdirs" != "X"; then
8608     if test -n "$acl_hardcode_libdir_separator"; then
8609                         alldirs=
8610       for found_dir in $rpathdirs; do
8611         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8612       done
8613             acl_save_libdir="$libdir"
8614       libdir="$alldirs"
8615       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8616       libdir="$acl_save_libdir"
8617       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8618     else
8619             for found_dir in $rpathdirs; do
8620         acl_save_libdir="$libdir"
8621         libdir="$found_dir"
8622         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8623         libdir="$acl_save_libdir"
8624         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8625       done
8626     fi
8627   fi
8628   if test "X$ltrpathdirs" != "X"; then
8629             for found_dir in $ltrpathdirs; do
8630       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8631     done
8632   fi
8633
8634
8635
8636
8637
8638
8639     ac_cv_libpth_libs="$LIBPTH"
8640     ac_cv_libpth_ltlibs="$LTLIBPTH"
8641     ac_cv_libpth_cppflags="$INCPTH"
8642     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8646 $as_echo "$ac_cv_libpth_libs" >&6; }
8647   LIBPTH="$ac_cv_libpth_libs"
8648   LTLIBPTH="$ac_cv_libpth_ltlibs"
8649   INCPTH="$ac_cv_libpth_cppflags"
8650   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8651
8652   for element in $INCPTH; do
8653     haveit=
8654     for x in $CPPFLAGS; do
8655
8656   acl_save_prefix="$prefix"
8657   prefix="$acl_final_prefix"
8658   acl_save_exec_prefix="$exec_prefix"
8659   exec_prefix="$acl_final_exec_prefix"
8660   eval x=\"$x\"
8661   exec_prefix="$acl_save_exec_prefix"
8662   prefix="$acl_save_prefix"
8663
8664       if test "X$x" = "X$element"; then
8665         haveit=yes
8666         break
8667       fi
8668     done
8669     if test -z "$haveit"; then
8670       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8671     fi
8672   done
8673
8674
8675
8676
8677       HAVE_LIBPTH=yes
8678
8679
8680
8681       gl_have_pth=
8682       gl_save_LIBS="$LIBS"
8683       LIBS="$LIBS $LIBPTH"
8684       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h.  */
8686 #include <pth.h>
8687 int
8688 main ()
8689 {
8690 pth_self();
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696   gl_have_pth=yes
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext \
8699     conftest$ac_exeext conftest.$ac_ext
8700       LIBS="$gl_save_LIBS"
8701       if test -n "$gl_have_pth"; then
8702         gl_threads_api=pth
8703         LIBTHREAD="$LIBPTH"
8704         LTLIBTHREAD="$LTLIBPTH"
8705         LIBMULTITHREAD="$LIBTHREAD"
8706         LTLIBMULTITHREAD="$LTLIBTHREAD"
8707
8708 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8709
8710         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8711           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8712
8713 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8714
8715             LIBTHREAD=
8716             LTLIBTHREAD=
8717           fi
8718         fi
8719       else
8720         CPPFLAGS="$gl_save_CPPFLAGS"
8721       fi
8722     fi
8723     if test -z "$gl_have_pthread"; then
8724       case "$gl_use_threads" in
8725         yes | windows | win32) # The 'win32' is for backward compatibility.
8726           if { case "$host_os" in
8727                  mingw*) true;;
8728                  *) false;;
8729                esac
8730              }; then
8731             gl_threads_api=windows
8732
8733 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8734
8735           fi
8736           ;;
8737       esac
8738     fi
8739   fi
8740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8741 $as_echo_n "checking for multithread API to use... " >&6; }
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8743 $as_echo "$gl_threads_api" >&6; }
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755   if test "$gl_threads_api" = posix; then
8756     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8757     # pthread_rwlock_* functions.
8758     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8759 "
8760 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8761
8762 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8763
8764 fi
8765
8766     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h.  */
8769
8770       #include <pthread.h>
8771 int
8772 main ()
8773 {
8774
8775 #if __FreeBSD__ == 4
8776 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8777 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8778        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8779 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8780 #else
8781 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8782 return !x;
8783 #endif
8784
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"; then :
8790
8791 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8792
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795   fi
8796   :
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809     use_additional=yes
8810
8811   acl_save_prefix="$prefix"
8812   prefix="$acl_final_prefix"
8813   acl_save_exec_prefix="$exec_prefix"
8814   exec_prefix="$acl_final_exec_prefix"
8815
8816     eval additional_includedir=\"$includedir\"
8817     eval additional_libdir=\"$libdir\"
8818
8819   exec_prefix="$acl_save_exec_prefix"
8820   prefix="$acl_save_prefix"
8821
8822
8823 # Check whether --with-libiconv-prefix was given.
8824 if test "${with_libiconv_prefix+set}" = set; then :
8825   withval=$with_libiconv_prefix;
8826     if test "X$withval" = "Xno"; then
8827       use_additional=no
8828     else
8829       if test "X$withval" = "X"; then
8830
8831   acl_save_prefix="$prefix"
8832   prefix="$acl_final_prefix"
8833   acl_save_exec_prefix="$exec_prefix"
8834   exec_prefix="$acl_final_exec_prefix"
8835
8836           eval additional_includedir=\"$includedir\"
8837           eval additional_libdir=\"$libdir\"
8838
8839   exec_prefix="$acl_save_exec_prefix"
8840   prefix="$acl_save_prefix"
8841
8842       else
8843         additional_includedir="$withval/include"
8844         additional_libdir="$withval/$acl_libdirstem"
8845         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8846            && ! test -d "$withval/$acl_libdirstem"; then
8847           additional_libdir="$withval/$acl_libdirstem2"
8848         fi
8849       fi
8850     fi
8851
8852 fi
8853
8854       LIBICONV=
8855   LTLIBICONV=
8856   INCICONV=
8857   LIBICONV_PREFIX=
8858       HAVE_LIBICONV=
8859   rpathdirs=
8860   ltrpathdirs=
8861   names_already_handled=
8862   names_next_round='iconv '
8863   while test -n "$names_next_round"; do
8864     names_this_round="$names_next_round"
8865     names_next_round=
8866     for name in $names_this_round; do
8867       already_handled=
8868       for n in $names_already_handled; do
8869         if test "$n" = "$name"; then
8870           already_handled=yes
8871           break
8872         fi
8873       done
8874       if test -z "$already_handled"; then
8875         names_already_handled="$names_already_handled $name"
8876                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8877         eval value=\"\$HAVE_LIB$uppername\"
8878         if test -n "$value"; then
8879           if test "$value" = yes; then
8880             eval value=\"\$LIB$uppername\"
8881             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8882             eval value=\"\$LTLIB$uppername\"
8883             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8884           else
8885                                     :
8886           fi
8887         else
8888                               found_dir=
8889           found_la=
8890           found_so=
8891           found_a=
8892           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8893           if test -n "$acl_shlibext"; then
8894             shrext=".$acl_shlibext"             # typically: shrext=.so
8895           else
8896             shrext=
8897           fi
8898           if test $use_additional = yes; then
8899             dir="$additional_libdir"
8900                                     if test -n "$acl_shlibext"; then
8901               if test -f "$dir/$libname$shrext"; then
8902                 found_dir="$dir"
8903                 found_so="$dir/$libname$shrext"
8904               else
8905                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8906                   ver=`(cd "$dir" && \
8907                         for f in "$libname$shrext".*; do echo "$f"; done \
8908                         | sed -e "s,^$libname$shrext\\\\.,," \
8909                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8910                         | sed 1q ) 2>/dev/null`
8911                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8912                     found_dir="$dir"
8913                     found_so="$dir/$libname$shrext.$ver"
8914                   fi
8915                 else
8916                   eval library_names=\"$acl_library_names_spec\"
8917                   for f in $library_names; do
8918                     if test -f "$dir/$f"; then
8919                       found_dir="$dir"
8920                       found_so="$dir/$f"
8921                       break
8922                     fi
8923                   done
8924                 fi
8925               fi
8926             fi
8927                         if test "X$found_dir" = "X"; then
8928               if test -f "$dir/$libname.$acl_libext"; then
8929                 found_dir="$dir"
8930                 found_a="$dir/$libname.$acl_libext"
8931               fi
8932             fi
8933             if test "X$found_dir" != "X"; then
8934               if test -f "$dir/$libname.la"; then
8935                 found_la="$dir/$libname.la"
8936               fi
8937             fi
8938           fi
8939           if test "X$found_dir" = "X"; then
8940             for x in $LDFLAGS $LTLIBICONV; do
8941
8942   acl_save_prefix="$prefix"
8943   prefix="$acl_final_prefix"
8944   acl_save_exec_prefix="$exec_prefix"
8945   exec_prefix="$acl_final_exec_prefix"
8946   eval x=\"$x\"
8947   exec_prefix="$acl_save_exec_prefix"
8948   prefix="$acl_save_prefix"
8949
8950               case "$x" in
8951                 -L*)
8952                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8953                                     if test -n "$acl_shlibext"; then
8954                     if test -f "$dir/$libname$shrext"; then
8955                       found_dir="$dir"
8956                       found_so="$dir/$libname$shrext"
8957                     else
8958                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8959                         ver=`(cd "$dir" && \
8960                               for f in "$libname$shrext".*; do echo "$f"; done \
8961                               | sed -e "s,^$libname$shrext\\\\.,," \
8962                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8963                               | sed 1q ) 2>/dev/null`
8964                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8965                           found_dir="$dir"
8966                           found_so="$dir/$libname$shrext.$ver"
8967                         fi
8968                       else
8969                         eval library_names=\"$acl_library_names_spec\"
8970                         for f in $library_names; do
8971                           if test -f "$dir/$f"; then
8972                             found_dir="$dir"
8973                             found_so="$dir/$f"
8974                             break
8975                           fi
8976                         done
8977                       fi
8978                     fi
8979                   fi
8980                                     if test "X$found_dir" = "X"; then
8981                     if test -f "$dir/$libname.$acl_libext"; then
8982                       found_dir="$dir"
8983                       found_a="$dir/$libname.$acl_libext"
8984                     fi
8985                   fi
8986                   if test "X$found_dir" != "X"; then
8987                     if test -f "$dir/$libname.la"; then
8988                       found_la="$dir/$libname.la"
8989                     fi
8990                   fi
8991                   ;;
8992               esac
8993               if test "X$found_dir" != "X"; then
8994                 break
8995               fi
8996             done
8997           fi
8998           if test "X$found_dir" != "X"; then
8999                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9000             if test "X$found_so" != "X"; then
9001                                                         if test "$enable_rpath" = no \
9002                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9003                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9004                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9005               else
9006                                                                                 haveit=
9007                 for x in $ltrpathdirs; do
9008                   if test "X$x" = "X$found_dir"; then
9009                     haveit=yes
9010                     break
9011                   fi
9012                 done
9013                 if test -z "$haveit"; then
9014                   ltrpathdirs="$ltrpathdirs $found_dir"
9015                 fi
9016                                 if test "$acl_hardcode_direct" = yes; then
9017                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9018                 else
9019                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9020                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9021                                                             haveit=
9022                     for x in $rpathdirs; do
9023                       if test "X$x" = "X$found_dir"; then
9024                         haveit=yes
9025                         break
9026                       fi
9027                     done
9028                     if test -z "$haveit"; then
9029                       rpathdirs="$rpathdirs $found_dir"
9030                     fi
9031                   else
9032                                                                                 haveit=
9033                     for x in $LDFLAGS $LIBICONV; do
9034
9035   acl_save_prefix="$prefix"
9036   prefix="$acl_final_prefix"
9037   acl_save_exec_prefix="$exec_prefix"
9038   exec_prefix="$acl_final_exec_prefix"
9039   eval x=\"$x\"
9040   exec_prefix="$acl_save_exec_prefix"
9041   prefix="$acl_save_prefix"
9042
9043                       if test "X$x" = "X-L$found_dir"; then
9044                         haveit=yes
9045                         break
9046                       fi
9047                     done
9048                     if test -z "$haveit"; then
9049                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9050                     fi
9051                     if test "$acl_hardcode_minus_L" != no; then
9052                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9053                     else
9054                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9055                     fi
9056                   fi
9057                 fi
9058               fi
9059             else
9060               if test "X$found_a" != "X"; then
9061                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9062               else
9063                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9064               fi
9065             fi
9066                         additional_includedir=
9067             case "$found_dir" in
9068               */$acl_libdirstem | */$acl_libdirstem/)
9069                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9070                 if test "$name" = 'iconv'; then
9071                   LIBICONV_PREFIX="$basedir"
9072                 fi
9073                 additional_includedir="$basedir/include"
9074                 ;;
9075               */$acl_libdirstem2 | */$acl_libdirstem2/)
9076                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9077                 if test "$name" = 'iconv'; then
9078                   LIBICONV_PREFIX="$basedir"
9079                 fi
9080                 additional_includedir="$basedir/include"
9081                 ;;
9082             esac
9083             if test "X$additional_includedir" != "X"; then
9084                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9085                 haveit=
9086                 if test "X$additional_includedir" = "X/usr/local/include"; then
9087                   if test -n "$GCC"; then
9088                     case $host_os in
9089                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9090                     esac
9091                   fi
9092                 fi
9093                 if test -z "$haveit"; then
9094                   for x in $CPPFLAGS $INCICONV; do
9095
9096   acl_save_prefix="$prefix"
9097   prefix="$acl_final_prefix"
9098   acl_save_exec_prefix="$exec_prefix"
9099   exec_prefix="$acl_final_exec_prefix"
9100   eval x=\"$x\"
9101   exec_prefix="$acl_save_exec_prefix"
9102   prefix="$acl_save_prefix"
9103
9104                     if test "X$x" = "X-I$additional_includedir"; then
9105                       haveit=yes
9106                       break
9107                     fi
9108                   done
9109                   if test -z "$haveit"; then
9110                     if test -d "$additional_includedir"; then
9111                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9112                     fi
9113                   fi
9114                 fi
9115               fi
9116             fi
9117                         if test -n "$found_la"; then
9118                                                         save_libdir="$libdir"
9119               case "$found_la" in
9120                 */* | *\\*) . "$found_la" ;;
9121                 *) . "./$found_la" ;;
9122               esac
9123               libdir="$save_libdir"
9124                             for dep in $dependency_libs; do
9125                 case "$dep" in
9126                   -L*)
9127                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9128                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9129                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9130                       haveit=
9131                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9132                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9133                         if test -n "$GCC"; then
9134                           case $host_os in
9135                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9136                           esac
9137                         fi
9138                       fi
9139                       if test -z "$haveit"; then
9140                         haveit=
9141                         for x in $LDFLAGS $LIBICONV; do
9142
9143   acl_save_prefix="$prefix"
9144   prefix="$acl_final_prefix"
9145   acl_save_exec_prefix="$exec_prefix"
9146   exec_prefix="$acl_final_exec_prefix"
9147   eval x=\"$x\"
9148   exec_prefix="$acl_save_exec_prefix"
9149   prefix="$acl_save_prefix"
9150
9151                           if test "X$x" = "X-L$additional_libdir"; then
9152                             haveit=yes
9153                             break
9154                           fi
9155                         done
9156                         if test -z "$haveit"; then
9157                           if test -d "$additional_libdir"; then
9158                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9159                           fi
9160                         fi
9161                         haveit=
9162                         for x in $LDFLAGS $LTLIBICONV; do
9163
9164   acl_save_prefix="$prefix"
9165   prefix="$acl_final_prefix"
9166   acl_save_exec_prefix="$exec_prefix"
9167   exec_prefix="$acl_final_exec_prefix"
9168   eval x=\"$x\"
9169   exec_prefix="$acl_save_exec_prefix"
9170   prefix="$acl_save_prefix"
9171
9172                           if test "X$x" = "X-L$additional_libdir"; then
9173                             haveit=yes
9174                             break
9175                           fi
9176                         done
9177                         if test -z "$haveit"; then
9178                           if test -d "$additional_libdir"; then
9179                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9180                           fi
9181                         fi
9182                       fi
9183                     fi
9184                     ;;
9185                   -R*)
9186                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9187                     if test "$enable_rpath" != no; then
9188                                                                   haveit=
9189                       for x in $rpathdirs; do
9190                         if test "X$x" = "X$dir"; then
9191                           haveit=yes
9192                           break
9193                         fi
9194                       done
9195                       if test -z "$haveit"; then
9196                         rpathdirs="$rpathdirs $dir"
9197                       fi
9198                                                                   haveit=
9199                       for x in $ltrpathdirs; do
9200                         if test "X$x" = "X$dir"; then
9201                           haveit=yes
9202                           break
9203                         fi
9204                       done
9205                       if test -z "$haveit"; then
9206                         ltrpathdirs="$ltrpathdirs $dir"
9207                       fi
9208                     fi
9209                     ;;
9210                   -l*)
9211                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9212                     ;;
9213                   *.la)
9214                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9215                     ;;
9216                   *)
9217                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9218                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9219                     ;;
9220                 esac
9221               done
9222             fi
9223           else
9224                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9225             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9226           fi
9227         fi
9228       fi
9229     done
9230   done
9231   if test "X$rpathdirs" != "X"; then
9232     if test -n "$acl_hardcode_libdir_separator"; then
9233                         alldirs=
9234       for found_dir in $rpathdirs; do
9235         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9236       done
9237             acl_save_libdir="$libdir"
9238       libdir="$alldirs"
9239       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9240       libdir="$acl_save_libdir"
9241       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9242     else
9243             for found_dir in $rpathdirs; do
9244         acl_save_libdir="$libdir"
9245         libdir="$found_dir"
9246         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9247         libdir="$acl_save_libdir"
9248         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9249       done
9250     fi
9251   fi
9252   if test "X$ltrpathdirs" != "X"; then
9253             for found_dir in $ltrpathdirs; do
9254       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9255     done
9256   fi
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269           am_save_CPPFLAGS="$CPPFLAGS"
9270
9271   for element in $INCICONV; do
9272     haveit=
9273     for x in $CPPFLAGS; do
9274
9275   acl_save_prefix="$prefix"
9276   prefix="$acl_final_prefix"
9277   acl_save_exec_prefix="$exec_prefix"
9278   exec_prefix="$acl_final_exec_prefix"
9279   eval x=\"$x\"
9280   exec_prefix="$acl_save_exec_prefix"
9281   prefix="$acl_save_prefix"
9282
9283       if test "X$x" = "X$element"; then
9284         haveit=yes
9285         break
9286       fi
9287     done
9288     if test -z "$haveit"; then
9289       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9290     fi
9291   done
9292
9293
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9295 $as_echo_n "checking for iconv... " >&6; }
9296 if ${am_cv_func_iconv+:} false; then :
9297   $as_echo_n "(cached) " >&6
9298 else
9299
9300     am_cv_func_iconv="no, consider installing GNU libiconv"
9301     am_cv_lib_iconv=no
9302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h.  */
9304
9305 #include <stdlib.h>
9306 #include <iconv.h>
9307
9308 int
9309 main ()
9310 {
9311 iconv_t cd = iconv_open("","");
9312            iconv(cd,NULL,NULL,NULL,NULL);
9313            iconv_close(cd);
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"; then :
9319   am_cv_func_iconv=yes
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext \
9322     conftest$ac_exeext conftest.$ac_ext
9323     if test "$am_cv_func_iconv" != yes; then
9324       am_save_LIBS="$LIBS"
9325       LIBS="$LIBS $LIBICONV"
9326       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h.  */
9328
9329 #include <stdlib.h>
9330 #include <iconv.h>
9331
9332 int
9333 main ()
9334 {
9335 iconv_t cd = iconv_open("","");
9336              iconv(cd,NULL,NULL,NULL,NULL);
9337              iconv_close(cd);
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343   am_cv_lib_iconv=yes
9344         am_cv_func_iconv=yes
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext \
9347     conftest$ac_exeext conftest.$ac_ext
9348       LIBS="$am_save_LIBS"
9349     fi
9350
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9353 $as_echo "$am_cv_func_iconv" >&6; }
9354   if test "$am_cv_func_iconv" = yes; then
9355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9356 $as_echo_n "checking for working iconv... " >&6; }
9357 if ${am_cv_func_iconv_works+:} false; then :
9358   $as_echo_n "(cached) " >&6
9359 else
9360
9361                   am_save_LIBS="$LIBS"
9362       if test $am_cv_lib_iconv = yes; then
9363         LIBS="$LIBS $LIBICONV"
9364       fi
9365       if test "$cross_compiling" = yes; then :
9366
9367          case "$host_os" in
9368            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9369            *)            am_cv_func_iconv_works="guessing yes" ;;
9370          esac
9371
9372 else
9373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h.  */
9375
9376 #include <iconv.h>
9377 #include <string.h>
9378 int main ()
9379 {
9380   int result = 0;
9381   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9382      returns.  */
9383   {
9384     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9385     if (cd_utf8_to_88591 != (iconv_t)(-1))
9386       {
9387         static const char input[] = "\342\202\254"; /* EURO SIGN */
9388         char buf[10];
9389         const char *inptr = input;
9390         size_t inbytesleft = strlen (input);
9391         char *outptr = buf;
9392         size_t outbytesleft = sizeof (buf);
9393         size_t res = iconv (cd_utf8_to_88591,
9394                             (char **) &inptr, &inbytesleft,
9395                             &outptr, &outbytesleft);
9396         if (res == 0)
9397           result |= 1;
9398         iconv_close (cd_utf8_to_88591);
9399       }
9400   }
9401   /* Test against Solaris 10 bug: Failures are not distinguishable from
9402      successful returns.  */
9403   {
9404     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9405     if (cd_ascii_to_88591 != (iconv_t)(-1))
9406       {
9407         static const char input[] = "\263";
9408         char buf[10];
9409         const char *inptr = input;
9410         size_t inbytesleft = strlen (input);
9411         char *outptr = buf;
9412         size_t outbytesleft = sizeof (buf);
9413         size_t res = iconv (cd_ascii_to_88591,
9414                             (char **) &inptr, &inbytesleft,
9415                             &outptr, &outbytesleft);
9416         if (res == 0)
9417           result |= 2;
9418         iconv_close (cd_ascii_to_88591);
9419       }
9420   }
9421   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9422   {
9423     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9424     if (cd_88591_to_utf8 != (iconv_t)(-1))
9425       {
9426         static const char input[] = "\304";
9427         static char buf[2] = { (char)0xDE, (char)0xAD };
9428         const char *inptr = input;
9429         size_t inbytesleft = 1;
9430         char *outptr = buf;
9431         size_t outbytesleft = 1;
9432         size_t res = iconv (cd_88591_to_utf8,
9433                             (char **) &inptr, &inbytesleft,
9434                             &outptr, &outbytesleft);
9435         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9436           result |= 4;
9437         iconv_close (cd_88591_to_utf8);
9438       }
9439   }
9440 #if 0 /* This bug could be worked around by the caller.  */
9441   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9442   {
9443     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9444     if (cd_88591_to_utf8 != (iconv_t)(-1))
9445       {
9446         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9447         char buf[50];
9448         const char *inptr = input;
9449         size_t inbytesleft = strlen (input);
9450         char *outptr = buf;
9451         size_t outbytesleft = sizeof (buf);
9452         size_t res = iconv (cd_88591_to_utf8,
9453                             (char **) &inptr, &inbytesleft,
9454                             &outptr, &outbytesleft);
9455         if ((int)res > 0)
9456           result |= 8;
9457         iconv_close (cd_88591_to_utf8);
9458       }
9459   }
9460 #endif
9461   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9462      provided.  */
9463   if (/* Try standardized names.  */
9464       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9465       /* Try IRIX, OSF/1 names.  */
9466       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9467       /* Try AIX names.  */
9468       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9469       /* Try HP-UX names.  */
9470       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9471     result |= 16;
9472   return result;
9473 }
9474 _ACEOF
9475 if ac_fn_c_try_run "$LINENO"; then :
9476   am_cv_func_iconv_works=yes
9477 else
9478   am_cv_func_iconv_works=no
9479 fi
9480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9481   conftest.$ac_objext conftest.beam conftest.$ac_ext
9482 fi
9483
9484       LIBS="$am_save_LIBS"
9485
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9488 $as_echo "$am_cv_func_iconv_works" >&6; }
9489     case "$am_cv_func_iconv_works" in
9490       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9491       *)   am_func_iconv=yes ;;
9492     esac
9493   else
9494     am_func_iconv=no am_cv_lib_iconv=no
9495   fi
9496   if test "$am_func_iconv" = yes; then
9497
9498 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9499
9500   fi
9501   if test "$am_cv_lib_iconv" = yes; then
9502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9503 $as_echo_n "checking how to link with libiconv... " >&6; }
9504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9505 $as_echo "$LIBICONV" >&6; }
9506   else
9507             CPPFLAGS="$am_save_CPPFLAGS"
9508     LIBICONV=
9509     LTLIBICONV=
9510   fi
9511
9512
9513
9514   if test "$am_cv_func_iconv" = yes; then
9515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9516 $as_echo_n "checking for iconv declaration... " >&6; }
9517     if ${am_cv_proto_iconv+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520
9521       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h.  */
9523
9524 #include <stdlib.h>
9525 #include <iconv.h>
9526 extern
9527 #ifdef __cplusplus
9528 "C"
9529 #endif
9530 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9531 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9532 #else
9533 size_t iconv();
9534 #endif
9535
9536 int
9537 main ()
9538 {
9539
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545   am_cv_proto_iconv_arg1=""
9546 else
9547   am_cv_proto_iconv_arg1="const"
9548 fi
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550       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);"
9551 fi
9552
9553     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9554     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9555          $am_cv_proto_iconv" >&5
9556 $as_echo "
9557          $am_cv_proto_iconv" >&6; }
9558
9559 cat >>confdefs.h <<_ACEOF
9560 #define ICONV_CONST $am_cv_proto_iconv_arg1
9561 _ACEOF
9562
9563
9564   fi
9565
9566
9567
9568
9569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h.  */
9571 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9572 int
9573 main ()
9574 {
9575
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581
9582 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9583
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586     conftest$ac_exeext conftest.$ac_ext
9587
9588   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9589 do :
9590   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9593   cat >>confdefs.h <<_ACEOF
9594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595 _ACEOF
9596
9597 fi
9598
9599 done
9600
9601   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9602     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9603     argz_stringify argz_next __fsetlocking
9604 do :
9605   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9608   cat >>confdefs.h <<_ACEOF
9609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9610 _ACEOF
9611
9612 fi
9613 done
9614
9615
9616           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9617 "
9618 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9619   ac_have_decl=1
9620 else
9621   ac_have_decl=0
9622 fi
9623
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9626 _ACEOF
9627 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9628 "
9629 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9630   ac_have_decl=1
9631 else
9632   ac_have_decl=0
9633 fi
9634
9635 cat >>confdefs.h <<_ACEOF
9636 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9637 _ACEOF
9638
9639
9640
9641
9642                       for ac_prog in bison
9643 do
9644   # Extract the first word of "$ac_prog", so it can be a program name with args.
9645 set dummy $ac_prog; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_prog_INTLBISON+:} false; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   if test -n "$INTLBISON"; then
9652   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9653 else
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9656 do
9657   IFS=$as_save_IFS
9658   test -z "$as_dir" && as_dir=.
9659     for ac_exec_ext in '' $ac_executable_extensions; do
9660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661     ac_cv_prog_INTLBISON="$ac_prog"
9662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663     break 2
9664   fi
9665 done
9666   done
9667 IFS=$as_save_IFS
9668
9669 fi
9670 fi
9671 INTLBISON=$ac_cv_prog_INTLBISON
9672 if test -n "$INTLBISON"; then
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9674 $as_echo "$INTLBISON" >&6; }
9675 else
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9679
9680
9681   test -n "$INTLBISON" && break
9682 done
9683
9684   if test -z "$INTLBISON"; then
9685     ac_verc_fail=yes
9686   else
9687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9688 $as_echo_n "checking version of bison... " >&6; }
9689     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9690     case $ac_prog_version in
9691       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9692       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9693          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9694       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9695     esac
9696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9697 $as_echo "$ac_prog_version" >&6; }
9698   fi
9699   if test $ac_verc_fail = yes; then
9700     INTLBISON=:
9701   fi
9702
9703
9704
9705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9706 $as_echo_n "checking for long long int... " >&6; }
9707 if ${ac_cv_type_long_long_int+:} false; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710   ac_cv_type_long_long_int=yes
9711       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9712         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9713         if test $ac_cv_type_long_long_int = yes; then
9714                                         if test "$cross_compiling" = yes; then :
9715   :
9716 else
9717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h.  */
9719 #include <limits.h>
9720                  #ifndef LLONG_MAX
9721                  # define HALF \
9722                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9723                  # define LLONG_MAX (HALF - 1 + HALF)
9724                  #endif
9725 int
9726 main ()
9727 {
9728 long long int n = 1;
9729                  int i;
9730                  for (i = 0; ; i++)
9731                    {
9732                      long long int m = n << i;
9733                      if (m >> i != n)
9734                        return 1;
9735                      if (LLONG_MAX / 2 < m)
9736                        break;
9737                    }
9738                  return 0;
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_run "$LINENO"; then :
9744
9745 else
9746   ac_cv_type_long_long_int=no
9747 fi
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749   conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 fi
9751
9752         fi
9753       fi
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9756 $as_echo "$ac_cv_type_long_long_int" >&6; }
9757   if test $ac_cv_type_long_long_int = yes; then
9758
9759 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9760
9761   fi
9762
9763
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9765 $as_echo_n "checking for wchar_t... " >&6; }
9766 if ${gt_cv_c_wchar_t+:} false; then :
9767   $as_echo_n "(cached) " >&6
9768 else
9769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h.  */
9771 #include <stddef.h>
9772             wchar_t foo = (wchar_t)'\0';
9773 int
9774 main ()
9775 {
9776
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_compile "$LINENO"; then :
9782   gt_cv_c_wchar_t=yes
9783 else
9784   gt_cv_c_wchar_t=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9789 $as_echo "$gt_cv_c_wchar_t" >&6; }
9790   if test $gt_cv_c_wchar_t = yes; then
9791
9792 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9793
9794   fi
9795
9796
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9798 $as_echo_n "checking for wint_t... " >&6; }
9799 if ${gt_cv_c_wint_t+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804
9805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9806    <wchar.h>.
9807    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9808    before <wchar.h>.  */
9809 #include <stddef.h>
9810 #include <stdio.h>
9811 #include <time.h>
9812 #include <wchar.h>
9813             wint_t foo = (wchar_t)'\0';
9814 int
9815 main ()
9816 {
9817
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9823   gt_cv_c_wint_t=yes
9824 else
9825   gt_cv_c_wint_t=no
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9830 $as_echo "$gt_cv_c_wint_t" >&6; }
9831   if test $gt_cv_c_wint_t = yes; then
9832
9833 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9834
9835   fi
9836
9837
9838
9839
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9841 $as_echo_n "checking for intmax_t... " >&6; }
9842 if ${gt_cv_c_intmax_t+:} false; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h.  */
9847
9848 #include <stddef.h>
9849 #include <stdlib.h>
9850 #if HAVE_STDINT_H_WITH_UINTMAX
9851 #include <stdint.h>
9852 #endif
9853 #if HAVE_INTTYPES_H_WITH_UINTMAX
9854 #include <inttypes.h>
9855 #endif
9856
9857 int
9858 main ()
9859 {
9860 intmax_t x = -1;
9861             return !x;
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 if ac_fn_c_try_compile "$LINENO"; then :
9867   gt_cv_c_intmax_t=yes
9868 else
9869   gt_cv_c_intmax_t=no
9870 fi
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9874 $as_echo "$gt_cv_c_intmax_t" >&6; }
9875   if test $gt_cv_c_intmax_t = yes; then
9876
9877 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9878
9879   fi
9880
9881
9882
9883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9884 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9885 if ${gt_cv_func_printf_posix+:} false; then :
9886   $as_echo_n "(cached) " >&6
9887 else
9888
9889       if test "$cross_compiling" = yes; then :
9890
9891           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h.  */
9893
9894 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9895   notposix
9896 #endif
9897
9898 _ACEOF
9899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9900   $EGREP "notposix" >/dev/null 2>&1; then :
9901   gt_cv_func_printf_posix="guessing no"
9902 else
9903   gt_cv_func_printf_posix="guessing yes"
9904 fi
9905 rm -f conftest*
9906
9907
9908 else
9909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h.  */
9911
9912 #include <stdio.h>
9913 #include <string.h>
9914 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9915    dollar expansion (possibly an autoconf bug).  */
9916 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9917 static char buf[100];
9918 int main ()
9919 {
9920   sprintf (buf, format, 33, 55);
9921   return (strcmp (buf, "55 33") != 0);
9922 }
9923 _ACEOF
9924 if ac_fn_c_try_run "$LINENO"; then :
9925   gt_cv_func_printf_posix=yes
9926 else
9927   gt_cv_func_printf_posix=no
9928 fi
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9930   conftest.$ac_objext conftest.beam conftest.$ac_ext
9931 fi
9932
9933
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9936 $as_echo "$gt_cv_func_printf_posix" >&6; }
9937   case $gt_cv_func_printf_posix in
9938     *yes)
9939
9940 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9941
9942       ;;
9943   esac
9944
9945
9946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9947 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9948 if ${ac_cv_gnu_library_2_1+:} false; then :
9949   $as_echo_n "(cached) " >&6
9950 else
9951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h.  */
9953
9954 #include <features.h>
9955 #ifdef __GNU_LIBRARY__
9956  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9957   Lucky GNU user
9958  #endif
9959 #endif
9960 #ifdef __UCLIBC__
9961  Lucky user
9962 #endif
9963
9964 _ACEOF
9965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966   $EGREP "Lucky" >/dev/null 2>&1; then :
9967   ac_cv_gnu_library_2_1=yes
9968 else
9969   ac_cv_gnu_library_2_1=no
9970 fi
9971 rm -f conftest*
9972
9973
9974
9975 fi
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9977 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9978
9979     GLIBC21="$ac_cv_gnu_library_2_1"
9980
9981
9982
9983   for ac_header in stdint.h
9984 do :
9985   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9986 if test "x$ac_cv_header_stdint_h" = xyes; then :
9987   cat >>confdefs.h <<_ACEOF
9988 #define HAVE_STDINT_H 1
9989 _ACEOF
9990
9991 fi
9992
9993 done
9994
9995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9996 $as_echo_n "checking for SIZE_MAX... " >&6; }
9997 if ${gl_cv_size_max+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000
10001     gl_cv_size_max=
10002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h.  */
10004
10005 #include <limits.h>
10006 #if HAVE_STDINT_H
10007 #include <stdint.h>
10008 #endif
10009 #ifdef SIZE_MAX
10010 Found it
10011 #endif
10012
10013 _ACEOF
10014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015   $EGREP "Found it" >/dev/null 2>&1; then :
10016   gl_cv_size_max=yes
10017 fi
10018 rm -f conftest*
10019
10020     if test -z "$gl_cv_size_max"; then
10021                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10022 #include <limits.h>"; then :
10023
10024 else
10025   size_t_bits_minus_1=
10026 fi
10027
10028       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10029
10030 else
10031   fits_in_uint=
10032 fi
10033
10034       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10035         if test $fits_in_uint = 1; then
10036                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h.  */
10038 #include <stddef.h>
10039                  extern size_t foo;
10040                  extern unsigned long foo;
10041
10042 int
10043 main ()
10044 {
10045
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 if ac_fn_c_try_compile "$LINENO"; then :
10051   fits_in_uint=0
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054         fi
10055                                 if test $fits_in_uint = 1; then
10056           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10057         else
10058           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10059         fi
10060       else
10061                 gl_cv_size_max='((size_t)~(size_t)0)'
10062       fi
10063     fi
10064
10065 fi
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10067 $as_echo "$gl_cv_size_max" >&6; }
10068   if test "$gl_cv_size_max" != yes; then
10069
10070 cat >>confdefs.h <<_ACEOF
10071 #define SIZE_MAX $gl_cv_size_max
10072 _ACEOF
10073
10074   fi
10075
10076
10077
10078
10079   for ac_header in stdint.h
10080 do :
10081   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10082 if test "x$ac_cv_header_stdint_h" = xyes; then :
10083   cat >>confdefs.h <<_ACEOF
10084 #define HAVE_STDINT_H 1
10085 _ACEOF
10086
10087 fi
10088
10089 done
10090
10091
10092
10093
10094
10095   for ac_func in $ac_func_list
10096 do :
10097   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10100   cat >>confdefs.h <<_ACEOF
10101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10102 _ACEOF
10103
10104 fi
10105 done
10106
10107
10108
10109
10110
10111
10112
10113
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10115 $as_echo_n "checking for working fcntl.h... " >&6; }
10116 if ${gl_cv_header_working_fcntl_h+:} false; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119   if test "$cross_compiling" = yes; then :
10120   gl_cv_header_working_fcntl_h=cross-compiling
10121 else
10122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h.  */
10124 #include <sys/types.h>
10125            #include <sys/stat.h>
10126            #if HAVE_UNISTD_H
10127            # include <unistd.h>
10128            #else /* on Windows with MSVC */
10129            # include <io.h>
10130            # include <stdlib.h>
10131            # defined sleep(n) _sleep ((n) * 1000)
10132            #endif
10133            #include <fcntl.h>
10134            #ifndef O_NOATIME
10135             #define O_NOATIME 0
10136            #endif
10137            #ifndef O_NOFOLLOW
10138             #define O_NOFOLLOW 0
10139            #endif
10140            static int const constants[] =
10141             {
10142               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10143               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10144             };
10145
10146 int
10147 main ()
10148 {
10149
10150             int result = !constants;
10151             #if HAVE_SYMLINK
10152             {
10153               static char const sym[] = "conftest.sym";
10154               if (symlink ("/dev/null", sym) != 0)
10155                 result |= 2;
10156               else
10157                 {
10158                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10159                   if (fd >= 0)
10160                     {
10161                       close (fd);
10162                       result |= 4;
10163                     }
10164                 }
10165               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10166                 result |= 2;
10167               else
10168                 {
10169                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10170                   if (fd >= 0)
10171                     {
10172                       close (fd);
10173                       result |= 4;
10174                     }
10175                 }
10176               unlink (sym);
10177             }
10178             #endif
10179             {
10180               static char const file[] = "confdefs.h";
10181               int fd = open (file, O_RDONLY | O_NOATIME);
10182               if (fd < 0)
10183                 result |= 8;
10184               else
10185                 {
10186                   struct stat st0;
10187                   if (fstat (fd, &st0) != 0)
10188                     result |= 16;
10189                   else
10190                     {
10191                       char c;
10192                       sleep (1);
10193                       if (read (fd, &c, 1) != 1)
10194                         result |= 24;
10195                       else
10196                         {
10197                           if (close (fd) != 0)
10198                             result |= 32;
10199                           else
10200                             {
10201                               struct stat st1;
10202                               if (stat (file, &st1) != 0)
10203                                 result |= 40;
10204                               else
10205                                 if (st0.st_atime != st1.st_atime)
10206                                   result |= 64;
10207                             }
10208                         }
10209                     }
10210                 }
10211             }
10212             return result;
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_run "$LINENO"; then :
10218   gl_cv_header_working_fcntl_h=yes
10219 else
10220   case $? in #(
10221         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10222         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10223         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10224          *) gl_cv_header_working_fcntl_h='no';;
10225         esac
10226 fi
10227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228   conftest.$ac_objext conftest.beam conftest.$ac_ext
10229 fi
10230
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10233 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10234
10235   case $gl_cv_header_working_fcntl_h in #(
10236   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10237   *) ac_val=1;;
10238   esac
10239
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_WORKING_O_NOATIME $ac_val
10242 _ACEOF
10243
10244
10245   case $gl_cv_header_working_fcntl_h in #(
10246   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10247   *) ac_val=1;;
10248   esac
10249
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10252 _ACEOF
10253
10254
10255
10256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10257 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10258 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10259   $as_echo_n "(cached) " >&6
10260 else
10261   gt_save_LIBS="$LIBS"
10262      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10263      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h.  */
10265 #include <CoreFoundation/CFPreferences.h>
10266 int
10267 main ()
10268 {
10269 CFPreferencesCopyAppValue(NULL, NULL)
10270   ;
10271   return 0;
10272 }
10273 _ACEOF
10274 if ac_fn_c_try_link "$LINENO"; then :
10275   gt_cv_func_CFPreferencesCopyAppValue=yes
10276 else
10277   gt_cv_func_CFPreferencesCopyAppValue=no
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext \
10280     conftest$ac_exeext conftest.$ac_ext
10281      LIBS="$gt_save_LIBS"
10282 fi
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10284 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10285   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10286
10287 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10288
10289   fi
10290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10291 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10292 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   gt_save_LIBS="$LIBS"
10296      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10297      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h.  */
10299 #include <CoreFoundation/CFLocale.h>
10300 int
10301 main ()
10302 {
10303 CFLocaleCopyCurrent();
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309   gt_cv_func_CFLocaleCopyCurrent=yes
10310 else
10311   gt_cv_func_CFLocaleCopyCurrent=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314     conftest$ac_exeext conftest.$ac_ext
10315      LIBS="$gt_save_LIBS"
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10318 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10319   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10320
10321 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10322
10323   fi
10324   INTL_MACOSX_LIBS=
10325   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10326     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10327   fi
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338     case "$enable_silent_rules" in
10339     yes) INTL_DEFAULT_VERBOSITY=0;;
10340     no)  INTL_DEFAULT_VERBOSITY=1;;
10341     *)   INTL_DEFAULT_VERBOSITY=1;;
10342   esac
10343
10344
10345   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10346 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10347
10348 else
10349
10350 $as_echo "#define ptrdiff_t long" >>confdefs.h
10351
10352
10353 fi
10354
10355   for ac_header in features.h stddef.h stdlib.h string.h
10356 do :
10357   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10360   cat >>confdefs.h <<_ACEOF
10361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10362 _ACEOF
10363
10364 fi
10365
10366 done
10367
10368   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10369     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10370 do :
10371   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10374   cat >>confdefs.h <<_ACEOF
10375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10376 _ACEOF
10377
10378 fi
10379 done
10380
10381
10382       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10383 "
10384 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10385   ac_have_decl=1
10386 else
10387   ac_have_decl=0
10388 fi
10389
10390 cat >>confdefs.h <<_ACEOF
10391 #define HAVE_DECL__SNPRINTF $ac_have_decl
10392 _ACEOF
10393 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10394 "
10395 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10396   ac_have_decl=1
10397 else
10398   ac_have_decl=0
10399 fi
10400
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10403 _ACEOF
10404
10405
10406           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10407 "
10408 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10409   ac_have_decl=1
10410 else
10411   ac_have_decl=0
10412 fi
10413
10414 cat >>confdefs.h <<_ACEOF
10415 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10416 _ACEOF
10417
10418
10419   case $gt_cv_func_printf_posix in
10420     *yes) HAVE_POSIX_PRINTF=1 ;;
10421     *) HAVE_POSIX_PRINTF=0 ;;
10422   esac
10423
10424   if test "$ac_cv_func_asprintf" = yes; then
10425     HAVE_ASPRINTF=1
10426   else
10427     HAVE_ASPRINTF=0
10428   fi
10429
10430   if test "$ac_cv_func_snprintf" = yes; then
10431     HAVE_SNPRINTF=1
10432   else
10433     HAVE_SNPRINTF=0
10434   fi
10435
10436   if test "$ac_cv_func_newlocale" = yes; then
10437     HAVE_NEWLOCALE=1
10438   else
10439     HAVE_NEWLOCALE=0
10440   fi
10441
10442   if test "$ac_cv_func_wprintf" = yes; then
10443     HAVE_WPRINTF=1
10444   else
10445     HAVE_WPRINTF=0
10446   fi
10447
10448
10449
10450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10451 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10452 if ${am_cv_langinfo_codeset+:} false; then :
10453   $as_echo_n "(cached) " >&6
10454 else
10455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h.  */
10457 #include <langinfo.h>
10458 int
10459 main ()
10460 {
10461 char* cs = nl_langinfo(CODESET); return !cs;
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467   am_cv_langinfo_codeset=yes
10468 else
10469   am_cv_langinfo_codeset=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext \
10472     conftest$ac_exeext conftest.$ac_ext
10473
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10476 $as_echo "$am_cv_langinfo_codeset" >&6; }
10477   if test $am_cv_langinfo_codeset = yes; then
10478
10479 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10480
10481   fi
10482
10483
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10485 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10486 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10487   $as_echo_n "(cached) " >&6
10488 else
10489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h.  */
10491 #include <locale.h>
10492 int
10493 main ()
10494 {
10495 return LC_MESSAGES
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_link "$LINENO"; then :
10501   gt_cv_val_LC_MESSAGES=yes
10502 else
10503   gt_cv_val_LC_MESSAGES=no
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext \
10506     conftest$ac_exeext conftest.$ac_ext
10507 fi
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10509 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10510   if test $gt_cv_val_LC_MESSAGES = yes; then
10511
10512 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10513
10514   fi
10515
10516
10517                 if test "$enable_shared" = yes; then
10518     case "$host_os" in
10519       mingw* | cygwin*) is_woe32dll=yes ;;
10520       *) is_woe32dll=no ;;
10521     esac
10522   else
10523     is_woe32dll=no
10524   fi
10525   WOE32DLL=$is_woe32dll
10526
10527
10528       case "$host_os" in
10529     mingw* | cygwin*) is_woe32=yes ;;
10530     *) is_woe32=no ;;
10531   esac
10532   WOE32=$is_woe32
10533
10534   if test $WOE32 = yes; then
10535         if test -n "$ac_tool_prefix"; then
10536   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10537 set dummy ${ac_tool_prefix}windres; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_prog_WINDRES+:} false; then :
10541   $as_echo_n "(cached) " >&6
10542 else
10543   if test -n "$WINDRES"; then
10544   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10545 else
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10548 do
10549   IFS=$as_save_IFS
10550   test -z "$as_dir" && as_dir=.
10551     for ac_exec_ext in '' $ac_executable_extensions; do
10552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555     break 2
10556   fi
10557 done
10558   done
10559 IFS=$as_save_IFS
10560
10561 fi
10562 fi
10563 WINDRES=$ac_cv_prog_WINDRES
10564 if test -n "$WINDRES"; then
10565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10566 $as_echo "$WINDRES" >&6; }
10567 else
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10570 fi
10571
10572
10573 fi
10574 if test -z "$ac_cv_prog_WINDRES"; then
10575   ac_ct_WINDRES=$WINDRES
10576   # Extract the first word of "windres", so it can be a program name with args.
10577 set dummy windres; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10581   $as_echo_n "(cached) " >&6
10582 else
10583   if test -n "$ac_ct_WINDRES"; then
10584   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10588 do
10589   IFS=$as_save_IFS
10590   test -z "$as_dir" && as_dir=.
10591     for ac_exec_ext in '' $ac_executable_extensions; do
10592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593     ac_cv_prog_ac_ct_WINDRES="windres"
10594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595     break 2
10596   fi
10597 done
10598   done
10599 IFS=$as_save_IFS
10600
10601 fi
10602 fi
10603 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10604 if test -n "$ac_ct_WINDRES"; then
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10606 $as_echo "$ac_ct_WINDRES" >&6; }
10607 else
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611
10612   if test "x$ac_ct_WINDRES" = x; then
10613     WINDRES=""
10614   else
10615     case $cross_compiling:$ac_tool_warned in
10616 yes:)
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10619 ac_tool_warned=yes ;;
10620 esac
10621     WINDRES=$ac_ct_WINDRES
10622   fi
10623 else
10624   WINDRES="$ac_cv_prog_WINDRES"
10625 fi
10626
10627   fi
10628
10629               case "$host_os" in
10630     hpux*) LTLIBC="" ;;
10631     *)     LTLIBC="-lc" ;;
10632   esac
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10661 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10662 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   gt_save_LIBS="$LIBS"
10666      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669 #include <CoreFoundation/CFPreferences.h>
10670 int
10671 main ()
10672 {
10673 CFPreferencesCopyAppValue(NULL, NULL)
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679   gt_cv_func_CFPreferencesCopyAppValue=yes
10680 else
10681   gt_cv_func_CFPreferencesCopyAppValue=no
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684     conftest$ac_exeext conftest.$ac_ext
10685      LIBS="$gt_save_LIBS"
10686 fi
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10688 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10689   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10690
10691 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10692
10693   fi
10694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10695 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10696 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   gt_save_LIBS="$LIBS"
10700      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10701      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h.  */
10703 #include <CoreFoundation/CFLocale.h>
10704 int
10705 main ()
10706 {
10707 CFLocaleCopyCurrent();
10708   ;
10709   return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713   gt_cv_func_CFLocaleCopyCurrent=yes
10714 else
10715   gt_cv_func_CFLocaleCopyCurrent=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718     conftest$ac_exeext conftest.$ac_ext
10719      LIBS="$gt_save_LIBS"
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10722 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10723   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10724
10725 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10726
10727   fi
10728   INTL_MACOSX_LIBS=
10729   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10730     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10731   fi
10732
10733
10734
10735
10736
10737
10738     BUILD_INCLUDED_LIBINTL=no
10739     USE_INCLUDED_LIBINTL=no
10740
10741   LIBINTL=
10742   LTLIBINTL=
10743   POSUB=
10744
10745     case " $gt_needs " in
10746     *" need-formatstring-macros "*) gt_api_version=3 ;;
10747     *" need-ngettext "*) gt_api_version=2 ;;
10748     *) gt_api_version=1 ;;
10749   esac
10750   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10751   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10752
10753     if test "$USE_NLS" = "yes"; then
10754     gt_use_preinstalled_gnugettext=no
10755
10756       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10757 $as_echo_n "checking whether included gettext is requested... " >&6; }
10758
10759 # Check whether --with-included-gettext was given.
10760 if test "${with_included_gettext+set}" = set; then :
10761   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10762 else
10763   nls_cv_force_use_gnu_gettext=no
10764 fi
10765
10766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10767 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10768
10769       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10770       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10771
10772
10773         if test $gt_api_version -ge 3; then
10774           gt_revision_test_code='
10775 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10776 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10777 #endif
10778 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10779 '
10780         else
10781           gt_revision_test_code=
10782         fi
10783         if test $gt_api_version -ge 2; then
10784           gt_expression_test_code=' + * ngettext ("", "", 0)'
10785         else
10786           gt_expression_test_code=
10787         fi
10788
10789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10790 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10791 if eval \${$gt_func_gnugettext_libc+:} false; then :
10792   $as_echo_n "(cached) " >&6
10793 else
10794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h.  */
10796
10797 #include <libintl.h>
10798 $gt_revision_test_code
10799 extern int _nl_msg_cat_cntr;
10800 extern int *_nl_domain_bindings;
10801
10802 int
10803 main ()
10804 {
10805
10806 bindtextdomain ("", "");
10807 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10808
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814   eval "$gt_func_gnugettext_libc=yes"
10815 else
10816   eval "$gt_func_gnugettext_libc=no"
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext \
10819     conftest$ac_exeext conftest.$ac_ext
10820 fi
10821 eval ac_res=\$$gt_func_gnugettext_libc
10822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10823 $as_echo "$ac_res" >&6; }
10824
10825         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10826
10827
10828
10829
10830
10831
10832
10833
10834     use_additional=yes
10835
10836   acl_save_prefix="$prefix"
10837   prefix="$acl_final_prefix"
10838   acl_save_exec_prefix="$exec_prefix"
10839   exec_prefix="$acl_final_exec_prefix"
10840
10841     eval additional_includedir=\"$includedir\"
10842     eval additional_libdir=\"$libdir\"
10843
10844   exec_prefix="$acl_save_exec_prefix"
10845   prefix="$acl_save_prefix"
10846
10847
10848 # Check whether --with-libintl-prefix was given.
10849 if test "${with_libintl_prefix+set}" = set; then :
10850   withval=$with_libintl_prefix;
10851     if test "X$withval" = "Xno"; then
10852       use_additional=no
10853     else
10854       if test "X$withval" = "X"; then
10855
10856   acl_save_prefix="$prefix"
10857   prefix="$acl_final_prefix"
10858   acl_save_exec_prefix="$exec_prefix"
10859   exec_prefix="$acl_final_exec_prefix"
10860
10861           eval additional_includedir=\"$includedir\"
10862           eval additional_libdir=\"$libdir\"
10863
10864   exec_prefix="$acl_save_exec_prefix"
10865   prefix="$acl_save_prefix"
10866
10867       else
10868         additional_includedir="$withval/include"
10869         additional_libdir="$withval/$acl_libdirstem"
10870         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10871            && ! test -d "$withval/$acl_libdirstem"; then
10872           additional_libdir="$withval/$acl_libdirstem2"
10873         fi
10874       fi
10875     fi
10876
10877 fi
10878
10879       LIBINTL=
10880   LTLIBINTL=
10881   INCINTL=
10882   LIBINTL_PREFIX=
10883       HAVE_LIBINTL=
10884   rpathdirs=
10885   ltrpathdirs=
10886   names_already_handled=
10887   names_next_round='intl '
10888   while test -n "$names_next_round"; do
10889     names_this_round="$names_next_round"
10890     names_next_round=
10891     for name in $names_this_round; do
10892       already_handled=
10893       for n in $names_already_handled; do
10894         if test "$n" = "$name"; then
10895           already_handled=yes
10896           break
10897         fi
10898       done
10899       if test -z "$already_handled"; then
10900         names_already_handled="$names_already_handled $name"
10901                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10902         eval value=\"\$HAVE_LIB$uppername\"
10903         if test -n "$value"; then
10904           if test "$value" = yes; then
10905             eval value=\"\$LIB$uppername\"
10906             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10907             eval value=\"\$LTLIB$uppername\"
10908             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10909           else
10910                                     :
10911           fi
10912         else
10913                               found_dir=
10914           found_la=
10915           found_so=
10916           found_a=
10917           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10918           if test -n "$acl_shlibext"; then
10919             shrext=".$acl_shlibext"             # typically: shrext=.so
10920           else
10921             shrext=
10922           fi
10923           if test $use_additional = yes; then
10924             dir="$additional_libdir"
10925                                     if test -n "$acl_shlibext"; then
10926               if test -f "$dir/$libname$shrext"; then
10927                 found_dir="$dir"
10928                 found_so="$dir/$libname$shrext"
10929               else
10930                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10931                   ver=`(cd "$dir" && \
10932                         for f in "$libname$shrext".*; do echo "$f"; done \
10933                         | sed -e "s,^$libname$shrext\\\\.,," \
10934                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10935                         | sed 1q ) 2>/dev/null`
10936                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10937                     found_dir="$dir"
10938                     found_so="$dir/$libname$shrext.$ver"
10939                   fi
10940                 else
10941                   eval library_names=\"$acl_library_names_spec\"
10942                   for f in $library_names; do
10943                     if test -f "$dir/$f"; then
10944                       found_dir="$dir"
10945                       found_so="$dir/$f"
10946                       break
10947                     fi
10948                   done
10949                 fi
10950               fi
10951             fi
10952                         if test "X$found_dir" = "X"; then
10953               if test -f "$dir/$libname.$acl_libext"; then
10954                 found_dir="$dir"
10955                 found_a="$dir/$libname.$acl_libext"
10956               fi
10957             fi
10958             if test "X$found_dir" != "X"; then
10959               if test -f "$dir/$libname.la"; then
10960                 found_la="$dir/$libname.la"
10961               fi
10962             fi
10963           fi
10964           if test "X$found_dir" = "X"; then
10965             for x in $LDFLAGS $LTLIBINTL; do
10966
10967   acl_save_prefix="$prefix"
10968   prefix="$acl_final_prefix"
10969   acl_save_exec_prefix="$exec_prefix"
10970   exec_prefix="$acl_final_exec_prefix"
10971   eval x=\"$x\"
10972   exec_prefix="$acl_save_exec_prefix"
10973   prefix="$acl_save_prefix"
10974
10975               case "$x" in
10976                 -L*)
10977                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10978                                     if test -n "$acl_shlibext"; then
10979                     if test -f "$dir/$libname$shrext"; then
10980                       found_dir="$dir"
10981                       found_so="$dir/$libname$shrext"
10982                     else
10983                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10984                         ver=`(cd "$dir" && \
10985                               for f in "$libname$shrext".*; do echo "$f"; done \
10986                               | sed -e "s,^$libname$shrext\\\\.,," \
10987                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10988                               | sed 1q ) 2>/dev/null`
10989                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10990                           found_dir="$dir"
10991                           found_so="$dir/$libname$shrext.$ver"
10992                         fi
10993                       else
10994                         eval library_names=\"$acl_library_names_spec\"
10995                         for f in $library_names; do
10996                           if test -f "$dir/$f"; then
10997                             found_dir="$dir"
10998                             found_so="$dir/$f"
10999                             break
11000                           fi
11001                         done
11002                       fi
11003                     fi
11004                   fi
11005                                     if test "X$found_dir" = "X"; then
11006                     if test -f "$dir/$libname.$acl_libext"; then
11007                       found_dir="$dir"
11008                       found_a="$dir/$libname.$acl_libext"
11009                     fi
11010                   fi
11011                   if test "X$found_dir" != "X"; then
11012                     if test -f "$dir/$libname.la"; then
11013                       found_la="$dir/$libname.la"
11014                     fi
11015                   fi
11016                   ;;
11017               esac
11018               if test "X$found_dir" != "X"; then
11019                 break
11020               fi
11021             done
11022           fi
11023           if test "X$found_dir" != "X"; then
11024                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11025             if test "X$found_so" != "X"; then
11026                                                         if test "$enable_rpath" = no \
11027                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11028                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11029                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11030               else
11031                                                                                 haveit=
11032                 for x in $ltrpathdirs; do
11033                   if test "X$x" = "X$found_dir"; then
11034                     haveit=yes
11035                     break
11036                   fi
11037                 done
11038                 if test -z "$haveit"; then
11039                   ltrpathdirs="$ltrpathdirs $found_dir"
11040                 fi
11041                                 if test "$acl_hardcode_direct" = yes; then
11042                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11043                 else
11044                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11045                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11046                                                             haveit=
11047                     for x in $rpathdirs; do
11048                       if test "X$x" = "X$found_dir"; then
11049                         haveit=yes
11050                         break
11051                       fi
11052                     done
11053                     if test -z "$haveit"; then
11054                       rpathdirs="$rpathdirs $found_dir"
11055                     fi
11056                   else
11057                                                                                 haveit=
11058                     for x in $LDFLAGS $LIBINTL; do
11059
11060   acl_save_prefix="$prefix"
11061   prefix="$acl_final_prefix"
11062   acl_save_exec_prefix="$exec_prefix"
11063   exec_prefix="$acl_final_exec_prefix"
11064   eval x=\"$x\"
11065   exec_prefix="$acl_save_exec_prefix"
11066   prefix="$acl_save_prefix"
11067
11068                       if test "X$x" = "X-L$found_dir"; then
11069                         haveit=yes
11070                         break
11071                       fi
11072                     done
11073                     if test -z "$haveit"; then
11074                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11075                     fi
11076                     if test "$acl_hardcode_minus_L" != no; then
11077                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11078                     else
11079                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11080                     fi
11081                   fi
11082                 fi
11083               fi
11084             else
11085               if test "X$found_a" != "X"; then
11086                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11087               else
11088                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11089               fi
11090             fi
11091                         additional_includedir=
11092             case "$found_dir" in
11093               */$acl_libdirstem | */$acl_libdirstem/)
11094                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11095                 if test "$name" = 'intl'; then
11096                   LIBINTL_PREFIX="$basedir"
11097                 fi
11098                 additional_includedir="$basedir/include"
11099                 ;;
11100               */$acl_libdirstem2 | */$acl_libdirstem2/)
11101                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11102                 if test "$name" = 'intl'; then
11103                   LIBINTL_PREFIX="$basedir"
11104                 fi
11105                 additional_includedir="$basedir/include"
11106                 ;;
11107             esac
11108             if test "X$additional_includedir" != "X"; then
11109                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11110                 haveit=
11111                 if test "X$additional_includedir" = "X/usr/local/include"; then
11112                   if test -n "$GCC"; then
11113                     case $host_os in
11114                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11115                     esac
11116                   fi
11117                 fi
11118                 if test -z "$haveit"; then
11119                   for x in $CPPFLAGS $INCINTL; do
11120
11121   acl_save_prefix="$prefix"
11122   prefix="$acl_final_prefix"
11123   acl_save_exec_prefix="$exec_prefix"
11124   exec_prefix="$acl_final_exec_prefix"
11125   eval x=\"$x\"
11126   exec_prefix="$acl_save_exec_prefix"
11127   prefix="$acl_save_prefix"
11128
11129                     if test "X$x" = "X-I$additional_includedir"; then
11130                       haveit=yes
11131                       break
11132                     fi
11133                   done
11134                   if test -z "$haveit"; then
11135                     if test -d "$additional_includedir"; then
11136                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11137                     fi
11138                   fi
11139                 fi
11140               fi
11141             fi
11142                         if test -n "$found_la"; then
11143                                                         save_libdir="$libdir"
11144               case "$found_la" in
11145                 */* | *\\*) . "$found_la" ;;
11146                 *) . "./$found_la" ;;
11147               esac
11148               libdir="$save_libdir"
11149                             for dep in $dependency_libs; do
11150                 case "$dep" in
11151                   -L*)
11152                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11153                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11154                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11155                       haveit=
11156                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11157                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11158                         if test -n "$GCC"; then
11159                           case $host_os in
11160                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11161                           esac
11162                         fi
11163                       fi
11164                       if test -z "$haveit"; then
11165                         haveit=
11166                         for x in $LDFLAGS $LIBINTL; do
11167
11168   acl_save_prefix="$prefix"
11169   prefix="$acl_final_prefix"
11170   acl_save_exec_prefix="$exec_prefix"
11171   exec_prefix="$acl_final_exec_prefix"
11172   eval x=\"$x\"
11173   exec_prefix="$acl_save_exec_prefix"
11174   prefix="$acl_save_prefix"
11175
11176                           if test "X$x" = "X-L$additional_libdir"; then
11177                             haveit=yes
11178                             break
11179                           fi
11180                         done
11181                         if test -z "$haveit"; then
11182                           if test -d "$additional_libdir"; then
11183                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11184                           fi
11185                         fi
11186                         haveit=
11187                         for x in $LDFLAGS $LTLIBINTL; do
11188
11189   acl_save_prefix="$prefix"
11190   prefix="$acl_final_prefix"
11191   acl_save_exec_prefix="$exec_prefix"
11192   exec_prefix="$acl_final_exec_prefix"
11193   eval x=\"$x\"
11194   exec_prefix="$acl_save_exec_prefix"
11195   prefix="$acl_save_prefix"
11196
11197                           if test "X$x" = "X-L$additional_libdir"; then
11198                             haveit=yes
11199                             break
11200                           fi
11201                         done
11202                         if test -z "$haveit"; then
11203                           if test -d "$additional_libdir"; then
11204                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11205                           fi
11206                         fi
11207                       fi
11208                     fi
11209                     ;;
11210                   -R*)
11211                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11212                     if test "$enable_rpath" != no; then
11213                                                                   haveit=
11214                       for x in $rpathdirs; do
11215                         if test "X$x" = "X$dir"; then
11216                           haveit=yes
11217                           break
11218                         fi
11219                       done
11220                       if test -z "$haveit"; then
11221                         rpathdirs="$rpathdirs $dir"
11222                       fi
11223                                                                   haveit=
11224                       for x in $ltrpathdirs; do
11225                         if test "X$x" = "X$dir"; then
11226                           haveit=yes
11227                           break
11228                         fi
11229                       done
11230                       if test -z "$haveit"; then
11231                         ltrpathdirs="$ltrpathdirs $dir"
11232                       fi
11233                     fi
11234                     ;;
11235                   -l*)
11236                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11237                     ;;
11238                   *.la)
11239                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11240                     ;;
11241                   *)
11242                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11243                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11244                     ;;
11245                 esac
11246               done
11247             fi
11248           else
11249                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11250             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11251           fi
11252         fi
11253       fi
11254     done
11255   done
11256   if test "X$rpathdirs" != "X"; then
11257     if test -n "$acl_hardcode_libdir_separator"; then
11258                         alldirs=
11259       for found_dir in $rpathdirs; do
11260         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11261       done
11262             acl_save_libdir="$libdir"
11263       libdir="$alldirs"
11264       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11265       libdir="$acl_save_libdir"
11266       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11267     else
11268             for found_dir in $rpathdirs; do
11269         acl_save_libdir="$libdir"
11270         libdir="$found_dir"
11271         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11272         libdir="$acl_save_libdir"
11273         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11274       done
11275     fi
11276   fi
11277   if test "X$ltrpathdirs" != "X"; then
11278             for found_dir in $ltrpathdirs; do
11279       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11280     done
11281   fi
11282
11283
11284
11285
11286
11287
11288           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11290 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11291   $as_echo_n "(cached) " >&6
11292 else
11293   gt_save_CPPFLAGS="$CPPFLAGS"
11294             CPPFLAGS="$CPPFLAGS $INCINTL"
11295             gt_save_LIBS="$LIBS"
11296             LIBS="$LIBS $LIBINTL"
11297                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300 #include <libintl.h>
11301 $gt_revision_test_code
11302 extern int _nl_msg_cat_cntr;
11303 extern
11304 #ifdef __cplusplus
11305 "C"
11306 #endif
11307 const char *_nl_expand_alias (const char *);
11308
11309 int
11310 main ()
11311 {
11312
11313 bindtextdomain ("", "");
11314 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11315
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321   eval "$gt_func_gnugettext_libintl=yes"
11322 else
11323   eval "$gt_func_gnugettext_libintl=no"
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11328               LIBS="$LIBS $LIBICONV"
11329               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h.  */
11331
11332 #include <libintl.h>
11333 $gt_revision_test_code
11334 extern int _nl_msg_cat_cntr;
11335 extern
11336 #ifdef __cplusplus
11337 "C"
11338 #endif
11339 const char *_nl_expand_alias (const char *);
11340
11341 int
11342 main ()
11343 {
11344
11345 bindtextdomain ("", "");
11346 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11347
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 if ac_fn_c_try_link "$LINENO"; then :
11353   LIBINTL="$LIBINTL $LIBICONV"
11354                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11355                  eval "$gt_func_gnugettext_libintl=yes"
11356
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext \
11359     conftest$ac_exeext conftest.$ac_ext
11360             fi
11361             CPPFLAGS="$gt_save_CPPFLAGS"
11362             LIBS="$gt_save_LIBS"
11363 fi
11364 eval ac_res=\$$gt_func_gnugettext_libintl
11365                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11366 $as_echo "$ac_res" >&6; }
11367         fi
11368
11369                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11370            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11371                 && test "$PACKAGE" != gettext-runtime \
11372                 && test "$PACKAGE" != gettext-tools; }; then
11373           gt_use_preinstalled_gnugettext=yes
11374         else
11375                     LIBINTL=
11376           LTLIBINTL=
11377           INCINTL=
11378         fi
11379
11380
11381         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11382                               nls_cv_use_gnu_gettext=yes
11383         fi
11384       fi
11385
11386       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11387                 BUILD_INCLUDED_LIBINTL=yes
11388         USE_INCLUDED_LIBINTL=yes
11389         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11390         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11391         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11392       fi
11393
11394       CATOBJEXT=
11395       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11397                 CATOBJEXT=.gmo
11398       fi
11399
11400
11401     if test -n "$INTL_MACOSX_LIBS"; then
11402       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11403          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11404                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11405         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11406       fi
11407     fi
11408
11409     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11410        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11411
11412 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11413
11414     else
11415       USE_NLS=no
11416     fi
11417   fi
11418
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11420 $as_echo_n "checking whether to use NLS... " >&6; }
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11422 $as_echo "$USE_NLS" >&6; }
11423   if test "$USE_NLS" = "yes"; then
11424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11425 $as_echo_n "checking where the gettext function comes from... " >&6; }
11426     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11427       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11428         gt_source="external libintl"
11429       else
11430         gt_source="libc"
11431       fi
11432     else
11433       gt_source="included intl directory"
11434     fi
11435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11436 $as_echo "$gt_source" >&6; }
11437   fi
11438
11439   if test "$USE_NLS" = "yes"; then
11440
11441     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11442       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11444 $as_echo_n "checking how to link with libintl... " >&6; }
11445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11446 $as_echo "$LIBINTL" >&6; }
11447
11448   for element in $INCINTL; do
11449     haveit=
11450     for x in $CPPFLAGS; do
11451
11452   acl_save_prefix="$prefix"
11453   prefix="$acl_final_prefix"
11454   acl_save_exec_prefix="$exec_prefix"
11455   exec_prefix="$acl_final_exec_prefix"
11456   eval x=\"$x\"
11457   exec_prefix="$acl_save_exec_prefix"
11458   prefix="$acl_save_prefix"
11459
11460       if test "X$x" = "X$element"; then
11461         haveit=yes
11462         break
11463       fi
11464     done
11465     if test -z "$haveit"; then
11466       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11467     fi
11468   done
11469
11470       fi
11471
11472
11473 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11474
11475
11476 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11477
11478     fi
11479
11480         POSUB=po
11481   fi
11482
11483
11484             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11485       BUILD_INCLUDED_LIBINTL=yes
11486     fi
11487
11488
11489
11490
11491
11492         nls_cv_header_intl=
11493     nls_cv_header_libgt=
11494
11495         DATADIRNAME=share
11496
11497
11498         INSTOBJEXT=.mo
11499
11500
11501         GENCAT=gencat
11502
11503
11504         INTLOBJS=
11505     if test "$USE_INCLUDED_LIBINTL" = yes; then
11506       INTLOBJS="\$(GETTOBJS)"
11507     fi
11508
11509
11510         INTL_LIBTOOL_SUFFIX_PREFIX=
11511
11512
11513
11514     INTLLIBS="$LIBINTL"
11515
11516
11517
11518
11519
11520
11521
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11523 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11524 set x ${MAKE-make}
11525 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11526 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   cat >conftest.make <<\_ACEOF
11530 SHELL = /bin/sh
11531 all:
11532         @echo '@@@%%%=$(MAKE)=@@@%%%'
11533 _ACEOF
11534 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11535 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11536   *@@@%%%=?*=@@@%%%*)
11537     eval ac_cv_prog_make_${ac_make}_set=yes;;
11538   *)
11539     eval ac_cv_prog_make_${ac_make}_set=no;;
11540 esac
11541 rm -f conftest.make
11542 fi
11543 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545 $as_echo "yes" >&6; }
11546   SET_MAKE=
11547 else
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550   SET_MAKE="MAKE=${MAKE-make}"
11551 fi
11552
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11554 $as_echo_n "checking for GNU make... " >&6; }
11555 if ${_cv_gnu_make_command+:} false; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   _cv_gnu_make_command='' ;
11559                 if test -n "$FORCE_NATIVE_MAKE" ; then
11560                    MAKES="make"
11561                 else
11562                    MAKES="make gmake gnumake"
11563                 fi
11564                 for a in "$MAKE" $MAKES ; do
11565                         if test -z "$a" ; then continue ; fi ;
11566                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11567                                 _cv_gnu_make_command=$a ;
11568                                 break;
11569                         fi
11570                 done ;
11571
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11574 $as_echo "$_cv_gnu_make_command" >&6; } ;
11575         if test  "x$_cv_gnu_make_command" != "x"  ; then
11576                 ifGNUmake='' ;
11577                 ifNotGNUmake='#' ;
11578         else
11579                 ifGNUmake='#' ;
11580                 ifNotGNUmake='' ;
11581                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11582 $as_echo "\"Not found\"" >&6; };
11583         fi
11584
11585
11586
11587 # Extract the first word of "ln", so it can be a program name with args.
11588 set dummy ln; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_LN+:} false; then :
11592   $as_echo_n "(cached) " >&6
11593 else
11594   case $LN in
11595   [\\/]* | ?:[\\/]*)
11596   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11597   ;;
11598   *)
11599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11601 do
11602   IFS=$as_save_IFS
11603   test -z "$as_dir" && as_dir=.
11604     for ac_exec_ext in '' $ac_executable_extensions; do
11605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608     break 2
11609   fi
11610 done
11611   done
11612 IFS=$as_save_IFS
11613
11614   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11615   ;;
11616 esac
11617 fi
11618 LN=$ac_cv_path_LN
11619 if test -n "$LN"; then
11620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11621 $as_echo "$LN" >&6; }
11622 else
11623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11626
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11629 $as_echo_n "checking whether ln -s works... " >&6; }
11630 LN_S=$as_ln_s
11631 if test "$LN_S" = "ln -s"; then
11632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11633 $as_echo "yes" >&6; }
11634 else
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11636 $as_echo "no, using $LN_S" >&6; }
11637 fi
11638
11639 # Extract the first word of "mv", so it can be a program name with args.
11640 set dummy mv; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_path_MV+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   case $MV in
11647   [\\/]* | ?:[\\/]*)
11648   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11649   ;;
11650   *)
11651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652 for as_dir in $PATH
11653 do
11654   IFS=$as_save_IFS
11655   test -z "$as_dir" && as_dir=.
11656     for ac_exec_ext in '' $ac_executable_extensions; do
11657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660     break 2
11661   fi
11662 done
11663   done
11664 IFS=$as_save_IFS
11665
11666   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11667   ;;
11668 esac
11669 fi
11670 MV=$ac_cv_path_MV
11671 if test -n "$MV"; then
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11673 $as_echo "$MV" >&6; }
11674 else
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678
11679
11680 # Extract the first word of "cp", so it can be a program name with args.
11681 set dummy cp; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_path_CP+:} false; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   case $CP in
11688   [\\/]* | ?:[\\/]*)
11689   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11690   ;;
11691   *)
11692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695   IFS=$as_save_IFS
11696   test -z "$as_dir" && as_dir=.
11697     for ac_exec_ext in '' $ac_executable_extensions; do
11698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701     break 2
11702   fi
11703 done
11704   done
11705 IFS=$as_save_IFS
11706
11707   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11708   ;;
11709 esac
11710 fi
11711 CP=$ac_cv_path_CP
11712 if test -n "$CP"; then
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11714 $as_echo "$CP" >&6; }
11715 else
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719
11720
11721 # Extract the first word of "rm", so it can be a program name with args.
11722 set dummy rm; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_path_RM+:} false; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   case $RM in
11729   [\\/]* | ?:[\\/]*)
11730   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11731   ;;
11732   *)
11733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736   IFS=$as_save_IFS
11737   test -z "$as_dir" && as_dir=.
11738     for ac_exec_ext in '' $ac_executable_extensions; do
11739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742     break 2
11743   fi
11744 done
11745   done
11746 IFS=$as_save_IFS
11747
11748   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11749   ;;
11750 esac
11751 fi
11752 RM=$ac_cv_path_RM
11753 if test -n "$RM"; then
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11755 $as_echo "$RM" >&6; }
11756 else
11757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 fi
11760
11761
11762 # Extract the first word of "chmod", so it can be a program name with args.
11763 set dummy chmod; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if ${ac_cv_path_CHMOD+:} false; then :
11767   $as_echo_n "(cached) " >&6
11768 else
11769   case $CHMOD in
11770   [\\/]* | ?:[\\/]*)
11771   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11772   ;;
11773   *)
11774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11776 do
11777   IFS=$as_save_IFS
11778   test -z "$as_dir" && as_dir=.
11779     for ac_exec_ext in '' $ac_executable_extensions; do
11780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783     break 2
11784   fi
11785 done
11786   done
11787 IFS=$as_save_IFS
11788
11789   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11790   ;;
11791 esac
11792 fi
11793 CHMOD=$ac_cv_path_CHMOD
11794 if test -n "$CHMOD"; then
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11796 $as_echo "$CHMOD" >&6; }
11797 else
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802
11803 for ac_prog in gawk mawk nawk awk
11804 do
11805   # Extract the first word of "$ac_prog", so it can be a program name with args.
11806 set dummy $ac_prog; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_AWK+:} false; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812   if test -n "$AWK"; then
11813   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11814 else
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11817 do
11818   IFS=$as_save_IFS
11819   test -z "$as_dir" && as_dir=.
11820     for ac_exec_ext in '' $ac_executable_extensions; do
11821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822     ac_cv_prog_AWK="$ac_prog"
11823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824     break 2
11825   fi
11826 done
11827   done
11828 IFS=$as_save_IFS
11829
11830 fi
11831 fi
11832 AWK=$ac_cv_prog_AWK
11833 if test -n "$AWK"; then
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11835 $as_echo "$AWK" >&6; }
11836 else
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841
11842   test -n "$AWK" && break
11843 done
11844
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11846 $as_echo_n "checking for egrep... " >&6; }
11847 if ${ac_cv_path_EGREP+:} false; then :
11848   $as_echo_n "(cached) " >&6
11849 else
11850   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11851    then ac_cv_path_EGREP="$GREP -E"
11852    else
11853      if test -z "$EGREP"; then
11854   ac_path_EGREP_found=false
11855   # Loop through the user's path and test for each of PROGNAME-LIST
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861     for ac_prog in egrep; do
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11864       as_fn_executable_p "$ac_path_EGREP" || continue
11865 # Check for GNU ac_path_EGREP and select it if it is found.
11866   # Check for GNU $ac_path_EGREP
11867 case `"$ac_path_EGREP" --version 2>&1` in
11868 *GNU*)
11869   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11870 *)
11871   ac_count=0
11872   $as_echo_n 0123456789 >"conftest.in"
11873   while :
11874   do
11875     cat "conftest.in" "conftest.in" >"conftest.tmp"
11876     mv "conftest.tmp" "conftest.in"
11877     cp "conftest.in" "conftest.nl"
11878     $as_echo 'EGREP' >> "conftest.nl"
11879     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11880     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11881     as_fn_arith $ac_count + 1 && ac_count=$as_val
11882     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11883       # Best one so far, save it but keep looking for a better one
11884       ac_cv_path_EGREP="$ac_path_EGREP"
11885       ac_path_EGREP_max=$ac_count
11886     fi
11887     # 10*(2^10) chars as input seems more than enough
11888     test $ac_count -gt 10 && break
11889   done
11890   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11891 esac
11892
11893       $ac_path_EGREP_found && break 3
11894     done
11895   done
11896   done
11897 IFS=$as_save_IFS
11898   if test -z "$ac_cv_path_EGREP"; then
11899     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11900   fi
11901 else
11902   ac_cv_path_EGREP=$EGREP
11903 fi
11904
11905    fi
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11908 $as_echo "$ac_cv_path_EGREP" >&6; }
11909  EGREP="$ac_cv_path_EGREP"
11910
11911
11912 # Extract the first word of "sed", so it can be a program name with args.
11913 set dummy sed; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_SED+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   case $SED in
11920   [\\/]* | ?:[\\/]*)
11921   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11922   ;;
11923   *)
11924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11926 do
11927   IFS=$as_save_IFS
11928   test -z "$as_dir" && as_dir=.
11929     for ac_exec_ext in '' $ac_executable_extensions; do
11930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933     break 2
11934   fi
11935 done
11936   done
11937 IFS=$as_save_IFS
11938
11939   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11940   ;;
11941 esac
11942 fi
11943 SED=$ac_cv_path_SED
11944 if test -n "$SED"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11946 $as_echo "$SED" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953 # Extract the first word of "perl", so it can be a program name with args.
11954 set dummy perl; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_path_PERL+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   case $PERL in
11961   [\\/]* | ?:[\\/]*)
11962   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11963   ;;
11964   *)
11965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11967 do
11968   IFS=$as_save_IFS
11969   test -z "$as_dir" && as_dir=.
11970     for ac_exec_ext in '' $ac_executable_extensions; do
11971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974     break 2
11975   fi
11976 done
11977   done
11978 IFS=$as_save_IFS
11979
11980   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11981   ;;
11982 esac
11983 fi
11984 PERL=$ac_cv_path_PERL
11985 if test -n "$PERL"; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11987 $as_echo "$PERL" >&6; }
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992
11993
11994 # Extract the first word of "ldconfig", so it can be a program name with args.
11995 set dummy ldconfig; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_path_LDCONFIG+:} false; then :
11999   $as_echo_n "(cached) " >&6
12000 else
12001   case $LDCONFIG in
12002   [\\/]* | ?:[\\/]*)
12003   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12004   ;;
12005   *)
12006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009   IFS=$as_save_IFS
12010   test -z "$as_dir" && as_dir=.
12011     for ac_exec_ext in '' $ac_executable_extensions; do
12012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015     break 2
12016   fi
12017 done
12018   done
12019 IFS=$as_save_IFS
12020
12021   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12022   ;;
12023 esac
12024 fi
12025 LDCONFIG=$ac_cv_path_LDCONFIG
12026 if test -n "$LDCONFIG"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12028 $as_echo "$LDCONFIG" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035 if test -n "$ac_tool_prefix"; then
12036   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12037 set dummy ${ac_tool_prefix}ar; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if ${ac_cv_prog_AR+:} false; then :
12041   $as_echo_n "(cached) " >&6
12042 else
12043   if test -n "$AR"; then
12044   ac_cv_prog_AR="$AR" # Let the user override the test.
12045 else
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12048 do
12049   IFS=$as_save_IFS
12050   test -z "$as_dir" && as_dir=.
12051     for ac_exec_ext in '' $ac_executable_extensions; do
12052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12053     ac_cv_prog_AR="${ac_tool_prefix}ar"
12054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055     break 2
12056   fi
12057 done
12058   done
12059 IFS=$as_save_IFS
12060
12061 fi
12062 fi
12063 AR=$ac_cv_prog_AR
12064 if test -n "$AR"; then
12065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12066 $as_echo "$AR" >&6; }
12067 else
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12070 fi
12071
12072
12073 fi
12074 if test -z "$ac_cv_prog_AR"; then
12075   ac_ct_AR=$AR
12076   # Extract the first word of "ar", so it can be a program name with args.
12077 set dummy ar; ac_word=$2
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079 $as_echo_n "checking for $ac_word... " >&6; }
12080 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   if test -n "$ac_ct_AR"; then
12084   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12085 else
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12088 do
12089   IFS=$as_save_IFS
12090   test -z "$as_dir" && as_dir=.
12091     for ac_exec_ext in '' $ac_executable_extensions; do
12092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093     ac_cv_prog_ac_ct_AR="ar"
12094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095     break 2
12096   fi
12097 done
12098   done
12099 IFS=$as_save_IFS
12100
12101 fi
12102 fi
12103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12104 if test -n "$ac_ct_AR"; then
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12106 $as_echo "$ac_ct_AR" >&6; }
12107 else
12108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12110 fi
12111
12112   if test "x$ac_ct_AR" = x; then
12113     AR="ar"
12114   else
12115     case $cross_compiling:$ac_tool_warned in
12116 yes:)
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12119 ac_tool_warned=yes ;;
12120 esac
12121     AR=$ac_ct_AR
12122   fi
12123 else
12124   AR="$ac_cv_prog_AR"
12125 fi
12126
12127 if test -n "$ac_tool_prefix"; then
12128   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12131 $as_echo_n "checking for $ac_word... " >&6; }
12132 if ${ac_cv_prog_RANLIB+:} false; then :
12133   $as_echo_n "(cached) " >&6
12134 else
12135   if test -n "$RANLIB"; then
12136   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12137 else
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH
12140 do
12141   IFS=$as_save_IFS
12142   test -z "$as_dir" && as_dir=.
12143     for ac_exec_ext in '' $ac_executable_extensions; do
12144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12145     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12147     break 2
12148   fi
12149 done
12150   done
12151 IFS=$as_save_IFS
12152
12153 fi
12154 fi
12155 RANLIB=$ac_cv_prog_RANLIB
12156 if test -n "$RANLIB"; then
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12158 $as_echo "$RANLIB" >&6; }
12159 else
12160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12162 fi
12163
12164
12165 fi
12166 if test -z "$ac_cv_prog_RANLIB"; then
12167   ac_ct_RANLIB=$RANLIB
12168   # Extract the first word of "ranlib", so it can be a program name with args.
12169 set dummy ranlib; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   if test -n "$ac_ct_RANLIB"; then
12176   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181   IFS=$as_save_IFS
12182   test -z "$as_dir" && as_dir=.
12183     for ac_exec_ext in '' $ac_executable_extensions; do
12184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185     ac_cv_prog_ac_ct_RANLIB="ranlib"
12186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187     break 2
12188   fi
12189 done
12190   done
12191 IFS=$as_save_IFS
12192
12193 fi
12194 fi
12195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12196 if test -n "$ac_ct_RANLIB"; then
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12198 $as_echo "$ac_ct_RANLIB" >&6; }
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204   if test "x$ac_ct_RANLIB" = x; then
12205     RANLIB=":"
12206   else
12207     case $cross_compiling:$ac_tool_warned in
12208 yes:)
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12211 ac_tool_warned=yes ;;
12212 esac
12213     RANLIB=$ac_ct_RANLIB
12214   fi
12215 else
12216   RANLIB="$ac_cv_prog_RANLIB"
12217 fi
12218
12219 if test -n "$ac_tool_prefix"; then
12220   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12221 set dummy ${ac_tool_prefix}strip; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if ${ac_cv_prog_STRIP+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   if test -n "$STRIP"; then
12228   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12229 else
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233   IFS=$as_save_IFS
12234   test -z "$as_dir" && as_dir=.
12235     for ac_exec_ext in '' $ac_executable_extensions; do
12236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239     break 2
12240   fi
12241 done
12242   done
12243 IFS=$as_save_IFS
12244
12245 fi
12246 fi
12247 STRIP=$ac_cv_prog_STRIP
12248 if test -n "$STRIP"; then
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12250 $as_echo "$STRIP" >&6; }
12251 else
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255
12256
12257 fi
12258 if test -z "$ac_cv_prog_STRIP"; then
12259   ac_ct_STRIP=$STRIP
12260   # Extract the first word of "strip", so it can be a program name with args.
12261 set dummy strip; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12265   $as_echo_n "(cached) " >&6
12266 else
12267   if test -n "$ac_ct_STRIP"; then
12268   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12269 else
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12272 do
12273   IFS=$as_save_IFS
12274   test -z "$as_dir" && as_dir=.
12275     for ac_exec_ext in '' $ac_executable_extensions; do
12276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277     ac_cv_prog_ac_ct_STRIP="strip"
12278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279     break 2
12280   fi
12281 done
12282   done
12283 IFS=$as_save_IFS
12284
12285 fi
12286 fi
12287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12288 if test -n "$ac_ct_STRIP"; then
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12290 $as_echo "$ac_ct_STRIP" >&6; }
12291 else
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 fi
12295
12296   if test "x$ac_ct_STRIP" = x; then
12297     STRIP=":"
12298   else
12299     case $cross_compiling:$ac_tool_warned in
12300 yes:)
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303 ac_tool_warned=yes ;;
12304 esac
12305     STRIP=$ac_ct_STRIP
12306   fi
12307 else
12308   STRIP="$ac_cv_prog_STRIP"
12309 fi
12310
12311 # Extract the first word of "makeinfo", so it can be a program name with args.
12312 set dummy makeinfo; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_prog_MAKEINFO+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   if test -n "$MAKEINFO"; then
12319   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12320 else
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12323 do
12324   IFS=$as_save_IFS
12325   test -z "$as_dir" && as_dir=.
12326     for ac_exec_ext in '' $ac_executable_extensions; do
12327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12328     ac_cv_prog_MAKEINFO="makeinfo"
12329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330     break 2
12331   fi
12332 done
12333   done
12334 IFS=$as_save_IFS
12335
12336 fi
12337 fi
12338 MAKEINFO=$ac_cv_prog_MAKEINFO
12339 if test -n "$MAKEINFO"; then
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12341 $as_echo "$MAKEINFO" >&6; }
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 fi
12346
12347
12348 if test "_$MAKEINFO" = "_"; then
12349     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12350 else
12351     case "$MAKEINFO" in
12352       */missing.*)
12353         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12354 *** Makeinfo is missing. Info documentation will not be built." >&5
12355 $as_echo "$as_me: WARNING:
12356 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12357         ;;
12358       *)
12359         ;;
12360     esac
12361 fi
12362
12363
12364 # See if we need a separate native compiler.
12365 if test $cross_compiling = no; then
12366   BUILD_CC="$CC"
12367
12368 else
12369   for ac_prog in gcc cc
12370 do
12371   # Extract the first word of "$ac_prog", so it can be a program name with args.
12372 set dummy $ac_prog; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_BUILD_CC+:} false; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   if test -n "$BUILD_CC"; then
12379   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384   IFS=$as_save_IFS
12385   test -z "$as_dir" && as_dir=.
12386     for ac_exec_ext in '' $ac_executable_extensions; do
12387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388     ac_cv_prog_BUILD_CC="$ac_prog"
12389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390     break 2
12391   fi
12392 done
12393   done
12394 IFS=$as_save_IFS
12395
12396 fi
12397 fi
12398 BUILD_CC=$ac_cv_prog_BUILD_CC
12399 if test -n "$BUILD_CC"; then
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12401 $as_echo "$BUILD_CC" >&6; }
12402 else
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408   test -n "$BUILD_CC" && break
12409 done
12410
12411 fi
12412 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
12413 do :
12414   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12415 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12417   cat >>confdefs.h <<_ACEOF
12418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12419 _ACEOF
12420
12421 fi
12422
12423 done
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12426 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12427 DD=
12428 for i in dd gdd ; do
12429         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12430                 DD=$i
12431                 break
12432         fi
12433 done
12434 if test -n "$DD" ; then
12435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12436 $as_echo "$DD" >&6; }
12437 else
12438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12439 $as_echo "not found, using dd" >&6; }
12440         DD=dd
12441         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12442 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12443 fi
12444
12445
12446 for ac_header in net/if.h
12447 do :
12448   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12449 #if HAVE_SYS_TYPES_H
12450 #include <sys/types.h>
12451 #endif
12452 #if HAVE_SYS_SOCKET
12453 #include <sys/socket.h>
12454 #endif
12455
12456 "
12457 if test "x$ac_cv_header_net_if_h" = xyes; then :
12458   cat >>confdefs.h <<_ACEOF
12459 #define HAVE_NET_IF_H 1
12460 _ACEOF
12461
12462 fi
12463
12464 done
12465
12466 for ac_func in vprintf
12467 do :
12468   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12469 if test "x$ac_cv_func_vprintf" = xyes; then :
12470   cat >>confdefs.h <<_ACEOF
12471 #define HAVE_VPRINTF 1
12472 _ACEOF
12473
12474 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12475 if test "x$ac_cv_func__doprnt" = xyes; then :
12476
12477 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12478
12479 fi
12480
12481 fi
12482 done
12483
12484
12485 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12486 "
12487 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12488
12489 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12490
12491 fi
12492
12493 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12494 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12495
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_STRUCT_STAT_ST_ATIM 1
12498 _ACEOF
12499
12500
12501 fi
12502
12503 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12504 "
12505 if test "x$ac_cv_type_ssize_t" = xyes; then :
12506
12507 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12508
12509 fi
12510
12511 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12512 "
12513 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12514
12515 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12516
12517 fi
12518
12519 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12520                  #define _LARGEFILE64_SOURCE
12521                  #include <unistd.h>
12522 "
12523 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12524
12525 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12526
12527 fi
12528
12529 # The cast to long int works around a bug in the HP C Compiler
12530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12532 # This bug is HP SR number 8606223364.
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12534 $as_echo_n "checking size of short... " >&6; }
12535 if ${ac_cv_sizeof_short+:} false; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12539
12540 else
12541   if test "$ac_cv_type_short" = yes; then
12542      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12544 as_fn_error 77 "cannot compute sizeof (short)
12545 See \`config.log' for more details" "$LINENO" 5; }
12546    else
12547      ac_cv_sizeof_short=0
12548    fi
12549 fi
12550
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12553 $as_echo "$ac_cv_sizeof_short" >&6; }
12554
12555
12556
12557 cat >>confdefs.h <<_ACEOF
12558 #define SIZEOF_SHORT $ac_cv_sizeof_short
12559 _ACEOF
12560
12561
12562 # The cast to long int works around a bug in the HP C Compiler
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12567 $as_echo_n "checking size of int... " >&6; }
12568 if ${ac_cv_sizeof_int+:} false; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12572
12573 else
12574   if test "$ac_cv_type_int" = yes; then
12575      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12577 as_fn_error 77 "cannot compute sizeof (int)
12578 See \`config.log' for more details" "$LINENO" 5; }
12579    else
12580      ac_cv_sizeof_int=0
12581    fi
12582 fi
12583
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12586 $as_echo "$ac_cv_sizeof_int" >&6; }
12587
12588
12589
12590 cat >>confdefs.h <<_ACEOF
12591 #define SIZEOF_INT $ac_cv_sizeof_int
12592 _ACEOF
12593
12594
12595 # The cast to long int works around a bug in the HP C Compiler
12596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12598 # This bug is HP SR number 8606223364.
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12600 $as_echo_n "checking size of long... " >&6; }
12601 if ${ac_cv_sizeof_long+:} false; then :
12602   $as_echo_n "(cached) " >&6
12603 else
12604   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12605
12606 else
12607   if test "$ac_cv_type_long" = yes; then
12608      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12610 as_fn_error 77 "cannot compute sizeof (long)
12611 See \`config.log' for more details" "$LINENO" 5; }
12612    else
12613      ac_cv_sizeof_long=0
12614    fi
12615 fi
12616
12617 fi
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12619 $as_echo "$ac_cv_sizeof_long" >&6; }
12620
12621
12622
12623 cat >>confdefs.h <<_ACEOF
12624 #define SIZEOF_LONG $ac_cv_sizeof_long
12625 _ACEOF
12626
12627
12628 # The cast to long int works around a bug in the HP C Compiler
12629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12631 # This bug is HP SR number 8606223364.
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12633 $as_echo_n "checking size of long long... " >&6; }
12634 if ${ac_cv_sizeof_long_long+:} false; then :
12635   $as_echo_n "(cached) " >&6
12636 else
12637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12638
12639 else
12640   if test "$ac_cv_type_long_long" = yes; then
12641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12643 as_fn_error 77 "cannot compute sizeof (long long)
12644 See \`config.log' for more details" "$LINENO" 5; }
12645    else
12646      ac_cv_sizeof_long_long=0
12647    fi
12648 fi
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12652 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12653
12654
12655
12656 cat >>confdefs.h <<_ACEOF
12657 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12658 _ACEOF
12659
12660
12661 # The cast to long int works around a bug in the HP C Compiler
12662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664 # This bug is HP SR number 8606223364.
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12666 $as_echo_n "checking size of off_t... " >&6; }
12667 if ${ac_cv_sizeof_off_t+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12671
12672 else
12673   if test "$ac_cv_type_off_t" = yes; then
12674      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676 as_fn_error 77 "cannot compute sizeof (off_t)
12677 See \`config.log' for more details" "$LINENO" 5; }
12678    else
12679      ac_cv_sizeof_off_t=0
12680    fi
12681 fi
12682
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12685 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12686
12687
12688
12689 cat >>confdefs.h <<_ACEOF
12690 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12691 _ACEOF
12692
12693
12694 # The cast to long int works around a bug in the HP C Compiler
12695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697 # This bug is HP SR number 8606223364.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12699 $as_echo_n "checking size of time_t... " >&6; }
12700 if ${ac_cv_sizeof_time_t+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12704
12705 else
12706   if test "$ac_cv_type_time_t" = yes; then
12707      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12709 as_fn_error 77 "cannot compute sizeof (time_t)
12710 See \`config.log' for more details" "$LINENO" 5; }
12711    else
12712      ac_cv_sizeof_time_t=0
12713    fi
12714 fi
12715
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12718 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12719
12720
12721
12722 cat >>confdefs.h <<_ACEOF
12723 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12724 _ACEOF
12725
12726
12727 SIZEOF_SHORT=$ac_cv_sizeof_short
12728 SIZEOF_INT=$ac_cv_sizeof_int
12729 SIZEOF_LONG=$ac_cv_sizeof_long
12730 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12731 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12732 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12733
12734
12735
12736
12737
12738
12739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12740 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12741 if ${ac_cv_c_bigendian+:} false; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   ac_cv_c_bigendian=unknown
12745     # See if we're dealing with a universal compiler.
12746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748 #ifndef __APPLE_CC__
12749                not a universal capable compiler
12750              #endif
12751              typedef int dummy;
12752
12753 _ACEOF
12754 if ac_fn_c_try_compile "$LINENO"; then :
12755
12756         # Check for potential -arch flags.  It is not universal unless
12757         # there are at least two -arch flags with different values.
12758         ac_arch=
12759         ac_prev=
12760         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12761          if test -n "$ac_prev"; then
12762            case $ac_word in
12763              i?86 | x86_64 | ppc | ppc64)
12764                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12765                  ac_arch=$ac_word
12766                else
12767                  ac_cv_c_bigendian=universal
12768                  break
12769                fi
12770                ;;
12771            esac
12772            ac_prev=
12773          elif test "x$ac_word" = "x-arch"; then
12774            ac_prev=arch
12775          fi
12776        done
12777 fi
12778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779     if test $ac_cv_c_bigendian = unknown; then
12780       # See if sys/param.h defines the BYTE_ORDER macro.
12781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h.  */
12783 #include <sys/types.h>
12784              #include <sys/param.h>
12785
12786 int
12787 main ()
12788 {
12789 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12790                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12791                      && LITTLE_ENDIAN)
12792               bogus endian macros
12793              #endif
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_compile "$LINENO"; then :
12800   # It does; now see whether it defined to BIG_ENDIAN or not.
12801          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h.  */
12803 #include <sys/types.h>
12804                 #include <sys/param.h>
12805
12806 int
12807 main ()
12808 {
12809 #if BYTE_ORDER != BIG_ENDIAN
12810                  not big endian
12811                 #endif
12812
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_compile "$LINENO"; then :
12818   ac_cv_c_bigendian=yes
12819 else
12820   ac_cv_c_bigendian=no
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 fi
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825     fi
12826     if test $ac_cv_c_bigendian = unknown; then
12827       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12828       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h.  */
12830 #include <limits.h>
12831
12832 int
12833 main ()
12834 {
12835 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12836               bogus endian macros
12837              #endif
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844   # It does; now see whether it defined to _BIG_ENDIAN or not.
12845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h.  */
12847 #include <limits.h>
12848
12849 int
12850 main ()
12851 {
12852 #ifndef _BIG_ENDIAN
12853                  not big endian
12854                 #endif
12855
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861   ac_cv_c_bigendian=yes
12862 else
12863   ac_cv_c_bigendian=no
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868     fi
12869     if test $ac_cv_c_bigendian = unknown; then
12870       # Compile a test program.
12871       if test "$cross_compiling" = yes; then :
12872   # Try to guess by grepping values from an object file.
12873          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h.  */
12875 short int ascii_mm[] =
12876                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12877                 short int ascii_ii[] =
12878                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12879                 int use_ascii (int i) {
12880                   return ascii_mm[i] + ascii_ii[i];
12881                 }
12882                 short int ebcdic_ii[] =
12883                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12884                 short int ebcdic_mm[] =
12885                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12886                 int use_ebcdic (int i) {
12887                   return ebcdic_mm[i] + ebcdic_ii[i];
12888                 }
12889                 extern int foo;
12890
12891 int
12892 main ()
12893 {
12894 return use_ascii (foo) == use_ebcdic (foo);
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 if ac_fn_c_try_compile "$LINENO"; then :
12900   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12901               ac_cv_c_bigendian=yes
12902             fi
12903             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12904               if test "$ac_cv_c_bigendian" = unknown; then
12905                 ac_cv_c_bigendian=no
12906               else
12907                 # finding both strings is unlikely to happen, but who knows?
12908                 ac_cv_c_bigendian=unknown
12909               fi
12910             fi
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 else
12914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h.  */
12916 $ac_includes_default
12917 int
12918 main ()
12919 {
12920
12921              /* Are we little or big endian?  From Harbison&Steele.  */
12922              union
12923              {
12924                long int l;
12925                char c[sizeof (long int)];
12926              } u;
12927              u.l = 1;
12928              return u.c[sizeof (long int) - 1] == 1;
12929
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_run "$LINENO"; then :
12935   ac_cv_c_bigendian=no
12936 else
12937   ac_cv_c_bigendian=yes
12938 fi
12939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940   conftest.$ac_objext conftest.beam conftest.$ac_ext
12941 fi
12942
12943     fi
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12946 $as_echo "$ac_cv_c_bigendian" >&6; }
12947  case $ac_cv_c_bigendian in #(
12948    yes)
12949      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12950 ;; #(
12951    no)
12952       ;; #(
12953    universal)
12954
12955 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12956
12957      ;; #(
12958    *)
12959      as_fn_error $? "unknown endianness
12960  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12961  esac
12962
12963 if test $cross_compiling = no; then
12964   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12965 else
12966   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12967 fi
12968 ASM_TYPES_HEADER=./asm_types.h
12969
12970 echo "/* These defines are needed for the public ext2fs.h header file */" \
12971      > public_config.h
12972 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12973   uniq tmp_config.$$ >> public_config.h
12974 else
12975   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12976 fi
12977 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12978   uniq tmp_config.$$ >> public_config.h
12979 else
12980   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12981 fi
12982 rm -f tmp_config.$$
12983 PUBLIC_CONFIG_HEADER=./public_config.h
12984
12985 for ac_header in inttypes.h
12986 do :
12987   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12988 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12989   cat >>confdefs.h <<_ACEOF
12990 #define HAVE_INTTYPES_H 1
12991 _ACEOF
12992
12993 fi
12994
12995 done
12996
12997 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12998 if test "x$ac_cv_type_intptr_t" = xyes; then :
12999
13000 cat >>confdefs.h <<_ACEOF
13001 #define HAVE_INTPTR_T 1
13002 _ACEOF
13003
13004
13005 fi
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13008 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13009 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014 #include <sys/stat.h>
13015 int
13016 main ()
13017 {
13018 struct stat stat; stat.st_flags = 0;
13019   ;
13020   return 0;
13021 }
13022 _ACEOF
13023 if ac_fn_c_try_compile "$LINENO"; then :
13024   e2fsprogs_cv_struct_st_flags=yes
13025 else
13026   e2fsprogs_cv_struct_st_flags=no
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13029 fi
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13032 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13033 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13035 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13036   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13037   $as_echo_n "(cached) " >&6
13038 else
13039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041 #include <sys/stat.h>
13042 int
13043 main ()
13044 {
13045 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051   e2fsprogs_cv_struct_st_flags_immut=yes
13052 else
13053   e2fsprogs_cv_struct_st_flags_immut=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056 fi
13057
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13059 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13060   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13061
13062 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13063
13064   fi
13065 fi
13066 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13067          #include <sys/socket.h>
13068 "
13069 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13070
13071 cat >>confdefs.h <<_ACEOF
13072 #define HAVE_SA_LEN 1
13073 _ACEOF
13074
13075 fi
13076
13077 if test -n "$BLKID_CMT"; then
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13079 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13080 if ${ac_cv_search_blkid_probe_all+:} false; then :
13081   $as_echo_n "(cached) " >&6
13082 else
13083   ac_func_search_save_LIBS=$LIBS
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h.  */
13086
13087 /* Override any GCC internal prototype to avoid an error.
13088    Use char because int might match the return type of a GCC
13089    builtin and then its argument prototype would still apply.  */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char blkid_probe_all ();
13094 int
13095 main ()
13096 {
13097 return blkid_probe_all ();
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 for ac_lib in '' blkid; do
13103   if test -z "$ac_lib"; then
13104     ac_res="none required"
13105   else
13106     ac_res=-l$ac_lib
13107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13108   fi
13109   if ac_fn_c_try_link "$LINENO"; then :
13110   ac_cv_search_blkid_probe_all=$ac_res
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext \
13113     conftest$ac_exeext
13114   if ${ac_cv_search_blkid_probe_all+:} false; then :
13115   break
13116 fi
13117 done
13118 if ${ac_cv_search_blkid_probe_all+:} false; then :
13119
13120 else
13121   ac_cv_search_blkid_probe_all=no
13122 fi
13123 rm conftest.$ac_ext
13124 LIBS=$ac_func_search_save_LIBS
13125 fi
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13127 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13128 ac_res=$ac_cv_search_blkid_probe_all
13129 if test "$ac_res" != no; then :
13130   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13131
13132 fi
13133
13134 fi
13135 if test -n "$DLOPEN_LIB" ; then
13136    ac_cv_func_dlopen=yes
13137 fi
13138 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
13139 do :
13140   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13141 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13142 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13143   cat >>confdefs.h <<_ACEOF
13144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13145 _ACEOF
13146
13147 fi
13148 done
13149
13150 SOCKET_LIB=''
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13152 $as_echo_n "checking for socket in -lsocket... " >&6; }
13153 if ${ac_cv_lib_socket_socket+:} false; then :
13154   $as_echo_n "(cached) " >&6
13155 else
13156   ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-lsocket  $LIBS"
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h.  */
13160
13161 /* Override any GCC internal prototype to avoid an error.
13162    Use char because int might match the return type of a GCC
13163    builtin and then its argument prototype would still apply.  */
13164 #ifdef __cplusplus
13165 extern "C"
13166 #endif
13167 char socket ();
13168 int
13169 main ()
13170 {
13171 return socket ();
13172   ;
13173   return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_link "$LINENO"; then :
13177   ac_cv_lib_socket_socket=yes
13178 else
13179   ac_cv_lib_socket_socket=no
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext \
13182     conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS
13184 fi
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13186 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13187 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13188   SOCKET_LIB=-lsocket
13189 fi
13190
13191
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13193 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13194 if ${ac_cv_lib_magic_magic_file+:} false; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lmagic  $LIBS"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h.  */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203    Use char because int might match the return type of a GCC
13204    builtin and then its argument prototype would still apply.  */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char magic_file ();
13209 int
13210 main ()
13211 {
13212 return magic_file ();
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_c_try_link "$LINENO"; then :
13218   ac_cv_lib_magic_magic_file=yes
13219 else
13220   ac_cv_lib_magic_magic_file=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext \
13223     conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13227 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13228 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13229   MAGIC_LIB=-lmagic
13230 for ac_header in magic.h
13231 do :
13232   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13233 if test "x$ac_cv_header_magic_h" = xyes; then :
13234   cat >>confdefs.h <<_ACEOF
13235 #define HAVE_MAGIC_H 1
13236 _ACEOF
13237
13238 fi
13239
13240 done
13241
13242 fi
13243
13244 if test "$ac_cv_func_dlopen" = yes ; then
13245    MAGIC_LIB=$DLOPEN_LIB
13246 fi
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13249 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13250 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13251   $as_echo_n "(cached) " >&6
13252 else
13253   ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-lrt  $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h.  */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259    Use char because int might match the return type of a GCC
13260    builtin and then its argument prototype would still apply.  */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char clock_gettime ();
13265 int
13266 main ()
13267 {
13268 return clock_gettime ();
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274   ac_cv_lib_rt_clock_gettime=yes
13275 else
13276   ac_cv_lib_rt_clock_gettime=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279     conftest$ac_exeext conftest.$ac_ext
13280 LIBS=$ac_check_lib_save_LIBS
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13283 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13284 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13285   CLOCK_GETTIME_LIB=-lrt
13286 fi
13287
13288
13289 FUSE_CMT=
13290 FUSE_LIB=
13291 # Check whether --enable-fuse2fs was given.
13292 if test "${enable_fuse2fs+set}" = set; then :
13293   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13294 then
13295         FUSE_CMT="#"
13296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13297 $as_echo "Disabling fuse2fs" >&6; }
13298 else
13299         for ac_header in pthread.h fuse.h
13300 do :
13301   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13303 #define FUSE_USE_VERSION 29
13304 "
13305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13306   cat >>confdefs.h <<_ACEOF
13307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13308 _ACEOF
13309
13310 else
13311   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13313 as_fn_error $? "Cannot find fuse2fs headers.
13314 See \`config.log' for more details" "$LINENO" 5; }
13315 fi
13316
13317 done
13318
13319
13320         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h.  */
13322 #define FUSE_USE_VERSION 29
13323 #ifdef __linux__
13324 #include <linux/fs.h>
13325 #include <linux/falloc.h>
13326 #include <linux/xattr.h>
13327 #endif
13328
13329 int
13330 main ()
13331 {
13332
13333   ;
13334   return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_cpp "$LINENO"; then :
13338
13339 else
13340   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13342 as_fn_error $? "Cannot find fuse2fs Linux headers.
13343 See \`config.log' for more details" "$LINENO" 5; }
13344 fi
13345 rm -f conftest.err conftest.i conftest.$ac_ext
13346
13347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13348 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13349 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   ac_check_lib_save_LIBS=$LIBS
13353 LIBS="-losxfuse  $LIBS"
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h.  */
13356
13357 /* Override any GCC internal prototype to avoid an error.
13358    Use char because int might match the return type of a GCC
13359    builtin and then its argument prototype would still apply.  */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 char fuse_main ();
13364 int
13365 main ()
13366 {
13367 return fuse_main ();
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 if ac_fn_c_try_link "$LINENO"; then :
13373   ac_cv_lib_osxfuse_fuse_main=yes
13374 else
13375   ac_cv_lib_osxfuse_fuse_main=no
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext \
13378     conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13382 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13383 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13384   FUSE_LIB=-losxfuse
13385 else
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13387 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13388 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13389   $as_echo_n "(cached) " >&6
13390 else
13391   ac_check_lib_save_LIBS=$LIBS
13392 LIBS="-lfuse  $LIBS"
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395
13396 /* Override any GCC internal prototype to avoid an error.
13397    Use char because int might match the return type of a GCC
13398    builtin and then its argument prototype would still apply.  */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 char fuse_main ();
13403 int
13404 main ()
13405 {
13406 return fuse_main ();
13407   ;
13408   return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_link "$LINENO"; then :
13412   ac_cv_lib_fuse_fuse_main=yes
13413 else
13414   ac_cv_lib_fuse_fuse_main=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext \
13417     conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13421 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13422 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13423   FUSE_LIB=-lfuse
13424 else
13425   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427 as_fn_error $? "Cannot find fuse library.
13428 See \`config.log' for more details" "$LINENO" 5; }
13429 fi
13430
13431 fi
13432
13433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13434 $as_echo "Enabling fuse2fs" >&6; }
13435 fi
13436
13437 else
13438   for ac_header in pthread.h fuse.h
13439 do :
13440   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13441 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13442 #define FUSE_USE_VERSION 29
13443 #ifdef __linux__
13444 # include <linux/fs.h>
13445 # include <linux/falloc.h>
13446 # include <linux/xattr.h>
13447 #endif
13448 "
13449 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13450   cat >>confdefs.h <<_ACEOF
13451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452 _ACEOF
13453
13454 else
13455   FUSE_CMT="#"
13456 fi
13457
13458 done
13459
13460 if test -z "$FUSE_CMT"
13461 then
13462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13463 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13464 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-losxfuse  $LIBS"
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h.  */
13471
13472 /* Override any GCC internal prototype to avoid an error.
13473    Use char because int might match the return type of a GCC
13474    builtin and then its argument prototype would still apply.  */
13475 #ifdef __cplusplus
13476 extern "C"
13477 #endif
13478 char fuse_main ();
13479 int
13480 main ()
13481 {
13482 return fuse_main ();
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_link "$LINENO"; then :
13488   ac_cv_lib_osxfuse_fuse_main=yes
13489 else
13490   ac_cv_lib_osxfuse_fuse_main=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext \
13493     conftest$ac_exeext conftest.$ac_ext
13494 LIBS=$ac_check_lib_save_LIBS
13495 fi
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13497 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13498 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13499   FUSE_LIB=-losxfuse
13500 else
13501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13502 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13503 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13504   $as_echo_n "(cached) " >&6
13505 else
13506   ac_check_lib_save_LIBS=$LIBS
13507 LIBS="-lfuse  $LIBS"
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h.  */
13510
13511 /* Override any GCC internal prototype to avoid an error.
13512    Use char because int might match the return type of a GCC
13513    builtin and then its argument prototype would still apply.  */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 char fuse_main ();
13518 int
13519 main ()
13520 {
13521 return fuse_main ();
13522   ;
13523   return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_link "$LINENO"; then :
13527   ac_cv_lib_fuse_fuse_main=yes
13528 else
13529   ac_cv_lib_fuse_fuse_main=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext \
13532     conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13534 fi
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13536 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13537 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13538   FUSE_LIB=-lfuse
13539 else
13540   FUSE_CMT="#"
13541 fi
13542
13543 fi
13544
13545 fi
13546 if test -z "$FUSE_CMT"
13547 then
13548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13549 $as_echo "Enabling fuse2fs by default." >&6; }
13550 fi
13551
13552 fi
13553
13554
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13557 $as_echo_n "checking for optreset... " >&6; }
13558 if ${ac_cv_have_optreset+:} false; then :
13559   $as_echo_n "(cached) " >&6
13560 else
13561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h.  */
13563 #include <unistd.h>
13564
13565 _ACEOF
13566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13567   $EGREP "optreset" >/dev/null 2>&1; then :
13568   ac_cv_have_optreset=yes
13569 else
13570   ac_cv_have_optreset=no
13571 fi
13572 rm -f conftest*
13573
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13576 $as_echo "$ac_cv_have_optreset" >&6; }
13577 if test $ac_cv_have_optreset = yes; then
13578
13579 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13580
13581 fi
13582
13583 SEM_INIT_LIB=''
13584 echo GL_THREADS_API: ${gl_threads_api}
13585 if test "${gl_threads_api}" != none
13586 then
13587   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13588 if test "x$ac_cv_func_sem_init" = xyes; then :
13589
13590 else
13591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13592 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13593 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13594   $as_echo_n "(cached) " >&6
13595 else
13596   ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-lpthread  $LIBS"
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600
13601 /* Override any GCC internal prototype to avoid an error.
13602    Use char because int might match the return type of a GCC
13603    builtin and then its argument prototype would still apply.  */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char sem_init ();
13608 int
13609 main ()
13610 {
13611 return sem_init ();
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 if ac_fn_c_try_link "$LINENO"; then :
13617   ac_cv_lib_pthread_sem_init=yes
13618 else
13619   ac_cv_lib_pthread_sem_init=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext \
13622     conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13626 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13627 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13628   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13629
13630         SEM_INIT_LIB=-lpthread
13631 else
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13633 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13634 if ${ac_cv_lib_rt_sem_init+:} false; then :
13635   $as_echo_n "(cached) " >&6
13636 else
13637   ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lrt  $LIBS"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h.  */
13641
13642 /* Override any GCC internal prototype to avoid an error.
13643    Use char because int might match the return type of a GCC
13644    builtin and then its argument prototype would still apply.  */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char sem_init ();
13649 int
13650 main ()
13651 {
13652 return sem_init ();
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_link "$LINENO"; then :
13658   ac_cv_lib_rt_sem_init=yes
13659 else
13660   ac_cv_lib_rt_sem_init=no
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext \
13663     conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13665 fi
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13667 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13668 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13669   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13670
13671         SEM_INIT_LIB=-lrt
13672 else
13673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13674 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13675 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678   ac_check_lib_save_LIBS=$LIBS
13679 LIBS="-lposix4  $LIBS"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682
13683 /* Override any GCC internal prototype to avoid an error.
13684    Use char because int might match the return type of a GCC
13685    builtin and then its argument prototype would still apply.  */
13686 #ifdef __cplusplus
13687 extern "C"
13688 #endif
13689 char sem_init ();
13690 int
13691 main ()
13692 {
13693 return sem_init ();
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_c_try_link "$LINENO"; then :
13699   ac_cv_lib_posix4_sem_init=yes
13700 else
13701   ac_cv_lib_posix4_sem_init=no
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext \
13704     conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13708 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13709 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13710   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13711
13712         SEM_INIT_LIB=-lposix4
13713 fi
13714
13715 fi
13716
13717 fi
13718
13719 fi
13720 fi
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13723 $as_echo_n "checking for unified diff option... " >&6; }
13724 if diff -u $0 $0 > /dev/null 2>&1 ; then
13725    UNI_DIFF_OPTS=-u
13726 else
13727    UNI_DIFF_OPTS=-c
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13730 $as_echo "$UNI_DIFF_OPTS" >&6; }
13731
13732 case "$host_os" in
13733 linux*)
13734
13735 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13736
13737         ;;
13738 esac
13739 # Check whether --enable-lto was given.
13740 if test "${enable_lto+set}" = set; then :
13741   enableval=$enable_lto;
13742 else
13743   enable_lto=probe
13744 fi
13745
13746 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13748 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13749         OLD_CFLAGS="$CFLAGS"
13750         OLD_LDFLAGS="$LDFLAGS"
13751         LTO_FLAGS="-flto -ffat-lto-objects"
13752         CFLAGS="$CFLAGS $LTO_FLAGS"
13753         LDFLAGS="$LDFLAGS $LTO_FLAGS"
13754         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756
13757 int
13758 main ()
13759 {
13760
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"; then :
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768                 lto_cflags=$LTO_FLAGS
13769                 lto_ldflags=$LTO_FLAGS
13770                 # Extract the first word of "gcc-ar", so it can be a program name with args.
13771 set dummy gcc-ar; ac_word=$2
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773 $as_echo_n "checking for $ac_word... " >&6; }
13774 if ${ac_cv_path_gcc_ar+:} false; then :
13775   $as_echo_n "(cached) " >&6
13776 else
13777   case $gcc_ar in
13778   [\\/]* | ?:[\\/]*)
13779   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13780   ;;
13781   *)
13782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13784 do
13785   IFS=$as_save_IFS
13786   test -z "$as_dir" && as_dir=.
13787     for ac_exec_ext in '' $ac_executable_extensions; do
13788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13789     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791     break 2
13792   fi
13793 done
13794   done
13795 IFS=$as_save_IFS
13796
13797   ;;
13798 esac
13799 fi
13800 gcc_ar=$ac_cv_path_gcc_ar
13801 if test -n "$gcc_ar"; then
13802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13803 $as_echo "$gcc_ar" >&6; }
13804 else
13805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13807 fi
13808
13809
13810                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13811 set dummy gcc-ranlib; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if ${ac_cv_path_gcc_ranlib+:} false; then :
13815   $as_echo_n "(cached) " >&6
13816 else
13817   case $gcc_ranlib in
13818   [\\/]* | ?:[\\/]*)
13819   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13820   ;;
13821   *)
13822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13824 do
13825   IFS=$as_save_IFS
13826   test -z "$as_dir" && as_dir=.
13827     for ac_exec_ext in '' $ac_executable_extensions; do
13828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13829     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13831     break 2
13832   fi
13833 done
13834   done
13835 IFS=$as_save_IFS
13836
13837   ;;
13838 esac
13839 fi
13840 gcc_ranlib=$ac_cv_path_gcc_ranlib
13841 if test -n "$gcc_ranlib"; then
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13843 $as_echo "$gcc_ranlib" >&6; }
13844 else
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13847 fi
13848
13849
13850 else
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854 rm -f core conftest.err conftest.$ac_objext \
13855     conftest$ac_exeext conftest.$ac_ext
13856         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13857                 have_lto=yes
13858                 AR="${gcc_ar}"
13859                 RANLIB="${gcc_ranlib}"
13860         fi
13861         CFLAGS="${OLD_CFLAGS}"
13862         LDFLAGS="${OLD_LDFLAGS}"
13863
13864
13865
13866 fi
13867 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13868         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13869 fi
13870 LINUX_CMT="#"
13871 CYGWIN_CMT="#"
13872 UNIX_CMT=
13873 case "$host_os" in
13874 linux*)
13875         LINUX_CMT=
13876         ;;
13877 cygwin)
13878         CYGWIN_CMT=
13879         UNIX_CMT="#"
13880         ;;
13881 esac
13882
13883
13884
13885 E2SCRUB_CMT="$LINUX_CMT"
13886
13887 case "$host_os" in
13888 linux* | gnu* | k*bsd*-gnu)
13889         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13890                 root_prefix="";
13891                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13892 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13893         fi
13894         ;;
13895 esac
13896 case "$host_os" in
13897 linux* | gnu* | k*bsd*-gnu)
13898         if test "$prefix" = NONE ; then
13899                 prefix="/usr";
13900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13901 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13902                 if test "$mandir" = '${prefix}/man' ; then
13903                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13904 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13905                         mandir=/usr/share/man
13906                 fi
13907         fi
13908 ;;
13909 esac
13910 if test "$root_prefix" = NONE ; then
13911         if test "$prefix" = NONE ; then
13912                 root_prefix="$ac_default_prefix"
13913         else
13914                 root_prefix="$prefix"
13915         fi
13916         root_bindir=$bindir
13917         root_sbindir=$sbindir
13918         root_libdir=$libdir
13919         root_sysconfdir=$sysconfdir
13920 else
13921         root_bindir='${root_prefix}/bin'
13922         root_sbindir='${root_prefix}/sbin'
13923         root_libdir='${root_prefix}/lib'
13924         root_sysconfdir='${root_prefix}/etc'
13925 fi
13926 if test "$bindir" != '${exec_prefix}/bin'; then
13927     root_bindir=$bindir
13928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13929 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13930 fi
13931 if test "$sbindir" != '${exec_prefix}/sbin'; then
13932     root_sbindir=$sbindir
13933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13934 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13935 fi
13936 if test "$libdir" != '${exec_prefix}/lib'; then
13937     root_libdir=$libdir
13938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13939 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13940 fi
13941 if test "$sysconfdir" != '${prefix}/etc'; then
13942     root_sysconfdir=$sysconfdir
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13944 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13945 fi
13946
13947
13948
13949
13950
13951
13952 # Check whether --with-multiarch was given.
13953 if test "${with_multiarch+set}" = set; then :
13954   withval=$with_multiarch; if test "$withval" = "lib64"; then
13955     libdir=/usr/lib64
13956     root_libdir=/lib64
13957 else
13958     libdir=$libdir/$withval
13959     root_libdir=$root_libdir/$withval
13960 fi
13961
13962 fi
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13965 $as_echo_n "checking whether we can link with -static... " >&6; }
13966 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13967   $as_echo_n "(cached) " >&6
13968 else
13969   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h.  */
13972 #include <stdio.h>
13973 int
13974 main ()
13975 {
13976 fflush(stdout);
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982   ac_cv_e2fsprogs_use_static=yes
13983 else
13984   ac_cv_e2fsprogs_use_static=no
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext \
13987     conftest$ac_exeext conftest.$ac_ext
13988 LDFLAGS=$SAVE_LDFLAGS
13989 fi
13990
13991 case "$host_os" in
13992 solaris2.*)
13993         ac_cv_e2fsprogs_use_static=no
13994 ;;
13995 esac
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13997 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13998 if test $ac_cv_e2fsprogs_use_static = yes; then
13999         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14000 fi
14001
14002 case "$host_os" in
14003 darwin*)
14004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14005 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14006
14007 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14008
14009         ;;
14010 esac
14011 if test "$cross_compiling" = yes ; then
14012   DO_TEST_SUITE=
14013 else
14014   DO_TEST_SUITE=check
14015 fi
14016
14017 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14018 if test -n "$CPPFLAGS" ; then
14019         INCLUDES="$INCLUDES $CPPFLAGS"
14020 fi
14021 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14022         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14023 fi
14024 if test -n "$WITH_DIET_LIBC" ; then
14025         INCLUDES="$INCLUDES -D_REENTRANT"
14026 fi
14027
14028
14029         MKINSTALLDIRS=
14030   if test -n "$ac_aux_dir"; then
14031     case "$ac_aux_dir" in
14032       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14033       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14034     esac
14035   fi
14036   if test -z "$MKINSTALLDIRS"; then
14037     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14038   fi
14039
14040
14041 if test $cross_compiling = no; then
14042    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14043    BUILD_LDFLAGS="$LDFLAGS"
14044 fi
14045
14046
14047 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14048 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14049 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14050
14051
14052
14053
14054
14055 # Check whether --with-udev_rules_dir was given.
14056 if test "${with_udev_rules_dir+set}" = set; then :
14057   withval=$with_udev_rules_dir;
14058 else
14059   with_udev_rules_dir=yes
14060 fi
14061
14062 if test "x${with_udev_rules_dir}" != "xno"; then :
14063
14064         if test "x${with_udev_rules_dir}" = "xyes"; then :
14065
14066
14067 pkg_failed=no
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14069 $as_echo_n "checking for udev... " >&6; }
14070
14071 if test -n "$udev_CFLAGS"; then
14072     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14073  elif test -n "$PKG_CONFIG"; then
14074     if test -n "$PKG_CONFIG" && \
14075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14076   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14077   ac_status=$?
14078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079   test $ac_status = 0; }; then
14080   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14081                       test "x$?" != "x0" && pkg_failed=yes
14082 else
14083   pkg_failed=yes
14084 fi
14085  else
14086     pkg_failed=untried
14087 fi
14088 if test -n "$udev_LIBS"; then
14089     pkg_cv_udev_LIBS="$udev_LIBS"
14090  elif test -n "$PKG_CONFIG"; then
14091     if test -n "$PKG_CONFIG" && \
14092     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14093   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14094   ac_status=$?
14095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096   test $ac_status = 0; }; then
14097   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14098                       test "x$?" != "x0" && pkg_failed=yes
14099 else
14100   pkg_failed=yes
14101 fi
14102  else
14103     pkg_failed=untried
14104 fi
14105
14106
14107
14108 if test $pkg_failed = yes; then
14109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14111
14112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14113         _pkg_short_errors_supported=yes
14114 else
14115         _pkg_short_errors_supported=no
14116 fi
14117         if test $_pkg_short_errors_supported = yes; then
14118                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14119         else
14120                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14121         fi
14122         # Put the nasty error message in config.log where it belongs
14123         echo "$udev_PKG_ERRORS" >&5
14124
14125
14126                         with_udev_rules_dir=""
14127
14128 elif test $pkg_failed = untried; then
14129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131
14132                         with_udev_rules_dir=""
14133
14134 else
14135         udev_CFLAGS=$pkg_cv_udev_CFLAGS
14136         udev_LIBS=$pkg_cv_udev_LIBS
14137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138 $as_echo "yes" >&6; }
14139
14140                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14141
14142 fi
14143
14144 fi
14145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14146 $as_echo_n "checking for udev rules dir... " >&6; }
14147         pkg_udev_rules_dir="${with_udev_rules_dir}"
14148         if test -n "${pkg_udev_rules_dir}"; then :
14149
14150                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14151 $as_echo "${pkg_udev_rules_dir}" >&6; }
14152                 have_udev="yes"
14153
14154 else
14155
14156                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157 $as_echo "no" >&6; }
14158                 have_udev="no"
14159
14160 fi
14161
14162 else
14163
14164         have_udev="disabled"
14165
14166 fi
14167
14168
14169
14170
14171 # Check whether --with-crond_dir was given.
14172 if test "${with_crond_dir+set}" = set; then :
14173   withval=$with_crond_dir;
14174 else
14175   with_crond_dir=yes
14176 fi
14177
14178 if test "x${with_crond_dir}" != "xno"; then :
14179
14180         if test "x${with_crond_dir}" = "xyes"; then :
14181
14182                 if test -d "/etc/cron.d"; then :
14183   with_crond_dir="/etc/cron.d"
14184 fi
14185
14186 fi
14187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14188 $as_echo_n "checking for system crontab dir... " >&6; }
14189         crond_dir="${with_crond_dir}"
14190         if test -n "${crond_dir}"; then :
14191
14192                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14193 $as_echo "${crond_dir}" >&6; }
14194                 have_crond="yes"
14195
14196 else
14197
14198                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200                 have_crond="no"
14201
14202 fi
14203
14204 else
14205
14206         have_crond="disabled"
14207
14208 fi
14209
14210
14211
14212
14213 # Check whether --with-systemd_unit_dir was given.
14214 if test "${with_systemd_unit_dir+set}" = set; then :
14215   withval=$with_systemd_unit_dir;
14216 else
14217   with_systemd_unit_dir=yes
14218 fi
14219
14220 if test "x${with_systemd_unit_dir}" != "xno"; then :
14221
14222         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14223
14224
14225 pkg_failed=no
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14227 $as_echo_n "checking for systemd... " >&6; }
14228
14229 if test -n "$systemd_CFLAGS"; then
14230     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14231  elif test -n "$PKG_CONFIG"; then
14232     if test -n "$PKG_CONFIG" && \
14233     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14234   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14235   ac_status=$?
14236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237   test $ac_status = 0; }; then
14238   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14239                       test "x$?" != "x0" && pkg_failed=yes
14240 else
14241   pkg_failed=yes
14242 fi
14243  else
14244     pkg_failed=untried
14245 fi
14246 if test -n "$systemd_LIBS"; then
14247     pkg_cv_systemd_LIBS="$systemd_LIBS"
14248  elif test -n "$PKG_CONFIG"; then
14249     if test -n "$PKG_CONFIG" && \
14250     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14251   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14252   ac_status=$?
14253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254   test $ac_status = 0; }; then
14255   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14256                       test "x$?" != "x0" && pkg_failed=yes
14257 else
14258   pkg_failed=yes
14259 fi
14260  else
14261     pkg_failed=untried
14262 fi
14263
14264
14265
14266 if test $pkg_failed = yes; then
14267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14269
14270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14271         _pkg_short_errors_supported=yes
14272 else
14273         _pkg_short_errors_supported=no
14274 fi
14275         if test $_pkg_short_errors_supported = yes; then
14276                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14277         else
14278                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14279         fi
14280         # Put the nasty error message in config.log where it belongs
14281         echo "$systemd_PKG_ERRORS" >&5
14282
14283
14284                         with_systemd_unit_dir=""
14285
14286 elif test $pkg_failed = untried; then
14287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14289
14290                         with_systemd_unit_dir=""
14291
14292 else
14293         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14294         systemd_LIBS=$pkg_cv_systemd_LIBS
14295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14297
14298                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14299
14300 fi
14301
14302
14303 fi
14304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14305 $as_echo_n "checking for systemd system unit dir... " >&6; }
14306         systemd_system_unit_dir="${with_systemd_unit_dir}"
14307         if test -n "${systemd_system_unit_dir}"; then :
14308
14309                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14310 $as_echo "${systemd_system_unit_dir}" >&6; }
14311                 have_systemd="yes"
14312
14313 else
14314
14315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14317                 have_systemd="no"
14318
14319 fi
14320
14321 else
14322
14323         have_systemd="disabled"
14324
14325 fi
14326
14327
14328
14329 test -d lib || mkdir lib
14330 test -d include || mkdir include
14331 test -d include/linux || mkdir include/linux
14332 test -d include/asm || mkdir include/asm
14333 if test -z "$UUID_CMT" ; then
14334         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14335                 lib/uuid/uuid_types.h"
14336 fi
14337 if test -z "$BLKID_CMT" ; then
14338         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14339                 lib/blkid/blkid_types.h"
14340 fi
14341 for i in MCONFIG Makefile e2fsprogs.spec \
14342         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14343         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14344         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14345         $uuid_out_list $blkid_out_list lib/support/Makefile \
14346         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14347         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14348         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14349         resize/Makefile doc/Makefile intl/Makefile \
14350         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14351         if test -d `dirname ${srcdir}/$i` ; then
14352                 outlist="$outlist $i"
14353         fi
14354 done
14355 ac_config_files="$ac_config_files $outlist"
14356
14357 cat >confcache <<\_ACEOF
14358 # This file is a shell script that caches the results of configure
14359 # tests run on this system so they can be shared between configure
14360 # scripts and configure runs, see configure's option --config-cache.
14361 # It is not useful on other systems.  If it contains results you don't
14362 # want to keep, you may remove or edit it.
14363 #
14364 # config.status only pays attention to the cache file if you give it
14365 # the --recheck option to rerun configure.
14366 #
14367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14369 # following values.
14370
14371 _ACEOF
14372
14373 # The following way of writing the cache mishandles newlines in values,
14374 # but we know of no workaround that is simple, portable, and efficient.
14375 # So, we kill variables containing newlines.
14376 # Ultrix sh set writes to stderr and can't be redirected directly,
14377 # and sets the high bit in the cache file unless we assign to the vars.
14378 (
14379   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14380     eval ac_val=\$$ac_var
14381     case $ac_val in #(
14382     *${as_nl}*)
14383       case $ac_var in #(
14384       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14386       esac
14387       case $ac_var in #(
14388       _ | IFS | as_nl) ;; #(
14389       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14390       *) { eval $ac_var=; unset $ac_var;} ;;
14391       esac ;;
14392     esac
14393   done
14394
14395   (set) 2>&1 |
14396     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14397     *${as_nl}ac_space=\ *)
14398       # `set' does not quote correctly, so add quotes: double-quote
14399       # substitution turns \\\\ into \\, and sed turns \\ into \.
14400       sed -n \
14401         "s/'/'\\\\''/g;
14402           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14403       ;; #(
14404     *)
14405       # `set' quotes correctly as required by POSIX, so do not add quotes.
14406       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14407       ;;
14408     esac |
14409     sort
14410 ) |
14411   sed '
14412      /^ac_cv_env_/b end
14413      t clear
14414      :clear
14415      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14416      t end
14417      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14418      :end' >>confcache
14419 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14420   if test -w "$cache_file"; then
14421     if test "x$cache_file" != "x/dev/null"; then
14422       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14423 $as_echo "$as_me: updating cache $cache_file" >&6;}
14424       if test ! -f "$cache_file" || test -h "$cache_file"; then
14425         cat confcache >"$cache_file"
14426       else
14427         case $cache_file in #(
14428         */* | ?:*)
14429           mv -f confcache "$cache_file"$$ &&
14430           mv -f "$cache_file"$$ "$cache_file" ;; #(
14431         *)
14432           mv -f confcache "$cache_file" ;;
14433         esac
14434       fi
14435     fi
14436   else
14437     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14438 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14439   fi
14440 fi
14441 rm -f confcache
14442
14443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14444 # Let make expand exec_prefix.
14445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14446
14447 DEFS=-DHAVE_CONFIG_H
14448
14449 ac_libobjs=
14450 ac_ltlibobjs=
14451 U=
14452 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14453   # 1. Remove the extension, and $U if already installed.
14454   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14455   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14456   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14457   #    will be set to the directory where LIBOBJS objects are built.
14458   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14459   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14460 done
14461 LIBOBJS=$ac_libobjs
14462
14463 LTLIBOBJS=$ac_ltlibobjs
14464
14465
14466
14467
14468 : "${CONFIG_STATUS=./config.status}"
14469 ac_write_fail=0
14470 ac_clean_files_save=$ac_clean_files
14471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14474 as_write_fail=0
14475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14476 #! $SHELL
14477 # Generated by $as_me.
14478 # Run this file to recreate the current configuration.
14479 # Compiler output produced by configure, useful for debugging
14480 # configure, is in config.log if it exists.
14481
14482 debug=false
14483 ac_cs_recheck=false
14484 ac_cs_silent=false
14485
14486 SHELL=\${CONFIG_SHELL-$SHELL}
14487 export SHELL
14488 _ASEOF
14489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14490 ## -------------------- ##
14491 ## M4sh Initialization. ##
14492 ## -------------------- ##
14493
14494 # Be more Bourne compatible
14495 DUALCASE=1; export DUALCASE # for MKS sh
14496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14497   emulate sh
14498   NULLCMD=:
14499   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14500   # is contrary to our usage.  Disable this feature.
14501   alias -g '${1+"$@"}'='"$@"'
14502   setopt NO_GLOB_SUBST
14503 else
14504   case `(set -o) 2>/dev/null` in #(
14505   *posix*) :
14506     set -o posix ;; #(
14507   *) :
14508      ;;
14509 esac
14510 fi
14511
14512
14513 as_nl='
14514 '
14515 export as_nl
14516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14517 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14520 # Prefer a ksh shell builtin over an external printf program on Solaris,
14521 # but without wasting forks for bash or zsh.
14522 if test -z "$BASH_VERSION$ZSH_VERSION" \
14523     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14524   as_echo='print -r --'
14525   as_echo_n='print -rn --'
14526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14527   as_echo='printf %s\n'
14528   as_echo_n='printf %s'
14529 else
14530   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14531     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14532     as_echo_n='/usr/ucb/echo -n'
14533   else
14534     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14535     as_echo_n_body='eval
14536       arg=$1;
14537       case $arg in #(
14538       *"$as_nl"*)
14539         expr "X$arg" : "X\\(.*\\)$as_nl";
14540         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14541       esac;
14542       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14543     '
14544     export as_echo_n_body
14545     as_echo_n='sh -c $as_echo_n_body as_echo'
14546   fi
14547   export as_echo_body
14548   as_echo='sh -c $as_echo_body as_echo'
14549 fi
14550
14551 # The user is always right.
14552 if test "${PATH_SEPARATOR+set}" != set; then
14553   PATH_SEPARATOR=:
14554   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14555     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14556       PATH_SEPARATOR=';'
14557   }
14558 fi
14559
14560
14561 # IFS
14562 # We need space, tab and new line, in precisely that order.  Quoting is
14563 # there to prevent editors from complaining about space-tab.
14564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14565 # splitting by setting IFS to empty value.)
14566 IFS=" ""        $as_nl"
14567
14568 # Find who we are.  Look in the path if we contain no directory separator.
14569 as_myself=
14570 case $0 in #((
14571   *[\\/]* ) as_myself=$0 ;;
14572   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14574 do
14575   IFS=$as_save_IFS
14576   test -z "$as_dir" && as_dir=.
14577     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14578   done
14579 IFS=$as_save_IFS
14580
14581      ;;
14582 esac
14583 # We did not find ourselves, most probably we were run as `sh COMMAND'
14584 # in which case we are not to be found in the path.
14585 if test "x$as_myself" = x; then
14586   as_myself=$0
14587 fi
14588 if test ! -f "$as_myself"; then
14589   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14590   exit 1
14591 fi
14592
14593 # Unset variables that we do not need and which cause bugs (e.g. in
14594 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14595 # suppresses any "Segmentation fault" message there.  '((' could
14596 # trigger a bug in pdksh 5.2.14.
14597 for as_var in BASH_ENV ENV MAIL MAILPATH
14598 do eval test x\${$as_var+set} = xset \
14599   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14600 done
14601 PS1='$ '
14602 PS2='> '
14603 PS4='+ '
14604
14605 # NLS nuisances.
14606 LC_ALL=C
14607 export LC_ALL
14608 LANGUAGE=C
14609 export LANGUAGE
14610
14611 # CDPATH.
14612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14613
14614
14615 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14616 # ----------------------------------------
14617 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14618 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14619 # script with STATUS, using 1 if that was 0.
14620 as_fn_error ()
14621 {
14622   as_status=$1; test $as_status -eq 0 && as_status=1
14623   if test "$4"; then
14624     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14625     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14626   fi
14627   $as_echo "$as_me: error: $2" >&2
14628   as_fn_exit $as_status
14629 } # as_fn_error
14630
14631
14632 # as_fn_set_status STATUS
14633 # -----------------------
14634 # Set $? to STATUS, without forking.
14635 as_fn_set_status ()
14636 {
14637   return $1
14638 } # as_fn_set_status
14639
14640 # as_fn_exit STATUS
14641 # -----------------
14642 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14643 as_fn_exit ()
14644 {
14645   set +e
14646   as_fn_set_status $1
14647   exit $1
14648 } # as_fn_exit
14649
14650 # as_fn_unset VAR
14651 # ---------------
14652 # Portably unset VAR.
14653 as_fn_unset ()
14654 {
14655   { eval $1=; unset $1;}
14656 }
14657 as_unset=as_fn_unset
14658 # as_fn_append VAR VALUE
14659 # ----------------------
14660 # Append the text in VALUE to the end of the definition contained in VAR. Take
14661 # advantage of any shell optimizations that allow amortized linear growth over
14662 # repeated appends, instead of the typical quadratic growth present in naive
14663 # implementations.
14664 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14665   eval 'as_fn_append ()
14666   {
14667     eval $1+=\$2
14668   }'
14669 else
14670   as_fn_append ()
14671   {
14672     eval $1=\$$1\$2
14673   }
14674 fi # as_fn_append
14675
14676 # as_fn_arith ARG...
14677 # ------------------
14678 # Perform arithmetic evaluation on the ARGs, and store the result in the
14679 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14680 # must be portable across $(()) and expr.
14681 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14682   eval 'as_fn_arith ()
14683   {
14684     as_val=$(( $* ))
14685   }'
14686 else
14687   as_fn_arith ()
14688   {
14689     as_val=`expr "$@" || test $? -eq 1`
14690   }
14691 fi # as_fn_arith
14692
14693
14694 if expr a : '\(a\)' >/dev/null 2>&1 &&
14695    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14696   as_expr=expr
14697 else
14698   as_expr=false
14699 fi
14700
14701 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14702   as_basename=basename
14703 else
14704   as_basename=false
14705 fi
14706
14707 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14708   as_dirname=dirname
14709 else
14710   as_dirname=false
14711 fi
14712
14713 as_me=`$as_basename -- "$0" ||
14714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14715          X"$0" : 'X\(//\)$' \| \
14716          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14717 $as_echo X/"$0" |
14718     sed '/^.*\/\([^/][^/]*\)\/*$/{
14719             s//\1/
14720             q
14721           }
14722           /^X\/\(\/\/\)$/{
14723             s//\1/
14724             q
14725           }
14726           /^X\/\(\/\).*/{
14727             s//\1/
14728             q
14729           }
14730           s/.*/./; q'`
14731
14732 # Avoid depending upon Character Ranges.
14733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14736 as_cr_digits='0123456789'
14737 as_cr_alnum=$as_cr_Letters$as_cr_digits
14738
14739 ECHO_C= ECHO_N= ECHO_T=
14740 case `echo -n x` in #(((((
14741 -n*)
14742   case `echo 'xy\c'` in
14743   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14744   xy)  ECHO_C='\c';;
14745   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14746        ECHO_T=' ';;
14747   esac;;
14748 *)
14749   ECHO_N='-n';;
14750 esac
14751
14752 rm -f conf$$ conf$$.exe conf$$.file
14753 if test -d conf$$.dir; then
14754   rm -f conf$$.dir/conf$$.file
14755 else
14756   rm -f conf$$.dir
14757   mkdir conf$$.dir 2>/dev/null
14758 fi
14759 if (echo >conf$$.file) 2>/dev/null; then
14760   if ln -s conf$$.file conf$$ 2>/dev/null; then
14761     as_ln_s='ln -s'
14762     # ... but there are two gotchas:
14763     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14764     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14765     # In both cases, we have to default to `cp -pR'.
14766     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14767       as_ln_s='cp -pR'
14768   elif ln conf$$.file conf$$ 2>/dev/null; then
14769     as_ln_s=ln
14770   else
14771     as_ln_s='cp -pR'
14772   fi
14773 else
14774   as_ln_s='cp -pR'
14775 fi
14776 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14777 rmdir conf$$.dir 2>/dev/null
14778
14779
14780 # as_fn_mkdir_p
14781 # -------------
14782 # Create "$as_dir" as a directory, including parents if necessary.
14783 as_fn_mkdir_p ()
14784 {
14785
14786   case $as_dir in #(
14787   -*) as_dir=./$as_dir;;
14788   esac
14789   test -d "$as_dir" || eval $as_mkdir_p || {
14790     as_dirs=
14791     while :; do
14792       case $as_dir in #(
14793       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14794       *) as_qdir=$as_dir;;
14795       esac
14796       as_dirs="'$as_qdir' $as_dirs"
14797       as_dir=`$as_dirname -- "$as_dir" ||
14798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14799          X"$as_dir" : 'X\(//\)[^/]' \| \
14800          X"$as_dir" : 'X\(//\)$' \| \
14801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14802 $as_echo X"$as_dir" |
14803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14804             s//\1/
14805             q
14806           }
14807           /^X\(\/\/\)[^/].*/{
14808             s//\1/
14809             q
14810           }
14811           /^X\(\/\/\)$/{
14812             s//\1/
14813             q
14814           }
14815           /^X\(\/\).*/{
14816             s//\1/
14817             q
14818           }
14819           s/.*/./; q'`
14820       test -d "$as_dir" && break
14821     done
14822     test -z "$as_dirs" || eval "mkdir $as_dirs"
14823   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14824
14825
14826 } # as_fn_mkdir_p
14827 if mkdir -p . 2>/dev/null; then
14828   as_mkdir_p='mkdir -p "$as_dir"'
14829 else
14830   test -d ./-p && rmdir ./-p
14831   as_mkdir_p=false
14832 fi
14833
14834
14835 # as_fn_executable_p FILE
14836 # -----------------------
14837 # Test if FILE is an executable regular file.
14838 as_fn_executable_p ()
14839 {
14840   test -f "$1" && test -x "$1"
14841 } # as_fn_executable_p
14842 as_test_x='test -x'
14843 as_executable_p=as_fn_executable_p
14844
14845 # Sed expression to map a string onto a valid CPP name.
14846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14847
14848 # Sed expression to map a string onto a valid variable name.
14849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14850
14851
14852 exec 6>&1
14853 ## ----------------------------------- ##
14854 ## Main body of $CONFIG_STATUS script. ##
14855 ## ----------------------------------- ##
14856 _ASEOF
14857 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14858
14859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860 # Save the log message, to keep $0 and so on meaningful, and to
14861 # report actual input values of CONFIG_FILES etc. instead of their
14862 # values after options handling.
14863 ac_log="
14864 This file was extended by $as_me, which was
14865 generated by GNU Autoconf 2.69.  Invocation command line was
14866
14867   CONFIG_FILES    = $CONFIG_FILES
14868   CONFIG_HEADERS  = $CONFIG_HEADERS
14869   CONFIG_LINKS    = $CONFIG_LINKS
14870   CONFIG_COMMANDS = $CONFIG_COMMANDS
14871   $ $0 $@
14872
14873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14874 "
14875
14876 _ACEOF
14877
14878 case $ac_config_files in *"
14879 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14880 esac
14881
14882 case $ac_config_headers in *"
14883 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14884 esac
14885
14886
14887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888 # Files that config.status was made for.
14889 config_files="$ac_config_files"
14890 config_headers="$ac_config_headers"
14891 config_commands="$ac_config_commands"
14892
14893 _ACEOF
14894
14895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14896 ac_cs_usage="\
14897 \`$as_me' instantiates files and other configuration actions
14898 from templates according to the current configuration.  Unless the files
14899 and actions are specified as TAGs, all are instantiated by default.
14900
14901 Usage: $0 [OPTION]... [TAG]...
14902
14903   -h, --help       print this help, then exit
14904   -V, --version    print version number and configuration settings, then exit
14905       --config     print configuration, then exit
14906   -q, --quiet, --silent
14907                    do not print progress messages
14908   -d, --debug      don't remove temporary files
14909       --recheck    update $as_me by reconfiguring in the same conditions
14910       --file=FILE[:TEMPLATE]
14911                    instantiate the configuration file FILE
14912       --header=FILE[:TEMPLATE]
14913                    instantiate the configuration header FILE
14914
14915 Configuration files:
14916 $config_files
14917
14918 Configuration headers:
14919 $config_headers
14920
14921 Configuration commands:
14922 $config_commands
14923
14924 Report bugs to the package provider."
14925
14926 _ACEOF
14927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14929 ac_cs_version="\\
14930 config.status
14931 configured by $0, generated by GNU Autoconf 2.69,
14932   with options \\"\$ac_cs_config\\"
14933
14934 Copyright (C) 2012 Free Software Foundation, Inc.
14935 This config.status script is free software; the Free Software Foundation
14936 gives unlimited permission to copy, distribute and modify it."
14937
14938 ac_pwd='$ac_pwd'
14939 srcdir='$srcdir'
14940 INSTALL='$INSTALL'
14941 MKDIR_P='$MKDIR_P'
14942 AWK='$AWK'
14943 test -n "\$AWK" || AWK=awk
14944 _ACEOF
14945
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 # The default lists apply if the user does not specify any file.
14948 ac_need_defaults=:
14949 while test $# != 0
14950 do
14951   case $1 in
14952   --*=?*)
14953     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14954     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14955     ac_shift=:
14956     ;;
14957   --*=)
14958     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14959     ac_optarg=
14960     ac_shift=:
14961     ;;
14962   *)
14963     ac_option=$1
14964     ac_optarg=$2
14965     ac_shift=shift
14966     ;;
14967   esac
14968
14969   case $ac_option in
14970   # Handling of the options.
14971   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14972     ac_cs_recheck=: ;;
14973   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14974     $as_echo "$ac_cs_version"; exit ;;
14975   --config | --confi | --conf | --con | --co | --c )
14976     $as_echo "$ac_cs_config"; exit ;;
14977   --debug | --debu | --deb | --de | --d | -d )
14978     debug=: ;;
14979   --file | --fil | --fi | --f )
14980     $ac_shift
14981     case $ac_optarg in
14982     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14983     '') as_fn_error $? "missing file argument" ;;
14984     esac
14985     as_fn_append CONFIG_FILES " '$ac_optarg'"
14986     ac_need_defaults=false;;
14987   --header | --heade | --head | --hea )
14988     $ac_shift
14989     case $ac_optarg in
14990     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14991     esac
14992     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14993     ac_need_defaults=false;;
14994   --he | --h)
14995     # Conflict between --help and --header
14996     as_fn_error $? "ambiguous option: \`$1'
14997 Try \`$0 --help' for more information.";;
14998   --help | --hel | -h )
14999     $as_echo "$ac_cs_usage"; exit ;;
15000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15001   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15002     ac_cs_silent=: ;;
15003
15004   # This is an error.
15005   -*) as_fn_error $? "unrecognized option: \`$1'
15006 Try \`$0 --help' for more information." ;;
15007
15008   *) as_fn_append ac_config_targets " $1"
15009      ac_need_defaults=false ;;
15010
15011   esac
15012   shift
15013 done
15014
15015 ac_configure_extra_args=
15016
15017 if $ac_cs_silent; then
15018   exec 6>/dev/null
15019   ac_configure_extra_args="$ac_configure_extra_args --silent"
15020 fi
15021
15022 _ACEOF
15023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15024 if \$ac_cs_recheck; then
15025   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15026   shift
15027   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15028   CONFIG_SHELL='$SHELL'
15029   export CONFIG_SHELL
15030   exec "\$@"
15031 fi
15032
15033 _ACEOF
15034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15035 exec 5>>config.log
15036 {
15037   echo
15038   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15039 ## Running $as_me. ##
15040 _ASBOX
15041   $as_echo "$ac_log"
15042 } >&5
15043
15044 _ACEOF
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 #
15047 # INIT-COMMANDS
15048 #
15049 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15050     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15051     # from automake < 1.5.
15052     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15053     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15054     LINGUAS="${LINGUAS-%UNSET%}"
15055
15056
15057 _ACEOF
15058
15059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15060
15061 # Handling of arguments.
15062 for ac_config_target in $ac_config_targets
15063 do
15064   case $ac_config_target in
15065     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15066     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15067     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15068
15069   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15070   esac
15071 done
15072
15073
15074 # If the user did not use the arguments to specify the items to instantiate,
15075 # then the envvar interface is used.  Set only those that are not.
15076 # We use the long form for the default assignment because of an extremely
15077 # bizarre bug on SunOS 4.1.3.
15078 if $ac_need_defaults; then
15079   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15080   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15081   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15082 fi
15083
15084 # Have a temporary directory for convenience.  Make it in the build tree
15085 # simply because there is no reason against having it here, and in addition,
15086 # creating and moving files from /tmp can sometimes cause problems.
15087 # Hook for its removal unless debugging.
15088 # Note that there is a small window in which the directory will not be cleaned:
15089 # after its creation but before its name has been assigned to `$tmp'.
15090 $debug ||
15091 {
15092   tmp= ac_tmp=
15093   trap 'exit_status=$?
15094   : "${ac_tmp:=$tmp}"
15095   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15096 ' 0
15097   trap 'as_fn_exit 1' 1 2 13 15
15098 }
15099 # Create a (secure) tmp directory for tmp files.
15100
15101 {
15102   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15103   test -d "$tmp"
15104 }  ||
15105 {
15106   tmp=./conf$$-$RANDOM
15107   (umask 077 && mkdir "$tmp")
15108 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15109 ac_tmp=$tmp
15110
15111 # Set up the scripts for CONFIG_FILES section.
15112 # No need to generate them if there are no CONFIG_FILES.
15113 # This happens for instance with `./config.status config.h'.
15114 if test -n "$CONFIG_FILES"; then
15115
15116 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15117   ac_cs_awk_getline=:
15118   ac_cs_awk_pipe_init=
15119   ac_cs_awk_read_file='
15120       while ((getline aline < (F[key])) > 0)
15121         print(aline)
15122       close(F[key])'
15123   ac_cs_awk_pipe_fini=
15124 else
15125   ac_cs_awk_getline=false
15126   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15127   ac_cs_awk_read_file='
15128       print "|#_!!_#|"
15129       print "cat " F[key] " &&"
15130       '$ac_cs_awk_pipe_init
15131   # The final `:' finishes the AND list.
15132   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15133 fi
15134 ac_cr=`echo X | tr X '\015'`
15135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15136 # But we know of no other shell where ac_cr would be empty at this
15137 # point, so we can use a bashism as a fallback.
15138 if test "x$ac_cr" = x; then
15139   eval ac_cr=\$\'\\r\'
15140 fi
15141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15143   ac_cs_awk_cr='\\r'
15144 else
15145   ac_cs_awk_cr=$ac_cr
15146 fi
15147
15148 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15149 _ACEOF
15150
15151 # Create commands to substitute file output variables.
15152 {
15153   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15154   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15155   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15156   echo "_ACAWK" &&
15157   echo "_ACEOF"
15158 } >conf$$files.sh &&
15159 . ./conf$$files.sh ||
15160   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15161 rm -f conf$$files.sh
15162
15163 {
15164   echo "cat >conf$$subs.awk <<_ACEOF" &&
15165   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15166   echo "_ACEOF"
15167 } >conf$$subs.sh ||
15168   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15170 ac_delim='%!_!# '
15171 for ac_last_try in false false false false false :; do
15172   . ./conf$$subs.sh ||
15173     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15174
15175   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15176   if test $ac_delim_n = $ac_delim_num; then
15177     break
15178   elif $ac_last_try; then
15179     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15180   else
15181     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15182   fi
15183 done
15184 rm -f conf$$subs.sh
15185
15186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15188 _ACEOF
15189 sed -n '
15190 h
15191 s/^/S["/; s/!.*/"]=/
15192 p
15193 g
15194 s/^[^!]*!//
15195 :repl
15196 t repl
15197 s/'"$ac_delim"'$//
15198 t delim
15199 :nl
15200 h
15201 s/\(.\{148\}\)..*/\1/
15202 t more1
15203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15204 p
15205 n
15206 b repl
15207 :more1
15208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15209 p
15210 g
15211 s/.\{148\}//
15212 t nl
15213 :delim
15214 h
15215 s/\(.\{148\}\)..*/\1/
15216 t more2
15217 s/["\\]/\\&/g; s/^/"/; s/$/"/
15218 p
15219 b
15220 :more2
15221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15222 p
15223 g
15224 s/.\{148\}//
15225 t delim
15226 ' <conf$$subs.awk | sed '
15227 /^[^""]/{
15228   N
15229   s/\n//
15230 }
15231 ' >>$CONFIG_STATUS || ac_write_fail=1
15232 rm -f conf$$subs.awk
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 _ACAWK
15235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15236   for (key in S) S_is_set[key] = 1
15237   FS = "\a"
15238   \$ac_cs_awk_pipe_init
15239 }
15240 {
15241   line = $ 0
15242   nfields = split(line, field, "@")
15243   substed = 0
15244   len = length(field[1])
15245   for (i = 2; i < nfields; i++) {
15246     key = field[i]
15247     keylen = length(key)
15248     if (S_is_set[key]) {
15249       value = S[key]
15250       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15251       len += length(value) + length(field[++i])
15252       substed = 1
15253     } else
15254       len += 1 + keylen
15255   }
15256   if (nfields == 3 && !substed) {
15257     key = field[2]
15258     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15259       \$ac_cs_awk_read_file
15260       next
15261     }
15262   }
15263   print line
15264 }
15265 \$ac_cs_awk_pipe_fini
15266 _ACAWK
15267 _ACEOF
15268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15269 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15270   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15271 else
15272   cat
15273 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15274   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15275 _ACEOF
15276
15277 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15278 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15279 # trailing colons and then remove the whole line if VPATH becomes empty
15280 # (actually we leave an empty line to preserve line numbers).
15281 if test "x$srcdir" = x.; then
15282   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15283 h
15284 s///
15285 s/^/:/
15286 s/[      ]*$/:/
15287 s/:\$(srcdir):/:/g
15288 s/:\${srcdir}:/:/g
15289 s/:@srcdir@:/:/g
15290 s/^:*//
15291 s/:*$//
15292 x
15293 s/\(=[   ]*\).*/\1/
15294 G
15295 s/\n//
15296 s/^[^=]*=[       ]*$//
15297 }'
15298 fi
15299
15300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301 fi # test -n "$CONFIG_FILES"
15302
15303 # Set up the scripts for CONFIG_HEADERS section.
15304 # No need to generate them if there are no CONFIG_HEADERS.
15305 # This happens for instance with `./config.status Makefile'.
15306 if test -n "$CONFIG_HEADERS"; then
15307 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15308 BEGIN {
15309 _ACEOF
15310
15311 # Transform confdefs.h into an awk script `defines.awk', embedded as
15312 # here-document in config.status, that substitutes the proper values into
15313 # config.h.in to produce config.h.
15314
15315 # Create a delimiter string that does not exist in confdefs.h, to ease
15316 # handling of long lines.
15317 ac_delim='%!_!# '
15318 for ac_last_try in false false :; do
15319   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15320   if test -z "$ac_tt"; then
15321     break
15322   elif $ac_last_try; then
15323     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15324   else
15325     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15326   fi
15327 done
15328
15329 # For the awk script, D is an array of macro values keyed by name,
15330 # likewise P contains macro parameters if any.  Preserve backslash
15331 # newline sequences.
15332
15333 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15334 sed -n '
15335 s/.\{148\}/&'"$ac_delim"'/g
15336 t rset
15337 :rset
15338 s/^[     ]*#[    ]*define[       ][      ]*/ /
15339 t def
15340 d
15341 :def
15342 s/\\$//
15343 t bsnl
15344 s/["\\]/\\&/g
15345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15346 D["\1"]=" \3"/p
15347 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15348 d
15349 :bsnl
15350 s/["\\]/\\&/g
15351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15352 D["\1"]=" \3\\\\\\n"\\/p
15353 t cont
15354 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15355 t cont
15356 d
15357 :cont
15358 n
15359 s/.\{148\}/&'"$ac_delim"'/g
15360 t clear
15361 :clear
15362 s/\\$//
15363 t bsnlc
15364 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15365 d
15366 :bsnlc
15367 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15368 b cont
15369 ' <confdefs.h | sed '
15370 s/'"$ac_delim"'/"\\\
15371 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15372
15373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374   for (key in D) D_is_set[key] = 1
15375   FS = "\a"
15376 }
15377 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15378   line = \$ 0
15379   split(line, arg, " ")
15380   if (arg[1] == "#") {
15381     defundef = arg[2]
15382     mac1 = arg[3]
15383   } else {
15384     defundef = substr(arg[1], 2)
15385     mac1 = arg[2]
15386   }
15387   split(mac1, mac2, "(") #)
15388   macro = mac2[1]
15389   prefix = substr(line, 1, index(line, defundef) - 1)
15390   if (D_is_set[macro]) {
15391     # Preserve the white space surrounding the "#".
15392     print prefix "define", macro P[macro] D[macro]
15393     next
15394   } else {
15395     # Replace #undef with comments.  This is necessary, for example,
15396     # in the case of _POSIX_SOURCE, which is predefined and required
15397     # on some systems where configure will not decide to define it.
15398     if (defundef == "undef") {
15399       print "/*", prefix defundef, macro, "*/"
15400       next
15401     }
15402   }
15403 }
15404 { print }
15405 _ACAWK
15406 _ACEOF
15407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15408   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15409 fi # test -n "$CONFIG_HEADERS"
15410
15411
15412 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15413 shift
15414 for ac_tag
15415 do
15416   case $ac_tag in
15417   :[FHLC]) ac_mode=$ac_tag; continue;;
15418   esac
15419   case $ac_mode$ac_tag in
15420   :[FHL]*:*);;
15421   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422   :[FH]-) ac_tag=-:-;;
15423   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15424   esac
15425   ac_save_IFS=$IFS
15426   IFS=:
15427   set x $ac_tag
15428   IFS=$ac_save_IFS
15429   shift
15430   ac_file=$1
15431   shift
15432
15433   case $ac_mode in
15434   :L) ac_source=$1;;
15435   :[FH])
15436     ac_file_inputs=
15437     for ac_f
15438     do
15439       case $ac_f in
15440       -) ac_f="$ac_tmp/stdin";;
15441       *) # Look for the file first in the build tree, then in the source tree
15442          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15443          # because $ac_f cannot contain `:'.
15444          test -f "$ac_f" ||
15445            case $ac_f in
15446            [\\/$]*) false;;
15447            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15448            esac ||
15449            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15450       esac
15451       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452       as_fn_append ac_file_inputs " '$ac_f'"
15453     done
15454
15455     # Let's still pretend it is `configure' which instantiates (i.e., don't
15456     # use $as_me), people would be surprised to read:
15457     #    /* config.h.  Generated by config.status.  */
15458     configure_input='Generated from '`
15459           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15460         `' by configure.'
15461     if test x"$ac_file" != x-; then
15462       configure_input="$ac_file.  $configure_input"
15463       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464 $as_echo "$as_me: creating $ac_file" >&6;}
15465     fi
15466     # Neutralize special characters interpreted by sed in replacement strings.
15467     case $configure_input in #(
15468     *\&* | *\|* | *\\* )
15469        ac_sed_conf_input=`$as_echo "$configure_input" |
15470        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471     *) ac_sed_conf_input=$configure_input;;
15472     esac
15473
15474     case $ac_tag in
15475     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15476       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15477     esac
15478     ;;
15479   esac
15480
15481   ac_dir=`$as_dirname -- "$ac_file" ||
15482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483          X"$ac_file" : 'X\(//\)[^/]' \| \
15484          X"$ac_file" : 'X\(//\)$' \| \
15485          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486 $as_echo X"$ac_file" |
15487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488             s//\1/
15489             q
15490           }
15491           /^X\(\/\/\)[^/].*/{
15492             s//\1/
15493             q
15494           }
15495           /^X\(\/\/\)$/{
15496             s//\1/
15497             q
15498           }
15499           /^X\(\/\).*/{
15500             s//\1/
15501             q
15502           }
15503           s/.*/./; q'`
15504   as_dir="$ac_dir"; as_fn_mkdir_p
15505   ac_builddir=.
15506
15507 case "$ac_dir" in
15508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509 *)
15510   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511   # A ".." for each directory in $ac_dir_suffix.
15512   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513   case $ac_top_builddir_sub in
15514   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15516   esac ;;
15517 esac
15518 ac_abs_top_builddir=$ac_pwd
15519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520 # for backward compatibility:
15521 ac_top_builddir=$ac_top_build_prefix
15522
15523 case $srcdir in
15524   .)  # We are building in place.
15525     ac_srcdir=.
15526     ac_top_srcdir=$ac_top_builddir_sub
15527     ac_abs_top_srcdir=$ac_pwd ;;
15528   [\\/]* | ?:[\\/]* )  # Absolute name.
15529     ac_srcdir=$srcdir$ac_dir_suffix;
15530     ac_top_srcdir=$srcdir
15531     ac_abs_top_srcdir=$srcdir ;;
15532   *) # Relative name.
15533     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534     ac_top_srcdir=$ac_top_build_prefix$srcdir
15535     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15536 esac
15537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15538
15539
15540   case $ac_mode in
15541   :F)
15542   #
15543   # CONFIG_FILE
15544   #
15545
15546   case $INSTALL in
15547   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15548   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15549   esac
15550   ac_MKDIR_P=$MKDIR_P
15551   case $MKDIR_P in
15552   [\\/$]* | ?:[\\/]* ) ;;
15553   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15554   esac
15555 _ACEOF
15556
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558 # If the template does not know about datarootdir, expand it.
15559 # FIXME: This hack should be removed a few years after 2.60.
15560 ac_datarootdir_hack=; ac_datarootdir_seen=
15561 ac_sed_dataroot='
15562 /datarootdir/ {
15563   p
15564   q
15565 }
15566 /@datadir@/p
15567 /@docdir@/p
15568 /@infodir@/p
15569 /@localedir@/p
15570 /@mandir@/p'
15571 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15572 *datarootdir*) ac_datarootdir_seen=yes;;
15573 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15574   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15575 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15576 _ACEOF
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578   ac_datarootdir_hack='
15579   s&@datadir@&$datadir&g
15580   s&@docdir@&$docdir&g
15581   s&@infodir@&$infodir&g
15582   s&@localedir@&$localedir&g
15583   s&@mandir@&$mandir&g
15584   s&\\\${datarootdir}&$datarootdir&g' ;;
15585 esac
15586 _ACEOF
15587
15588 # Neutralize VPATH when `$srcdir' = `.'.
15589 # Shell code in configure.ac might set extrasub.
15590 # FIXME: do we really want to maintain this feature?
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 ac_sed_extra="$ac_vpsub
15593 $extrasub
15594 _ACEOF
15595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596 :t
15597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15598 s|@configure_input@|$ac_sed_conf_input|;t t
15599 s&@top_builddir@&$ac_top_builddir_sub&;t t
15600 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15601 s&@srcdir@&$ac_srcdir&;t t
15602 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15603 s&@top_srcdir@&$ac_top_srcdir&;t t
15604 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15605 s&@builddir@&$ac_builddir&;t t
15606 s&@abs_builddir@&$ac_abs_builddir&;t t
15607 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15608 s&@INSTALL@&$ac_INSTALL&;t t
15609 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15610 $ac_datarootdir_hack
15611 "
15612 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15613 if $ac_cs_awk_getline; then
15614   $AWK -f "$ac_tmp/subs.awk"
15615 else
15616   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15617 fi \
15618   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15619
15620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15621   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15622   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15623       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15625 which seems to be undefined.  Please make sure it is defined" >&5
15626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15627 which seems to be undefined.  Please make sure it is defined" >&2;}
15628
15629   rm -f "$ac_tmp/stdin"
15630   case $ac_file in
15631   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15632   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15633   esac \
15634   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15635  ;;
15636   :H)
15637   #
15638   # CONFIG_HEADER
15639   #
15640   if test x"$ac_file" != x-; then
15641     {
15642       $as_echo "/* $configure_input  */" \
15643       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15644     } >"$ac_tmp/config.h" \
15645       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15646     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15647       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15648 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15649     else
15650       rm -f "$ac_file"
15651       mv "$ac_tmp/config.h" "$ac_file" \
15652         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15653     fi
15654   else
15655     $as_echo "/* $configure_input  */" \
15656       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15657       || as_fn_error $? "could not create -" "$LINENO" 5
15658   fi
15659  ;;
15660
15661   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15662 $as_echo "$as_me: executing $ac_file commands" >&6;}
15663  ;;
15664   esac
15665
15666
15667   case $ac_file$ac_mode in
15668     "po-directories":C)
15669     for ac_file in $CONFIG_FILES; do
15670       # Support "outfile[:infile[:infile...]]"
15671       case "$ac_file" in
15672         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15673       esac
15674       # PO directories have a Makefile.in generated from Makefile.in.in.
15675       case "$ac_file" in */Makefile.in)
15676         # Adjust a relative srcdir.
15677         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15678         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15679         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15680         # In autoconf-2.13 it is called $ac_given_srcdir.
15681         # In autoconf-2.50 it is called $srcdir.
15682         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15683         case "$ac_given_srcdir" in
15684           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15685           /*) top_srcdir="$ac_given_srcdir" ;;
15686           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15687         esac
15688         # Treat a directory as a PO directory if and only if it has a
15689         # POTFILES.in file. This allows packages to have multiple PO
15690         # directories under different names or in different locations.
15691         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15692           rm -f "$ac_dir/POTFILES"
15693           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15694           gt_tab=`printf '\t'`
15695           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"
15696           POMAKEFILEDEPS="POTFILES.in"
15697           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15698           # on $ac_dir but don't depend on user-specified configuration
15699           # parameters.
15700           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15701             # The LINGUAS file contains the set of available languages.
15702             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15703               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15704             fi
15705             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15706             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15707             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15708             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15709           else
15710             # The set of available languages was given in configure.in.
15711             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15712             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15713           fi
15714           # Compute POFILES
15715           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15716           # Compute UPDATEPOFILES
15717           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15718           # Compute DUMMYPOFILES
15719           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15720           # Compute GMOFILES
15721           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15722           case "$ac_given_srcdir" in
15723             .) srcdirpre= ;;
15724             *) srcdirpre='$(srcdir)/' ;;
15725           esac
15726           POFILES=
15727           UPDATEPOFILES=
15728           DUMMYPOFILES=
15729           GMOFILES=
15730           for lang in $ALL_LINGUAS; do
15731             POFILES="$POFILES $srcdirpre$lang.po"
15732             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15733             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15734             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15735           done
15736           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15737           # environment variable.
15738           INST_LINGUAS=
15739           if test -n "$ALL_LINGUAS"; then
15740             for presentlang in $ALL_LINGUAS; do
15741               useit=no
15742               if test "%UNSET%" != "$LINGUAS"; then
15743                 desiredlanguages="$LINGUAS"
15744               else
15745                 desiredlanguages="$ALL_LINGUAS"
15746               fi
15747               for desiredlang in $desiredlanguages; do
15748                 # Use the presentlang catalog if desiredlang is
15749                 #   a. equal to presentlang, or
15750                 #   b. a variant of presentlang (because in this case,
15751                 #      presentlang can be used as a fallback for messages
15752                 #      which are not translated in the desiredlang catalog).
15753                 case "$desiredlang" in
15754                   "$presentlang"*) useit=yes;;
15755                 esac
15756               done
15757               if test $useit = yes; then
15758                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15759               fi
15760             done
15761           fi
15762           CATALOGS=
15763           if test -n "$INST_LINGUAS"; then
15764             for lang in $INST_LINGUAS; do
15765               CATALOGS="$CATALOGS $lang.gmo"
15766             done
15767           fi
15768           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15769           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"
15770           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15771             if test -f "$f"; then
15772               case "$f" in
15773                 *.orig | *.bak | *~) ;;
15774                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15775               esac
15776             fi
15777           done
15778         fi
15779         ;;
15780       esac
15781     done ;;
15782
15783   esac
15784 done # for ac_tag
15785
15786
15787 as_fn_exit 0
15788 _ACEOF
15789 ac_clean_files=$ac_clean_files_save
15790
15791 test $ac_write_fail = 0 ||
15792   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15793
15794
15795 # configure is writing to config.log, and then calls config.status.
15796 # config.status does its own redirection, appending to config.log.
15797 # Unfortunately, on DOS this fails, as config.log is still kept open
15798 # by configure, so config.status won't be able to write to it; its
15799 # output is simply discarded.  So we exec the FD to /dev/null,
15800 # effectively closing config.log, so it can be properly (re)opened and
15801 # appended to by config.status.  When coming back to configure, we
15802 # need to make the FD available again.
15803 if test "$no_create" != yes; then
15804   ac_cs_success=:
15805   ac_config_status_args=
15806   test "$silent" = yes &&
15807     ac_config_status_args="$ac_config_status_args --quiet"
15808   exec 5>/dev/null
15809   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15810   exec 5>>config.log
15811   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15812   # would make configure fail if this is the last instruction.
15813   $ac_cs_success || as_fn_exit 1
15814 fi
15815 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15816   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15817 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15818 fi
15819
15820 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi