Change make license
[platform/upstream/make.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.3.
4 #
5 # Report bugs to <bug-make@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='GNU make'
582 PACKAGE_TARNAME='make'
583 PACKAGE_VERSION='4.3'
584 PACKAGE_STRING='GNU make 4.3'
585 PACKAGE_BUGREPORT='bug-make@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/make/'
587
588 ac_unique_file="src/vpath.c"
589 ac_config_libobj_dir=lib
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 #  include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #  include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_func_list=
627 ac_header_list=
628 gt_needs=
629 ac_subst_vars='gltests_LTLIBOBJS
630 gltests_LIBOBJS
631 gl_LTLIBOBJS
632 gl_LIBOBJS
633 am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 WINDOWSENV_FALSE
638 WINDOWSENV_TRUE
639 MAKE_HOST
640 AM_LDFLAGS
641 USE_CUSTOMS_FALSE
642 USE_CUSTOMS_TRUE
643 REMOTE
644 HAVE_GUILE_FALSE
645 HAVE_GUILE_TRUE
646 GUILE_LIBS
647 GUILE_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 POSUB
652 INTLLIBS
653 LTLIBICONV
654 LIBICONV
655 INTL_MACOSX_LIBS
656 XGETTEXT_EXTRA_OPTIONS
657 MSGMERGE
658 XGETTEXT_015
659 XGETTEXT
660 GMSGFMT_015
661 MSGFMT_015
662 GMSGFMT
663 MSGFMT
664 GETTEXT_MACRO_VERSION
665 USE_NLS
666 SED
667 PERL
668 LIBGNU_LTLIBDEPS
669 LIBGNU_LIBDEPS
670 gltests_WITNESS
671 HAVE_UNISTD_H
672 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
673 NEXT_UNISTD_H
674 WINDOWS_STAT_INODES
675 WINDOWS_64_BIT_OFF_T
676 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
677 NEXT_SYS_TYPES_H
678 NEXT_AS_FIRST_DIRECTIVE_STRING_H
679 NEXT_STRING_H
680 UNDEFINE_STRTOK_R
681 REPLACE_STRSIGNAL
682 REPLACE_STRERROR_R
683 REPLACE_STRERROR
684 REPLACE_STRTOK_R
685 REPLACE_STRCASESTR
686 REPLACE_STRSTR
687 REPLACE_STRNLEN
688 REPLACE_STRNDUP
689 REPLACE_STRNCAT
690 REPLACE_STRDUP
691 REPLACE_STRCHRNUL
692 REPLACE_STPNCPY
693 REPLACE_MEMMEM
694 REPLACE_MEMCHR
695 HAVE_STRVERSCMP
696 HAVE_DECL_STRSIGNAL
697 HAVE_DECL_STRERROR_R
698 HAVE_DECL_STRTOK_R
699 HAVE_STRCASESTR
700 HAVE_STRSEP
701 HAVE_STRPBRK
702 HAVE_DECL_STRNLEN
703 HAVE_DECL_STRNDUP
704 HAVE_DECL_STRDUP
705 HAVE_STRCHRNUL
706 HAVE_STPNCPY
707 HAVE_STPCPY
708 HAVE_RAWMEMCHR
709 HAVE_DECL_MEMRCHR
710 HAVE_MEMPCPY
711 HAVE_DECL_MEMMEM
712 HAVE_MEMCHR
713 HAVE_FFSLL
714 HAVE_FFSL
715 HAVE_EXPLICIT_BZERO
716 HAVE_MBSLEN
717 GNULIB_STRVERSCMP
718 GNULIB_STRSIGNAL
719 GNULIB_STRERROR_R
720 GNULIB_STRERROR
721 GNULIB_MBSTOK_R
722 GNULIB_MBSSEP
723 GNULIB_MBSSPN
724 GNULIB_MBSPBRK
725 GNULIB_MBSCSPN
726 GNULIB_MBSCASESTR
727 GNULIB_MBSPCASECMP
728 GNULIB_MBSNCASECMP
729 GNULIB_MBSCASECMP
730 GNULIB_MBSSTR
731 GNULIB_MBSRCHR
732 GNULIB_MBSCHR
733 GNULIB_MBSNLEN
734 GNULIB_MBSLEN
735 GNULIB_STRTOK_R
736 GNULIB_STRCASESTR
737 GNULIB_STRSTR
738 GNULIB_STRSEP
739 GNULIB_STRPBRK
740 GNULIB_STRNLEN
741 GNULIB_STRNDUP
742 GNULIB_STRNCAT
743 GNULIB_STRDUP
744 GNULIB_STRCHRNUL
745 GNULIB_STPNCPY
746 GNULIB_STPCPY
747 GNULIB_RAWMEMCHR
748 GNULIB_MEMRCHR
749 GNULIB_MEMPCPY
750 GNULIB_MEMMEM
751 GNULIB_MEMCHR
752 GNULIB_FFSLL
753 GNULIB_FFSL
754 GNULIB_EXPLICIT_BZERO
755 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
756 NEXT_STDLIB_H
757 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
758 NEXT_STDIO_H
759 REPLACE_VSPRINTF
760 REPLACE_VSNPRINTF
761 REPLACE_VPRINTF
762 REPLACE_VFPRINTF
763 REPLACE_VDPRINTF
764 REPLACE_VASPRINTF
765 REPLACE_TMPFILE
766 REPLACE_STDIO_WRITE_FUNCS
767 REPLACE_STDIO_READ_FUNCS
768 REPLACE_SPRINTF
769 REPLACE_SNPRINTF
770 REPLACE_RENAMEAT
771 REPLACE_RENAME
772 REPLACE_REMOVE
773 REPLACE_PRINTF
774 REPLACE_POPEN
775 REPLACE_PERROR
776 REPLACE_OBSTACK_PRINTF
777 REPLACE_GETLINE
778 REPLACE_GETDELIM
779 REPLACE_FTELLO
780 REPLACE_FTELL
781 REPLACE_FSEEKO
782 REPLACE_FSEEK
783 REPLACE_FREOPEN
784 REPLACE_FPURGE
785 REPLACE_FPRINTF
786 REPLACE_FOPEN
787 REPLACE_FFLUSH
788 REPLACE_FDOPEN
789 REPLACE_FCLOSE
790 REPLACE_DPRINTF
791 HAVE_VDPRINTF
792 HAVE_VASPRINTF
793 HAVE_RENAMEAT
794 HAVE_POPEN
795 HAVE_PCLOSE
796 HAVE_FTELLO
797 HAVE_FSEEKO
798 HAVE_DPRINTF
799 HAVE_DECL_VSNPRINTF
800 HAVE_DECL_SNPRINTF
801 HAVE_DECL_OBSTACK_PRINTF
802 HAVE_DECL_GETLINE
803 HAVE_DECL_GETDELIM
804 HAVE_DECL_FTELLO
805 HAVE_DECL_FSEEKO
806 HAVE_DECL_FPURGE
807 GNULIB_VSPRINTF_POSIX
808 GNULIB_VSNPRINTF
809 GNULIB_VPRINTF_POSIX
810 GNULIB_VPRINTF
811 GNULIB_VFPRINTF_POSIX
812 GNULIB_VFPRINTF
813 GNULIB_VDPRINTF
814 GNULIB_VSCANF
815 GNULIB_VFSCANF
816 GNULIB_VASPRINTF
817 GNULIB_TMPFILE
818 GNULIB_STDIO_H_SIGPIPE
819 GNULIB_STDIO_H_NONBLOCKING
820 GNULIB_SPRINTF_POSIX
821 GNULIB_SNPRINTF
822 GNULIB_SCANF
823 GNULIB_RENAMEAT
824 GNULIB_RENAME
825 GNULIB_REMOVE
826 GNULIB_PUTS
827 GNULIB_PUTCHAR
828 GNULIB_PUTC
829 GNULIB_PRINTF_POSIX
830 GNULIB_PRINTF
831 GNULIB_POPEN
832 GNULIB_PERROR
833 GNULIB_PCLOSE
834 GNULIB_OBSTACK_PRINTF_POSIX
835 GNULIB_OBSTACK_PRINTF
836 GNULIB_GETLINE
837 GNULIB_GETDELIM
838 GNULIB_GETCHAR
839 GNULIB_GETC
840 GNULIB_FWRITE
841 GNULIB_FTELLO
842 GNULIB_FTELL
843 GNULIB_FSEEKO
844 GNULIB_FSEEK
845 GNULIB_FSCANF
846 GNULIB_FREOPEN
847 GNULIB_FREAD
848 GNULIB_FPUTS
849 GNULIB_FPUTC
850 GNULIB_FPURGE
851 GNULIB_FPRINTF_POSIX
852 GNULIB_FPRINTF
853 GNULIB_FOPEN
854 GNULIB_FGETS
855 GNULIB_FGETC
856 GNULIB_FFLUSH
857 GNULIB_FDOPEN
858 GNULIB_FCLOSE
859 GNULIB_DPRINTF
860 GL_GENERATE_STDINT_H_FALSE
861 GL_GENERATE_STDINT_H_TRUE
862 STDINT_H
863 HAVE_SYS_INTTYPES_H
864 HAVE_SYS_BITYPES_H
865 HAVE_C99_STDINT_H
866 WINT_T_SUFFIX
867 WCHAR_T_SUFFIX
868 SIG_ATOMIC_T_SUFFIX
869 SIZE_T_SUFFIX
870 PTRDIFF_T_SUFFIX
871 HAVE_SIGNED_WINT_T
872 HAVE_SIGNED_WCHAR_T
873 HAVE_SIGNED_SIG_ATOMIC_T
874 BITSIZEOF_WINT_T
875 BITSIZEOF_WCHAR_T
876 BITSIZEOF_SIG_ATOMIC_T
877 BITSIZEOF_SIZE_T
878 BITSIZEOF_PTRDIFF_T
879 HAVE_STDINT_H
880 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
881 NEXT_STDINT_H
882 HAVE_SYS_TYPES_H
883 HAVE_INTTYPES_H
884 HAVE_WCHAR_H
885 GNULIB_OVERRIDES_WINT_T
886 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
887 NEXT_STDDEF_H
888 GL_GENERATE_STDDEF_H_FALSE
889 GL_GENERATE_STDDEF_H_TRUE
890 STDDEF_H
891 HAVE_WCHAR_T
892 HAVE_MAX_ALIGN_T
893 REPLACE_NULL
894 HAVE__BOOL
895 GL_GENERATE_STDBOOL_H_FALSE
896 GL_GENERATE_STDBOOL_H_TRUE
897 STDBOOL_H
898 APPLE_UNIVERSAL_BUILD
899 USE_SYSTEM_GLOB
900 USE_SYSTEM_GLOB_FALSE
901 USE_SYSTEM_GLOB_TRUE
902 GL_GENERATE_LIMITS_H_FALSE
903 GL_GENERATE_LIMITS_H_TRUE
904 LIMITS_H
905 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
906 NEXT_LIMITS_H
907 HOST_CPU_C_ABI
908 HOST_CPU
909 LTLIBINTL
910 LIBINTL
911 GETLOADAVG_LIBS
912 REPLACE_WCTOMB
913 REPLACE_UNSETENV
914 REPLACE_STRTOLD
915 REPLACE_STRTOD
916 REPLACE_SETSTATE
917 REPLACE_SETENV
918 REPLACE_REALPATH
919 REPLACE_REALLOC
920 REPLACE_RANDOM_R
921 REPLACE_RANDOM
922 REPLACE_QSORT_R
923 REPLACE_PUTENV
924 REPLACE_PTSNAME_R
925 REPLACE_PTSNAME
926 REPLACE_MKSTEMP
927 REPLACE_MBTOWC
928 REPLACE_MALLOC
929 REPLACE_INITSTATE
930 REPLACE_CANONICALIZE_FILE_NAME
931 REPLACE_CALLOC
932 HAVE_DECL_UNSETENV
933 HAVE_UNLOCKPT
934 HAVE_SYS_LOADAVG_H
935 HAVE_STRUCT_RANDOM_DATA
936 HAVE_STRTOULL
937 HAVE_STRTOLL
938 HAVE_STRTOLD
939 HAVE_STRTOD
940 HAVE_DECL_SETSTATE
941 HAVE_SETSTATE
942 HAVE_DECL_SETENV
943 HAVE_SETENV
944 HAVE_SECURE_GETENV
945 HAVE_RPMATCH
946 HAVE_REALPATH
947 HAVE_REALLOCARRAY
948 HAVE_RANDOM_R
949 HAVE_RANDOM_H
950 HAVE_RANDOM
951 HAVE_QSORT_R
952 HAVE_PTSNAME_R
953 HAVE_PTSNAME
954 HAVE_POSIX_OPENPT
955 HAVE_MKSTEMPS
956 HAVE_MKSTEMP
957 HAVE_MKOSTEMPS
958 HAVE_MKOSTEMP
959 HAVE_MKDTEMP
960 HAVE_MBTOWC
961 HAVE_DECL_INITSTATE
962 HAVE_INITSTATE
963 HAVE_GRANTPT
964 HAVE_GETSUBOPT
965 HAVE_DECL_GETLOADAVG
966 HAVE_CANONICALIZE_FILE_NAME
967 HAVE_ATOLL
968 HAVE__EXIT
969 GNULIB_WCTOMB
970 GNULIB_UNSETENV
971 GNULIB_UNLOCKPT
972 GNULIB_SYSTEM_POSIX
973 GNULIB_STRTOULL
974 GNULIB_STRTOLL
975 GNULIB_STRTOLD
976 GNULIB_STRTOD
977 GNULIB_SETENV
978 GNULIB_SECURE_GETENV
979 GNULIB_RPMATCH
980 GNULIB_REALPATH
981 GNULIB_REALLOC_POSIX
982 GNULIB_REALLOCARRAY
983 GNULIB_RANDOM_R
984 GNULIB_RANDOM
985 GNULIB_QSORT_R
986 GNULIB_PUTENV
987 GNULIB_PTSNAME_R
988 GNULIB_PTSNAME
989 GNULIB_POSIX_OPENPT
990 GNULIB_MKSTEMPS
991 GNULIB_MKSTEMP
992 GNULIB_MKOSTEMPS
993 GNULIB_MKOSTEMP
994 GNULIB_MKDTEMP
995 GNULIB_MBTOWC
996 GNULIB_MALLOC_POSIX
997 GNULIB_GRANTPT
998 GNULIB_GETSUBOPT
999 GNULIB_GETLOADAVG
1000 GNULIB_CANONICALIZE_FILE_NAME
1001 GNULIB_CALLOC_POSIX
1002 GNULIB_ATOLL
1003 GNULIB__EXIT
1004 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1005 NEXT_FCNTL_H
1006 REPLACE_OPENAT
1007 REPLACE_OPEN
1008 REPLACE_FCNTL
1009 REPLACE_CREAT
1010 HAVE_OPENAT
1011 HAVE_FCNTL
1012 GNULIB_OPENAT
1013 GNULIB_OPEN
1014 GNULIB_NONBLOCKING
1015 GNULIB_FCNTL
1016 GNULIB_CREAT
1017 EOVERFLOW_VALUE
1018 EOVERFLOW_HIDDEN
1019 ENOLINK_VALUE
1020 ENOLINK_HIDDEN
1021 EMULTIHOP_VALUE
1022 EMULTIHOP_HIDDEN
1023 GL_GENERATE_ERRNO_H_FALSE
1024 GL_GENERATE_ERRNO_H_TRUE
1025 ERRNO_H
1026 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1027 NEXT_ERRNO_H
1028 PRAGMA_COLUMNS
1029 PRAGMA_SYSTEM_HEADER
1030 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1031 INCLUDE_NEXT
1032 HAVE_WINSOCK2_H
1033 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1034 HAVE_ALLOCA_H
1035 GL_GENERATE_ALLOCA_H_FALSE
1036 GL_GENERATE_ALLOCA_H_TRUE
1037 ALLOCA_H
1038 ALLOCA
1039 host_os
1040 host_vendor
1041 host_cpu
1042 host
1043 build_os
1044 build_vendor
1045 build_cpu
1046 build
1047 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1048 UNISTD_H_HAVE_WINSOCK2_H
1049 REPLACE_WRITE
1050 REPLACE_USLEEP
1051 REPLACE_UNLINKAT
1052 REPLACE_UNLINK
1053 REPLACE_TTYNAME_R
1054 REPLACE_TRUNCATE
1055 REPLACE_SYMLINKAT
1056 REPLACE_SYMLINK
1057 REPLACE_SLEEP
1058 REPLACE_RMDIR
1059 REPLACE_READLINKAT
1060 REPLACE_READLINK
1061 REPLACE_READ
1062 REPLACE_PWRITE
1063 REPLACE_PREAD
1064 REPLACE_LSEEK
1065 REPLACE_LINKAT
1066 REPLACE_LINK
1067 REPLACE_LCHOWN
1068 REPLACE_ISATTY
1069 REPLACE_GETPASS
1070 REPLACE_GETPAGESIZE
1071 REPLACE_GETGROUPS
1072 REPLACE_GETLOGIN_R
1073 REPLACE_GETDTABLESIZE
1074 REPLACE_GETDOMAINNAME
1075 REPLACE_GETCWD
1076 REPLACE_FTRUNCATE
1077 REPLACE_FCHOWNAT
1078 REPLACE_FACCESSAT
1079 REPLACE_DUP2
1080 REPLACE_DUP
1081 REPLACE_CLOSE
1082 REPLACE_CHOWN
1083 REPLACE_ACCESS
1084 HAVE_SYS_PARAM_H
1085 HAVE_OS_H
1086 HAVE_DECL_TTYNAME_R
1087 HAVE_DECL_TRUNCATE
1088 HAVE_DECL_SETHOSTNAME
1089 HAVE_DECL_GETUSERSHELL
1090 HAVE_DECL_GETPAGESIZE
1091 HAVE_DECL_GETLOGIN_R
1092 HAVE_DECL_GETLOGIN
1093 HAVE_DECL_GETDOMAINNAME
1094 HAVE_DECL_FDATASYNC
1095 HAVE_DECL_FCHDIR
1096 HAVE_DECL_ENVIRON
1097 HAVE_USLEEP
1098 HAVE_UNLINKAT
1099 HAVE_SYMLINKAT
1100 HAVE_SYMLINK
1101 HAVE_SLEEP
1102 HAVE_SETHOSTNAME
1103 HAVE_READLINKAT
1104 HAVE_READLINK
1105 HAVE_PWRITE
1106 HAVE_PREAD
1107 HAVE_PIPE2
1108 HAVE_PIPE
1109 HAVE_LINKAT
1110 HAVE_LINK
1111 HAVE_LCHOWN
1112 HAVE_GROUP_MEMBER
1113 HAVE_GETPASS
1114 HAVE_GETPAGESIZE
1115 HAVE_GETLOGIN
1116 HAVE_GETHOSTNAME
1117 HAVE_GETGROUPS
1118 HAVE_GETDTABLESIZE
1119 HAVE_FTRUNCATE
1120 HAVE_FSYNC
1121 HAVE_FDATASYNC
1122 HAVE_FCHOWNAT
1123 HAVE_FCHDIR
1124 HAVE_FACCESSAT
1125 HAVE_EUIDACCESS
1126 HAVE_DUP3
1127 HAVE_DUP2
1128 HAVE_COPY_FILE_RANGE
1129 HAVE_CHOWN
1130 GNULIB_WRITE
1131 GNULIB_USLEEP
1132 GNULIB_UNLINKAT
1133 GNULIB_UNLINK
1134 GNULIB_UNISTD_H_SIGPIPE
1135 GNULIB_UNISTD_H_NONBLOCKING
1136 GNULIB_TTYNAME_R
1137 GNULIB_TRUNCATE
1138 GNULIB_SYMLINKAT
1139 GNULIB_SYMLINK
1140 GNULIB_SLEEP
1141 GNULIB_SETHOSTNAME
1142 GNULIB_RMDIR
1143 GNULIB_READLINKAT
1144 GNULIB_READLINK
1145 GNULIB_READ
1146 GNULIB_PWRITE
1147 GNULIB_PREAD
1148 GNULIB_PIPE2
1149 GNULIB_PIPE
1150 GNULIB_LSEEK
1151 GNULIB_LINKAT
1152 GNULIB_LINK
1153 GNULIB_LCHOWN
1154 GNULIB_ISATTY
1155 GNULIB_GROUP_MEMBER
1156 GNULIB_GETUSERSHELL
1157 GNULIB_GETPASS
1158 GNULIB_GETPAGESIZE
1159 GNULIB_GETLOGIN_R
1160 GNULIB_GETLOGIN
1161 GNULIB_GETHOSTNAME
1162 GNULIB_GETGROUPS
1163 GNULIB_GETDTABLESIZE
1164 GNULIB_GETDOMAINNAME
1165 GNULIB_GETCWD
1166 GNULIB_FTRUNCATE
1167 GNULIB_FSYNC
1168 GNULIB_FDATASYNC
1169 GNULIB_FCHOWNAT
1170 GNULIB_FCHDIR
1171 GNULIB_FACCESSAT
1172 GNULIB_EUIDACCESS
1173 GNULIB_ENVIRON
1174 GNULIB_DUP3
1175 GNULIB_DUP2
1176 GNULIB_DUP
1177 GNULIB_COPY_FILE_RANGE
1178 GNULIB_CLOSE
1179 GNULIB_CHOWN
1180 GNULIB_CHDIR
1181 GNULIB_ACCESS
1182 GL_COND_LIBTOOL_FALSE
1183 GL_COND_LIBTOOL_TRUE
1184 RANLIB
1185 ARFLAGS
1186 AR
1187 EGREP
1188 GREP
1189 CPP
1190 am__fastdepCC_FALSE
1191 am__fastdepCC_TRUE
1192 CCDEPMODE
1193 am__nodep
1194 AMDEPBACKSLASH
1195 AMDEP_FALSE
1196 AMDEP_TRUE
1197 am__include
1198 DEPDIR
1199 OBJEXT
1200 EXEEXT
1201 ac_ct_CC
1202 CPPFLAGS
1203 LDFLAGS
1204 CFLAGS
1205 CC
1206 AM_BACKSLASH
1207 AM_DEFAULT_VERBOSITY
1208 AM_DEFAULT_V
1209 AM_V
1210 am__untar
1211 am__tar
1212 AMTAR
1213 am__leading_dot
1214 SET_MAKE
1215 AWK
1216 mkdir_p
1217 MKDIR_P
1218 INSTALL_STRIP_PROGRAM
1219 STRIP
1220 install_sh
1221 MAKEINFO
1222 AUTOHEADER
1223 AUTOMAKE
1224 AUTOCONF
1225 ACLOCAL
1226 VERSION
1227 PACKAGE
1228 CYGPATH_W
1229 am__isrc
1230 INSTALL_DATA
1231 INSTALL_SCRIPT
1232 INSTALL_PROGRAM
1233 target_alias
1234 host_alias
1235 build_alias
1236 LIBS
1237 ECHO_T
1238 ECHO_N
1239 ECHO_C
1240 DEFS
1241 mandir
1242 localedir
1243 libdir
1244 psdir
1245 pdfdir
1246 dvidir
1247 htmldir
1248 infodir
1249 docdir
1250 oldincludedir
1251 includedir
1252 runstatedir
1253 localstatedir
1254 sharedstatedir
1255 sysconfdir
1256 datadir
1257 datarootdir
1258 libexecdir
1259 sbindir
1260 bindir
1261 program_transform_name
1262 prefix
1263 exec_prefix
1264 PACKAGE_URL
1265 PACKAGE_BUGREPORT
1266 PACKAGE_STRING
1267 PACKAGE_VERSION
1268 PACKAGE_TARNAME
1269 PACKAGE_NAME
1270 PATH_SEPARATOR
1271 SHELL
1272 am__quote'
1273 ac_subst_files='MAINT_MAKEFILE'
1274 ac_user_opts='
1275 enable_option_checking
1276 enable_silent_rules
1277 enable_dependency_tracking
1278 enable_cross_guesses
1279 enable_nls
1280 with_gnu_ld
1281 enable_rpath
1282 with_libiconv_prefix
1283 with_libintl_prefix
1284 enable_largefile
1285 with_guile
1286 with_customs
1287 enable_case_insensitive_file_system
1288 enable_job_server
1289 enable_load
1290 enable_posix_spawn
1291 with_dmalloc
1292 '
1293       ac_precious_vars='build_alias
1294 host_alias
1295 target_alias
1296 CC
1297 CFLAGS
1298 LDFLAGS
1299 LIBS
1300 CPPFLAGS
1301 CPP
1302 PKG_CONFIG
1303 PKG_CONFIG_PATH
1304 PKG_CONFIG_LIBDIR
1305 GUILE_CFLAGS
1306 GUILE_LIBS'
1307
1308
1309 # Initialize some variables set by options.
1310 ac_init_help=
1311 ac_init_version=false
1312 ac_unrecognized_opts=
1313 ac_unrecognized_sep=
1314 # The variables have the same names as the options, with
1315 # dashes changed to underlines.
1316 cache_file=/dev/null
1317 exec_prefix=NONE
1318 no_create=
1319 no_recursion=
1320 prefix=NONE
1321 program_prefix=NONE
1322 program_suffix=NONE
1323 program_transform_name=s,x,x,
1324 silent=
1325 site=
1326 srcdir=
1327 verbose=
1328 x_includes=NONE
1329 x_libraries=NONE
1330
1331 # Installation directory options.
1332 # These are left unexpanded so users can "make install exec_prefix=/foo"
1333 # and all the variables that are supposed to be based on exec_prefix
1334 # by default will actually change.
1335 # Use braces instead of parens because sh, perl, etc. also accept them.
1336 # (The list follows the same order as the GNU Coding Standards.)
1337 bindir='${exec_prefix}/bin'
1338 sbindir='${exec_prefix}/sbin'
1339 libexecdir='${exec_prefix}/libexec'
1340 datarootdir='${prefix}/share'
1341 datadir='${datarootdir}'
1342 sysconfdir='${prefix}/etc'
1343 sharedstatedir='${prefix}/com'
1344 localstatedir='${prefix}/var'
1345 runstatedir='${localstatedir}/run'
1346 includedir='${prefix}/include'
1347 oldincludedir='/usr/include'
1348 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1349 infodir='${datarootdir}/info'
1350 htmldir='${docdir}'
1351 dvidir='${docdir}'
1352 pdfdir='${docdir}'
1353 psdir='${docdir}'
1354 libdir='${exec_prefix}/lib'
1355 localedir='${datarootdir}/locale'
1356 mandir='${datarootdir}/man'
1357
1358 ac_prev=
1359 ac_dashdash=
1360 for ac_option
1361 do
1362   # If the previous option needs an argument, assign it.
1363   if test -n "$ac_prev"; then
1364     eval $ac_prev=\$ac_option
1365     ac_prev=
1366     continue
1367   fi
1368
1369   case $ac_option in
1370   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1371   *=)   ac_optarg= ;;
1372   *)    ac_optarg=yes ;;
1373   esac
1374
1375   # Accept the important Cygnus configure options, so we can diagnose typos.
1376
1377   case $ac_dashdash$ac_option in
1378   --)
1379     ac_dashdash=yes ;;
1380
1381   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1382     ac_prev=bindir ;;
1383   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1384     bindir=$ac_optarg ;;
1385
1386   -build | --build | --buil | --bui | --bu)
1387     ac_prev=build_alias ;;
1388   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1389     build_alias=$ac_optarg ;;
1390
1391   -cache-file | --cache-file | --cache-fil | --cache-fi \
1392   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1393     ac_prev=cache_file ;;
1394   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1395   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1396     cache_file=$ac_optarg ;;
1397
1398   --config-cache | -C)
1399     cache_file=config.cache ;;
1400
1401   -datadir | --datadir | --datadi | --datad)
1402     ac_prev=datadir ;;
1403   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1404     datadir=$ac_optarg ;;
1405
1406   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1407   | --dataroo | --dataro | --datar)
1408     ac_prev=datarootdir ;;
1409   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1410   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1411     datarootdir=$ac_optarg ;;
1412
1413   -disable-* | --disable-*)
1414     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1415     # Reject names that are not valid shell variable names.
1416     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417       as_fn_error $? "invalid feature name: $ac_useropt"
1418     ac_useropt_orig=$ac_useropt
1419     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1420     case $ac_user_opts in
1421       *"
1422 "enable_$ac_useropt"
1423 "*) ;;
1424       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1425          ac_unrecognized_sep=', ';;
1426     esac
1427     eval enable_$ac_useropt=no ;;
1428
1429   -docdir | --docdir | --docdi | --doc | --do)
1430     ac_prev=docdir ;;
1431   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1432     docdir=$ac_optarg ;;
1433
1434   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1435     ac_prev=dvidir ;;
1436   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1437     dvidir=$ac_optarg ;;
1438
1439   -enable-* | --enable-*)
1440     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1441     # Reject names that are not valid shell variable names.
1442     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1443       as_fn_error $? "invalid feature name: $ac_useropt"
1444     ac_useropt_orig=$ac_useropt
1445     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1446     case $ac_user_opts in
1447       *"
1448 "enable_$ac_useropt"
1449 "*) ;;
1450       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1451          ac_unrecognized_sep=', ';;
1452     esac
1453     eval enable_$ac_useropt=\$ac_optarg ;;
1454
1455   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1456   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1457   | --exec | --exe | --ex)
1458     ac_prev=exec_prefix ;;
1459   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1460   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1461   | --exec=* | --exe=* | --ex=*)
1462     exec_prefix=$ac_optarg ;;
1463
1464   -gas | --gas | --ga | --g)
1465     # Obsolete; use --with-gas.
1466     with_gas=yes ;;
1467
1468   -help | --help | --hel | --he | -h)
1469     ac_init_help=long ;;
1470   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1471     ac_init_help=recursive ;;
1472   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1473     ac_init_help=short ;;
1474
1475   -host | --host | --hos | --ho)
1476     ac_prev=host_alias ;;
1477   -host=* | --host=* | --hos=* | --ho=*)
1478     host_alias=$ac_optarg ;;
1479
1480   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1481     ac_prev=htmldir ;;
1482   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1483   | --ht=*)
1484     htmldir=$ac_optarg ;;
1485
1486   -includedir | --includedir | --includedi | --included | --include \
1487   | --includ | --inclu | --incl | --inc)
1488     ac_prev=includedir ;;
1489   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1490   | --includ=* | --inclu=* | --incl=* | --inc=*)
1491     includedir=$ac_optarg ;;
1492
1493   -infodir | --infodir | --infodi | --infod | --info | --inf)
1494     ac_prev=infodir ;;
1495   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1496     infodir=$ac_optarg ;;
1497
1498   -libdir | --libdir | --libdi | --libd)
1499     ac_prev=libdir ;;
1500   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1501     libdir=$ac_optarg ;;
1502
1503   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1504   | --libexe | --libex | --libe)
1505     ac_prev=libexecdir ;;
1506   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1507   | --libexe=* | --libex=* | --libe=*)
1508     libexecdir=$ac_optarg ;;
1509
1510   -localedir | --localedir | --localedi | --localed | --locale)
1511     ac_prev=localedir ;;
1512   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1513     localedir=$ac_optarg ;;
1514
1515   -localstatedir | --localstatedir | --localstatedi | --localstated \
1516   | --localstate | --localstat | --localsta | --localst | --locals)
1517     ac_prev=localstatedir ;;
1518   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1519   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1520     localstatedir=$ac_optarg ;;
1521
1522   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1523     ac_prev=mandir ;;
1524   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1525     mandir=$ac_optarg ;;
1526
1527   -nfp | --nfp | --nf)
1528     # Obsolete; use --without-fp.
1529     with_fp=no ;;
1530
1531   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1532   | --no-cr | --no-c | -n)
1533     no_create=yes ;;
1534
1535   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1536   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1537     no_recursion=yes ;;
1538
1539   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1540   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1541   | --oldin | --oldi | --old | --ol | --o)
1542     ac_prev=oldincludedir ;;
1543   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1544   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1545   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1546     oldincludedir=$ac_optarg ;;
1547
1548   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1549     ac_prev=prefix ;;
1550   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1551     prefix=$ac_optarg ;;
1552
1553   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1554   | --program-pre | --program-pr | --program-p)
1555     ac_prev=program_prefix ;;
1556   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1557   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1558     program_prefix=$ac_optarg ;;
1559
1560   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1561   | --program-suf | --program-su | --program-s)
1562     ac_prev=program_suffix ;;
1563   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1564   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1565     program_suffix=$ac_optarg ;;
1566
1567   -program-transform-name | --program-transform-name \
1568   | --program-transform-nam | --program-transform-na \
1569   | --program-transform-n | --program-transform- \
1570   | --program-transform | --program-transfor \
1571   | --program-transfo | --program-transf \
1572   | --program-trans | --program-tran \
1573   | --progr-tra | --program-tr | --program-t)
1574     ac_prev=program_transform_name ;;
1575   -program-transform-name=* | --program-transform-name=* \
1576   | --program-transform-nam=* | --program-transform-na=* \
1577   | --program-transform-n=* | --program-transform-=* \
1578   | --program-transform=* | --program-transfor=* \
1579   | --program-transfo=* | --program-transf=* \
1580   | --program-trans=* | --program-tran=* \
1581   | --progr-tra=* | --program-tr=* | --program-t=*)
1582     program_transform_name=$ac_optarg ;;
1583
1584   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1585     ac_prev=pdfdir ;;
1586   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1587     pdfdir=$ac_optarg ;;
1588
1589   -psdir | --psdir | --psdi | --psd | --ps)
1590     ac_prev=psdir ;;
1591   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1592     psdir=$ac_optarg ;;
1593
1594   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595   | -silent | --silent | --silen | --sile | --sil)
1596     silent=yes ;;
1597
1598   -runstatedir | --runstatedir | --runstatedi | --runstated \
1599   | --runstate | --runstat | --runsta | --runst | --runs \
1600   | --run | --ru | --r)
1601     ac_prev=runstatedir ;;
1602   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1603   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1604   | --run=* | --ru=* | --r=*)
1605     runstatedir=$ac_optarg ;;
1606
1607   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1608     ac_prev=sbindir ;;
1609   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1610   | --sbi=* | --sb=*)
1611     sbindir=$ac_optarg ;;
1612
1613   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1614   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1615   | --sharedst | --shareds | --shared | --share | --shar \
1616   | --sha | --sh)
1617     ac_prev=sharedstatedir ;;
1618   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1619   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1620   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1621   | --sha=* | --sh=*)
1622     sharedstatedir=$ac_optarg ;;
1623
1624   -site | --site | --sit)
1625     ac_prev=site ;;
1626   -site=* | --site=* | --sit=*)
1627     site=$ac_optarg ;;
1628
1629   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1630     ac_prev=srcdir ;;
1631   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1632     srcdir=$ac_optarg ;;
1633
1634   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1635   | --syscon | --sysco | --sysc | --sys | --sy)
1636     ac_prev=sysconfdir ;;
1637   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1638   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1639     sysconfdir=$ac_optarg ;;
1640
1641   -target | --target | --targe | --targ | --tar | --ta | --t)
1642     ac_prev=target_alias ;;
1643   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1644     target_alias=$ac_optarg ;;
1645
1646   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1647     verbose=yes ;;
1648
1649   -version | --version | --versio | --versi | --vers | -V)
1650     ac_init_version=: ;;
1651
1652   -with-* | --with-*)
1653     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1654     # Reject names that are not valid shell variable names.
1655     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1656       as_fn_error $? "invalid package name: $ac_useropt"
1657     ac_useropt_orig=$ac_useropt
1658     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1659     case $ac_user_opts in
1660       *"
1661 "with_$ac_useropt"
1662 "*) ;;
1663       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1664          ac_unrecognized_sep=', ';;
1665     esac
1666     eval with_$ac_useropt=\$ac_optarg ;;
1667
1668   -without-* | --without-*)
1669     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1670     # Reject names that are not valid shell variable names.
1671     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1672       as_fn_error $? "invalid package name: $ac_useropt"
1673     ac_useropt_orig=$ac_useropt
1674     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1675     case $ac_user_opts in
1676       *"
1677 "with_$ac_useropt"
1678 "*) ;;
1679       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1680          ac_unrecognized_sep=', ';;
1681     esac
1682     eval with_$ac_useropt=no ;;
1683
1684   --x)
1685     # Obsolete; use --with-x.
1686     with_x=yes ;;
1687
1688   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1689   | --x-incl | --x-inc | --x-in | --x-i)
1690     ac_prev=x_includes ;;
1691   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1692   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1693     x_includes=$ac_optarg ;;
1694
1695   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1696   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1697     ac_prev=x_libraries ;;
1698   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1699   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1700     x_libraries=$ac_optarg ;;
1701
1702   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1703 Try \`$0 --help' for more information"
1704     ;;
1705
1706   *=*)
1707     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1708     # Reject names that are not valid shell variable names.
1709     case $ac_envvar in #(
1710       '' | [0-9]* | *[!_$as_cr_alnum]* )
1711       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1712     esac
1713     eval $ac_envvar=\$ac_optarg
1714     export $ac_envvar ;;
1715
1716   *)
1717     # FIXME: should be removed in autoconf 3.0.
1718     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1719     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1720       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1721     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1722     ;;
1723
1724   esac
1725 done
1726
1727 if test -n "$ac_prev"; then
1728   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1729   as_fn_error $? "missing argument to $ac_option"
1730 fi
1731
1732 if test -n "$ac_unrecognized_opts"; then
1733   case $enable_option_checking in
1734     no) ;;
1735     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1736     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1737   esac
1738 fi
1739
1740 # Check all directory arguments for consistency.
1741 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1742                 datadir sysconfdir sharedstatedir localstatedir includedir \
1743                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1744                 libdir localedir mandir runstatedir
1745 do
1746   eval ac_val=\$$ac_var
1747   # Remove trailing slashes.
1748   case $ac_val in
1749     */ )
1750       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1751       eval $ac_var=\$ac_val;;
1752   esac
1753   # Be sure to have absolute directory names.
1754   case $ac_val in
1755     [\\/$]* | ?:[\\/]* )  continue;;
1756     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1757   esac
1758   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1759 done
1760
1761 # There might be people who depend on the old broken behavior: `$host'
1762 # used to hold the argument of --host etc.
1763 # FIXME: To remove some day.
1764 build=$build_alias
1765 host=$host_alias
1766 target=$target_alias
1767
1768 # FIXME: To remove some day.
1769 if test "x$host_alias" != x; then
1770   if test "x$build_alias" = x; then
1771     cross_compiling=maybe
1772   elif test "x$build_alias" != "x$host_alias"; then
1773     cross_compiling=yes
1774   fi
1775 fi
1776
1777 ac_tool_prefix=
1778 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1779
1780 test "$silent" = yes && exec 6>/dev/null
1781
1782
1783 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1784 ac_ls_di=`ls -di .` &&
1785 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1786   as_fn_error $? "working directory cannot be determined"
1787 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1788   as_fn_error $? "pwd does not report name of working directory"
1789
1790
1791 # Find the source files, if location was not specified.
1792 if test -z "$srcdir"; then
1793   ac_srcdir_defaulted=yes
1794   # Try the directory containing this script, then the parent directory.
1795   ac_confdir=`$as_dirname -- "$as_myself" ||
1796 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1797          X"$as_myself" : 'X\(//\)[^/]' \| \
1798          X"$as_myself" : 'X\(//\)$' \| \
1799          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1800 $as_echo X"$as_myself" |
1801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1802             s//\1/
1803             q
1804           }
1805           /^X\(\/\/\)[^/].*/{
1806             s//\1/
1807             q
1808           }
1809           /^X\(\/\/\)$/{
1810             s//\1/
1811             q
1812           }
1813           /^X\(\/\).*/{
1814             s//\1/
1815             q
1816           }
1817           s/.*/./; q'`
1818   srcdir=$ac_confdir
1819   if test ! -r "$srcdir/$ac_unique_file"; then
1820     srcdir=..
1821   fi
1822 else
1823   ac_srcdir_defaulted=no
1824 fi
1825 if test ! -r "$srcdir/$ac_unique_file"; then
1826   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1827   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1828 fi
1829 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1830 ac_abs_confdir=`(
1831         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1832         pwd)`
1833 # When building in place, set srcdir=.
1834 if test "$ac_abs_confdir" = "$ac_pwd"; then
1835   srcdir=.
1836 fi
1837 # Remove unnecessary trailing slashes from srcdir.
1838 # Double slashes in file names in object file debugging info
1839 # mess up M-x gdb in Emacs.
1840 case $srcdir in
1841 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1842 esac
1843 for ac_var in $ac_precious_vars; do
1844   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1845   eval ac_env_${ac_var}_value=\$${ac_var}
1846   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1847   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1848 done
1849
1850 #
1851 # Report the --help message.
1852 #
1853 if test "$ac_init_help" = "long"; then
1854   # Omit some internal or obsolete options to make the list less imposing.
1855   # This message is too long to be a string in the A/UX 3.1 sh.
1856   cat <<_ACEOF
1857 \`configure' configures GNU make 4.3 to adapt to many kinds of systems.
1858
1859 Usage: $0 [OPTION]... [VAR=VALUE]...
1860
1861 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1862 VAR=VALUE.  See below for descriptions of some of the useful variables.
1863
1864 Defaults for the options are specified in brackets.
1865
1866 Configuration:
1867   -h, --help              display this help and exit
1868       --help=short        display options specific to this package
1869       --help=recursive    display the short help of all the included packages
1870   -V, --version           display version information and exit
1871   -q, --quiet, --silent   do not print \`checking ...' messages
1872       --cache-file=FILE   cache test results in FILE [disabled]
1873   -C, --config-cache      alias for \`--cache-file=config.cache'
1874   -n, --no-create         do not create output files
1875       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1876
1877 Installation directories:
1878   --prefix=PREFIX         install architecture-independent files in PREFIX
1879                           [$ac_default_prefix]
1880   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1881                           [PREFIX]
1882
1883 By default, \`make install' will install all the files in
1884 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1885 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1886 for instance \`--prefix=\$HOME'.
1887
1888 For better control, use the options below.
1889
1890 Fine tuning of the installation directories:
1891   --bindir=DIR            user executables [EPREFIX/bin]
1892   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1893   --libexecdir=DIR        program executables [EPREFIX/libexec]
1894   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1895   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1896   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1897   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1898   --libdir=DIR            object code libraries [EPREFIX/lib]
1899   --includedir=DIR        C header files [PREFIX/include]
1900   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1901   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1902   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1903   --infodir=DIR           info documentation [DATAROOTDIR/info]
1904   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1905   --mandir=DIR            man documentation [DATAROOTDIR/man]
1906   --docdir=DIR            documentation root [DATAROOTDIR/doc/make]
1907   --htmldir=DIR           html documentation [DOCDIR]
1908   --dvidir=DIR            dvi documentation [DOCDIR]
1909   --pdfdir=DIR            pdf documentation [DOCDIR]
1910   --psdir=DIR             ps documentation [DOCDIR]
1911 _ACEOF
1912
1913   cat <<\_ACEOF
1914
1915 Program names:
1916   --program-prefix=PREFIX            prepend PREFIX to installed program names
1917   --program-suffix=SUFFIX            append SUFFIX to installed program names
1918   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1919
1920 System types:
1921   --build=BUILD     configure for building on BUILD [guessed]
1922   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1923 _ACEOF
1924 fi
1925
1926 if test -n "$ac_init_help"; then
1927   case $ac_init_help in
1928      short | recursive ) echo "Configuration of GNU make 4.3:";;
1929    esac
1930   cat <<\_ACEOF
1931
1932 Optional Features:
1933   --disable-option-checking  ignore unrecognized --enable/--with options
1934   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1935   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1936   --enable-silent-rules   less verbose build output (undo: "make V=1")
1937   --disable-silent-rules  verbose build output (undo: "make V=0")
1938   --enable-dependency-tracking
1939                           do not reject slow dependency extractors
1940   --disable-dependency-tracking
1941                           speeds up one-time build
1942   --enable-cross-guesses={conservative|risky}
1943                           specify policy for cross-compilation guesses
1944   --disable-nls           do not use Native Language Support
1945   --disable-rpath         do not hardcode runtime library paths
1946   --disable-largefile     omit support for large files
1947   --enable-case-insensitive-file-system
1948                           assume file systems are case insensitive
1949   --disable-job-server    disallow recursive make communication during -jN
1950   --disable-load          disable support for the 'load' operation
1951   --disable-posix-spawn   disable support for posix_spawn()
1952
1953 Optional Packages:
1954   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1955   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1956   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1957   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1958   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1959   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1960   --without-libintl-prefix     don't search for libintl in includedir and libdir
1961   --with-guile            Support GNU Guile for embedded scripting
1962   --with-customs=DIR      enable remote jobs via Customs--see README.customs
1963   --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1964
1965 Some influential environment variables:
1966   CC          C compiler command
1967   CFLAGS      C compiler flags
1968   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1969               nonstandard directory <lib dir>
1970   LIBS        libraries to pass to the linker, e.g. -l<library>
1971   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1972               you have headers in a nonstandard directory <include dir>
1973   CPP         C preprocessor
1974   PKG_CONFIG  path to pkg-config utility
1975   PKG_CONFIG_PATH
1976               directories to add to pkg-config's search path
1977   PKG_CONFIG_LIBDIR
1978               path overriding pkg-config's built-in search path
1979   GUILE_CFLAGS
1980               C compiler flags for GUILE, overriding pkg-config
1981   GUILE_LIBS  linker flags for GUILE, overriding pkg-config
1982
1983 Use these variables to override the choices made by `configure' or to help
1984 it to find libraries and programs with nonstandard names/locations.
1985
1986 Report bugs to <bug-make@gnu.org>.
1987 GNU make home page: <http://www.gnu.org/software/make/>.
1988 General help using GNU software: <http://www.gnu.org/gethelp/>.
1989 _ACEOF
1990 ac_status=$?
1991 fi
1992
1993 if test "$ac_init_help" = "recursive"; then
1994   # If there are subdirs, report their specific --help.
1995   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1996     test -d "$ac_dir" ||
1997       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1998       continue
1999     ac_builddir=.
2000
2001 case "$ac_dir" in
2002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2003 *)
2004   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2005   # A ".." for each directory in $ac_dir_suffix.
2006   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2007   case $ac_top_builddir_sub in
2008   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2009   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2010   esac ;;
2011 esac
2012 ac_abs_top_builddir=$ac_pwd
2013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2014 # for backward compatibility:
2015 ac_top_builddir=$ac_top_build_prefix
2016
2017 case $srcdir in
2018   .)  # We are building in place.
2019     ac_srcdir=.
2020     ac_top_srcdir=$ac_top_builddir_sub
2021     ac_abs_top_srcdir=$ac_pwd ;;
2022   [\\/]* | ?:[\\/]* )  # Absolute name.
2023     ac_srcdir=$srcdir$ac_dir_suffix;
2024     ac_top_srcdir=$srcdir
2025     ac_abs_top_srcdir=$srcdir ;;
2026   *) # Relative name.
2027     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2028     ac_top_srcdir=$ac_top_build_prefix$srcdir
2029     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2030 esac
2031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2032
2033     cd "$ac_dir" || { ac_status=$?; continue; }
2034     # Check for guested configure.
2035     if test -f "$ac_srcdir/configure.gnu"; then
2036       echo &&
2037       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2038     elif test -f "$ac_srcdir/configure"; then
2039       echo &&
2040       $SHELL "$ac_srcdir/configure" --help=recursive
2041     else
2042       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2043     fi || ac_status=$?
2044     cd "$ac_pwd" || { ac_status=$?; break; }
2045   done
2046 fi
2047
2048 test -n "$ac_init_help" && exit $ac_status
2049 if $ac_init_version; then
2050   cat <<\_ACEOF
2051 GNU make configure 4.3
2052 generated by GNU Autoconf 2.69
2053
2054 Copyright (C) 2012 Free Software Foundation, Inc.
2055 This configure script is free software; the Free Software Foundation
2056 gives unlimited permission to copy, distribute and modify it.
2057 _ACEOF
2058   exit
2059 fi
2060
2061 ## ------------------------ ##
2062 ## Autoconf initialization. ##
2063 ## ------------------------ ##
2064
2065 # ac_fn_c_try_compile LINENO
2066 # --------------------------
2067 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_c_try_compile ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   rm -f conftest.$ac_objext
2072   if { { ac_try="$ac_compile"
2073 case "(($ac_try" in
2074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075   *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079   (eval "$ac_compile") 2>conftest.err
2080   ac_status=$?
2081   if test -s conftest.err; then
2082     grep -v '^ *+' conftest.err >conftest.er1
2083     cat conftest.er1 >&5
2084     mv -f conftest.er1 conftest.err
2085   fi
2086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087   test $ac_status = 0; } && {
2088          test -z "$ac_c_werror_flag" ||
2089          test ! -s conftest.err
2090        } && test -s conftest.$ac_objext; then :
2091   ac_retval=0
2092 else
2093   $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096         ac_retval=1
2097 fi
2098   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099   as_fn_set_status $ac_retval
2100
2101 } # ac_fn_c_try_compile
2102
2103 # ac_fn_c_try_cpp LINENO
2104 # ----------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_c_try_cpp ()
2107 {
2108   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109   if { { ac_try="$ac_cpp conftest.$ac_ext"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117   ac_status=$?
2118   if test -s conftest.err; then
2119     grep -v '^ *+' conftest.err >conftest.er1
2120     cat conftest.er1 >&5
2121     mv -f conftest.er1 conftest.err
2122   fi
2123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124   test $ac_status = 0; } > conftest.i && {
2125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2126          test ! -s conftest.err
2127        }; then :
2128   ac_retval=0
2129 else
2130   $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133     ac_retval=1
2134 fi
2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136   as_fn_set_status $ac_retval
2137
2138 } # ac_fn_c_try_cpp
2139
2140 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # -------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2144 # accordingly.
2145 ac_fn_c_check_header_mongrel ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if eval \${$3+:} false; then :
2149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152   $as_echo_n "(cached) " >&6
2153 fi
2154 eval ac_res=\$$3
2155                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 else
2158   # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   ac_header_compiler=yes
2168 else
2169   ac_header_compiler=no
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2174
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_c_try_cpp "$LINENO"; then :
2183   ac_header_preproc=yes
2184 else
2185   ac_header_preproc=no
2186 fi
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2190
2191 # So?  What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2193   yes:no: )
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198     ;;
2199   no:yes:* )
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ( $as_echo "## ------------------------------- ##
2211 ## Report this to bug-make@gnu.org ##
2212 ## ------------------------------- ##"
2213      ) | sed "s/^/$as_me: WARNING:     /" >&2
2214     ;;
2215 esac
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219   $as_echo_n "(cached) " >&6
2220 else
2221   eval "$3=\$ac_header_compiler"
2222 fi
2223 eval ac_res=\$$3
2224                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 fi
2227   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229 } # ac_fn_c_check_header_mongrel
2230
2231 # ac_fn_c_try_run LINENO
2232 # ----------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2234 # that executables *can* be run.
2235 ac_fn_c_try_run ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   if { { ac_try="$ac_link"
2239 case "(($ac_try" in
2240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241   *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245   (eval "$ac_link") 2>&5
2246   ac_status=$?
2247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2249   { { case "(($ac_try" in
2250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251   *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258   test $ac_status = 0; }; }; then :
2259   ac_retval=0
2260 else
2261   $as_echo "$as_me: program exited with status $ac_status" >&5
2262        $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265        ac_retval=$ac_status
2266 fi
2267   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2268   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269   as_fn_set_status $ac_retval
2270
2271 } # ac_fn_c_try_run
2272
2273 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2274 # -------------------------------------------------------
2275 # Tests whether HEADER exists and can be compiled using the include files in
2276 # INCLUDES, setting the cache variable VAR accordingly.
2277 ac_fn_c_check_header_compile ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283   $as_echo_n "(cached) " >&6
2284 else
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 #include <$2>
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291   eval "$3=yes"
2292 else
2293   eval "$3=no"
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 eval ac_res=\$$3
2298                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301
2302 } # ac_fn_c_check_header_compile
2303
2304 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2305 # -------------------------------------------
2306 # Tests whether TYPE exists after having included INCLUDES, setting cache
2307 # variable VAR accordingly.
2308 ac_fn_c_check_type ()
2309 {
2310   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if eval \${$3+:} false; then :
2314   $as_echo_n "(cached) " >&6
2315 else
2316   eval "$3=no"
2317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h.  */
2319 $4
2320 int
2321 main ()
2322 {
2323 if (sizeof ($2))
2324          return 0;
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 int
2334 main ()
2335 {
2336 if (sizeof (($2)))
2337             return 0;
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 if ac_fn_c_try_compile "$LINENO"; then :
2343
2344 else
2345   eval "$3=yes"
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 fi
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 fi
2351 eval ac_res=\$$3
2352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355
2356 } # ac_fn_c_check_type
2357
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_c_try_link ()
2362 {
2363   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364   rm -f conftest.$ac_objext conftest$ac_exeext
2365   if { { ac_try="$ac_link"
2366 case "(($ac_try" in
2367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368   *) ac_try_echo=$ac_try;;
2369 esac
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372   (eval "$ac_link") 2>conftest.err
2373   ac_status=$?
2374   if test -s conftest.err; then
2375     grep -v '^ *+' conftest.err >conftest.er1
2376     cat conftest.er1 >&5
2377     mv -f conftest.er1 conftest.err
2378   fi
2379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380   test $ac_status = 0; } && {
2381          test -z "$ac_c_werror_flag" ||
2382          test ! -s conftest.err
2383        } && test -s conftest$ac_exeext && {
2384          test "$cross_compiling" = yes ||
2385          test -x conftest$ac_exeext
2386        }; then :
2387   ac_retval=0
2388 else
2389   $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392         ac_retval=1
2393 fi
2394   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396   # interfere with the next link command; also delete a directory that is
2397   # left behind by Apple's compiler.  We do this before executing the actions.
2398   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400   as_fn_set_status $ac_retval
2401
2402 } # ac_fn_c_try_link
2403
2404 # ac_fn_c_check_func LINENO FUNC VAR
2405 # ----------------------------------
2406 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2407 ac_fn_c_check_func ()
2408 {
2409   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413   $as_echo_n "(cached) " >&6
2414 else
2415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h.  */
2417 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2419 #define $2 innocuous_$2
2420
2421 /* System header to define __stub macros and hopefully few prototypes,
2422     which can conflict with char $2 (); below.
2423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2424     <limits.h> exists even on freestanding compilers.  */
2425
2426 #ifdef __STDC__
2427 # include <limits.h>
2428 #else
2429 # include <assert.h>
2430 #endif
2431
2432 #undef $2
2433
2434 /* Override any GCC internal prototype to avoid an error.
2435    Use char because int might match the return type of a GCC
2436    builtin and then its argument prototype would still apply.  */
2437 #ifdef __cplusplus
2438 extern "C"
2439 #endif
2440 char $2 ();
2441 /* The GNU C library defines this for functions which it implements
2442     to always fail with ENOSYS.  Some functions are actually named
2443     something starting with __ and the normal name is an alias.  */
2444 #if defined __stub_$2 || defined __stub___$2
2445 choke me
2446 #endif
2447
2448 int
2449 main ()
2450 {
2451 return $2 ();
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_link "$LINENO"; then :
2457   eval "$3=yes"
2458 else
2459   eval "$3=no"
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext \
2462     conftest$ac_exeext conftest.$ac_ext
2463 fi
2464 eval ac_res=\$$3
2465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468
2469 } # ac_fn_c_check_func
2470
2471 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2472 # --------------------------------------------
2473 # Tries to find the compile-time value of EXPR in a program that includes
2474 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2475 # computed
2476 ac_fn_c_compute_int ()
2477 {
2478   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479   if test "$cross_compiling" = yes; then
2480     # Depending upon the size, compute the lo and hi bounds.
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h.  */
2483 $4
2484 int
2485 main ()
2486 {
2487 static int test_array [1 - 2 * !(($2) >= 0)];
2488 test_array [0] = 0;
2489 return test_array [0];
2490
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_c_try_compile "$LINENO"; then :
2496   ac_lo=0 ac_mid=0
2497   while :; do
2498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h.  */
2500 $4
2501 int
2502 main ()
2503 {
2504 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2505 test_array [0] = 0;
2506 return test_array [0];
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 if ac_fn_c_try_compile "$LINENO"; then :
2513   ac_hi=$ac_mid; break
2514 else
2515   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2516                         if test $ac_lo -le $ac_mid; then
2517                           ac_lo= ac_hi=
2518                           break
2519                         fi
2520                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523   done
2524 else
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) < 0)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"; then :
2540   ac_hi=-1 ac_mid=-1
2541   while :; do
2542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h.  */
2544 $4
2545 int
2546 main ()
2547 {
2548 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2549 test_array [0] = 0;
2550 return test_array [0];
2551
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557   ac_lo=$ac_mid; break
2558 else
2559   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2560                         if test $ac_mid -le $ac_hi; then
2561                           ac_lo= ac_hi=
2562                           break
2563                         fi
2564                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567   done
2568 else
2569   ac_lo= ac_hi=
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 # Binary search between lo and hi bounds.
2575 while test "x$ac_lo" != "x$ac_hi"; do
2576   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h.  */
2579 $4
2580 int
2581 main ()
2582 {
2583 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2584 test_array [0] = 0;
2585 return test_array [0];
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592   ac_hi=$ac_mid
2593 else
2594   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 done
2598 case $ac_lo in #((
2599 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2600 '') ac_retval=1 ;;
2601 esac
2602   else
2603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 static long int longval () { return $2; }
2607 static unsigned long int ulongval () { return $2; }
2608 #include <stdio.h>
2609 #include <stdlib.h>
2610 int
2611 main ()
2612 {
2613
2614   FILE *f = fopen ("conftest.val", "w");
2615   if (! f)
2616     return 1;
2617   if (($2) < 0)
2618     {
2619       long int i = longval ();
2620       if (i != ($2))
2621         return 1;
2622       fprintf (f, "%ld", i);
2623     }
2624   else
2625     {
2626       unsigned long int i = ulongval ();
2627       if (i != ($2))
2628         return 1;
2629       fprintf (f, "%lu", i);
2630     }
2631   /* Do not output a trailing newline, as this causes \r\n confusion
2632      on some platforms.  */
2633   return ferror (f) || fclose (f) != 0;
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 if ac_fn_c_try_run "$LINENO"; then :
2640   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641 else
2642   ac_retval=1
2643 fi
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645   conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 rm -f conftest.val
2647
2648   fi
2649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650   as_fn_set_status $ac_retval
2651
2652 } # ac_fn_c_compute_int
2653
2654 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2655 # ---------------------------------------------
2656 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2657 # accordingly.
2658 ac_fn_c_check_decl ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   as_decl_name=`echo $2|sed 's/ *(.*//'`
2662   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2664 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2665 if eval \${$3+:} false; then :
2666   $as_echo_n "(cached) " >&6
2667 else
2668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h.  */
2670 $4
2671 int
2672 main ()
2673 {
2674 #ifndef $as_decl_name
2675 #ifdef __cplusplus
2676   (void) $as_decl_use;
2677 #else
2678   (void) $as_decl_name;
2679 #endif
2680 #endif
2681
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"; then :
2687   eval "$3=yes"
2688 else
2689   eval "$3=no"
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 eval ac_res=\$$3
2694                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697
2698 } # ac_fn_c_check_decl
2699
2700 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2701 # ----------------------------------------------------
2702 # Tries to find if the field MEMBER exists in type AGGR, after including
2703 # INCLUDES, setting cache variable VAR accordingly.
2704 ac_fn_c_check_member ()
2705 {
2706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2708 $as_echo_n "checking for $2.$3... " >&6; }
2709 if eval \${$4+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h.  */
2714 $5
2715 int
2716 main ()
2717 {
2718 static $2 ac_aggr;
2719 if (ac_aggr.$3)
2720 return 0;
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 if ac_fn_c_try_compile "$LINENO"; then :
2726   eval "$4=yes"
2727 else
2728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 $5
2731 int
2732 main ()
2733 {
2734 static $2 ac_aggr;
2735 if (sizeof ac_aggr.$3)
2736 return 0;
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 if ac_fn_c_try_compile "$LINENO"; then :
2742   eval "$4=yes"
2743 else
2744   eval "$4=no"
2745 fi
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 fi
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 fi
2750 eval ac_res=\$$4
2751                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2752 $as_echo "$ac_res" >&6; }
2753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754
2755 } # ac_fn_c_check_member
2756 cat >config.log <<_ACEOF
2757 This file contains any messages produced by compilers while
2758 running configure, to aid debugging if configure makes a mistake.
2759
2760 It was created by GNU make $as_me 4.3, which was
2761 generated by GNU Autoconf 2.69.  Invocation command line was
2762
2763   $ $0 $@
2764
2765 _ACEOF
2766 exec 5>>config.log
2767 {
2768 cat <<_ASUNAME
2769 ## --------- ##
2770 ## Platform. ##
2771 ## --------- ##
2772
2773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2774 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2775 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2776 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2777 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2778
2779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2780 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2781
2782 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2783 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2785 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2786 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2787 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2788 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2789
2790 _ASUNAME
2791
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     $as_echo "PATH: $as_dir"
2798   done
2799 IFS=$as_save_IFS
2800
2801 } >&5
2802
2803 cat >&5 <<_ACEOF
2804
2805
2806 ## ----------- ##
2807 ## Core tests. ##
2808 ## ----------- ##
2809
2810 _ACEOF
2811
2812
2813 # Keep a trace of the command line.
2814 # Strip out --no-create and --no-recursion so they do not pile up.
2815 # Strip out --silent because we don't want to record it for future runs.
2816 # Also quote any args containing shell meta-characters.
2817 # Make two passes to allow for proper duplicate-argument suppression.
2818 ac_configure_args=
2819 ac_configure_args0=
2820 ac_configure_args1=
2821 ac_must_keep_next=false
2822 for ac_pass in 1 2
2823 do
2824   for ac_arg
2825   do
2826     case $ac_arg in
2827     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2828     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2829     | -silent | --silent | --silen | --sile | --sil)
2830       continue ;;
2831     *\'*)
2832       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2833     esac
2834     case $ac_pass in
2835     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2836     2)
2837       as_fn_append ac_configure_args1 " '$ac_arg'"
2838       if test $ac_must_keep_next = true; then
2839         ac_must_keep_next=false # Got value, back to normal.
2840       else
2841         case $ac_arg in
2842           *=* | --config-cache | -C | -disable-* | --disable-* \
2843           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2844           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2845           | -with-* | --with-* | -without-* | --without-* | --x)
2846             case "$ac_configure_args0 " in
2847               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2848             esac
2849             ;;
2850           -* ) ac_must_keep_next=true ;;
2851         esac
2852       fi
2853       as_fn_append ac_configure_args " '$ac_arg'"
2854       ;;
2855     esac
2856   done
2857 done
2858 { ac_configure_args0=; unset ac_configure_args0;}
2859 { ac_configure_args1=; unset ac_configure_args1;}
2860
2861 # When interrupted or exit'd, cleanup temporary files, and complete
2862 # config.log.  We remove comments because anyway the quotes in there
2863 # would cause problems or look ugly.
2864 # WARNING: Use '\'' to represent an apostrophe within the trap.
2865 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2866 trap 'exit_status=$?
2867   # Save into config.log some information that might help in debugging.
2868   {
2869     echo
2870
2871     $as_echo "## ---------------- ##
2872 ## Cache variables. ##
2873 ## ---------------- ##"
2874     echo
2875     # The following way of writing the cache mishandles newlines in values,
2876 (
2877   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2878     eval ac_val=\$$ac_var
2879     case $ac_val in #(
2880     *${as_nl}*)
2881       case $ac_var in #(
2882       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2884       esac
2885       case $ac_var in #(
2886       _ | IFS | as_nl) ;; #(
2887       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2888       *) { eval $ac_var=; unset $ac_var;} ;;
2889       esac ;;
2890     esac
2891   done
2892   (set) 2>&1 |
2893     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2894     *${as_nl}ac_space=\ *)
2895       sed -n \
2896         "s/'\''/'\''\\\\'\'''\''/g;
2897           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2898       ;; #(
2899     *)
2900       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2901       ;;
2902     esac |
2903     sort
2904 )
2905     echo
2906
2907     $as_echo "## ----------------- ##
2908 ## Output variables. ##
2909 ## ----------------- ##"
2910     echo
2911     for ac_var in $ac_subst_vars
2912     do
2913       eval ac_val=\$$ac_var
2914       case $ac_val in
2915       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2916       esac
2917       $as_echo "$ac_var='\''$ac_val'\''"
2918     done | sort
2919     echo
2920
2921     if test -n "$ac_subst_files"; then
2922       $as_echo "## ------------------- ##
2923 ## File substitutions. ##
2924 ## ------------------- ##"
2925       echo
2926       for ac_var in $ac_subst_files
2927       do
2928         eval ac_val=\$$ac_var
2929         case $ac_val in
2930         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2931         esac
2932         $as_echo "$ac_var='\''$ac_val'\''"
2933       done | sort
2934       echo
2935     fi
2936
2937     if test -s confdefs.h; then
2938       $as_echo "## ----------- ##
2939 ## confdefs.h. ##
2940 ## ----------- ##"
2941       echo
2942       cat confdefs.h
2943       echo
2944     fi
2945     test "$ac_signal" != 0 &&
2946       $as_echo "$as_me: caught signal $ac_signal"
2947     $as_echo "$as_me: exit $exit_status"
2948   } >&5
2949   rm -f core *.core core.conftest.* &&
2950     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2951     exit $exit_status
2952 ' 0
2953 for ac_signal in 1 2 13 15; do
2954   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2955 done
2956 ac_signal=0
2957
2958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2959 rm -f -r conftest* confdefs.h
2960
2961 $as_echo "/* confdefs.h */" > confdefs.h
2962
2963 # Predefined preprocessor variables.
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_NAME "$PACKAGE_NAME"
2967 _ACEOF
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2975 _ACEOF
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_STRING "$PACKAGE_STRING"
2979 _ACEOF
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2983 _ACEOF
2984
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_URL "$PACKAGE_URL"
2987 _ACEOF
2988
2989
2990 # Let the site file select an alternate cache file if it wants to.
2991 # Prefer an explicitly selected file to automatically selected ones.
2992 ac_site_file1=NONE
2993 ac_site_file2=NONE
2994 if test -n "$CONFIG_SITE"; then
2995   # We do not want a PATH search for config.site.
2996   case $CONFIG_SITE in #((
2997     -*)  ac_site_file1=./$CONFIG_SITE;;
2998     */*) ac_site_file1=$CONFIG_SITE;;
2999     *)   ac_site_file1=./$CONFIG_SITE;;
3000   esac
3001 elif test "x$prefix" != xNONE; then
3002   ac_site_file1=$prefix/share/config.site
3003   ac_site_file2=$prefix/etc/config.site
3004 else
3005   ac_site_file1=$ac_default_prefix/share/config.site
3006   ac_site_file2=$ac_default_prefix/etc/config.site
3007 fi
3008 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3009 do
3010   test "x$ac_site_file" = xNONE && continue
3011   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3012     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3014     sed 's/^/| /' "$ac_site_file" >&5
3015     . "$ac_site_file" \
3016       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018 as_fn_error $? "failed to load site script $ac_site_file
3019 See \`config.log' for more details" "$LINENO" 5; }
3020   fi
3021 done
3022
3023 if test -r "$cache_file"; then
3024   # Some versions of bash will fail to source /dev/null (special files
3025   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3026   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3027     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3028 $as_echo "$as_me: loading cache $cache_file" >&6;}
3029     case $cache_file in
3030       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3031       *)                      . "./$cache_file";;
3032     esac
3033   fi
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3036 $as_echo "$as_me: creating cache $cache_file" >&6;}
3037   >$cache_file
3038 fi
3039
3040 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3041 as_fn_append ac_header_list " sys/socket.h"
3042 as_fn_append ac_func_list " fcntl"
3043 as_fn_append ac_header_list " unistd.h"
3044 as_fn_append ac_func_list " symlink"
3045 as_fn_append ac_func_list " getdtablesize"
3046 as_fn_append ac_header_list " sys/param.h"
3047 as_fn_append ac_func_list " getprogname"
3048 as_fn_append ac_func_list " getexecname"
3049 as_fn_append ac_header_list " limits.h"
3050 as_fn_append ac_header_list " wchar.h"
3051 as_fn_append ac_header_list " stdint.h"
3052 gt_needs="$gt_needs "
3053 # Check that the precious variables saved in the cache have kept the same
3054 # value.
3055 ac_cache_corrupted=false
3056 for ac_var in $ac_precious_vars; do
3057   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3058   eval ac_new_set=\$ac_env_${ac_var}_set
3059   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3060   eval ac_new_val=\$ac_env_${ac_var}_value
3061   case $ac_old_set,$ac_new_set in
3062     set,)
3063       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3065       ac_cache_corrupted=: ;;
3066     ,set)
3067       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3068 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3069       ac_cache_corrupted=: ;;
3070     ,);;
3071     *)
3072       if test "x$ac_old_val" != "x$ac_new_val"; then
3073         # differences in whitespace do not lead to failure.
3074         ac_old_val_w=`echo x $ac_old_val`
3075         ac_new_val_w=`echo x $ac_new_val`
3076         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3077           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3078 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3079           ac_cache_corrupted=:
3080         else
3081           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3082 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3083           eval $ac_var=\$ac_old_val
3084         fi
3085         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3086 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3087         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3088 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3089       fi;;
3090   esac
3091   # Pass precious variables to config.status.
3092   if test "$ac_new_set" = set; then
3093     case $ac_new_val in
3094     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3095     *) ac_arg=$ac_var=$ac_new_val ;;
3096     esac
3097     case " $ac_configure_args " in
3098       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3099       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3100     esac
3101   fi
3102 done
3103 if $ac_cache_corrupted; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3107 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3108   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3109 fi
3110 ## -------------------- ##
3111 ## Main body of script. ##
3112 ## -------------------- ##
3113
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119
3120
3121
3122
3123
3124 # Autoconf setup
3125 ac_aux_dir=
3126 for ac_dir in build-aux "$srcdir"/build-aux; do
3127   if test -f "$ac_dir/install-sh"; then
3128     ac_aux_dir=$ac_dir
3129     ac_install_sh="$ac_aux_dir/install-sh -c"
3130     break
3131   elif test -f "$ac_dir/install.sh"; then
3132     ac_aux_dir=$ac_dir
3133     ac_install_sh="$ac_aux_dir/install.sh -c"
3134     break
3135   elif test -f "$ac_dir/shtool"; then
3136     ac_aux_dir=$ac_dir
3137     ac_install_sh="$ac_aux_dir/shtool install -c"
3138     break
3139   fi
3140 done
3141 if test -z "$ac_aux_dir"; then
3142   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3143 fi
3144
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3152
3153
3154
3155 ac_config_headers="$ac_config_headers src/config.h"
3156
3157
3158
3159
3160 # Automake setup
3161 # We have to enable "foreign" because ChangeLog is auto-generated
3162 # Automake 1.15 and gnulib don't get along: gnulib has some strange error
3163 # in the way it handles getloadavg.c which causes make distcheck to fail.
3164 # http://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00024.html
3165 am__api_version='1.16'
3166
3167 # Find a good install program.  We prefer a C program (faster),
3168 # so one script is as good as another.  But avoid the broken or
3169 # incompatible versions:
3170 # SysV /etc/install, /usr/sbin/install
3171 # SunOS /usr/etc/install
3172 # IRIX /sbin/install
3173 # AIX /bin/install
3174 # AmigaOS /C/install, which installs bootblocks on floppy discs
3175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3178 # OS/2's system install, which has a completely different semantic
3179 # ./install, which can be erroneously created by make from ./install.sh.
3180 # Reject install programs that cannot install multiple files.
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3182 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3183 if test -z "$INSTALL"; then
3184 if ${ac_cv_path_install+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192     # Account for people who put trailing slashes in PATH elements.
3193 case $as_dir/ in #((
3194   ./ | .// | /[cC]/* | \
3195   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3196   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3197   /usr/ucb/* ) ;;
3198   *)
3199     # OSF1 and SCO ODT 3.0 have their own names for install.
3200     # Don't use installbsd from OSF since it installs stuff as root
3201     # by default.
3202     for ac_prog in ginstall scoinst install; do
3203       for ac_exec_ext in '' $ac_executable_extensions; do
3204         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3205           if test $ac_prog = install &&
3206             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3207             # AIX install.  It has an incompatible calling convention.
3208             :
3209           elif test $ac_prog = install &&
3210             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3211             # program-specific install script used by HP pwplus--don't use.
3212             :
3213           else
3214             rm -rf conftest.one conftest.two conftest.dir
3215             echo one > conftest.one
3216             echo two > conftest.two
3217             mkdir conftest.dir
3218             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3219               test -s conftest.one && test -s conftest.two &&
3220               test -s conftest.dir/conftest.one &&
3221               test -s conftest.dir/conftest.two
3222             then
3223               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3224               break 3
3225             fi
3226           fi
3227         fi
3228       done
3229     done
3230     ;;
3231 esac
3232
3233   done
3234 IFS=$as_save_IFS
3235
3236 rm -rf conftest.one conftest.two conftest.dir
3237
3238 fi
3239   if test "${ac_cv_path_install+set}" = set; then
3240     INSTALL=$ac_cv_path_install
3241   else
3242     # As a last resort, use the slow shell script.  Don't cache a
3243     # value for INSTALL within a source directory, because that will
3244     # break other packages using the cache if that directory is
3245     # removed, or if the value is a relative name.
3246     INSTALL=$ac_install_sh
3247   fi
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3250 $as_echo "$INSTALL" >&6; }
3251
3252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3253 # It thinks the first close brace ends the variable substitution.
3254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3255
3256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3257
3258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3259
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3261 $as_echo_n "checking whether build environment is sane... " >&6; }
3262 # Reject unsafe characters in $srcdir or the absolute working directory
3263 # name.  Accept space and tab only in the latter.
3264 am_lf='
3265 '
3266 case `pwd` in
3267   *[\\\"\#\$\&\'\`$am_lf]*)
3268     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3269 esac
3270 case $srcdir in
3271   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3272     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3273 esac
3274
3275 # Do 'set' in a subshell so we don't clobber the current shell's
3276 # arguments.  Must try -L first in case configure is actually a
3277 # symlink; some systems play weird games with the mod time of symlinks
3278 # (eg FreeBSD returns the mod time of the symlink's containing
3279 # directory).
3280 if (
3281    am_has_slept=no
3282    for am_try in 1 2; do
3283      echo "timestamp, slept: $am_has_slept" > conftest.file
3284      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3285      if test "$*" = "X"; then
3286         # -L didn't work.
3287         set X `ls -t "$srcdir/configure" conftest.file`
3288      fi
3289      if test "$*" != "X $srcdir/configure conftest.file" \
3290         && test "$*" != "X conftest.file $srcdir/configure"; then
3291
3292         # If neither matched, then we have a broken ls.  This can happen
3293         # if, for instance, CONFIG_SHELL is bash and it inherits a
3294         # broken ls alias from the environment.  This has actually
3295         # happened.  Such a system could not be considered "sane".
3296         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3297   alias in your environment" "$LINENO" 5
3298      fi
3299      if test "$2" = conftest.file || test $am_try -eq 2; then
3300        break
3301      fi
3302      # Just in case.
3303      sleep 1
3304      am_has_slept=yes
3305    done
3306    test "$2" = conftest.file
3307    )
3308 then
3309    # Ok.
3310    :
3311 else
3312    as_fn_error $? "newly created file is older than distributed files!
3313 Check your system clock" "$LINENO" 5
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 # If we didn't sleep, we still need to ensure time stamps of config.status and
3318 # generated files are strictly newer.
3319 am_sleep_pid=
3320 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3321   ( sleep 1 ) &
3322   am_sleep_pid=$!
3323 fi
3324
3325 rm -f conftest.file
3326
3327 test "$program_prefix" != NONE &&
3328   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3329 # Use a double $ so make ignores it.
3330 test "$program_suffix" != NONE &&
3331   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3332 # Double any \ or $.
3333 # By default was `s,x,x', remove it if useless.
3334 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3335 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3336
3337 # Expand $ac_aux_dir to an absolute path.
3338 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3339
3340 if test x"${MISSING+set}" != xset; then
3341   case $am_aux_dir in
3342   *\ * | *\     *)
3343     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3344   *)
3345     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3346   esac
3347 fi
3348 # Use eval to expand $SHELL
3349 if eval "$MISSING --is-lightweight"; then
3350   am_missing_run="$MISSING "
3351 else
3352   am_missing_run=
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3354 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3355 fi
3356
3357 if test x"${install_sh+set}" != xset; then
3358   case $am_aux_dir in
3359   *\ * | *\     *)
3360     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3361   *)
3362     install_sh="\${SHELL} $am_aux_dir/install-sh"
3363   esac
3364 fi
3365
3366 # Installed binaries are usually stripped using 'strip' when the user
3367 # run "make install-strip".  However 'strip' might not be the right
3368 # tool to use in cross-compilation environments, therefore Automake
3369 # will honor the 'STRIP' environment variable to overrule this program.
3370 if test "$cross_compiling" != no; then
3371   if test -n "$ac_tool_prefix"; then
3372   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3373 set dummy ${ac_tool_prefix}strip; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_STRIP+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   if test -n "$STRIP"; then
3380   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385   IFS=$as_save_IFS
3386   test -z "$as_dir" && as_dir=.
3387     for ac_exec_ext in '' $ac_executable_extensions; do
3388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391     break 2
3392   fi
3393 done
3394   done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 STRIP=$ac_cv_prog_STRIP
3400 if test -n "$STRIP"; then
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3402 $as_echo "$STRIP" >&6; }
3403 else
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 fi
3410 if test -z "$ac_cv_prog_STRIP"; then
3411   ac_ct_STRIP=$STRIP
3412   # Extract the first word of "strip", so it can be a program name with args.
3413 set dummy strip; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3417   $as_echo_n "(cached) " >&6
3418 else
3419   if test -n "$ac_ct_STRIP"; then
3420   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425   IFS=$as_save_IFS
3426   test -z "$as_dir" && as_dir=.
3427     for ac_exec_ext in '' $ac_executable_extensions; do
3428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429     ac_cv_prog_ac_ct_STRIP="strip"
3430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431     break 2
3432   fi
3433 done
3434   done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3440 if test -n "$ac_ct_STRIP"; then
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3442 $as_echo "$ac_ct_STRIP" >&6; }
3443 else
3444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448   if test "x$ac_ct_STRIP" = x; then
3449     STRIP=":"
3450   else
3451     case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457     STRIP=$ac_ct_STRIP
3458   fi
3459 else
3460   STRIP="$ac_cv_prog_STRIP"
3461 fi
3462
3463 fi
3464 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3465
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3467 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3468 if test -z "$MKDIR_P"; then
3469   if ${ac_cv_path_mkdir+:} false; then :
3470   $as_echo_n "(cached) " >&6
3471 else
3472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477     for ac_prog in mkdir gmkdir; do
3478          for ac_exec_ext in '' $ac_executable_extensions; do
3479            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3480            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3481              'mkdir (GNU coreutils) '* | \
3482              'mkdir (coreutils) '* | \
3483              'mkdir (fileutils) '4.1*)
3484                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3485                break 3;;
3486            esac
3487          done
3488        done
3489   done
3490 IFS=$as_save_IFS
3491
3492 fi
3493
3494   test -d ./--version && rmdir ./--version
3495   if test "${ac_cv_path_mkdir+set}" = set; then
3496     MKDIR_P="$ac_cv_path_mkdir -p"
3497   else
3498     # As a last resort, use the slow shell script.  Don't cache a
3499     # value for MKDIR_P within a source directory, because that will
3500     # break other packages using the cache if that directory is
3501     # removed, or if the value is a relative name.
3502     MKDIR_P="$ac_install_sh -d"
3503   fi
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3506 $as_echo "$MKDIR_P" >&6; }
3507
3508 for ac_prog in gawk mawk nawk awk
3509 do
3510   # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_AWK+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   if test -n "$AWK"; then
3518   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525     for ac_exec_ext in '' $ac_executable_extensions; do
3526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_prog_AWK="$ac_prog"
3528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532   done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 AWK=$ac_cv_prog_AWK
3538 if test -n "$AWK"; then
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3540 $as_echo "$AWK" >&6; }
3541 else
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546
3547   test -n "$AWK" && break
3548 done
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3552 set x ${MAKE-make}
3553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3554 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3555   $as_echo_n "(cached) " >&6
3556 else
3557   cat >conftest.make <<\_ACEOF
3558 SHELL = /bin/sh
3559 all:
3560         @echo '@@@%%%=$(MAKE)=@@@%%%'
3561 _ACEOF
3562 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3564   *@@@%%%=?*=@@@%%%*)
3565     eval ac_cv_prog_make_${ac_make}_set=yes;;
3566   *)
3567     eval ac_cv_prog_make_${ac_make}_set=no;;
3568 esac
3569 rm -f conftest.make
3570 fi
3571 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574   SET_MAKE=
3575 else
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578   SET_MAKE="MAKE=${MAKE-make}"
3579 fi
3580
3581 rm -rf .tst 2>/dev/null
3582 mkdir .tst 2>/dev/null
3583 if test -d .tst; then
3584   am__leading_dot=.
3585 else
3586   am__leading_dot=_
3587 fi
3588 rmdir .tst 2>/dev/null
3589
3590 # Check whether --enable-silent-rules was given.
3591 if test "${enable_silent_rules+set}" = set; then :
3592   enableval=$enable_silent_rules;
3593 fi
3594
3595 case $enable_silent_rules in # (((
3596   yes) AM_DEFAULT_VERBOSITY=0;;
3597    no) AM_DEFAULT_VERBOSITY=1;;
3598     *) AM_DEFAULT_VERBOSITY=1;;
3599 esac
3600 am_make=${MAKE-make}
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3602 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3603 if ${am_cv_make_support_nested_variables+:} false; then :
3604   $as_echo_n "(cached) " >&6
3605 else
3606   if $as_echo 'TRUE=$(BAR$(V))
3607 BAR0=false
3608 BAR1=true
3609 V=1
3610 am__doit:
3611         @$(TRUE)
3612 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3613   am_cv_make_support_nested_variables=yes
3614 else
3615   am_cv_make_support_nested_variables=no
3616 fi
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3619 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3620 if test $am_cv_make_support_nested_variables = yes; then
3621     AM_V='$(V)'
3622   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3623 else
3624   AM_V=$AM_DEFAULT_VERBOSITY
3625   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3626 fi
3627 AM_BACKSLASH='\'
3628
3629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3630   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3631   # is not polluted with repeated "-I."
3632   am__isrc=' -I$(srcdir)'
3633   # test to see if srcdir already configured
3634   if test -f $srcdir/config.status; then
3635     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3636   fi
3637 fi
3638
3639 # test whether we have cygpath
3640 if test -z "$CYGPATH_W"; then
3641   if (cygpath --version) >/dev/null 2>/dev/null; then
3642     CYGPATH_W='cygpath -w'
3643   else
3644     CYGPATH_W=echo
3645   fi
3646 fi
3647
3648
3649 # Define the identity of the package.
3650  PACKAGE='make'
3651  VERSION='4.3'
3652
3653
3654 cat >>confdefs.h <<_ACEOF
3655 #define PACKAGE "$PACKAGE"
3656 _ACEOF
3657
3658
3659 cat >>confdefs.h <<_ACEOF
3660 #define VERSION "$VERSION"
3661 _ACEOF
3662
3663 # Some tools Automake needs.
3664
3665 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3666
3667
3668 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3669
3670
3671 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3672
3673
3674 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3675
3676
3677 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3678
3679 # For better backward compatibility.  To be removed once Automake 1.9.x
3680 # dies out for good.  For more background, see:
3681 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3682 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3683 mkdir_p='$(MKDIR_P)'
3684
3685 # We need awk for the "check" target (and possibly the TAP driver).  The
3686 # system "awk" is bad on some platforms.
3687 # Always define AMTAR for backward compatibility.  Yes, it's still used
3688 # in the wild :-(  We should find a proper way to deprecate it ...
3689 AMTAR='$${TAR-tar}'
3690
3691
3692 # We'll loop over all known methods to create a tar archive until one works.
3693 _am_tools='gnutar  pax cpio none'
3694
3695 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3696
3697
3698
3699
3700
3701
3702 # POSIX will say in a future version that running "rm -f" with no argument
3703 # is OK; and we want to be able to make that assumption in our Makefile
3704 # recipes.  So use an aggressive probe to check that the usage we want is
3705 # actually supported "in the wild" to an acceptable degree.
3706 # See automake bug#10828.
3707 # To make any issue more visible, cause the running configure to be aborted
3708 # by default if the 'rm' program in use doesn't match our expectations; the
3709 # user can still override this though.
3710 if rm -f && rm -fr && rm -rf; then : OK; else
3711   cat >&2 <<'END'
3712 Oops!
3713
3714 Your 'rm' program seems unable to run without file operands specified
3715 on the command line, even when the '-f' option is present.  This is contrary
3716 to the behaviour of most rm programs out there, and not conforming with
3717 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3718
3719 Please tell bug-automake@gnu.org about your system, including the value
3720 of your $PATH and any error possibly output before this message.  This
3721 can help us improve future automake versions.
3722
3723 END
3724   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3725     echo 'Configuration will proceed anyway, since you have set the' >&2
3726     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3727     echo >&2
3728   else
3729     cat >&2 <<'END'
3730 Aborting the configuration process, to ensure you take notice of the issue.
3731
3732 You can download and install GNU coreutils to get an 'rm' implementation
3733 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3734
3735 If you want to complete the configuration process using your problematic
3736 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3737 to "yes", and re-run configure.
3738
3739 END
3740     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3741   fi
3742 fi
3743
3744
3745 # Checks for programs.
3746 DEPDIR="${am__leading_dot}deps"
3747
3748 ac_config_commands="$ac_config_commands depfiles"
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3751 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3752 cat > confinc.mk << 'END'
3753 am__doit:
3754         @echo this is the am__doit target >confinc.out
3755 .PHONY: am__doit
3756 END
3757 am__include="#"
3758 am__quote=
3759 # BSD make does it like this.
3760 echo '.include "confinc.mk" # ignored' > confmf.BSD
3761 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3762 echo 'include confinc.mk # ignored' > confmf.GNU
3763 _am_result=no
3764 for s in GNU BSD; do
3765   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3766    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3767    ac_status=$?
3768    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769    (exit $ac_status); }
3770   case $?:`cat confinc.out 2>/dev/null` in #(
3771   '0:this is the am__doit target') :
3772     case $s in #(
3773   BSD) :
3774     am__include='.include' am__quote='"' ;; #(
3775   *) :
3776     am__include='include' am__quote='' ;;
3777 esac ;; #(
3778   *) :
3779      ;;
3780 esac
3781   if test "$am__include" != "#"; then
3782     _am_result="yes ($s style)"
3783     break
3784   fi
3785 done
3786 rm -f confinc.* confmf.*
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3788 $as_echo "${_am_result}" >&6; }
3789
3790 # Check whether --enable-dependency-tracking was given.
3791 if test "${enable_dependency_tracking+set}" = set; then :
3792   enableval=$enable_dependency_tracking;
3793 fi
3794
3795 if test "x$enable_dependency_tracking" != xno; then
3796   am_depcomp="$ac_aux_dir/depcomp"
3797   AMDEPBACKSLASH='\'
3798   am__nodep='_no'
3799 fi
3800  if test "x$enable_dependency_tracking" != xno; then
3801   AMDEP_TRUE=
3802   AMDEP_FALSE='#'
3803 else
3804   AMDEP_TRUE='#'
3805   AMDEP_FALSE=
3806 fi
3807
3808
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 if test -n "$ac_tool_prefix"; then
3815   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if ${ac_cv_prog_CC+:} false; then :
3820   $as_echo_n "(cached) " >&6
3821 else
3822   if test -n "$CC"; then
3823   ac_cv_prog_CC="$CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828   IFS=$as_save_IFS
3829   test -z "$as_dir" && as_dir=.
3830     for ac_exec_ext in '' $ac_executable_extensions; do
3831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834     break 2
3835   fi
3836 done
3837   done
3838 IFS=$as_save_IFS
3839
3840 fi
3841 fi
3842 CC=$ac_cv_prog_CC
3843 if test -n "$CC"; then
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845 $as_echo "$CC" >&6; }
3846 else
3847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3849 fi
3850
3851
3852 fi
3853 if test -z "$ac_cv_prog_CC"; then
3854   ac_ct_CC=$CC
3855   # Extract the first word of "gcc", so it can be a program name with args.
3856 set dummy gcc; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   if test -n "$ac_ct_CC"; then
3863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868   IFS=$as_save_IFS
3869   test -z "$as_dir" && as_dir=.
3870     for ac_exec_ext in '' $ac_executable_extensions; do
3871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872     ac_cv_prog_ac_ct_CC="gcc"
3873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877   done
3878 IFS=$as_save_IFS
3879
3880 fi
3881 fi
3882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3883 if test -n "$ac_ct_CC"; then
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3885 $as_echo "$ac_ct_CC" >&6; }
3886 else
3887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3889 fi
3890
3891   if test "x$ac_ct_CC" = x; then
3892     CC=""
3893   else
3894     case $cross_compiling:$ac_tool_warned in
3895 yes:)
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3898 ac_tool_warned=yes ;;
3899 esac
3900     CC=$ac_ct_CC
3901   fi
3902 else
3903   CC="$ac_cv_prog_CC"
3904 fi
3905
3906 if test -z "$CC"; then
3907           if test -n "$ac_tool_prefix"; then
3908     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3909 set dummy ${ac_tool_prefix}cc; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_CC+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   if test -n "$CC"; then
3916   ac_cv_prog_CC="$CC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923     for ac_exec_ext in '' $ac_executable_extensions; do
3924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_CC="${ac_tool_prefix}cc"
3926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930   done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 CC=$ac_cv_prog_CC
3936 if test -n "$CC"; then
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938 $as_echo "$CC" >&6; }
3939 else
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944
3945   fi
3946 fi
3947 if test -z "$CC"; then
3948   # Extract the first word of "cc", so it can be a program name with args.
3949 set dummy cc; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if ${ac_cv_prog_CC+:} false; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   if test -n "$CC"; then
3956   ac_cv_prog_CC="$CC" # Let the user override the test.
3957 else
3958   ac_prog_rejected=no
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964     for ac_exec_ext in '' $ac_executable_extensions; do
3965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3967        ac_prog_rejected=yes
3968        continue
3969      fi
3970     ac_cv_prog_CC="cc"
3971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975   done
3976 IFS=$as_save_IFS
3977
3978 if test $ac_prog_rejected = yes; then
3979   # We found a bogon in the path, so make sure we never use it.
3980   set dummy $ac_cv_prog_CC
3981   shift
3982   if test $# != 0; then
3983     # We chose a different compiler from the bogus one.
3984     # However, it has the same basename, so the bogon will be chosen
3985     # first if we set CC to just the basename; use the full file name.
3986     shift
3987     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3988   fi
3989 fi
3990 fi
3991 fi
3992 CC=$ac_cv_prog_CC
3993 if test -n "$CC"; then
3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995 $as_echo "$CC" >&6; }
3996 else
3997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
3999 fi
4000
4001
4002 fi
4003 if test -z "$CC"; then
4004   if test -n "$ac_tool_prefix"; then
4005   for ac_prog in cl.exe
4006   do
4007     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   if test -n "$CC"; then
4015   ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022     for ac_exec_ext in '' $ac_executable_extensions; do
4023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029   done
4030 IFS=$as_save_IFS
4031
4032 fi
4033 fi
4034 CC=$ac_cv_prog_CC
4035 if test -n "$CC"; then
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4038 else
4039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 fi
4042
4043
4044     test -n "$CC" && break
4045   done
4046 fi
4047 if test -z "$CC"; then
4048   ac_ct_CC=$CC
4049   for ac_prog in cl.exe
4050 do
4051   # Extract the first word of "$ac_prog", so it can be a program name with args.
4052 set dummy $ac_prog; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4056   $as_echo_n "(cached) " >&6
4057 else
4058   if test -n "$ac_ct_CC"; then
4059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064   IFS=$as_save_IFS
4065   test -z "$as_dir" && as_dir=.
4066     for ac_exec_ext in '' $ac_executable_extensions; do
4067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068     ac_cv_prog_ac_ct_CC="$ac_prog"
4069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070     break 2
4071   fi
4072 done
4073   done
4074 IFS=$as_save_IFS
4075
4076 fi
4077 fi
4078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079 if test -n "$ac_ct_CC"; then
4080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4081 $as_echo "$ac_ct_CC" >&6; }
4082 else
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4085 fi
4086
4087
4088   test -n "$ac_ct_CC" && break
4089 done
4090
4091   if test "x$ac_ct_CC" = x; then
4092     CC=""
4093   else
4094     case $cross_compiling:$ac_tool_warned in
4095 yes:)
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4098 ac_tool_warned=yes ;;
4099 esac
4100     CC=$ac_ct_CC
4101   fi
4102 fi
4103
4104 fi
4105
4106
4107 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error $? "no acceptable C compiler found in \$PATH
4110 See \`config.log' for more details" "$LINENO" 5; }
4111
4112 # Provide some information about the compiler.
4113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4114 set X $ac_compile
4115 ac_compiler=$2
4116 for ac_option in --version -v -V -qversion; do
4117   { { ac_try="$ac_compiler $ac_option >&5"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4125   ac_status=$?
4126   if test -s conftest.err; then
4127     sed '10a\
4128 ... rest of stderr output deleted ...
4129          10q' conftest.err >conftest.er1
4130     cat conftest.er1 >&5
4131   fi
4132   rm -f conftest.er1 conftest.err
4133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134   test $ac_status = 0; }
4135 done
4136
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h.  */
4139
4140 int
4141 main ()
4142 {
4143
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 ac_clean_files_save=$ac_clean_files
4149 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4150 # Try to create an executable without -o first, disregard a.out.
4151 # It will help us diagnose broken compilers, and finding out an intuition
4152 # of exeext.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4154 $as_echo_n "checking whether the C compiler works... " >&6; }
4155 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4156
4157 # The possible output files:
4158 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4159
4160 ac_rmfiles=
4161 for ac_file in $ac_files
4162 do
4163   case $ac_file in
4164     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4165     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4166   esac
4167 done
4168 rm -f $ac_rmfiles
4169
4170 if { { ac_try="$ac_link_default"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177   (eval "$ac_link_default") 2>&5
4178   ac_status=$?
4179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180   test $ac_status = 0; }; then :
4181   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4183 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4184 # so that the user can short-circuit this test for compilers unknown to
4185 # Autoconf.
4186 for ac_file in $ac_files ''
4187 do
4188   test -f "$ac_file" || continue
4189   case $ac_file in
4190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4191         ;;
4192     [ab].out )
4193         # We found the default executable, but exeext='' is most
4194         # certainly right.
4195         break;;
4196     *.* )
4197         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4198         then :; else
4199            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4200         fi
4201         # We set ac_cv_exeext here because the later test for it is not
4202         # safe: cross compilers may not add the suffix if given an `-o'
4203         # argument, so we may need to know it at that point already.
4204         # Even if this section looks crufty: it has the advantage of
4205         # actually working.
4206         break;;
4207     * )
4208         break;;
4209   esac
4210 done
4211 test "$ac_cv_exeext" = no && ac_cv_exeext=
4212
4213 else
4214   ac_file=''
4215 fi
4216 if test -z "$ac_file"; then :
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error 77 "C compiler cannot create executables
4225 See \`config.log' for more details" "$LINENO" 5; }
4226 else
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4231 $as_echo_n "checking for C compiler default output file name... " >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4233 $as_echo "$ac_file" >&6; }
4234 ac_exeext=$ac_cv_exeext
4235
4236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4237 ac_clean_files=$ac_clean_files_save
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4239 $as_echo_n "checking for suffix of executables... " >&6; }
4240 if { { ac_try="$ac_link"
4241 case "(($ac_try" in
4242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243   *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247   (eval "$ac_link") 2>&5
4248   ac_status=$?
4249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250   test $ac_status = 0; }; then :
4251   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4252 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4253 # work properly (i.e., refer to `conftest.exe'), while it won't with
4254 # `rm'.
4255 for ac_file in conftest.exe conftest conftest.*; do
4256   test -f "$ac_file" || continue
4257   case $ac_file in
4258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4259     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4260           break;;
4261     * ) break;;
4262   esac
4263 done
4264 else
4265   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4268 See \`config.log' for more details" "$LINENO" 5; }
4269 fi
4270 rm -f conftest conftest$ac_cv_exeext
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4272 $as_echo "$ac_cv_exeext" >&6; }
4273
4274 rm -f conftest.$ac_ext
4275 EXEEXT=$ac_cv_exeext
4276 ac_exeext=$EXEEXT
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279 #include <stdio.h>
4280 int
4281 main ()
4282 {
4283 FILE *f = fopen ("conftest.out", "w");
4284  return ferror (f) || fclose (f) != 0;
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 ac_clean_files="$ac_clean_files conftest.out"
4291 # Check that the compiler produces executables we can run.  If not, either
4292 # the compiler is broken, or we cross compile.
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4294 $as_echo_n "checking whether we are cross compiling... " >&6; }
4295 if test "$cross_compiling" != yes; then
4296   { { ac_try="$ac_link"
4297 case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303   (eval "$ac_link") 2>&5
4304   ac_status=$?
4305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306   test $ac_status = 0; }
4307   if { ac_try='./conftest$ac_cv_exeext'
4308   { { case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314   (eval "$ac_try") 2>&5
4315   ac_status=$?
4316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317   test $ac_status = 0; }; }; then
4318     cross_compiling=no
4319   else
4320     if test "$cross_compiling" = maybe; then
4321         cross_compiling=yes
4322     else
4323         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $? "cannot run C compiled programs.
4326 If you meant to cross compile, use \`--host'.
4327 See \`config.log' for more details" "$LINENO" 5; }
4328     fi
4329   fi
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4332 $as_echo "$cross_compiling" >&6; }
4333
4334 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4335 ac_clean_files=$ac_clean_files_save
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4337 $as_echo_n "checking for suffix of object files... " >&6; }
4338 if ${ac_cv_objext+:} false; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h.  */
4343
4344 int
4345 main ()
4346 {
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.o conftest.obj
4353 if { { ac_try="$ac_compile"
4354 case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360   (eval "$ac_compile") 2>&5
4361   ac_status=$?
4362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363   test $ac_status = 0; }; then :
4364   for ac_file in conftest.o conftest.obj conftest.*; do
4365   test -f "$ac_file" || continue;
4366   case $ac_file in
4367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4368     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4369        break;;
4370   esac
4371 done
4372 else
4373   $as_echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4378 as_fn_error $? "cannot compute suffix of object files: cannot compile
4379 See \`config.log' for more details" "$LINENO" 5; }
4380 fi
4381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4384 $as_echo "$ac_cv_objext" >&6; }
4385 OBJEXT=$ac_cv_objext
4386 ac_objext=$OBJEXT
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4388 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4389 if ${ac_cv_c_compiler_gnu+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398 #ifndef __GNUC__
4399        choke me
4400 #endif
4401
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407   ac_compiler_gnu=yes
4408 else
4409   ac_compiler_gnu=no
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4413
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4417 if test $ac_compiler_gnu = yes; then
4418   GCC=yes
4419 else
4420   GCC=
4421 fi
4422 ac_test_CFLAGS=${CFLAGS+set}
4423 ac_save_CFLAGS=$CFLAGS
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4426 if ${ac_cv_prog_cc_g+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   ac_save_c_werror_flag=$ac_c_werror_flag
4430    ac_c_werror_flag=yes
4431    ac_cv_prog_cc_g=no
4432    CFLAGS="-g"
4433    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435
4436 int
4437 main ()
4438 {
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"; then :
4445   ac_cv_prog_cc_g=yes
4446 else
4447   CFLAGS=""
4448       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460
4461 else
4462   ac_c_werror_flag=$ac_save_c_werror_flag
4463          CFLAGS="-g"
4464          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h.  */
4466
4467 int
4468 main ()
4469 {
4470
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 if ac_fn_c_try_compile "$LINENO"; then :
4476   ac_cv_prog_cc_g=yes
4477 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 fi
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483    ac_c_werror_flag=$ac_save_c_werror_flag
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4486 $as_echo "$ac_cv_prog_cc_g" >&6; }
4487 if test "$ac_test_CFLAGS" = set; then
4488   CFLAGS=$ac_save_CFLAGS
4489 elif test $ac_cv_prog_cc_g = yes; then
4490   if test "$GCC" = yes; then
4491     CFLAGS="-g -O2"
4492   else
4493     CFLAGS="-g"
4494   fi
4495 else
4496   if test "$GCC" = yes; then
4497     CFLAGS="-O2"
4498   else
4499     CFLAGS=
4500   fi
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4503 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4504 if ${ac_cv_prog_cc_c89+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   ac_cv_prog_cc_c89=no
4508 ac_save_CC=$CC
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511 #include <stdarg.h>
4512 #include <stdio.h>
4513 struct stat;
4514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4515 struct buf { int x; };
4516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4517 static char *e (p, i)
4518      char **p;
4519      int i;
4520 {
4521   return p[i];
4522 }
4523 static char *f (char * (*g) (char **, int), char **p, ...)
4524 {
4525   char *s;
4526   va_list v;
4527   va_start (v,p);
4528   s = g (p, va_arg (v,int));
4529   va_end (v);
4530   return s;
4531 }
4532
4533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4534    function prototypes and stuff, but not '\xHH' hex character constants.
4535    These don't provoke an error unfortunately, instead are silently treated
4536    as 'x'.  The following induces an error, until -std is added to get
4537    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4538    array size at least.  It's necessary to write '\x00'==0 to get something
4539    that's true only with -std.  */
4540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4541
4542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4543    inside strings and character constants.  */
4544 #define FOO(x) 'x'
4545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4546
4547 int test (int i, double x);
4548 struct s1 {int (*f) (int a);};
4549 struct s2 {int (*f) (double a);};
4550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4551 int argc;
4552 char **argv;
4553 int
4554 main ()
4555 {
4556 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4562         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4563 do
4564   CC="$ac_save_CC $ac_arg"
4565   if ac_fn_c_try_compile "$LINENO"; then :
4566   ac_cv_prog_cc_c89=$ac_arg
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext
4569   test "x$ac_cv_prog_cc_c89" != "xno" && break
4570 done
4571 rm -f conftest.$ac_ext
4572 CC=$ac_save_CC
4573
4574 fi
4575 # AC_CACHE_VAL
4576 case "x$ac_cv_prog_cc_c89" in
4577   x)
4578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4579 $as_echo "none needed" >&6; } ;;
4580   xno)
4581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4582 $as_echo "unsupported" >&6; } ;;
4583   *)
4584     CC="$CC $ac_cv_prog_cc_c89"
4585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4587 esac
4588 if test "x$ac_cv_prog_cc_c89" != xno; then :
4589
4590 fi
4591
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4604 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4605 if ${am_cv_prog_cc_c_o+:} false; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h.  */
4610
4611 int
4612 main ()
4613 {
4614
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619   # Make sure it works both with $CC and with simple cc.
4620   # Following AC_PROG_CC_C_O, we do the test twice because some
4621   # compilers refuse to overwrite an existing .o file with -o,
4622   # though they will create one.
4623   am_cv_prog_cc_c_o=yes
4624   for am_i in 1 2; do
4625     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4626    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4627    ac_status=$?
4628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629    (exit $ac_status); } \
4630          && test -f conftest2.$ac_objext; then
4631       : OK
4632     else
4633       am_cv_prog_cc_c_o=no
4634       break
4635     fi
4636   done
4637   rm -f core conftest*
4638   unset am_i
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4641 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4642 if test "$am_cv_prog_cc_c_o" != yes; then
4643    # Losing compiler, so override with the script.
4644    # FIXME: It is wrong to rewrite CC.
4645    # But if we don't then we get into trouble of one sort or another.
4646    # A longer-term fix would be to have automake use am__CC in this case,
4647    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4648    CC="$am_aux_dir/compile $CC"
4649 fi
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
4656
4657 depcc="$CC"   am_compiler_list=
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4660 $as_echo_n "checking dependency style of $depcc... " >&6; }
4661 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4665   # We make a subdir and do the tests there.  Otherwise we can end up
4666   # making bogus files that we don't know about and never remove.  For
4667   # instance it was reported that on HP-UX the gcc test will end up
4668   # making a dummy file named 'D' -- because '-MD' means "put the output
4669   # in D".
4670   rm -rf conftest.dir
4671   mkdir conftest.dir
4672   # Copy depcomp to subdir because otherwise we won't find it if we're
4673   # using a relative directory.
4674   cp "$am_depcomp" conftest.dir
4675   cd conftest.dir
4676   # We will build objects and dependencies in a subdirectory because
4677   # it helps to detect inapplicable dependency modes.  For instance
4678   # both Tru64's cc and ICC support -MD to output dependencies as a
4679   # side effect of compilation, but ICC will put the dependencies in
4680   # the current directory while Tru64 will put them in the object
4681   # directory.
4682   mkdir sub
4683
4684   am_cv_CC_dependencies_compiler_type=none
4685   if test "$am_compiler_list" = ""; then
4686      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4687   fi
4688   am__universal=false
4689   case " $depcc " in #(
4690      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4691      esac
4692
4693   for depmode in $am_compiler_list; do
4694     # Setup a source with many dependencies, because some compilers
4695     # like to wrap large dependency lists on column 80 (with \), and
4696     # we should not choose a depcomp mode which is confused by this.
4697     #
4698     # We need to recreate these files for each test, as the compiler may
4699     # overwrite some of them when testing with obscure command lines.
4700     # This happens at least with the AIX C compiler.
4701     : > sub/conftest.c
4702     for i in 1 2 3 4 5 6; do
4703       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4704       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4705       # Solaris 10 /bin/sh.
4706       echo '/* dummy */' > sub/conftst$i.h
4707     done
4708     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4709
4710     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4711     # mode.  It turns out that the SunPro C++ compiler does not properly
4712     # handle '-M -o', and we need to detect this.  Also, some Intel
4713     # versions had trouble with output in subdirs.
4714     am__obj=sub/conftest.${OBJEXT-o}
4715     am__minus_obj="-o $am__obj"
4716     case $depmode in
4717     gcc)
4718       # This depmode causes a compiler race in universal mode.
4719       test "$am__universal" = false || continue
4720       ;;
4721     nosideeffect)
4722       # After this tag, mechanisms are not by side-effect, so they'll
4723       # only be used when explicitly requested.
4724       if test "x$enable_dependency_tracking" = xyes; then
4725         continue
4726       else
4727         break
4728       fi
4729       ;;
4730     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4731       # This compiler won't grok '-c -o', but also, the minuso test has
4732       # not run yet.  These depmodes are late enough in the game, and
4733       # so weak that their functioning should not be impacted.
4734       am__obj=conftest.${OBJEXT-o}
4735       am__minus_obj=
4736       ;;
4737     none) break ;;
4738     esac
4739     if depmode=$depmode \
4740        source=sub/conftest.c object=$am__obj \
4741        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4742        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4743          >/dev/null 2>conftest.err &&
4744        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4745        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4746        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4747        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4748       # icc doesn't choke on unknown options, it will just issue warnings
4749       # or remarks (even with -Werror).  So we grep stderr for any message
4750       # that says an option was ignored or not supported.
4751       # When given -MP, icc 7.0 and 7.1 complain thusly:
4752       #   icc: Command line warning: ignoring option '-M'; no argument required
4753       # The diagnosis changed in icc 8.0:
4754       #   icc: Command line remark: option '-MP' not supported
4755       if (grep 'ignoring option' conftest.err ||
4756           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4757         am_cv_CC_dependencies_compiler_type=$depmode
4758         break
4759       fi
4760     fi
4761   done
4762
4763   cd ..
4764   rm -rf conftest.dir
4765 else
4766   am_cv_CC_dependencies_compiler_type=none
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4771 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4772 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4773
4774  if
4775   test "x$enable_dependency_tracking" != xno \
4776   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4777   am__fastdepCC_TRUE=
4778   am__fastdepCC_FALSE='#'
4779 else
4780   am__fastdepCC_TRUE='#'
4781   am__fastdepCC_FALSE=
4782 fi
4783
4784
4785
4786 ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4793 # On Suns, sometimes $CPP names a directory.
4794 if test -n "$CPP" && test -d "$CPP"; then
4795   CPP=
4796 fi
4797 if test -z "$CPP"; then
4798   if ${ac_cv_prog_CPP+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801       # Double quotes because CPP needs to be expanded
4802     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4803     do
4804       ac_preproc_ok=false
4805 for ac_c_preproc_warn_flag in '' yes
4806 do
4807   # Use a header file that comes with gcc, so configuring glibc
4808   # with a fresh cross-compiler works.
4809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810   # <limits.h> exists even on freestanding compilers.
4811   # On the NeXT, cc -E runs the code through the compiler's parser,
4812   # not just through cpp. "Syntax error" is here to catch this case.
4813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815 #ifdef __STDC__
4816 # include <limits.h>
4817 #else
4818 # include <assert.h>
4819 #endif
4820                      Syntax error
4821 _ACEOF
4822 if ac_fn_c_try_cpp "$LINENO"; then :
4823
4824 else
4825   # Broken: fails on valid input.
4826 continue
4827 fi
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4829
4830   # OK, works on sane cases.  Now check whether nonexistent headers
4831   # can be detected and how.
4832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h.  */
4834 #include <ac_nonexistent.h>
4835 _ACEOF
4836 if ac_fn_c_try_cpp "$LINENO"; then :
4837   # Broken: success on invalid input.
4838 continue
4839 else
4840   # Passes both tests.
4841 ac_preproc_ok=:
4842 break
4843 fi
4844 rm -f conftest.err conftest.i conftest.$ac_ext
4845
4846 done
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.i conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then :
4850   break
4851 fi
4852
4853     done
4854     ac_cv_prog_CPP=$CPP
4855
4856 fi
4857   CPP=$ac_cv_prog_CPP
4858 else
4859   ac_cv_prog_CPP=$CPP
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4862 $as_echo "$CPP" >&6; }
4863 ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866   # Use a header file that comes with gcc, so configuring glibc
4867   # with a fresh cross-compiler works.
4868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869   # <limits.h> exists even on freestanding compilers.
4870   # On the NeXT, cc -E runs the code through the compiler's parser,
4871   # not just through cpp. "Syntax error" is here to catch this case.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.i conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether nonexistent headers
4890   # can be detected and how.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896   # Broken: success on invalid input.
4897 continue
4898 else
4899   # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.i conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.i conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909
4910 else
4911   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details" "$LINENO" 5; }
4915 fi
4916
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4926 if ${ac_cv_path_GREP+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -z "$GREP"; then
4930   ac_path_GREP_found=false
4931   # Loop through the user's path and test for each of PROGNAME-LIST
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_prog in grep ggrep; do
4938     for ac_exec_ext in '' $ac_executable_extensions; do
4939       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4940       as_fn_executable_p "$ac_path_GREP" || continue
4941 # Check for GNU ac_path_GREP and select it if it is found.
4942   # Check for GNU $ac_path_GREP
4943 case `"$ac_path_GREP" --version 2>&1` in
4944 *GNU*)
4945   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4946 *)
4947   ac_count=0
4948   $as_echo_n 0123456789 >"conftest.in"
4949   while :
4950   do
4951     cat "conftest.in" "conftest.in" >"conftest.tmp"
4952     mv "conftest.tmp" "conftest.in"
4953     cp "conftest.in" "conftest.nl"
4954     $as_echo 'GREP' >> "conftest.nl"
4955     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957     as_fn_arith $ac_count + 1 && ac_count=$as_val
4958     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4959       # Best one so far, save it but keep looking for a better one
4960       ac_cv_path_GREP="$ac_path_GREP"
4961       ac_path_GREP_max=$ac_count
4962     fi
4963     # 10*(2^10) chars as input seems more than enough
4964     test $ac_count -gt 10 && break
4965   done
4966   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 esac
4968
4969       $ac_path_GREP_found && break 3
4970     done
4971   done
4972   done
4973 IFS=$as_save_IFS
4974   if test -z "$ac_cv_path_GREP"; then
4975     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976   fi
4977 else
4978   ac_cv_path_GREP=$GREP
4979 fi
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4983 $as_echo "$ac_cv_path_GREP" >&6; }
4984  GREP="$ac_cv_path_GREP"
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4988 $as_echo_n "checking for egrep... " >&6; }
4989 if ${ac_cv_path_EGREP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993    then ac_cv_path_EGREP="$GREP -E"
4994    else
4995      if test -z "$EGREP"; then
4996   ac_path_EGREP_found=false
4997   # Loop through the user's path and test for each of PROGNAME-LIST
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_prog in egrep; do
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5006       as_fn_executable_p "$ac_path_EGREP" || continue
5007 # Check for GNU ac_path_EGREP and select it if it is found.
5008   # Check for GNU $ac_path_EGREP
5009 case `"$ac_path_EGREP" --version 2>&1` in
5010 *GNU*)
5011   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5012 *)
5013   ac_count=0
5014   $as_echo_n 0123456789 >"conftest.in"
5015   while :
5016   do
5017     cat "conftest.in" "conftest.in" >"conftest.tmp"
5018     mv "conftest.tmp" "conftest.in"
5019     cp "conftest.in" "conftest.nl"
5020     $as_echo 'EGREP' >> "conftest.nl"
5021     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023     as_fn_arith $ac_count + 1 && ac_count=$as_val
5024     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5025       # Best one so far, save it but keep looking for a better one
5026       ac_cv_path_EGREP="$ac_path_EGREP"
5027       ac_path_EGREP_max=$ac_count
5028     fi
5029     # 10*(2^10) chars as input seems more than enough
5030     test $ac_count -gt 10 && break
5031   done
5032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5034
5035       $ac_path_EGREP_found && break 3
5036     done
5037   done
5038   done
5039 IFS=$as_save_IFS
5040   if test -z "$ac_cv_path_EGREP"; then
5041     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042   fi
5043 else
5044   ac_cv_path_EGREP=$EGREP
5045 fi
5046
5047    fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 $as_echo "$ac_cv_path_EGREP" >&6; }
5051  EGREP="$ac_cv_path_EGREP"
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5055 $as_echo_n "checking for ANSI C header files... " >&6; }
5056 if ${ac_cv_header_stdc+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h.  */
5061 #include <stdlib.h>
5062 #include <stdarg.h>
5063 #include <string.h>
5064 #include <float.h>
5065
5066 int
5067 main ()
5068 {
5069
5070   ;
5071   return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_c_try_compile "$LINENO"; then :
5075   ac_cv_header_stdc=yes
5076 else
5077   ac_cv_header_stdc=no
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080
5081 if test $ac_cv_header_stdc = yes; then
5082   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h.  */
5085 #include <string.h>
5086
5087 _ACEOF
5088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5089   $EGREP "memchr" >/dev/null 2>&1; then :
5090
5091 else
5092   ac_cv_header_stdc=no
5093 fi
5094 rm -f conftest*
5095
5096 fi
5097
5098 if test $ac_cv_header_stdc = yes; then
5099   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h.  */
5102 #include <stdlib.h>
5103
5104 _ACEOF
5105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5106   $EGREP "free" >/dev/null 2>&1; then :
5107
5108 else
5109   ac_cv_header_stdc=no
5110 fi
5111 rm -f conftest*
5112
5113 fi
5114
5115 if test $ac_cv_header_stdc = yes; then
5116   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5117   if test "$cross_compiling" = yes; then :
5118   :
5119 else
5120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h.  */
5122 #include <ctype.h>
5123 #include <stdlib.h>
5124 #if ((' ' & 0x0FF) == 0x020)
5125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5127 #else
5128 # define ISLOWER(c) \
5129                    (('a' <= (c) && (c) <= 'i') \
5130                      || ('j' <= (c) && (c) <= 'r') \
5131                      || ('s' <= (c) && (c) <= 'z'))
5132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5133 #endif
5134
5135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5136 int
5137 main ()
5138 {
5139   int i;
5140   for (i = 0; i < 256; i++)
5141     if (XOR (islower (i), ISLOWER (i))
5142         || toupper (i) != TOUPPER (i))
5143       return 2;
5144   return 0;
5145 }
5146 _ACEOF
5147 if ac_fn_c_try_run "$LINENO"; then :
5148
5149 else
5150   ac_cv_header_stdc=no
5151 fi
5152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5153   conftest.$ac_objext conftest.beam conftest.$ac_ext
5154 fi
5155
5156 fi
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5159 $as_echo "$ac_cv_header_stdc" >&6; }
5160 if test $ac_cv_header_stdc = yes; then
5161
5162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5163
5164 fi
5165
5166 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5168                   inttypes.h stdint.h unistd.h
5169 do :
5170   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5172 "
5173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5174   cat >>confdefs.h <<_ACEOF
5175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176 _ACEOF
5177
5178 fi
5179
5180 done
5181
5182
5183
5184   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5185 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5186   MINIX=yes
5187 else
5188   MINIX=
5189 fi
5190
5191
5192   if test "$MINIX" = yes; then
5193
5194 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5195
5196
5197 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5198
5199
5200 $as_echo "#define _MINIX 1" >>confdefs.h
5201
5202
5203 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5204
5205   fi
5206
5207
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5209 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5210 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5211   $as_echo_n "(cached) " >&6
5212 else
5213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h.  */
5215
5216 #         define __EXTENSIONS__ 1
5217           $ac_includes_default
5218 int
5219 main ()
5220 {
5221
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227   ac_cv_safe_to_define___extensions__=yes
5228 else
5229   ac_cv_safe_to_define___extensions__=no
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5234 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5235   test $ac_cv_safe_to_define___extensions__ = yes &&
5236     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5237
5238   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5239
5240   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5241
5242   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5243
5244   $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5245
5246   $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5247
5248   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5249
5250   $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5251
5252   $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5253
5254   $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5255
5256   $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5257
5258   $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5259
5260   $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5261
5262   $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5263
5264   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5265
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5267 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5268 if ${ac_cv_should_define__xopen_source+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   ac_cv_should_define__xopen_source=no
5272      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h.  */
5274
5275           #include <wchar.h>
5276           mbstate_t x;
5277 int
5278 main ()
5279 {
5280
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286
5287 else
5288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h.  */
5290
5291              #define _XOPEN_SOURCE 500
5292              #include <wchar.h>
5293              mbstate_t x;
5294 int
5295 main ()
5296 {
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303   ac_cv_should_define__xopen_source=yes
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5310 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5311   test $ac_cv_should_define__xopen_source = yes &&
5312     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5313
5314   $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5315
5316
5317 ac_ext=c
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322 if test -n "$ac_tool_prefix"; then
5323   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_CC+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   if test -n "$CC"; then
5331   ac_cv_prog_CC="$CC" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338     for ac_exec_ext in '' $ac_executable_extensions; do
5339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345   done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 CC=$ac_cv_prog_CC
5351 if test -n "$CC"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5353 $as_echo "$CC" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 fi
5361 if test -z "$ac_cv_prog_CC"; then
5362   ac_ct_CC=$CC
5363   # Extract the first word of "gcc", so it can be a program name with args.
5364 set dummy gcc; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   if test -n "$ac_ct_CC"; then
5371   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378     for ac_exec_ext in '' $ac_executable_extensions; do
5379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380     ac_cv_prog_ac_ct_CC="gcc"
5381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385   done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5391 if test -n "$ac_ct_CC"; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5393 $as_echo "$ac_ct_CC" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399   if test "x$ac_ct_CC" = x; then
5400     CC=""
5401   else
5402     case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408     CC=$ac_ct_CC
5409   fi
5410 else
5411   CC="$ac_cv_prog_CC"
5412 fi
5413
5414 if test -z "$CC"; then
5415           if test -n "$ac_tool_prefix"; then
5416     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}cc; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_CC+:} false; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$CC"; then
5424   ac_cv_prog_CC="$CC" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_CC="${ac_tool_prefix}cc"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 CC=$ac_cv_prog_CC
5444 if test -n "$CC"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5446 $as_echo "$CC" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453   fi
5454 fi
5455 if test -z "$CC"; then
5456   # Extract the first word of "cc", so it can be a program name with args.
5457 set dummy cc; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_CC+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   if test -n "$CC"; then
5464   ac_cv_prog_CC="$CC" # Let the user override the test.
5465 else
5466   ac_prog_rejected=no
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472     for ac_exec_ext in '' $ac_executable_extensions; do
5473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5475        ac_prog_rejected=yes
5476        continue
5477      fi
5478     ac_cv_prog_CC="cc"
5479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483   done
5484 IFS=$as_save_IFS
5485
5486 if test $ac_prog_rejected = yes; then
5487   # We found a bogon in the path, so make sure we never use it.
5488   set dummy $ac_cv_prog_CC
5489   shift
5490   if test $# != 0; then
5491     # We chose a different compiler from the bogus one.
5492     # However, it has the same basename, so the bogon will be chosen
5493     # first if we set CC to just the basename; use the full file name.
5494     shift
5495     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5496   fi
5497 fi
5498 fi
5499 fi
5500 CC=$ac_cv_prog_CC
5501 if test -n "$CC"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5503 $as_echo "$CC" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510 fi
5511 if test -z "$CC"; then
5512   if test -n "$ac_tool_prefix"; then
5513   for ac_prog in cl.exe
5514   do
5515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_CC+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if test -n "$CC"; then
5523   ac_cv_prog_CC="$CC" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530     for ac_exec_ext in '' $ac_executable_extensions; do
5531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537   done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 CC=$ac_cv_prog_CC
5543 if test -n "$CC"; then
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5545 $as_echo "$CC" >&6; }
5546 else
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552     test -n "$CC" && break
5553   done
5554 fi
5555 if test -z "$CC"; then
5556   ac_ct_CC=$CC
5557   for ac_prog in cl.exe
5558 do
5559   # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$ac_ct_CC"; then
5567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574     for ac_exec_ext in '' $ac_executable_extensions; do
5575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576     ac_cv_prog_ac_ct_CC="$ac_prog"
5577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581   done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5587 if test -n "$ac_ct_CC"; then
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5589 $as_echo "$ac_ct_CC" >&6; }
5590 else
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596   test -n "$ac_ct_CC" && break
5597 done
5598
5599   if test "x$ac_ct_CC" = x; then
5600     CC=""
5601   else
5602     case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608     CC=$ac_ct_CC
5609   fi
5610 fi
5611
5612 fi
5613
5614
5615 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5617 as_fn_error $? "no acceptable C compiler found in \$PATH
5618 See \`config.log' for more details" "$LINENO" 5; }
5619
5620 # Provide some information about the compiler.
5621 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5622 set X $ac_compile
5623 ac_compiler=$2
5624 for ac_option in --version -v -V -qversion; do
5625   { { ac_try="$ac_compiler $ac_option >&5"
5626 case "(($ac_try" in
5627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628   *) ac_try_echo=$ac_try;;
5629 esac
5630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631 $as_echo "$ac_try_echo"; } >&5
5632   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5633   ac_status=$?
5634   if test -s conftest.err; then
5635     sed '10a\
5636 ... rest of stderr output deleted ...
5637          10q' conftest.err >conftest.er1
5638     cat conftest.er1 >&5
5639   fi
5640   rm -f conftest.er1 conftest.err
5641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642   test $ac_status = 0; }
5643 done
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5646 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5647 if ${ac_cv_c_compiler_gnu+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h.  */
5652
5653 int
5654 main ()
5655 {
5656 #ifndef __GNUC__
5657        choke me
5658 #endif
5659
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665   ac_compiler_gnu=yes
5666 else
5667   ac_compiler_gnu=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5671
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5674 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5675 if test $ac_compiler_gnu = yes; then
5676   GCC=yes
5677 else
5678   GCC=
5679 fi
5680 ac_test_CFLAGS=${CFLAGS+set}
5681 ac_save_CFLAGS=$CFLAGS
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5683 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5684 if ${ac_cv_prog_cc_g+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   ac_save_c_werror_flag=$ac_c_werror_flag
5688    ac_c_werror_flag=yes
5689    ac_cv_prog_cc_g=no
5690    CFLAGS="-g"
5691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h.  */
5693
5694 int
5695 main ()
5696 {
5697
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703   ac_cv_prog_cc_g=yes
5704 else
5705   CFLAGS=""
5706       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h.  */
5708
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718
5719 else
5720   ac_c_werror_flag=$ac_save_c_werror_flag
5721          CFLAGS="-g"
5722          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h.  */
5724
5725 int
5726 main ()
5727 {
5728
5729   ;
5730   return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734   ac_cv_prog_cc_g=yes
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741    ac_c_werror_flag=$ac_save_c_werror_flag
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5744 $as_echo "$ac_cv_prog_cc_g" >&6; }
5745 if test "$ac_test_CFLAGS" = set; then
5746   CFLAGS=$ac_save_CFLAGS
5747 elif test $ac_cv_prog_cc_g = yes; then
5748   if test "$GCC" = yes; then
5749     CFLAGS="-g -O2"
5750   else
5751     CFLAGS="-g"
5752   fi
5753 else
5754   if test "$GCC" = yes; then
5755     CFLAGS="-O2"
5756   else
5757     CFLAGS=
5758   fi
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5761 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5762 if ${ac_cv_prog_cc_c89+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   ac_cv_prog_cc_c89=no
5766 ac_save_CC=$CC
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h.  */
5769 #include <stdarg.h>
5770 #include <stdio.h>
5771 struct stat;
5772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5773 struct buf { int x; };
5774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5775 static char *e (p, i)
5776      char **p;
5777      int i;
5778 {
5779   return p[i];
5780 }
5781 static char *f (char * (*g) (char **, int), char **p, ...)
5782 {
5783   char *s;
5784   va_list v;
5785   va_start (v,p);
5786   s = g (p, va_arg (v,int));
5787   va_end (v);
5788   return s;
5789 }
5790
5791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5792    function prototypes and stuff, but not '\xHH' hex character constants.
5793    These don't provoke an error unfortunately, instead are silently treated
5794    as 'x'.  The following induces an error, until -std is added to get
5795    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5796    array size at least.  It's necessary to write '\x00'==0 to get something
5797    that's true only with -std.  */
5798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5799
5800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5801    inside strings and character constants.  */
5802 #define FOO(x) 'x'
5803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5804
5805 int test (int i, double x);
5806 struct s1 {int (*f) (int a);};
5807 struct s2 {int (*f) (double a);};
5808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5809 int argc;
5810 char **argv;
5811 int
5812 main ()
5813 {
5814 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5820         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5821 do
5822   CC="$ac_save_CC $ac_arg"
5823   if ac_fn_c_try_compile "$LINENO"; then :
5824   ac_cv_prog_cc_c89=$ac_arg
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext
5827   test "x$ac_cv_prog_cc_c89" != "xno" && break
5828 done
5829 rm -f conftest.$ac_ext
5830 CC=$ac_save_CC
5831
5832 fi
5833 # AC_CACHE_VAL
5834 case "x$ac_cv_prog_cc_c89" in
5835   x)
5836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5837 $as_echo "none needed" >&6; } ;;
5838   xno)
5839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5840 $as_echo "unsupported" >&6; } ;;
5841   *)
5842     CC="$CC $ac_cv_prog_cc_c89"
5843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5845 esac
5846 if test "x$ac_cv_prog_cc_c89" != xno; then :
5847
5848 fi
5849
5850 ac_ext=c
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
5856 ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5862 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5863 if ${am_cv_prog_cc_c_o+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h.  */
5868
5869 int
5870 main ()
5871 {
5872
5873   ;
5874   return 0;
5875 }
5876 _ACEOF
5877   # Make sure it works both with $CC and with simple cc.
5878   # Following AC_PROG_CC_C_O, we do the test twice because some
5879   # compilers refuse to overwrite an existing .o file with -o,
5880   # though they will create one.
5881   am_cv_prog_cc_c_o=yes
5882   for am_i in 1 2; do
5883     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5884    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5885    ac_status=$?
5886    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887    (exit $ac_status); } \
5888          && test -f conftest2.$ac_objext; then
5889       : OK
5890     else
5891       am_cv_prog_cc_c_o=no
5892       break
5893     fi
5894   done
5895   rm -f core conftest*
5896   unset am_i
5897 fi
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5899 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5900 if test "$am_cv_prog_cc_c_o" != yes; then
5901    # Losing compiler, so override with the script.
5902    # FIXME: It is wrong to rewrite CC.
5903    # But if we don't then we get into trouble of one sort or another.
5904    # A longer-term fix would be to have automake use am__CC in this case,
5905    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5906    CC="$am_aux_dir/compile $CC"
5907 fi
5908 ac_ext=c
5909 ac_cpp='$CPP $CPPFLAGS'
5910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5913
5914
5915 depcc="$CC"   am_compiler_list=
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5918 $as_echo_n "checking dependency style of $depcc... " >&6; }
5919 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5923   # We make a subdir and do the tests there.  Otherwise we can end up
5924   # making bogus files that we don't know about and never remove.  For
5925   # instance it was reported that on HP-UX the gcc test will end up
5926   # making a dummy file named 'D' -- because '-MD' means "put the output
5927   # in D".
5928   rm -rf conftest.dir
5929   mkdir conftest.dir
5930   # Copy depcomp to subdir because otherwise we won't find it if we're
5931   # using a relative directory.
5932   cp "$am_depcomp" conftest.dir
5933   cd conftest.dir
5934   # We will build objects and dependencies in a subdirectory because
5935   # it helps to detect inapplicable dependency modes.  For instance
5936   # both Tru64's cc and ICC support -MD to output dependencies as a
5937   # side effect of compilation, but ICC will put the dependencies in
5938   # the current directory while Tru64 will put them in the object
5939   # directory.
5940   mkdir sub
5941
5942   am_cv_CC_dependencies_compiler_type=none
5943   if test "$am_compiler_list" = ""; then
5944      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5945   fi
5946   am__universal=false
5947   case " $depcc " in #(
5948      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5949      esac
5950
5951   for depmode in $am_compiler_list; do
5952     # Setup a source with many dependencies, because some compilers
5953     # like to wrap large dependency lists on column 80 (with \), and
5954     # we should not choose a depcomp mode which is confused by this.
5955     #
5956     # We need to recreate these files for each test, as the compiler may
5957     # overwrite some of them when testing with obscure command lines.
5958     # This happens at least with the AIX C compiler.
5959     : > sub/conftest.c
5960     for i in 1 2 3 4 5 6; do
5961       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5962       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5963       # Solaris 10 /bin/sh.
5964       echo '/* dummy */' > sub/conftst$i.h
5965     done
5966     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5967
5968     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5969     # mode.  It turns out that the SunPro C++ compiler does not properly
5970     # handle '-M -o', and we need to detect this.  Also, some Intel
5971     # versions had trouble with output in subdirs.
5972     am__obj=sub/conftest.${OBJEXT-o}
5973     am__minus_obj="-o $am__obj"
5974     case $depmode in
5975     gcc)
5976       # This depmode causes a compiler race in universal mode.
5977       test "$am__universal" = false || continue
5978       ;;
5979     nosideeffect)
5980       # After this tag, mechanisms are not by side-effect, so they'll
5981       # only be used when explicitly requested.
5982       if test "x$enable_dependency_tracking" = xyes; then
5983         continue
5984       else
5985         break
5986       fi
5987       ;;
5988     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5989       # This compiler won't grok '-c -o', but also, the minuso test has
5990       # not run yet.  These depmodes are late enough in the game, and
5991       # so weak that their functioning should not be impacted.
5992       am__obj=conftest.${OBJEXT-o}
5993       am__minus_obj=
5994       ;;
5995     none) break ;;
5996     esac
5997     if depmode=$depmode \
5998        source=sub/conftest.c object=$am__obj \
5999        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6000        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6001          >/dev/null 2>conftest.err &&
6002        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6003        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6004        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6005        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6006       # icc doesn't choke on unknown options, it will just issue warnings
6007       # or remarks (even with -Werror).  So we grep stderr for any message
6008       # that says an option was ignored or not supported.
6009       # When given -MP, icc 7.0 and 7.1 complain thusly:
6010       #   icc: Command line warning: ignoring option '-M'; no argument required
6011       # The diagnosis changed in icc 8.0:
6012       #   icc: Command line remark: option '-MP' not supported
6013       if (grep 'ignoring option' conftest.err ||
6014           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6015         am_cv_CC_dependencies_compiler_type=$depmode
6016         break
6017       fi
6018     fi
6019   done
6020
6021   cd ..
6022   rm -rf conftest.dir
6023 else
6024   am_cv_CC_dependencies_compiler_type=none
6025 fi
6026
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6029 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6030 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6031
6032  if
6033   test "x$enable_dependency_tracking" != xno \
6034   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6035   am__fastdepCC_TRUE=
6036   am__fastdepCC_FALSE='#'
6037 else
6038   am__fastdepCC_TRUE='#'
6039   am__fastdepCC_FALSE=
6040 fi
6041
6042
6043
6044 # Configure gnulib
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6055 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6056 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059
6060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h.  */
6062
6063 #ifdef __ACK__
6064 Amsterdam
6065 #endif
6066
6067 _ACEOF
6068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6070   gl_cv_c_amsterdam_compiler=yes
6071 else
6072   gl_cv_c_amsterdam_compiler=no
6073 fi
6074 rm -f conftest*
6075
6076
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6079 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6080
6081       if test $gl_cv_c_amsterdam_compiler = yes; then
6082     if test -z "$AR"; then
6083       AR='cc -c.a'
6084     fi
6085     if test -z "$ARFLAGS"; then
6086       ARFLAGS='-o'
6087     fi
6088   else
6089                                                 :
6090   fi
6091
6092         if test -n "$ac_tool_prefix"; then
6093   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}ar; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_AR+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100   if test -n "$AR"; then
6101   ac_cv_prog_AR="$AR" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108     for ac_exec_ext in '' $ac_executable_extensions; do
6109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110     ac_cv_prog_AR="${ac_tool_prefix}ar"
6111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115   done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 AR=$ac_cv_prog_AR
6121 if test -n "$AR"; then
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6123 $as_echo "$AR" >&6; }
6124 else
6125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129
6130 fi
6131 if test -z "$ac_cv_prog_AR"; then
6132   ac_ct_AR=$AR
6133   # Extract the first word of "ar", so it can be a program name with args.
6134 set dummy ar; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   if test -n "$ac_ct_AR"; then
6141   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148     for ac_exec_ext in '' $ac_executable_extensions; do
6149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150     ac_cv_prog_ac_ct_AR="ar"
6151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155   done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6161 if test -n "$ac_ct_AR"; then
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6163 $as_echo "$ac_ct_AR" >&6; }
6164 else
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169   if test "x$ac_ct_AR" = x; then
6170     AR="ar"
6171   else
6172     case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178     AR=$ac_ct_AR
6179   fi
6180 else
6181   AR="$ac_cv_prog_AR"
6182 fi
6183
6184   if test -z "$ARFLAGS"; then
6185     ARFLAGS='cr'
6186   fi
6187
6188
6189
6190   if test -z "$RANLIB"; then
6191     if test $gl_cv_c_amsterdam_compiler = yes; then
6192       RANLIB=':'
6193     else
6194             if test -n "$ac_tool_prefix"; then
6195   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_RANLIB+:} false; then :
6200   $as_echo_n "(cached) " >&6
6201 else
6202   if test -n "$RANLIB"; then
6203   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     for ac_exec_ext in '' $ac_executable_extensions; do
6211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217   done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 RANLIB=$ac_cv_prog_RANLIB
6223 if test -n "$RANLIB"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6225 $as_echo "$RANLIB" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_RANLIB"; then
6234   ac_ct_RANLIB=$RANLIB
6235   # Extract the first word of "ranlib", so it can be a program name with args.
6236 set dummy ranlib; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   if test -n "$ac_ct_RANLIB"; then
6243   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   test -z "$as_dir" && as_dir=.
6250     for ac_exec_ext in '' $ac_executable_extensions; do
6251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252     ac_cv_prog_ac_ct_RANLIB="ranlib"
6253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254     break 2
6255   fi
6256 done
6257   done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6263 if test -n "$ac_ct_RANLIB"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6265 $as_echo "$ac_ct_RANLIB" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271   if test "x$ac_ct_RANLIB" = x; then
6272     RANLIB=":"
6273   else
6274     case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280     RANLIB=$ac_ct_RANLIB
6281   fi
6282 else
6283   RANLIB="$ac_cv_prog_RANLIB"
6284 fi
6285
6286     fi
6287   fi
6288
6289
6290
6291
6292   # Pre-early section.
6293
6294
6295
6296   # Code from module absolute-header:
6297   # Code from module access:
6298   # Code from module alloca:
6299   # Code from module alloca-opt:
6300   # Code from module close:
6301   # Code from module concat-filename:
6302   # Code from module dirname-lgpl:
6303   # Code from module dosname:
6304   # Code from module double-slash-root:
6305   # Code from module dup2:
6306   # Code from module errno:
6307   # Code from module error:
6308   # Code from module exitfail:
6309   # Code from module extensions:
6310   # Code from module extern-inline:
6311   # Code from module fcntl:
6312   # Code from module fcntl-h:
6313   # Code from module fd-hook:
6314   # Code from module fdl:
6315   # Code from module filename:
6316   # Code from module findprog-in:
6317   # Code from module getdtablesize:
6318   # Code from module getloadavg:
6319   # Code from module getprogname:
6320   # Code from module gettext-h:
6321   # Code from module host-cpu-c-abi:
6322   # Code from module include_next:
6323   # Code from module intprops:
6324   # Code from module limits-h:
6325   # Code from module make-glob:
6326   # Code from module malloc-posix:
6327   # Code from module msvc-inval:
6328   # Code from module msvc-nothrow:
6329   # Code from module multiarch:
6330   # Code from module snippet/_Noreturn:
6331   # Code from module snippet/arg-nonnull:
6332   # Code from module snippet/c++defs:
6333   # Code from module snippet/warn-on-use:
6334   # Code from module ssize_t:
6335   # Code from module stdbool:
6336   # Code from module stddef:
6337   # Code from module stdint:
6338   # Code from module stdio:
6339   # Code from module stdlib:
6340   # Code from module stpcpy:
6341   # Code from module strerror:
6342   # Code from module strerror-override:
6343   # Code from module string:
6344   # Code from module sys_types:
6345   # Code from module unistd:
6346   # Code from module verify:
6347   # Code from module xalloc:
6348   # Code from module xalloc-die:
6349   # Code from module xalloc-oversized:
6350   # Code from module xconcat-filename:
6351
6352
6353
6354
6355
6356
6357
6358                         # Check whether --enable-cross-guesses was given.
6359 if test "${enable_cross_guesses+set}" = set; then :
6360   enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
6361        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6362 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6363        enableval=conservative
6364      fi
6365      gl_cross_guesses="$enableval"
6366 else
6367   gl_cross_guesses=conservative
6368 fi
6369
6370   if test $gl_cross_guesses = risky; then
6371     gl_cross_guess_normal="guessing yes"
6372     gl_cross_guess_inverted="guessing no"
6373   else
6374     gl_cross_guess_normal="guessing no"
6375     gl_cross_guess_inverted="guessing yes"
6376   fi
6377           LIBC_FATAL_STDERR_=1
6378   export LIBC_FATAL_STDERR_
6379
6380
6381   GNULIB_ACCESS=0;
6382   GNULIB_CHDIR=0;
6383   GNULIB_CHOWN=0;
6384   GNULIB_CLOSE=0;
6385   GNULIB_COPY_FILE_RANGE=0;
6386   GNULIB_DUP=0;
6387   GNULIB_DUP2=0;
6388   GNULIB_DUP3=0;
6389   GNULIB_ENVIRON=0;
6390   GNULIB_EUIDACCESS=0;
6391   GNULIB_FACCESSAT=0;
6392   GNULIB_FCHDIR=0;
6393   GNULIB_FCHOWNAT=0;
6394   GNULIB_FDATASYNC=0;
6395   GNULIB_FSYNC=0;
6396   GNULIB_FTRUNCATE=0;
6397   GNULIB_GETCWD=0;
6398   GNULIB_GETDOMAINNAME=0;
6399   GNULIB_GETDTABLESIZE=0;
6400   GNULIB_GETGROUPS=0;
6401   GNULIB_GETHOSTNAME=0;
6402   GNULIB_GETLOGIN=0;
6403   GNULIB_GETLOGIN_R=0;
6404   GNULIB_GETPAGESIZE=0;
6405   GNULIB_GETPASS=0;
6406   GNULIB_GETUSERSHELL=0;
6407   GNULIB_GROUP_MEMBER=0;
6408   GNULIB_ISATTY=0;
6409   GNULIB_LCHOWN=0;
6410   GNULIB_LINK=0;
6411   GNULIB_LINKAT=0;
6412   GNULIB_LSEEK=0;
6413   GNULIB_PIPE=0;
6414   GNULIB_PIPE2=0;
6415   GNULIB_PREAD=0;
6416   GNULIB_PWRITE=0;
6417   GNULIB_READ=0;
6418   GNULIB_READLINK=0;
6419   GNULIB_READLINKAT=0;
6420   GNULIB_RMDIR=0;
6421   GNULIB_SETHOSTNAME=0;
6422   GNULIB_SLEEP=0;
6423   GNULIB_SYMLINK=0;
6424   GNULIB_SYMLINKAT=0;
6425   GNULIB_TRUNCATE=0;
6426   GNULIB_TTYNAME_R=0;
6427   GNULIB_UNISTD_H_NONBLOCKING=0;
6428   GNULIB_UNISTD_H_SIGPIPE=0;
6429   GNULIB_UNLINK=0;
6430   GNULIB_UNLINKAT=0;
6431   GNULIB_USLEEP=0;
6432   GNULIB_WRITE=0;
6433     HAVE_CHOWN=1;
6434   HAVE_COPY_FILE_RANGE=1;
6435   HAVE_DUP2=1;
6436   HAVE_DUP3=1;
6437   HAVE_EUIDACCESS=1;
6438   HAVE_FACCESSAT=1;
6439   HAVE_FCHDIR=1;
6440   HAVE_FCHOWNAT=1;
6441   HAVE_FDATASYNC=1;
6442   HAVE_FSYNC=1;
6443   HAVE_FTRUNCATE=1;
6444   HAVE_GETDTABLESIZE=1;
6445   HAVE_GETGROUPS=1;
6446   HAVE_GETHOSTNAME=1;
6447   HAVE_GETLOGIN=1;
6448   HAVE_GETPAGESIZE=1;
6449   HAVE_GETPASS=1;
6450   HAVE_GROUP_MEMBER=1;
6451   HAVE_LCHOWN=1;
6452   HAVE_LINK=1;
6453   HAVE_LINKAT=1;
6454   HAVE_PIPE=1;
6455   HAVE_PIPE2=1;
6456   HAVE_PREAD=1;
6457   HAVE_PWRITE=1;
6458   HAVE_READLINK=1;
6459   HAVE_READLINKAT=1;
6460   HAVE_SETHOSTNAME=1;
6461   HAVE_SLEEP=1;
6462   HAVE_SYMLINK=1;
6463   HAVE_SYMLINKAT=1;
6464   HAVE_UNLINKAT=1;
6465   HAVE_USLEEP=1;
6466   HAVE_DECL_ENVIRON=1;
6467   HAVE_DECL_FCHDIR=1;
6468   HAVE_DECL_FDATASYNC=1;
6469   HAVE_DECL_GETDOMAINNAME=1;
6470   HAVE_DECL_GETLOGIN=1;
6471   HAVE_DECL_GETLOGIN_R=1;
6472   HAVE_DECL_GETPAGESIZE=1;
6473   HAVE_DECL_GETUSERSHELL=1;
6474   HAVE_DECL_SETHOSTNAME=1;
6475   HAVE_DECL_TRUNCATE=1;
6476   HAVE_DECL_TTYNAME_R=1;
6477   HAVE_OS_H=0;
6478   HAVE_SYS_PARAM_H=0;
6479   REPLACE_ACCESS=0;
6480   REPLACE_CHOWN=0;
6481   REPLACE_CLOSE=0;
6482   REPLACE_DUP=0;
6483   REPLACE_DUP2=0;
6484   REPLACE_FACCESSAT=0;
6485   REPLACE_FCHOWNAT=0;
6486   REPLACE_FTRUNCATE=0;
6487   REPLACE_GETCWD=0;
6488   REPLACE_GETDOMAINNAME=0;
6489   REPLACE_GETDTABLESIZE=0;
6490   REPLACE_GETLOGIN_R=0;
6491   REPLACE_GETGROUPS=0;
6492   REPLACE_GETPAGESIZE=0;
6493   REPLACE_GETPASS=0;
6494   REPLACE_ISATTY=0;
6495   REPLACE_LCHOWN=0;
6496   REPLACE_LINK=0;
6497   REPLACE_LINKAT=0;
6498   REPLACE_LSEEK=0;
6499   REPLACE_PREAD=0;
6500   REPLACE_PWRITE=0;
6501   REPLACE_READ=0;
6502   REPLACE_READLINK=0;
6503   REPLACE_READLINKAT=0;
6504   REPLACE_RMDIR=0;
6505   REPLACE_SLEEP=0;
6506   REPLACE_SYMLINK=0;
6507   REPLACE_SYMLINKAT=0;
6508   REPLACE_TRUNCATE=0;
6509   REPLACE_TTYNAME_R=0;
6510   REPLACE_UNLINK=0;
6511   REPLACE_UNLINKAT=0;
6512   REPLACE_USLEEP=0;
6513   REPLACE_WRITE=0;
6514   UNISTD_H_HAVE_WINSOCK2_H=0;
6515   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6516
6517
6518 # Make sure we can run config.sub.
6519 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6520   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6523 $as_echo_n "checking build system type... " >&6; }
6524 if ${ac_cv_build+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   ac_build_alias=$build_alias
6528 test "x$ac_build_alias" = x &&
6529   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6530 test "x$ac_build_alias" = x &&
6531   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6532 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6533   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6534
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6537 $as_echo "$ac_cv_build" >&6; }
6538 case $ac_cv_build in
6539 *-*-*) ;;
6540 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6541 esac
6542 build=$ac_cv_build
6543 ac_save_IFS=$IFS; IFS='-'
6544 set x $ac_cv_build
6545 shift
6546 build_cpu=$1
6547 build_vendor=$2
6548 shift; shift
6549 # Remember, the first character of IFS is used to create $*,
6550 # except with old shells:
6551 build_os=$*
6552 IFS=$ac_save_IFS
6553 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6554
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6557 $as_echo_n "checking host system type... " >&6; }
6558 if ${ac_cv_host+:} false; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   if test "x$host_alias" = x; then
6562   ac_cv_host=$ac_cv_build
6563 else
6564   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6565     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6566 fi
6567
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6570 $as_echo "$ac_cv_host" >&6; }
6571 case $ac_cv_host in
6572 *-*-*) ;;
6573 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6574 esac
6575 host=$ac_cv_host
6576 ac_save_IFS=$IFS; IFS='-'
6577 set x $ac_cv_host
6578 shift
6579 host_cpu=$1
6580 host_vendor=$2
6581 shift; shift
6582 # Remember, the first character of IFS is used to create $*,
6583 # except with old shells:
6584 host_os=$*
6585 IFS=$ac_save_IFS
6586 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6587
6588
6589 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6590 if test "x$ac_cv_type_size_t" = xyes; then :
6591
6592 else
6593
6594 cat >>confdefs.h <<_ACEOF
6595 #define size_t unsigned int
6596 _ACEOF
6597
6598 fi
6599
6600 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6601 # for constant arguments.  Useless!
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6603 $as_echo_n "checking for working alloca.h... " >&6; }
6604 if ${ac_cv_working_alloca_h+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609 #include <alloca.h>
6610 int
6611 main ()
6612 {
6613 char *p = (char *) alloca (2 * sizeof (int));
6614                           if (p) return 0;
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620   ac_cv_working_alloca_h=yes
6621 else
6622   ac_cv_working_alloca_h=no
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext \
6625     conftest$ac_exeext conftest.$ac_ext
6626 fi
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6628 $as_echo "$ac_cv_working_alloca_h" >&6; }
6629 if test $ac_cv_working_alloca_h = yes; then
6630
6631 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6632
6633 fi
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6636 $as_echo_n "checking for alloca... " >&6; }
6637 if ${ac_cv_func_alloca_works+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h.  */
6642 #ifdef __GNUC__
6643 # define alloca __builtin_alloca
6644 #else
6645 # ifdef _MSC_VER
6646 #  include <malloc.h>
6647 #  define alloca _alloca
6648 # else
6649 #  ifdef HAVE_ALLOCA_H
6650 #   include <alloca.h>
6651 #  else
6652 #   ifdef _AIX
6653  #pragma alloca
6654 #   else
6655 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6656 void *alloca (size_t);
6657 #    endif
6658 #   endif
6659 #  endif
6660 # endif
6661 #endif
6662
6663 int
6664 main ()
6665 {
6666 char *p = (char *) alloca (1);
6667                                     if (p) return 0;
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"; then :
6673   ac_cv_func_alloca_works=yes
6674 else
6675   ac_cv_func_alloca_works=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext \
6678     conftest$ac_exeext conftest.$ac_ext
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6681 $as_echo "$ac_cv_func_alloca_works" >&6; }
6682
6683 if test $ac_cv_func_alloca_works = yes; then
6684
6685 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6686
6687 else
6688   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6689 # that cause trouble.  Some versions do not even contain alloca or
6690 # contain a buggy version.  If you still want to use their alloca,
6691 # use ar to extract alloca.o from them instead of compiling alloca.c.
6692
6693
6694
6695
6696
6697 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6698
6699 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6703 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6704 if ${ac_cv_os_cray+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h.  */
6709 #if defined CRAY && ! defined CRAY2
6710 webecray
6711 #else
6712 wenotbecray
6713 #endif
6714
6715 _ACEOF
6716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717   $EGREP "webecray" >/dev/null 2>&1; then :
6718   ac_cv_os_cray=yes
6719 else
6720   ac_cv_os_cray=no
6721 fi
6722 rm -f conftest*
6723
6724 fi
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6726 $as_echo "$ac_cv_os_cray" >&6; }
6727 if test $ac_cv_os_cray = yes; then
6728   for ac_func in _getb67 GETB67 getb67; do
6729     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6732
6733 cat >>confdefs.h <<_ACEOF
6734 #define CRAY_STACKSEG_END $ac_func
6735 _ACEOF
6736
6737     break
6738 fi
6739
6740   done
6741 fi
6742
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6744 $as_echo_n "checking stack direction for C alloca... " >&6; }
6745 if ${ac_cv_c_stack_direction+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   if test "$cross_compiling" = yes; then :
6749   ac_cv_c_stack_direction=0
6750 else
6751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h.  */
6753 $ac_includes_default
6754 int
6755 find_stack_direction (int *addr, int depth)
6756 {
6757   int dir, dummy = 0;
6758   if (! addr)
6759     addr = &dummy;
6760   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6761   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6762   return dir + dummy;
6763 }
6764
6765 int
6766 main (int argc, char **argv)
6767 {
6768   return find_stack_direction (0, argc + !argv + 20) < 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_run "$LINENO"; then :
6772   ac_cv_c_stack_direction=1
6773 else
6774   ac_cv_c_stack_direction=-1
6775 fi
6776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6777   conftest.$ac_objext conftest.beam conftest.$ac_ext
6778 fi
6779
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6782 $as_echo "$ac_cv_c_stack_direction" >&6; }
6783 cat >>confdefs.h <<_ACEOF
6784 #define STACK_DIRECTION $ac_cv_c_stack_direction
6785 _ACEOF
6786
6787
6788 fi
6789
6790
6791
6792
6793   for ac_func in $ac_func_list
6794 do :
6795   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6798   cat >>confdefs.h <<_ACEOF
6799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6800 _ACEOF
6801
6802 fi
6803 done
6804
6805
6806
6807
6808
6809   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
6810     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
6811
6812 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
6813
6814   else
6815     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
6816   fi
6817
6818
6819
6820
6821
6822   for ac_header in $ac_header_list
6823 do :
6824   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6826 "
6827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6828   cat >>confdefs.h <<_ACEOF
6829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6830 _ACEOF
6831
6832 fi
6833
6834 done
6835
6836
6837
6838
6839
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6841 $as_echo_n "checking whether // is distinct from /... " >&6; }
6842 if ${gl_cv_double_slash_root+:} false; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845    if test x"$cross_compiling" = xyes ; then
6846         # When cross-compiling, there is no way to tell whether // is special
6847         # short of a list of hosts.  However, the only known hosts to date
6848         # that have a distinct // are Apollo DomainOS (too old to port to),
6849         # Cygwin, and z/OS.  If anyone knows of another system for which // has
6850         # special semantics and is distinct from /, please report it to
6851         # <bug-gnulib@gnu.org>.
6852         case $host in
6853           *-cygwin | i370-ibm-openedition)
6854             gl_cv_double_slash_root=yes ;;
6855           *)
6856             # Be optimistic and assume that / and // are the same when we
6857             # don't know.
6858             gl_cv_double_slash_root='unknown, assuming no' ;;
6859         esac
6860       else
6861         set x `ls -di / // 2>/dev/null`
6862         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6863           gl_cv_double_slash_root=no
6864         else
6865           gl_cv_double_slash_root=yes
6866         fi
6867       fi
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6870 $as_echo "$gl_cv_double_slash_root" >&6; }
6871   if test "$gl_cv_double_slash_root" = yes; then
6872
6873 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6874
6875   fi
6876
6877
6878
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6880 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6881 if ${gl_cv_have_include_next+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   rm -rf conftestd1a conftestd1b conftestd2
6885      mkdir conftestd1a conftestd1b conftestd2
6886                                                   cat <<EOF > conftestd1a/conftest.h
6887 #define DEFINED_IN_CONFTESTD1
6888 #include_next <conftest.h>
6889 #ifdef DEFINED_IN_CONFTESTD2
6890 int foo;
6891 #else
6892 #error "include_next doesn't work"
6893 #endif
6894 EOF
6895      cat <<EOF > conftestd1b/conftest.h
6896 #define DEFINED_IN_CONFTESTD1
6897 #include <stdio.h>
6898 #include_next <conftest.h>
6899 #ifdef DEFINED_IN_CONFTESTD2
6900 int foo;
6901 #else
6902 #error "include_next doesn't work"
6903 #endif
6904 EOF
6905      cat <<EOF > conftestd2/conftest.h
6906 #ifndef DEFINED_IN_CONFTESTD1
6907 #error "include_next test doesn't work"
6908 #endif
6909 #define DEFINED_IN_CONFTESTD2
6910 EOF
6911      gl_save_CPPFLAGS="$CPPFLAGS"
6912      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h.  */
6915 #include <conftest.h>
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918   gl_cv_have_include_next=yes
6919 else
6920   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6921         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h.  */
6923 #include <conftest.h>
6924 _ACEOF
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926   gl_cv_have_include_next=buggy
6927 else
6928   gl_cv_have_include_next=no
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934      CPPFLAGS="$gl_save_CPPFLAGS"
6935      rm -rf conftestd1a conftestd1b conftestd2
6936
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6939 $as_echo "$gl_cv_have_include_next" >&6; }
6940   PRAGMA_SYSTEM_HEADER=
6941   if test $gl_cv_have_include_next = yes; then
6942     INCLUDE_NEXT=include_next
6943     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6944     if test -n "$GCC"; then
6945       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6946     fi
6947   else
6948     if test $gl_cv_have_include_next = buggy; then
6949       INCLUDE_NEXT=include
6950       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6951     else
6952       INCLUDE_NEXT=include
6953       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6954     fi
6955   fi
6956
6957
6958
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6960 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6961 if ${gl_cv_pragma_columns+:} false; then :
6962   $as_echo_n "(cached) " >&6
6963 else
6964        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h.  */
6966
6967 #ifdef __TANDEM
6968 choke me
6969 #endif
6970
6971 _ACEOF
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973   $EGREP "choke me" >/dev/null 2>&1; then :
6974   gl_cv_pragma_columns=yes
6975 else
6976   gl_cv_pragma_columns=no
6977 fi
6978 rm -f conftest*
6979
6980
6981 fi
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6983 $as_echo "$gl_cv_pragma_columns" >&6; }
6984   if test $gl_cv_pragma_columns = yes; then
6985     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6986   else
6987     PRAGMA_COLUMNS=
6988   fi
6989
6990
6991
6992
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6994 $as_echo_n "checking for complete errno.h... " >&6; }
6995 if ${gl_cv_header_errno_h_complete+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998
6999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h.  */
7001
7002 #include <errno.h>
7003 #if !defined ETXTBSY
7004 booboo
7005 #endif
7006 #if !defined ENOMSG
7007 booboo
7008 #endif
7009 #if !defined EIDRM
7010 booboo
7011 #endif
7012 #if !defined ENOLINK
7013 booboo
7014 #endif
7015 #if !defined EPROTO
7016 booboo
7017 #endif
7018 #if !defined EMULTIHOP
7019 booboo
7020 #endif
7021 #if !defined EBADMSG
7022 booboo
7023 #endif
7024 #if !defined EOVERFLOW
7025 booboo
7026 #endif
7027 #if !defined ENOTSUP
7028 booboo
7029 #endif
7030 #if !defined ENETRESET
7031 booboo
7032 #endif
7033 #if !defined ECONNABORTED
7034 booboo
7035 #endif
7036 #if !defined ESTALE
7037 booboo
7038 #endif
7039 #if !defined EDQUOT
7040 booboo
7041 #endif
7042 #if !defined ECANCELED
7043 booboo
7044 #endif
7045 #if !defined EOWNERDEAD
7046 booboo
7047 #endif
7048 #if !defined ENOTRECOVERABLE
7049 booboo
7050 #endif
7051 #if !defined EILSEQ
7052 booboo
7053 #endif
7054
7055 _ACEOF
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057   $EGREP "booboo" >/dev/null 2>&1; then :
7058   gl_cv_header_errno_h_complete=no
7059 else
7060   gl_cv_header_errno_h_complete=yes
7061 fi
7062 rm -f conftest*
7063
7064
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7067 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7068   if test $gl_cv_header_errno_h_complete = yes; then
7069     ERRNO_H=''
7070   else
7071
7072
7073
7074
7075
7076
7077
7078
7079      if test $gl_cv_have_include_next = yes; then
7080        gl_cv_next_errno_h='<'errno.h'>'
7081      else
7082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7083 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7084 if ${gl_cv_next_errno_h+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087
7088
7089
7090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h.  */
7092 #include <errno.h>
7093 _ACEOF
7094                 case "$host_os" in
7095     aix*) gl_absname_cpp="$ac_cpp -C" ;;
7096     *)    gl_absname_cpp="$ac_cpp" ;;
7097   esac
7098
7099   case "$host_os" in
7100     mingw*)
7101                                           gl_dirsep_regex='[/\\]'
7102       ;;
7103     *)
7104       gl_dirsep_regex='\/'
7105       ;;
7106   esac
7107       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7108   gl_header_literal_regex=`echo 'errno.h' \
7109                            | sed -e "$gl_make_literal_regex_sed"`
7110   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7111       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7112       s|^/[^/]|//&|
7113       p
7114       q
7115     }'
7116
7117         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7118   sed -n "$gl_absolute_header_sed"`
7119
7120            gl_header=$gl_cv_absolute_errno_h
7121            gl_cv_next_errno_h='"'$gl_header'"'
7122
7123
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7126 $as_echo "$gl_cv_next_errno_h" >&6; }
7127      fi
7128      NEXT_ERRNO_H=$gl_cv_next_errno_h
7129
7130      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7131        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7132        gl_next_as_first_directive='<'errno.h'>'
7133      else
7134        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7135        gl_next_as_first_directive=$gl_cv_next_errno_h
7136      fi
7137      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7138
7139
7140
7141
7142     ERRNO_H='errno.h'
7143   fi
7144
7145    if test -n "$ERRNO_H"; then
7146   GL_GENERATE_ERRNO_H_TRUE=
7147   GL_GENERATE_ERRNO_H_FALSE='#'
7148 else
7149   GL_GENERATE_ERRNO_H_TRUE='#'
7150   GL_GENERATE_ERRNO_H_FALSE=
7151 fi
7152
7153
7154   if test -n "$ERRNO_H"; then
7155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7156 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7157 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160
7161       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h.  */
7163
7164 #include <errno.h>
7165 #ifdef EMULTIHOP
7166 yes
7167 #endif
7168
7169 _ACEOF
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171   $EGREP "yes" >/dev/null 2>&1; then :
7172   gl_cv_header_errno_h_EMULTIHOP=yes
7173 else
7174   gl_cv_header_errno_h_EMULTIHOP=no
7175 fi
7176 rm -f conftest*
7177
7178       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7179         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181
7182 #define _XOPEN_SOURCE_EXTENDED 1
7183 #include <errno.h>
7184 #ifdef EMULTIHOP
7185 yes
7186 #endif
7187
7188 _ACEOF
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190   $EGREP "yes" >/dev/null 2>&1; then :
7191   gl_cv_header_errno_h_EMULTIHOP=hidden
7192 fi
7193 rm -f conftest*
7194
7195         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7196                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
7197 #define _XOPEN_SOURCE_EXTENDED 1
7198 #include <errno.h>
7199 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7200 #include <stdio.h>
7201 #include <stdlib.h>
7202 "; then :
7203
7204 fi
7205
7206         fi
7207       fi
7208
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7211 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7212     case $gl_cv_header_errno_h_EMULTIHOP in
7213       yes | no)
7214         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7215         ;;
7216       *)
7217         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7218         ;;
7219     esac
7220
7221
7222   fi
7223
7224
7225   if test -n "$ERRNO_H"; then
7226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7227 $as_echo_n "checking for ENOLINK value... " >&6; }
7228 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231
7232       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h.  */
7234
7235 #include <errno.h>
7236 #ifdef ENOLINK
7237 yes
7238 #endif
7239
7240 _ACEOF
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242   $EGREP "yes" >/dev/null 2>&1; then :
7243   gl_cv_header_errno_h_ENOLINK=yes
7244 else
7245   gl_cv_header_errno_h_ENOLINK=no
7246 fi
7247 rm -f conftest*
7248
7249       if test $gl_cv_header_errno_h_ENOLINK = no; then
7250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h.  */
7252
7253 #define _XOPEN_SOURCE_EXTENDED 1
7254 #include <errno.h>
7255 #ifdef ENOLINK
7256 yes
7257 #endif
7258
7259 _ACEOF
7260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7261   $EGREP "yes" >/dev/null 2>&1; then :
7262   gl_cv_header_errno_h_ENOLINK=hidden
7263 fi
7264 rm -f conftest*
7265
7266         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7267                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
7268 #define _XOPEN_SOURCE_EXTENDED 1
7269 #include <errno.h>
7270 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7271 #include <stdio.h>
7272 #include <stdlib.h>
7273 "; then :
7274
7275 fi
7276
7277         fi
7278       fi
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7282 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7283     case $gl_cv_header_errno_h_ENOLINK in
7284       yes | no)
7285         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7286         ;;
7287       *)
7288         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7289         ;;
7290     esac
7291
7292
7293   fi
7294
7295
7296   if test -n "$ERRNO_H"; then
7297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7298 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7299 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302
7303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305
7306 #include <errno.h>
7307 #ifdef EOVERFLOW
7308 yes
7309 #endif
7310
7311 _ACEOF
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313   $EGREP "yes" >/dev/null 2>&1; then :
7314   gl_cv_header_errno_h_EOVERFLOW=yes
7315 else
7316   gl_cv_header_errno_h_EOVERFLOW=no
7317 fi
7318 rm -f conftest*
7319
7320       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7321         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h.  */
7323
7324 #define _XOPEN_SOURCE_EXTENDED 1
7325 #include <errno.h>
7326 #ifdef EOVERFLOW
7327 yes
7328 #endif
7329
7330 _ACEOF
7331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332   $EGREP "yes" >/dev/null 2>&1; then :
7333   gl_cv_header_errno_h_EOVERFLOW=hidden
7334 fi
7335 rm -f conftest*
7336
7337         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7338                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
7339 #define _XOPEN_SOURCE_EXTENDED 1
7340 #include <errno.h>
7341 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7342 #include <stdio.h>
7343 #include <stdlib.h>
7344 "; then :
7345
7346 fi
7347
7348         fi
7349       fi
7350
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7353 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7354     case $gl_cv_header_errno_h_EOVERFLOW in
7355       yes | no)
7356         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7357         ;;
7358       *)
7359         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7360         ;;
7361     esac
7362
7363
7364   fi
7365
7366
7367 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7368 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
7369   ac_have_decl=1
7370 else
7371   ac_have_decl=0
7372 fi
7373
7374 cat >>confdefs.h <<_ACEOF
7375 #define HAVE_DECL_STRERROR_R $ac_have_decl
7376 _ACEOF
7377
7378 for ac_func in strerror_r
7379 do :
7380   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7381 if test "x$ac_cv_func_strerror_r" = xyes; then :
7382   cat >>confdefs.h <<_ACEOF
7383 #define HAVE_STRERROR_R 1
7384 _ACEOF
7385
7386 fi
7387 done
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7390 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7391 if ${ac_cv_func_strerror_r_char_p+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394
7395     ac_cv_func_strerror_r_char_p=no
7396     if test $ac_cv_have_decl_strerror_r = yes; then
7397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h.  */
7399 $ac_includes_default
7400 int
7401 main ()
7402 {
7403
7404           char buf[100];
7405           char x = *strerror_r (0, buf, sizeof buf);
7406           char *p = strerror_r (0, buf, sizeof buf);
7407           return !p || x;
7408
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414   ac_cv_func_strerror_r_char_p=yes
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417     else
7418       # strerror_r is not declared.  Choose between
7419       # systems that have relatively inaccessible declarations for the
7420       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
7421       # former has a strerror_r that returns char*, while the latter
7422       # has a strerror_r that returns `int'.
7423       # This test should segfault on the DEC system.
7424       if test "$cross_compiling" = yes; then :
7425   :
7426 else
7427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430         extern char *strerror_r ();
7431 int
7432 main ()
7433 {
7434 char buf[100];
7435           char x = *strerror_r (0, buf, sizeof buf);
7436           return ! isalpha (x);
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 if ac_fn_c_try_run "$LINENO"; then :
7442   ac_cv_func_strerror_r_char_p=yes
7443 fi
7444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7445   conftest.$ac_objext conftest.beam conftest.$ac_ext
7446 fi
7447
7448     fi
7449
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7452 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7453 if test $ac_cv_func_strerror_r_char_p = yes; then
7454
7455 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7456
7457 fi
7458
7459
7460   XGETTEXT_EXTRA_OPTIONS=
7461
7462
7463
7464
7465
7466   GNULIB_CREAT=0;
7467   GNULIB_FCNTL=0;
7468   GNULIB_NONBLOCKING=0;
7469   GNULIB_OPEN=0;
7470   GNULIB_OPENAT=0;
7471     HAVE_FCNTL=1;
7472   HAVE_OPENAT=1;
7473   REPLACE_CREAT=0;
7474   REPLACE_FCNTL=0;
7475   REPLACE_OPEN=0;
7476   REPLACE_OPENAT=0;
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7490 $as_echo_n "checking for working fcntl.h... " >&6; }
7491 if ${gl_cv_header_working_fcntl_h+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   if test "$cross_compiling" = yes; then :
7495   case "$host_os" in
7496                   # Guess 'no' on native Windows.
7497           mingw*) gl_cv_header_working_fcntl_h='no' ;;
7498           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
7499         esac
7500
7501 else
7502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h.  */
7504 #include <sys/types.h>
7505            #include <sys/stat.h>
7506            #if HAVE_UNISTD_H
7507            # include <unistd.h>
7508            #else /* on Windows with MSVC */
7509            # include <io.h>
7510            # include <stdlib.h>
7511            # defined sleep(n) _sleep ((n) * 1000)
7512            #endif
7513            #include <fcntl.h>
7514            #ifndef O_NOATIME
7515             #define O_NOATIME 0
7516            #endif
7517            #ifndef O_NOFOLLOW
7518             #define O_NOFOLLOW 0
7519            #endif
7520            static int const constants[] =
7521             {
7522               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7523               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7524             };
7525
7526 int
7527 main ()
7528 {
7529
7530             int result = !constants;
7531             #if HAVE_SYMLINK
7532             {
7533               static char const sym[] = "conftest.sym";
7534               if (symlink ("/dev/null", sym) != 0)
7535                 result |= 2;
7536               else
7537                 {
7538                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7539                   if (fd >= 0)
7540                     {
7541                       close (fd);
7542                       result |= 4;
7543                     }
7544                 }
7545               if (unlink (sym) != 0 || symlink (".", sym) != 0)
7546                 result |= 2;
7547               else
7548                 {
7549                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7550                   if (fd >= 0)
7551                     {
7552                       close (fd);
7553                       result |= 4;
7554                     }
7555                 }
7556               unlink (sym);
7557             }
7558             #endif
7559             {
7560               static char const file[] = "confdefs.h";
7561               int fd = open (file, O_RDONLY | O_NOATIME);
7562               if (fd < 0)
7563                 result |= 8;
7564               else
7565                 {
7566                   struct stat st0;
7567                   if (fstat (fd, &st0) != 0)
7568                     result |= 16;
7569                   else
7570                     {
7571                       char c;
7572                       sleep (1);
7573                       if (read (fd, &c, 1) != 1)
7574                         result |= 24;
7575                       else
7576                         {
7577                           if (close (fd) != 0)
7578                             result |= 32;
7579                           else
7580                             {
7581                               struct stat st1;
7582                               if (stat (file, &st1) != 0)
7583                                 result |= 40;
7584                               else
7585                                 if (st0.st_atime != st1.st_atime)
7586                                   result |= 64;
7587                             }
7588                         }
7589                     }
7590                 }
7591             }
7592             return result;
7593   ;
7594   return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_run "$LINENO"; then :
7598   gl_cv_header_working_fcntl_h=yes
7599 else
7600   case $? in #(
7601         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7602         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7603         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7604          *) gl_cv_header_working_fcntl_h='no';;
7605         esac
7606 fi
7607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7608   conftest.$ac_objext conftest.beam conftest.$ac_ext
7609 fi
7610
7611
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7614 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7615
7616   case $gl_cv_header_working_fcntl_h in #(
7617   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7618   *) ac_val=1;;
7619   esac
7620
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_WORKING_O_NOATIME $ac_val
7623 _ACEOF
7624
7625
7626   case $gl_cv_header_working_fcntl_h in #(
7627   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7628   *) ac_val=1;;
7629   esac
7630
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7633 _ACEOF
7634
7635
7636 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7637 if test "x$ac_cv_type_pid_t" = xyes; then :
7638
7639 else
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define pid_t int
7643 _ACEOF
7644
7645 fi
7646
7647 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7648 if test "x$ac_cv_type_mode_t" = xyes; then :
7649
7650 else
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define mode_t int
7654 _ACEOF
7655
7656 fi
7657
7658
7659   ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
7660 if test "x$ac_cv_func_eaccess" = xyes; then :
7661
7662 else
7663
7664 $as_echo "#define eaccess access" >>confdefs.h
7665
7666 fi
7667
7668
7669
7670
7671 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
7672 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
7673   ac_have_decl=1
7674 else
7675   ac_have_decl=0
7676 fi
7677
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
7680 _ACEOF
7681
7682
7683   GNULIB__EXIT=0;
7684   GNULIB_ATOLL=0;
7685   GNULIB_CALLOC_POSIX=0;
7686   GNULIB_CANONICALIZE_FILE_NAME=0;
7687   GNULIB_GETLOADAVG=0;
7688   GNULIB_GETSUBOPT=0;
7689   GNULIB_GRANTPT=0;
7690   GNULIB_MALLOC_POSIX=0;
7691   GNULIB_MBTOWC=0;
7692   GNULIB_MKDTEMP=0;
7693   GNULIB_MKOSTEMP=0;
7694   GNULIB_MKOSTEMPS=0;
7695   GNULIB_MKSTEMP=0;
7696   GNULIB_MKSTEMPS=0;
7697   GNULIB_POSIX_OPENPT=0;
7698   GNULIB_PTSNAME=0;
7699   GNULIB_PTSNAME_R=0;
7700   GNULIB_PUTENV=0;
7701   GNULIB_QSORT_R=0;
7702   GNULIB_RANDOM=0;
7703   GNULIB_RANDOM_R=0;
7704   GNULIB_REALLOCARRAY=0;
7705   GNULIB_REALLOC_POSIX=0;
7706   GNULIB_REALPATH=0;
7707   GNULIB_RPMATCH=0;
7708   GNULIB_SECURE_GETENV=0;
7709   GNULIB_SETENV=0;
7710   GNULIB_STRTOD=0;
7711   GNULIB_STRTOLD=0;
7712   GNULIB_STRTOLL=0;
7713   GNULIB_STRTOULL=0;
7714   GNULIB_SYSTEM_POSIX=0;
7715   GNULIB_UNLOCKPT=0;
7716   GNULIB_UNSETENV=0;
7717   GNULIB_WCTOMB=0;
7718     HAVE__EXIT=1;
7719   HAVE_ATOLL=1;
7720   HAVE_CANONICALIZE_FILE_NAME=1;
7721   HAVE_DECL_GETLOADAVG=1;
7722   HAVE_GETSUBOPT=1;
7723   HAVE_GRANTPT=1;
7724   HAVE_INITSTATE=1;
7725   HAVE_DECL_INITSTATE=1;
7726   HAVE_MBTOWC=1;
7727   HAVE_MKDTEMP=1;
7728   HAVE_MKOSTEMP=1;
7729   HAVE_MKOSTEMPS=1;
7730   HAVE_MKSTEMP=1;
7731   HAVE_MKSTEMPS=1;
7732   HAVE_POSIX_OPENPT=1;
7733   HAVE_PTSNAME=1;
7734   HAVE_PTSNAME_R=1;
7735   HAVE_QSORT_R=1;
7736   HAVE_RANDOM=1;
7737   HAVE_RANDOM_H=1;
7738   HAVE_RANDOM_R=1;
7739   HAVE_REALLOCARRAY=1;
7740   HAVE_REALPATH=1;
7741   HAVE_RPMATCH=1;
7742   HAVE_SECURE_GETENV=1;
7743   HAVE_SETENV=1;
7744   HAVE_DECL_SETENV=1;
7745   HAVE_SETSTATE=1;
7746   HAVE_DECL_SETSTATE=1;
7747   HAVE_STRTOD=1;
7748   HAVE_STRTOLD=1;
7749   HAVE_STRTOLL=1;
7750   HAVE_STRTOULL=1;
7751   HAVE_STRUCT_RANDOM_DATA=1;
7752   HAVE_SYS_LOADAVG_H=0;
7753   HAVE_UNLOCKPT=1;
7754   HAVE_DECL_UNSETENV=1;
7755   REPLACE_CALLOC=0;
7756   REPLACE_CANONICALIZE_FILE_NAME=0;
7757   REPLACE_INITSTATE=0;
7758   REPLACE_MALLOC=0;
7759   REPLACE_MBTOWC=0;
7760   REPLACE_MKSTEMP=0;
7761   REPLACE_PTSNAME=0;
7762   REPLACE_PTSNAME_R=0;
7763   REPLACE_PUTENV=0;
7764   REPLACE_QSORT_R=0;
7765   REPLACE_RANDOM=0;
7766   REPLACE_RANDOM_R=0;
7767   REPLACE_REALLOC=0;
7768   REPLACE_REALPATH=0;
7769   REPLACE_SETENV=0;
7770   REPLACE_SETSTATE=0;
7771   REPLACE_STRTOD=0;
7772   REPLACE_STRTOLD=0;
7773   REPLACE_UNSETENV=0;
7774   REPLACE_WCTOMB=0;
7775
7776
7777
7778
7779
7780
7781
7782
7783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h.  */
7785
7786 #ifdef _MSC_VER
7787 MicrosoftCompiler
7788 #endif
7789
7790 _ACEOF
7791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7792   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
7793   gl_asmext='asm'
7794      gl_c_asm_opt='-c -Fa'
7795
7796 else
7797   gl_asmext='s'
7798      gl_c_asm_opt='-S'
7799
7800 fi
7801 rm -f conftest*
7802
7803
7804
7805
7806
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
7808 $as_echo_n "checking host CPU and C ABI... " >&6; }
7809 if ${gl_cv_host_cpu_c_abi+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   case "$host_cpu" in
7813
7814        i[34567]86 )
7815          gl_cv_host_cpu_c_abi=i386
7816          ;;
7817
7818        x86_64 )
7819          # On x86_64 systems, the C compiler may be generating code in one of
7820          # these ABIs:
7821          # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7822          # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7823          #   with native Windows (mingw, MSVC).
7824          # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7825          # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h.  */
7828 #if (defined __x86_64__ || defined __amd64__ \
7829                      || defined _M_X64 || defined _M_AMD64)
7830                  int ok;
7831                 #else
7832                  error fail
7833                 #endif
7834
7835 _ACEOF
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839 #if defined __ILP32__ || defined _ILP32
7840                     int ok;
7841                    #else
7842                     error fail
7843                    #endif
7844
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847   gl_cv_host_cpu_c_abi=x86_64-x32
7848 else
7849   gl_cv_host_cpu_c_abi=x86_64
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 else
7853   gl_cv_host_cpu_c_abi=i386
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856          ;;
7857
7858        alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
7859          gl_cv_host_cpu_c_abi=alpha
7860          ;;
7861
7862        arm* | aarch64 )
7863          # Assume arm with EABI.
7864          # On arm64 systems, the C compiler may be generating code in one of
7865          # these ABIs:
7866          # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7867          # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7868          # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7869          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h.  */
7871 #ifdef __aarch64__
7872                  int ok;
7873                 #else
7874                  error fail
7875                 #endif
7876
7877 _ACEOF
7878 if ac_fn_c_try_compile "$LINENO"; then :
7879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h.  */
7881 #if defined __ILP32__ || defined _ILP32
7882                    int ok;
7883                   #else
7884                    error fail
7885                   #endif
7886
7887 _ACEOF
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889   gl_cv_host_cpu_c_abi=arm64-ilp32
7890 else
7891   gl_cv_host_cpu_c_abi=arm64
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 else
7895   # Don't distinguish little-endian and big-endian arm, since they
7896             # don't require different machine code for simple operations and
7897             # since the user can distinguish them through the preprocessor
7898             # defines __ARMEL__ vs. __ARMEB__.
7899             # But distinguish arm which passes floating-point arguments and
7900             # return values in integer registers (r0, r1, ...) - this is
7901             # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
7902             # passes them in float registers (s0, s1, ...) and double registers
7903             # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
7904             # sets the preprocessor defines __ARM_PCS (for the first case) and
7905             # __ARM_PCS_VFP (for the second case), but older GCC does not.
7906             echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
7907             # Look for a reference to the register d0 in the .s file.
7908             { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
7909   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913   test $ac_status = 0; }; } >/dev/null 2>&1
7914             if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
7915               gl_cv_host_cpu_c_abi=armhf
7916             else
7917               gl_cv_host_cpu_c_abi=arm
7918             fi
7919             rm -f conftest*
7920
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923          ;;
7924
7925        hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7926          # On hppa, the C compiler may be generating 32-bit code or 64-bit
7927          # code. In the latter case, it defines _LP64 and __LP64__.
7928          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #ifdef __LP64__
7931                  int ok;
7932                 #else
7933                  error fail
7934                 #endif
7935
7936 _ACEOF
7937 if ac_fn_c_try_compile "$LINENO"; then :
7938   gl_cv_host_cpu_c_abi=hppa64
7939 else
7940   gl_cv_host_cpu_c_abi=hppa
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943          ;;
7944
7945        ia64* )
7946          # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7947          # 32-bit code. In the latter case, it defines _ILP32.
7948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h.  */
7950 #ifdef _ILP32
7951                  int ok;
7952                 #else
7953                  error fail
7954                 #endif
7955
7956 _ACEOF
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958   gl_cv_host_cpu_c_abi=ia64-ilp32
7959 else
7960   gl_cv_host_cpu_c_abi=ia64
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963          ;;
7964
7965        mips* )
7966          # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7967          # at 32.
7968          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h.  */
7970 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7971                  int ok;
7972                 #else
7973                  error fail
7974                 #endif
7975
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978   gl_cv_host_cpu_c_abi=mips64
7979 else
7980   # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
7981             # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
7982             # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
7983             # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
7984             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 #if (_MIPS_SIM == _ABIN32)
7987                     int ok;
7988                    #else
7989                     error fail
7990                    #endif
7991
7992 _ACEOF
7993 if ac_fn_c_try_compile "$LINENO"; then :
7994   gl_cv_host_cpu_c_abi=mipsn32
7995 else
7996   gl_cv_host_cpu_c_abi=mips
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001          ;;
8002
8003        powerpc* )
8004          # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8005          # No need to distinguish them here; the caller may distinguish
8006          # them based on the OS.
8007          # On powerpc64 systems, the C compiler may still be generating
8008          # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8009          # be generating 64-bit code.
8010          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #if defined __powerpc64__ || defined _ARCH_PPC64
8013                  int ok;
8014                 #else
8015                  error fail
8016                 #endif
8017
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020   # On powerpc64, there are two ABIs on Linux: The AIX compatible
8021             # one and the ELFv2 one. The latter defines _CALL_ELF=2.
8022             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h.  */
8024 #if defined _CALL_ELF && _CALL_ELF == 2
8025                     int ok;
8026                    #else
8027                     error fail
8028                    #endif
8029
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032   gl_cv_host_cpu_c_abi=powerpc64-elfv2
8033 else
8034   gl_cv_host_cpu_c_abi=powerpc64
8035 fi
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037
8038 else
8039   gl_cv_host_cpu_c_abi=powerpc
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042          ;;
8043
8044        rs6000 )
8045          gl_cv_host_cpu_c_abi=powerpc
8046          ;;
8047
8048        riscv32 | riscv64 )
8049          # There are 2 architectures (with variants): rv32* and rv64*.
8050          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h.  */
8052 #if __riscv_xlen == 64
8053                   int ok;
8054                 #else
8055                   error fail
8056                 #endif
8057
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060   cpu=riscv64
8061 else
8062   cpu=riscv32
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065          # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8066          # Size of 'long' and 'void *':
8067          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h.  */
8069 #if defined __LP64__
8070                   int ok;
8071                 #else
8072                   error fail
8073                 #endif
8074
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"; then :
8077   main_abi=lp64
8078 else
8079   main_abi=ilp32
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082          # Float ABIs:
8083          # __riscv_float_abi_double:
8084          #   'float' and 'double' are passed in floating-point registers.
8085          # __riscv_float_abi_single:
8086          #   'float' are passed in floating-point registers.
8087          # __riscv_float_abi_soft:
8088          #   No values are passed in floating-point registers.
8089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h.  */
8091 #if defined __riscv_float_abi_double
8092                   int ok;
8093                 #else
8094                   error fail
8095                 #endif
8096
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099   float_abi=d
8100 else
8101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h.  */
8103 #if defined __riscv_float_abi_single
8104                      int ok;
8105                    #else
8106                      error fail
8107                    #endif
8108
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111   float_abi=f
8112 else
8113   float_abi=''
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119          gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
8120          ;;
8121
8122        s390* )
8123          # On s390x, the C compiler may be generating 64-bit (= s390x) code
8124          # or 31-bit (= s390) code.
8125          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h.  */
8127 #if defined __LP64__ || defined __s390x__
8128                   int ok;
8129                 #else
8130                   error fail
8131                 #endif
8132
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135   gl_cv_host_cpu_c_abi=s390x
8136 else
8137   gl_cv_host_cpu_c_abi=s390
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140          ;;
8141
8142        sparc | sparc64 )
8143          # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8144          # C compiler still generates 32-bit code.
8145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h.  */
8147 #if defined __sparcv9 || defined __arch64__
8148                  int ok;
8149                 #else
8150                  error fail
8151                 #endif
8152
8153 _ACEOF
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155   gl_cv_host_cpu_c_abi=sparc64
8156 else
8157   gl_cv_host_cpu_c_abi=sparc
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160          ;;
8161
8162        *)
8163          gl_cv_host_cpu_c_abi="$host_cpu"
8164          ;;
8165      esac
8166
8167 fi
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
8169 $as_echo "$gl_cv_host_cpu_c_abi" >&6; }
8170
8171     HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
8172   HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
8173
8174
8175
8176   # This was
8177   #   AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
8178   #   AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
8179   # earlier, but KAI C++ 3.2d doesn't like this.
8180   sed -e 's/-/_/g' >> confdefs.h <<EOF
8181 #ifndef __${HOST_CPU}__
8182 #define __${HOST_CPU}__ 1
8183 #endif
8184 #ifndef __${HOST_CPU_C_ABI}__
8185 #define __${HOST_CPU_C_ABI}__ 1
8186 #endif
8187 EOF
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203      if test $gl_cv_have_include_next = yes; then
8204        gl_cv_next_limits_h='<'limits.h'>'
8205      else
8206        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
8207 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
8208 if ${gl_cv_next_limits_h+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211
8212              if test $ac_cv_header_limits_h = yes; then
8213
8214
8215
8216
8217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h.  */
8219 #include <limits.h>
8220 _ACEOF
8221                 case "$host_os" in
8222     aix*) gl_absname_cpp="$ac_cpp -C" ;;
8223     *)    gl_absname_cpp="$ac_cpp" ;;
8224   esac
8225
8226   case "$host_os" in
8227     mingw*)
8228                                           gl_dirsep_regex='[/\\]'
8229       ;;
8230     *)
8231       gl_dirsep_regex='\/'
8232       ;;
8233   esac
8234       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8235   gl_header_literal_regex=`echo 'limits.h' \
8236                            | sed -e "$gl_make_literal_regex_sed"`
8237   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8238       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8239       s|^/[^/]|//&|
8240       p
8241       q
8242     }'
8243
8244         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8245   sed -n "$gl_absolute_header_sed"`
8246
8247            gl_header=$gl_cv_absolute_limits_h
8248            gl_cv_next_limits_h='"'$gl_header'"'
8249           else
8250                gl_cv_next_limits_h='<'limits.h'>'
8251              fi
8252
8253
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8256 $as_echo "$gl_cv_next_limits_h" >&6; }
8257      fi
8258      NEXT_LIMITS_H=$gl_cv_next_limits_h
8259
8260      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8261        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8262        gl_next_as_first_directive='<'limits.h'>'
8263      else
8264        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8265        gl_next_as_first_directive=$gl_cv_next_limits_h
8266      fi
8267      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
8268
8269
8270
8271
8272
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
8274 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
8275 if ${gl_cv_header_limits_width+:} false; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h.  */
8280 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8281              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8282             #endif
8283             #include <limits.h>
8284             long long llm = LLONG_MAX;
8285             int wb = WORD_BIT;
8286             int ullw = ULLONG_WIDTH;
8287
8288 int
8289 main ()
8290 {
8291
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297   gl_cv_header_limits_width=yes
8298 else
8299   gl_cv_header_limits_width=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8304 $as_echo "$gl_cv_header_limits_width" >&6; }
8305   if test "$gl_cv_header_limits_width" = yes; then
8306     LIMITS_H=
8307   else
8308     LIMITS_H=limits.h
8309   fi
8310
8311    if test -n "$LIMITS_H"; then
8312   GL_GENERATE_LIMITS_H_TRUE=
8313   GL_GENERATE_LIMITS_H_FALSE='#'
8314 else
8315   GL_GENERATE_LIMITS_H_TRUE='#'
8316   GL_GENERATE_LIMITS_H_FALSE=
8317 fi
8318
8319
8320
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8322 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
8323 if ${gl_cv_func_malloc_posix+:} false; then :
8324   $as_echo_n "(cached) " >&6
8325 else
8326
8327                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h.  */
8329
8330 int
8331 main ()
8332 {
8333 #if defined _WIN32 && ! defined __CYGWIN__
8334              choke me
8335              #endif
8336
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342   gl_cv_func_malloc_posix=yes
8343 else
8344   gl_cv_func_malloc_posix=no
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
8350 $as_echo "$gl_cv_func_malloc_posix" >&6; }
8351
8352
8353
8354
8355
8356     gl_cv_c_multiarch=no
8357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h.  */
8359 #ifndef __APPLE_CC__
8360          not a universal capable compiler
8361         #endif
8362         typedef int dummy;
8363
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366
8367                arch=
8368      prev=
8369      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8370        if test -n "$prev"; then
8371          case $word in
8372            i?86 | x86_64 | ppc | ppc64)
8373              if test -z "$arch" || test "$arch" = "$word"; then
8374                arch="$word"
8375              else
8376                gl_cv_c_multiarch=yes
8377              fi
8378              ;;
8379          esac
8380          prev=
8381        else
8382          if test "x$word" = "x-arch"; then
8383            prev=arch
8384          fi
8385        fi
8386      done
8387
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390   if test $gl_cv_c_multiarch = yes; then
8391     APPLE_UNIVERSAL_BUILD=1
8392   else
8393     APPLE_UNIVERSAL_BUILD=0
8394   fi
8395
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8398 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8399 if ${ac_cv_header_stdbool_h+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h.  */
8404
8405              #include <stdbool.h>
8406
8407              #ifdef __cplusplus
8408               typedef bool Bool;
8409              #else
8410               typedef _Bool Bool;
8411               #ifndef bool
8412                "error: bool is not defined"
8413               #endif
8414               #ifndef false
8415                "error: false is not defined"
8416               #endif
8417               #if false
8418                "error: false is not 0"
8419               #endif
8420               #ifndef true
8421                "error: true is not defined"
8422               #endif
8423               #if true != 1
8424                "error: true is not 1"
8425               #endif
8426              #endif
8427
8428              #ifndef __bool_true_false_are_defined
8429               "error: __bool_true_false_are_defined is not defined"
8430              #endif
8431
8432              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
8433
8434              char a[true == 1 ? 1 : -1];
8435              char b[false == 0 ? 1 : -1];
8436              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8437              char d[(bool) 0.5 == true ? 1 : -1];
8438              /* See body of main program for 'e'.  */
8439              char f[(Bool) 0.0 == false ? 1 : -1];
8440              char g[true];
8441              char h[sizeof (Bool)];
8442              char i[sizeof s.t];
8443              enum { j = false, k = true, l = false * true, m = true * 256 };
8444              /* The following fails for
8445                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8446              Bool n[m];
8447              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8448              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8449              /* Catch a bug in an HP-UX C compiler.  See
8450                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8451                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
8452               */
8453              Bool q = true;
8454              Bool *pq = &q;
8455              bool *qq = &q;
8456
8457 int
8458 main ()
8459 {
8460
8461              bool e = &s;
8462              *pq |= q; *pq |= ! q;
8463              *qq |= q; *qq |= ! q;
8464              /* Refer to every declared value, to avoid compiler optimizations.  */
8465              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8466                      + !m + !n + !o + !p + !q + !pq + !qq);
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473   ac_cv_header_stdbool_h=yes
8474 else
8475   ac_cv_header_stdbool_h=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8480 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8481    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8482 if test "x$ac_cv_type__Bool" = xyes; then :
8483
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE__BOOL 1
8486 _ACEOF
8487
8488
8489 fi
8490
8491
8492
8493     REPLACE_NULL=0;
8494   HAVE_MAX_ALIGN_T=1;
8495   HAVE_WCHAR_T=1;
8496
8497
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8499 $as_echo_n "checking for wchar_t... " >&6; }
8500 if ${gt_cv_c_wchar_t+:} false; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h.  */
8505 #include <stddef.h>
8506             wchar_t foo = (wchar_t)'\0';
8507 int
8508 main ()
8509 {
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516   gt_cv_c_wchar_t=yes
8517 else
8518   gt_cv_c_wchar_t=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8523 $as_echo "$gt_cv_c_wchar_t" >&6; }
8524   if test $gt_cv_c_wchar_t = yes; then
8525
8526 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8527
8528   fi
8529
8530
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8532 $as_echo_n "checking for wint_t... " >&6; }
8533 if ${gt_cv_c_wint_t+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h.  */
8538
8539 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8540    <wchar.h>.
8541    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8542    before <wchar.h>.  */
8543 #include <stddef.h>
8544 #include <stdio.h>
8545 #include <time.h>
8546 #include <wchar.h>
8547             wint_t foo = (wchar_t)'\0';
8548 int
8549 main ()
8550 {
8551
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557   gt_cv_c_wint_t=yes
8558 else
8559   gt_cv_c_wint_t=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8564 $as_echo "$gt_cv_c_wint_t" >&6; }
8565   if test $gt_cv_c_wint_t = yes; then
8566
8567 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8568
8569
8570             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
8571 $as_echo_n "checking whether wint_t is too small... " >&6; }
8572 if ${gl_cv_type_wint_t_too_small+:} false; then :
8573   $as_echo_n "(cached) " >&6
8574 else
8575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h.  */
8577
8578 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8579    <wchar.h>.
8580    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8581    included before <wchar.h>.  */
8582 #if !(defined __GLIBC__ && !defined __UCLIBC__)
8583 # include <stddef.h>
8584 # include <stdio.h>
8585 # include <time.h>
8586 #endif
8587 #include <wchar.h>
8588               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
8589
8590 int
8591 main ()
8592 {
8593
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599   gl_cv_type_wint_t_too_small=no
8600 else
8601   gl_cv_type_wint_t_too_small=yes
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
8606 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
8607     if test $gl_cv_type_wint_t_too_small = yes; then
8608       GNULIB_OVERRIDES_WINT_T=1
8609     else
8610       GNULIB_OVERRIDES_WINT_T=0
8611     fi
8612   else
8613     GNULIB_OVERRIDES_WINT_T=0
8614   fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8628
8629
8630 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8631
8632
8633
8634   if test $ac_cv_header_wchar_h = yes; then
8635     HAVE_WCHAR_H=1
8636   else
8637     HAVE_WCHAR_H=0
8638   fi
8639
8640
8641       if test $ac_cv_header_inttypes_h = yes; then
8642     HAVE_INTTYPES_H=1
8643   else
8644     HAVE_INTTYPES_H=0
8645   fi
8646
8647
8648       if test $ac_cv_header_sys_types_h = yes; then
8649     HAVE_SYS_TYPES_H=1
8650   else
8651     HAVE_SYS_TYPES_H=0
8652   fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664      if test $gl_cv_have_include_next = yes; then
8665        gl_cv_next_stdint_h='<'stdint.h'>'
8666      else
8667        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8668 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8669 if ${gl_cv_next_stdint_h+:} false; then :
8670   $as_echo_n "(cached) " >&6
8671 else
8672
8673              if test $ac_cv_header_stdint_h = yes; then
8674
8675
8676
8677
8678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h.  */
8680 #include <stdint.h>
8681 _ACEOF
8682                 case "$host_os" in
8683     aix*) gl_absname_cpp="$ac_cpp -C" ;;
8684     *)    gl_absname_cpp="$ac_cpp" ;;
8685   esac
8686
8687   case "$host_os" in
8688     mingw*)
8689                                           gl_dirsep_regex='[/\\]'
8690       ;;
8691     *)
8692       gl_dirsep_regex='\/'
8693       ;;
8694   esac
8695       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8696   gl_header_literal_regex=`echo 'stdint.h' \
8697                            | sed -e "$gl_make_literal_regex_sed"`
8698   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8699       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8700       s|^/[^/]|//&|
8701       p
8702       q
8703     }'
8704
8705         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8706   sed -n "$gl_absolute_header_sed"`
8707
8708            gl_header=$gl_cv_absolute_stdint_h
8709            gl_cv_next_stdint_h='"'$gl_header'"'
8710           else
8711                gl_cv_next_stdint_h='<'stdint.h'>'
8712              fi
8713
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8717 $as_echo "$gl_cv_next_stdint_h" >&6; }
8718      fi
8719      NEXT_STDINT_H=$gl_cv_next_stdint_h
8720
8721      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8722        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8723        gl_next_as_first_directive='<'stdint.h'>'
8724      else
8725        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8726        gl_next_as_first_directive=$gl_cv_next_stdint_h
8727      fi
8728      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8729
8730
8731
8732
8733   if test $ac_cv_header_stdint_h = yes; then
8734     HAVE_STDINT_H=1
8735   else
8736     HAVE_STDINT_H=0
8737   fi
8738
8739
8740     if test $ac_cv_header_stdint_h = yes; then
8741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8742 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8743 if ${gl_cv_header_working_stdint_h+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   gl_cv_header_working_stdint_h=no
8747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h.  */
8749
8750
8751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8752 #define __STDC_CONSTANT_MACROS 1
8753 #define __STDC_LIMIT_MACROS 1
8754 #include <stdint.h>
8755 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
8756 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8757 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8758 #endif
8759
8760
8761   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8762      included before <wchar.h>.  */
8763   #include <stddef.h>
8764   #include <signal.h>
8765   #if HAVE_WCHAR_H
8766   # include <stdio.h>
8767   # include <time.h>
8768   # include <wchar.h>
8769   #endif
8770
8771
8772 #ifdef INT8_MAX
8773 int8_t a1 = INT8_MAX;
8774 int8_t a1min = INT8_MIN;
8775 #endif
8776 #ifdef INT16_MAX
8777 int16_t a2 = INT16_MAX;
8778 int16_t a2min = INT16_MIN;
8779 #endif
8780 #ifdef INT32_MAX
8781 int32_t a3 = INT32_MAX;
8782 int32_t a3min = INT32_MIN;
8783 #endif
8784 #ifdef INT64_MAX
8785 int64_t a4 = INT64_MAX;
8786 int64_t a4min = INT64_MIN;
8787 #endif
8788 #ifdef UINT8_MAX
8789 uint8_t b1 = UINT8_MAX;
8790 #else
8791 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8792 #endif
8793 #ifdef UINT16_MAX
8794 uint16_t b2 = UINT16_MAX;
8795 #endif
8796 #ifdef UINT32_MAX
8797 uint32_t b3 = UINT32_MAX;
8798 #endif
8799 #ifdef UINT64_MAX
8800 uint64_t b4 = UINT64_MAX;
8801 #endif
8802 int_least8_t c1 = INT8_C (0x7f);
8803 int_least8_t c1max = INT_LEAST8_MAX;
8804 int_least8_t c1min = INT_LEAST8_MIN;
8805 int_least16_t c2 = INT16_C (0x7fff);
8806 int_least16_t c2max = INT_LEAST16_MAX;
8807 int_least16_t c2min = INT_LEAST16_MIN;
8808 int_least32_t c3 = INT32_C (0x7fffffff);
8809 int_least32_t c3max = INT_LEAST32_MAX;
8810 int_least32_t c3min = INT_LEAST32_MIN;
8811 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8812 int_least64_t c4max = INT_LEAST64_MAX;
8813 int_least64_t c4min = INT_LEAST64_MIN;
8814 uint_least8_t d1 = UINT8_C (0xff);
8815 uint_least8_t d1max = UINT_LEAST8_MAX;
8816 uint_least16_t d2 = UINT16_C (0xffff);
8817 uint_least16_t d2max = UINT_LEAST16_MAX;
8818 uint_least32_t d3 = UINT32_C (0xffffffff);
8819 uint_least32_t d3max = UINT_LEAST32_MAX;
8820 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8821 uint_least64_t d4max = UINT_LEAST64_MAX;
8822 int_fast8_t e1 = INT_FAST8_MAX;
8823 int_fast8_t e1min = INT_FAST8_MIN;
8824 int_fast16_t e2 = INT_FAST16_MAX;
8825 int_fast16_t e2min = INT_FAST16_MIN;
8826 int_fast32_t e3 = INT_FAST32_MAX;
8827 int_fast32_t e3min = INT_FAST32_MIN;
8828 int_fast64_t e4 = INT_FAST64_MAX;
8829 int_fast64_t e4min = INT_FAST64_MIN;
8830 uint_fast8_t f1 = UINT_FAST8_MAX;
8831 uint_fast16_t f2 = UINT_FAST16_MAX;
8832 uint_fast32_t f3 = UINT_FAST32_MAX;
8833 uint_fast64_t f4 = UINT_FAST64_MAX;
8834 #ifdef INTPTR_MAX
8835 intptr_t g = INTPTR_MAX;
8836 intptr_t gmin = INTPTR_MIN;
8837 #endif
8838 #ifdef UINTPTR_MAX
8839 uintptr_t h = UINTPTR_MAX;
8840 #endif
8841 intmax_t i = INTMAX_MAX;
8842 uintmax_t j = UINTMAX_MAX;
8843
8844 /* Check that SIZE_MAX has the correct type, if possible.  */
8845 #if 201112 <= __STDC_VERSION__
8846 int k = _Generic (SIZE_MAX, size_t: 0);
8847 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
8848        || (0x5110 <= __SUNPRO_C && !__STDC__))
8849 extern size_t k;
8850 extern __typeof__ (SIZE_MAX) k;
8851 #endif
8852
8853 #include <limits.h> /* for CHAR_BIT */
8854 #define TYPE_MINIMUM(t) \
8855   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8856 #define TYPE_MAXIMUM(t) \
8857   ((t) ((t) 0 < (t) -1 \
8858         ? (t) -1 \
8859         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8860 struct s {
8861   int check_PTRDIFF:
8862       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8863       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8864       ? 1 : -1;
8865   /* Detect bug in FreeBSD 6.0 / ia64.  */
8866   int check_SIG_ATOMIC:
8867       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8868       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8869       ? 1 : -1;
8870   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8871   int check_WCHAR:
8872       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8873       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8874       ? 1 : -1;
8875   /* Detect bug in mingw.  */
8876   int check_WINT:
8877       WINT_MIN == TYPE_MINIMUM (wint_t)
8878       && WINT_MAX == TYPE_MAXIMUM (wint_t)
8879       ? 1 : -1;
8880
8881   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
8882   int check_UINT8_C:
8883         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8884   int check_UINT16_C:
8885         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8886
8887   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
8888 #ifdef UINT8_MAX
8889   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8890 #endif
8891 #ifdef UINT16_MAX
8892   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8893 #endif
8894 #ifdef UINT32_MAX
8895   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8896 #endif
8897 #ifdef UINT64_MAX
8898   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8899 #endif
8900   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8901   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8902   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8903   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8904   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8905   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8906   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8907   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8908   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8909   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8910   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8911 };
8912
8913 int
8914 main ()
8915 {
8916
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_compile "$LINENO"; then :
8922                                                     if test "$cross_compiling" = yes; then :
8923   case "$host_os" in
8924                          # Guess yes on native Windows.
8925                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
8926                          # In general, assume it works.
8927                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
8928                esac
8929
8930 else
8931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h.  */
8933
8934
8935 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8936 #define __STDC_CONSTANT_MACROS 1
8937 #define __STDC_LIMIT_MACROS 1
8938 #include <stdint.h>
8939
8940
8941   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8942      included before <wchar.h>.  */
8943   #include <stddef.h>
8944   #include <signal.h>
8945   #if HAVE_WCHAR_H
8946   # include <stdio.h>
8947   # include <time.h>
8948   # include <wchar.h>
8949   #endif
8950
8951
8952 #include <stdio.h>
8953 #include <string.h>
8954 #define MVAL(macro) MVAL1(macro)
8955 #define MVAL1(expression) #expression
8956 static const char *macro_values[] =
8957   {
8958 #ifdef INT8_MAX
8959     MVAL (INT8_MAX),
8960 #endif
8961 #ifdef INT16_MAX
8962     MVAL (INT16_MAX),
8963 #endif
8964 #ifdef INT32_MAX
8965     MVAL (INT32_MAX),
8966 #endif
8967 #ifdef INT64_MAX
8968     MVAL (INT64_MAX),
8969 #endif
8970 #ifdef UINT8_MAX
8971     MVAL (UINT8_MAX),
8972 #endif
8973 #ifdef UINT16_MAX
8974     MVAL (UINT16_MAX),
8975 #endif
8976 #ifdef UINT32_MAX
8977     MVAL (UINT32_MAX),
8978 #endif
8979 #ifdef UINT64_MAX
8980     MVAL (UINT64_MAX),
8981 #endif
8982     NULL
8983   };
8984
8985 int
8986 main ()
8987 {
8988
8989   const char **mv;
8990   for (mv = macro_values; *mv != NULL; mv++)
8991     {
8992       const char *value = *mv;
8993       /* Test whether it looks like a cast expression.  */
8994       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8995           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8996           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8997           || strncmp (value, "((int)"/*)*/, 6) == 0
8998           || strncmp (value, "((signed short)"/*)*/, 15) == 0
8999           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
9000         return mv - macro_values + 1;
9001     }
9002   return 0;
9003
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 if ac_fn_c_try_run "$LINENO"; then :
9009   gl_cv_header_working_stdint_h=yes
9010 fi
9011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9012   conftest.$ac_objext conftest.beam conftest.$ac_ext
9013 fi
9014
9015
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
9021 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
9022   fi
9023
9024   HAVE_C99_STDINT_H=0
9025   HAVE_SYS_BITYPES_H=0
9026   HAVE_SYS_INTTYPES_H=0
9027   STDINT_H=stdint.h
9028   case "$gl_cv_header_working_stdint_h" in
9029     *yes)
9030       HAVE_C99_STDINT_H=1
9031                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
9032 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
9033 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   gl_cv_header_stdint_predates_cxx11_h=yes
9037          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h.  */
9039
9040
9041 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9042 #include <stdint.h>
9043
9044
9045   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9046      included before <wchar.h>.  */
9047   #include <stddef.h>
9048   #include <signal.h>
9049   #if HAVE_WCHAR_H
9050   # include <stdio.h>
9051   # include <time.h>
9052   # include <wchar.h>
9053   #endif
9054
9055
9056 intmax_t im = INTMAX_MAX;
9057 int32_t i32 = INT32_C (0x7fffffff);
9058
9059 int
9060 main ()
9061 {
9062
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_compile "$LINENO"; then :
9068   gl_cv_header_stdint_predates_cxx11_h=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
9073 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
9074
9075       if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
9076
9077 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
9078
9079
9080 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
9081
9082       fi
9083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
9084 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
9085 if ${gl_cv_header_stdint_width+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   gl_cv_header_stdint_width=no
9089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h.  */
9091
9092               /* Work if build is not clean.  */
9093               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
9094               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9095                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9096               #endif
9097               #include <stdint.h>
9098
9099   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9100      included before <wchar.h>.  */
9101   #include <stddef.h>
9102   #include <signal.h>
9103   #if HAVE_WCHAR_H
9104   # include <stdio.h>
9105   # include <time.h>
9106   # include <wchar.h>
9107   #endif
9108
9109               int iw = UINTMAX_WIDTH;
9110
9111 int
9112 main ()
9113 {
9114
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120   gl_cv_header_stdint_width=yes
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
9125 $as_echo "$gl_cv_header_stdint_width" >&6; }
9126       if test "$gl_cv_header_stdint_width" = yes; then
9127         STDINT_H=
9128       fi
9129       ;;
9130     *)
9131                   for ac_header in sys/inttypes.h sys/bitypes.h
9132 do :
9133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9136   cat >>confdefs.h <<_ACEOF
9137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9138 _ACEOF
9139
9140 fi
9141
9142 done
9143
9144       if test $ac_cv_header_sys_inttypes_h = yes; then
9145         HAVE_SYS_INTTYPES_H=1
9146       fi
9147       if test $ac_cv_header_sys_bitypes_h = yes; then
9148         HAVE_SYS_BITYPES_H=1
9149       fi
9150
9151
9152   if test $APPLE_UNIVERSAL_BUILD = 0; then
9153
9154
9155   for gltype in ptrdiff_t size_t ; do
9156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9157 $as_echo_n "checking for bit size of $gltype... " >&6; }
9158 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
9162   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9163      included before <wchar.h>.  */
9164   #include <stddef.h>
9165   #include <signal.h>
9166   #if HAVE_WCHAR_H
9167   # include <stdio.h>
9168   # include <time.h>
9169   # include <wchar.h>
9170   #endif
9171
9172 #include <limits.h>"; then :
9173
9174 else
9175   result=unknown
9176 fi
9177
9178        eval gl_cv_bitsizeof_${gltype}=\$result
9179
9180 fi
9181 eval ac_res=\$gl_cv_bitsizeof_${gltype}
9182                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9183 $as_echo "$ac_res" >&6; }
9184     eval result=\$gl_cv_bitsizeof_${gltype}
9185     if test $result = unknown; then
9186                                                 result=0
9187     fi
9188     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9189     cat >>confdefs.h <<_ACEOF
9190 #define BITSIZEOF_${GLTYPE} $result
9191 _ACEOF
9192
9193     eval BITSIZEOF_${GLTYPE}=\$result
9194   done
9195
9196
9197   fi
9198
9199
9200   for gltype in sig_atomic_t wchar_t wint_t ; do
9201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9202 $as_echo_n "checking for bit size of $gltype... " >&6; }
9203 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
9207   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9208      included before <wchar.h>.  */
9209   #include <stddef.h>
9210   #include <signal.h>
9211   #if HAVE_WCHAR_H
9212   # include <stdio.h>
9213   # include <time.h>
9214   # include <wchar.h>
9215   #endif
9216
9217 #include <limits.h>"; then :
9218
9219 else
9220   result=unknown
9221 fi
9222
9223        eval gl_cv_bitsizeof_${gltype}=\$result
9224
9225 fi
9226 eval ac_res=\$gl_cv_bitsizeof_${gltype}
9227                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9228 $as_echo "$ac_res" >&6; }
9229     eval result=\$gl_cv_bitsizeof_${gltype}
9230     if test $result = unknown; then
9231                                                 result=0
9232     fi
9233     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9234     cat >>confdefs.h <<_ACEOF
9235 #define BITSIZEOF_${GLTYPE} $result
9236 _ACEOF
9237
9238     eval BITSIZEOF_${GLTYPE}=\$result
9239   done
9240
9241
9242
9243
9244   for gltype in sig_atomic_t wchar_t wint_t ; do
9245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
9246 $as_echo_n "checking whether $gltype is signed... " >&6; }
9247 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
9248   $as_echo_n "(cached) " >&6
9249 else
9250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h.  */
9252
9253   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9254      included before <wchar.h>.  */
9255   #include <stddef.h>
9256   #include <signal.h>
9257   #if HAVE_WCHAR_H
9258   # include <stdio.h>
9259   # include <time.h>
9260   # include <wchar.h>
9261   #endif
9262
9263             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
9264 int
9265 main ()
9266 {
9267
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_compile "$LINENO"; then :
9273   result=yes
9274 else
9275   result=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278        eval gl_cv_type_${gltype}_signed=\$result
9279
9280 fi
9281 eval ac_res=\$gl_cv_type_${gltype}_signed
9282                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9283 $as_echo "$ac_res" >&6; }
9284     eval result=\$gl_cv_type_${gltype}_signed
9285     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9286     if test "$result" = yes; then
9287       cat >>confdefs.h <<_ACEOF
9288 #define HAVE_SIGNED_${GLTYPE} 1
9289 _ACEOF
9290
9291       eval HAVE_SIGNED_${GLTYPE}=1
9292     else
9293       eval HAVE_SIGNED_${GLTYPE}=0
9294     fi
9295   done
9296
9297
9298   gl_cv_type_ptrdiff_t_signed=yes
9299   gl_cv_type_size_t_signed=no
9300   if test $APPLE_UNIVERSAL_BUILD = 0; then
9301
9302
9303   for gltype in ptrdiff_t size_t ; do
9304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9305 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9306 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
9307   $as_echo_n "(cached) " >&6
9308 else
9309   eval gl_cv_type_${gltype}_suffix=no
9310        eval result=\$gl_cv_type_${gltype}_signed
9311        if test "$result" = yes; then
9312          glsufu=
9313        else
9314          glsufu=u
9315        fi
9316        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9317          case $glsuf in
9318            '')  gltype1='int';;
9319            l)   gltype1='long int';;
9320            ll)  gltype1='long long int';;
9321            i64) gltype1='__int64';;
9322            u)   gltype1='unsigned int';;
9323            ul)  gltype1='unsigned long int';;
9324            ull) gltype1='unsigned long long int';;
9325            ui64)gltype1='unsigned __int64';;
9326          esac
9327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h.  */
9329
9330   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9331      included before <wchar.h>.  */
9332   #include <stddef.h>
9333   #include <signal.h>
9334   #if HAVE_WCHAR_H
9335   # include <stdio.h>
9336   # include <time.h>
9337   # include <wchar.h>
9338   #endif
9339
9340               extern $gltype foo;
9341               extern $gltype1 foo;
9342 int
9343 main ()
9344 {
9345
9346   ;
9347   return 0;
9348 }
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"; then :
9351   eval gl_cv_type_${gltype}_suffix=\$glsuf
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354          eval result=\$gl_cv_type_${gltype}_suffix
9355          test "$result" != no && break
9356        done
9357 fi
9358 eval ac_res=\$gl_cv_type_${gltype}_suffix
9359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9360 $as_echo "$ac_res" >&6; }
9361     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9362     eval result=\$gl_cv_type_${gltype}_suffix
9363     test "$result" = no && result=
9364     eval ${GLTYPE}_SUFFIX=\$result
9365     cat >>confdefs.h <<_ACEOF
9366 #define ${GLTYPE}_SUFFIX $result
9367 _ACEOF
9368
9369   done
9370
9371
9372   fi
9373
9374
9375   for gltype in sig_atomic_t wchar_t wint_t ; do
9376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9377 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9378 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   eval gl_cv_type_${gltype}_suffix=no
9382        eval result=\$gl_cv_type_${gltype}_signed
9383        if test "$result" = yes; then
9384          glsufu=
9385        else
9386          glsufu=u
9387        fi
9388        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9389          case $glsuf in
9390            '')  gltype1='int';;
9391            l)   gltype1='long int';;
9392            ll)  gltype1='long long int';;
9393            i64) gltype1='__int64';;
9394            u)   gltype1='unsigned int';;
9395            ul)  gltype1='unsigned long int';;
9396            ull) gltype1='unsigned long long int';;
9397            ui64)gltype1='unsigned __int64';;
9398          esac
9399          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h.  */
9401
9402   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9403      included before <wchar.h>.  */
9404   #include <stddef.h>
9405   #include <signal.h>
9406   #if HAVE_WCHAR_H
9407   # include <stdio.h>
9408   # include <time.h>
9409   # include <wchar.h>
9410   #endif
9411
9412               extern $gltype foo;
9413               extern $gltype1 foo;
9414 int
9415 main ()
9416 {
9417
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 if ac_fn_c_try_compile "$LINENO"; then :
9423   eval gl_cv_type_${gltype}_suffix=\$glsuf
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426          eval result=\$gl_cv_type_${gltype}_suffix
9427          test "$result" != no && break
9428        done
9429 fi
9430 eval ac_res=\$gl_cv_type_${gltype}_suffix
9431                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9432 $as_echo "$ac_res" >&6; }
9433     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9434     eval result=\$gl_cv_type_${gltype}_suffix
9435     test "$result" = no && result=
9436     eval ${GLTYPE}_SUFFIX=\$result
9437     cat >>confdefs.h <<_ACEOF
9438 #define ${GLTYPE}_SUFFIX $result
9439 _ACEOF
9440
9441   done
9442
9443
9444
9445           if test $GNULIB_OVERRIDES_WINT_T = 1; then
9446     BITSIZEOF_WINT_T=32
9447   fi
9448
9449       ;;
9450   esac
9451
9452
9453
9454   LIMITS_H='limits.h'
9455    if test -n "$LIMITS_H"; then
9456   GL_GENERATE_LIMITS_H_TRUE=
9457   GL_GENERATE_LIMITS_H_FALSE='#'
9458 else
9459   GL_GENERATE_LIMITS_H_TRUE='#'
9460   GL_GENERATE_LIMITS_H_FALSE=
9461 fi
9462
9463
9464
9465
9466
9467
9468
9469    if test -n "$STDINT_H"; then
9470   GL_GENERATE_STDINT_H_TRUE=
9471   GL_GENERATE_STDINT_H_FALSE='#'
9472 else
9473   GL_GENERATE_STDINT_H_TRUE='#'
9474   GL_GENERATE_STDINT_H_FALSE=
9475 fi
9476
9477
9478
9479   GNULIB_DPRINTF=0;
9480   GNULIB_FCLOSE=0;
9481   GNULIB_FDOPEN=0;
9482   GNULIB_FFLUSH=0;
9483   GNULIB_FGETC=0;
9484   GNULIB_FGETS=0;
9485   GNULIB_FOPEN=0;
9486   GNULIB_FPRINTF=0;
9487   GNULIB_FPRINTF_POSIX=0;
9488   GNULIB_FPURGE=0;
9489   GNULIB_FPUTC=0;
9490   GNULIB_FPUTS=0;
9491   GNULIB_FREAD=0;
9492   GNULIB_FREOPEN=0;
9493   GNULIB_FSCANF=0;
9494   GNULIB_FSEEK=0;
9495   GNULIB_FSEEKO=0;
9496   GNULIB_FTELL=0;
9497   GNULIB_FTELLO=0;
9498   GNULIB_FWRITE=0;
9499   GNULIB_GETC=0;
9500   GNULIB_GETCHAR=0;
9501   GNULIB_GETDELIM=0;
9502   GNULIB_GETLINE=0;
9503   GNULIB_OBSTACK_PRINTF=0;
9504   GNULIB_OBSTACK_PRINTF_POSIX=0;
9505   GNULIB_PCLOSE=0;
9506   GNULIB_PERROR=0;
9507   GNULIB_POPEN=0;
9508   GNULIB_PRINTF=0;
9509   GNULIB_PRINTF_POSIX=0;
9510   GNULIB_PUTC=0;
9511   GNULIB_PUTCHAR=0;
9512   GNULIB_PUTS=0;
9513   GNULIB_REMOVE=0;
9514   GNULIB_RENAME=0;
9515   GNULIB_RENAMEAT=0;
9516   GNULIB_SCANF=0;
9517   GNULIB_SNPRINTF=0;
9518   GNULIB_SPRINTF_POSIX=0;
9519   GNULIB_STDIO_H_NONBLOCKING=0;
9520   GNULIB_STDIO_H_SIGPIPE=0;
9521   GNULIB_TMPFILE=0;
9522   GNULIB_VASPRINTF=0;
9523   GNULIB_VFSCANF=0;
9524   GNULIB_VSCANF=0;
9525   GNULIB_VDPRINTF=0;
9526   GNULIB_VFPRINTF=0;
9527   GNULIB_VFPRINTF_POSIX=0;
9528   GNULIB_VPRINTF=0;
9529   GNULIB_VPRINTF_POSIX=0;
9530   GNULIB_VSNPRINTF=0;
9531   GNULIB_VSPRINTF_POSIX=0;
9532     HAVE_DECL_FPURGE=1;
9533   HAVE_DECL_FSEEKO=1;
9534   HAVE_DECL_FTELLO=1;
9535   HAVE_DECL_GETDELIM=1;
9536   HAVE_DECL_GETLINE=1;
9537   HAVE_DECL_OBSTACK_PRINTF=1;
9538   HAVE_DECL_SNPRINTF=1;
9539   HAVE_DECL_VSNPRINTF=1;
9540   HAVE_DPRINTF=1;
9541   HAVE_FSEEKO=1;
9542   HAVE_FTELLO=1;
9543   HAVE_PCLOSE=1;
9544   HAVE_POPEN=1;
9545   HAVE_RENAMEAT=1;
9546   HAVE_VASPRINTF=1;
9547   HAVE_VDPRINTF=1;
9548   REPLACE_DPRINTF=0;
9549   REPLACE_FCLOSE=0;
9550   REPLACE_FDOPEN=0;
9551   REPLACE_FFLUSH=0;
9552   REPLACE_FOPEN=0;
9553   REPLACE_FPRINTF=0;
9554   REPLACE_FPURGE=0;
9555   REPLACE_FREOPEN=0;
9556   REPLACE_FSEEK=0;
9557   REPLACE_FSEEKO=0;
9558   REPLACE_FTELL=0;
9559   REPLACE_FTELLO=0;
9560   REPLACE_GETDELIM=0;
9561   REPLACE_GETLINE=0;
9562   REPLACE_OBSTACK_PRINTF=0;
9563   REPLACE_PERROR=0;
9564   REPLACE_POPEN=0;
9565   REPLACE_PRINTF=0;
9566   REPLACE_REMOVE=0;
9567   REPLACE_RENAME=0;
9568   REPLACE_RENAMEAT=0;
9569   REPLACE_SNPRINTF=0;
9570   REPLACE_SPRINTF=0;
9571   REPLACE_STDIO_READ_FUNCS=0;
9572   REPLACE_STDIO_WRITE_FUNCS=0;
9573   REPLACE_TMPFILE=0;
9574   REPLACE_VASPRINTF=0;
9575   REPLACE_VDPRINTF=0;
9576   REPLACE_VFPRINTF=0;
9577   REPLACE_VPRINTF=0;
9578   REPLACE_VSNPRINTF=0;
9579   REPLACE_VSPRINTF=0;
9580
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9582 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9583 if ${ac_cv_c_restrict+:} false; then :
9584   $as_echo_n "(cached) " >&6
9585 else
9586   ac_cv_c_restrict=no
9587    # The order here caters to the fact that C++ does not require restrict.
9588    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9589      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h.  */
9591 typedef int *int_ptr;
9592            int foo (int_ptr $ac_kw ip) { return ip[0]; }
9593            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
9594            int bar (int ip[$ac_kw]) { return ip[0]; }
9595
9596 int
9597 main ()
9598 {
9599 int s[1];
9600            int *$ac_kw t = s;
9601            t[0] = 0;
9602            return foo (t) + bar (t);
9603
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609   ac_cv_c_restrict=$ac_kw
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612      test "$ac_cv_c_restrict" != no && break
9613    done
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9617 $as_echo "$ac_cv_c_restrict" >&6; }
9618
9619  case $ac_cv_c_restrict in
9620    restrict) ;;
9621    no) $as_echo "#define restrict /**/" >>confdefs.h
9622  ;;
9623    *)  cat >>confdefs.h <<_ACEOF
9624 #define restrict $ac_cv_c_restrict
9625 _ACEOF
9626  ;;
9627  esac
9628
9629
9630   GNULIB_EXPLICIT_BZERO=0;
9631   GNULIB_FFSL=0;
9632   GNULIB_FFSLL=0;
9633   GNULIB_MEMCHR=0;
9634   GNULIB_MEMMEM=0;
9635   GNULIB_MEMPCPY=0;
9636   GNULIB_MEMRCHR=0;
9637   GNULIB_RAWMEMCHR=0;
9638   GNULIB_STPCPY=0;
9639   GNULIB_STPNCPY=0;
9640   GNULIB_STRCHRNUL=0;
9641   GNULIB_STRDUP=0;
9642   GNULIB_STRNCAT=0;
9643   GNULIB_STRNDUP=0;
9644   GNULIB_STRNLEN=0;
9645   GNULIB_STRPBRK=0;
9646   GNULIB_STRSEP=0;
9647   GNULIB_STRSTR=0;
9648   GNULIB_STRCASESTR=0;
9649   GNULIB_STRTOK_R=0;
9650   GNULIB_MBSLEN=0;
9651   GNULIB_MBSNLEN=0;
9652   GNULIB_MBSCHR=0;
9653   GNULIB_MBSRCHR=0;
9654   GNULIB_MBSSTR=0;
9655   GNULIB_MBSCASECMP=0;
9656   GNULIB_MBSNCASECMP=0;
9657   GNULIB_MBSPCASECMP=0;
9658   GNULIB_MBSCASESTR=0;
9659   GNULIB_MBSCSPN=0;
9660   GNULIB_MBSPBRK=0;
9661   GNULIB_MBSSPN=0;
9662   GNULIB_MBSSEP=0;
9663   GNULIB_MBSTOK_R=0;
9664   GNULIB_STRERROR=0;
9665   GNULIB_STRERROR_R=0;
9666   GNULIB_STRSIGNAL=0;
9667   GNULIB_STRVERSCMP=0;
9668   HAVE_MBSLEN=0;
9669     HAVE_EXPLICIT_BZERO=1;
9670   HAVE_FFSL=1;
9671   HAVE_FFSLL=1;
9672   HAVE_MEMCHR=1;
9673   HAVE_DECL_MEMMEM=1;
9674   HAVE_MEMPCPY=1;
9675   HAVE_DECL_MEMRCHR=1;
9676   HAVE_RAWMEMCHR=1;
9677   HAVE_STPCPY=1;
9678   HAVE_STPNCPY=1;
9679   HAVE_STRCHRNUL=1;
9680   HAVE_DECL_STRDUP=1;
9681   HAVE_DECL_STRNDUP=1;
9682   HAVE_DECL_STRNLEN=1;
9683   HAVE_STRPBRK=1;
9684   HAVE_STRSEP=1;
9685   HAVE_STRCASESTR=1;
9686   HAVE_DECL_STRTOK_R=1;
9687   HAVE_DECL_STRERROR_R=1;
9688   HAVE_DECL_STRSIGNAL=1;
9689   HAVE_STRVERSCMP=1;
9690   REPLACE_MEMCHR=0;
9691   REPLACE_MEMMEM=0;
9692   REPLACE_STPNCPY=0;
9693   REPLACE_STRCHRNUL=0;
9694   REPLACE_STRDUP=0;
9695   REPLACE_STRNCAT=0;
9696   REPLACE_STRNDUP=0;
9697   REPLACE_STRNLEN=0;
9698   REPLACE_STRSTR=0;
9699   REPLACE_STRCASESTR=0;
9700   REPLACE_STRTOK_R=0;
9701   REPLACE_STRERROR=0;
9702   REPLACE_STRERROR_R=0;
9703   REPLACE_STRSIGNAL=0;
9704   UNDEFINE_STRTOK_R=0;
9705
9706
9707      REPLACE_STRERROR_0=0
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9709 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9710 if ${gl_cv_func_strerror_0_works+:} false; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   if test "$cross_compiling" = yes; then :
9714   case "$host_os" in
9715                         # Guess yes on glibc systems.
9716          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9717                         # Guess yes on musl systems.
9718          *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
9719                         # Guess yes on native Windows.
9720          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
9721                         # If we don't know, obey --enable-cross-guesses.
9722          *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
9723        esac
9724
9725 else
9726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h.  */
9728 #include <string.h>
9729            #include <errno.h>
9730
9731 int
9732 main ()
9733 {
9734 int result = 0;
9735            char *str;
9736            errno = 0;
9737            str = strerror (0);
9738            if (!*str) result |= 1;
9739            if (errno) result |= 2;
9740            if (strstr (str, "nknown") || strstr (str, "ndefined"))
9741              result |= 4;
9742            return result;
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_run "$LINENO"; then :
9748   gl_cv_func_strerror_0_works=yes
9749 else
9750   gl_cv_func_strerror_0_works=no
9751 fi
9752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9753   conftest.$ac_objext conftest.beam conftest.$ac_ext
9754 fi
9755
9756
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9759 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9760   case "$gl_cv_func_strerror_0_works" in
9761     *yes) ;;
9762     *)
9763       REPLACE_STRERROR_0=1
9764
9765 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9766
9767       ;;
9768   esac
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781      if test $gl_cv_have_include_next = yes; then
9782        gl_cv_next_string_h='<'string.h'>'
9783      else
9784        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9785 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9786 if ${gl_cv_next_string_h+:} false; then :
9787   $as_echo_n "(cached) " >&6
9788 else
9789
9790
9791
9792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h.  */
9794 #include <string.h>
9795 _ACEOF
9796                 case "$host_os" in
9797     aix*) gl_absname_cpp="$ac_cpp -C" ;;
9798     *)    gl_absname_cpp="$ac_cpp" ;;
9799   esac
9800
9801   case "$host_os" in
9802     mingw*)
9803                                           gl_dirsep_regex='[/\\]'
9804       ;;
9805     *)
9806       gl_dirsep_regex='\/'
9807       ;;
9808   esac
9809       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9810   gl_header_literal_regex=`echo 'string.h' \
9811                            | sed -e "$gl_make_literal_regex_sed"`
9812   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9813       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9814       s|^/[^/]|//&|
9815       p
9816       q
9817     }'
9818
9819         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9820   sed -n "$gl_absolute_header_sed"`
9821
9822            gl_header=$gl_cv_absolute_string_h
9823            gl_cv_next_string_h='"'$gl_header'"'
9824
9825
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9828 $as_echo "$gl_cv_next_string_h" >&6; }
9829      fi
9830      NEXT_STRING_H=$gl_cv_next_string_h
9831
9832      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9833        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9834        gl_next_as_first_directive='<'string.h'>'
9835      else
9836        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9837        gl_next_as_first_directive=$gl_cv_next_string_h
9838      fi
9839      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853     WINDOWS_64_BIT_OFF_T=0
9854
9855
9856
9857
9858
9859 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871      if test $gl_cv_have_include_next = yes; then
9872        gl_cv_next_sys_types_h='<'sys/types.h'>'
9873      else
9874        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
9875 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
9876 if ${gl_cv_next_sys_types_h+:} false; then :
9877   $as_echo_n "(cached) " >&6
9878 else
9879
9880
9881
9882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h.  */
9884 #include <sys/types.h>
9885 _ACEOF
9886                 case "$host_os" in
9887     aix*) gl_absname_cpp="$ac_cpp -C" ;;
9888     *)    gl_absname_cpp="$ac_cpp" ;;
9889   esac
9890
9891   case "$host_os" in
9892     mingw*)
9893                                           gl_dirsep_regex='[/\\]'
9894       ;;
9895     *)
9896       gl_dirsep_regex='\/'
9897       ;;
9898   esac
9899       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9900   gl_header_literal_regex=`echo 'sys/types.h' \
9901                            | sed -e "$gl_make_literal_regex_sed"`
9902   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9903       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9904       s|^/[^/]|//&|
9905       p
9906       q
9907     }'
9908
9909         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9910   sed -n "$gl_absolute_header_sed"`
9911
9912            gl_header=$gl_cv_absolute_sys_types_h
9913            gl_cv_next_sys_types_h='"'$gl_header'"'
9914
9915
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
9918 $as_echo "$gl_cv_next_sys_types_h" >&6; }
9919      fi
9920      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
9921
9922      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9923        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9924        gl_next_as_first_directive='<'sys/types.h'>'
9925      else
9926        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9927        gl_next_as_first_directive=$gl_cv_next_sys_types_h
9928      fi
9929      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942     WINDOWS_STAT_INODES=0
9943
9944
9945
9946
9947    if false; then
9948   GL_COND_LIBTOOL_TRUE=
9949   GL_COND_LIBTOOL_FALSE='#'
9950 else
9951   GL_COND_LIBTOOL_TRUE='#'
9952   GL_COND_LIBTOOL_FALSE=
9953 fi
9954
9955   gl_cond_libtool=false
9956   gl_libdeps=
9957   gl_ltlibdeps=
9958   gl_m4_base='m4'
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968   gl_source_base='lib'
9969
9970
9971
9972       case "$host_os" in
9973     mingw*) REPLACE_ACCESS=1 ;;
9974   esac
9975
9976   if test $REPLACE_ACCESS = 1; then
9977
9978
9979
9980
9981
9982
9983
9984
9985   gl_LIBOBJS="$gl_LIBOBJS access.$ac_objext"
9986
9987   fi
9988
9989
9990
9991
9992
9993           GNULIB_ACCESS=1
9994
9995
9996
9997
9998
9999 $as_echo "#define GNULIB_TEST_ACCESS 1" >>confdefs.h
10000
10001
10002
10003
10004
10005   if test $ac_cv_func_alloca_works = no; then
10006     :
10007   fi
10008
10009   # Define an additional variable used in the Makefile substitution.
10010   if test $ac_cv_working_alloca_h = yes; then
10011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10012 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10013 if ${gl_cv_rpl_alloca+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016
10017       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h.  */
10019
10020 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10021         Need own alloca
10022 #endif
10023
10024 _ACEOF
10025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10026   $EGREP "Need own alloca" >/dev/null 2>&1; then :
10027   gl_cv_rpl_alloca=yes
10028 else
10029   gl_cv_rpl_alloca=no
10030 fi
10031 rm -f conftest*
10032
10033
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10036 $as_echo "$gl_cv_rpl_alloca" >&6; }
10037     if test $gl_cv_rpl_alloca = yes; then
10038
10039 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10040
10041       ALLOCA_H=alloca.h
10042     else
10043                   ALLOCA_H=
10044     fi
10045   else
10046     ALLOCA_H=alloca.h
10047   fi
10048
10049    if test -n "$ALLOCA_H"; then
10050   GL_GENERATE_ALLOCA_H_TRUE=
10051   GL_GENERATE_ALLOCA_H_FALSE='#'
10052 else
10053   GL_GENERATE_ALLOCA_H_TRUE='#'
10054   GL_GENERATE_ALLOCA_H_FALSE=
10055 fi
10056
10057
10058   if test $ac_cv_working_alloca_h = yes; then
10059     HAVE_ALLOCA_H=1
10060   else
10061     HAVE_ALLOCA_H=0
10062   fi
10063
10064
10065
10066
10067
10068
10069     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
10070       REPLACE_CLOSE=1
10071     fi
10072
10073
10074
10075
10076
10077
10078   if test $ac_cv_header_sys_socket_h != yes; then
10079                     for ac_header in winsock2.h
10080 do :
10081   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10082 if test "x$ac_cv_header_winsock2_h" = xyes; then :
10083   cat >>confdefs.h <<_ACEOF
10084 #define HAVE_WINSOCK2_H 1
10085 _ACEOF
10086
10087 fi
10088
10089 done
10090
10091   fi
10092   if test "$ac_cv_header_winsock2_h" = yes; then
10093     HAVE_WINSOCK2_H=1
10094     UNISTD_H_HAVE_WINSOCK2_H=1
10095     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10096   else
10097     HAVE_WINSOCK2_H=0
10098   fi
10099
10100
10101     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
10102                         REPLACE_CLOSE=1
10103     fi
10104
10105
10106
10107   if test $REPLACE_CLOSE = 1; then
10108
10109
10110
10111
10112
10113
10114
10115
10116   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
10117
10118   fi
10119
10120
10121
10122
10123
10124           GNULIB_CLOSE=1
10125
10126
10127
10128
10129
10130 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10141 $as_echo_n "checking whether // is distinct from /... " >&6; }
10142 if ${gl_cv_double_slash_root+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145    if test x"$cross_compiling" = xyes ; then
10146         # When cross-compiling, there is no way to tell whether // is special
10147         # short of a list of hosts.  However, the only known hosts to date
10148         # that have a distinct // are Apollo DomainOS (too old to port to),
10149         # Cygwin, and z/OS.  If anyone knows of another system for which // has
10150         # special semantics and is distinct from /, please report it to
10151         # <bug-gnulib@gnu.org>.
10152         case $host in
10153           *-cygwin | i370-ibm-openedition)
10154             gl_cv_double_slash_root=yes ;;
10155           *)
10156             # Be optimistic and assume that / and // are the same when we
10157             # don't know.
10158             gl_cv_double_slash_root='unknown, assuming no' ;;
10159         esac
10160       else
10161         set x `ls -di / // 2>/dev/null`
10162         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10163           gl_cv_double_slash_root=no
10164         else
10165           gl_cv_double_slash_root=yes
10166         fi
10167       fi
10168 fi
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10170 $as_echo "$gl_cv_double_slash_root" >&6; }
10171   if test "$gl_cv_double_slash_root" = yes; then
10172
10173 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10174
10175   fi
10176
10177
10178
10179
10180
10181
10182 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
10183
10184
10185   if test $HAVE_DUP2 = 1; then
10186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
10187 $as_echo_n "checking whether dup2 works... " >&6; }
10188 if ${gl_cv_func_dup2_works+:} false; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   if test "$cross_compiling" = yes; then :
10192   case "$host_os" in
10193            mingw*) # on this platform, dup2 always returns 0 for success
10194              gl_cv_func_dup2_works="guessing no" ;;
10195            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
10196              gl_cv_func_dup2_works="guessing no" ;;
10197            aix* | freebsd*)
10198                    # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
10199                    # not EBADF.
10200              gl_cv_func_dup2_works="guessing no" ;;
10201            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
10202              gl_cv_func_dup2_works="guessing no" ;;
10203            *-android*) # implemented using dup3(), which fails if oldfd == newfd
10204              gl_cv_func_dup2_works="guessing no" ;;
10205            os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
10206              gl_cv_func_dup2_works="guessing no" ;;
10207            *) gl_cv_func_dup2_works="guessing yes" ;;
10208          esac
10209 else
10210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h.  */
10212
10213          #include <errno.h>
10214              #include <fcntl.h>
10215              #include <limits.h>
10216              #include <sys/resource.h>
10217              #include <unistd.h>
10218              #ifndef RLIM_SAVED_CUR
10219              # define RLIM_SAVED_CUR RLIM_INFINITY
10220              #endif
10221              #ifndef RLIM_SAVED_MAX
10222              # define RLIM_SAVED_MAX RLIM_INFINITY
10223              #endif
10224
10225 int
10226 main ()
10227 {
10228 int result = 0;
10229              int bad_fd = INT_MAX;
10230              struct rlimit rlim;
10231              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
10232                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
10233                  && rlim.rlim_cur != RLIM_INFINITY
10234                  && rlim.rlim_cur != RLIM_SAVED_MAX
10235                  && rlim.rlim_cur != RLIM_SAVED_CUR)
10236                bad_fd = rlim.rlim_cur;
10237              #ifdef FD_CLOEXEC
10238                if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
10239                  result |= 1;
10240              #endif
10241              if (dup2 (1, 1) != 1)
10242                result |= 2;
10243              #ifdef FD_CLOEXEC
10244                if (fcntl (1, F_GETFD) != FD_CLOEXEC)
10245                  result |= 4;
10246              #endif
10247              close (0);
10248              if (dup2 (0, 0) != -1)
10249                result |= 8;
10250              /* Many gnulib modules require POSIX conformance of EBADF.  */
10251              if (dup2 (2, bad_fd) == -1 && errno != EBADF)
10252                result |= 16;
10253              /* Flush out some cygwin core dumps.  */
10254              if (dup2 (2, -1) != -1 || errno != EBADF)
10255                result |= 32;
10256              dup2 (2, 255);
10257              dup2 (2, 256);
10258              /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
10259              {
10260                int fd = open (".", O_RDONLY);
10261                if (fd == -1)
10262                  result |= 64;
10263                else if (dup2 (fd, fd + 1) == -1)
10264                  result |= 128;
10265
10266                close (fd);
10267              }
10268              return result;
10269   ;
10270   return 0;
10271 }
10272
10273 _ACEOF
10274 if ac_fn_c_try_run "$LINENO"; then :
10275   gl_cv_func_dup2_works=yes
10276 else
10277   gl_cv_func_dup2_works=no
10278 fi
10279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10280   conftest.$ac_objext conftest.beam conftest.$ac_ext
10281 fi
10282
10283
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
10286 $as_echo "$gl_cv_func_dup2_works" >&6; }
10287     case "$gl_cv_func_dup2_works" in
10288       *yes) ;;
10289       *)
10290         REPLACE_DUP2=1
10291         for ac_func in setdtablesize
10292 do :
10293   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
10294 if test "x$ac_cv_func_setdtablesize" = xyes; then :
10295   cat >>confdefs.h <<_ACEOF
10296 #define HAVE_SETDTABLESIZE 1
10297 _ACEOF
10298
10299 fi
10300 done
10301
10302         ;;
10303     esac
10304   fi
10305
10306
10307   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
10308
10309
10310
10311
10312
10313
10314
10315
10316   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
10317
10318
10319   fi
10320
10321
10322
10323
10324
10325           GNULIB_DUP2=1
10326
10327
10328
10329
10330
10331 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
10332
10333
10334
10335
10336
10337       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
10338 $as_echo_n "checking for error_at_line... " >&6; }
10339 if ${ac_cv_lib_error_at_line+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344 #include <error.h>
10345 int
10346 main ()
10347 {
10348 error_at_line (0, 0, "", 0, "an error occurred");
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354   ac_cv_lib_error_at_line=yes
10355 else
10356   ac_cv_lib_error_at_line=no
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext \
10359     conftest$ac_exeext conftest.$ac_ext
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
10362 $as_echo "$ac_cv_lib_error_at_line" >&6; }
10363
10364   if test $ac_cv_lib_error_at_line = no; then
10365
10366
10367
10368
10369
10370
10371
10372
10373   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
10374
10375
10376
10377   :
10378
10379   fi
10380
10381
10382   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
10383
10384
10385
10386   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
10387
10388
10389
10390
10391
10392
10393
10394   if test $ac_cv_func_fcntl = no; then
10395
10396
10397
10398   if test $ac_cv_func_fcntl = no; then
10399     HAVE_FCNTL=0
10400   else
10401     REPLACE_FCNTL=1
10402   fi
10403
10404   else
10405             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
10406 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
10407 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   if test "$cross_compiling" = yes; then :
10411   case $host_os in
10412             aix* | cygwin* | haiku*)
10413                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
10414             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
10415           esac
10416 else
10417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h.  */
10419 #include <errno.h>
10420               #include <fcntl.h>
10421               #include <limits.h>
10422               #include <sys/resource.h>
10423               #include <unistd.h>
10424               #ifndef RLIM_SAVED_CUR
10425               # define RLIM_SAVED_CUR RLIM_INFINITY
10426               #endif
10427               #ifndef RLIM_SAVED_MAX
10428               # define RLIM_SAVED_MAX RLIM_INFINITY
10429               #endif
10430
10431 int
10432 main ()
10433 {
10434 int result = 0;
10435               int bad_fd = INT_MAX;
10436               struct rlimit rlim;
10437               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
10438                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
10439                   && rlim.rlim_cur != RLIM_INFINITY
10440                   && rlim.rlim_cur != RLIM_SAVED_MAX
10441                   && rlim.rlim_cur != RLIM_SAVED_CUR)
10442                 bad_fd = rlim.rlim_cur;
10443               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
10444               if (errno != EINVAL) result |= 2;
10445               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
10446               if (errno != EINVAL) result |= 8;
10447               /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
10448               {
10449                 int fd;
10450                 fd = open (".", O_RDONLY);
10451                 if (fd == -1)
10452                   result |= 16;
10453                 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
10454                   result |= 32;
10455
10456                 close (fd);
10457               }
10458               return result;
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 if ac_fn_c_try_run "$LINENO"; then :
10464   gl_cv_func_fcntl_f_dupfd_works=yes
10465 else
10466   gl_cv_func_fcntl_f_dupfd_works=no
10467 fi
10468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10469   conftest.$ac_objext conftest.beam conftest.$ac_ext
10470 fi
10471
10472 fi
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
10474 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
10475     case $gl_cv_func_fcntl_f_dupfd_works in
10476       *yes) ;;
10477       *)
10478
10479
10480   if test $ac_cv_func_fcntl = no; then
10481     HAVE_FCNTL=0
10482   else
10483     REPLACE_FCNTL=1
10484   fi
10485
10486
10487 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
10488  ;;
10489     esac
10490
10491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
10492 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
10493 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h.  */
10498
10499 #include <fcntl.h>
10500 #ifndef F_DUPFD_CLOEXEC
10501 choke me
10502 #endif
10503
10504 int
10505 main ()
10506 {
10507
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h.  */
10515
10516 #ifdef __linux__
10517 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
10518    it to support the semantics on older kernels that failed with EINVAL.  */
10519 choke me
10520 #endif
10521
10522 int
10523 main ()
10524 {
10525
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531   gl_cv_func_fcntl_f_dupfd_cloexec=yes
10532 else
10533   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10536 else
10537   gl_cv_func_fcntl_f_dupfd_cloexec=no
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
10542 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
10543     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
10544
10545
10546
10547   if test $ac_cv_func_fcntl = no; then
10548     HAVE_FCNTL=0
10549   else
10550     REPLACE_FCNTL=1
10551   fi
10552
10553           fi
10554   fi
10555
10556
10557   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
10558
10559
10560
10561
10562
10563
10564
10565
10566   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
10567
10568   fi
10569
10570
10571
10572
10573
10574           GNULIB_FCNTL=1
10575
10576
10577
10578
10579
10580 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595      if test $gl_cv_have_include_next = yes; then
10596        gl_cv_next_fcntl_h='<'fcntl.h'>'
10597      else
10598        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
10599 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
10600 if ${gl_cv_next_fcntl_h+:} false; then :
10601   $as_echo_n "(cached) " >&6
10602 else
10603
10604
10605
10606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h.  */
10608 #include <fcntl.h>
10609 _ACEOF
10610                 case "$host_os" in
10611     aix*) gl_absname_cpp="$ac_cpp -C" ;;
10612     *)    gl_absname_cpp="$ac_cpp" ;;
10613   esac
10614
10615   case "$host_os" in
10616     mingw*)
10617                                           gl_dirsep_regex='[/\\]'
10618       ;;
10619     *)
10620       gl_dirsep_regex='\/'
10621       ;;
10622   esac
10623       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10624   gl_header_literal_regex=`echo 'fcntl.h' \
10625                            | sed -e "$gl_make_literal_regex_sed"`
10626   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10627       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10628       s|^/[^/]|//&|
10629       p
10630       q
10631     }'
10632
10633         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10634   sed -n "$gl_absolute_header_sed"`
10635
10636            gl_header=$gl_cv_absolute_fcntl_h
10637            gl_cv_next_fcntl_h='"'$gl_header'"'
10638
10639
10640 fi
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
10642 $as_echo "$gl_cv_next_fcntl_h" >&6; }
10643      fi
10644      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
10645
10646      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10647        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10648        gl_next_as_first_directive='<'fcntl.h'>'
10649      else
10650        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10651        gl_next_as_first_directive=$gl_cv_next_fcntl_h
10652      fi
10653      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675   if test $ac_cv_func_getdtablesize = yes &&
10676      test $ac_cv_have_decl_getdtablesize = yes; then
10677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
10678 $as_echo_n "checking whether getdtablesize works... " >&6; }
10679 if ${gl_cv_func_getdtablesize_works+:} false; then :
10680   $as_echo_n "(cached) " >&6
10681 else
10682                                                    case "$host_os" in
10683          vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
10684          *)
10685                                                        if test "$cross_compiling" = yes; then :
10686   case "$host_os" in
10687                 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
10688                   gl_cv_func_getdtablesize_works="guessing no" ;;
10689                 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
10690               esac
10691
10692 else
10693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696              #include <unistd.h>
10697 int
10698 main ()
10699 {
10700 int size = getdtablesize();
10701                 if (dup2 (0, getdtablesize()) != -1)
10702                   return 1;
10703                 if (size != getdtablesize())
10704                   return 2;
10705
10706   ;
10707   return 0;
10708 }
10709 _ACEOF
10710 if ac_fn_c_try_run "$LINENO"; then :
10711   gl_cv_func_getdtablesize_works=yes
10712 else
10713   gl_cv_func_getdtablesize_works=no
10714 fi
10715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10716   conftest.$ac_objext conftest.beam conftest.$ac_ext
10717 fi
10718
10719            ;;
10720        esac
10721
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
10724 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
10725     case "$gl_cv_func_getdtablesize_works" in
10726       *yes | "no (limitation)") ;;
10727       *) REPLACE_GETDTABLESIZE=1 ;;
10728     esac
10729   else
10730     HAVE_GETDTABLESIZE=0
10731   fi
10732
10733   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
10734
10735
10736
10737
10738
10739
10740
10741
10742   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
10743
10744     :
10745   fi
10746
10747
10748
10749
10750
10751           GNULIB_GETDTABLESIZE=1
10752
10753
10754
10755
10756
10757 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
10758
10759
10760
10761
10762
10763 # Persuade glibc <stdlib.h> to declare getloadavg().
10764
10765
10766 gl_save_LIBS=$LIBS
10767
10768 # getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
10769 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
10770 HAVE_GETLOADAVG=1
10771 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10772 if test "x$ac_cv_func_getloadavg" = xyes; then :
10773
10774 else
10775   gl_func_getloadavg_done=no
10776
10777    # Some systems with -lutil have (and need) -lkvm as well, some do not.
10778    # On Solaris, -lkvm requires nlist from -lelf, so check that first
10779    # to get the right answer into the cache.
10780    # For kstat on solaris, we need to test for libelf and libkvm to force the
10781    # definition of SVR4 below.
10782    if test $gl_func_getloadavg_done = no; then
10783      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10784 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10785 if ${ac_cv_lib_elf_elf_begin+:} false; then :
10786   $as_echo_n "(cached) " >&6
10787 else
10788   ac_check_lib_save_LIBS=$LIBS
10789 LIBS="-lelf  $LIBS"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792
10793 /* Override any GCC internal prototype to avoid an error.
10794    Use char because int might match the return type of a GCC
10795    builtin and then its argument prototype would still apply.  */
10796 #ifdef __cplusplus
10797 extern "C"
10798 #endif
10799 char elf_begin ();
10800 int
10801 main ()
10802 {
10803 return elf_begin ();
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"; then :
10809   ac_cv_lib_elf_elf_begin=yes
10810 else
10811   ac_cv_lib_elf_elf_begin=no
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814     conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_check_lib_save_LIBS
10816 fi
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
10818 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
10819 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
10820   LIBS="-lelf $LIBS"
10821 fi
10822
10823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
10824 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
10825 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
10826   $as_echo_n "(cached) " >&6
10827 else
10828   ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lkvm  $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834    Use char because int might match the return type of a GCC
10835    builtin and then its argument prototype would still apply.  */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char kvm_open ();
10840 int
10841 main ()
10842 {
10843 return kvm_open ();
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849   ac_cv_lib_kvm_kvm_open=yes
10850 else
10851   ac_cv_lib_kvm_kvm_open=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854     conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
10858 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
10859 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
10860   LIBS="-lkvm $LIBS"
10861 fi
10862
10863      # Check for the 4.4BSD definition of getloadavg.
10864      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
10865 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
10866 if ${ac_cv_lib_util_getloadavg+:} false; then :
10867   $as_echo_n "(cached) " >&6
10868 else
10869   ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lutil  $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h.  */
10873
10874 /* Override any GCC internal prototype to avoid an error.
10875    Use char because int might match the return type of a GCC
10876    builtin and then its argument prototype would still apply.  */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char getloadavg ();
10881 int
10882 main ()
10883 {
10884 return getloadavg ();
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890   ac_cv_lib_util_getloadavg=yes
10891 else
10892   ac_cv_lib_util_getloadavg=no
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext \
10895     conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
10899 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
10900 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
10901   LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
10902 fi
10903
10904    fi
10905
10906    if test $gl_func_getloadavg_done = no; then
10907      # There is a commonly available library for RS/6000 AIX.
10908      # Since it is not a standard part of AIX, it might be installed locally.
10909      gl_getloadavg_LIBS=$LIBS
10910      LIBS="-L/usr/local/lib $LIBS"
10911      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
10912 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
10913 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
10914   $as_echo_n "(cached) " >&6
10915 else
10916   ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lgetloadavg  $LIBS"
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h.  */
10920
10921 /* Override any GCC internal prototype to avoid an error.
10922    Use char because int might match the return type of a GCC
10923    builtin and then its argument prototype would still apply.  */
10924 #ifdef __cplusplus
10925 extern "C"
10926 #endif
10927 char getloadavg ();
10928 int
10929 main ()
10930 {
10931 return getloadavg ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_link "$LINENO"; then :
10937   ac_cv_lib_getloadavg_getloadavg=yes
10938 else
10939   ac_cv_lib_getloadavg_getloadavg=no
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext \
10942     conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10944 fi
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10946 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
10947 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
10948   LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
10949 else
10950   LIBS=$gl_getloadavg_LIBS
10951 fi
10952
10953    fi
10954
10955    # Set up the replacement function if necessary.
10956    if test $gl_func_getloadavg_done = no; then
10957      HAVE_GETLOADAVG=0
10958
10959      # Solaris has libkstat which does not require root.
10960      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10961 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10962 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lkstat  $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h.  */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971    Use char because int might match the return type of a GCC
10972    builtin and then its argument prototype would still apply.  */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char kstat_open ();
10977 int
10978 main ()
10979 {
10980 return kstat_open ();
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986   ac_cv_lib_kstat_kstat_open=yes
10987 else
10988   ac_cv_lib_kstat_kstat_open=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991     conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
10995 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10996 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
10997   cat >>confdefs.h <<_ACEOF
10998 #define HAVE_LIBKSTAT 1
10999 _ACEOF
11000
11001   LIBS="-lkstat $LIBS"
11002
11003 fi
11004
11005      test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
11006
11007      # AIX has libperfstat which does not require root
11008      if test $gl_func_getloadavg_done = no; then
11009        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
11010 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
11011 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
11012   $as_echo_n "(cached) " >&6
11013 else
11014   ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lperfstat  $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h.  */
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020    Use char because int might match the return type of a GCC
11021    builtin and then its argument prototype would still apply.  */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char perfstat_cpu_total ();
11026 int
11027 main ()
11028 {
11029 return perfstat_cpu_total ();
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035   ac_cv_lib_perfstat_perfstat_cpu_total=yes
11036 else
11037   ac_cv_lib_perfstat_perfstat_cpu_total=no
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext \
11040     conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
11044 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
11045 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
11046   cat >>confdefs.h <<_ACEOF
11047 #define HAVE_LIBPERFSTAT 1
11048 _ACEOF
11049
11050   LIBS="-lperfstat $LIBS"
11051
11052 fi
11053
11054        test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
11055      fi
11056
11057      if test $gl_func_getloadavg_done = no; then
11058        ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11059 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
11060   gl_func_getloadavg_done=yes
11061
11062 $as_echo "#define DGUX 1" >>confdefs.h
11063
11064           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11065 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11066 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069   ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-ldgc  $LIBS"
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h.  */
11073
11074 /* Override any GCC internal prototype to avoid an error.
11075    Use char because int might match the return type of a GCC
11076    builtin and then its argument prototype would still apply.  */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char dg_sys_info ();
11081 int
11082 main ()
11083 {
11084 return dg_sys_info ();
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090   ac_cv_lib_dgc_dg_sys_info=yes
11091 else
11092   ac_cv_lib_dgc_dg_sys_info=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext \
11095     conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11099 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11100 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
11101   cat >>confdefs.h <<_ACEOF
11102 #define HAVE_LIBDGC 1
11103 _ACEOF
11104
11105   LIBS="-ldgc $LIBS"
11106
11107 fi
11108
11109 fi
11110
11111
11112      fi
11113    fi
11114 fi
11115
11116
11117 if test "x$gl_save_LIBS" = x; then
11118   GETLOADAVG_LIBS=$LIBS
11119 else
11120   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
11121 fi
11122 LIBS=$gl_save_LIBS
11123
11124
11125 # Test whether the system declares getloadavg. Solaris has the function
11126 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
11127 for ac_header in sys/loadavg.h
11128 do :
11129   ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11130 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
11131   cat >>confdefs.h <<_ACEOF
11132 #define HAVE_SYS_LOADAVG_H 1
11133 _ACEOF
11134
11135 fi
11136
11137 done
11138
11139 if test $ac_cv_header_sys_loadavg_h = yes; then
11140   HAVE_SYS_LOADAVG_H=1
11141 else
11142   HAVE_SYS_LOADAVG_H=0
11143 fi
11144 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
11145     /* OpenIndiana has a bug: <sys/time.h> must be included before
11146        <sys/loadavg.h>.  */
11147     # include <sys/time.h>
11148     # include <sys/loadavg.h>
11149     #endif
11150     #include <stdlib.h>
11151 "
11152 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
11153
11154 else
11155   HAVE_DECL_GETLOADAVG=0
11156 fi
11157
11158
11159   if test $HAVE_GETLOADAVG = 0; then
11160
11161
11162
11163
11164
11165
11166
11167
11168   gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
11169
11170
11171 # Figure out what our getloadavg.c needs.
11172
11173
11174
11175 # On HPUX9, an unprivileged user can get load averages this way.
11176 if test $gl_func_getloadavg_done = no; then
11177   for ac_func in pstat_getdynamic
11178 do :
11179   ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11180 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
11181   cat >>confdefs.h <<_ACEOF
11182 #define HAVE_PSTAT_GETDYNAMIC 1
11183 _ACEOF
11184  gl_func_getloadavg_done=yes
11185 fi
11186 done
11187
11188 fi
11189
11190 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11191 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
11192 # Irix 4.0.5F has the header but not the library.
11193 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
11194     && test "$ac_cv_lib_kvm_kvm_open" = yes; then
11195   gl_func_getloadavg_done=yes
11196
11197 $as_echo "#define SVR4 1" >>confdefs.h
11198
11199 fi
11200
11201 if test $gl_func_getloadavg_done = no; then
11202   ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11203 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
11204   gl_func_getloadavg_done=yes
11205
11206 $as_echo "#define UMAX 1" >>confdefs.h
11207
11208
11209 $as_echo "#define UMAX4_3 1" >>confdefs.h
11210
11211 fi
11212
11213
11214 fi
11215
11216 if test $gl_func_getloadavg_done = no; then
11217   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11218 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
11219   gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
11220
11221 fi
11222
11223
11224 fi
11225
11226 if test $gl_func_getloadavg_done = no; then
11227   for ac_header in mach/mach.h
11228 do :
11229   ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11230 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
11231   cat >>confdefs.h <<_ACEOF
11232 #define HAVE_MACH_MACH_H 1
11233 _ACEOF
11234
11235 fi
11236
11237 done
11238
11239 fi
11240
11241 for ac_header in nlist.h
11242 do :
11243   ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11244 if test "x$ac_cv_header_nlist_h" = xyes; then :
11245   cat >>confdefs.h <<_ACEOF
11246 #define HAVE_NLIST_H 1
11247 _ACEOF
11248  ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11249 "
11250 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
11251
11252 cat >>confdefs.h <<_ACEOF
11253 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11254 _ACEOF
11255
11256
11257 fi
11258
11259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h.  */
11261 #include <nlist.h>
11262 int
11263 main ()
11264 {
11265 struct nlist x;
11266                     #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
11267                     x.n_un.n_name = "";
11268                     #else
11269                     x.n_name = "";
11270                     #endif
11271   ;
11272   return 0;
11273 }
11274 _ACEOF
11275 if ac_fn_c_try_link "$LINENO"; then :
11276
11277 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
11278
11279 fi
11280 rm -f core conftest.err conftest.$ac_objext \
11281     conftest$ac_exeext conftest.$ac_ext
11282
11283 fi
11284
11285 done
11286
11287   fi
11288
11289
11290
11291
11292
11293           GNULIB_GETLOADAVG=1
11294
11295
11296
11297
11298
11299 $as_echo "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h
11300
11301
11302
11303
11304
11305
11306   ac_found=0
11307   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
11308 "
11309 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
11310   ac_have_decl=1
11311 else
11312   ac_have_decl=0
11313 fi
11314
11315 cat >>confdefs.h <<_ACEOF
11316 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
11317 _ACEOF
11318 if test $ac_have_decl = 1; then :
11319   ac_found=1
11320 fi
11321
11322   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
11323 "
11324 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
11325   ac_have_decl=1
11326 else
11327   ac_have_decl=0
11328 fi
11329
11330 cat >>confdefs.h <<_ACEOF
11331 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
11332 _ACEOF
11333 if test $ac_have_decl = 1; then :
11334   ac_found=1
11335 fi
11336
11337   ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
11338 "
11339 if test "x$ac_cv_have_decl___argv" = xyes; then :
11340   ac_have_decl=1
11341 else
11342   ac_have_decl=0
11343 fi
11344
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_DECL___ARGV $ac_have_decl
11347 _ACEOF
11348 if test $ac_have_decl = 1; then :
11349   ac_found=1
11350 fi
11351
11352
11353   # Incur the cost of this test only if none of the above worked.
11354   if test $ac_found = 0; then
11355     # On OpenBSD 5.1, using the global __progname variable appears to be
11356     # the only way to implement getprogname.
11357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
11358 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
11359 if ${gl_cv_var___progname+:} false; then :
11360   $as_echo_n "(cached) " >&6
11361 else
11362
11363         gl_cv_var___progname=
11364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h.  */
11366 extern char *__progname;
11367 int
11368 main ()
11369 {
11370 return *__progname;
11371
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377   gl_cv_var___progname=yes
11378
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382
11383
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
11386 $as_echo "$gl_cv_var___progname" >&6; }
11387     if test "$gl_cv_var___progname" = yes; then
11388
11389 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
11390
11391     fi
11392   fi
11393
11394
11395
11396
11397
11398   # Check the system to see if it provides GNU glob.  If not, use our
11399   # local version.
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11401 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11402 if ${make_cv_sys_gnu_glob+:} false; then :
11403   $as_echo_n "(cached) " >&6
11404 else
11405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h.  */
11407
11408   #include <features.h>
11409   #include <glob.h>
11410   #include <fnmatch.h>
11411   #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11412   # include <gnu-versions.h>
11413   # if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
11414      gnu glob
11415   # endif
11416   #endif
11417 _ACEOF
11418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11419   $EGREP "gnu glob" >/dev/null 2>&1; then :
11420   make_cv_sys_gnu_glob=yes
11421 else
11422   make_cv_sys_gnu_glob=no
11423 fi
11424 rm -f conftest*
11425
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11428 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11429   # Tell automake about this, so it can build the right .c files.
11430    if test "$make_cv_sys_gnu_glob" = yes; then
11431   USE_SYSTEM_GLOB_TRUE=
11432   USE_SYSTEM_GLOB_FALSE='#'
11433 else
11434   USE_SYSTEM_GLOB_TRUE='#'
11435   USE_SYSTEM_GLOB_FALSE=
11436 fi
11437
11438   # Tell build.sh which to use
11439   USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
11440
11441
11442
11443
11444   if test $gl_cv_func_malloc_posix = yes; then
11445
11446 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
11447
11448   else
11449     REPLACE_MALLOC=1
11450   fi
11451
11452   if test $REPLACE_MALLOC = 1; then
11453
11454
11455
11456
11457
11458
11459
11460
11461   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11462
11463   fi
11464
11465
11466
11467
11468
11469           GNULIB_MALLOC_POSIX=1
11470
11471
11472
11473
11474
11475 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
11476
11477
11478
11479
11480   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
11481
11482
11483
11484
11485
11486
11487
11488
11489   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
11490
11491   fi
11492
11493   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
11494
11495
11496
11497
11498
11499
11500
11501
11502   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
11503
11504   fi
11505
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define GNULIB_MSVC_NOTHROW 1
11509 _ACEOF
11510
11511
11512
11513
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11515 $as_echo_n "checking for ssize_t... " >&6; }
11516 if ${gt_cv_ssize_t+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h.  */
11521 #include <sys/types.h>
11522 int
11523 main ()
11524 {
11525 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11526             return !x;
11527   ;
11528   return 0;
11529 }
11530 _ACEOF
11531 if ac_fn_c_try_compile "$LINENO"; then :
11532   gt_cv_ssize_t=yes
11533 else
11534   gt_cv_ssize_t=no
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11539 $as_echo "$gt_cv_ssize_t" >&6; }
11540   if test $gt_cv_ssize_t = no; then
11541
11542 $as_echo "#define ssize_t int" >>confdefs.h
11543
11544   fi
11545
11546
11547
11548
11549
11550           if test "$ac_cv_header_stdbool_h" = yes; then
11551     case "$host_os" in
11552       solaris*)
11553         if test -z "$GCC"; then
11554           STDBOOL_H='stdbool.h'
11555         else
11556           STDBOOL_H=''
11557         fi
11558         ;;
11559       *)
11560         STDBOOL_H=''
11561         ;;
11562     esac
11563   else
11564     STDBOOL_H='stdbool.h'
11565   fi
11566
11567    if test -n "$STDBOOL_H"; then
11568   GL_GENERATE_STDBOOL_H_TRUE=
11569   GL_GENERATE_STDBOOL_H_FALSE='#'
11570 else
11571   GL_GENERATE_STDBOOL_H_TRUE='#'
11572   GL_GENERATE_STDBOOL_H_FALSE=
11573 fi
11574
11575
11576   if test "$ac_cv_type__Bool" = yes; then
11577     HAVE__BOOL=1
11578   else
11579     HAVE__BOOL=0
11580   fi
11581
11582
11583
11584
11585
11586   STDDEF_H=
11587
11588       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
11589 $as_echo_n "checking for good max_align_t... " >&6; }
11590 if ${gl_cv_type_max_align_t+:} false; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h.  */
11595 #include <stddef.h>
11596             unsigned int s = sizeof (max_align_t);
11597             #if defined __GNUC__ || defined __IBM__ALIGNOF__
11598             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
11599             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
11600             #endif
11601
11602 int
11603 main ()
11604 {
11605
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 if ac_fn_c_try_compile "$LINENO"; then :
11611   gl_cv_type_max_align_t=yes
11612 else
11613   gl_cv_type_max_align_t=no
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11616
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
11619 $as_echo "$gl_cv_type_max_align_t" >&6; }
11620   if test $gl_cv_type_max_align_t = no; then
11621     HAVE_MAX_ALIGN_T=0
11622     STDDEF_H=stddef.h
11623   fi
11624
11625   if test $gt_cv_c_wchar_t = no; then
11626     HAVE_WCHAR_T=0
11627     STDDEF_H=stddef.h
11628   fi
11629
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
11631 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
11632 if ${gl_cv_decl_null_works+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h.  */
11637 #include <stddef.h>
11638       int test[2 * (sizeof NULL == sizeof (void *)) -1];
11639
11640 int
11641 main ()
11642 {
11643
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_compile "$LINENO"; then :
11649   gl_cv_decl_null_works=yes
11650 else
11651   gl_cv_decl_null_works=no
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
11656 $as_echo "$gl_cv_decl_null_works" >&6; }
11657   if test $gl_cv_decl_null_works = no; then
11658     REPLACE_NULL=1
11659     STDDEF_H=stddef.h
11660   fi
11661
11662
11663    if test -n "$STDDEF_H"; then
11664   GL_GENERATE_STDDEF_H_TRUE=
11665   GL_GENERATE_STDDEF_H_FALSE='#'
11666 else
11667   GL_GENERATE_STDDEF_H_TRUE='#'
11668   GL_GENERATE_STDDEF_H_FALSE=
11669 fi
11670
11671   if test -n "$STDDEF_H"; then
11672
11673
11674
11675
11676
11677
11678
11679
11680      if test $gl_cv_have_include_next = yes; then
11681        gl_cv_next_stddef_h='<'stddef.h'>'
11682      else
11683        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
11684 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
11685 if ${gl_cv_next_stddef_h+:} false; then :
11686   $as_echo_n "(cached) " >&6
11687 else
11688
11689
11690
11691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h.  */
11693 #include <stddef.h>
11694 _ACEOF
11695                 case "$host_os" in
11696     aix*) gl_absname_cpp="$ac_cpp -C" ;;
11697     *)    gl_absname_cpp="$ac_cpp" ;;
11698   esac
11699
11700   case "$host_os" in
11701     mingw*)
11702                                           gl_dirsep_regex='[/\\]'
11703       ;;
11704     *)
11705       gl_dirsep_regex='\/'
11706       ;;
11707   esac
11708       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11709   gl_header_literal_regex=`echo 'stddef.h' \
11710                            | sed -e "$gl_make_literal_regex_sed"`
11711   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11712       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11713       s|^/[^/]|//&|
11714       p
11715       q
11716     }'
11717
11718         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11719   sed -n "$gl_absolute_header_sed"`
11720
11721            gl_header=$gl_cv_absolute_stddef_h
11722            gl_cv_next_stddef_h='"'$gl_header'"'
11723
11724
11725 fi
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
11727 $as_echo "$gl_cv_next_stddef_h" >&6; }
11728      fi
11729      NEXT_STDDEF_H=$gl_cv_next_stddef_h
11730
11731      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11732        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11733        gl_next_as_first_directive='<'stddef.h'>'
11734      else
11735        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11736        gl_next_as_first_directive=$gl_cv_next_stddef_h
11737      fi
11738      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
11739
11740
11741
11742
11743   fi
11744
11745
11746
11747
11748   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759      if test $gl_cv_have_include_next = yes; then
11760        gl_cv_next_stdio_h='<'stdio.h'>'
11761      else
11762        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
11763 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
11764 if ${gl_cv_next_stdio_h+:} false; then :
11765   $as_echo_n "(cached) " >&6
11766 else
11767
11768
11769
11770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h.  */
11772 #include <stdio.h>
11773 _ACEOF
11774                 case "$host_os" in
11775     aix*) gl_absname_cpp="$ac_cpp -C" ;;
11776     *)    gl_absname_cpp="$ac_cpp" ;;
11777   esac
11778
11779   case "$host_os" in
11780     mingw*)
11781                                           gl_dirsep_regex='[/\\]'
11782       ;;
11783     *)
11784       gl_dirsep_regex='\/'
11785       ;;
11786   esac
11787       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11788   gl_header_literal_regex=`echo 'stdio.h' \
11789                            | sed -e "$gl_make_literal_regex_sed"`
11790   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11791       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11792       s|^/[^/]|//&|
11793       p
11794       q
11795     }'
11796
11797         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11798   sed -n "$gl_absolute_header_sed"`
11799
11800            gl_header=$gl_cv_absolute_stdio_h
11801            gl_cv_next_stdio_h='"'$gl_header'"'
11802
11803
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
11806 $as_echo "$gl_cv_next_stdio_h" >&6; }
11807      fi
11808      NEXT_STDIO_H=$gl_cv_next_stdio_h
11809
11810      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11811        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11812        gl_next_as_first_directive='<'stdio.h'>'
11813      else
11814        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11815        gl_next_as_first_directive=$gl_cv_next_stdio_h
11816      fi
11817      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
11818
11819
11820
11821
11822
11823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
11824 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
11825 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h.  */
11830
11831        #define __STDC_FORMAT_MACROS 1
11832        #include <stdio.h>
11833        #include <inttypes.h>
11834        /* For non-mingw systems, compilation will trivially succeed.
11835           For mingw, compilation will succeed for older mingw (system
11836           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
11837        #if (defined _WIN32 && ! defined __CYGWIN__) && \
11838          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
11839        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
11840        #endif
11841
11842 int
11843 main ()
11844 {
11845
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 if ac_fn_c_try_compile "$LINENO"; then :
11851   gl_cv_func_printf_attribute_flavor=system
11852 else
11853   gl_cv_func_printf_attribute_flavor=gnu
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
11858 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
11859   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
11860
11861 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
11862
11863   fi
11864
11865       GNULIB_FSCANF=1
11866
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define GNULIB_FSCANF 1
11870 _ACEOF
11871
11872
11873   GNULIB_SCANF=1
11874
11875
11876 cat >>confdefs.h <<_ACEOF
11877 #define GNULIB_SCANF 1
11878 _ACEOF
11879
11880
11881   GNULIB_FGETC=1
11882   GNULIB_GETC=1
11883   GNULIB_GETCHAR=1
11884   GNULIB_FGETS=1
11885   GNULIB_FREAD=1
11886
11887
11888       GNULIB_FPRINTF=1
11889   GNULIB_PRINTF=1
11890   GNULIB_VFPRINTF=1
11891   GNULIB_VPRINTF=1
11892   GNULIB_FPUTC=1
11893   GNULIB_PUTC=1
11894   GNULIB_PUTCHAR=1
11895   GNULIB_FPUTS=1
11896   GNULIB_PUTS=1
11897   GNULIB_FWRITE=1
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915      if test $gl_cv_have_include_next = yes; then
11916        gl_cv_next_stdlib_h='<'stdlib.h'>'
11917      else
11918        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
11919 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
11920 if ${gl_cv_next_stdlib_h+:} false; then :
11921   $as_echo_n "(cached) " >&6
11922 else
11923
11924
11925
11926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h.  */
11928 #include <stdlib.h>
11929 _ACEOF
11930                 case "$host_os" in
11931     aix*) gl_absname_cpp="$ac_cpp -C" ;;
11932     *)    gl_absname_cpp="$ac_cpp" ;;
11933   esac
11934
11935   case "$host_os" in
11936     mingw*)
11937                                           gl_dirsep_regex='[/\\]'
11938       ;;
11939     *)
11940       gl_dirsep_regex='\/'
11941       ;;
11942   esac
11943       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11944   gl_header_literal_regex=`echo 'stdlib.h' \
11945                            | sed -e "$gl_make_literal_regex_sed"`
11946   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11947       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11948       s|^/[^/]|//&|
11949       p
11950       q
11951     }'
11952
11953         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11954   sed -n "$gl_absolute_header_sed"`
11955
11956            gl_header=$gl_cv_absolute_stdlib_h
11957            gl_cv_next_stdlib_h='"'$gl_header'"'
11958
11959
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
11962 $as_echo "$gl_cv_next_stdlib_h" >&6; }
11963      fi
11964      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
11965
11966      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11967        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11968        gl_next_as_first_directive='<'stdlib.h'>'
11969      else
11970        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11971        gl_next_as_first_directive=$gl_cv_next_stdlib_h
11972      fi
11973      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989   for ac_func in stpcpy
11990 do :
11991   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
11992 if test "x$ac_cv_func_stpcpy" = xyes; then :
11993   cat >>confdefs.h <<_ACEOF
11994 #define HAVE_STPCPY 1
11995 _ACEOF
11996
11997 fi
11998 done
11999
12000   if test $ac_cv_func_stpcpy = no; then
12001     HAVE_STPCPY=0
12002   fi
12003
12004   if test $HAVE_STPCPY = 0; then
12005
12006
12007
12008
12009
12010
12011
12012
12013   gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
12014
12015
12016   :
12017
12018   fi
12019
12020
12021
12022
12023
12024           GNULIB_STPCPY=1
12025
12026
12027
12028
12029
12030 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
12031
12032
12033
12034
12035
12036
12037
12038
12039   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
12040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
12041 $as_echo_n "checking for working strerror function... " >&6; }
12042 if ${gl_cv_func_working_strerror+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   if test "$cross_compiling" = yes; then :
12046   case "$host_os" in
12047                           # Guess yes on glibc systems.
12048            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
12049                           # Guess yes on musl systems.
12050            *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
12051                           # If we don't know, obey --enable-cross-guesses.
12052            *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
12053          esac
12054
12055 else
12056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h.  */
12058 #include <string.h>
12059
12060 int
12061 main ()
12062 {
12063 if (!*strerror (-2)) return 1;
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_run "$LINENO"; then :
12069   gl_cv_func_working_strerror=yes
12070 else
12071   gl_cv_func_working_strerror=no
12072 fi
12073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12074   conftest.$ac_objext conftest.beam conftest.$ac_ext
12075 fi
12076
12077
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
12080 $as_echo "$gl_cv_func_working_strerror" >&6; }
12081     case "$gl_cv_func_working_strerror" in
12082       *yes) ;;
12083       *)
12084                         REPLACE_STRERROR=1
12085         ;;
12086     esac
12087
12088   else
12089             REPLACE_STRERROR=1
12090   fi
12091
12092   if test $REPLACE_STRERROR = 1; then
12093
12094
12095
12096
12097
12098
12099
12100
12101   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
12102
12103   fi
12104
12105
12106 cat >>confdefs.h <<_ACEOF
12107 #define GNULIB_STRERROR 1
12108 _ACEOF
12109
12110
12111
12112
12113
12114
12115
12116           GNULIB_STRERROR=1
12117
12118
12119
12120
12121
12122 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
12123
12124
12125
12126
12127
12128   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
12129
12130
12131
12132
12133
12134
12135
12136
12137   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
12138
12139
12140
12141
12142
12143   if test $ac_cv_header_sys_socket_h != yes; then
12144                     for ac_header in winsock2.h
12145 do :
12146   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12147 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12148   cat >>confdefs.h <<_ACEOF
12149 #define HAVE_WINSOCK2_H 1
12150 _ACEOF
12151
12152 fi
12153
12154 done
12155
12156   fi
12157   if test "$ac_cv_header_winsock2_h" = yes; then
12158     HAVE_WINSOCK2_H=1
12159     UNISTD_H_HAVE_WINSOCK2_H=1
12160     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
12161   else
12162     HAVE_WINSOCK2_H=0
12163   fi
12164
12165
12166   fi
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184      if test $gl_cv_have_include_next = yes; then
12185        gl_cv_next_unistd_h='<'unistd.h'>'
12186      else
12187        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
12188 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
12189 if ${gl_cv_next_unistd_h+:} false; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192
12193              if test $ac_cv_header_unistd_h = yes; then
12194
12195
12196
12197
12198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h.  */
12200 #include <unistd.h>
12201 _ACEOF
12202                 case "$host_os" in
12203     aix*) gl_absname_cpp="$ac_cpp -C" ;;
12204     *)    gl_absname_cpp="$ac_cpp" ;;
12205   esac
12206
12207   case "$host_os" in
12208     mingw*)
12209                                           gl_dirsep_regex='[/\\]'
12210       ;;
12211     *)
12212       gl_dirsep_regex='\/'
12213       ;;
12214   esac
12215       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12216   gl_header_literal_regex=`echo 'unistd.h' \
12217                            | sed -e "$gl_make_literal_regex_sed"`
12218   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12219       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12220       s|^/[^/]|//&|
12221       p
12222       q
12223     }'
12224
12225         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12226   sed -n "$gl_absolute_header_sed"`
12227
12228            gl_header=$gl_cv_absolute_unistd_h
12229            gl_cv_next_unistd_h='"'$gl_header'"'
12230           else
12231                gl_cv_next_unistd_h='<'unistd.h'>'
12232              fi
12233
12234
12235 fi
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
12237 $as_echo "$gl_cv_next_unistd_h" >&6; }
12238      fi
12239      NEXT_UNISTD_H=$gl_cv_next_unistd_h
12240
12241      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12242        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12243        gl_next_as_first_directive='<'unistd.h'>'
12244      else
12245        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12246        gl_next_as_first_directive=$gl_cv_next_unistd_h
12247      fi
12248      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
12249
12250
12251
12252
12253   if test $ac_cv_header_unistd_h = yes; then
12254     HAVE_UNISTD_H=1
12255   else
12256     HAVE_UNISTD_H=0
12257   fi
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268   :
12269   # End of code from modules
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279   gltests_libdeps=
12280   gltests_ltlibdeps=
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290   gl_source_base='tests'
12291   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
12292
12293   gl_module_indicator_condition=$gltests_WITNESS
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303   LIBGNU_LIBDEPS="$gl_libdeps"
12304
12305   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
12306
12307
12308
12309
12310 if test -n "$ac_tool_prefix"; then
12311   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12312 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   if test -n "$RANLIB"; then
12319   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
12339 if test -n "$RANLIB"; then
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12341 $as_echo "$RANLIB" >&6; }
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 fi
12346
12347
12348 fi
12349 if test -z "$ac_cv_prog_RANLIB"; then
12350   ac_ct_RANLIB=$RANLIB
12351   # Extract the first word of "ranlib", so it can be a program name with args.
12352 set dummy ranlib; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358   if test -n "$ac_ct_RANLIB"; then
12359   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364   IFS=$as_save_IFS
12365   test -z "$as_dir" && as_dir=.
12366     for ac_exec_ext in '' $ac_executable_extensions; do
12367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12368     ac_cv_prog_ac_ct_RANLIB="ranlib"
12369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370     break 2
12371   fi
12372 done
12373   done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12379 if test -n "$ac_ct_RANLIB"; then
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12381 $as_echo "$ac_ct_RANLIB" >&6; }
12382 else
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387   if test "x$ac_ct_RANLIB" = x; then
12388     RANLIB=":"
12389   else
12390     case $cross_compiling:$ac_tool_warned in
12391 yes:)
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12394 ac_tool_warned=yes ;;
12395 esac
12396     RANLIB=$ac_ct_RANLIB
12397   fi
12398 else
12399   RANLIB="$ac_cv_prog_RANLIB"
12400 fi
12401
12402 ac_ext=c
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12409 # On Suns, sometimes $CPP names a directory.
12410 if test -n "$CPP" && test -d "$CPP"; then
12411   CPP=
12412 fi
12413 if test -z "$CPP"; then
12414   if ${ac_cv_prog_CPP+:} false; then :
12415   $as_echo_n "(cached) " >&6
12416 else
12417       # Double quotes because CPP needs to be expanded
12418     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12419     do
12420       ac_preproc_ok=false
12421 for ac_c_preproc_warn_flag in '' yes
12422 do
12423   # Use a header file that comes with gcc, so configuring glibc
12424   # with a fresh cross-compiler works.
12425   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426   # <limits.h> exists even on freestanding compilers.
12427   # On the NeXT, cc -E runs the code through the compiler's parser,
12428   # not just through cpp. "Syntax error" is here to catch this case.
12429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431 #ifdef __STDC__
12432 # include <limits.h>
12433 #else
12434 # include <assert.h>
12435 #endif
12436                      Syntax error
12437 _ACEOF
12438 if ac_fn_c_try_cpp "$LINENO"; then :
12439
12440 else
12441   # Broken: fails on valid input.
12442 continue
12443 fi
12444 rm -f conftest.err conftest.i conftest.$ac_ext
12445
12446   # OK, works on sane cases.  Now check whether nonexistent headers
12447   # can be detected and how.
12448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h.  */
12450 #include <ac_nonexistent.h>
12451 _ACEOF
12452 if ac_fn_c_try_cpp "$LINENO"; then :
12453   # Broken: success on invalid input.
12454 continue
12455 else
12456   # Passes both tests.
12457 ac_preproc_ok=:
12458 break
12459 fi
12460 rm -f conftest.err conftest.i conftest.$ac_ext
12461
12462 done
12463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12464 rm -f conftest.i conftest.err conftest.$ac_ext
12465 if $ac_preproc_ok; then :
12466   break
12467 fi
12468
12469     done
12470     ac_cv_prog_CPP=$CPP
12471
12472 fi
12473   CPP=$ac_cv_prog_CPP
12474 else
12475   ac_cv_prog_CPP=$CPP
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12478 $as_echo "$CPP" >&6; }
12479 ac_preproc_ok=false
12480 for ac_c_preproc_warn_flag in '' yes
12481 do
12482   # Use a header file that comes with gcc, so configuring glibc
12483   # with a fresh cross-compiler works.
12484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485   # <limits.h> exists even on freestanding compilers.
12486   # On the NeXT, cc -E runs the code through the compiler's parser,
12487   # not just through cpp. "Syntax error" is here to catch this case.
12488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h.  */
12490 #ifdef __STDC__
12491 # include <limits.h>
12492 #else
12493 # include <assert.h>
12494 #endif
12495                      Syntax error
12496 _ACEOF
12497 if ac_fn_c_try_cpp "$LINENO"; then :
12498
12499 else
12500   # Broken: fails on valid input.
12501 continue
12502 fi
12503 rm -f conftest.err conftest.i conftest.$ac_ext
12504
12505   # OK, works on sane cases.  Now check whether nonexistent headers
12506   # can be detected and how.
12507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h.  */
12509 #include <ac_nonexistent.h>
12510 _ACEOF
12511 if ac_fn_c_try_cpp "$LINENO"; then :
12512   # Broken: success on invalid input.
12513 continue
12514 else
12515   # Passes both tests.
12516 ac_preproc_ok=:
12517 break
12518 fi
12519 rm -f conftest.err conftest.i conftest.$ac_ext
12520
12521 done
12522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12523 rm -f conftest.i conftest.err conftest.$ac_ext
12524 if $ac_preproc_ok; then :
12525
12526 else
12527   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12530 See \`config.log' for more details" "$LINENO" 5; }
12531 fi
12532
12533 ac_ext=c
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12538
12539 # Extract the first word of "ar", so it can be a program name with args.
12540 set dummy ar; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_AR+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   if test -n "$AR"; then
12547   ac_cv_prog_AR="$AR" # Let the user override the test.
12548 else
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12551 do
12552   IFS=$as_save_IFS
12553   test -z "$as_dir" && as_dir=.
12554     for ac_exec_ext in '' $ac_executable_extensions; do
12555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556     ac_cv_prog_AR="ar"
12557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558     break 2
12559   fi
12560 done
12561   done
12562 IFS=$as_save_IFS
12563
12564   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
12565 fi
12566 fi
12567 AR=$ac_cv_prog_AR
12568 if test -n "$AR"; then
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12570 $as_echo "$AR" >&6; }
12571 else
12572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12574 fi
12575
12576
12577 # Perl is needed for the test suite (only)
12578 # Extract the first word of "perl", so it can be a program name with args.
12579 set dummy perl; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_prog_PERL+:} false; then :
12583   $as_echo_n "(cached) " >&6
12584 else
12585   if test -n "$PERL"; then
12586   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12587 else
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591   IFS=$as_save_IFS
12592   test -z "$as_dir" && as_dir=.
12593     for ac_exec_ext in '' $ac_executable_extensions; do
12594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595     ac_cv_prog_PERL="perl"
12596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597     break 2
12598   fi
12599 done
12600   done
12601 IFS=$as_save_IFS
12602
12603   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
12604 fi
12605 fi
12606 PERL=$ac_cv_prog_PERL
12607 if test -n "$PERL"; then
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12609 $as_echo "$PERL" >&6; }
12610 else
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615
12616
12617 # Specialized system macros
12618
12619
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12621 $as_echo_n "checking for library containing strerror... " >&6; }
12622 if ${ac_cv_search_strerror+:} false; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   ac_func_search_save_LIBS=$LIBS
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h.  */
12628
12629 /* Override any GCC internal prototype to avoid an error.
12630    Use char because int might match the return type of a GCC
12631    builtin and then its argument prototype would still apply.  */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char strerror ();
12636 int
12637 main ()
12638 {
12639 return strerror ();
12640   ;
12641   return 0;
12642 }
12643 _ACEOF
12644 for ac_lib in '' cposix; do
12645   if test -z "$ac_lib"; then
12646     ac_res="none required"
12647   else
12648     ac_res=-l$ac_lib
12649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12650   fi
12651   if ac_fn_c_try_link "$LINENO"; then :
12652   ac_cv_search_strerror=$ac_res
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext \
12655     conftest$ac_exeext
12656   if ${ac_cv_search_strerror+:} false; then :
12657   break
12658 fi
12659 done
12660 if ${ac_cv_search_strerror+:} false; then :
12661
12662 else
12663   ac_cv_search_strerror=no
12664 fi
12665 rm conftest.$ac_ext
12666 LIBS=$ac_func_search_save_LIBS
12667 fi
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12669 $as_echo "$ac_cv_search_strerror" >&6; }
12670 ac_res=$ac_cv_search_strerror
12671 if test "$ac_res" != no; then :
12672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12673
12674 fi
12675
12676
12677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12678 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12679 if ${ac_cv_c_bigendian+:} false; then :
12680   $as_echo_n "(cached) " >&6
12681 else
12682   ac_cv_c_bigendian=unknown
12683     # See if we're dealing with a universal compiler.
12684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h.  */
12686 #ifndef __APPLE_CC__
12687                not a universal capable compiler
12688              #endif
12689              typedef int dummy;
12690
12691 _ACEOF
12692 if ac_fn_c_try_compile "$LINENO"; then :
12693
12694         # Check for potential -arch flags.  It is not universal unless
12695         # there are at least two -arch flags with different values.
12696         ac_arch=
12697         ac_prev=
12698         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12699          if test -n "$ac_prev"; then
12700            case $ac_word in
12701              i?86 | x86_64 | ppc | ppc64)
12702                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12703                  ac_arch=$ac_word
12704                else
12705                  ac_cv_c_bigendian=universal
12706                  break
12707                fi
12708                ;;
12709            esac
12710            ac_prev=
12711          elif test "x$ac_word" = "x-arch"; then
12712            ac_prev=arch
12713          fi
12714        done
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717     if test $ac_cv_c_bigendian = unknown; then
12718       # See if sys/param.h defines the BYTE_ORDER macro.
12719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721 #include <sys/types.h>
12722              #include <sys/param.h>
12723
12724 int
12725 main ()
12726 {
12727 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12728                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12729                      && LITTLE_ENDIAN)
12730               bogus endian macros
12731              #endif
12732
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_compile "$LINENO"; then :
12738   # It does; now see whether it defined to BIG_ENDIAN or not.
12739          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741 #include <sys/types.h>
12742                 #include <sys/param.h>
12743
12744 int
12745 main ()
12746 {
12747 #if BYTE_ORDER != BIG_ENDIAN
12748                  not big endian
12749                 #endif
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756   ac_cv_c_bigendian=yes
12757 else
12758   ac_cv_c_bigendian=no
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 fi
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763     fi
12764     if test $ac_cv_c_bigendian = unknown; then
12765       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h.  */
12768 #include <limits.h>
12769
12770 int
12771 main ()
12772 {
12773 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12774               bogus endian macros
12775              #endif
12776
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782   # It does; now see whether it defined to _BIG_ENDIAN or not.
12783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785 #include <limits.h>
12786
12787 int
12788 main ()
12789 {
12790 #ifndef _BIG_ENDIAN
12791                  not big endian
12792                 #endif
12793
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799   ac_cv_c_bigendian=yes
12800 else
12801   ac_cv_c_bigendian=no
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806     fi
12807     if test $ac_cv_c_bigendian = unknown; then
12808       # Compile a test program.
12809       if test "$cross_compiling" = yes; then :
12810   # Try to guess by grepping values from an object file.
12811          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h.  */
12813 short int ascii_mm[] =
12814                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12815                 short int ascii_ii[] =
12816                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12817                 int use_ascii (int i) {
12818                   return ascii_mm[i] + ascii_ii[i];
12819                 }
12820                 short int ebcdic_ii[] =
12821                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12822                 short int ebcdic_mm[] =
12823                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12824                 int use_ebcdic (int i) {
12825                   return ebcdic_mm[i] + ebcdic_ii[i];
12826                 }
12827                 extern int foo;
12828
12829 int
12830 main ()
12831 {
12832 return use_ascii (foo) == use_ebcdic (foo);
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12839               ac_cv_c_bigendian=yes
12840             fi
12841             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12842               if test "$ac_cv_c_bigendian" = unknown; then
12843                 ac_cv_c_bigendian=no
12844               else
12845                 # finding both strings is unlikely to happen, but who knows?
12846                 ac_cv_c_bigendian=unknown
12847               fi
12848             fi
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 else
12852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h.  */
12854 $ac_includes_default
12855 int
12856 main ()
12857 {
12858
12859              /* Are we little or big endian?  From Harbison&Steele.  */
12860              union
12861              {
12862                long int l;
12863                char c[sizeof (long int)];
12864              } u;
12865              u.l = 1;
12866              return u.c[sizeof (long int) - 1] == 1;
12867
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 if ac_fn_c_try_run "$LINENO"; then :
12873   ac_cv_c_bigendian=no
12874 else
12875   ac_cv_c_bigendian=yes
12876 fi
12877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12878   conftest.$ac_objext conftest.beam conftest.$ac_ext
12879 fi
12880
12881     fi
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12884 $as_echo "$ac_cv_c_bigendian" >&6; }
12885  case $ac_cv_c_bigendian in #(
12886    yes)
12887      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12888 ;; #(
12889    no)
12890       ;; #(
12891    universal)
12892
12893 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12894
12895      ;; #(
12896    *)
12897      as_fn_error $? "unknown endianness
12898  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12899  esac
12900
12901
12902 # Enable gettext, in "external" mode.
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12906 if ${ac_cv_path_SED+:} false; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12910      for ac_i in 1 2 3 4 5 6 7; do
12911        ac_script="$ac_script$as_nl$ac_script"
12912      done
12913      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12914      { ac_script=; unset ac_script;}
12915      if test -z "$SED"; then
12916   ac_path_SED_found=false
12917   # Loop through the user's path and test for each of PROGNAME-LIST
12918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12920 do
12921   IFS=$as_save_IFS
12922   test -z "$as_dir" && as_dir=.
12923     for ac_prog in sed gsed; do
12924     for ac_exec_ext in '' $ac_executable_extensions; do
12925       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12926       as_fn_executable_p "$ac_path_SED" || continue
12927 # Check for GNU ac_path_SED and select it if it is found.
12928   # Check for GNU $ac_path_SED
12929 case `"$ac_path_SED" --version 2>&1` in
12930 *GNU*)
12931   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12932 *)
12933   ac_count=0
12934   $as_echo_n 0123456789 >"conftest.in"
12935   while :
12936   do
12937     cat "conftest.in" "conftest.in" >"conftest.tmp"
12938     mv "conftest.tmp" "conftest.in"
12939     cp "conftest.in" "conftest.nl"
12940     $as_echo '' >> "conftest.nl"
12941     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12942     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12943     as_fn_arith $ac_count + 1 && ac_count=$as_val
12944     if test $ac_count -gt ${ac_path_SED_max-0}; then
12945       # Best one so far, save it but keep looking for a better one
12946       ac_cv_path_SED="$ac_path_SED"
12947       ac_path_SED_max=$ac_count
12948     fi
12949     # 10*(2^10) chars as input seems more than enough
12950     test $ac_count -gt 10 && break
12951   done
12952   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12953 esac
12954
12955       $ac_path_SED_found && break 3
12956     done
12957   done
12958   done
12959 IFS=$as_save_IFS
12960   if test -z "$ac_cv_path_SED"; then
12961     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12962   fi
12963 else
12964   ac_cv_path_SED=$SED
12965 fi
12966
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12969 $as_echo "$ac_cv_path_SED" >&6; }
12970  SED="$ac_cv_path_SED"
12971   rm -f conftest.sed
12972
12973
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12975 $as_echo_n "checking whether NLS is requested... " >&6; }
12976     # Check whether --enable-nls was given.
12977 if test "${enable_nls+set}" = set; then :
12978   enableval=$enable_nls; USE_NLS=$enableval
12979 else
12980   USE_NLS=yes
12981 fi
12982
12983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12984 $as_echo "$USE_NLS" >&6; }
12985
12986
12987
12988
12989       GETTEXT_MACRO_VERSION=0.19
12990
12991
12992
12993
12994 # Prepare PATH_SEPARATOR.
12995 # The user is always right.
12996 if test "${PATH_SEPARATOR+set}" != set; then
12997   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12998   # contains only /bin. Note that ksh looks also at the FPATH variable,
12999   # so we have to set that as well for the test.
13000   PATH_SEPARATOR=:
13001   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13002     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13003            || PATH_SEPARATOR=';'
13004        }
13005 fi
13006
13007 # Find out how to test for executable files. Don't use a zero-byte file,
13008 # as systems may use methods other than mode bits to determine executability.
13009 cat >conf$$.file <<_ASEOF
13010 #! /bin/sh
13011 exit 0
13012 _ASEOF
13013 chmod +x conf$$.file
13014 if test -x conf$$.file >/dev/null 2>&1; then
13015   ac_executable_p="test -x"
13016 else
13017   ac_executable_p="test -f"
13018 fi
13019 rm -f conf$$.file
13020
13021 # Extract the first word of "msgfmt", so it can be a program name with args.
13022 set dummy msgfmt; ac_word=$2
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024 $as_echo_n "checking for $ac_word... " >&6; }
13025 if ${ac_cv_path_MSGFMT+:} false; then :
13026   $as_echo_n "(cached) " >&6
13027 else
13028   case "$MSGFMT" in
13029   [\\/]* | ?:[\\/]*)
13030     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13031     ;;
13032   *)
13033     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13034     for ac_dir in $PATH; do
13035       IFS="$ac_save_IFS"
13036       test -z "$ac_dir" && ac_dir=.
13037       for ac_exec_ext in '' $ac_executable_extensions; do
13038         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13039           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13040           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13041      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13042             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13043             break 2
13044           fi
13045         fi
13046       done
13047     done
13048     IFS="$ac_save_IFS"
13049   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13050     ;;
13051 esac
13052 fi
13053 MSGFMT="$ac_cv_path_MSGFMT"
13054 if test "$MSGFMT" != ":"; then
13055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13056 $as_echo "$MSGFMT" >&6; }
13057 else
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 fi
13061
13062   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13063 set dummy gmsgfmt; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if ${ac_cv_path_GMSGFMT+:} false; then :
13067   $as_echo_n "(cached) " >&6
13068 else
13069   case $GMSGFMT in
13070   [\\/]* | ?:[\\/]*)
13071   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13072   ;;
13073   *)
13074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077   IFS=$as_save_IFS
13078   test -z "$as_dir" && as_dir=.
13079     for ac_exec_ext in '' $ac_executable_extensions; do
13080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083     break 2
13084   fi
13085 done
13086   done
13087 IFS=$as_save_IFS
13088
13089   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13090   ;;
13091 esac
13092 fi
13093 GMSGFMT=$ac_cv_path_GMSGFMT
13094 if test -n "$GMSGFMT"; then
13095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13096 $as_echo "$GMSGFMT" >&6; }
13097 else
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13100 fi
13101
13102
13103
13104     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13105     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13106     *) MSGFMT_015=$MSGFMT ;;
13107   esac
13108
13109   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13110     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13111     *) GMSGFMT_015=$GMSGFMT ;;
13112   esac
13113
13114
13115
13116 # Prepare PATH_SEPARATOR.
13117 # The user is always right.
13118 if test "${PATH_SEPARATOR+set}" != set; then
13119   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13120   # contains only /bin. Note that ksh looks also at the FPATH variable,
13121   # so we have to set that as well for the test.
13122   PATH_SEPARATOR=:
13123   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13124     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13125            || PATH_SEPARATOR=';'
13126        }
13127 fi
13128
13129 # Find out how to test for executable files. Don't use a zero-byte file,
13130 # as systems may use methods other than mode bits to determine executability.
13131 cat >conf$$.file <<_ASEOF
13132 #! /bin/sh
13133 exit 0
13134 _ASEOF
13135 chmod +x conf$$.file
13136 if test -x conf$$.file >/dev/null 2>&1; then
13137   ac_executable_p="test -x"
13138 else
13139   ac_executable_p="test -f"
13140 fi
13141 rm -f conf$$.file
13142
13143 # Extract the first word of "xgettext", so it can be a program name with args.
13144 set dummy xgettext; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if ${ac_cv_path_XGETTEXT+:} false; then :
13148   $as_echo_n "(cached) " >&6
13149 else
13150   case "$XGETTEXT" in
13151   [\\/]* | ?:[\\/]*)
13152     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13153     ;;
13154   *)
13155     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13156     for ac_dir in $PATH; do
13157       IFS="$ac_save_IFS"
13158       test -z "$ac_dir" && ac_dir=.
13159       for ac_exec_ext in '' $ac_executable_extensions; do
13160         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13161           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13162           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13163      (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
13164             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13165             break 2
13166           fi
13167         fi
13168       done
13169     done
13170     IFS="$ac_save_IFS"
13171   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13172     ;;
13173 esac
13174 fi
13175 XGETTEXT="$ac_cv_path_XGETTEXT"
13176 if test "$XGETTEXT" != ":"; then
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13178 $as_echo "$XGETTEXT" >&6; }
13179 else
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184     rm -f messages.po
13185
13186     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13187     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13188     *) XGETTEXT_015=$XGETTEXT ;;
13189   esac
13190
13191
13192
13193 # Prepare PATH_SEPARATOR.
13194 # The user is always right.
13195 if test "${PATH_SEPARATOR+set}" != set; then
13196   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13197   # contains only /bin. Note that ksh looks also at the FPATH variable,
13198   # so we have to set that as well for the test.
13199   PATH_SEPARATOR=:
13200   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13201     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13202            || PATH_SEPARATOR=';'
13203        }
13204 fi
13205
13206 # Find out how to test for executable files. Don't use a zero-byte file,
13207 # as systems may use methods other than mode bits to determine executability.
13208 cat >conf$$.file <<_ASEOF
13209 #! /bin/sh
13210 exit 0
13211 _ASEOF
13212 chmod +x conf$$.file
13213 if test -x conf$$.file >/dev/null 2>&1; then
13214   ac_executable_p="test -x"
13215 else
13216   ac_executable_p="test -f"
13217 fi
13218 rm -f conf$$.file
13219
13220 # Extract the first word of "msgmerge", so it can be a program name with args.
13221 set dummy msgmerge; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_path_MSGMERGE+:} false; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   case "$MSGMERGE" in
13228   [\\/]* | ?:[\\/]*)
13229     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13230     ;;
13231   *)
13232     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13233     for ac_dir in $PATH; do
13234       IFS="$ac_save_IFS"
13235       test -z "$ac_dir" && ac_dir=.
13236       for ac_exec_ext in '' $ac_executable_extensions; do
13237         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13238           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13239           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13240             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13241             break 2
13242           fi
13243         fi
13244       done
13245     done
13246     IFS="$ac_save_IFS"
13247   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13248     ;;
13249 esac
13250 fi
13251 MSGMERGE="$ac_cv_path_MSGMERGE"
13252 if test "$MSGMERGE" != ":"; then
13253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13254 $as_echo "$MSGMERGE" >&6; }
13255 else
13256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13258 fi
13259
13260
13261         test -n "$localedir" || localedir='${datadir}/locale'
13262
13263
13264     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13265
13266
13267   ac_config_commands="$ac_config_commands po-directories"
13268
13269
13270
13271       if test "X$prefix" = "XNONE"; then
13272     acl_final_prefix="$ac_default_prefix"
13273   else
13274     acl_final_prefix="$prefix"
13275   fi
13276   if test "X$exec_prefix" = "XNONE"; then
13277     acl_final_exec_prefix='${prefix}'
13278   else
13279     acl_final_exec_prefix="$exec_prefix"
13280   fi
13281   acl_save_prefix="$prefix"
13282   prefix="$acl_final_prefix"
13283   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13284   prefix="$acl_save_prefix"
13285
13286
13287
13288 # Check whether --with-gnu-ld was given.
13289 if test "${with_gnu_ld+set}" = set; then :
13290   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13291 else
13292   with_gnu_ld=no
13293 fi
13294
13295 # Prepare PATH_SEPARATOR.
13296 # The user is always right.
13297 if test "${PATH_SEPARATOR+set}" != set; then
13298   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13299   # contains only /bin. Note that ksh looks also at the FPATH variable,
13300   # so we have to set that as well for the test.
13301   PATH_SEPARATOR=:
13302   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13303     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13304            || PATH_SEPARATOR=';'
13305        }
13306 fi
13307
13308 ac_prog=ld
13309 if test "$GCC" = yes; then
13310   # Check if gcc -print-prog-name=ld gives a path.
13311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13312 $as_echo_n "checking for ld used by $CC... " >&6; }
13313   case $host in
13314   *-*-mingw*)
13315     # gcc leaves a trailing carriage return which upsets mingw
13316     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13317   *)
13318     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13319   esac
13320   case $ac_prog in
13321     # Accept absolute paths.
13322     [\\/]* | ?:[\\/]*)
13323       re_direlt='/[^/][^/]*/\.\./'
13324       # Canonicalize the pathname of ld
13325       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13326       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13327         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13328       done
13329       test -z "$LD" && LD="$ac_prog"
13330       ;;
13331   "")
13332     # If it fails, then pretend we aren't using GCC.
13333     ac_prog=ld
13334     ;;
13335   *)
13336     # If it is relative, then search for the first ld in PATH.
13337     with_gnu_ld=unknown
13338     ;;
13339   esac
13340 elif test "$with_gnu_ld" = yes; then
13341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13342 $as_echo_n "checking for GNU ld... " >&6; }
13343 else
13344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13345 $as_echo_n "checking for non-GNU ld... " >&6; }
13346 fi
13347 if ${acl_cv_path_LD+:} false; then :
13348   $as_echo_n "(cached) " >&6
13349 else
13350   if test -z "$LD"; then
13351   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13352   for ac_dir in $PATH; do
13353     IFS="$acl_save_ifs"
13354     test -z "$ac_dir" && ac_dir=.
13355     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13356       acl_cv_path_LD="$ac_dir/$ac_prog"
13357       # Check to see if the program is GNU ld.  I'd rather use --version,
13358       # but apparently some variants of GNU ld only accept -v.
13359       # Break only if it was the GNU/non-GNU ld that we prefer.
13360       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13361       *GNU* | *'with BFD'*)
13362         test "$with_gnu_ld" != no && break
13363         ;;
13364       *)
13365         test "$with_gnu_ld" != yes && break
13366         ;;
13367       esac
13368     fi
13369   done
13370   IFS="$acl_save_ifs"
13371 else
13372   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13373 fi
13374 fi
13375
13376 LD="$acl_cv_path_LD"
13377 if test -n "$LD"; then
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13379 $as_echo "$LD" >&6; }
13380 else
13381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13383 fi
13384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13387 if ${acl_cv_prog_gnu_ld+:} false; then :
13388   $as_echo_n "(cached) " >&6
13389 else
13390   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13391 case `$LD -v 2>&1 </dev/null` in
13392 *GNU* | *'with BFD'*)
13393   acl_cv_prog_gnu_ld=yes
13394   ;;
13395 *)
13396   acl_cv_prog_gnu_ld=no
13397   ;;
13398 esac
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13401 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13402 with_gnu_ld=$acl_cv_prog_gnu_ld
13403
13404
13405
13406
13407                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13408 $as_echo_n "checking for shared library run path origin... " >&6; }
13409 if ${acl_cv_rpath+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412
13413     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13414     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13415     . ./conftest.sh
13416     rm -f ./conftest.sh
13417     acl_cv_rpath=done
13418
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13421 $as_echo "$acl_cv_rpath" >&6; }
13422   wl="$acl_cv_wl"
13423   acl_libext="$acl_cv_libext"
13424   acl_shlibext="$acl_cv_shlibext"
13425   acl_libname_spec="$acl_cv_libname_spec"
13426   acl_library_names_spec="$acl_cv_library_names_spec"
13427   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13428   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13429   acl_hardcode_direct="$acl_cv_hardcode_direct"
13430   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13431     # Check whether --enable-rpath was given.
13432 if test "${enable_rpath+set}" = set; then :
13433   enableval=$enable_rpath; :
13434 else
13435   enable_rpath=yes
13436 fi
13437
13438
13439
13440
13441   acl_libdirstem=lib
13442   acl_libdirstem2=
13443   case "$host_os" in
13444     solaris*)
13445                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13446 $as_echo_n "checking for 64-bit host... " >&6; }
13447 if ${gl_cv_solaris_64bit+:} false; then :
13448   $as_echo_n "(cached) " >&6
13449 else
13450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h.  */
13452
13453 #ifdef _LP64
13454 sixtyfour bits
13455 #endif
13456
13457 _ACEOF
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13460   gl_cv_solaris_64bit=yes
13461 else
13462   gl_cv_solaris_64bit=no
13463 fi
13464 rm -f conftest*
13465
13466
13467 fi
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13469 $as_echo "$gl_cv_solaris_64bit" >&6; }
13470       if test $gl_cv_solaris_64bit = yes; then
13471         acl_libdirstem=lib/64
13472         case "$host_cpu" in
13473           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13474           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13475         esac
13476       fi
13477       ;;
13478     *)
13479       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13480       if test -n "$searchpath"; then
13481         acl_save_IFS="${IFS=    }"; IFS=":"
13482         for searchdir in $searchpath; do
13483           if test -d "$searchdir"; then
13484             case "$searchdir" in
13485               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13486               */../ | */.. )
13487                 # Better ignore directories of this form. They are misleading.
13488                 ;;
13489               *) searchdir=`cd "$searchdir" && pwd`
13490                  case "$searchdir" in
13491                    */lib64 ) acl_libdirstem=lib64 ;;
13492                  esac ;;
13493             esac
13494           fi
13495         done
13496         IFS="$acl_save_IFS"
13497       fi
13498       ;;
13499   esac
13500   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513     use_additional=yes
13514
13515   acl_save_prefix="$prefix"
13516   prefix="$acl_final_prefix"
13517   acl_save_exec_prefix="$exec_prefix"
13518   exec_prefix="$acl_final_exec_prefix"
13519
13520     eval additional_includedir=\"$includedir\"
13521     eval additional_libdir=\"$libdir\"
13522
13523   exec_prefix="$acl_save_exec_prefix"
13524   prefix="$acl_save_prefix"
13525
13526
13527 # Check whether --with-libiconv-prefix was given.
13528 if test "${with_libiconv_prefix+set}" = set; then :
13529   withval=$with_libiconv_prefix;
13530     if test "X$withval" = "Xno"; then
13531       use_additional=no
13532     else
13533       if test "X$withval" = "X"; then
13534
13535   acl_save_prefix="$prefix"
13536   prefix="$acl_final_prefix"
13537   acl_save_exec_prefix="$exec_prefix"
13538   exec_prefix="$acl_final_exec_prefix"
13539
13540           eval additional_includedir=\"$includedir\"
13541           eval additional_libdir=\"$libdir\"
13542
13543   exec_prefix="$acl_save_exec_prefix"
13544   prefix="$acl_save_prefix"
13545
13546       else
13547         additional_includedir="$withval/include"
13548         additional_libdir="$withval/$acl_libdirstem"
13549         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13550            && ! test -d "$withval/$acl_libdirstem"; then
13551           additional_libdir="$withval/$acl_libdirstem2"
13552         fi
13553       fi
13554     fi
13555
13556 fi
13557
13558       LIBICONV=
13559   LTLIBICONV=
13560   INCICONV=
13561   LIBICONV_PREFIX=
13562       HAVE_LIBICONV=
13563   rpathdirs=
13564   ltrpathdirs=
13565   names_already_handled=
13566   names_next_round='iconv '
13567   while test -n "$names_next_round"; do
13568     names_this_round="$names_next_round"
13569     names_next_round=
13570     for name in $names_this_round; do
13571       already_handled=
13572       for n in $names_already_handled; do
13573         if test "$n" = "$name"; then
13574           already_handled=yes
13575           break
13576         fi
13577       done
13578       if test -z "$already_handled"; then
13579         names_already_handled="$names_already_handled $name"
13580                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13581         eval value=\"\$HAVE_LIB$uppername\"
13582         if test -n "$value"; then
13583           if test "$value" = yes; then
13584             eval value=\"\$LIB$uppername\"
13585             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13586             eval value=\"\$LTLIB$uppername\"
13587             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13588           else
13589                                     :
13590           fi
13591         else
13592                               found_dir=
13593           found_la=
13594           found_so=
13595           found_a=
13596           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13597           if test -n "$acl_shlibext"; then
13598             shrext=".$acl_shlibext"             # typically: shrext=.so
13599           else
13600             shrext=
13601           fi
13602           if test $use_additional = yes; then
13603             dir="$additional_libdir"
13604                                     if test -n "$acl_shlibext"; then
13605               if test -f "$dir/$libname$shrext"; then
13606                 found_dir="$dir"
13607                 found_so="$dir/$libname$shrext"
13608               else
13609                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13610                   ver=`(cd "$dir" && \
13611                         for f in "$libname$shrext".*; do echo "$f"; done \
13612                         | sed -e "s,^$libname$shrext\\\\.,," \
13613                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13614                         | sed 1q ) 2>/dev/null`
13615                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13616                     found_dir="$dir"
13617                     found_so="$dir/$libname$shrext.$ver"
13618                   fi
13619                 else
13620                   eval library_names=\"$acl_library_names_spec\"
13621                   for f in $library_names; do
13622                     if test -f "$dir/$f"; then
13623                       found_dir="$dir"
13624                       found_so="$dir/$f"
13625                       break
13626                     fi
13627                   done
13628                 fi
13629               fi
13630             fi
13631                         if test "X$found_dir" = "X"; then
13632               if test -f "$dir/$libname.$acl_libext"; then
13633                 found_dir="$dir"
13634                 found_a="$dir/$libname.$acl_libext"
13635               fi
13636             fi
13637             if test "X$found_dir" != "X"; then
13638               if test -f "$dir/$libname.la"; then
13639                 found_la="$dir/$libname.la"
13640               fi
13641             fi
13642           fi
13643           if test "X$found_dir" = "X"; then
13644             for x in $LDFLAGS $LTLIBICONV; do
13645
13646   acl_save_prefix="$prefix"
13647   prefix="$acl_final_prefix"
13648   acl_save_exec_prefix="$exec_prefix"
13649   exec_prefix="$acl_final_exec_prefix"
13650   eval x=\"$x\"
13651   exec_prefix="$acl_save_exec_prefix"
13652   prefix="$acl_save_prefix"
13653
13654               case "$x" in
13655                 -L*)
13656                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13657                                     if test -n "$acl_shlibext"; then
13658                     if test -f "$dir/$libname$shrext"; then
13659                       found_dir="$dir"
13660                       found_so="$dir/$libname$shrext"
13661                     else
13662                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13663                         ver=`(cd "$dir" && \
13664                               for f in "$libname$shrext".*; do echo "$f"; done \
13665                               | sed -e "s,^$libname$shrext\\\\.,," \
13666                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13667                               | sed 1q ) 2>/dev/null`
13668                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13669                           found_dir="$dir"
13670                           found_so="$dir/$libname$shrext.$ver"
13671                         fi
13672                       else
13673                         eval library_names=\"$acl_library_names_spec\"
13674                         for f in $library_names; do
13675                           if test -f "$dir/$f"; then
13676                             found_dir="$dir"
13677                             found_so="$dir/$f"
13678                             break
13679                           fi
13680                         done
13681                       fi
13682                     fi
13683                   fi
13684                                     if test "X$found_dir" = "X"; then
13685                     if test -f "$dir/$libname.$acl_libext"; then
13686                       found_dir="$dir"
13687                       found_a="$dir/$libname.$acl_libext"
13688                     fi
13689                   fi
13690                   if test "X$found_dir" != "X"; then
13691                     if test -f "$dir/$libname.la"; then
13692                       found_la="$dir/$libname.la"
13693                     fi
13694                   fi
13695                   ;;
13696               esac
13697               if test "X$found_dir" != "X"; then
13698                 break
13699               fi
13700             done
13701           fi
13702           if test "X$found_dir" != "X"; then
13703                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13704             if test "X$found_so" != "X"; then
13705                                                         if test "$enable_rpath" = no \
13706                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13707                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13708                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13709               else
13710                                                                                 haveit=
13711                 for x in $ltrpathdirs; do
13712                   if test "X$x" = "X$found_dir"; then
13713                     haveit=yes
13714                     break
13715                   fi
13716                 done
13717                 if test -z "$haveit"; then
13718                   ltrpathdirs="$ltrpathdirs $found_dir"
13719                 fi
13720                                 if test "$acl_hardcode_direct" = yes; then
13721                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13722                 else
13723                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13724                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13725                                                             haveit=
13726                     for x in $rpathdirs; do
13727                       if test "X$x" = "X$found_dir"; then
13728                         haveit=yes
13729                         break
13730                       fi
13731                     done
13732                     if test -z "$haveit"; then
13733                       rpathdirs="$rpathdirs $found_dir"
13734                     fi
13735                   else
13736                                                                                 haveit=
13737                     for x in $LDFLAGS $LIBICONV; do
13738
13739   acl_save_prefix="$prefix"
13740   prefix="$acl_final_prefix"
13741   acl_save_exec_prefix="$exec_prefix"
13742   exec_prefix="$acl_final_exec_prefix"
13743   eval x=\"$x\"
13744   exec_prefix="$acl_save_exec_prefix"
13745   prefix="$acl_save_prefix"
13746
13747                       if test "X$x" = "X-L$found_dir"; then
13748                         haveit=yes
13749                         break
13750                       fi
13751                     done
13752                     if test -z "$haveit"; then
13753                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13754                     fi
13755                     if test "$acl_hardcode_minus_L" != no; then
13756                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13757                     else
13758                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13759                     fi
13760                   fi
13761                 fi
13762               fi
13763             else
13764               if test "X$found_a" != "X"; then
13765                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13766               else
13767                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13768               fi
13769             fi
13770                         additional_includedir=
13771             case "$found_dir" in
13772               */$acl_libdirstem | */$acl_libdirstem/)
13773                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13774                 if test "$name" = 'iconv'; then
13775                   LIBICONV_PREFIX="$basedir"
13776                 fi
13777                 additional_includedir="$basedir/include"
13778                 ;;
13779               */$acl_libdirstem2 | */$acl_libdirstem2/)
13780                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13781                 if test "$name" = 'iconv'; then
13782                   LIBICONV_PREFIX="$basedir"
13783                 fi
13784                 additional_includedir="$basedir/include"
13785                 ;;
13786             esac
13787             if test "X$additional_includedir" != "X"; then
13788                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13789                 haveit=
13790                 if test "X$additional_includedir" = "X/usr/local/include"; then
13791                   if test -n "$GCC"; then
13792                     case $host_os in
13793                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13794                     esac
13795                   fi
13796                 fi
13797                 if test -z "$haveit"; then
13798                   for x in $CPPFLAGS $INCICONV; do
13799
13800   acl_save_prefix="$prefix"
13801   prefix="$acl_final_prefix"
13802   acl_save_exec_prefix="$exec_prefix"
13803   exec_prefix="$acl_final_exec_prefix"
13804   eval x=\"$x\"
13805   exec_prefix="$acl_save_exec_prefix"
13806   prefix="$acl_save_prefix"
13807
13808                     if test "X$x" = "X-I$additional_includedir"; then
13809                       haveit=yes
13810                       break
13811                     fi
13812                   done
13813                   if test -z "$haveit"; then
13814                     if test -d "$additional_includedir"; then
13815                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13816                     fi
13817                   fi
13818                 fi
13819               fi
13820             fi
13821                         if test -n "$found_la"; then
13822                                                         save_libdir="$libdir"
13823               case "$found_la" in
13824                 */* | *\\*) . "$found_la" ;;
13825                 *) . "./$found_la" ;;
13826               esac
13827               libdir="$save_libdir"
13828                             for dep in $dependency_libs; do
13829                 case "$dep" in
13830                   -L*)
13831                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13832                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13833                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13834                       haveit=
13835                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13836                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13837                         if test -n "$GCC"; then
13838                           case $host_os in
13839                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13840                           esac
13841                         fi
13842                       fi
13843                       if test -z "$haveit"; then
13844                         haveit=
13845                         for x in $LDFLAGS $LIBICONV; do
13846
13847   acl_save_prefix="$prefix"
13848   prefix="$acl_final_prefix"
13849   acl_save_exec_prefix="$exec_prefix"
13850   exec_prefix="$acl_final_exec_prefix"
13851   eval x=\"$x\"
13852   exec_prefix="$acl_save_exec_prefix"
13853   prefix="$acl_save_prefix"
13854
13855                           if test "X$x" = "X-L$additional_libdir"; then
13856                             haveit=yes
13857                             break
13858                           fi
13859                         done
13860                         if test -z "$haveit"; then
13861                           if test -d "$additional_libdir"; then
13862                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13863                           fi
13864                         fi
13865                         haveit=
13866                         for x in $LDFLAGS $LTLIBICONV; do
13867
13868   acl_save_prefix="$prefix"
13869   prefix="$acl_final_prefix"
13870   acl_save_exec_prefix="$exec_prefix"
13871   exec_prefix="$acl_final_exec_prefix"
13872   eval x=\"$x\"
13873   exec_prefix="$acl_save_exec_prefix"
13874   prefix="$acl_save_prefix"
13875
13876                           if test "X$x" = "X-L$additional_libdir"; then
13877                             haveit=yes
13878                             break
13879                           fi
13880                         done
13881                         if test -z "$haveit"; then
13882                           if test -d "$additional_libdir"; then
13883                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13884                           fi
13885                         fi
13886                       fi
13887                     fi
13888                     ;;
13889                   -R*)
13890                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13891                     if test "$enable_rpath" != no; then
13892                                                                   haveit=
13893                       for x in $rpathdirs; do
13894                         if test "X$x" = "X$dir"; then
13895                           haveit=yes
13896                           break
13897                         fi
13898                       done
13899                       if test -z "$haveit"; then
13900                         rpathdirs="$rpathdirs $dir"
13901                       fi
13902                                                                   haveit=
13903                       for x in $ltrpathdirs; do
13904                         if test "X$x" = "X$dir"; then
13905                           haveit=yes
13906                           break
13907                         fi
13908                       done
13909                       if test -z "$haveit"; then
13910                         ltrpathdirs="$ltrpathdirs $dir"
13911                       fi
13912                     fi
13913                     ;;
13914                   -l*)
13915                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13916                     ;;
13917                   *.la)
13918                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13919                     ;;
13920                   *)
13921                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13922                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13923                     ;;
13924                 esac
13925               done
13926             fi
13927           else
13928                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13929             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13930           fi
13931         fi
13932       fi
13933     done
13934   done
13935   if test "X$rpathdirs" != "X"; then
13936     if test -n "$acl_hardcode_libdir_separator"; then
13937                         alldirs=
13938       for found_dir in $rpathdirs; do
13939         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13940       done
13941             acl_save_libdir="$libdir"
13942       libdir="$alldirs"
13943       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13944       libdir="$acl_save_libdir"
13945       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13946     else
13947             for found_dir in $rpathdirs; do
13948         acl_save_libdir="$libdir"
13949         libdir="$found_dir"
13950         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13951         libdir="$acl_save_libdir"
13952         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13953       done
13954     fi
13955   fi
13956   if test "X$ltrpathdirs" != "X"; then
13957             for found_dir in $ltrpathdirs; do
13958       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13959     done
13960   fi
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13993 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13994 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   gt_save_LIBS="$LIBS"
13998      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13999      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h.  */
14001 #include <CoreFoundation/CFPreferences.h>
14002 int
14003 main ()
14004 {
14005 CFPreferencesCopyAppValue(NULL, NULL)
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"; then :
14011   gt_cv_func_CFPreferencesCopyAppValue=yes
14012 else
14013   gt_cv_func_CFPreferencesCopyAppValue=no
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext \
14016     conftest$ac_exeext conftest.$ac_ext
14017      LIBS="$gt_save_LIBS"
14018 fi
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14020 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14021   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14022
14023 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14024
14025   fi
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14027 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14028 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14029   $as_echo_n "(cached) " >&6
14030 else
14031   gt_save_LIBS="$LIBS"
14032      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14033      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h.  */
14035 #include <CoreFoundation/CFLocale.h>
14036 int
14037 main ()
14038 {
14039 CFLocaleCopyCurrent();
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045   gt_cv_func_CFLocaleCopyCurrent=yes
14046 else
14047   gt_cv_func_CFLocaleCopyCurrent=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050     conftest$ac_exeext conftest.$ac_ext
14051      LIBS="$gt_save_LIBS"
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14054 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14055   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14056
14057 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14058
14059   fi
14060   INTL_MACOSX_LIBS=
14061   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14062     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14063   fi
14064
14065
14066
14067
14068
14069
14070   LIBINTL=
14071   LTLIBINTL=
14072   POSUB=
14073
14074     case " $gt_needs " in
14075     *" need-formatstring-macros "*) gt_api_version=3 ;;
14076     *" need-ngettext "*) gt_api_version=2 ;;
14077     *) gt_api_version=1 ;;
14078   esac
14079   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14080   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14081
14082     if test "$USE_NLS" = "yes"; then
14083     gt_use_preinstalled_gnugettext=no
14084
14085
14086         if test $gt_api_version -ge 3; then
14087           gt_revision_test_code='
14088 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14089 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14090 #endif
14091 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14092 '
14093         else
14094           gt_revision_test_code=
14095         fi
14096         if test $gt_api_version -ge 2; then
14097           gt_expression_test_code=' + * ngettext ("", "", 0)'
14098         else
14099           gt_expression_test_code=
14100         fi
14101
14102         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14103 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14104 if eval \${$gt_func_gnugettext_libc+:} false; then :
14105   $as_echo_n "(cached) " >&6
14106 else
14107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h.  */
14109
14110 #include <libintl.h>
14111 $gt_revision_test_code
14112 extern int _nl_msg_cat_cntr;
14113 extern int *_nl_domain_bindings;
14114
14115 int
14116 main ()
14117 {
14118
14119 bindtextdomain ("", "");
14120 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14121
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 if ac_fn_c_try_link "$LINENO"; then :
14127   eval "$gt_func_gnugettext_libc=yes"
14128 else
14129   eval "$gt_func_gnugettext_libc=no"
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext \
14132     conftest$ac_exeext conftest.$ac_ext
14133 fi
14134 eval ac_res=\$$gt_func_gnugettext_libc
14135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14136 $as_echo "$ac_res" >&6; }
14137
14138         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14139
14140
14141
14142
14143
14144           am_save_CPPFLAGS="$CPPFLAGS"
14145
14146   for element in $INCICONV; do
14147     haveit=
14148     for x in $CPPFLAGS; do
14149
14150   acl_save_prefix="$prefix"
14151   prefix="$acl_final_prefix"
14152   acl_save_exec_prefix="$exec_prefix"
14153   exec_prefix="$acl_final_exec_prefix"
14154   eval x=\"$x\"
14155   exec_prefix="$acl_save_exec_prefix"
14156   prefix="$acl_save_prefix"
14157
14158       if test "X$x" = "X$element"; then
14159         haveit=yes
14160         break
14161       fi
14162     done
14163     if test -z "$haveit"; then
14164       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14165     fi
14166   done
14167
14168
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14170 $as_echo_n "checking for iconv... " >&6; }
14171 if ${am_cv_func_iconv+:} false; then :
14172   $as_echo_n "(cached) " >&6
14173 else
14174
14175     am_cv_func_iconv="no, consider installing GNU libiconv"
14176     am_cv_lib_iconv=no
14177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h.  */
14179
14180 #include <stdlib.h>
14181 #include <iconv.h>
14182
14183 int
14184 main ()
14185 {
14186 iconv_t cd = iconv_open("","");
14187            iconv(cd,NULL,NULL,NULL,NULL);
14188            iconv_close(cd);
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 if ac_fn_c_try_link "$LINENO"; then :
14194   am_cv_func_iconv=yes
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext \
14197     conftest$ac_exeext conftest.$ac_ext
14198     if test "$am_cv_func_iconv" != yes; then
14199       am_save_LIBS="$LIBS"
14200       LIBS="$LIBS $LIBICONV"
14201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h.  */
14203
14204 #include <stdlib.h>
14205 #include <iconv.h>
14206
14207 int
14208 main ()
14209 {
14210 iconv_t cd = iconv_open("","");
14211              iconv(cd,NULL,NULL,NULL,NULL);
14212              iconv_close(cd);
14213   ;
14214   return 0;
14215 }
14216 _ACEOF
14217 if ac_fn_c_try_link "$LINENO"; then :
14218   am_cv_lib_iconv=yes
14219         am_cv_func_iconv=yes
14220 fi
14221 rm -f core conftest.err conftest.$ac_objext \
14222     conftest$ac_exeext conftest.$ac_ext
14223       LIBS="$am_save_LIBS"
14224     fi
14225
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14228 $as_echo "$am_cv_func_iconv" >&6; }
14229   if test "$am_cv_func_iconv" = yes; then
14230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14231 $as_echo_n "checking for working iconv... " >&6; }
14232 if ${am_cv_func_iconv_works+:} false; then :
14233   $as_echo_n "(cached) " >&6
14234 else
14235
14236                   am_save_LIBS="$LIBS"
14237       if test $am_cv_lib_iconv = yes; then
14238         LIBS="$LIBS $LIBICONV"
14239       fi
14240       am_cv_func_iconv_works=no
14241       for ac_iconv_const in '' 'const'; do
14242         if test "$cross_compiling" = yes; then :
14243   case "$host_os" in
14244              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14245              *)            am_cv_func_iconv_works="guessing yes" ;;
14246            esac
14247 else
14248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h.  */
14250
14251 #include <iconv.h>
14252 #include <string.h>
14253
14254 #ifndef ICONV_CONST
14255 # define ICONV_CONST $ac_iconv_const
14256 #endif
14257
14258 int
14259 main ()
14260 {
14261 int result = 0;
14262   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14263      returns.  */
14264   {
14265     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14266     if (cd_utf8_to_88591 != (iconv_t)(-1))
14267       {
14268         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14269         char buf[10];
14270         ICONV_CONST char *inptr = input;
14271         size_t inbytesleft = strlen (input);
14272         char *outptr = buf;
14273         size_t outbytesleft = sizeof (buf);
14274         size_t res = iconv (cd_utf8_to_88591,
14275                             &inptr, &inbytesleft,
14276                             &outptr, &outbytesleft);
14277         if (res == 0)
14278           result |= 1;
14279         iconv_close (cd_utf8_to_88591);
14280       }
14281   }
14282   /* Test against Solaris 10 bug: Failures are not distinguishable from
14283      successful returns.  */
14284   {
14285     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14286     if (cd_ascii_to_88591 != (iconv_t)(-1))
14287       {
14288         static ICONV_CONST char input[] = "\263";
14289         char buf[10];
14290         ICONV_CONST char *inptr = input;
14291         size_t inbytesleft = strlen (input);
14292         char *outptr = buf;
14293         size_t outbytesleft = sizeof (buf);
14294         size_t res = iconv (cd_ascii_to_88591,
14295                             &inptr, &inbytesleft,
14296                             &outptr, &outbytesleft);
14297         if (res == 0)
14298           result |= 2;
14299         iconv_close (cd_ascii_to_88591);
14300       }
14301   }
14302   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
14303   {
14304     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14305     if (cd_88591_to_utf8 != (iconv_t)(-1))
14306       {
14307         static ICONV_CONST char input[] = "\304";
14308         static char buf[2] = { (char)0xDE, (char)0xAD };
14309         ICONV_CONST char *inptr = input;
14310         size_t inbytesleft = 1;
14311         char *outptr = buf;
14312         size_t outbytesleft = 1;
14313         size_t res = iconv (cd_88591_to_utf8,
14314                             &inptr, &inbytesleft,
14315                             &outptr, &outbytesleft);
14316         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14317           result |= 4;
14318         iconv_close (cd_88591_to_utf8);
14319       }
14320   }
14321 #if 0 /* This bug could be worked around by the caller.  */
14322   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14323   {
14324     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14325     if (cd_88591_to_utf8 != (iconv_t)(-1))
14326       {
14327         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14328         char buf[50];
14329         ICONV_CONST char *inptr = input;
14330         size_t inbytesleft = strlen (input);
14331         char *outptr = buf;
14332         size_t outbytesleft = sizeof (buf);
14333         size_t res = iconv (cd_88591_to_utf8,
14334                             &inptr, &inbytesleft,
14335                             &outptr, &outbytesleft);
14336         if ((int)res > 0)
14337           result |= 8;
14338         iconv_close (cd_88591_to_utf8);
14339       }
14340   }
14341 #endif
14342   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14343      provided.  */
14344   if (/* Try standardized names.  */
14345       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14346       /* Try IRIX, OSF/1 names.  */
14347       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14348       /* Try AIX names.  */
14349       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14350       /* Try HP-UX names.  */
14351       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14352     result |= 16;
14353   return result;
14354
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_run "$LINENO"; then :
14360   am_cv_func_iconv_works=yes
14361 fi
14362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14363   conftest.$ac_objext conftest.beam conftest.$ac_ext
14364 fi
14365
14366         test "$am_cv_func_iconv_works" = no || break
14367       done
14368       LIBS="$am_save_LIBS"
14369
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14372 $as_echo "$am_cv_func_iconv_works" >&6; }
14373     case "$am_cv_func_iconv_works" in
14374       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14375       *)   am_func_iconv=yes ;;
14376     esac
14377   else
14378     am_func_iconv=no am_cv_lib_iconv=no
14379   fi
14380   if test "$am_func_iconv" = yes; then
14381
14382 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14383
14384   fi
14385   if test "$am_cv_lib_iconv" = yes; then
14386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14387 $as_echo_n "checking how to link with libiconv... " >&6; }
14388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14389 $as_echo "$LIBICONV" >&6; }
14390   else
14391             CPPFLAGS="$am_save_CPPFLAGS"
14392     LIBICONV=
14393     LTLIBICONV=
14394   fi
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406     use_additional=yes
14407
14408   acl_save_prefix="$prefix"
14409   prefix="$acl_final_prefix"
14410   acl_save_exec_prefix="$exec_prefix"
14411   exec_prefix="$acl_final_exec_prefix"
14412
14413     eval additional_includedir=\"$includedir\"
14414     eval additional_libdir=\"$libdir\"
14415
14416   exec_prefix="$acl_save_exec_prefix"
14417   prefix="$acl_save_prefix"
14418
14419
14420 # Check whether --with-libintl-prefix was given.
14421 if test "${with_libintl_prefix+set}" = set; then :
14422   withval=$with_libintl_prefix;
14423     if test "X$withval" = "Xno"; then
14424       use_additional=no
14425     else
14426       if test "X$withval" = "X"; then
14427
14428   acl_save_prefix="$prefix"
14429   prefix="$acl_final_prefix"
14430   acl_save_exec_prefix="$exec_prefix"
14431   exec_prefix="$acl_final_exec_prefix"
14432
14433           eval additional_includedir=\"$includedir\"
14434           eval additional_libdir=\"$libdir\"
14435
14436   exec_prefix="$acl_save_exec_prefix"
14437   prefix="$acl_save_prefix"
14438
14439       else
14440         additional_includedir="$withval/include"
14441         additional_libdir="$withval/$acl_libdirstem"
14442         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14443            && ! test -d "$withval/$acl_libdirstem"; then
14444           additional_libdir="$withval/$acl_libdirstem2"
14445         fi
14446       fi
14447     fi
14448
14449 fi
14450
14451       LIBINTL=
14452   LTLIBINTL=
14453   INCINTL=
14454   LIBINTL_PREFIX=
14455       HAVE_LIBINTL=
14456   rpathdirs=
14457   ltrpathdirs=
14458   names_already_handled=
14459   names_next_round='intl '
14460   while test -n "$names_next_round"; do
14461     names_this_round="$names_next_round"
14462     names_next_round=
14463     for name in $names_this_round; do
14464       already_handled=
14465       for n in $names_already_handled; do
14466         if test "$n" = "$name"; then
14467           already_handled=yes
14468           break
14469         fi
14470       done
14471       if test -z "$already_handled"; then
14472         names_already_handled="$names_already_handled $name"
14473                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14474         eval value=\"\$HAVE_LIB$uppername\"
14475         if test -n "$value"; then
14476           if test "$value" = yes; then
14477             eval value=\"\$LIB$uppername\"
14478             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14479             eval value=\"\$LTLIB$uppername\"
14480             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14481           else
14482                                     :
14483           fi
14484         else
14485                               found_dir=
14486           found_la=
14487           found_so=
14488           found_a=
14489           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14490           if test -n "$acl_shlibext"; then
14491             shrext=".$acl_shlibext"             # typically: shrext=.so
14492           else
14493             shrext=
14494           fi
14495           if test $use_additional = yes; then
14496             dir="$additional_libdir"
14497                                     if test -n "$acl_shlibext"; then
14498               if test -f "$dir/$libname$shrext"; then
14499                 found_dir="$dir"
14500                 found_so="$dir/$libname$shrext"
14501               else
14502                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14503                   ver=`(cd "$dir" && \
14504                         for f in "$libname$shrext".*; do echo "$f"; done \
14505                         | sed -e "s,^$libname$shrext\\\\.,," \
14506                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14507                         | sed 1q ) 2>/dev/null`
14508                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14509                     found_dir="$dir"
14510                     found_so="$dir/$libname$shrext.$ver"
14511                   fi
14512                 else
14513                   eval library_names=\"$acl_library_names_spec\"
14514                   for f in $library_names; do
14515                     if test -f "$dir/$f"; then
14516                       found_dir="$dir"
14517                       found_so="$dir/$f"
14518                       break
14519                     fi
14520                   done
14521                 fi
14522               fi
14523             fi
14524                         if test "X$found_dir" = "X"; then
14525               if test -f "$dir/$libname.$acl_libext"; then
14526                 found_dir="$dir"
14527                 found_a="$dir/$libname.$acl_libext"
14528               fi
14529             fi
14530             if test "X$found_dir" != "X"; then
14531               if test -f "$dir/$libname.la"; then
14532                 found_la="$dir/$libname.la"
14533               fi
14534             fi
14535           fi
14536           if test "X$found_dir" = "X"; then
14537             for x in $LDFLAGS $LTLIBINTL; do
14538
14539   acl_save_prefix="$prefix"
14540   prefix="$acl_final_prefix"
14541   acl_save_exec_prefix="$exec_prefix"
14542   exec_prefix="$acl_final_exec_prefix"
14543   eval x=\"$x\"
14544   exec_prefix="$acl_save_exec_prefix"
14545   prefix="$acl_save_prefix"
14546
14547               case "$x" in
14548                 -L*)
14549                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14550                                     if test -n "$acl_shlibext"; then
14551                     if test -f "$dir/$libname$shrext"; then
14552                       found_dir="$dir"
14553                       found_so="$dir/$libname$shrext"
14554                     else
14555                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14556                         ver=`(cd "$dir" && \
14557                               for f in "$libname$shrext".*; do echo "$f"; done \
14558                               | sed -e "s,^$libname$shrext\\\\.,," \
14559                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14560                               | sed 1q ) 2>/dev/null`
14561                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14562                           found_dir="$dir"
14563                           found_so="$dir/$libname$shrext.$ver"
14564                         fi
14565                       else
14566                         eval library_names=\"$acl_library_names_spec\"
14567                         for f in $library_names; do
14568                           if test -f "$dir/$f"; then
14569                             found_dir="$dir"
14570                             found_so="$dir/$f"
14571                             break
14572                           fi
14573                         done
14574                       fi
14575                     fi
14576                   fi
14577                                     if test "X$found_dir" = "X"; then
14578                     if test -f "$dir/$libname.$acl_libext"; then
14579                       found_dir="$dir"
14580                       found_a="$dir/$libname.$acl_libext"
14581                     fi
14582                   fi
14583                   if test "X$found_dir" != "X"; then
14584                     if test -f "$dir/$libname.la"; then
14585                       found_la="$dir/$libname.la"
14586                     fi
14587                   fi
14588                   ;;
14589               esac
14590               if test "X$found_dir" != "X"; then
14591                 break
14592               fi
14593             done
14594           fi
14595           if test "X$found_dir" != "X"; then
14596                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14597             if test "X$found_so" != "X"; then
14598                                                         if test "$enable_rpath" = no \
14599                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14600                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14601                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14602               else
14603                                                                                 haveit=
14604                 for x in $ltrpathdirs; do
14605                   if test "X$x" = "X$found_dir"; then
14606                     haveit=yes
14607                     break
14608                   fi
14609                 done
14610                 if test -z "$haveit"; then
14611                   ltrpathdirs="$ltrpathdirs $found_dir"
14612                 fi
14613                                 if test "$acl_hardcode_direct" = yes; then
14614                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14615                 else
14616                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14617                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14618                                                             haveit=
14619                     for x in $rpathdirs; do
14620                       if test "X$x" = "X$found_dir"; then
14621                         haveit=yes
14622                         break
14623                       fi
14624                     done
14625                     if test -z "$haveit"; then
14626                       rpathdirs="$rpathdirs $found_dir"
14627                     fi
14628                   else
14629                                                                                 haveit=
14630                     for x in $LDFLAGS $LIBINTL; do
14631
14632   acl_save_prefix="$prefix"
14633   prefix="$acl_final_prefix"
14634   acl_save_exec_prefix="$exec_prefix"
14635   exec_prefix="$acl_final_exec_prefix"
14636   eval x=\"$x\"
14637   exec_prefix="$acl_save_exec_prefix"
14638   prefix="$acl_save_prefix"
14639
14640                       if test "X$x" = "X-L$found_dir"; then
14641                         haveit=yes
14642                         break
14643                       fi
14644                     done
14645                     if test -z "$haveit"; then
14646                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14647                     fi
14648                     if test "$acl_hardcode_minus_L" != no; then
14649                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14650                     else
14651                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14652                     fi
14653                   fi
14654                 fi
14655               fi
14656             else
14657               if test "X$found_a" != "X"; then
14658                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14659               else
14660                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14661               fi
14662             fi
14663                         additional_includedir=
14664             case "$found_dir" in
14665               */$acl_libdirstem | */$acl_libdirstem/)
14666                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14667                 if test "$name" = 'intl'; then
14668                   LIBINTL_PREFIX="$basedir"
14669                 fi
14670                 additional_includedir="$basedir/include"
14671                 ;;
14672               */$acl_libdirstem2 | */$acl_libdirstem2/)
14673                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14674                 if test "$name" = 'intl'; then
14675                   LIBINTL_PREFIX="$basedir"
14676                 fi
14677                 additional_includedir="$basedir/include"
14678                 ;;
14679             esac
14680             if test "X$additional_includedir" != "X"; then
14681                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14682                 haveit=
14683                 if test "X$additional_includedir" = "X/usr/local/include"; then
14684                   if test -n "$GCC"; then
14685                     case $host_os in
14686                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14687                     esac
14688                   fi
14689                 fi
14690                 if test -z "$haveit"; then
14691                   for x in $CPPFLAGS $INCINTL; do
14692
14693   acl_save_prefix="$prefix"
14694   prefix="$acl_final_prefix"
14695   acl_save_exec_prefix="$exec_prefix"
14696   exec_prefix="$acl_final_exec_prefix"
14697   eval x=\"$x\"
14698   exec_prefix="$acl_save_exec_prefix"
14699   prefix="$acl_save_prefix"
14700
14701                     if test "X$x" = "X-I$additional_includedir"; then
14702                       haveit=yes
14703                       break
14704                     fi
14705                   done
14706                   if test -z "$haveit"; then
14707                     if test -d "$additional_includedir"; then
14708                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14709                     fi
14710                   fi
14711                 fi
14712               fi
14713             fi
14714                         if test -n "$found_la"; then
14715                                                         save_libdir="$libdir"
14716               case "$found_la" in
14717                 */* | *\\*) . "$found_la" ;;
14718                 *) . "./$found_la" ;;
14719               esac
14720               libdir="$save_libdir"
14721                             for dep in $dependency_libs; do
14722                 case "$dep" in
14723                   -L*)
14724                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14725                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14726                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14727                       haveit=
14728                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14729                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14730                         if test -n "$GCC"; then
14731                           case $host_os in
14732                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14733                           esac
14734                         fi
14735                       fi
14736                       if test -z "$haveit"; then
14737                         haveit=
14738                         for x in $LDFLAGS $LIBINTL; do
14739
14740   acl_save_prefix="$prefix"
14741   prefix="$acl_final_prefix"
14742   acl_save_exec_prefix="$exec_prefix"
14743   exec_prefix="$acl_final_exec_prefix"
14744   eval x=\"$x\"
14745   exec_prefix="$acl_save_exec_prefix"
14746   prefix="$acl_save_prefix"
14747
14748                           if test "X$x" = "X-L$additional_libdir"; then
14749                             haveit=yes
14750                             break
14751                           fi
14752                         done
14753                         if test -z "$haveit"; then
14754                           if test -d "$additional_libdir"; then
14755                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14756                           fi
14757                         fi
14758                         haveit=
14759                         for x in $LDFLAGS $LTLIBINTL; do
14760
14761   acl_save_prefix="$prefix"
14762   prefix="$acl_final_prefix"
14763   acl_save_exec_prefix="$exec_prefix"
14764   exec_prefix="$acl_final_exec_prefix"
14765   eval x=\"$x\"
14766   exec_prefix="$acl_save_exec_prefix"
14767   prefix="$acl_save_prefix"
14768
14769                           if test "X$x" = "X-L$additional_libdir"; then
14770                             haveit=yes
14771                             break
14772                           fi
14773                         done
14774                         if test -z "$haveit"; then
14775                           if test -d "$additional_libdir"; then
14776                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14777                           fi
14778                         fi
14779                       fi
14780                     fi
14781                     ;;
14782                   -R*)
14783                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14784                     if test "$enable_rpath" != no; then
14785                                                                   haveit=
14786                       for x in $rpathdirs; do
14787                         if test "X$x" = "X$dir"; then
14788                           haveit=yes
14789                           break
14790                         fi
14791                       done
14792                       if test -z "$haveit"; then
14793                         rpathdirs="$rpathdirs $dir"
14794                       fi
14795                                                                   haveit=
14796                       for x in $ltrpathdirs; do
14797                         if test "X$x" = "X$dir"; then
14798                           haveit=yes
14799                           break
14800                         fi
14801                       done
14802                       if test -z "$haveit"; then
14803                         ltrpathdirs="$ltrpathdirs $dir"
14804                       fi
14805                     fi
14806                     ;;
14807                   -l*)
14808                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14809                     ;;
14810                   *.la)
14811                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14812                     ;;
14813                   *)
14814                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14815                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14816                     ;;
14817                 esac
14818               done
14819             fi
14820           else
14821                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14822             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14823           fi
14824         fi
14825       fi
14826     done
14827   done
14828   if test "X$rpathdirs" != "X"; then
14829     if test -n "$acl_hardcode_libdir_separator"; then
14830                         alldirs=
14831       for found_dir in $rpathdirs; do
14832         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14833       done
14834             acl_save_libdir="$libdir"
14835       libdir="$alldirs"
14836       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14837       libdir="$acl_save_libdir"
14838       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14839     else
14840             for found_dir in $rpathdirs; do
14841         acl_save_libdir="$libdir"
14842         libdir="$found_dir"
14843         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14844         libdir="$acl_save_libdir"
14845         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14846       done
14847     fi
14848   fi
14849   if test "X$ltrpathdirs" != "X"; then
14850             for found_dir in $ltrpathdirs; do
14851       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14852     done
14853   fi
14854
14855
14856
14857
14858
14859
14860           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14861 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14862 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14863   $as_echo_n "(cached) " >&6
14864 else
14865   gt_save_CPPFLAGS="$CPPFLAGS"
14866             CPPFLAGS="$CPPFLAGS $INCINTL"
14867             gt_save_LIBS="$LIBS"
14868             LIBS="$LIBS $LIBINTL"
14869                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h.  */
14871
14872 #include <libintl.h>
14873 $gt_revision_test_code
14874 extern int _nl_msg_cat_cntr;
14875 extern
14876 #ifdef __cplusplus
14877 "C"
14878 #endif
14879 const char *_nl_expand_alias (const char *);
14880
14881 int
14882 main ()
14883 {
14884
14885 bindtextdomain ("", "");
14886 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14887
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 if ac_fn_c_try_link "$LINENO"; then :
14893   eval "$gt_func_gnugettext_libintl=yes"
14894 else
14895   eval "$gt_func_gnugettext_libintl=no"
14896 fi
14897 rm -f core conftest.err conftest.$ac_objext \
14898     conftest$ac_exeext conftest.$ac_ext
14899                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14900               LIBS="$LIBS $LIBICONV"
14901               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h.  */
14903
14904 #include <libintl.h>
14905 $gt_revision_test_code
14906 extern int _nl_msg_cat_cntr;
14907 extern
14908 #ifdef __cplusplus
14909 "C"
14910 #endif
14911 const char *_nl_expand_alias (const char *);
14912
14913 int
14914 main ()
14915 {
14916
14917 bindtextdomain ("", "");
14918 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14919
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 if ac_fn_c_try_link "$LINENO"; then :
14925   LIBINTL="$LIBINTL $LIBICONV"
14926                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14927                  eval "$gt_func_gnugettext_libintl=yes"
14928
14929 fi
14930 rm -f core conftest.err conftest.$ac_objext \
14931     conftest$ac_exeext conftest.$ac_ext
14932             fi
14933             CPPFLAGS="$gt_save_CPPFLAGS"
14934             LIBS="$gt_save_LIBS"
14935 fi
14936 eval ac_res=\$$gt_func_gnugettext_libintl
14937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14938 $as_echo "$ac_res" >&6; }
14939         fi
14940
14941                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14942            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14943                 && test "$PACKAGE" != gettext-runtime \
14944                 && test "$PACKAGE" != gettext-tools; }; then
14945           gt_use_preinstalled_gnugettext=yes
14946         else
14947                     LIBINTL=
14948           LTLIBINTL=
14949           INCINTL=
14950         fi
14951
14952
14953
14954     if test -n "$INTL_MACOSX_LIBS"; then
14955       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14956          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14957                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14958         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14959       fi
14960     fi
14961
14962     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14963        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14964
14965 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14966
14967     else
14968       USE_NLS=no
14969     fi
14970   fi
14971
14972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14973 $as_echo_n "checking whether to use NLS... " >&6; }
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14975 $as_echo "$USE_NLS" >&6; }
14976   if test "$USE_NLS" = "yes"; then
14977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14978 $as_echo_n "checking where the gettext function comes from... " >&6; }
14979     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14980       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14981         gt_source="external libintl"
14982       else
14983         gt_source="libc"
14984       fi
14985     else
14986       gt_source="included intl directory"
14987     fi
14988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14989 $as_echo "$gt_source" >&6; }
14990   fi
14991
14992   if test "$USE_NLS" = "yes"; then
14993
14994     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14995       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14997 $as_echo_n "checking how to link with libintl... " >&6; }
14998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14999 $as_echo "$LIBINTL" >&6; }
15000
15001   for element in $INCINTL; do
15002     haveit=
15003     for x in $CPPFLAGS; do
15004
15005   acl_save_prefix="$prefix"
15006   prefix="$acl_final_prefix"
15007   acl_save_exec_prefix="$exec_prefix"
15008   exec_prefix="$acl_final_exec_prefix"
15009   eval x=\"$x\"
15010   exec_prefix="$acl_save_exec_prefix"
15011   prefix="$acl_save_prefix"
15012
15013       if test "X$x" = "X$element"; then
15014         haveit=yes
15015         break
15016       fi
15017     done
15018     if test -z "$haveit"; then
15019       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15020     fi
15021   done
15022
15023       fi
15024
15025
15026 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15027
15028
15029 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15030
15031     fi
15032
15033         POSUB=po
15034   fi
15035
15036
15037
15038     INTLLIBS="$LIBINTL"
15039
15040
15041
15042
15043
15044
15045
15046 # This test must come as early as possible after the compiler configuration
15047 # tests, because the choice of the file model can (in principle) affect
15048 # whether functions and headers are available, whether they work, etc.
15049 # Check whether --enable-largefile was given.
15050 if test "${enable_largefile+set}" = set; then :
15051   enableval=$enable_largefile;
15052 fi
15053
15054 if test "$enable_largefile" != no; then
15055
15056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15057 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15058 if ${ac_cv_sys_largefile_CC+:} false; then :
15059   $as_echo_n "(cached) " >&6
15060 else
15061   ac_cv_sys_largefile_CC=no
15062      if test "$GCC" != yes; then
15063        ac_save_CC=$CC
15064        while :; do
15065          # IRIX 6.2 and later do not support large files by default,
15066          # so use the C compiler's -n32 option if that helps.
15067          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h.  */
15069 #include <sys/types.h>
15070  /* Check that off_t can represent 2**63 - 1 correctly.
15071     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15072     since some C++ compilers masquerading as C compilers
15073     incorrectly reject 9223372036854775807.  */
15074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15075   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15076                        && LARGE_OFF_T % 2147483647 == 1)
15077                       ? 1 : -1];
15078 int
15079 main ()
15080 {
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086          if ac_fn_c_try_compile "$LINENO"; then :
15087   break
15088 fi
15089 rm -f core conftest.err conftest.$ac_objext
15090          CC="$CC -n32"
15091          if ac_fn_c_try_compile "$LINENO"; then :
15092   ac_cv_sys_largefile_CC=' -n32'; break
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext
15095          break
15096        done
15097        CC=$ac_save_CC
15098        rm -f conftest.$ac_ext
15099     fi
15100 fi
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15102 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15103   if test "$ac_cv_sys_largefile_CC" != no; then
15104     CC=$CC$ac_cv_sys_largefile_CC
15105   fi
15106
15107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15108 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15109 if ${ac_cv_sys_file_offset_bits+:} false; then :
15110   $as_echo_n "(cached) " >&6
15111 else
15112   while :; do
15113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h.  */
15115 #include <sys/types.h>
15116  /* Check that off_t can represent 2**63 - 1 correctly.
15117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15118     since some C++ compilers masquerading as C compilers
15119     incorrectly reject 9223372036854775807.  */
15120 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15122                        && LARGE_OFF_T % 2147483647 == 1)
15123                       ? 1 : -1];
15124 int
15125 main ()
15126 {
15127
15128   ;
15129   return 0;
15130 }
15131 _ACEOF
15132 if ac_fn_c_try_compile "$LINENO"; then :
15133   ac_cv_sys_file_offset_bits=no; break
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138 #define _FILE_OFFSET_BITS 64
15139 #include <sys/types.h>
15140  /* Check that off_t can represent 2**63 - 1 correctly.
15141     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15142     since some C++ compilers masquerading as C compilers
15143     incorrectly reject 9223372036854775807.  */
15144 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15145   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15146                        && LARGE_OFF_T % 2147483647 == 1)
15147                       ? 1 : -1];
15148 int
15149 main ()
15150 {
15151
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 if ac_fn_c_try_compile "$LINENO"; then :
15157   ac_cv_sys_file_offset_bits=64; break
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160   ac_cv_sys_file_offset_bits=unknown
15161   break
15162 done
15163 fi
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15165 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15166 case $ac_cv_sys_file_offset_bits in #(
15167   no | unknown) ;;
15168   *)
15169 cat >>confdefs.h <<_ACEOF
15170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15171 _ACEOF
15172 ;;
15173 esac
15174 rm -rf conftest*
15175   if test $ac_cv_sys_file_offset_bits = unknown; then
15176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15177 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15178 if ${ac_cv_sys_large_files+:} false; then :
15179   $as_echo_n "(cached) " >&6
15180 else
15181   while :; do
15182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h.  */
15184 #include <sys/types.h>
15185  /* Check that off_t can represent 2**63 - 1 correctly.
15186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15187     since some C++ compilers masquerading as C compilers
15188     incorrectly reject 9223372036854775807.  */
15189 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15191                        && LARGE_OFF_T % 2147483647 == 1)
15192                       ? 1 : -1];
15193 int
15194 main ()
15195 {
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202   ac_cv_sys_large_files=no; break
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h.  */
15207 #define _LARGE_FILES 1
15208 #include <sys/types.h>
15209  /* Check that off_t can represent 2**63 - 1 correctly.
15210     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15211     since some C++ compilers masquerading as C compilers
15212     incorrectly reject 9223372036854775807.  */
15213 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15214   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15215                        && LARGE_OFF_T % 2147483647 == 1)
15216                       ? 1 : -1];
15217 int
15218 main ()
15219 {
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 if ac_fn_c_try_compile "$LINENO"; then :
15226   ac_cv_sys_large_files=1; break
15227 fi
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229   ac_cv_sys_large_files=unknown
15230   break
15231 done
15232 fi
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15234 $as_echo "$ac_cv_sys_large_files" >&6; }
15235 case $ac_cv_sys_large_files in #(
15236   no | unknown) ;;
15237   *)
15238 cat >>confdefs.h <<_ACEOF
15239 #define _LARGE_FILES $ac_cv_sys_large_files
15240 _ACEOF
15241 ;;
15242 esac
15243 rm -rf conftest*
15244   fi
15245
15246
15247 fi
15248
15249
15250 # Checks for libraries.
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
15252 $as_echo_n "checking for library containing getpwnam... " >&6; }
15253 if ${ac_cv_search_getpwnam+:} false; then :
15254   $as_echo_n "(cached) " >&6
15255 else
15256   ac_func_search_save_LIBS=$LIBS
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h.  */
15259
15260 /* Override any GCC internal prototype to avoid an error.
15261    Use char because int might match the return type of a GCC
15262    builtin and then its argument prototype would still apply.  */
15263 #ifdef __cplusplus
15264 extern "C"
15265 #endif
15266 char getpwnam ();
15267 int
15268 main ()
15269 {
15270 return getpwnam ();
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 for ac_lib in '' sun; do
15276   if test -z "$ac_lib"; then
15277     ac_res="none required"
15278   else
15279     ac_res=-l$ac_lib
15280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15281   fi
15282   if ac_fn_c_try_link "$LINENO"; then :
15283   ac_cv_search_getpwnam=$ac_res
15284 fi
15285 rm -f core conftest.err conftest.$ac_objext \
15286     conftest$ac_exeext
15287   if ${ac_cv_search_getpwnam+:} false; then :
15288   break
15289 fi
15290 done
15291 if ${ac_cv_search_getpwnam+:} false; then :
15292
15293 else
15294   ac_cv_search_getpwnam=no
15295 fi
15296 rm conftest.$ac_ext
15297 LIBS=$ac_func_search_save_LIBS
15298 fi
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
15300 $as_echo "$ac_cv_search_getpwnam" >&6; }
15301 ac_res=$ac_cv_search_getpwnam
15302 if test "$ac_res" != no; then :
15303   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15304
15305 fi
15306
15307
15308 # Checks for header files.
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15310 $as_echo_n "checking for ANSI C header files... " >&6; }
15311 if ${ac_cv_header_stdc+:} false; then :
15312   $as_echo_n "(cached) " >&6
15313 else
15314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h.  */
15316 #include <stdlib.h>
15317 #include <stdarg.h>
15318 #include <string.h>
15319 #include <float.h>
15320
15321 int
15322 main ()
15323 {
15324
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_compile "$LINENO"; then :
15330   ac_cv_header_stdc=yes
15331 else
15332   ac_cv_header_stdc=no
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335
15336 if test $ac_cv_header_stdc = yes; then
15337   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340 #include <string.h>
15341
15342 _ACEOF
15343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15344   $EGREP "memchr" >/dev/null 2>&1; then :
15345
15346 else
15347   ac_cv_header_stdc=no
15348 fi
15349 rm -f conftest*
15350
15351 fi
15352
15353 if test $ac_cv_header_stdc = yes; then
15354   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h.  */
15357 #include <stdlib.h>
15358
15359 _ACEOF
15360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15361   $EGREP "free" >/dev/null 2>&1; then :
15362
15363 else
15364   ac_cv_header_stdc=no
15365 fi
15366 rm -f conftest*
15367
15368 fi
15369
15370 if test $ac_cv_header_stdc = yes; then
15371   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15372   if test "$cross_compiling" = yes; then :
15373   :
15374 else
15375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h.  */
15377 #include <ctype.h>
15378 #include <stdlib.h>
15379 #if ((' ' & 0x0FF) == 0x020)
15380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15382 #else
15383 # define ISLOWER(c) \
15384                    (('a' <= (c) && (c) <= 'i') \
15385                      || ('j' <= (c) && (c) <= 'r') \
15386                      || ('s' <= (c) && (c) <= 'z'))
15387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15388 #endif
15389
15390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15391 int
15392 main ()
15393 {
15394   int i;
15395   for (i = 0; i < 256; i++)
15396     if (XOR (islower (i), ISLOWER (i))
15397         || toupper (i) != TOUPPER (i))
15398       return 2;
15399   return 0;
15400 }
15401 _ACEOF
15402 if ac_fn_c_try_run "$LINENO"; then :
15403
15404 else
15405   ac_cv_header_stdc=no
15406 fi
15407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15408   conftest.$ac_objext conftest.beam conftest.$ac_ext
15409 fi
15410
15411 fi
15412 fi
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15414 $as_echo "$ac_cv_header_stdc" >&6; }
15415 if test $ac_cv_header_stdc = yes; then
15416
15417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15418
15419 fi
15420
15421 ac_header_dirent=no
15422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15423   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15425 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15426 if eval \${$as_ac_Header+:} false; then :
15427   $as_echo_n "(cached) " >&6
15428 else
15429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h.  */
15431 #include <sys/types.h>
15432 #include <$ac_hdr>
15433
15434 int
15435 main ()
15436 {
15437 if ((DIR *) 0)
15438 return 0;
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 if ac_fn_c_try_compile "$LINENO"; then :
15444   eval "$as_ac_Header=yes"
15445 else
15446   eval "$as_ac_Header=no"
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 eval ac_res=\$$as_ac_Header
15451                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15452 $as_echo "$ac_res" >&6; }
15453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15454   cat >>confdefs.h <<_ACEOF
15455 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15456 _ACEOF
15457
15458 ac_header_dirent=$ac_hdr; break
15459 fi
15460
15461 done
15462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15463 if test $ac_header_dirent = dirent.h; then
15464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15465 $as_echo_n "checking for library containing opendir... " >&6; }
15466 if ${ac_cv_search_opendir+:} false; then :
15467   $as_echo_n "(cached) " >&6
15468 else
15469   ac_func_search_save_LIBS=$LIBS
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h.  */
15472
15473 /* Override any GCC internal prototype to avoid an error.
15474    Use char because int might match the return type of a GCC
15475    builtin and then its argument prototype would still apply.  */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char opendir ();
15480 int
15481 main ()
15482 {
15483 return opendir ();
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 for ac_lib in '' dir; do
15489   if test -z "$ac_lib"; then
15490     ac_res="none required"
15491   else
15492     ac_res=-l$ac_lib
15493     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15494   fi
15495   if ac_fn_c_try_link "$LINENO"; then :
15496   ac_cv_search_opendir=$ac_res
15497 fi
15498 rm -f core conftest.err conftest.$ac_objext \
15499     conftest$ac_exeext
15500   if ${ac_cv_search_opendir+:} false; then :
15501   break
15502 fi
15503 done
15504 if ${ac_cv_search_opendir+:} false; then :
15505
15506 else
15507   ac_cv_search_opendir=no
15508 fi
15509 rm conftest.$ac_ext
15510 LIBS=$ac_func_search_save_LIBS
15511 fi
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15513 $as_echo "$ac_cv_search_opendir" >&6; }
15514 ac_res=$ac_cv_search_opendir
15515 if test "$ac_res" != no; then :
15516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15517
15518 fi
15519
15520 else
15521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15522 $as_echo_n "checking for library containing opendir... " >&6; }
15523 if ${ac_cv_search_opendir+:} false; then :
15524   $as_echo_n "(cached) " >&6
15525 else
15526   ac_func_search_save_LIBS=$LIBS
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h.  */
15529
15530 /* Override any GCC internal prototype to avoid an error.
15531    Use char because int might match the return type of a GCC
15532    builtin and then its argument prototype would still apply.  */
15533 #ifdef __cplusplus
15534 extern "C"
15535 #endif
15536 char opendir ();
15537 int
15538 main ()
15539 {
15540 return opendir ();
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 for ac_lib in '' x; do
15546   if test -z "$ac_lib"; then
15547     ac_res="none required"
15548   else
15549     ac_res=-l$ac_lib
15550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15551   fi
15552   if ac_fn_c_try_link "$LINENO"; then :
15553   ac_cv_search_opendir=$ac_res
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext \
15556     conftest$ac_exeext
15557   if ${ac_cv_search_opendir+:} false; then :
15558   break
15559 fi
15560 done
15561 if ${ac_cv_search_opendir+:} false; then :
15562
15563 else
15564   ac_cv_search_opendir=no
15565 fi
15566 rm conftest.$ac_ext
15567 LIBS=$ac_func_search_save_LIBS
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15570 $as_echo "$ac_cv_search_opendir" >&6; }
15571 ac_res=$ac_cv_search_opendir
15572 if test "$ac_res" != no; then :
15573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15574
15575 fi
15576
15577 fi
15578
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15580 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15581 if ${ac_cv_header_stat_broken+:} false; then :
15582   $as_echo_n "(cached) " >&6
15583 else
15584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h.  */
15586 #include <sys/types.h>
15587 #include <sys/stat.h>
15588
15589 #if defined S_ISBLK && defined S_IFDIR
15590 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15591 #endif
15592
15593 #if defined S_ISBLK && defined S_IFCHR
15594 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15595 #endif
15596
15597 #if defined S_ISLNK && defined S_IFREG
15598 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15599 #endif
15600
15601 #if defined S_ISSOCK && defined S_IFREG
15602 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15603 #endif
15604
15605 _ACEOF
15606 if ac_fn_c_try_compile "$LINENO"; then :
15607   ac_cv_header_stat_broken=no
15608 else
15609   ac_cv_header_stat_broken=yes
15610 fi
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15614 $as_echo "$ac_cv_header_stat_broken" >&6; }
15615 if test $ac_cv_header_stat_broken = yes; then
15616
15617 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15618
15619 fi
15620
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15622 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15623 if ${ac_cv_header_time+:} false; then :
15624   $as_echo_n "(cached) " >&6
15625 else
15626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h.  */
15628 #include <sys/types.h>
15629 #include <sys/time.h>
15630 #include <time.h>
15631
15632 int
15633 main ()
15634 {
15635 if ((struct tm *) 0)
15636 return 0;
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642   ac_cv_header_time=yes
15643 else
15644   ac_cv_header_time=no
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15649 $as_echo "$ac_cv_header_time" >&6; }
15650 if test $ac_cv_header_time = yes; then
15651
15652 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15653
15654 fi
15655
15656 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
15657                   memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h \
15658                   sys/select.h sys/file.h spawn.h
15659 do :
15660   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15663   cat >>confdefs.h <<_ACEOF
15664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15665 _ACEOF
15666
15667 fi
15668
15669 done
15670
15671
15672
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15674 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15675 if ${ac_cv_c_const+:} false; then :
15676   $as_echo_n "(cached) " >&6
15677 else
15678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h.  */
15680
15681 int
15682 main ()
15683 {
15684
15685 #ifndef __cplusplus
15686   /* Ultrix mips cc rejects this sort of thing.  */
15687   typedef int charset[2];
15688   const charset cs = { 0, 0 };
15689   /* SunOS 4.1.1 cc rejects this.  */
15690   char const *const *pcpcc;
15691   char **ppc;
15692   /* NEC SVR4.0.2 mips cc rejects this.  */
15693   struct point {int x, y;};
15694   static struct point const zero = {0,0};
15695   /* AIX XL C 1.02.0.0 rejects this.
15696      It does not let you subtract one const X* pointer from another in
15697      an arm of an if-expression whose if-part is not a constant
15698      expression */
15699   const char *g = "string";
15700   pcpcc = &g + (g ? g-g : 0);
15701   /* HPUX 7.0 cc rejects these. */
15702   ++pcpcc;
15703   ppc = (char**) pcpcc;
15704   pcpcc = (char const *const *) ppc;
15705   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15706     char tx;
15707     char *t = &tx;
15708     char const *s = 0 ? (char *) 0 : (char const *) 0;
15709
15710     *t++ = 0;
15711     if (s) return 0;
15712   }
15713   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15714     int x[] = {25, 17};
15715     const int *foo = &x[0];
15716     ++foo;
15717   }
15718   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15719     typedef const int *iptr;
15720     iptr p = 0;
15721     ++p;
15722   }
15723   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15724        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15725     struct s { int j; const int *ap[3]; } bx;
15726     struct s *b = &bx; b->j = 5;
15727   }
15728   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15729     const int foo = 10;
15730     if (!foo) return 0;
15731   }
15732   return !cs[0] && !zero.x;
15733 #endif
15734
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 if ac_fn_c_try_compile "$LINENO"; then :
15740   ac_cv_c_const=yes
15741 else
15742   ac_cv_c_const=no
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15747 $as_echo "$ac_cv_c_const" >&6; }
15748 if test $ac_cv_c_const = no; then
15749
15750 $as_echo "#define const /**/" >>confdefs.h
15751
15752 fi
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15755 $as_echo_n "checking return type of signal handlers... " >&6; }
15756 if ${ac_cv_type_signal+:} false; then :
15757   $as_echo_n "(cached) " >&6
15758 else
15759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h.  */
15761 #include <sys/types.h>
15762 #include <signal.h>
15763
15764 int
15765 main ()
15766 {
15767 return *(signal (0, 0)) (0) == 1;
15768   ;
15769   return 0;
15770 }
15771 _ACEOF
15772 if ac_fn_c_try_compile "$LINENO"; then :
15773   ac_cv_type_signal=int
15774 else
15775   ac_cv_type_signal=void
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 fi
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15780 $as_echo "$ac_cv_type_signal" >&6; }
15781
15782 cat >>confdefs.h <<_ACEOF
15783 #define RETSIGTYPE $ac_cv_type_signal
15784 _ACEOF
15785
15786
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15788 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15789 if ${ac_cv_type_uid_t+:} false; then :
15790   $as_echo_n "(cached) " >&6
15791 else
15792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h.  */
15794 #include <sys/types.h>
15795
15796 _ACEOF
15797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15798   $EGREP "uid_t" >/dev/null 2>&1; then :
15799   ac_cv_type_uid_t=yes
15800 else
15801   ac_cv_type_uid_t=no
15802 fi
15803 rm -f conftest*
15804
15805 fi
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15807 $as_echo "$ac_cv_type_uid_t" >&6; }
15808 if test $ac_cv_type_uid_t = no; then
15809
15810 $as_echo "#define uid_t int" >>confdefs.h
15811
15812
15813 $as_echo "#define gid_t int" >>confdefs.h
15814
15815 fi
15816
15817 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15818 if test "x$ac_cv_type_pid_t" = xyes; then :
15819
15820 else
15821
15822 cat >>confdefs.h <<_ACEOF
15823 #define pid_t int
15824 _ACEOF
15825
15826 fi
15827
15828 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15829 if test "x$ac_cv_type_off_t" = xyes; then :
15830
15831 else
15832
15833 cat >>confdefs.h <<_ACEOF
15834 #define off_t long int
15835 _ACEOF
15836
15837 fi
15838
15839 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15840 if test "x$ac_cv_type_size_t" = xyes; then :
15841
15842 else
15843
15844 cat >>confdefs.h <<_ACEOF
15845 #define size_t unsigned int
15846 _ACEOF
15847
15848 fi
15849
15850 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15851 if test "x$ac_cv_type_ssize_t" = xyes; then :
15852
15853 else
15854
15855 cat >>confdefs.h <<_ACEOF
15856 #define ssize_t int
15857 _ACEOF
15858
15859 fi
15860
15861
15862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15863 $as_echo_n "checking for unsigned long long int... " >&6; }
15864 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
15865   $as_echo_n "(cached) " >&6
15866 else
15867   ac_cv_type_unsigned_long_long_int=yes
15868      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h.  */
15871
15872   /* For now, do not test the preprocessor; as of 2007 there are too many
15873          implementations with broken preprocessors.  Perhaps this can
15874          be revisited in 2012.  In the meantime, code should not expect
15875          #if to work with literals wider than 32 bits.  */
15876       /* Test literals.  */
15877       long long int ll = 9223372036854775807ll;
15878       long long int nll = -9223372036854775807LL;
15879       unsigned long long int ull = 18446744073709551615ULL;
15880       /* Test constant expressions.   */
15881       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15882                      ? 1 : -1)];
15883       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15884                      ? 1 : -1)];
15885       int i = 63;
15886 int
15887 main ()
15888 {
15889 /* Test availability of runtime routines for shift and division.  */
15890       long long int llmax = 9223372036854775807ll;
15891       unsigned long long int ullmax = 18446744073709551615ull;
15892       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15893               | (llmax / ll) | (llmax % ll)
15894               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15895               | (ullmax / ull) | (ullmax % ull));
15896   ;
15897   return 0;
15898 }
15899
15900 _ACEOF
15901 if ac_fn_c_try_link "$LINENO"; then :
15902
15903 else
15904   ac_cv_type_unsigned_long_long_int=no
15905 fi
15906 rm -f core conftest.err conftest.$ac_objext \
15907     conftest$ac_exeext conftest.$ac_ext
15908      fi
15909 fi
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15911 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15912   if test $ac_cv_type_unsigned_long_long_int = yes; then
15913
15914 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15915
15916   fi
15917
15918
15919
15920   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
15921 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15922
15923 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
15924
15925 else
15926   test $ac_cv_type_unsigned_long_long_int = yes \
15927        && ac_type='unsigned long long int' \
15928        || ac_type='unsigned long int'
15929
15930 cat >>confdefs.h <<_ACEOF
15931 #define uintmax_t $ac_type
15932 _ACEOF
15933
15934 fi
15935
15936
15937
15938 # Find out whether our struct stat returns nanosecond resolution timestamps.
15939
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
15941 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
15942 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
15943   $as_echo_n "(cached) " >&6
15944 else
15945   ac_save_CPPFLAGS="$CPPFLAGS"
15946     ac_cv_struct_st_mtim_nsec=no
15947     # st_mtim.tv_nsec -- the usual case
15948     # st_mtim._tv_nsec -- Solaris 2.6, if
15949     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
15950     #    && !defined __EXTENSIONS__)
15951     # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
15952     # st_mtime_n -- AIX 5.2 and above
15953     # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
15954     for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
15955       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
15956       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h.  */
15958 #include <sys/types.h>
15959 #include <sys/stat.h>
15960
15961 int
15962 main ()
15963 {
15964 struct stat s; s.ST_MTIM_NSEC;
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970   ac_cv_struct_st_mtim_nsec=$ac_val; break
15971 fi
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973     done
15974     CPPFLAGS="$ac_save_CPPFLAGS"
15975
15976 fi
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
15978 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
15979
15980   if test $ac_cv_struct_st_mtim_nsec != no; then
15981
15982 cat >>confdefs.h <<_ACEOF
15983 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
15984 _ACEOF
15985
15986   fi
15987
15988
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
15990 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
15991 if ${make_cv_file_timestamp_hi_res+:} false; then :
15992   $as_echo_n "(cached) " >&6
15993 else
15994    make_cv_file_timestamp_hi_res=no
15995   if test "$ac_cv_struct_st_mtim_nsec" != no; then :
15996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h.  */
15998
15999 #if HAVE_INTTYPES_H
16000 # include <inttypes.h>
16001 #endif
16002 int
16003 main ()
16004 {
16005 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011   make_cv_file_timestamp_hi_res=yes
16012 fi
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014
16015 fi
16016 fi
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
16018 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
16019 if test "$make_cv_file_timestamp_hi_res" = yes; then :
16020   val=1
16021 else
16022   val=0
16023 fi
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define FILE_TIMESTAMP_HI_RES $val
16027 _ACEOF
16028
16029
16030 if test "$make_cv_file_timestamp_hi_res" = yes; then :
16031    # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
16032   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
16033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16034 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16035 if ${ac_cv_search_clock_gettime+:} false; then :
16036   $as_echo_n "(cached) " >&6
16037 else
16038   ac_func_search_save_LIBS=$LIBS
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h.  */
16041
16042 /* Override any GCC internal prototype to avoid an error.
16043    Use char because int might match the return type of a GCC
16044    builtin and then its argument prototype would still apply.  */
16045 #ifdef __cplusplus
16046 extern "C"
16047 #endif
16048 char clock_gettime ();
16049 int
16050 main ()
16051 {
16052 return clock_gettime ();
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 for ac_lib in '' rt posix4; do
16058   if test -z "$ac_lib"; then
16059     ac_res="none required"
16060   else
16061     ac_res=-l$ac_lib
16062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16063   fi
16064   if ac_fn_c_try_link "$LINENO"; then :
16065   ac_cv_search_clock_gettime=$ac_res
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext \
16068     conftest$ac_exeext
16069   if ${ac_cv_search_clock_gettime+:} false; then :
16070   break
16071 fi
16072 done
16073 if ${ac_cv_search_clock_gettime+:} false; then :
16074
16075 else
16076   ac_cv_search_clock_gettime=no
16077 fi
16078 rm conftest.$ac_ext
16079 LIBS=$ac_func_search_save_LIBS
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16082 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16083 ac_res=$ac_cv_search_clock_gettime
16084 if test "$ac_res" != no; then :
16085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16086
16087 fi
16088
16089   if test "$ac_cv_search_clock_gettime" != no; then :
16090
16091 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16092
16093
16094 fi
16095
16096 fi
16097
16098 # Check for DOS-style pathnames.
16099
16100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
16101 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
16102 if ${ac_cv_dos_paths+:} false; then :
16103   $as_echo_n "(cached) " >&6
16104 else
16105
16106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h.  */
16108
16109 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
16110 neither MSDOS nor Windows nor OS2
16111 #endif
16112
16113 int
16114 main ()
16115 {
16116
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 if ac_fn_c_try_compile "$LINENO"; then :
16122   ac_cv_dos_paths=yes
16123 else
16124   ac_cv_dos_paths=no
16125 fi
16126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127 fi
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
16129 $as_echo "$ac_cv_dos_paths" >&6; }
16130
16131   if test x"$ac_cv_dos_paths" = xyes; then :
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_DOS_PATHS 1
16135 _ACEOF
16136
16137 fi
16138
16139
16140 # See if we have a standard version of gettimeofday().  Since actual
16141 # implementations can differ, just make sure we have the most common
16142 # one.
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
16144 $as_echo_n "checking for standard gettimeofday... " >&6; }
16145 if ${ac_cv_func_gettimeofday+:} false; then :
16146   $as_echo_n "(cached) " >&6
16147 else
16148   ac_cv_func_gettimeofday=no
16149    if test "$cross_compiling" = yes; then :
16150   ac_cv_func_gettimeofday="no (cross-compiling)"
16151 else
16152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h.  */
16154 #include <sys/time.h>
16155                   int main ()
16156                   {
16157                     struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
16158                     return gettimeofday (&t, 0) != 0
16159                           || t.tv_sec < 0 || t.tv_usec < 0;
16160                   }
16161 _ACEOF
16162 if ac_fn_c_try_run "$LINENO"; then :
16163   ac_cv_func_gettimeofday=yes
16164 else
16165   ac_cv_func_gettimeofday=no
16166 fi
16167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16168   conftest.$ac_objext conftest.beam conftest.$ac_ext
16169 fi
16170
16171 fi
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
16173 $as_echo "$ac_cv_func_gettimeofday" >&6; }
16174 if test "$ac_cv_func_gettimeofday" = yes; then :
16175
16176 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16177
16178
16179 fi
16180
16181 for ac_func in strdup strndup memrchr umask mkstemp mktemp fdopen \
16182                 dup dup2 getcwd realpath sigsetmask sigaction \
16183                 getgroups seteuid setegid setlinebuf setreuid setregid \
16184                 getrlimit setrlimit setvbuf pipe strsignal \
16185                 lstat readlink atexit isatty ttyname pselect posix_spawn \
16186                 posix_spawnattr_setsigmask
16187 do :
16188   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16190 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16191   cat >>confdefs.h <<_ACEOF
16192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16193 _ACEOF
16194
16195 fi
16196 done
16197
16198
16199 # We need to check declarations, not just existence, because on Tru64 this
16200 # function is not declared without special flags, which themselves cause
16201 # other problems.  We'll just use our own.
16202 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
16203 #include <signal.h>
16204 "
16205 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
16206   ac_have_decl=1
16207 else
16208   ac_have_decl=0
16209 fi
16210
16211 cat >>confdefs.h <<_ACEOF
16212 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
16213 _ACEOF
16214
16215
16216 for ac_header in vfork.h
16217 do :
16218   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16219 if test "x$ac_cv_header_vfork_h" = xyes; then :
16220   cat >>confdefs.h <<_ACEOF
16221 #define HAVE_VFORK_H 1
16222 _ACEOF
16223
16224 fi
16225
16226 done
16227
16228 for ac_func in fork vfork
16229 do :
16230   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16233   cat >>confdefs.h <<_ACEOF
16234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16235 _ACEOF
16236
16237 fi
16238 done
16239
16240 if test "x$ac_cv_func_fork" = xyes; then
16241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16242 $as_echo_n "checking for working fork... " >&6; }
16243 if ${ac_cv_func_fork_works+:} false; then :
16244   $as_echo_n "(cached) " >&6
16245 else
16246   if test "$cross_compiling" = yes; then :
16247   ac_cv_func_fork_works=cross
16248 else
16249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h.  */
16251 $ac_includes_default
16252 int
16253 main ()
16254 {
16255
16256           /* By Ruediger Kuhlmann. */
16257           return fork () < 0;
16258
16259   ;
16260   return 0;
16261 }
16262 _ACEOF
16263 if ac_fn_c_try_run "$LINENO"; then :
16264   ac_cv_func_fork_works=yes
16265 else
16266   ac_cv_func_fork_works=no
16267 fi
16268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16269   conftest.$ac_objext conftest.beam conftest.$ac_ext
16270 fi
16271
16272 fi
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16274 $as_echo "$ac_cv_func_fork_works" >&6; }
16275
16276 else
16277   ac_cv_func_fork_works=$ac_cv_func_fork
16278 fi
16279 if test "x$ac_cv_func_fork_works" = xcross; then
16280   case $host in
16281     *-*-amigaos* | *-*-msdosdjgpp*)
16282       # Override, as these systems have only a dummy fork() stub
16283       ac_cv_func_fork_works=no
16284       ;;
16285     *)
16286       ac_cv_func_fork_works=yes
16287       ;;
16288   esac
16289   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16290 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16291 fi
16292 ac_cv_func_vfork_works=$ac_cv_func_vfork
16293 if test "x$ac_cv_func_vfork" = xyes; then
16294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16295 $as_echo_n "checking for working vfork... " >&6; }
16296 if ${ac_cv_func_vfork_works+:} false; then :
16297   $as_echo_n "(cached) " >&6
16298 else
16299   if test "$cross_compiling" = yes; then :
16300   ac_cv_func_vfork_works=cross
16301 else
16302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304 /* Thanks to Paul Eggert for this test.  */
16305 $ac_includes_default
16306 #include <sys/wait.h>
16307 #ifdef HAVE_VFORK_H
16308 # include <vfork.h>
16309 #endif
16310 /* On some sparc systems, changes by the child to local and incoming
16311    argument registers are propagated back to the parent.  The compiler
16312    is told about this with #include <vfork.h>, but some compilers
16313    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16314    static variable whose address is put into a register that is
16315    clobbered by the vfork.  */
16316 static void
16317 #ifdef __cplusplus
16318 sparc_address_test (int arg)
16319 # else
16320 sparc_address_test (arg) int arg;
16321 #endif
16322 {
16323   static pid_t child;
16324   if (!child) {
16325     child = vfork ();
16326     if (child < 0) {
16327       perror ("vfork");
16328       _exit(2);
16329     }
16330     if (!child) {
16331       arg = getpid();
16332       write(-1, "", 0);
16333       _exit (arg);
16334     }
16335   }
16336 }
16337
16338 int
16339 main ()
16340 {
16341   pid_t parent = getpid ();
16342   pid_t child;
16343
16344   sparc_address_test (0);
16345
16346   child = vfork ();
16347
16348   if (child == 0) {
16349     /* Here is another test for sparc vfork register problems.  This
16350        test uses lots of local variables, at least as many local
16351        variables as main has allocated so far including compiler
16352        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16353        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16354        reuse the register of parent for one of the local variables,
16355        since it will think that parent can't possibly be used any more
16356        in this routine.  Assigning to the local variable will thus
16357        munge parent in the parent process.  */
16358     pid_t
16359       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16360       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16361     /* Convince the compiler that p..p7 are live; otherwise, it might
16362        use the same hardware register for all 8 local variables.  */
16363     if (p != p1 || p != p2 || p != p3 || p != p4
16364         || p != p5 || p != p6 || p != p7)
16365       _exit(1);
16366
16367     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16368        from child file descriptors.  If the child closes a descriptor
16369        before it execs or exits, this munges the parent's descriptor
16370        as well.  Test for this by closing stdout in the child.  */
16371     _exit(close(fileno(stdout)) != 0);
16372   } else {
16373     int status;
16374     struct stat st;
16375
16376     while (wait(&status) != child)
16377       ;
16378     return (
16379          /* Was there some problem with vforking?  */
16380          child < 0
16381
16382          /* Did the child fail?  (This shouldn't happen.)  */
16383          || status
16384
16385          /* Did the vfork/compiler bug occur?  */
16386          || parent != getpid()
16387
16388          /* Did the file descriptor bug occur?  */
16389          || fstat(fileno(stdout), &st) != 0
16390          );
16391   }
16392 }
16393 _ACEOF
16394 if ac_fn_c_try_run "$LINENO"; then :
16395   ac_cv_func_vfork_works=yes
16396 else
16397   ac_cv_func_vfork_works=no
16398 fi
16399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16400   conftest.$ac_objext conftest.beam conftest.$ac_ext
16401 fi
16402
16403 fi
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16405 $as_echo "$ac_cv_func_vfork_works" >&6; }
16406
16407 fi;
16408 if test "x$ac_cv_func_fork_works" = xcross; then
16409   ac_cv_func_vfork_works=$ac_cv_func_vfork
16410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16411 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16412 fi
16413
16414 if test "x$ac_cv_func_vfork_works" = xyes; then
16415
16416 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16417
16418 else
16419
16420 $as_echo "#define vfork fork" >>confdefs.h
16421
16422 fi
16423 if test "x$ac_cv_func_fork_works" = xyes; then
16424
16425 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16426
16427 fi
16428
16429
16430 if ${ac_cv_func_setvbuf_reversed+:} false; then :
16431   $as_echo_n "(cached) " >&6
16432 else
16433   ac_cv_func_setvbuf_reversed=no
16434 fi
16435
16436
16437
16438 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
16439 # It doesn't hurt much to use our own if we can't find it so I don't
16440 # make the effort here.
16441 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
16442 do :
16443   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16444 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16445 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16446   cat >>confdefs.h <<_ACEOF
16447 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16448 _ACEOF
16449
16450 fi
16451 done
16452
16453
16454 # strcoll() is used by the GNU glob library
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
16456 $as_echo_n "checking for working strcoll... " >&6; }
16457 if ${ac_cv_func_strcoll_works+:} false; then :
16458   $as_echo_n "(cached) " >&6
16459 else
16460   if test "$cross_compiling" = yes; then :
16461   ac_cv_func_strcoll_works=no
16462 else
16463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h.  */
16465 $ac_includes_default
16466 int
16467 main ()
16468 {
16469 return (strcoll ("abc", "def") >= 0 ||
16470          strcoll ("ABC", "DEF") >= 0 ||
16471          strcoll ("123", "456") >= 0)
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_run "$LINENO"; then :
16477   ac_cv_func_strcoll_works=yes
16478 else
16479   ac_cv_func_strcoll_works=no
16480 fi
16481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16482   conftest.$ac_objext conftest.beam conftest.$ac_ext
16483 fi
16484
16485 fi
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
16487 $as_echo "$ac_cv_func_strcoll_works" >&6; }
16488 if test $ac_cv_func_strcoll_works = yes; then
16489
16490 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
16491
16492 fi
16493
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
16495 $as_echo_n "checking whether closedir returns void... " >&6; }
16496 if ${ac_cv_func_closedir_void+:} false; then :
16497   $as_echo_n "(cached) " >&6
16498 else
16499   if test "$cross_compiling" = yes; then :
16500   ac_cv_func_closedir_void=yes
16501 else
16502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h.  */
16504 $ac_includes_default
16505 #include <$ac_header_dirent>
16506 #ifndef __cplusplus
16507 int closedir ();
16508 #endif
16509
16510 int
16511 main ()
16512 {
16513 return closedir (opendir (".")) != 0;
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 if ac_fn_c_try_run "$LINENO"; then :
16519   ac_cv_func_closedir_void=no
16520 else
16521   ac_cv_func_closedir_void=yes
16522 fi
16523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16524   conftest.$ac_objext conftest.beam conftest.$ac_ext
16525 fi
16526
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
16529 $as_echo "$ac_cv_func_closedir_void" >&6; }
16530 if test $ac_cv_func_closedir_void = yes; then
16531
16532 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
16533
16534 fi
16535
16536
16537 # dir.c and our glob.c use dirent.d_type if available
16538
16539
16540   ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
16541 #include <sys/types.h>
16542 #ifdef HAVE_DIRENT_H
16543 # include <dirent.h>
16544 #else
16545 # define dirent direct
16546 # ifdef HAVE_SYS_NDIR_H
16547 #  include <sys/ndir.h>
16548 # endif
16549 # ifdef HAVE_SYS_DIR_H
16550 #  include <sys/dir.h>
16551 # endif
16552 # ifdef HAVE_NDIR_H
16553 #  include <ndir.h>
16554 # endif
16555 #endif
16556
16557 "
16558 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_STRUCT_DIRENT_D_TYPE 1
16562 _ACEOF
16563
16564
16565 fi
16566
16567
16568
16569 # See if the user wants to add (or not) GNU Guile support
16570
16571 # Check whether --with-guile was given.
16572 if test "${with_guile+set}" = set; then :
16573   withval=$with_guile;
16574 fi
16575
16576
16577 # Annoyingly, each version of Guile comes with it's own PC file so we have to
16578 # specify them as individual packages.  Ugh.
16579
16580
16581
16582
16583
16584
16585
16586 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16587         if test -n "$ac_tool_prefix"; then
16588   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16589 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16591 $as_echo_n "checking for $ac_word... " >&6; }
16592 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16593   $as_echo_n "(cached) " >&6
16594 else
16595   case $PKG_CONFIG in
16596   [\\/]* | ?:[\\/]*)
16597   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16598   ;;
16599   *)
16600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16601 for as_dir in $PATH
16602 do
16603   IFS=$as_save_IFS
16604   test -z "$as_dir" && as_dir=.
16605     for ac_exec_ext in '' $ac_executable_extensions; do
16606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16607     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609     break 2
16610   fi
16611 done
16612   done
16613 IFS=$as_save_IFS
16614
16615   ;;
16616 esac
16617 fi
16618 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16619 if test -n "$PKG_CONFIG"; then
16620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16621 $as_echo "$PKG_CONFIG" >&6; }
16622 else
16623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16624 $as_echo "no" >&6; }
16625 fi
16626
16627
16628 fi
16629 if test -z "$ac_cv_path_PKG_CONFIG"; then
16630   ac_pt_PKG_CONFIG=$PKG_CONFIG
16631   # Extract the first word of "pkg-config", so it can be a program name with args.
16632 set dummy pkg-config; ac_word=$2
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16634 $as_echo_n "checking for $ac_word... " >&6; }
16635 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   case $ac_pt_PKG_CONFIG in
16639   [\\/]* | ?:[\\/]*)
16640   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16641   ;;
16642   *)
16643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16644 for as_dir in $PATH
16645 do
16646   IFS=$as_save_IFS
16647   test -z "$as_dir" && as_dir=.
16648     for ac_exec_ext in '' $ac_executable_extensions; do
16649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16650     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16652     break 2
16653   fi
16654 done
16655   done
16656 IFS=$as_save_IFS
16657
16658   ;;
16659 esac
16660 fi
16661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16662 if test -n "$ac_pt_PKG_CONFIG"; then
16663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16664 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16665 else
16666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16667 $as_echo "no" >&6; }
16668 fi
16669
16670   if test "x$ac_pt_PKG_CONFIG" = x; then
16671     PKG_CONFIG=""
16672   else
16673     case $cross_compiling:$ac_tool_warned in
16674 yes:)
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16677 ac_tool_warned=yes ;;
16678 esac
16679     PKG_CONFIG=$ac_pt_PKG_CONFIG
16680   fi
16681 else
16682   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16683 fi
16684
16685 fi
16686 if test -n "$PKG_CONFIG"; then
16687         _pkg_min_version=0.9.0
16688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16689 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16690         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16691                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16692 $as_echo "yes" >&6; }
16693         else
16694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695 $as_echo "no" >&6; }
16696                 PKG_CONFIG=""
16697         fi
16698 fi
16699
16700 if test "x$with_guile" != xno; then :
16701    guile_versions="3.0 2.2 2.0 1.8"
16702   guile_version=no
16703   have_guile=no
16704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
16705 $as_echo_n "checking for GNU Guile... " >&6; }
16706   for v in $guile_versions; do
16707     if test -n "$PKG_CONFIG" && \
16708     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
16709   ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
16710   ac_status=$?
16711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16712   test $ac_status = 0; }; then
16713   guile_version=$v; have_guile=yes; break
16714 fi
16715   done
16716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
16717 $as_echo "$guile_version" >&6; }
16718   if test "$have_guile" = yes; then :
16719
16720 pkg_failed=no
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
16722 $as_echo_n "checking for GUILE... " >&6; }
16723
16724 if test -n "$GUILE_CFLAGS"; then
16725     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
16726  elif test -n "$PKG_CONFIG"; then
16727     if test -n "$PKG_CONFIG" && \
16728     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
16729   ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
16730   ac_status=$?
16731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16732   test $ac_status = 0; }; then
16733   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
16734                       test "x$?" != "x0" && pkg_failed=yes
16735 else
16736   pkg_failed=yes
16737 fi
16738  else
16739     pkg_failed=untried
16740 fi
16741 if test -n "$GUILE_LIBS"; then
16742     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
16743  elif test -n "$PKG_CONFIG"; then
16744     if test -n "$PKG_CONFIG" && \
16745     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
16746   ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
16747   ac_status=$?
16748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749   test $ac_status = 0; }; then
16750   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
16751                       test "x$?" != "x0" && pkg_failed=yes
16752 else
16753   pkg_failed=yes
16754 fi
16755  else
16756     pkg_failed=untried
16757 fi
16758
16759
16760
16761 if test $pkg_failed = yes; then
16762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16764
16765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16766         _pkg_short_errors_supported=yes
16767 else
16768         _pkg_short_errors_supported=no
16769 fi
16770         if test $_pkg_short_errors_supported = yes; then
16771                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
16772         else
16773                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
16774         fi
16775         # Put the nasty error message in config.log where it belongs
16776         echo "$GUILE_PKG_ERRORS" >&5
16777
16778         as_fn_error $? "Package requirements (guile-$guile_version) were not met:
16779
16780 $GUILE_PKG_ERRORS
16781
16782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16783 installed software in a non-standard prefix.
16784
16785 Alternatively, you may set the environment variables GUILE_CFLAGS
16786 and GUILE_LIBS to avoid the need to call pkg-config.
16787 See the pkg-config man page for more details." "$LINENO" 5
16788 elif test $pkg_failed = untried; then
16789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790 $as_echo "no" >&6; }
16791         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16793 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16794 is in your PATH or set the PKG_CONFIG environment variable to the full
16795 path to pkg-config.
16796
16797 Alternatively, you may set the environment variables GUILE_CFLAGS
16798 and GUILE_LIBS to avoid the need to call pkg-config.
16799 See the pkg-config man page for more details.
16800
16801 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16802 See \`config.log' for more details" "$LINENO" 5; }
16803 else
16804         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
16805         GUILE_LIBS=$pkg_cv_GUILE_LIBS
16806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16807 $as_echo "yes" >&6; }
16808
16809 fi
16810     # Unfortunately Guile requires a C99 compiler but GNU make doesn't, so
16811     # verify we can actually compile the header.
16812     keep_CPPFLAGS="$CPPFLAGS"
16813     CPPFLAGS="$CPPFLAGS $pkg_cv_GUILE_CFLAGS"
16814     ac_fn_c_check_header_compile "$LINENO" "libguile.h" "ac_cv_header_libguile_h" "/* Avoid configuration error warnings. */
16815 "
16816 if test "x$ac_cv_header_libguile_h" = xyes; then :
16817
16818 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
16819
16820 else
16821   have_guile=no
16822 fi
16823
16824
16825     CPPFLAGS="$keep_CPPFLAGS"
16826
16827 fi
16828
16829 fi
16830
16831  if test "$have_guile" = "yes"; then
16832   HAVE_GUILE_TRUE=
16833   HAVE_GUILE_FALSE='#'
16834 else
16835   HAVE_GUILE_TRUE='#'
16836   HAVE_GUILE_FALSE=
16837 fi
16838
16839
16840 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
16841 #include <signal.h>
16842 /* NetBSD declares sys_siglist in unistd.h.  */
16843 #if HAVE_UNISTD_H
16844 # include <unistd.h>
16845 #endif
16846
16847 "
16848 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
16849   ac_have_decl=1
16850 else
16851   ac_have_decl=0
16852 fi
16853
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16856 _ACEOF
16857 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
16858 #include <signal.h>
16859 /* NetBSD declares sys_siglist in unistd.h.  */
16860 #if HAVE_UNISTD_H
16861 # include <unistd.h>
16862 #endif
16863
16864 "
16865 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
16866   ac_have_decl=1
16867 else
16868   ac_have_decl=0
16869 fi
16870
16871 cat >>confdefs.h <<_ACEOF
16872 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16873 _ACEOF
16874 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
16875 #include <signal.h>
16876 /* NetBSD declares sys_siglist in unistd.h.  */
16877 #if HAVE_UNISTD_H
16878 # include <unistd.h>
16879 #endif
16880
16881 "
16882 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
16883   ac_have_decl=1
16884 else
16885   ac_have_decl=0
16886 fi
16887
16888 cat >>confdefs.h <<_ACEOF
16889 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16890 _ACEOF
16891
16892
16893
16894 # Check out the wait reality.
16895 for ac_header in sys/wait.h
16896 do :
16897   ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
16898 "
16899 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
16900   cat >>confdefs.h <<_ACEOF
16901 #define HAVE_SYS_WAIT_H 1
16902 _ACEOF
16903
16904 fi
16905
16906 done
16907
16908 for ac_func in waitpid wait3
16909 do :
16910   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16913   cat >>confdefs.h <<_ACEOF
16914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16915 _ACEOF
16916
16917 fi
16918 done
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
16921 $as_echo_n "checking for union wait... " >&6; }
16922 if ${make_cv_union_wait+:} false; then :
16923   $as_echo_n "(cached) " >&6
16924 else
16925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h.  */
16927 #include <sys/types.h>
16928 #include <sys/wait.h>
16929 int
16930 main ()
16931 {
16932 union wait status; int pid; pid = wait (&status);
16933 #ifdef WEXITSTATUS
16934 /* Some POSIXoid systems have both the new-style macros and the old
16935    union wait type, and they do not work together.  If union wait
16936    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
16937         if (WEXITSTATUS (status) != 0) pid = -1;
16938 #ifdef WTERMSIG
16939         /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
16940         -- blow chunks here --
16941 #endif
16942 #endif
16943 #ifdef HAVE_WAITPID
16944         /* Make sure union wait works with waitpid.  */
16945         pid = waitpid (-1, &status, 0);
16946 #endif
16947
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 if ac_fn_c_try_link "$LINENO"; then :
16953   make_cv_union_wait=yes
16954 else
16955   make_cv_union_wait=no
16956 fi
16957 rm -f core conftest.err conftest.$ac_objext \
16958     conftest$ac_exeext conftest.$ac_ext
16959
16960 fi
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
16962 $as_echo "$make_cv_union_wait" >&6; }
16963 if test "$make_cv_union_wait" = yes; then :
16964
16965 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
16966
16967
16968 fi
16969
16970
16971 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
16972 if test "$PATH_SEPARATOR" = ';'; then :
16973
16974 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
16975
16976
16977 fi
16978
16979 # See if the user wants to use pmake's "customs" distributed build capability
16980  REMOTE=stub
16981 use_customs=false
16982
16983 # Check whether --with-customs was given.
16984 if test "${with_customs+set}" = set; then :
16985   withval=$with_customs;  case $withval in #(
16986   n|no) :
16987     : ;; #(
16988   *) :
16989     make_cppflags="$CPPFLAGS"
16990      case $withval in #(
16991   y|ye|yes) :
16992     : ;; #(
16993   *) :
16994     CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
16995               make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
16996 esac
16997
16998 cf_test_netlibs=no
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
17000 $as_echo_n "checking for network libraries... " >&6; }
17001 if ${cf_cv_netlibs+:} false; then :
17002   $as_echo_n "(cached) " >&6
17003 else
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
17006 $as_echo "working..." >&6; }
17007 cf_cv_netlibs=""
17008 cf_test_netlibs=yes
17009 for ac_func in gethostname
17010 do :
17011   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
17012 if test "x$ac_cv_func_gethostname" = xyes; then :
17013   cat >>confdefs.h <<_ACEOF
17014 #define HAVE_GETHOSTNAME 1
17015 _ACEOF
17016
17017 else
17018
17019
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
17021 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
17022 if ${ac_cv_lib_nsl_gethostname+:} false; then :
17023   $as_echo_n "(cached) " >&6
17024 else
17025   ac_check_lib_save_LIBS=$LIBS
17026 LIBS="-lnsl $cf_cv_netlibs $LIBS"
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h.  */
17029
17030 /* Override any GCC internal prototype to avoid an error.
17031    Use char because int might match the return type of a GCC
17032    builtin and then its argument prototype would still apply.  */
17033 #ifdef __cplusplus
17034 extern "C"
17035 #endif
17036 char gethostname ();
17037 int
17038 main ()
17039 {
17040 return gethostname ();
17041   ;
17042   return 0;
17043 }
17044 _ACEOF
17045 if ac_fn_c_try_link "$LINENO"; then :
17046   ac_cv_lib_nsl_gethostname=yes
17047 else
17048   ac_cv_lib_nsl_gethostname=no
17049 fi
17050 rm -f core conftest.err conftest.$ac_objext \
17051     conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17053 fi
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
17055 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
17056 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
17057
17058
17059 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
17060
17061
17062 cat >>confdefs.h <<_ACEOF
17063 #define HAVE_$cf_tr_func 1
17064 _ACEOF
17065
17066         ac_cv_func_gethostname=yes
17067         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
17068 else
17069
17070         ac_cv_func_gethostname=unknown
17071         unset ac_cv_func_gethostname 2>/dev/null
17072
17073
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17075 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17076 if ${ac_cv_lib_socket_gethostname+:} false; then :
17077   $as_echo_n "(cached) " >&6
17078 else
17079   ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lsocket $cf_cv_netlibs $LIBS"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h.  */
17083
17084 /* Override any GCC internal prototype to avoid an error.
17085    Use char because int might match the return type of a GCC
17086    builtin and then its argument prototype would still apply.  */
17087 #ifdef __cplusplus
17088 extern "C"
17089 #endif
17090 char gethostname ();
17091 int
17092 main ()
17093 {
17094 return gethostname ();
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100   ac_cv_lib_socket_gethostname=yes
17101 else
17102   ac_cv_lib_socket_gethostname=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105     conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17109 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17110 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
17111
17112
17113 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
17114
17115
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_$cf_tr_func 1
17118 _ACEOF
17119
17120         ac_cv_func_gethostname=yes
17121         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
17122 else
17123
17124         ac_cv_func_gethostname=unknown
17125         unset ac_cv_func_gethostname 2>/dev/null
17126
17127 fi
17128
17129
17130 fi
17131
17132
17133 fi
17134 done
17135
17136 #
17137 # FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
17138 # I don't know the entrypoints - 97/7/22 TD
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
17140 $as_echo_n "checking for main in -linet... " >&6; }
17141 if ${ac_cv_lib_inet_main+:} false; then :
17142   $as_echo_n "(cached) " >&6
17143 else
17144   ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-linet  $LIBS"
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h.  */
17148
17149
17150 int
17151 main ()
17152 {
17153 return main ();
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 if ac_fn_c_try_link "$LINENO"; then :
17159   ac_cv_lib_inet_main=yes
17160 else
17161   ac_cv_lib_inet_main=no
17162 fi
17163 rm -f core conftest.err conftest.$ac_objext \
17164     conftest$ac_exeext conftest.$ac_ext
17165 LIBS=$ac_check_lib_save_LIBS
17166 fi
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
17168 $as_echo "$ac_cv_lib_inet_main" >&6; }
17169 if test "x$ac_cv_lib_inet_main" = xyes; then :
17170   cf_cv_netlibs="-linet $cf_cv_netlibs"
17171 fi
17172
17173 #
17174 if test "$ac_cv_func_lsocket" != no ; then
17175 for ac_func in socket
17176 do :
17177   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17178 if test "x$ac_cv_func_socket" = xyes; then :
17179   cat >>confdefs.h <<_ACEOF
17180 #define HAVE_SOCKET 1
17181 _ACEOF
17182
17183 else
17184
17185
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17187 $as_echo_n "checking for socket in -lsocket... " >&6; }
17188 if ${ac_cv_lib_socket_socket+:} false; then :
17189   $as_echo_n "(cached) " >&6
17190 else
17191   ac_check_lib_save_LIBS=$LIBS
17192 LIBS="-lsocket $cf_cv_netlibs $LIBS"
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h.  */
17195
17196 /* Override any GCC internal prototype to avoid an error.
17197    Use char because int might match the return type of a GCC
17198    builtin and then its argument prototype would still apply.  */
17199 #ifdef __cplusplus
17200 extern "C"
17201 #endif
17202 char socket ();
17203 int
17204 main ()
17205 {
17206 return socket ();
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 if ac_fn_c_try_link "$LINENO"; then :
17212   ac_cv_lib_socket_socket=yes
17213 else
17214   ac_cv_lib_socket_socket=no
17215 fi
17216 rm -f core conftest.err conftest.$ac_objext \
17217     conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17221 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17222 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17223
17224
17225 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
17226
17227
17228 cat >>confdefs.h <<_ACEOF
17229 #define HAVE_$cf_tr_func 1
17230 _ACEOF
17231
17232         ac_cv_func_socket=yes
17233         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
17234 else
17235
17236         ac_cv_func_socket=unknown
17237         unset ac_cv_func_socket 2>/dev/null
17238
17239
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
17241 $as_echo_n "checking for socket in -lbsd... " >&6; }
17242 if ${ac_cv_lib_bsd_socket+:} false; then :
17243   $as_echo_n "(cached) " >&6
17244 else
17245   ac_check_lib_save_LIBS=$LIBS
17246 LIBS="-lbsd $cf_cv_netlibs $LIBS"
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h.  */
17249
17250 /* Override any GCC internal prototype to avoid an error.
17251    Use char because int might match the return type of a GCC
17252    builtin and then its argument prototype would still apply.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 char socket ();
17257 int
17258 main ()
17259 {
17260 return socket ();
17261   ;
17262   return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266   ac_cv_lib_bsd_socket=yes
17267 else
17268   ac_cv_lib_bsd_socket=no
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271     conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17273 fi
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
17275 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
17276 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
17277
17278
17279 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
17280
17281
17282 cat >>confdefs.h <<_ACEOF
17283 #define HAVE_$cf_tr_func 1
17284 _ACEOF
17285
17286         ac_cv_func_socket=yes
17287         cf_cv_netlibs="-lbsd $cf_cv_netlibs"
17288 else
17289
17290         ac_cv_func_socket=unknown
17291         unset ac_cv_func_socket 2>/dev/null
17292
17293 fi
17294
17295
17296 fi
17297
17298
17299 fi
17300 done
17301
17302 fi
17303 #
17304 for ac_func in gethostbyname
17305 do :
17306   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17307 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17308   cat >>confdefs.h <<_ACEOF
17309 #define HAVE_GETHOSTBYNAME 1
17310 _ACEOF
17311
17312 else
17313
17314
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17316 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17317 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17318   $as_echo_n "(cached) " >&6
17319 else
17320   ac_check_lib_save_LIBS=$LIBS
17321 LIBS="-lnsl $cf_cv_netlibs $LIBS"
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h.  */
17324
17325 /* Override any GCC internal prototype to avoid an error.
17326    Use char because int might match the return type of a GCC
17327    builtin and then its argument prototype would still apply.  */
17328 #ifdef __cplusplus
17329 extern "C"
17330 #endif
17331 char gethostbyname ();
17332 int
17333 main ()
17334 {
17335 return gethostbyname ();
17336   ;
17337   return 0;
17338 }
17339 _ACEOF
17340 if ac_fn_c_try_link "$LINENO"; then :
17341   ac_cv_lib_nsl_gethostbyname=yes
17342 else
17343   ac_cv_lib_nsl_gethostbyname=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext \
17346     conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17348 fi
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17350 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17351 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17352
17353
17354 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
17355
17356
17357 cat >>confdefs.h <<_ACEOF
17358 #define HAVE_$cf_tr_func 1
17359 _ACEOF
17360
17361         ac_cv_func_gethostbyname=yes
17362         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
17363 else
17364
17365         ac_cv_func_gethostbyname=unknown
17366         unset ac_cv_func_gethostbyname 2>/dev/null
17367
17368 fi
17369
17370
17371 fi
17372 done
17373
17374
17375 fi
17376
17377 LIBS="$LIBS $cf_cv_netlibs"
17378 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
17379
17380      ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
17381 if test "x$ac_cv_header_customs_h" = xyes; then :
17382   use_customs=true
17383                       REMOTE=cstms
17384                       LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
17385 else
17386   with_customs=no
17387                       CPPFLAGS="$make_cppflags" make_badcust=yes
17388 fi
17389
17390
17391      ;;
17392 esac
17393
17394 fi
17395
17396
17397 # Tell automake about this, so it can include the right .c files.
17398  if test "$use_customs" = true; then
17399   USE_CUSTOMS_TRUE=
17400   USE_CUSTOMS_FALSE='#'
17401 else
17402   USE_CUSTOMS_TRUE='#'
17403   USE_CUSTOMS_FALSE=
17404 fi
17405
17406
17407 # See if the user asked to handle case insensitive file systems.
17408
17409 # Check whether --enable-case-insensitive-file-system was given.
17410 if test "${enable_case_insensitive_file_system+set}" = set; then :
17411   enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
17412   $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
17413
17414 fi
17415 fi
17416
17417
17418 # See if we can handle the job server feature, and if the user wants it.
17419 # Check whether --enable-job-server was given.
17420 if test "${enable_job_server+set}" = set; then :
17421   enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
17422 else
17423   make_cv_job_server="yes"
17424 fi
17425
17426
17427 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
17428   has_wait_nohang=no
17429 else
17430   has_wait_nohang=yes
17431 fi
17432
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
17434 $as_echo_n "checking for SA_RESTART... " >&6; }
17435 if ${make_cv_sa_restart+:} false; then :
17436   $as_echo_n "(cached) " >&6
17437 else
17438
17439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h.  */
17441 #include <signal.h>
17442 int
17443 main ()
17444 {
17445 return SA_RESTART;
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 if ac_fn_c_try_compile "$LINENO"; then :
17451   make_cv_sa_restart=yes
17452 else
17453   make_cv_sa_restart=no
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456 fi
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
17458 $as_echo "$make_cv_sa_restart" >&6; }
17459
17460 if test "$make_cv_sa_restart" != no; then :
17461
17462 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
17463
17464
17465 fi
17466
17467 # Only allow jobserver on systems that support it
17468 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
17469   */no/*) :
17470     make_cv_job_server=no ;; #(
17471   *) :
17472      ;;
17473 esac
17474
17475 # Also supported on OS2 and MinGW
17476 case $host_os in #(
17477   os2*|mingw*) :
17478     make_cv_job_server=yes ;; #(
17479   *) :
17480      ;;
17481 esac
17482
17483 # If we support it and the user didn't disable it, build with jobserver
17484 case /$make_cv_job_server/$user_job_server/ in #(
17485   */no/*) :
17486     : no jobserver ;; #(
17487   *) :
17488
17489 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
17490
17491    ;;
17492 esac
17493
17494 # If dl*() functions are supported we can enable the load operation
17495 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
17496 "
17497 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
17498   ac_have_decl=1
17499 else
17500   ac_have_decl=0
17501 fi
17502
17503 cat >>confdefs.h <<_ACEOF
17504 #define HAVE_DECL_DLOPEN $ac_have_decl
17505 _ACEOF
17506 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
17507 "
17508 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
17509   ac_have_decl=1
17510 else
17511   ac_have_decl=0
17512 fi
17513
17514 cat >>confdefs.h <<_ACEOF
17515 #define HAVE_DECL_DLSYM $ac_have_decl
17516 _ACEOF
17517 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
17518 "
17519 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
17520   ac_have_decl=1
17521 else
17522   ac_have_decl=0
17523 fi
17524
17525 cat >>confdefs.h <<_ACEOF
17526 #define HAVE_DECL_DLERROR $ac_have_decl
17527 _ACEOF
17528
17529
17530 # Check whether --enable-load was given.
17531 if test "${enable_load+set}" = set; then :
17532   enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
17533 else
17534   make_cv_load="yes"
17535 fi
17536
17537
17538 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
17539   */no/*) :
17540     make_cv_load=no ;; #(
17541   *) :
17542      ;;
17543 esac
17544
17545 # We might need -ldl
17546 if test "$make_cv_load" = yes; then :
17547
17548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17549 $as_echo_n "checking for library containing dlopen... " >&6; }
17550 if ${ac_cv_search_dlopen+:} false; then :
17551   $as_echo_n "(cached) " >&6
17552 else
17553   ac_func_search_save_LIBS=$LIBS
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h.  */
17556
17557 /* Override any GCC internal prototype to avoid an error.
17558    Use char because int might match the return type of a GCC
17559    builtin and then its argument prototype would still apply.  */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 char dlopen ();
17564 int
17565 main ()
17566 {
17567 return dlopen ();
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 for ac_lib in '' dl; do
17573   if test -z "$ac_lib"; then
17574     ac_res="none required"
17575   else
17576     ac_res=-l$ac_lib
17577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17578   fi
17579   if ac_fn_c_try_link "$LINENO"; then :
17580   ac_cv_search_dlopen=$ac_res
17581 fi
17582 rm -f core conftest.err conftest.$ac_objext \
17583     conftest$ac_exeext
17584   if ${ac_cv_search_dlopen+:} false; then :
17585   break
17586 fi
17587 done
17588 if ${ac_cv_search_dlopen+:} false; then :
17589
17590 else
17591   ac_cv_search_dlopen=no
17592 fi
17593 rm conftest.$ac_ext
17594 LIBS=$ac_func_search_save_LIBS
17595 fi
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17597 $as_echo "$ac_cv_search_dlopen" >&6; }
17598 ac_res=$ac_cv_search_dlopen
17599 if test "$ac_res" != no; then :
17600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17601
17602 else
17603   make_cv_load=
17604 fi
17605
17606
17607 fi
17608
17609 case /$make_cv_load/$user_load/ in #(
17610   */no/*) :
17611     make_cv_load=no ;; #(
17612   *) :
17613
17614 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
17615
17616    ;;
17617 esac
17618
17619 # If we want load support, we might need to link with export-dynamic.
17620 # See if we can figure it out.  Unfortunately this is very difficult.
17621 # For example passing -rdynamic to the SunPRO linker gives a warning
17622 # but succeeds and creates a shared object, not an executable!
17623 if test "$make_cv_load" = yes; then :
17624
17625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
17626 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
17627   old_LDFLAGS="$LDFLAGS"
17628   LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
17629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h.  */
17631 int main(){}
17632 _ACEOF
17633 if ac_fn_c_try_link "$LINENO"; then :
17634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17635 $as_echo "yes" >&6; }
17636      AM_LDFLAGS=-Wl,--export-dynamic
17637
17638 else
17639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640 $as_echo "no" >&6; }
17641      { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
17642 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
17643      LDFLAGS="$old_LDFLAGS -rdynamic"
17644      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h.  */
17646 int main(){}
17647 _ACEOF
17648 if ac_fn_c_try_link "$LINENO"; then :
17649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17650 $as_echo "yes" >&6; }
17651         AM_LDFLAGS=-rdynamic
17652
17653 else
17654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17655 $as_echo "no" >&6; }
17656 fi
17657 rm -f core conftest.err conftest.$ac_objext \
17658     conftest$ac_exeext conftest.$ac_ext
17659
17660 fi
17661 rm -f core conftest.err conftest.$ac_objext \
17662     conftest$ac_exeext conftest.$ac_ext
17663   LDFLAGS="$old_LDFLAGS"
17664
17665 fi
17666
17667 # if we have both lstat() and readlink() then we can support symlink
17668 # timechecks.
17669 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
17670
17671 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
17672
17673
17674 fi
17675
17676 # Use posix_spawn if we have support and the user didn't disable it
17677
17678 # Check whether --enable-posix-spawn was given.
17679 if test "${enable_posix_spawn+set}" = set; then :
17680   enableval=$enable_posix_spawn; make_cv_posix_spawn="$enableval" user_posix_spawn="$enableval"
17681 else
17682   make_cv_posix_spawn="yes"
17683 fi
17684
17685
17686 case /$ac_cv_header_spawn/$ac_cv_func_posix_spawn/ in #(
17687   */no/*) :
17688     make_cv_posix_spawn=no ;; #(
17689   *) :
17690      ;;
17691 esac
17692
17693 if test "$make_cv_posix_spawn" = yes; then :
17694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_spawn that fails synchronously" >&5
17695 $as_echo_n "checking for posix_spawn that fails synchronously... " >&6; }
17696 if ${make_cv_synchronous_posix_spawn+:} false; then :
17697   $as_echo_n "(cached) " >&6
17698 else
17699   make_cv_synchronous_posix_spawn=no
17700      if test "$cross_compiling" = yes; then :
17701   make_cv_synchronous_posix_spawn="no (cross-compiling)"
17702 else
17703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h.  */
17705
17706        #include <spawn.h>
17707        #include <string.h>
17708
17709        extern char **environ;
17710
17711        int main() {
17712          char* path = strdup("./non-existent");
17713          char *argv[2];
17714          argv[0] = path;
17715          argv[1] =  0;
17716          return posix_spawn(0, path, 0, 0, argv, environ);
17717        }
17718 _ACEOF
17719 if ac_fn_c_try_run "$LINENO"; then :
17720   make_cv_synchronous_posix_spawn=no
17721 else
17722   make_cv_synchronous_posix_spawn=yes
17723 fi
17724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17725   conftest.$ac_objext conftest.beam conftest.$ac_ext
17726 fi
17727
17728 fi
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_synchronous_posix_spawn" >&5
17730 $as_echo "$make_cv_synchronous_posix_spawn" >&6; }
17731 fi
17732
17733 case /$user_posix_spawn/$make_cv_posix_spawn/$make_cv_synchronous_posix_spawn/ in #(
17734   */no/*) :
17735     make_cv_posix_spawn=no ;; #(
17736   *) :
17737
17738 $as_echo "#define USE_POSIX_SPAWN 1" >>confdefs.h
17739
17740    ;;
17741 esac
17742
17743 # Find the SCCS commands, so we can include them in our default rules.
17744
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
17746 $as_echo_n "checking for location of SCCS get command... " >&6; }
17747 if ${make_cv_path_sccs_get+:} false; then :
17748   $as_echo_n "(cached) " >&6
17749 else
17750
17751   if test -f /usr/sccs/get; then :
17752   make_cv_path_sccs_get=/usr/sccs/get
17753 else
17754   make_cv_path_sccs_get=get
17755 fi
17756
17757 fi
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
17759 $as_echo "$make_cv_path_sccs_get" >&6; }
17760
17761 cat >>confdefs.h <<_ACEOF
17762 #define SCCS_GET "$make_cv_path_sccs_get"
17763 _ACEOF
17764
17765
17766 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
17767 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
17768    test -f s.conftest; then :
17769    # We successfully created an SCCS file.
17770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
17771 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
17772 if ${make_cv_sys_get_minus_G+:} false; then :
17773   $as_echo_n "(cached) " >&6
17774 else
17775   if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
17776             test -f conftoast; then :
17777   make_cv_sys_get_minus_G=yes
17778 else
17779   make_cv_sys_get_minus_G=no
17780 fi
17781
17782 fi
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
17784 $as_echo "$make_cv_sys_get_minus_G" >&6; }
17785   if test "$make_cv_sys_get_minus_G" = yes; then :
17786
17787 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
17788
17789
17790 fi
17791
17792 fi
17793 rm -f s.conftest conftoast
17794
17795 # Let the makefile know what our build host is
17796
17797
17798 cat >>confdefs.h <<_ACEOF
17799 #define MAKE_HOST "$host"
17800 _ACEOF
17801
17802 MAKE_HOST="$host"
17803
17804
17805 w32_target_env=no
17806  if false; then
17807   WINDOWSENV_TRUE=
17808   WINDOWSENV_FALSE='#'
17809 else
17810   WINDOWSENV_TRUE='#'
17811   WINDOWSENV_FALSE=
17812 fi
17813
17814
17815 case $host in #(
17816   *-*-mingw32) :
17817      if true; then
17818   WINDOWSENV_TRUE=
17819   WINDOWSENV_FALSE='#'
17820 else
17821   WINDOWSENV_TRUE='#'
17822   WINDOWSENV_FALSE=
17823 fi
17824
17825     w32_target_env=yes
17826
17827 $as_echo "#define WINDOWS32 1" >>confdefs.h
17828
17829
17830 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
17831
17832    ;; #(
17833   *) :
17834      ;;
17835 esac
17836
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
17840 _ACEOF
17841
17842
17843 # Include the Maintainer's Makefile section, if it's here.
17844
17845 MAINT_MAKEFILE=/dev/null
17846 if test -r "$srcdir/maintMakefile"; then :
17847    MAINT_MAKEFILE="$srcdir/maintMakefile"
17848
17849 fi
17850
17851
17852 # Allow building with dmalloc
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
17854 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
17855
17856 # Check whether --with-dmalloc was given.
17857 if test "${with_dmalloc+set}" = set; then :
17858   withval=$with_dmalloc; if test "$withval" = yes; then
17859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17860 $as_echo "yes" >&6; }
17861
17862 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
17863
17864   LIBS="$LIBS -ldmalloc"
17865   LDFLAGS="$LDFLAGS -g"
17866 else
17867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17868 $as_echo "no" >&6; }
17869 fi
17870 else
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17873 fi
17874
17875
17876
17877 # Forcibly disable SET_MAKE.  If it's set it breaks things like the test
17878 # scripts, etc.
17879 SET_MAKE=
17880
17881 # Sanity check and inform the user of what we found
17882
17883 if test "x$make_badcust" = xyes; then :
17884
17885 echo
17886 echo "WARNING: --with-customs specified but no customs.h could be found;"
17887 echo "         disabling Customs support."
17888 echo
17889
17890 fi
17891
17892 case $with_customs in #(
17893   ""|n|no|y|ye|yes) :
17894     : ;; #(
17895   *) :
17896     if test -f "$with_customs/lib/libcustoms.a"; then :
17897   :
17898 else
17899    echo
17900   echo "WARNING: '$with_customs/lib' does not appear to contain the"
17901   echo "         Customs library.  You must build and install Customs"
17902   echo "         before compiling GNU make."
17903   echo
17904
17905 fi ;;
17906 esac
17907
17908 if test "x$has_wait_nohang" = xno; then :
17909    echo
17910   echo "WARNING: Your system has neither waitpid() nor wait3()."
17911   echo "         Without one of these, signal handling is unreliable."
17912   echo "         You should be aware that running GNU make with -j"
17913   echo "         could result in erratic behavior."
17914   echo
17915
17916 fi
17917
17918 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
17919    echo
17920   echo "WARNING: Make job server requires a POSIX-ish system that"
17921   echo "         supports the pipe(), sigaction(), and either"
17922   echo "         waitpid() or wait3() functions.  Your system doesn't"
17923   echo "         appear to provide one or more of those."
17924   echo "         Disabling job server support."
17925   echo
17926
17927 fi
17928
17929 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
17930    echo
17931   echo "WARNING: 'load' support requires a POSIX-ish system that"
17932   echo "         supports the dlopen(), dlsym(), and dlerror() functions."
17933   echo "         Your system doesn't appear to provide one or more of these."
17934   echo "         Disabling 'load' support."
17935   echo
17936
17937 fi
17938
17939 if test "x$make_cv_posix_spawn" = xno && test "x$user_posix_spawn" = xyes; then :
17940    echo
17941   echo "WARNING: posix_spawn() is not supported on this system."
17942   echo
17943
17944 fi
17945
17946 # Specify what files are to be created.
17947 ac_config_files="$ac_config_files Makefile build.cfg lib/Makefile po/Makefile.in doc/Makefile tests/config-flags.pm"
17948
17949 # We don't need this: the standard automake output suffices for POSIX systems.
17950 #mk/Posix.mk
17951
17952 # OK, do it!
17953
17954 cat >confcache <<\_ACEOF
17955 # This file is a shell script that caches the results of configure
17956 # tests run on this system so they can be shared between configure
17957 # scripts and configure runs, see configure's option --config-cache.
17958 # It is not useful on other systems.  If it contains results you don't
17959 # want to keep, you may remove or edit it.
17960 #
17961 # config.status only pays attention to the cache file if you give it
17962 # the --recheck option to rerun configure.
17963 #
17964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17966 # following values.
17967
17968 _ACEOF
17969
17970 # The following way of writing the cache mishandles newlines in values,
17971 # but we know of no workaround that is simple, portable, and efficient.
17972 # So, we kill variables containing newlines.
17973 # Ultrix sh set writes to stderr and can't be redirected directly,
17974 # and sets the high bit in the cache file unless we assign to the vars.
17975 (
17976   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17977     eval ac_val=\$$ac_var
17978     case $ac_val in #(
17979     *${as_nl}*)
17980       case $ac_var in #(
17981       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17983       esac
17984       case $ac_var in #(
17985       _ | IFS | as_nl) ;; #(
17986       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17987       *) { eval $ac_var=; unset $ac_var;} ;;
17988       esac ;;
17989     esac
17990   done
17991
17992   (set) 2>&1 |
17993     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17994     *${as_nl}ac_space=\ *)
17995       # `set' does not quote correctly, so add quotes: double-quote
17996       # substitution turns \\\\ into \\, and sed turns \\ into \.
17997       sed -n \
17998         "s/'/'\\\\''/g;
17999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18000       ;; #(
18001     *)
18002       # `set' quotes correctly as required by POSIX, so do not add quotes.
18003       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18004       ;;
18005     esac |
18006     sort
18007 ) |
18008   sed '
18009      /^ac_cv_env_/b end
18010      t clear
18011      :clear
18012      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18013      t end
18014      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18015      :end' >>confcache
18016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18017   if test -w "$cache_file"; then
18018     if test "x$cache_file" != "x/dev/null"; then
18019       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18020 $as_echo "$as_me: updating cache $cache_file" >&6;}
18021       if test ! -f "$cache_file" || test -h "$cache_file"; then
18022         cat confcache >"$cache_file"
18023       else
18024         case $cache_file in #(
18025         */* | ?:*)
18026           mv -f confcache "$cache_file"$$ &&
18027           mv -f "$cache_file"$$ "$cache_file" ;; #(
18028         *)
18029           mv -f confcache "$cache_file" ;;
18030         esac
18031       fi
18032     fi
18033   else
18034     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18036   fi
18037 fi
18038 rm -f confcache
18039
18040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18041 # Let make expand exec_prefix.
18042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18043
18044 DEFS=-DHAVE_CONFIG_H
18045
18046 ac_libobjs=
18047 ac_ltlibobjs=
18048 U=
18049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18050   # 1. Remove the extension, and $U if already installed.
18051   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18052   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18053   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18054   #    will be set to the directory where LIBOBJS objects are built.
18055   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18056   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18057 done
18058 LIBOBJS=$ac_libobjs
18059
18060 LTLIBOBJS=$ac_ltlibobjs
18061
18062
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18064 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18065    if test -n "$am_sleep_pid"; then
18066      # Hide warnings about reused PIDs.
18067      wait $am_sleep_pid 2>/dev/null
18068    fi
18069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18070 $as_echo "done" >&6; }
18071  if test -n "$EXEEXT"; then
18072   am__EXEEXT_TRUE=
18073   am__EXEEXT_FALSE='#'
18074 else
18075   am__EXEEXT_TRUE='#'
18076   am__EXEEXT_FALSE=
18077 fi
18078
18079 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18080   as_fn_error $? "conditional \"AMDEP\" was never defined.
18081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18082 fi
18083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18084   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18086 fi
18087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18088   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18090 fi
18091 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18092   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18094 fi
18095 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18096   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18098 fi
18099 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18100   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18102 fi
18103 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
18104   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
18105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18106 fi
18107 if test -z "${USE_SYSTEM_GLOB_TRUE}" && test -z "${USE_SYSTEM_GLOB_FALSE}"; then
18108   as_fn_error $? "conditional \"USE_SYSTEM_GLOB\" was never defined.
18109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18110 fi
18111 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
18112   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
18113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18114 fi
18115 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18116   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
18117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18118 fi
18119 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
18120   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
18121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18122 fi
18123 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18124   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
18125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18126 fi
18127
18128     gl_libobjs=
18129     gl_ltlibobjs=
18130     if test -n "$gl_LIBOBJS"; then
18131       # Remove the extension.
18132       sed_drop_objext='s/\.o$//;s/\.obj$//'
18133       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18134         gl_libobjs="$gl_libobjs $i.$ac_objext"
18135         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18136       done
18137     fi
18138     gl_LIBOBJS=$gl_libobjs
18139
18140     gl_LTLIBOBJS=$gl_ltlibobjs
18141
18142
18143
18144     gltests_libobjs=
18145     gltests_ltlibobjs=
18146     if test -n "$gltests_LIBOBJS"; then
18147       # Remove the extension.
18148       sed_drop_objext='s/\.o$//;s/\.obj$//'
18149       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18150         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18151         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18152       done
18153     fi
18154     gltests_LIBOBJS=$gltests_libobjs
18155
18156     gltests_LTLIBOBJS=$gltests_ltlibobjs
18157
18158
18159
18160 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
18161   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
18162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18163 fi
18164 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
18165   as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
18166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18167 fi
18168 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
18169   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
18170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18171 fi
18172 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
18173   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
18174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18175 fi
18176
18177 : "${CONFIG_STATUS=./config.status}"
18178 ac_write_fail=0
18179 ac_clean_files_save=$ac_clean_files
18180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18183 as_write_fail=0
18184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18185 #! $SHELL
18186 # Generated by $as_me.
18187 # Run this file to recreate the current configuration.
18188 # Compiler output produced by configure, useful for debugging
18189 # configure, is in config.log if it exists.
18190
18191 debug=false
18192 ac_cs_recheck=false
18193 ac_cs_silent=false
18194
18195 SHELL=\${CONFIG_SHELL-$SHELL}
18196 export SHELL
18197 _ASEOF
18198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18199 ## -------------------- ##
18200 ## M4sh Initialization. ##
18201 ## -------------------- ##
18202
18203 # Be more Bourne compatible
18204 DUALCASE=1; export DUALCASE # for MKS sh
18205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18206   emulate sh
18207   NULLCMD=:
18208   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18209   # is contrary to our usage.  Disable this feature.
18210   alias -g '${1+"$@"}'='"$@"'
18211   setopt NO_GLOB_SUBST
18212 else
18213   case `(set -o) 2>/dev/null` in #(
18214   *posix*) :
18215     set -o posix ;; #(
18216   *) :
18217      ;;
18218 esac
18219 fi
18220
18221
18222 as_nl='
18223 '
18224 export as_nl
18225 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18226 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18229 # Prefer a ksh shell builtin over an external printf program on Solaris,
18230 # but without wasting forks for bash or zsh.
18231 if test -z "$BASH_VERSION$ZSH_VERSION" \
18232     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18233   as_echo='print -r --'
18234   as_echo_n='print -rn --'
18235 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18236   as_echo='printf %s\n'
18237   as_echo_n='printf %s'
18238 else
18239   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18240     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18241     as_echo_n='/usr/ucb/echo -n'
18242   else
18243     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18244     as_echo_n_body='eval
18245       arg=$1;
18246       case $arg in #(
18247       *"$as_nl"*)
18248         expr "X$arg" : "X\\(.*\\)$as_nl";
18249         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18250       esac;
18251       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18252     '
18253     export as_echo_n_body
18254     as_echo_n='sh -c $as_echo_n_body as_echo'
18255   fi
18256   export as_echo_body
18257   as_echo='sh -c $as_echo_body as_echo'
18258 fi
18259
18260 # The user is always right.
18261 if test "${PATH_SEPARATOR+set}" != set; then
18262   PATH_SEPARATOR=:
18263   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18264     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18265       PATH_SEPARATOR=';'
18266   }
18267 fi
18268
18269
18270 # IFS
18271 # We need space, tab and new line, in precisely that order.  Quoting is
18272 # there to prevent editors from complaining about space-tab.
18273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18274 # splitting by setting IFS to empty value.)
18275 IFS=" ""        $as_nl"
18276
18277 # Find who we are.  Look in the path if we contain no directory separator.
18278 as_myself=
18279 case $0 in #((
18280   *[\\/]* ) as_myself=$0 ;;
18281   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18282 for as_dir in $PATH
18283 do
18284   IFS=$as_save_IFS
18285   test -z "$as_dir" && as_dir=.
18286     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18287   done
18288 IFS=$as_save_IFS
18289
18290      ;;
18291 esac
18292 # We did not find ourselves, most probably we were run as `sh COMMAND'
18293 # in which case we are not to be found in the path.
18294 if test "x$as_myself" = x; then
18295   as_myself=$0
18296 fi
18297 if test ! -f "$as_myself"; then
18298   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18299   exit 1
18300 fi
18301
18302 # Unset variables that we do not need and which cause bugs (e.g. in
18303 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18304 # suppresses any "Segmentation fault" message there.  '((' could
18305 # trigger a bug in pdksh 5.2.14.
18306 for as_var in BASH_ENV ENV MAIL MAILPATH
18307 do eval test x\${$as_var+set} = xset \
18308   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18309 done
18310 PS1='$ '
18311 PS2='> '
18312 PS4='+ '
18313
18314 # NLS nuisances.
18315 LC_ALL=C
18316 export LC_ALL
18317 LANGUAGE=C
18318 export LANGUAGE
18319
18320 # CDPATH.
18321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18322
18323
18324 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18325 # ----------------------------------------
18326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18328 # script with STATUS, using 1 if that was 0.
18329 as_fn_error ()
18330 {
18331   as_status=$1; test $as_status -eq 0 && as_status=1
18332   if test "$4"; then
18333     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18334     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18335   fi
18336   $as_echo "$as_me: error: $2" >&2
18337   as_fn_exit $as_status
18338 } # as_fn_error
18339
18340
18341 # as_fn_set_status STATUS
18342 # -----------------------
18343 # Set $? to STATUS, without forking.
18344 as_fn_set_status ()
18345 {
18346   return $1
18347 } # as_fn_set_status
18348
18349 # as_fn_exit STATUS
18350 # -----------------
18351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18352 as_fn_exit ()
18353 {
18354   set +e
18355   as_fn_set_status $1
18356   exit $1
18357 } # as_fn_exit
18358
18359 # as_fn_unset VAR
18360 # ---------------
18361 # Portably unset VAR.
18362 as_fn_unset ()
18363 {
18364   { eval $1=; unset $1;}
18365 }
18366 as_unset=as_fn_unset
18367 # as_fn_append VAR VALUE
18368 # ----------------------
18369 # Append the text in VALUE to the end of the definition contained in VAR. Take
18370 # advantage of any shell optimizations that allow amortized linear growth over
18371 # repeated appends, instead of the typical quadratic growth present in naive
18372 # implementations.
18373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18374   eval 'as_fn_append ()
18375   {
18376     eval $1+=\$2
18377   }'
18378 else
18379   as_fn_append ()
18380   {
18381     eval $1=\$$1\$2
18382   }
18383 fi # as_fn_append
18384
18385 # as_fn_arith ARG...
18386 # ------------------
18387 # Perform arithmetic evaluation on the ARGs, and store the result in the
18388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18389 # must be portable across $(()) and expr.
18390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18391   eval 'as_fn_arith ()
18392   {
18393     as_val=$(( $* ))
18394   }'
18395 else
18396   as_fn_arith ()
18397   {
18398     as_val=`expr "$@" || test $? -eq 1`
18399   }
18400 fi # as_fn_arith
18401
18402
18403 if expr a : '\(a\)' >/dev/null 2>&1 &&
18404    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18405   as_expr=expr
18406 else
18407   as_expr=false
18408 fi
18409
18410 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18411   as_basename=basename
18412 else
18413   as_basename=false
18414 fi
18415
18416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18417   as_dirname=dirname
18418 else
18419   as_dirname=false
18420 fi
18421
18422 as_me=`$as_basename -- "$0" ||
18423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18424          X"$0" : 'X\(//\)$' \| \
18425          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18426 $as_echo X/"$0" |
18427     sed '/^.*\/\([^/][^/]*\)\/*$/{
18428             s//\1/
18429             q
18430           }
18431           /^X\/\(\/\/\)$/{
18432             s//\1/
18433             q
18434           }
18435           /^X\/\(\/\).*/{
18436             s//\1/
18437             q
18438           }
18439           s/.*/./; q'`
18440
18441 # Avoid depending upon Character Ranges.
18442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18445 as_cr_digits='0123456789'
18446 as_cr_alnum=$as_cr_Letters$as_cr_digits
18447
18448 ECHO_C= ECHO_N= ECHO_T=
18449 case `echo -n x` in #(((((
18450 -n*)
18451   case `echo 'xy\c'` in
18452   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18453   xy)  ECHO_C='\c';;
18454   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18455        ECHO_T=' ';;
18456   esac;;
18457 *)
18458   ECHO_N='-n';;
18459 esac
18460
18461 rm -f conf$$ conf$$.exe conf$$.file
18462 if test -d conf$$.dir; then
18463   rm -f conf$$.dir/conf$$.file
18464 else
18465   rm -f conf$$.dir
18466   mkdir conf$$.dir 2>/dev/null
18467 fi
18468 if (echo >conf$$.file) 2>/dev/null; then
18469   if ln -s conf$$.file conf$$ 2>/dev/null; then
18470     as_ln_s='ln -s'
18471     # ... but there are two gotchas:
18472     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18473     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18474     # In both cases, we have to default to `cp -pR'.
18475     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18476       as_ln_s='cp -pR'
18477   elif ln conf$$.file conf$$ 2>/dev/null; then
18478     as_ln_s=ln
18479   else
18480     as_ln_s='cp -pR'
18481   fi
18482 else
18483   as_ln_s='cp -pR'
18484 fi
18485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18486 rmdir conf$$.dir 2>/dev/null
18487
18488
18489 # as_fn_mkdir_p
18490 # -------------
18491 # Create "$as_dir" as a directory, including parents if necessary.
18492 as_fn_mkdir_p ()
18493 {
18494
18495   case $as_dir in #(
18496   -*) as_dir=./$as_dir;;
18497   esac
18498   test -d "$as_dir" || eval $as_mkdir_p || {
18499     as_dirs=
18500     while :; do
18501       case $as_dir in #(
18502       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18503       *) as_qdir=$as_dir;;
18504       esac
18505       as_dirs="'$as_qdir' $as_dirs"
18506       as_dir=`$as_dirname -- "$as_dir" ||
18507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18508          X"$as_dir" : 'X\(//\)[^/]' \| \
18509          X"$as_dir" : 'X\(//\)$' \| \
18510          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18511 $as_echo X"$as_dir" |
18512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18513             s//\1/
18514             q
18515           }
18516           /^X\(\/\/\)[^/].*/{
18517             s//\1/
18518             q
18519           }
18520           /^X\(\/\/\)$/{
18521             s//\1/
18522             q
18523           }
18524           /^X\(\/\).*/{
18525             s//\1/
18526             q
18527           }
18528           s/.*/./; q'`
18529       test -d "$as_dir" && break
18530     done
18531     test -z "$as_dirs" || eval "mkdir $as_dirs"
18532   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18533
18534
18535 } # as_fn_mkdir_p
18536 if mkdir -p . 2>/dev/null; then
18537   as_mkdir_p='mkdir -p "$as_dir"'
18538 else
18539   test -d ./-p && rmdir ./-p
18540   as_mkdir_p=false
18541 fi
18542
18543
18544 # as_fn_executable_p FILE
18545 # -----------------------
18546 # Test if FILE is an executable regular file.
18547 as_fn_executable_p ()
18548 {
18549   test -f "$1" && test -x "$1"
18550 } # as_fn_executable_p
18551 as_test_x='test -x'
18552 as_executable_p=as_fn_executable_p
18553
18554 # Sed expression to map a string onto a valid CPP name.
18555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18556
18557 # Sed expression to map a string onto a valid variable name.
18558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18559
18560
18561 exec 6>&1
18562 ## ----------------------------------- ##
18563 ## Main body of $CONFIG_STATUS script. ##
18564 ## ----------------------------------- ##
18565 _ASEOF
18566 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18567
18568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18569 # Save the log message, to keep $0 and so on meaningful, and to
18570 # report actual input values of CONFIG_FILES etc. instead of their
18571 # values after options handling.
18572 ac_log="
18573 This file was extended by GNU make $as_me 4.3, which was
18574 generated by GNU Autoconf 2.69.  Invocation command line was
18575
18576   CONFIG_FILES    = $CONFIG_FILES
18577   CONFIG_HEADERS  = $CONFIG_HEADERS
18578   CONFIG_LINKS    = $CONFIG_LINKS
18579   CONFIG_COMMANDS = $CONFIG_COMMANDS
18580   $ $0 $@
18581
18582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18583 "
18584
18585 _ACEOF
18586
18587 case $ac_config_files in *"
18588 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18589 esac
18590
18591 case $ac_config_headers in *"
18592 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18593 esac
18594
18595
18596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597 # Files that config.status was made for.
18598 config_files="$ac_config_files"
18599 config_headers="$ac_config_headers"
18600 config_commands="$ac_config_commands"
18601
18602 _ACEOF
18603
18604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18605 ac_cs_usage="\
18606 \`$as_me' instantiates files and other configuration actions
18607 from templates according to the current configuration.  Unless the files
18608 and actions are specified as TAGs, all are instantiated by default.
18609
18610 Usage: $0 [OPTION]... [TAG]...
18611
18612   -h, --help       print this help, then exit
18613   -V, --version    print version number and configuration settings, then exit
18614       --config     print configuration, then exit
18615   -q, --quiet, --silent
18616                    do not print progress messages
18617   -d, --debug      don't remove temporary files
18618       --recheck    update $as_me by reconfiguring in the same conditions
18619       --file=FILE[:TEMPLATE]
18620                    instantiate the configuration file FILE
18621       --header=FILE[:TEMPLATE]
18622                    instantiate the configuration header FILE
18623
18624 Configuration files:
18625 $config_files
18626
18627 Configuration headers:
18628 $config_headers
18629
18630 Configuration commands:
18631 $config_commands
18632
18633 Report bugs to <bug-make@gnu.org>.
18634 GNU make home page: <http://www.gnu.org/software/make/>.
18635 General help using GNU software: <http://www.gnu.org/gethelp/>."
18636
18637 _ACEOF
18638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18639 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18640 ac_cs_version="\\
18641 GNU make config.status 4.3
18642 configured by $0, generated by GNU Autoconf 2.69,
18643   with options \\"\$ac_cs_config\\"
18644
18645 Copyright (C) 2012 Free Software Foundation, Inc.
18646 This config.status script is free software; the Free Software Foundation
18647 gives unlimited permission to copy, distribute and modify it."
18648
18649 ac_pwd='$ac_pwd'
18650 srcdir='$srcdir'
18651 INSTALL='$INSTALL'
18652 MKDIR_P='$MKDIR_P'
18653 AWK='$AWK'
18654 test -n "\$AWK" || AWK=awk
18655 _ACEOF
18656
18657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18658 # The default lists apply if the user does not specify any file.
18659 ac_need_defaults=:
18660 while test $# != 0
18661 do
18662   case $1 in
18663   --*=?*)
18664     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18665     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18666     ac_shift=:
18667     ;;
18668   --*=)
18669     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18670     ac_optarg=
18671     ac_shift=:
18672     ;;
18673   *)
18674     ac_option=$1
18675     ac_optarg=$2
18676     ac_shift=shift
18677     ;;
18678   esac
18679
18680   case $ac_option in
18681   # Handling of the options.
18682   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18683     ac_cs_recheck=: ;;
18684   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18685     $as_echo "$ac_cs_version"; exit ;;
18686   --config | --confi | --conf | --con | --co | --c )
18687     $as_echo "$ac_cs_config"; exit ;;
18688   --debug | --debu | --deb | --de | --d | -d )
18689     debug=: ;;
18690   --file | --fil | --fi | --f )
18691     $ac_shift
18692     case $ac_optarg in
18693     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18694     '') as_fn_error $? "missing file argument" ;;
18695     esac
18696     as_fn_append CONFIG_FILES " '$ac_optarg'"
18697     ac_need_defaults=false;;
18698   --header | --heade | --head | --hea )
18699     $ac_shift
18700     case $ac_optarg in
18701     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18702     esac
18703     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18704     ac_need_defaults=false;;
18705   --he | --h)
18706     # Conflict between --help and --header
18707     as_fn_error $? "ambiguous option: \`$1'
18708 Try \`$0 --help' for more information.";;
18709   --help | --hel | -h )
18710     $as_echo "$ac_cs_usage"; exit ;;
18711   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18712   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18713     ac_cs_silent=: ;;
18714
18715   # This is an error.
18716   -*) as_fn_error $? "unrecognized option: \`$1'
18717 Try \`$0 --help' for more information." ;;
18718
18719   *) as_fn_append ac_config_targets " $1"
18720      ac_need_defaults=false ;;
18721
18722   esac
18723   shift
18724 done
18725
18726 ac_configure_extra_args=
18727
18728 if $ac_cs_silent; then
18729   exec 6>/dev/null
18730   ac_configure_extra_args="$ac_configure_extra_args --silent"
18731 fi
18732
18733 _ACEOF
18734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18735 if \$ac_cs_recheck; then
18736   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18737   shift
18738   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18739   CONFIG_SHELL='$SHELL'
18740   export CONFIG_SHELL
18741   exec "\$@"
18742 fi
18743
18744 _ACEOF
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746 exec 5>>config.log
18747 {
18748   echo
18749   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18750 ## Running $as_me. ##
18751 _ASBOX
18752   $as_echo "$ac_log"
18753 } >&5
18754
18755 _ACEOF
18756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18757 #
18758 # INIT-COMMANDS
18759 #
18760 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18761 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18762     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18763     # from automake < 1.5.
18764     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18765     # Capture the value of LINGUAS because we need it to compute CATALOGS.
18766     LINGUAS="${LINGUAS-%UNSET%}"
18767
18768
18769 _ACEOF
18770
18771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18772
18773 # Handling of arguments.
18774 for ac_config_target in $ac_config_targets
18775 do
18776   case $ac_config_target in
18777     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18778     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18779     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18780     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18781     "build.cfg") CONFIG_FILES="$CONFIG_FILES build.cfg" ;;
18782     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18783     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18784     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18785     "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
18786
18787   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18788   esac
18789 done
18790
18791
18792 # If the user did not use the arguments to specify the items to instantiate,
18793 # then the envvar interface is used.  Set only those that are not.
18794 # We use the long form for the default assignment because of an extremely
18795 # bizarre bug on SunOS 4.1.3.
18796 if $ac_need_defaults; then
18797   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18798   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18799   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18800 fi
18801
18802 # Have a temporary directory for convenience.  Make it in the build tree
18803 # simply because there is no reason against having it here, and in addition,
18804 # creating and moving files from /tmp can sometimes cause problems.
18805 # Hook for its removal unless debugging.
18806 # Note that there is a small window in which the directory will not be cleaned:
18807 # after its creation but before its name has been assigned to `$tmp'.
18808 $debug ||
18809 {
18810   tmp= ac_tmp=
18811   trap 'exit_status=$?
18812   : "${ac_tmp:=$tmp}"
18813   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18814 ' 0
18815   trap 'as_fn_exit 1' 1 2 13 15
18816 }
18817 # Create a (secure) tmp directory for tmp files.
18818
18819 {
18820   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18821   test -d "$tmp"
18822 }  ||
18823 {
18824   tmp=./conf$$-$RANDOM
18825   (umask 077 && mkdir "$tmp")
18826 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18827 ac_tmp=$tmp
18828
18829 # Set up the scripts for CONFIG_FILES section.
18830 # No need to generate them if there are no CONFIG_FILES.
18831 # This happens for instance with `./config.status config.h'.
18832 if test -n "$CONFIG_FILES"; then
18833
18834 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18835   ac_cs_awk_getline=:
18836   ac_cs_awk_pipe_init=
18837   ac_cs_awk_read_file='
18838       while ((getline aline < (F[key])) > 0)
18839         print(aline)
18840       close(F[key])'
18841   ac_cs_awk_pipe_fini=
18842 else
18843   ac_cs_awk_getline=false
18844   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18845   ac_cs_awk_read_file='
18846       print "|#_!!_#|"
18847       print "cat " F[key] " &&"
18848       '$ac_cs_awk_pipe_init
18849   # The final `:' finishes the AND list.
18850   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18851 fi
18852 ac_cr=`echo X | tr X '\015'`
18853 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18854 # But we know of no other shell where ac_cr would be empty at this
18855 # point, so we can use a bashism as a fallback.
18856 if test "x$ac_cr" = x; then
18857   eval ac_cr=\$\'\\r\'
18858 fi
18859 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18860 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18861   ac_cs_awk_cr='\\r'
18862 else
18863   ac_cs_awk_cr=$ac_cr
18864 fi
18865
18866 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18867 _ACEOF
18868
18869 # Create commands to substitute file output variables.
18870 {
18871   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18872   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18873   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18874   echo "_ACAWK" &&
18875   echo "_ACEOF"
18876 } >conf$$files.sh &&
18877 . ./conf$$files.sh ||
18878   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18879 rm -f conf$$files.sh
18880
18881 {
18882   echo "cat >conf$$subs.awk <<_ACEOF" &&
18883   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18884   echo "_ACEOF"
18885 } >conf$$subs.sh ||
18886   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18887 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18888 ac_delim='%!_!# '
18889 for ac_last_try in false false false false false :; do
18890   . ./conf$$subs.sh ||
18891     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18892
18893   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18894   if test $ac_delim_n = $ac_delim_num; then
18895     break
18896   elif $ac_last_try; then
18897     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18898   else
18899     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18900   fi
18901 done
18902 rm -f conf$$subs.sh
18903
18904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18905 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18906 _ACEOF
18907 sed -n '
18908 h
18909 s/^/S["/; s/!.*/"]=/
18910 p
18911 g
18912 s/^[^!]*!//
18913 :repl
18914 t repl
18915 s/'"$ac_delim"'$//
18916 t delim
18917 :nl
18918 h
18919 s/\(.\{148\}\)..*/\1/
18920 t more1
18921 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18922 p
18923 n
18924 b repl
18925 :more1
18926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18927 p
18928 g
18929 s/.\{148\}//
18930 t nl
18931 :delim
18932 h
18933 s/\(.\{148\}\)..*/\1/
18934 t more2
18935 s/["\\]/\\&/g; s/^/"/; s/$/"/
18936 p
18937 b
18938 :more2
18939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18940 p
18941 g
18942 s/.\{148\}//
18943 t delim
18944 ' <conf$$subs.awk | sed '
18945 /^[^""]/{
18946   N
18947   s/\n//
18948 }
18949 ' >>$CONFIG_STATUS || ac_write_fail=1
18950 rm -f conf$$subs.awk
18951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18952 _ACAWK
18953 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18954   for (key in S) S_is_set[key] = 1
18955   FS = "\a"
18956   \$ac_cs_awk_pipe_init
18957 }
18958 {
18959   line = $ 0
18960   nfields = split(line, field, "@")
18961   substed = 0
18962   len = length(field[1])
18963   for (i = 2; i < nfields; i++) {
18964     key = field[i]
18965     keylen = length(key)
18966     if (S_is_set[key]) {
18967       value = S[key]
18968       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18969       len += length(value) + length(field[++i])
18970       substed = 1
18971     } else
18972       len += 1 + keylen
18973   }
18974   if (nfields == 3 && !substed) {
18975     key = field[2]
18976     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18977       \$ac_cs_awk_read_file
18978       next
18979     }
18980   }
18981   print line
18982 }
18983 \$ac_cs_awk_pipe_fini
18984 _ACAWK
18985 _ACEOF
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18988   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18989 else
18990   cat
18991 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18992   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18993 _ACEOF
18994
18995 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18996 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18997 # trailing colons and then remove the whole line if VPATH becomes empty
18998 # (actually we leave an empty line to preserve line numbers).
18999 if test "x$srcdir" = x.; then
19000   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19001 h
19002 s///
19003 s/^/:/
19004 s/[      ]*$/:/
19005 s/:\$(srcdir):/:/g
19006 s/:\${srcdir}:/:/g
19007 s/:@srcdir@:/:/g
19008 s/^:*//
19009 s/:*$//
19010 x
19011 s/\(=[   ]*\).*/\1/
19012 G
19013 s/\n//
19014 s/^[^=]*=[       ]*$//
19015 }'
19016 fi
19017
19018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19019 fi # test -n "$CONFIG_FILES"
19020
19021 # Set up the scripts for CONFIG_HEADERS section.
19022 # No need to generate them if there are no CONFIG_HEADERS.
19023 # This happens for instance with `./config.status Makefile'.
19024 if test -n "$CONFIG_HEADERS"; then
19025 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19026 BEGIN {
19027 _ACEOF
19028
19029 # Transform confdefs.h into an awk script `defines.awk', embedded as
19030 # here-document in config.status, that substitutes the proper values into
19031 # config.h.in to produce config.h.
19032
19033 # Create a delimiter string that does not exist in confdefs.h, to ease
19034 # handling of long lines.
19035 ac_delim='%!_!# '
19036 for ac_last_try in false false :; do
19037   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19038   if test -z "$ac_tt"; then
19039     break
19040   elif $ac_last_try; then
19041     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19042   else
19043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19044   fi
19045 done
19046
19047 # For the awk script, D is an array of macro values keyed by name,
19048 # likewise P contains macro parameters if any.  Preserve backslash
19049 # newline sequences.
19050
19051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19052 sed -n '
19053 s/.\{148\}/&'"$ac_delim"'/g
19054 t rset
19055 :rset
19056 s/^[     ]*#[    ]*define[       ][      ]*/ /
19057 t def
19058 d
19059 :def
19060 s/\\$//
19061 t bsnl
19062 s/["\\]/\\&/g
19063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19064 D["\1"]=" \3"/p
19065 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19066 d
19067 :bsnl
19068 s/["\\]/\\&/g
19069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19070 D["\1"]=" \3\\\\\\n"\\/p
19071 t cont
19072 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19073 t cont
19074 d
19075 :cont
19076 n
19077 s/.\{148\}/&'"$ac_delim"'/g
19078 t clear
19079 :clear
19080 s/\\$//
19081 t bsnlc
19082 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19083 d
19084 :bsnlc
19085 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19086 b cont
19087 ' <confdefs.h | sed '
19088 s/'"$ac_delim"'/"\\\
19089 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19090
19091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19092   for (key in D) D_is_set[key] = 1
19093   FS = "\a"
19094 }
19095 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19096   line = \$ 0
19097   split(line, arg, " ")
19098   if (arg[1] == "#") {
19099     defundef = arg[2]
19100     mac1 = arg[3]
19101   } else {
19102     defundef = substr(arg[1], 2)
19103     mac1 = arg[2]
19104   }
19105   split(mac1, mac2, "(") #)
19106   macro = mac2[1]
19107   prefix = substr(line, 1, index(line, defundef) - 1)
19108   if (D_is_set[macro]) {
19109     # Preserve the white space surrounding the "#".
19110     print prefix "define", macro P[macro] D[macro]
19111     next
19112   } else {
19113     # Replace #undef with comments.  This is necessary, for example,
19114     # in the case of _POSIX_SOURCE, which is predefined and required
19115     # on some systems where configure will not decide to define it.
19116     if (defundef == "undef") {
19117       print "/*", prefix defundef, macro, "*/"
19118       next
19119     }
19120   }
19121 }
19122 { print }
19123 _ACAWK
19124 _ACEOF
19125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19126   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19127 fi # test -n "$CONFIG_HEADERS"
19128
19129
19130 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19131 shift
19132 for ac_tag
19133 do
19134   case $ac_tag in
19135   :[FHLC]) ac_mode=$ac_tag; continue;;
19136   esac
19137   case $ac_mode$ac_tag in
19138   :[FHL]*:*);;
19139   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19140   :[FH]-) ac_tag=-:-;;
19141   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19142   esac
19143   ac_save_IFS=$IFS
19144   IFS=:
19145   set x $ac_tag
19146   IFS=$ac_save_IFS
19147   shift
19148   ac_file=$1
19149   shift
19150
19151   case $ac_mode in
19152   :L) ac_source=$1;;
19153   :[FH])
19154     ac_file_inputs=
19155     for ac_f
19156     do
19157       case $ac_f in
19158       -) ac_f="$ac_tmp/stdin";;
19159       *) # Look for the file first in the build tree, then in the source tree
19160          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19161          # because $ac_f cannot contain `:'.
19162          test -f "$ac_f" ||
19163            case $ac_f in
19164            [\\/$]*) false;;
19165            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19166            esac ||
19167            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19168       esac
19169       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19170       as_fn_append ac_file_inputs " '$ac_f'"
19171     done
19172
19173     # Let's still pretend it is `configure' which instantiates (i.e., don't
19174     # use $as_me), people would be surprised to read:
19175     #    /* config.h.  Generated by config.status.  */
19176     configure_input='Generated from '`
19177           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19178         `' by configure.'
19179     if test x"$ac_file" != x-; then
19180       configure_input="$ac_file.  $configure_input"
19181       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19182 $as_echo "$as_me: creating $ac_file" >&6;}
19183     fi
19184     # Neutralize special characters interpreted by sed in replacement strings.
19185     case $configure_input in #(
19186     *\&* | *\|* | *\\* )
19187        ac_sed_conf_input=`$as_echo "$configure_input" |
19188        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19189     *) ac_sed_conf_input=$configure_input;;
19190     esac
19191
19192     case $ac_tag in
19193     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19194       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19195     esac
19196     ;;
19197   esac
19198
19199   ac_dir=`$as_dirname -- "$ac_file" ||
19200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19201          X"$ac_file" : 'X\(//\)[^/]' \| \
19202          X"$ac_file" : 'X\(//\)$' \| \
19203          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19204 $as_echo X"$ac_file" |
19205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19206             s//\1/
19207             q
19208           }
19209           /^X\(\/\/\)[^/].*/{
19210             s//\1/
19211             q
19212           }
19213           /^X\(\/\/\)$/{
19214             s//\1/
19215             q
19216           }
19217           /^X\(\/\).*/{
19218             s//\1/
19219             q
19220           }
19221           s/.*/./; q'`
19222   as_dir="$ac_dir"; as_fn_mkdir_p
19223   ac_builddir=.
19224
19225 case "$ac_dir" in
19226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19227 *)
19228   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19229   # A ".." for each directory in $ac_dir_suffix.
19230   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19231   case $ac_top_builddir_sub in
19232   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19233   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19234   esac ;;
19235 esac
19236 ac_abs_top_builddir=$ac_pwd
19237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19238 # for backward compatibility:
19239 ac_top_builddir=$ac_top_build_prefix
19240
19241 case $srcdir in
19242   .)  # We are building in place.
19243     ac_srcdir=.
19244     ac_top_srcdir=$ac_top_builddir_sub
19245     ac_abs_top_srcdir=$ac_pwd ;;
19246   [\\/]* | ?:[\\/]* )  # Absolute name.
19247     ac_srcdir=$srcdir$ac_dir_suffix;
19248     ac_top_srcdir=$srcdir
19249     ac_abs_top_srcdir=$srcdir ;;
19250   *) # Relative name.
19251     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19252     ac_top_srcdir=$ac_top_build_prefix$srcdir
19253     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19254 esac
19255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19256
19257
19258   case $ac_mode in
19259   :F)
19260   #
19261   # CONFIG_FILE
19262   #
19263
19264   case $INSTALL in
19265   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19266   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19267   esac
19268   ac_MKDIR_P=$MKDIR_P
19269   case $MKDIR_P in
19270   [\\/$]* | ?:[\\/]* ) ;;
19271   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19272   esac
19273 _ACEOF
19274
19275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276 # If the template does not know about datarootdir, expand it.
19277 # FIXME: This hack should be removed a few years after 2.60.
19278 ac_datarootdir_hack=; ac_datarootdir_seen=
19279 ac_sed_dataroot='
19280 /datarootdir/ {
19281   p
19282   q
19283 }
19284 /@datadir@/p
19285 /@docdir@/p
19286 /@infodir@/p
19287 /@localedir@/p
19288 /@mandir@/p'
19289 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19290 *datarootdir*) ac_datarootdir_seen=yes;;
19291 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19292   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19293 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19294 _ACEOF
19295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19296   ac_datarootdir_hack='
19297   s&@datadir@&$datadir&g
19298   s&@docdir@&$docdir&g
19299   s&@infodir@&$infodir&g
19300   s&@localedir@&$localedir&g
19301   s&@mandir@&$mandir&g
19302   s&\\\${datarootdir}&$datarootdir&g' ;;
19303 esac
19304 _ACEOF
19305
19306 # Neutralize VPATH when `$srcdir' = `.'.
19307 # Shell code in configure.ac might set extrasub.
19308 # FIXME: do we really want to maintain this feature?
19309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19310 ac_sed_extra="$ac_vpsub
19311 $extrasub
19312 _ACEOF
19313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19314 :t
19315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19316 s|@configure_input@|$ac_sed_conf_input|;t t
19317 s&@top_builddir@&$ac_top_builddir_sub&;t t
19318 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19319 s&@srcdir@&$ac_srcdir&;t t
19320 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19321 s&@top_srcdir@&$ac_top_srcdir&;t t
19322 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19323 s&@builddir@&$ac_builddir&;t t
19324 s&@abs_builddir@&$ac_abs_builddir&;t t
19325 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19326 s&@INSTALL@&$ac_INSTALL&;t t
19327 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19328 $ac_datarootdir_hack
19329 "
19330 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19331 if $ac_cs_awk_getline; then
19332   $AWK -f "$ac_tmp/subs.awk"
19333 else
19334   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19335 fi \
19336   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19337
19338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19339   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19340   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19341       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19342   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19343 which seems to be undefined.  Please make sure it is defined" >&5
19344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19345 which seems to be undefined.  Please make sure it is defined" >&2;}
19346
19347   rm -f "$ac_tmp/stdin"
19348   case $ac_file in
19349   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19350   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19351   esac \
19352   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19353  ;;
19354   :H)
19355   #
19356   # CONFIG_HEADER
19357   #
19358   if test x"$ac_file" != x-; then
19359     {
19360       $as_echo "/* $configure_input  */" \
19361       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19362     } >"$ac_tmp/config.h" \
19363       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19364     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19365       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19367     else
19368       rm -f "$ac_file"
19369       mv "$ac_tmp/config.h" "$ac_file" \
19370         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19371     fi
19372   else
19373     $as_echo "/* $configure_input  */" \
19374       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19375       || as_fn_error $? "could not create -" "$LINENO" 5
19376   fi
19377 # Compute "$ac_file"'s index in $config_headers.
19378 _am_arg="$ac_file"
19379 _am_stamp_count=1
19380 for _am_header in $config_headers :; do
19381   case $_am_header in
19382     $_am_arg | $_am_arg:* )
19383       break ;;
19384     * )
19385       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19386   esac
19387 done
19388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19390          X"$_am_arg" : 'X\(//\)[^/]' \| \
19391          X"$_am_arg" : 'X\(//\)$' \| \
19392          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19393 $as_echo X"$_am_arg" |
19394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19395             s//\1/
19396             q
19397           }
19398           /^X\(\/\/\)[^/].*/{
19399             s//\1/
19400             q
19401           }
19402           /^X\(\/\/\)$/{
19403             s//\1/
19404             q
19405           }
19406           /^X\(\/\).*/{
19407             s//\1/
19408             q
19409           }
19410           s/.*/./; q'`/stamp-h$_am_stamp_count
19411  ;;
19412
19413   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19414 $as_echo "$as_me: executing $ac_file commands" >&6;}
19415  ;;
19416   esac
19417
19418
19419   case $ac_file$ac_mode in
19420     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19421   # Older Autoconf quotes --file arguments for eval, but not when files
19422   # are listed without --file.  Let's play safe and only enable the eval
19423   # if we detect the quoting.
19424   # TODO: see whether this extra hack can be removed once we start
19425   # requiring Autoconf 2.70 or later.
19426   case $CONFIG_FILES in #(
19427   *\'*) :
19428     eval set x "$CONFIG_FILES" ;; #(
19429   *) :
19430     set x $CONFIG_FILES ;; #(
19431   *) :
19432      ;;
19433 esac
19434   shift
19435   # Used to flag and report bootstrapping failures.
19436   am_rc=0
19437   for am_mf
19438   do
19439     # Strip MF so we end up with the name of the file.
19440     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19441     # Check whether this is an Automake generated Makefile which includes
19442     # dependency-tracking related rules and includes.
19443     # Grep'ing the whole file directly is not great: AIX grep has a line
19444     # limit of 2048, but all sed's we know have understand at least 4000.
19445     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19446       || continue
19447     am_dirpart=`$as_dirname -- "$am_mf" ||
19448 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19449          X"$am_mf" : 'X\(//\)[^/]' \| \
19450          X"$am_mf" : 'X\(//\)$' \| \
19451          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19452 $as_echo X"$am_mf" |
19453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19454             s//\1/
19455             q
19456           }
19457           /^X\(\/\/\)[^/].*/{
19458             s//\1/
19459             q
19460           }
19461           /^X\(\/\/\)$/{
19462             s//\1/
19463             q
19464           }
19465           /^X\(\/\).*/{
19466             s//\1/
19467             q
19468           }
19469           s/.*/./; q'`
19470     am_filepart=`$as_basename -- "$am_mf" ||
19471 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19472          X"$am_mf" : 'X\(//\)$' \| \
19473          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19474 $as_echo X/"$am_mf" |
19475     sed '/^.*\/\([^/][^/]*\)\/*$/{
19476             s//\1/
19477             q
19478           }
19479           /^X\/\(\/\/\)$/{
19480             s//\1/
19481             q
19482           }
19483           /^X\/\(\/\).*/{
19484             s//\1/
19485             q
19486           }
19487           s/.*/./; q'`
19488     { echo "$as_me:$LINENO: cd "$am_dirpart" \
19489       && sed -e '/# am--include-marker/d' "$am_filepart" \
19490         | $MAKE -f - am--depfiles" >&5
19491    (cd "$am_dirpart" \
19492       && sed -e '/# am--include-marker/d' "$am_filepart" \
19493         | $MAKE -f - am--depfiles) >&5 2>&5
19494    ac_status=$?
19495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496    (exit $ac_status); } || am_rc=$?
19497   done
19498   if test $am_rc -ne 0; then
19499     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19501 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19502     for automatic dependency tracking.  Try re-running configure with the
19503     '--disable-dependency-tracking' option to at least be able to build
19504     the package (albeit without support for automatic dependency tracking).
19505 See \`config.log' for more details" "$LINENO" 5; }
19506   fi
19507   { am_dirpart=; unset am_dirpart;}
19508   { am_filepart=; unset am_filepart;}
19509   { am_mf=; unset am_mf;}
19510   { am_rc=; unset am_rc;}
19511   rm -f conftest-deps.mk
19512 }
19513  ;;
19514     "po-directories":C)
19515     for ac_file in $CONFIG_FILES; do
19516       # Support "outfile[:infile[:infile...]]"
19517       case "$ac_file" in
19518         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19519       esac
19520       # PO directories have a Makefile.in generated from Makefile.in.in.
19521       case "$ac_file" in */Makefile.in)
19522         # Adjust a relative srcdir.
19523         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19524         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19525         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19526         # In autoconf-2.13 it is called $ac_given_srcdir.
19527         # In autoconf-2.50 it is called $srcdir.
19528         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19529         case "$ac_given_srcdir" in
19530           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19531           /*) top_srcdir="$ac_given_srcdir" ;;
19532           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19533         esac
19534         # Treat a directory as a PO directory if and only if it has a
19535         # POTFILES.in file. This allows packages to have multiple PO
19536         # directories under different names or in different locations.
19537         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19538           rm -f "$ac_dir/POTFILES"
19539           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19540           gt_tab=`printf '\t'`
19541           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"
19542           POMAKEFILEDEPS="POTFILES.in"
19543           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19544           # on $ac_dir but don't depend on user-specified configuration
19545           # parameters.
19546           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19547             # The LINGUAS file contains the set of available languages.
19548             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19549               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19550             fi
19551             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19552             # Hide the ALL_LINGUAS assignment from automake < 1.5.
19553             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19554             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19555           else
19556             # The set of available languages was given in configure.in.
19557             # Hide the ALL_LINGUAS assignment from automake < 1.5.
19558             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19559           fi
19560           # Compute POFILES
19561           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19562           # Compute UPDATEPOFILES
19563           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19564           # Compute DUMMYPOFILES
19565           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19566           # Compute GMOFILES
19567           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19568           case "$ac_given_srcdir" in
19569             .) srcdirpre= ;;
19570             *) srcdirpre='$(srcdir)/' ;;
19571           esac
19572           POFILES=
19573           UPDATEPOFILES=
19574           DUMMYPOFILES=
19575           GMOFILES=
19576           for lang in $ALL_LINGUAS; do
19577             POFILES="$POFILES $srcdirpre$lang.po"
19578             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19579             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19580             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19581           done
19582           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19583           # environment variable.
19584           INST_LINGUAS=
19585           if test -n "$ALL_LINGUAS"; then
19586             for presentlang in $ALL_LINGUAS; do
19587               useit=no
19588               if test "%UNSET%" != "$LINGUAS"; then
19589                 desiredlanguages="$LINGUAS"
19590               else
19591                 desiredlanguages="$ALL_LINGUAS"
19592               fi
19593               for desiredlang in $desiredlanguages; do
19594                 # Use the presentlang catalog if desiredlang is
19595                 #   a. equal to presentlang, or
19596                 #   b. a variant of presentlang (because in this case,
19597                 #      presentlang can be used as a fallback for messages
19598                 #      which are not translated in the desiredlang catalog).
19599                 case "$desiredlang" in
19600                   "$presentlang"*) useit=yes;;
19601                 esac
19602               done
19603               if test $useit = yes; then
19604                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19605               fi
19606             done
19607           fi
19608           CATALOGS=
19609           if test -n "$INST_LINGUAS"; then
19610             for lang in $INST_LINGUAS; do
19611               CATALOGS="$CATALOGS $lang.gmo"
19612             done
19613           fi
19614           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19615           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"
19616           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19617             if test -f "$f"; then
19618               case "$f" in
19619                 *.orig | *.bak | *~) ;;
19620                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19621               esac
19622             fi
19623           done
19624         fi
19625         ;;
19626       esac
19627     done ;;
19628
19629   esac
19630 done # for ac_tag
19631
19632
19633 as_fn_exit 0
19634 _ACEOF
19635 ac_clean_files=$ac_clean_files_save
19636
19637 test $ac_write_fail = 0 ||
19638   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19639
19640
19641 # configure is writing to config.log, and then calls config.status.
19642 # config.status does its own redirection, appending to config.log.
19643 # Unfortunately, on DOS this fails, as config.log is still kept open
19644 # by configure, so config.status won't be able to write to it; its
19645 # output is simply discarded.  So we exec the FD to /dev/null,
19646 # effectively closing config.log, so it can be properly (re)opened and
19647 # appended to by config.status.  When coming back to configure, we
19648 # need to make the FD available again.
19649 if test "$no_create" != yes; then
19650   ac_cs_success=:
19651   ac_config_status_args=
19652   test "$silent" = yes &&
19653     ac_config_status_args="$ac_config_status_args --quiet"
19654   exec 5>/dev/null
19655   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19656   exec 5>>config.log
19657   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19658   # would make configure fail if this is the last instruction.
19659   $ac_cs_success || as_fn_exit 1
19660 fi
19661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19662   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19664 fi
19665
19666