Fix PR threads/19422 - show which thread caused stop
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
8690e634 554ac_unique_file="import/memmem.c"
c971b7fa
PA
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
98399780 591ac_func_list=
e26b6bb0 592ac_header_list=
8690e634 593gl_fnmatch_required=POSIX
c971b7fa
PA
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596gltests_LTLIBOBJS
597gltests_LIBOBJS
598gl_LTLIBOBJS
599gl_LIBOBJS
600LTLIBOBJS
601LIBOBJS
602LN_S
603am__fastdepCC_FALSE
604am__fastdepCC_TRUE
605CCDEPMODE
606AMDEPBACKSLASH
607AMDEP_FALSE
608AMDEP_TRUE
609am__quote
610am__include
611DEPDIR
612am__untar
613am__tar
614AMTAR
615am__leading_dot
616SET_MAKE
617AWK
618mkdir_p
c971b7fa
PA
619INSTALL_STRIP_PROGRAM
620STRIP
621install_sh
622MAKEINFO
623AUTOHEADER
624AUTOMAKE
625AUTOCONF
626ACLOCAL
627VERSION
628PACKAGE
629CYGPATH_W
630am__isrc
631INSTALL_DATA
632INSTALL_SCRIPT
633INSTALL_PROGRAM
634LIBGNU_LTLIBDEPS
635LIBGNU_LIBDEPS
636gltests_WITNESS
8690e634
JK
637REPLACE_TOWLOWER
638REPLACE_ISWCNTRL
639HAVE_WCTYPE_H
640NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641NEXT_WCTYPE_H
642HAVE_ISWCNTRL
643REPLACE_ISWBLANK
644HAVE_WCTRANS_T
645HAVE_WCTYPE_T
646HAVE_ISWBLANK
647GNULIB_TOWCTRANS
648GNULIB_WCTRANS
649GNULIB_ISWCTYPE
650GNULIB_WCTYPE
651GNULIB_ISWBLANK
652HAVE_WINT_T
653HAVE_FEATURES_H
654NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655NEXT_WCHAR_H
8839a007
PA
656HAVE_UNISTD_H
657NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658NEXT_UNISTD_H
4a626d0a 659UNISTD_H_DEFINES_STRUCT_TIMESPEC
09607c9e
TT
660PTHREAD_H_DEFINES_STRUCT_TIMESPEC
661SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
662TIME_H_DEFINES_STRUCT_TIMESPEC
663NEXT_AS_FIRST_DIRECTIVE_TIME_H
664NEXT_TIME_H
4a626d0a
PA
665REPLACE_LOCALTIME
666REPLACE_GMTIME
09607c9e
TT
667REPLACE_TIMEGM
668REPLACE_NANOSLEEP
669REPLACE_MKTIME
670REPLACE_LOCALTIME_R
671HAVE_TIMEGM
672HAVE_STRPTIME
673HAVE_NANOSLEEP
674HAVE_DECL_LOCALTIME_R
4a626d0a 675GNULIB_TIME_RZ
09607c9e
TT
676GNULIB_TIME_R
677GNULIB_TIMEGM
678GNULIB_STRPTIME
679GNULIB_NANOSLEEP
680GNULIB_MKTIME
63ce7108
TT
681WINDOWS_64_BIT_OFF_T
682NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
683NEXT_SYS_TYPES_H
09607c9e
TT
684MKDIR_P
685WINDOWS_64_BIT_ST_SIZE
686NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
687NEXT_SYS_STAT_H
2196f55f
YQ
688NEXT_AS_FIRST_DIRECTIVE_STRING_H
689NEXT_STRING_H
98399780
YQ
690NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
691NEXT_STDLIB_H
6a29c58e
YQ
692NEXT_AS_FIRST_DIRECTIVE_STDIO_H
693NEXT_STDIO_H
2196f55f
YQ
694NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
695NEXT_STDDEF_H
696GL_GENERATE_STDDEF_H_FALSE
697GL_GENERATE_STDDEF_H_TRUE
698STDDEF_H
699HAVE_WCHAR_T
4a626d0a 700HAVE_MAX_ALIGN_T
2196f55f
YQ
701REPLACE_NULL
702HAVE__BOOL
703GL_GENERATE_STDBOOL_H_FALSE
704GL_GENERATE_STDBOOL_H_TRUE
705STDBOOL_H
0750520d
PA
706NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
707NEXT_SIGNAL_H
708REPLACE_RAISE
709REPLACE_PTHREAD_SIGMASK
710HAVE_SIGHANDLER_T
711HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
712HAVE_STRUCT_SIGACTION_SA_SIGACTION
713HAVE_SIGACTION
714HAVE_SIGINFO_T
715HAVE_SIGSET_T
716HAVE_RAISE
717HAVE_PTHREAD_SIGMASK
718HAVE_POSIX_SIGNALBLOCKING
719GNULIB_SIGACTION
720GNULIB_SIGPROCMASK
721GNULIB_SIGNAL_H_SIGPIPE
722GNULIB_RAISE
723GNULIB_PTHREAD_SIGMASK
6a29c58e
YQ
724REPLACE_VSPRINTF
725REPLACE_VSNPRINTF
726REPLACE_VPRINTF
727REPLACE_VFPRINTF
728REPLACE_VDPRINTF
729REPLACE_VASPRINTF
730REPLACE_TMPFILE
731REPLACE_STDIO_WRITE_FUNCS
732REPLACE_STDIO_READ_FUNCS
733REPLACE_SPRINTF
734REPLACE_SNPRINTF
735REPLACE_RENAMEAT
736REPLACE_RENAME
737REPLACE_REMOVE
738REPLACE_PRINTF
739REPLACE_POPEN
740REPLACE_PERROR
741REPLACE_OBSTACK_PRINTF
742REPLACE_GETLINE
743REPLACE_GETDELIM
744REPLACE_FTELLO
745REPLACE_FTELL
746REPLACE_FSEEKO
747REPLACE_FSEEK
748REPLACE_FREOPEN
749REPLACE_FPURGE
750REPLACE_FPRINTF
751REPLACE_FOPEN
752REPLACE_FFLUSH
753REPLACE_FDOPEN
754REPLACE_FCLOSE
755REPLACE_DPRINTF
756HAVE_VDPRINTF
757HAVE_VASPRINTF
758HAVE_RENAMEAT
759HAVE_POPEN
760HAVE_PCLOSE
761HAVE_FTELLO
762HAVE_FSEEKO
763HAVE_DPRINTF
764HAVE_DECL_VSNPRINTF
765HAVE_DECL_SNPRINTF
766HAVE_DECL_OBSTACK_PRINTF
767HAVE_DECL_GETLINE
768HAVE_DECL_GETDELIM
769HAVE_DECL_FTELLO
770HAVE_DECL_FSEEKO
771HAVE_DECL_FPURGE
772GNULIB_VSPRINTF_POSIX
773GNULIB_VSNPRINTF
774GNULIB_VPRINTF_POSIX
775GNULIB_VPRINTF
776GNULIB_VFPRINTF_POSIX
777GNULIB_VFPRINTF
778GNULIB_VDPRINTF
779GNULIB_VSCANF
780GNULIB_VFSCANF
781GNULIB_VASPRINTF
782GNULIB_TMPFILE
783GNULIB_STDIO_H_SIGPIPE
784GNULIB_STDIO_H_NONBLOCKING
785GNULIB_SPRINTF_POSIX
786GNULIB_SNPRINTF
787GNULIB_SCANF
788GNULIB_RENAMEAT
789GNULIB_RENAME
790GNULIB_REMOVE
791GNULIB_PUTS
792GNULIB_PUTCHAR
793GNULIB_PUTC
794GNULIB_PRINTF_POSIX
795GNULIB_PRINTF
796GNULIB_POPEN
797GNULIB_PERROR
798GNULIB_PCLOSE
799GNULIB_OBSTACK_PRINTF_POSIX
800GNULIB_OBSTACK_PRINTF
801GNULIB_GETLINE
802GNULIB_GETDELIM
803GNULIB_GETCHAR
804GNULIB_GETC
805GNULIB_FWRITE
806GNULIB_FTELLO
807GNULIB_FTELL
808GNULIB_FSEEKO
809GNULIB_FSEEK
810GNULIB_FSCANF
811GNULIB_FREOPEN
812GNULIB_FREAD
813GNULIB_FPUTS
814GNULIB_FPUTC
815GNULIB_FPURGE
816GNULIB_FPRINTF_POSIX
817GNULIB_FPRINTF
818GNULIB_FOPEN
819GNULIB_FGETS
820GNULIB_FGETC
821GNULIB_FFLUSH
822GNULIB_FDOPEN
823GNULIB_FCLOSE
824GNULIB_DPRINTF
c971b7fa
PA
825UNDEFINE_STRTOK_R
826REPLACE_STRTOK_R
827REPLACE_STRSIGNAL
828REPLACE_STRNLEN
829REPLACE_STRNDUP
830REPLACE_STRNCAT
831REPLACE_STRERROR_R
832REPLACE_STRERROR
833REPLACE_STRCHRNUL
834REPLACE_STRCASESTR
835REPLACE_STRSTR
836REPLACE_STRDUP
837REPLACE_STPNCPY
838REPLACE_MEMMEM
839REPLACE_MEMCHR
840HAVE_STRVERSCMP
841HAVE_DECL_STRSIGNAL
842HAVE_DECL_STRERROR_R
843HAVE_DECL_STRTOK_R
844HAVE_STRCASESTR
845HAVE_STRSEP
846HAVE_STRPBRK
847HAVE_DECL_STRNLEN
848HAVE_DECL_STRNDUP
849HAVE_DECL_STRDUP
850HAVE_STRCHRNUL
851HAVE_STPNCPY
852HAVE_STPCPY
853HAVE_RAWMEMCHR
854HAVE_DECL_MEMRCHR
855HAVE_MEMPCPY
856HAVE_DECL_MEMMEM
857HAVE_MEMCHR
858HAVE_FFSLL
859HAVE_FFSL
860HAVE_MBSLEN
861GNULIB_STRVERSCMP
862GNULIB_STRSIGNAL
863GNULIB_STRERROR_R
864GNULIB_STRERROR
865GNULIB_MBSTOK_R
866GNULIB_MBSSEP
867GNULIB_MBSSPN
868GNULIB_MBSPBRK
869GNULIB_MBSCSPN
870GNULIB_MBSCASESTR
871GNULIB_MBSPCASECMP
872GNULIB_MBSNCASECMP
873GNULIB_MBSCASECMP
874GNULIB_MBSSTR
875GNULIB_MBSRCHR
876GNULIB_MBSCHR
877GNULIB_MBSNLEN
878GNULIB_MBSLEN
879GNULIB_STRTOK_R
880GNULIB_STRCASESTR
881GNULIB_STRSTR
882GNULIB_STRSEP
883GNULIB_STRPBRK
884GNULIB_STRNLEN
885GNULIB_STRNDUP
886GNULIB_STRNCAT
887GNULIB_STRDUP
888GNULIB_STRCHRNUL
889GNULIB_STPNCPY
890GNULIB_STPCPY
891GNULIB_RAWMEMCHR
892GNULIB_MEMRCHR
893GNULIB_MEMPCPY
894GNULIB_MEMMEM
895GNULIB_MEMCHR
896GNULIB_FFSLL
897GNULIB_FFSL
8690e634
JK
898LOCALE_FR
899LOCALE_FR_UTF8
900LOCALE_ZH_CN
901LOCALE_JA
902REPLACE_WCSWIDTH
903REPLACE_WCWIDTH
904REPLACE_WCSNRTOMBS
905REPLACE_WCSRTOMBS
906REPLACE_WCRTOMB
907REPLACE_MBSNRTOWCS
908REPLACE_MBSRTOWCS
909REPLACE_MBRLEN
910REPLACE_MBRTOWC
911REPLACE_MBSINIT
912REPLACE_WCTOB
913REPLACE_BTOWC
914REPLACE_MBSTATE_T
915HAVE_DECL_WCWIDTH
916HAVE_DECL_WCTOB
917HAVE_WCSWIDTH
918HAVE_WCSTOK
919HAVE_WCSSTR
920HAVE_WCSPBRK
921HAVE_WCSSPN
922HAVE_WCSCSPN
923HAVE_WCSRCHR
924HAVE_WCSCHR
925HAVE_WCSDUP
926HAVE_WCSXFRM
927HAVE_WCSCOLL
928HAVE_WCSNCASECMP
929HAVE_WCSCASECMP
930HAVE_WCSNCMP
931HAVE_WCSCMP
932HAVE_WCSNCAT
933HAVE_WCSCAT
934HAVE_WCPNCPY
935HAVE_WCSNCPY
936HAVE_WCPCPY
937HAVE_WCSCPY
938HAVE_WCSNLEN
939HAVE_WCSLEN
940HAVE_WMEMSET
941HAVE_WMEMMOVE
942HAVE_WMEMCPY
943HAVE_WMEMCMP
944HAVE_WMEMCHR
945HAVE_WCSNRTOMBS
946HAVE_WCSRTOMBS
947HAVE_WCRTOMB
948HAVE_MBSNRTOWCS
949HAVE_MBSRTOWCS
950HAVE_MBRLEN
951HAVE_MBRTOWC
952HAVE_MBSINIT
953HAVE_BTOWC
954GNULIB_WCSWIDTH
955GNULIB_WCSTOK
956GNULIB_WCSSTR
957GNULIB_WCSPBRK
958GNULIB_WCSSPN
959GNULIB_WCSCSPN
960GNULIB_WCSRCHR
961GNULIB_WCSCHR
962GNULIB_WCSDUP
963GNULIB_WCSXFRM
964GNULIB_WCSCOLL
965GNULIB_WCSNCASECMP
966GNULIB_WCSCASECMP
967GNULIB_WCSNCMP
968GNULIB_WCSCMP
969GNULIB_WCSNCAT
970GNULIB_WCSCAT
971GNULIB_WCPNCPY
972GNULIB_WCSNCPY
973GNULIB_WCPCPY
974GNULIB_WCSCPY
975GNULIB_WCSNLEN
976GNULIB_WCSLEN
977GNULIB_WMEMSET
978GNULIB_WMEMMOVE
979GNULIB_WMEMCPY
980GNULIB_WMEMCMP
981GNULIB_WMEMCHR
982GNULIB_WCWIDTH
983GNULIB_WCSNRTOMBS
984GNULIB_WCSRTOMBS
985GNULIB_WCRTOMB
986GNULIB_MBSNRTOWCS
987GNULIB_MBSRTOWCS
988GNULIB_MBRLEN
989GNULIB_MBRTOWC
990GNULIB_MBSINIT
991GNULIB_WCTOB
992GNULIB_BTOWC
88b48903
WN
993NEXT_AS_FIRST_DIRECTIVE_MATH_H
994NEXT_MATH_H
f45c62c4
YQ
995REPLACE_UTIMENSAT
996REPLACE_STAT
997REPLACE_MKNOD
998REPLACE_MKFIFO
999REPLACE_MKDIR
1000REPLACE_LSTAT
1001REPLACE_FUTIMENS
1002REPLACE_FSTATAT
1003REPLACE_FSTAT
1004HAVE_UTIMENSAT
1005HAVE_MKNODAT
1006HAVE_MKNOD
1007HAVE_MKFIFOAT
1008HAVE_MKFIFO
1009HAVE_MKDIRAT
1010HAVE_LSTAT
1011HAVE_LCHMOD
1012HAVE_FUTIMENS
1013HAVE_FSTATAT
1014HAVE_FCHMODAT
1015GNULIB_UTIMENSAT
1016GNULIB_STAT
1017GNULIB_MKNODAT
1018GNULIB_MKNOD
1019GNULIB_MKFIFOAT
1020GNULIB_MKFIFO
1021GNULIB_MKDIRAT
1022GNULIB_LSTAT
1023GNULIB_LCHMOD
1024GNULIB_FUTIMENS
1025GNULIB_FSTATAT
1026GNULIB_FSTAT
1027GNULIB_FCHMODAT
8690e634
JK
1028LOCALCHARSET_TESTS_ENVIRONMENT
1029GLIBC21
c971b7fa
PA
1030NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1031NEXT_INTTYPES_H
1032UINT64_MAX_EQ_ULONG_MAX
1033UINT32_MAX_LT_UINTMAX_MAX
1034PRIPTR_PREFIX
1035PRI_MACROS_BROKEN
1036INT64_MAX_EQ_LONG_MAX
1037INT32_MAX_LT_INTMAX_MAX
4a626d0a 1038REPLACE_STRTOUMAX
c971b7fa
PA
1039REPLACE_STRTOIMAX
1040HAVE_DECL_STRTOUMAX
1041HAVE_DECL_STRTOIMAX
1042HAVE_DECL_IMAXDIV
1043HAVE_DECL_IMAXABS
1044GNULIB_STRTOUMAX
1045GNULIB_STRTOIMAX
1046GNULIB_IMAXDIV
1047GNULIB_IMAXABS
1048GL_GENERATE_STDINT_H_FALSE
1049GL_GENERATE_STDINT_H_TRUE
1050STDINT_H
1051WINT_T_SUFFIX
1052WCHAR_T_SUFFIX
1053SIG_ATOMIC_T_SUFFIX
1054SIZE_T_SUFFIX
1055PTRDIFF_T_SUFFIX
1056HAVE_SIGNED_WINT_T
1057HAVE_SIGNED_WCHAR_T
1058HAVE_SIGNED_SIG_ATOMIC_T
1059BITSIZEOF_WINT_T
1060BITSIZEOF_WCHAR_T
1061BITSIZEOF_SIG_ATOMIC_T
1062BITSIZEOF_SIZE_T
1063BITSIZEOF_PTRDIFF_T
1064APPLE_UNIVERSAL_BUILD
1065HAVE_SYS_BITYPES_H
1066HAVE_SYS_INTTYPES_H
1067HAVE_STDINT_H
1068NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1069NEXT_STDINT_H
c971b7fa
PA
1070HAVE_SYS_TYPES_H
1071HAVE_INTTYPES_H
1072HAVE_WCHAR_H
1073HAVE_UNSIGNED_LONG_LONG_INT
1074HAVE_LONG_LONG_INT
4a626d0a
PA
1075HAVE_WINSOCK2_H
1076NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1077NEXT_SYS_TIME_H
1078REPLACE_STRUCT_TIMEVAL
1079REPLACE_GETTIMEOFDAY
1080HAVE_TIMEZONE_T
1081HAVE_SYS_TIME_H
1082HAVE_STRUCT_TIMEVAL
1083HAVE_GETTIMEOFDAY
1084GNULIB_GETTIMEOFDAY
88b48903
WN
1085FREXPL_LIBM
1086HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1087FREXP_LIBM
1088REPLACE_TRUNCL
1089REPLACE_TRUNCF
1090REPLACE_TRUNC
1091REPLACE_SQRTL
1092REPLACE_SIGNBIT_USING_GCC
1093REPLACE_SIGNBIT
1094REPLACE_ROUNDL
1095REPLACE_ROUNDF
1096REPLACE_ROUND
1097REPLACE_REMAINDERL
1098REPLACE_REMAINDERF
1099REPLACE_REMAINDER
1100REPLACE_NAN
1101REPLACE_MODFL
1102REPLACE_MODFF
1103REPLACE_MODF
1104REPLACE_LOGBL
1105REPLACE_LOGBF
1106REPLACE_LOGB
1107REPLACE_LOG2L
1108REPLACE_LOG2F
1109REPLACE_LOG2
1110REPLACE_LOG1PL
1111REPLACE_LOG1PF
1112REPLACE_LOG1P
1113REPLACE_LOG10L
1114REPLACE_LOG10F
1115REPLACE_LOG10
1116REPLACE_LOGL
1117REPLACE_LOGF
1118REPLACE_LOG
1119REPLACE_LDEXPL
1120REPLACE_ISNAN
1121REPLACE_ISINF
1122REPLACE_ISFINITE
1123REPLACE_ILOGBF
1124REPLACE_ILOGB
1125REPLACE_HYPOTL
1126REPLACE_HYPOTF
1127REPLACE_HYPOT
1128REPLACE_HUGE_VAL
1129REPLACE_FREXPL
1130REPLACE_FREXP
1131REPLACE_FREXPF
1132REPLACE_FMODL
1133REPLACE_FMODF
1134REPLACE_FMOD
1135REPLACE_FMAL
1136REPLACE_FMAF
1137REPLACE_FMA
1138REPLACE_FLOORL
1139REPLACE_FLOORF
1140REPLACE_FLOOR
1141REPLACE_FABSL
1142REPLACE_EXP2L
1143REPLACE_EXP2
1144REPLACE_EXPM1F
1145REPLACE_EXPM1
1146REPLACE_CEILL
1147REPLACE_CEILF
1148REPLACE_CEIL
1149REPLACE_CBRTL
1150REPLACE_CBRTF
1151HAVE_DECL_TRUNCL
1152HAVE_DECL_TRUNCF
1153HAVE_DECL_TRUNC
1154HAVE_DECL_TANL
1155HAVE_DECL_SQRTL
1156HAVE_DECL_SINL
1157HAVE_DECL_ROUNDL
1158HAVE_DECL_ROUNDF
1159HAVE_DECL_ROUND
1160HAVE_DECL_RINTF
1161HAVE_DECL_REMAINDERL
1162HAVE_DECL_REMAINDER
1163HAVE_DECL_LOGB
1164HAVE_DECL_LOG2L
1165HAVE_DECL_LOG2F
1166HAVE_DECL_LOG2
1167HAVE_DECL_LOG10L
1168HAVE_DECL_LOGL
1169HAVE_DECL_LDEXPL
1170HAVE_DECL_FREXPL
1171HAVE_DECL_FLOORL
1172HAVE_DECL_FLOORF
1173HAVE_DECL_EXPM1L
1174HAVE_DECL_EXP2L
1175HAVE_DECL_EXP2F
1176HAVE_DECL_EXP2
1177HAVE_DECL_EXPL
1178HAVE_DECL_COSL
1179HAVE_DECL_COPYSIGNF
1180HAVE_DECL_CEILL
1181HAVE_DECL_CEILF
1182HAVE_DECL_CBRTL
1183HAVE_DECL_CBRTF
1184HAVE_DECL_ATANL
1185HAVE_DECL_ASINL
1186HAVE_DECL_ACOSL
1187HAVE_TANHF
1188HAVE_TANL
1189HAVE_TANF
1190HAVE_SQRTL
1191HAVE_SQRTF
1192HAVE_SINHF
1193HAVE_SINL
1194HAVE_SINF
1195HAVE_RINTL
1196HAVE_RINT
1197HAVE_REMAINDERF
1198HAVE_REMAINDER
1199HAVE_POWF
1200HAVE_MODFL
1201HAVE_MODFF
1202HAVE_LOGBL
1203HAVE_LOGBF
1204HAVE_LOG1PL
1205HAVE_LOG1PF
1206HAVE_LOG1P
1207HAVE_LOG10L
1208HAVE_LOG10F
1209HAVE_LOGL
1210HAVE_LOGF
1211HAVE_LDEXPF
1212HAVE_ISNANL
1213HAVE_ISNAND
1214HAVE_ISNANF
1215HAVE_ILOGBL
1216HAVE_ILOGBF
1217HAVE_ILOGB
1218HAVE_HYPOTL
1219HAVE_HYPOTF
1220HAVE_FREXPF
1221HAVE_FMODL
1222HAVE_FMODF
1223HAVE_FMAL
1224HAVE_FMAF
1225HAVE_FMA
1226HAVE_FABSL
1227HAVE_FABSF
1228HAVE_EXPM1F
1229HAVE_EXPM1
1230HAVE_EXPL
1231HAVE_EXPF
1232HAVE_COSHF
1233HAVE_COSL
1234HAVE_COSF
1235HAVE_COPYSIGNL
1236HAVE_COPYSIGN
1237HAVE_CBRTL
1238HAVE_CBRTF
1239HAVE_CBRT
1240HAVE_ATAN2F
1241HAVE_ATANL
1242HAVE_ATANF
1243HAVE_ASINL
1244HAVE_ASINF
1245HAVE_ACOSL
1246HAVE_ACOSF
1247GNULIB_TRUNCL
1248GNULIB_TRUNCF
1249GNULIB_TRUNC
1250GNULIB_TANHF
1251GNULIB_TANL
1252GNULIB_TANF
1253GNULIB_SQRTL
1254GNULIB_SQRTF
1255GNULIB_SINHF
1256GNULIB_SINL
1257GNULIB_SINF
1258GNULIB_SIGNBIT
1259GNULIB_ROUNDL
1260GNULIB_ROUNDF
1261GNULIB_ROUND
1262GNULIB_RINTL
1263GNULIB_RINTF
1264GNULIB_RINT
1265GNULIB_REMAINDERL
1266GNULIB_REMAINDERF
1267GNULIB_REMAINDER
1268GNULIB_POWF
1269GNULIB_MODFL
1270GNULIB_MODFF
1271GNULIB_MODF
1272GNULIB_LOGBL
1273GNULIB_LOGBF
1274GNULIB_LOGB
1275GNULIB_LOG2L
1276GNULIB_LOG2F
1277GNULIB_LOG2
1278GNULIB_LOG1PL
1279GNULIB_LOG1PF
1280GNULIB_LOG1P
1281GNULIB_LOG10L
1282GNULIB_LOG10F
1283GNULIB_LOG10
1284GNULIB_LOGL
1285GNULIB_LOGF
1286GNULIB_LOG
1287GNULIB_LDEXPL
1288GNULIB_LDEXPF
1289GNULIB_ISNANL
1290GNULIB_ISNAND
1291GNULIB_ISNANF
1292GNULIB_ISNAN
1293GNULIB_ISINF
1294GNULIB_ISFINITE
1295GNULIB_ILOGBL
1296GNULIB_ILOGBF
1297GNULIB_ILOGB
1298GNULIB_HYPOTL
1299GNULIB_HYPOTF
1300GNULIB_HYPOT
1301GNULIB_FREXPL
1302GNULIB_FREXP
1303GNULIB_FREXPF
1304GNULIB_FMODL
1305GNULIB_FMODF
1306GNULIB_FMOD
1307GNULIB_FMAL
1308GNULIB_FMAF
1309GNULIB_FMA
1310GNULIB_FLOORL
1311GNULIB_FLOORF
1312GNULIB_FLOOR
1313GNULIB_FABSL
1314GNULIB_FABSF
1315GNULIB_EXPM1L
1316GNULIB_EXPM1F
1317GNULIB_EXPM1
1318GNULIB_EXP2L
1319GNULIB_EXP2F
1320GNULIB_EXP2
1321GNULIB_EXPL
1322GNULIB_EXPF
1323GNULIB_COSHF
1324GNULIB_COSL
1325GNULIB_COSF
1326GNULIB_COPYSIGNL
1327GNULIB_COPYSIGNF
1328GNULIB_COPYSIGN
1329GNULIB_CEILL
1330GNULIB_CEILF
1331GNULIB_CEIL
1332GNULIB_CBRTL
1333GNULIB_CBRTF
1334GNULIB_CBRT
1335GNULIB_ATAN2F
1336GNULIB_ATANL
1337GNULIB_ATANF
1338GNULIB_ASINL
1339GNULIB_ASINF
1340GNULIB_ACOSL
1341GNULIB_ACOSF
8690e634
JK
1342GL_GENERATE_FNMATCH_H_FALSE
1343GL_GENERATE_FNMATCH_H_TRUE
1344FNMATCH_H
88b48903
WN
1345REPLACE_ITOLD
1346GL_GENERATE_FLOAT_H_FALSE
1347GL_GENERATE_FLOAT_H_TRUE
1348FLOAT_H
1349NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1350NEXT_FLOAT_H
18848e28
GF
1351EOVERFLOW_VALUE
1352EOVERFLOW_HIDDEN
1353ENOLINK_VALUE
1354ENOLINK_HIDDEN
1355EMULTIHOP_VALUE
1356EMULTIHOP_HIDDEN
1357GL_GENERATE_ERRNO_H_FALSE
1358GL_GENERATE_ERRNO_H_TRUE
1359ERRNO_H
1360NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1361NEXT_ERRNO_H
e26b6bb0
TT
1362HAVE_DIRENT_H
1363NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1364NEXT_DIRENT_H
88b48903
WN
1365PRAGMA_COLUMNS
1366PRAGMA_SYSTEM_HEADER
1367INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1368INCLUDE_NEXT
e26b6bb0
TT
1369REPLACE_FDOPENDIR
1370REPLACE_DIRFD
1371REPLACE_CLOSEDIR
1372REPLACE_OPENDIR
1373HAVE_ALPHASORT
1374HAVE_SCANDIR
1375HAVE_FDOPENDIR
1376HAVE_DECL_FDOPENDIR
1377HAVE_DECL_DIRFD
1378HAVE_CLOSEDIR
1379HAVE_REWINDDIR
1380HAVE_READDIR
1381HAVE_OPENDIR
1382GNULIB_ALPHASORT
1383GNULIB_SCANDIR
1384GNULIB_FDOPENDIR
1385GNULIB_DIRFD
1386GNULIB_CLOSEDIR
1387GNULIB_REWINDDIR
1388GNULIB_READDIR
1389GNULIB_OPENDIR
6a29c58e 1390pkglibexecdir
4a626d0a 1391runstatedir
6a29c58e 1392lispdir
e26b6bb0
TT
1393UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1394UNISTD_H_HAVE_WINSOCK2_H
1395REPLACE_WRITE
1396REPLACE_USLEEP
1397REPLACE_UNLINKAT
1398REPLACE_UNLINK
1399REPLACE_TTYNAME_R
4a626d0a 1400REPLACE_SYMLINKAT
e26b6bb0
TT
1401REPLACE_SYMLINK
1402REPLACE_SLEEP
1403REPLACE_RMDIR
4a626d0a 1404REPLACE_READLINKAT
e26b6bb0
TT
1405REPLACE_READLINK
1406REPLACE_READ
1407REPLACE_PWRITE
1408REPLACE_PREAD
1409REPLACE_LSEEK
1410REPLACE_LINKAT
1411REPLACE_LINK
1412REPLACE_LCHOWN
1413REPLACE_ISATTY
1414REPLACE_GETPAGESIZE
1415REPLACE_GETGROUPS
1416REPLACE_GETLOGIN_R
4a626d0a 1417REPLACE_GETDTABLESIZE
e26b6bb0
TT
1418REPLACE_GETDOMAINNAME
1419REPLACE_GETCWD
1420REPLACE_FTRUNCATE
1421REPLACE_FCHOWNAT
1422REPLACE_DUP2
1423REPLACE_DUP
1424REPLACE_CLOSE
1425REPLACE_CHOWN
1426HAVE_SYS_PARAM_H
1427HAVE_OS_H
1428HAVE_DECL_TTYNAME_R
1429HAVE_DECL_SETHOSTNAME
1430HAVE_DECL_GETUSERSHELL
1431HAVE_DECL_GETPAGESIZE
1432HAVE_DECL_GETLOGIN_R
1433HAVE_DECL_GETDOMAINNAME
1434HAVE_DECL_FDATASYNC
1435HAVE_DECL_FCHDIR
1436HAVE_DECL_ENVIRON
1437HAVE_USLEEP
1438HAVE_UNLINKAT
1439HAVE_SYMLINKAT
1440HAVE_SYMLINK
1441HAVE_SLEEP
1442HAVE_SETHOSTNAME
1443HAVE_READLINKAT
1444HAVE_READLINK
1445HAVE_PWRITE
1446HAVE_PREAD
1447HAVE_PIPE2
1448HAVE_PIPE
1449HAVE_LINKAT
1450HAVE_LINK
1451HAVE_LCHOWN
1452HAVE_GROUP_MEMBER
1453HAVE_GETPAGESIZE
1454HAVE_GETLOGIN
1455HAVE_GETHOSTNAME
1456HAVE_GETGROUPS
1457HAVE_GETDTABLESIZE
1458HAVE_FTRUNCATE
1459HAVE_FSYNC
1460HAVE_FDATASYNC
1461HAVE_FCHOWNAT
1462HAVE_FCHDIR
1463HAVE_FACCESSAT
1464HAVE_EUIDACCESS
1465HAVE_DUP3
1466HAVE_DUP2
1467HAVE_CHOWN
1468GNULIB_WRITE
1469GNULIB_USLEEP
1470GNULIB_UNLINKAT
1471GNULIB_UNLINK
1472GNULIB_UNISTD_H_SIGPIPE
1473GNULIB_UNISTD_H_NONBLOCKING
1474GNULIB_TTYNAME_R
1475GNULIB_SYMLINKAT
1476GNULIB_SYMLINK
1477GNULIB_SLEEP
1478GNULIB_SETHOSTNAME
1479GNULIB_RMDIR
1480GNULIB_READLINKAT
1481GNULIB_READLINK
1482GNULIB_READ
1483GNULIB_PWRITE
1484GNULIB_PREAD
1485GNULIB_PIPE2
1486GNULIB_PIPE
1487GNULIB_LSEEK
1488GNULIB_LINKAT
1489GNULIB_LINK
1490GNULIB_LCHOWN
1491GNULIB_ISATTY
1492GNULIB_GROUP_MEMBER
1493GNULIB_GETUSERSHELL
1494GNULIB_GETPAGESIZE
1495GNULIB_GETLOGIN_R
1496GNULIB_GETLOGIN
1497GNULIB_GETHOSTNAME
1498GNULIB_GETGROUPS
1499GNULIB_GETDTABLESIZE
1500GNULIB_GETDOMAINNAME
1501GNULIB_GETCWD
1502GNULIB_FTRUNCATE
1503GNULIB_FSYNC
1504GNULIB_FDATASYNC
1505GNULIB_FCHOWNAT
1506GNULIB_FCHDIR
1507GNULIB_FACCESSAT
1508GNULIB_EUIDACCESS
1509GNULIB_ENVIRON
1510GNULIB_DUP3
1511GNULIB_DUP2
1512GNULIB_DUP
1513GNULIB_CLOSE
1514GNULIB_CHOWN
1515GNULIB_CHDIR
98399780
YQ
1516REPLACE_WCTOMB
1517REPLACE_UNSETENV
1518REPLACE_STRTOD
1519REPLACE_SETENV
1520REPLACE_REALPATH
1521REPLACE_REALLOC
1522REPLACE_RANDOM_R
4a626d0a 1523REPLACE_QSORT_R
98399780
YQ
1524REPLACE_PUTENV
1525REPLACE_PTSNAME_R
1526REPLACE_PTSNAME
1527REPLACE_MKSTEMP
1528REPLACE_MBTOWC
1529REPLACE_MALLOC
1530REPLACE_CANONICALIZE_FILE_NAME
1531REPLACE_CALLOC
1532HAVE_DECL_UNSETENV
1533HAVE_UNLOCKPT
1534HAVE_SYS_LOADAVG_H
1535HAVE_STRUCT_RANDOM_DATA
1536HAVE_STRTOULL
1537HAVE_STRTOLL
1538HAVE_STRTOD
1539HAVE_DECL_SETENV
1540HAVE_SETENV
4a626d0a 1541HAVE_SECURE_GETENV
98399780
YQ
1542HAVE_RPMATCH
1543HAVE_REALPATH
1544HAVE_RANDOM_R
1545HAVE_RANDOM_H
1546HAVE_RANDOM
1547HAVE_PTSNAME_R
1548HAVE_PTSNAME
1549HAVE_POSIX_OPENPT
1550HAVE_MKSTEMPS
1551HAVE_MKSTEMP
1552HAVE_MKOSTEMPS
1553HAVE_MKOSTEMP
1554HAVE_MKDTEMP
1555HAVE_GRANTPT
1556HAVE_GETSUBOPT
1557HAVE_DECL_GETLOADAVG
1558HAVE_CANONICALIZE_FILE_NAME
1559HAVE_ATOLL
1560HAVE__EXIT
1561GNULIB_WCTOMB
1562GNULIB_UNSETENV
1563GNULIB_UNLOCKPT
1564GNULIB_SYSTEM_POSIX
1565GNULIB_STRTOULL
1566GNULIB_STRTOLL
1567GNULIB_STRTOD
1568GNULIB_SETENV
4a626d0a 1569GNULIB_SECURE_GETENV
98399780
YQ
1570GNULIB_RPMATCH
1571GNULIB_REALPATH
1572GNULIB_REALLOC_POSIX
1573GNULIB_RANDOM_R
1574GNULIB_RANDOM
4a626d0a 1575GNULIB_QSORT_R
98399780
YQ
1576GNULIB_PUTENV
1577GNULIB_PTSNAME_R
1578GNULIB_PTSNAME
1579GNULIB_POSIX_OPENPT
1580GNULIB_MKSTEMPS
1581GNULIB_MKSTEMP
1582GNULIB_MKOSTEMPS
1583GNULIB_MKOSTEMP
1584GNULIB_MKDTEMP
1585GNULIB_MBTOWC
1586GNULIB_MALLOC_POSIX
1587GNULIB_GRANTPT
1588GNULIB_GETSUBOPT
1589GNULIB_GETLOADAVG
1590GNULIB_CANONICALIZE_FILE_NAME
1591GNULIB_CALLOC_POSIX
1592GNULIB_ATOLL
1593GNULIB__EXIT
8690e634
JK
1594GL_GENERATE_ALLOCA_H_FALSE
1595GL_GENERATE_ALLOCA_H_TRUE
1596ALLOCA_H
1597ALLOCA
c971b7fa
PA
1598GL_COND_LIBTOOL_FALSE
1599GL_COND_LIBTOOL_TRUE
1600target_os
1601target_vendor
1602target_cpu
1603target
c971b7fa
PA
1604host_os
1605host_vendor
1606host_cpu
1607host
1608build_os
1609build_vendor
1610build_cpu
1611build
4a626d0a
PA
1612RANLIB
1613ARFLAGS
1614AR
1615EGREP
1616GREP
1617CPP
c971b7fa
PA
1618OBJEXT
1619EXEEXT
1620ac_ct_CC
1621CPPFLAGS
1622LDFLAGS
1623CFLAGS
1624CC
1625MAINT
1626MAINTAINER_MODE_FALSE
1627MAINTAINER_MODE_TRUE
1628target_alias
1629host_alias
1630build_alias
1631LIBS
1632ECHO_T
1633ECHO_N
1634ECHO_C
1635DEFS
1636mandir
1637localedir
1638libdir
1639psdir
1640pdfdir
1641dvidir
1642htmldir
1643infodir
1644docdir
1645oldincludedir
1646includedir
1647localstatedir
1648sharedstatedir
1649sysconfdir
1650datadir
1651datarootdir
1652libexecdir
1653sbindir
1654bindir
1655program_transform_name
1656prefix
1657exec_prefix
1658PACKAGE_URL
1659PACKAGE_BUGREPORT
1660PACKAGE_STRING
1661PACKAGE_VERSION
1662PACKAGE_TARNAME
1663PACKAGE_NAME
1664PATH_SEPARATOR
1665SHELL'
1666ac_subst_files=''
1667ac_user_opts='
1668enable_option_checking
1669enable_maintainer_mode
2196f55f 1670enable_largefile
c971b7fa
PA
1671enable_dependency_tracking
1672'
1673 ac_precious_vars='build_alias
1674host_alias
1675target_alias
1676CC
1677CFLAGS
1678LDFLAGS
1679LIBS
1680CPPFLAGS
1681CPP'
1682
1683
1684# Initialize some variables set by options.
1685ac_init_help=
1686ac_init_version=false
1687ac_unrecognized_opts=
1688ac_unrecognized_sep=
1689# The variables have the same names as the options, with
1690# dashes changed to underlines.
1691cache_file=/dev/null
1692exec_prefix=NONE
1693no_create=
1694no_recursion=
1695prefix=NONE
1696program_prefix=NONE
1697program_suffix=NONE
1698program_transform_name=s,x,x,
1699silent=
1700site=
1701srcdir=
1702verbose=
1703x_includes=NONE
1704x_libraries=NONE
1705
1706# Installation directory options.
1707# These are left unexpanded so users can "make install exec_prefix=/foo"
1708# and all the variables that are supposed to be based on exec_prefix
1709# by default will actually change.
1710# Use braces instead of parens because sh, perl, etc. also accept them.
1711# (The list follows the same order as the GNU Coding Standards.)
1712bindir='${exec_prefix}/bin'
1713sbindir='${exec_prefix}/sbin'
1714libexecdir='${exec_prefix}/libexec'
1715datarootdir='${prefix}/share'
1716datadir='${datarootdir}'
1717sysconfdir='${prefix}/etc'
1718sharedstatedir='${prefix}/com'
1719localstatedir='${prefix}/var'
1720includedir='${prefix}/include'
1721oldincludedir='/usr/include'
1722docdir='${datarootdir}/doc/${PACKAGE}'
1723infodir='${datarootdir}/info'
1724htmldir='${docdir}'
1725dvidir='${docdir}'
1726pdfdir='${docdir}'
1727psdir='${docdir}'
1728libdir='${exec_prefix}/lib'
1729localedir='${datarootdir}/locale'
1730mandir='${datarootdir}/man'
1731
1732ac_prev=
1733ac_dashdash=
1734for ac_option
1735do
1736 # If the previous option needs an argument, assign it.
1737 if test -n "$ac_prev"; then
1738 eval $ac_prev=\$ac_option
1739 ac_prev=
1740 continue
1741 fi
1742
1743 case $ac_option in
1744 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1745 *) ac_optarg=yes ;;
1746 esac
1747
1748 # Accept the important Cygnus configure options, so we can diagnose typos.
1749
1750 case $ac_dashdash$ac_option in
1751 --)
1752 ac_dashdash=yes ;;
1753
1754 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1755 ac_prev=bindir ;;
1756 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1757 bindir=$ac_optarg ;;
1758
1759 -build | --build | --buil | --bui | --bu)
1760 ac_prev=build_alias ;;
1761 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1762 build_alias=$ac_optarg ;;
1763
1764 -cache-file | --cache-file | --cache-fil | --cache-fi \
1765 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1766 ac_prev=cache_file ;;
1767 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1768 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1769 cache_file=$ac_optarg ;;
1770
1771 --config-cache | -C)
1772 cache_file=config.cache ;;
1773
1774 -datadir | --datadir | --datadi | --datad)
1775 ac_prev=datadir ;;
1776 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1777 datadir=$ac_optarg ;;
1778
1779 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1780 | --dataroo | --dataro | --datar)
1781 ac_prev=datarootdir ;;
1782 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1783 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1784 datarootdir=$ac_optarg ;;
1785
1786 -disable-* | --disable-*)
1787 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1788 # Reject names that are not valid shell variable names.
1789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1790 as_fn_error "invalid feature name: $ac_useropt"
1791 ac_useropt_orig=$ac_useropt
1792 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1793 case $ac_user_opts in
1794 *"
1795"enable_$ac_useropt"
1796"*) ;;
1797 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1798 ac_unrecognized_sep=', ';;
1799 esac
1800 eval enable_$ac_useropt=no ;;
1801
1802 -docdir | --docdir | --docdi | --doc | --do)
1803 ac_prev=docdir ;;
1804 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1805 docdir=$ac_optarg ;;
1806
1807 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1808 ac_prev=dvidir ;;
1809 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1810 dvidir=$ac_optarg ;;
1811
1812 -enable-* | --enable-*)
1813 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1814 # Reject names that are not valid shell variable names.
1815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1816 as_fn_error "invalid feature name: $ac_useropt"
1817 ac_useropt_orig=$ac_useropt
1818 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1819 case $ac_user_opts in
1820 *"
1821"enable_$ac_useropt"
1822"*) ;;
1823 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1824 ac_unrecognized_sep=', ';;
1825 esac
1826 eval enable_$ac_useropt=\$ac_optarg ;;
1827
1828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1830 | --exec | --exe | --ex)
1831 ac_prev=exec_prefix ;;
1832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1834 | --exec=* | --exe=* | --ex=*)
1835 exec_prefix=$ac_optarg ;;
1836
1837 -gas | --gas | --ga | --g)
1838 # Obsolete; use --with-gas.
1839 with_gas=yes ;;
1840
1841 -help | --help | --hel | --he | -h)
1842 ac_init_help=long ;;
1843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1844 ac_init_help=recursive ;;
1845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1846 ac_init_help=short ;;
1847
1848 -host | --host | --hos | --ho)
1849 ac_prev=host_alias ;;
1850 -host=* | --host=* | --hos=* | --ho=*)
1851 host_alias=$ac_optarg ;;
1852
1853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1854 ac_prev=htmldir ;;
1855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1856 | --ht=*)
1857 htmldir=$ac_optarg ;;
1858
1859 -includedir | --includedir | --includedi | --included | --include \
1860 | --includ | --inclu | --incl | --inc)
1861 ac_prev=includedir ;;
1862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1863 | --includ=* | --inclu=* | --incl=* | --inc=*)
1864 includedir=$ac_optarg ;;
1865
1866 -infodir | --infodir | --infodi | --infod | --info | --inf)
1867 ac_prev=infodir ;;
1868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1869 infodir=$ac_optarg ;;
1870
1871 -libdir | --libdir | --libdi | --libd)
1872 ac_prev=libdir ;;
1873 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1874 libdir=$ac_optarg ;;
1875
1876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1877 | --libexe | --libex | --libe)
1878 ac_prev=libexecdir ;;
1879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1880 | --libexe=* | --libex=* | --libe=*)
1881 libexecdir=$ac_optarg ;;
1882
1883 -localedir | --localedir | --localedi | --localed | --locale)
1884 ac_prev=localedir ;;
1885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1886 localedir=$ac_optarg ;;
1887
1888 -localstatedir | --localstatedir | --localstatedi | --localstated \
1889 | --localstate | --localstat | --localsta | --localst | --locals)
1890 ac_prev=localstatedir ;;
1891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1893 localstatedir=$ac_optarg ;;
1894
1895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1896 ac_prev=mandir ;;
1897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1898 mandir=$ac_optarg ;;
1899
1900 -nfp | --nfp | --nf)
1901 # Obsolete; use --without-fp.
1902 with_fp=no ;;
1903
1904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1905 | --no-cr | --no-c | -n)
1906 no_create=yes ;;
1907
1908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1910 no_recursion=yes ;;
1911
1912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1914 | --oldin | --oldi | --old | --ol | --o)
1915 ac_prev=oldincludedir ;;
1916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1919 oldincludedir=$ac_optarg ;;
1920
1921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1922 ac_prev=prefix ;;
1923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1924 prefix=$ac_optarg ;;
1925
1926 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1927 | --program-pre | --program-pr | --program-p)
1928 ac_prev=program_prefix ;;
1929 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1931 program_prefix=$ac_optarg ;;
1932
1933 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1934 | --program-suf | --program-su | --program-s)
1935 ac_prev=program_suffix ;;
1936 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1938 program_suffix=$ac_optarg ;;
1939
1940 -program-transform-name | --program-transform-name \
1941 | --program-transform-nam | --program-transform-na \
1942 | --program-transform-n | --program-transform- \
1943 | --program-transform | --program-transfor \
1944 | --program-transfo | --program-transf \
1945 | --program-trans | --program-tran \
1946 | --progr-tra | --program-tr | --program-t)
1947 ac_prev=program_transform_name ;;
1948 -program-transform-name=* | --program-transform-name=* \
1949 | --program-transform-nam=* | --program-transform-na=* \
1950 | --program-transform-n=* | --program-transform-=* \
1951 | --program-transform=* | --program-transfor=* \
1952 | --program-transfo=* | --program-transf=* \
1953 | --program-trans=* | --program-tran=* \
1954 | --progr-tra=* | --program-tr=* | --program-t=*)
1955 program_transform_name=$ac_optarg ;;
1956
1957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1958 ac_prev=pdfdir ;;
1959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1960 pdfdir=$ac_optarg ;;
1961
1962 -psdir | --psdir | --psdi | --psd | --ps)
1963 ac_prev=psdir ;;
1964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1965 psdir=$ac_optarg ;;
1966
1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968 | -silent | --silent | --silen | --sile | --sil)
1969 silent=yes ;;
1970
1971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1972 ac_prev=sbindir ;;
1973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1974 | --sbi=* | --sb=*)
1975 sbindir=$ac_optarg ;;
1976
1977 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1979 | --sharedst | --shareds | --shared | --share | --shar \
1980 | --sha | --sh)
1981 ac_prev=sharedstatedir ;;
1982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1985 | --sha=* | --sh=*)
1986 sharedstatedir=$ac_optarg ;;
1987
1988 -site | --site | --sit)
1989 ac_prev=site ;;
1990 -site=* | --site=* | --sit=*)
1991 site=$ac_optarg ;;
1992
1993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1994 ac_prev=srcdir ;;
1995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1996 srcdir=$ac_optarg ;;
1997
1998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1999 | --syscon | --sysco | --sysc | --sys | --sy)
2000 ac_prev=sysconfdir ;;
2001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2003 sysconfdir=$ac_optarg ;;
2004
2005 -target | --target | --targe | --targ | --tar | --ta | --t)
2006 ac_prev=target_alias ;;
2007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2008 target_alias=$ac_optarg ;;
2009
2010 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2011 verbose=yes ;;
2012
2013 -version | --version | --versio | --versi | --vers | -V)
2014 ac_init_version=: ;;
2015
2016 -with-* | --with-*)
2017 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2018 # Reject names that are not valid shell variable names.
2019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2020 as_fn_error "invalid package name: $ac_useropt"
2021 ac_useropt_orig=$ac_useropt
2022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2023 case $ac_user_opts in
2024 *"
2025"with_$ac_useropt"
2026"*) ;;
2027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2028 ac_unrecognized_sep=', ';;
2029 esac
2030 eval with_$ac_useropt=\$ac_optarg ;;
2031
2032 -without-* | --without-*)
2033 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2034 # Reject names that are not valid shell variable names.
2035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2036 as_fn_error "invalid package name: $ac_useropt"
2037 ac_useropt_orig=$ac_useropt
2038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2039 case $ac_user_opts in
2040 *"
2041"with_$ac_useropt"
2042"*) ;;
2043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2044 ac_unrecognized_sep=', ';;
2045 esac
2046 eval with_$ac_useropt=no ;;
2047
2048 --x)
2049 # Obsolete; use --with-x.
2050 with_x=yes ;;
2051
2052 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2053 | --x-incl | --x-inc | --x-in | --x-i)
2054 ac_prev=x_includes ;;
2055 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2056 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2057 x_includes=$ac_optarg ;;
2058
2059 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2060 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2061 ac_prev=x_libraries ;;
2062 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2063 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2064 x_libraries=$ac_optarg ;;
2065
2066 -*) as_fn_error "unrecognized option: \`$ac_option'
2067Try \`$0 --help' for more information."
2068 ;;
2069
2070 *=*)
2071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2072 # Reject names that are not valid shell variable names.
2073 case $ac_envvar in #(
2074 '' | [0-9]* | *[!_$as_cr_alnum]* )
2075 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2076 esac
2077 eval $ac_envvar=\$ac_optarg
2078 export $ac_envvar ;;
2079
2080 *)
2081 # FIXME: should be removed in autoconf 3.0.
2082 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2084 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2086 ;;
2087
2088 esac
2089done
2090
2091if test -n "$ac_prev"; then
2092 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2093 as_fn_error "missing argument to $ac_option"
2094fi
2095
2096if test -n "$ac_unrecognized_opts"; then
2097 case $enable_option_checking in
2098 no) ;;
2099 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2100 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2101 esac
2102fi
2103
2104# Check all directory arguments for consistency.
2105for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2106 datadir sysconfdir sharedstatedir localstatedir includedir \
2107 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2108 libdir localedir mandir
2109do
2110 eval ac_val=\$$ac_var
2111 # Remove trailing slashes.
2112 case $ac_val in
2113 */ )
2114 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2115 eval $ac_var=\$ac_val;;
2116 esac
2117 # Be sure to have absolute directory names.
2118 case $ac_val in
2119 [\\/$]* | ?:[\\/]* ) continue;;
2120 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2121 esac
2122 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2123done
2124
2125# There might be people who depend on the old broken behavior: `$host'
2126# used to hold the argument of --host etc.
2127# FIXME: To remove some day.
2128build=$build_alias
2129host=$host_alias
2130target=$target_alias
2131
2132# FIXME: To remove some day.
2133if test "x$host_alias" != x; then
2134 if test "x$build_alias" = x; then
2135 cross_compiling=maybe
2136 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2137 If a cross compiler is detected then cross compile mode will be used." >&2
2138 elif test "x$build_alias" != "x$host_alias"; then
2139 cross_compiling=yes
2140 fi
2141fi
2142
2143ac_tool_prefix=
2144test -n "$host_alias" && ac_tool_prefix=$host_alias-
2145
2146test "$silent" = yes && exec 6>/dev/null
2147
2148
2149ac_pwd=`pwd` && test -n "$ac_pwd" &&
2150ac_ls_di=`ls -di .` &&
2151ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2152 as_fn_error "working directory cannot be determined"
2153test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2154 as_fn_error "pwd does not report name of working directory"
2155
2156
2157# Find the source files, if location was not specified.
2158if test -z "$srcdir"; then
2159 ac_srcdir_defaulted=yes
2160 # Try the directory containing this script, then the parent directory.
2161 ac_confdir=`$as_dirname -- "$as_myself" ||
2162$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2163 X"$as_myself" : 'X\(//\)[^/]' \| \
2164 X"$as_myself" : 'X\(//\)$' \| \
2165 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2166$as_echo X"$as_myself" |
2167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2168 s//\1/
2169 q
2170 }
2171 /^X\(\/\/\)[^/].*/{
2172 s//\1/
2173 q
2174 }
2175 /^X\(\/\/\)$/{
2176 s//\1/
2177 q
2178 }
2179 /^X\(\/\).*/{
2180 s//\1/
2181 q
2182 }
2183 s/.*/./; q'`
2184 srcdir=$ac_confdir
2185 if test ! -r "$srcdir/$ac_unique_file"; then
2186 srcdir=..
2187 fi
2188else
2189 ac_srcdir_defaulted=no
2190fi
2191if test ! -r "$srcdir/$ac_unique_file"; then
2192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2193 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2194fi
2195ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2196ac_abs_confdir=`(
2197 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2198 pwd)`
2199# When building in place, set srcdir=.
2200if test "$ac_abs_confdir" = "$ac_pwd"; then
2201 srcdir=.
2202fi
2203# Remove unnecessary trailing slashes from srcdir.
2204# Double slashes in file names in object file debugging info
2205# mess up M-x gdb in Emacs.
2206case $srcdir in
2207*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2208esac
2209for ac_var in $ac_precious_vars; do
2210 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2211 eval ac_env_${ac_var}_value=\$${ac_var}
2212 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2213 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2214done
2215
2216#
2217# Report the --help message.
2218#
2219if test "$ac_init_help" = "long"; then
2220 # Omit some internal or obsolete options to make the list less imposing.
2221 # This message is too long to be a string in the A/UX 3.1 sh.
2222 cat <<_ACEOF
2223\`configure' configures this package to adapt to many kinds of systems.
2224
2225Usage: $0 [OPTION]... [VAR=VALUE]...
2226
2227To assign environment variables (e.g., CC, CFLAGS...), specify them as
2228VAR=VALUE. See below for descriptions of some of the useful variables.
2229
2230Defaults for the options are specified in brackets.
2231
2232Configuration:
2233 -h, --help display this help and exit
2234 --help=short display options specific to this package
2235 --help=recursive display the short help of all the included packages
2236 -V, --version display version information and exit
2237 -q, --quiet, --silent do not print \`checking...' messages
2238 --cache-file=FILE cache test results in FILE [disabled]
2239 -C, --config-cache alias for \`--cache-file=config.cache'
2240 -n, --no-create do not create output files
2241 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2242
2243Installation directories:
2244 --prefix=PREFIX install architecture-independent files in PREFIX
2245 [$ac_default_prefix]
2246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2247 [PREFIX]
2248
2249By default, \`make install' will install all the files in
2250\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2251an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2252for instance \`--prefix=\$HOME'.
2253
2254For better control, use the options below.
2255
2256Fine tuning of the installation directories:
2257 --bindir=DIR user executables [EPREFIX/bin]
2258 --sbindir=DIR system admin executables [EPREFIX/sbin]
2259 --libexecdir=DIR program executables [EPREFIX/libexec]
2260 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2261 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2262 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2263 --libdir=DIR object code libraries [EPREFIX/lib]
2264 --includedir=DIR C header files [PREFIX/include]
2265 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2266 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2267 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2268 --infodir=DIR info documentation [DATAROOTDIR/info]
2269 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2270 --mandir=DIR man documentation [DATAROOTDIR/man]
2271 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2272 --htmldir=DIR html documentation [DOCDIR]
2273 --dvidir=DIR dvi documentation [DOCDIR]
2274 --pdfdir=DIR pdf documentation [DOCDIR]
2275 --psdir=DIR ps documentation [DOCDIR]
2276_ACEOF
2277
2278 cat <<\_ACEOF
2279
2280Program names:
2281 --program-prefix=PREFIX prepend PREFIX to installed program names
2282 --program-suffix=SUFFIX append SUFFIX to installed program names
2283 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2284
2285System types:
2286 --build=BUILD configure for building on BUILD [guessed]
2287 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2288 --target=TARGET configure for building compilers for TARGET [HOST]
2289_ACEOF
2290fi
2291
2292if test -n "$ac_init_help"; then
2293
2294 cat <<\_ACEOF
2295
2296Optional Features:
2297 --disable-option-checking ignore unrecognized --enable/--with options
2298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2300 --enable-maintainer-mode enable make rules and dependencies not useful
2301 (and sometimes confusing) to the casual installer
2196f55f 2302 --disable-largefile omit support for large files
c971b7fa
PA
2303 --disable-dependency-tracking speeds up one-time build
2304 --enable-dependency-tracking do not reject slow dependency extractors
2305
2306Some influential environment variables:
2307 CC C compiler command
2308 CFLAGS C compiler flags
2309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2310 nonstandard directory <lib dir>
2311 LIBS libraries to pass to the linker, e.g. -l<library>
2312 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2313 you have headers in a nonstandard directory <include dir>
2314 CPP C preprocessor
2315
2316Use these variables to override the choices made by `configure' or to help
2317it to find libraries and programs with nonstandard names/locations.
2318
2319Report bugs to the package provider.
2320_ACEOF
2321ac_status=$?
2322fi
2323
2324if test "$ac_init_help" = "recursive"; then
2325 # If there are subdirs, report their specific --help.
2326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2327 test -d "$ac_dir" ||
2328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2329 continue
2330 ac_builddir=.
2331
2332case "$ac_dir" in
2333.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2334*)
2335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2336 # A ".." for each directory in $ac_dir_suffix.
2337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2338 case $ac_top_builddir_sub in
2339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2341 esac ;;
2342esac
2343ac_abs_top_builddir=$ac_pwd
2344ac_abs_builddir=$ac_pwd$ac_dir_suffix
2345# for backward compatibility:
2346ac_top_builddir=$ac_top_build_prefix
2347
2348case $srcdir in
2349 .) # We are building in place.
2350 ac_srcdir=.
2351 ac_top_srcdir=$ac_top_builddir_sub
2352 ac_abs_top_srcdir=$ac_pwd ;;
2353 [\\/]* | ?:[\\/]* ) # Absolute name.
2354 ac_srcdir=$srcdir$ac_dir_suffix;
2355 ac_top_srcdir=$srcdir
2356 ac_abs_top_srcdir=$srcdir ;;
2357 *) # Relative name.
2358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2359 ac_top_srcdir=$ac_top_build_prefix$srcdir
2360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2361esac
2362ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2363
2364 cd "$ac_dir" || { ac_status=$?; continue; }
2365 # Check for guested configure.
2366 if test -f "$ac_srcdir/configure.gnu"; then
2367 echo &&
2368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2369 elif test -f "$ac_srcdir/configure"; then
2370 echo &&
2371 $SHELL "$ac_srcdir/configure" --help=recursive
2372 else
2373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2374 fi || ac_status=$?
2375 cd "$ac_pwd" || { ac_status=$?; break; }
2376 done
2377fi
2378
2379test -n "$ac_init_help" && exit $ac_status
2380if $ac_init_version; then
2381 cat <<\_ACEOF
2382configure
2383generated by GNU Autoconf 2.64
2384
2385Copyright (C) 2009 Free Software Foundation, Inc.
2386This configure script is free software; the Free Software Foundation
2387gives unlimited permission to copy, distribute and modify it.
2388_ACEOF
2389 exit
2390fi
2391
2392## ------------------------ ##
2393## Autoconf initialization. ##
2394## ------------------------ ##
2395
2396# ac_fn_c_try_compile LINENO
2397# --------------------------
2398# Try to compile conftest.$ac_ext, and return whether this succeeded.
2399ac_fn_c_try_compile ()
2400{
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 rm -f conftest.$ac_objext
2403 if { { ac_try="$ac_compile"
2404case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407esac
2408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409$as_echo "$ac_try_echo"; } >&5
2410 (eval "$ac_compile") 2>conftest.err
2411 ac_status=$?
2412 if test -s conftest.err; then
2413 grep -v '^ *+' conftest.err >conftest.er1
2414 cat conftest.er1 >&5
2415 mv -f conftest.er1 conftest.err
2416 fi
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; } && {
2419 test -z "$ac_c_werror_flag" ||
2420 test ! -s conftest.err
2421 } && test -s conftest.$ac_objext; then :
2422 ac_retval=0
2423else
2424 $as_echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_retval=1
2428fi
2429 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 return $ac_retval
2431
2432} # ac_fn_c_try_compile
2433
2434# ac_fn_c_try_cpp LINENO
2435# ----------------------
2436# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437ac_fn_c_try_cpp ()
2438{
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if { { ac_try="$ac_cpp conftest.$ac_ext"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446$as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448 ac_status=$?
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2453 fi
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; } >/dev/null && {
2456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2458 }; then :
2459 ac_retval=0
2460else
2461 $as_echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_retval=1
2465fi
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 return $ac_retval
2468
2469} # ac_fn_c_try_cpp
2470
2471# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2472# -------------------------------------------------------
2473# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2474# the include files in INCLUDES and setting the cache variable VAR
2475# accordingly.
2476ac_fn_c_check_header_mongrel ()
2477{
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481$as_echo_n "checking for $2... " >&6; }
2482if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2483 $as_echo_n "(cached) " >&6
2484fi
2485eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487$as_echo "$ac_res" >&6; }
2488else
2489 # Is the header compilable?
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2491$as_echo_n "checking $2 usability... " >&6; }
2492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493/* end confdefs.h. */
2494$4
2495#include <$2>
2496_ACEOF
2497if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_header_compiler=yes
2499else
2500 ac_header_compiler=no
2501fi
2502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2504$as_echo "$ac_header_compiler" >&6; }
2505
2506# Is the header present?
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2508$as_echo_n "checking $2 presence... " >&6; }
2509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h. */
2511#include <$2>
2512_ACEOF
2513if ac_fn_c_try_cpp "$LINENO"; then :
2514 ac_header_preproc=yes
2515else
2516 ac_header_preproc=no
2517fi
2518rm -f conftest.err conftest.$ac_ext
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2520$as_echo "$ac_header_preproc" >&6; }
2521
2522# So? What about this header?
2523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2524 yes:no: )
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2526$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2528$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2529 ;;
2530 no:yes:* )
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2532$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2534$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2536$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2538$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2540$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2541 ;;
2542esac
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544$as_echo_n "checking for $2... " >&6; }
2545if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2547else
2548 eval "$3=\$ac_header_compiler"
2549fi
2550eval ac_res=\$$3
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552$as_echo "$ac_res" >&6; }
2553fi
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2555
2556} # ac_fn_c_check_header_mongrel
2557
2558# ac_fn_c_try_run LINENO
2559# ----------------------
2560# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2561# that executables *can* be run.
2562ac_fn_c_try_run ()
2563{
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 if { { ac_try="$ac_link"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571$as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2576 { { case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581$as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; }; }; then :
2586 ac_retval=0
2587else
2588 $as_echo "$as_me: program exited with status $ac_status" >&5
2589 $as_echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_retval=$ac_status
2593fi
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596 return $ac_retval
2597
2598} # ac_fn_c_try_run
2599
2600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2601# -------------------------------------------------------
2602# Tests whether HEADER exists and can be compiled using the include files in
2603# INCLUDES, setting the cache variable VAR accordingly.
2604ac_fn_c_check_header_compile ()
2605{
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608$as_echo_n "checking for $2... " >&6; }
2609if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2610 $as_echo_n "(cached) " >&6
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$4
2615#include <$2>
2616_ACEOF
2617if ac_fn_c_try_compile "$LINENO"; then :
2618 eval "$3=yes"
2619else
2620 eval "$3=no"
2621fi
2622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623fi
2624eval ac_res=\$$3
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626$as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2628
2629} # ac_fn_c_check_header_compile
2630
2631# ac_fn_c_try_link LINENO
2632# -----------------------
2633# Try to link conftest.$ac_ext, and return whether this succeeded.
2634ac_fn_c_try_link ()
2635{
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2639case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642esac
2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644$as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2646 ac_status=$?
2647 if test -s conftest.err; then
2648 grep -v '^ *+' conftest.err >conftest.er1
2649 cat conftest.er1 >&5
2650 mv -f conftest.er1 conftest.err
2651 fi
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest$ac_exeext
2659 }; then :
2660 ac_retval=0
2661else
2662 $as_echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 ac_retval=1
2666fi
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2673 return $ac_retval
2674
2675} # ac_fn_c_try_link
2676
8690e634
JK
2677# ac_fn_c_check_func LINENO FUNC VAR
2678# ----------------------------------
2679# Tests whether FUNC exists, setting the cache variable VAR accordingly
2680ac_fn_c_check_func ()
2681{
2682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684$as_echo_n "checking for $2... " >&6; }
2685if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689/* end confdefs.h. */
2690/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2692#define $2 innocuous_$2
2693
2694/* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $2 (); below.
2696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2697 <limits.h> exists even on freestanding compilers. */
2698
2699#ifdef __STDC__
2700# include <limits.h>
2701#else
2702# include <assert.h>
2703#endif
2704
2705#undef $2
2706
2707/* Override any GCC internal prototype to avoid an error.
2708 Use char because int might match the return type of a GCC
2709 builtin and then its argument prototype would still apply. */
2710#ifdef __cplusplus
2711extern "C"
2712#endif
2713char $2 ();
2714/* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717#if defined __stub_$2 || defined __stub___$2
2718choke me
2719#endif
2720
2721int
2722main ()
2723{
2724return $2 ();
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729if ac_fn_c_try_link "$LINENO"; then :
2730 eval "$3=yes"
2731else
2732 eval "$3=no"
2733fi
2734rm -f core conftest.err conftest.$ac_objext \
2735 conftest$ac_exeext conftest.$ac_ext
2736fi
2737eval ac_res=\$$3
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739$as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2741
2742} # ac_fn_c_check_func
2743
8986e351
TT
2744# ac_fn_c_check_decl LINENO SYMBOL VAR
2745# ------------------------------------
2746# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2747ac_fn_c_check_decl ()
2748{
2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2751$as_echo_n "checking whether $2 is declared... " >&6; }
2752if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2753 $as_echo_n "(cached) " >&6
2754else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756/* end confdefs.h. */
2757$4
2758int
2759main ()
2760{
2761#ifndef $2
2762 (void) $2;
2763#endif
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_c_try_compile "$LINENO"; then :
2770 eval "$3=yes"
2771else
2772 eval "$3=no"
2773fi
2774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775fi
2776eval ac_res=\$$3
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778$as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2780
2781} # ac_fn_c_check_decl
2782
c971b7fa
PA
2783# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2784# --------------------------------------------
2785# Tries to find the compile-time value of EXPR in a program that includes
2786# INCLUDES, setting VAR accordingly. Returns whether the value could be
2787# computed
2788ac_fn_c_compute_int ()
2789{
2790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2791 if test "$cross_compiling" = yes; then
2792 # Depending upon the size, compute the lo and hi bounds.
2793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h. */
2795$4
2796int
2797main ()
2798{
2799static int test_array [1 - 2 * !(($2) >= 0)];
2800test_array [0] = 0
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_lo=0 ac_mid=0
2808 while :; do
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h. */
2811$4
2812int
2813main ()
2814{
2815static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2816test_array [0] = 0
2817
2818 ;
2819 return 0;
2820}
2821_ACEOF
2822if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_hi=$ac_mid; break
2824else
2825 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2826 if test $ac_lo -le $ac_mid; then
2827 ac_lo= ac_hi=
2828 break
2829 fi
2830 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2831fi
2832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 done
2834else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837$4
2838int
2839main ()
2840{
2841static int test_array [1 - 2 * !(($2) < 0)];
2842test_array [0] = 0
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848if ac_fn_c_try_compile "$LINENO"; then :
2849 ac_hi=-1 ac_mid=-1
2850 while :; do
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853$4
2854int
2855main ()
2856{
2857static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2858test_array [0] = 0
2859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_lo=$ac_mid; break
2866else
2867 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2868 if test $ac_mid -le $ac_hi; then
2869 ac_lo= ac_hi=
2870 break
2871 fi
2872 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 done
2876else
2877 ac_lo= ac_hi=
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880fi
2881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882# Binary search between lo and hi bounds.
2883while test "x$ac_lo" != "x$ac_hi"; do
2884 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887$4
2888int
2889main ()
2890{
2891static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2892test_array [0] = 0
2893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_hi=$ac_mid
2900else
2901 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2902fi
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904done
2905case $ac_lo in #((
2906?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2907'') ac_retval=1 ;;
2908esac
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913static long int longval () { return $2; }
2914static unsigned long int ulongval () { return $2; }
2915#include <stdio.h>
2916#include <stdlib.h>
2917int
2918main ()
2919{
2920
2921 FILE *f = fopen ("conftest.val", "w");
2922 if (! f)
2923 return 1;
2924 if (($2) < 0)
2925 {
2926 long int i = longval ();
2927 if (i != ($2))
2928 return 1;
2929 fprintf (f, "%ld", i);
2930 }
2931 else
2932 {
2933 unsigned long int i = ulongval ();
2934 if (i != ($2))
2935 return 1;
2936 fprintf (f, "%lu", i);
2937 }
2938 /* Do not output a trailing newline, as this causes \r\n confusion
2939 on some platforms. */
2940 return ferror (f) || fclose (f) != 0;
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946if ac_fn_c_try_run "$LINENO"; then :
2947 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2948else
2949 ac_retval=1
2950fi
2951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2952 conftest.$ac_objext conftest.beam conftest.$ac_ext
2953rm -f conftest.val
2954
2955 fi
2956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2957 return $ac_retval
2958
2959} # ac_fn_c_compute_int
2960
8690e634
JK
2961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2962# -------------------------------------------
2963# Tests whether TYPE exists after having included INCLUDES, setting cache
2964# variable VAR accordingly.
2965ac_fn_c_check_type ()
c971b7fa
PA
2966{
2967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2969$as_echo_n "checking for $2... " >&6; }
2970if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2971 $as_echo_n "(cached) " >&6
2972else
8690e634 2973 eval "$3=no"
c971b7fa
PA
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975/* end confdefs.h. */
8690e634 2976$4
c971b7fa
PA
2977int
2978main ()
2979{
8690e634
JK
2980if (sizeof ($2))
2981 return 0;
c971b7fa
PA
2982 ;
2983 return 0;
2984}
2985_ACEOF
8690e634 2986if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h. */
2989$4
2990int
2991main ()
2992{
8690e634
JK
2993if (sizeof (($2)))
2994 return 0;
c971b7fa
PA
2995 ;
2996 return 0;
2997}
2998_ACEOF
2999if ac_fn_c_try_compile "$LINENO"; then :
8690e634 3000
c971b7fa 3001else
8690e634
JK
3002 eval "$3=yes"
3003fi
3004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
3005fi
3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007fi
3008eval ac_res=\$$3
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3010$as_echo "$ac_res" >&6; }
3011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3012
8690e634 3013} # ac_fn_c_check_type
c971b7fa
PA
3014cat >config.log <<_ACEOF
3015This file contains any messages produced by compilers while
3016running configure, to aid debugging if configure makes a mistake.
3017
3018It was created by $as_me, which was
3019generated by GNU Autoconf 2.64. Invocation command line was
3020
3021 $ $0 $@
3022
3023_ACEOF
3024exec 5>>config.log
3025{
3026cat <<_ASUNAME
3027## --------- ##
3028## Platform. ##
3029## --------- ##
3030
3031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3032uname -m = `(uname -m) 2>/dev/null || echo unknown`
3033uname -r = `(uname -r) 2>/dev/null || echo unknown`
3034uname -s = `(uname -s) 2>/dev/null || echo unknown`
3035uname -v = `(uname -v) 2>/dev/null || echo unknown`
3036
3037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3038/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3039
3040/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3041/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3043/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3044/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3045/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3046/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3047
3048_ASUNAME
3049
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 $as_echo "PATH: $as_dir"
3056 done
3057IFS=$as_save_IFS
3058
3059} >&5
3060
3061cat >&5 <<_ACEOF
3062
3063
3064## ----------- ##
3065## Core tests. ##
3066## ----------- ##
3067
3068_ACEOF
3069
3070
3071# Keep a trace of the command line.
3072# Strip out --no-create and --no-recursion so they do not pile up.
3073# Strip out --silent because we don't want to record it for future runs.
3074# Also quote any args containing shell meta-characters.
3075# Make two passes to allow for proper duplicate-argument suppression.
3076ac_configure_args=
3077ac_configure_args0=
3078ac_configure_args1=
3079ac_must_keep_next=false
3080for ac_pass in 1 2
3081do
3082 for ac_arg
3083 do
3084 case $ac_arg in
3085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3087 | -silent | --silent | --silen | --sile | --sil)
3088 continue ;;
3089 *\'*)
3090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3091 esac
3092 case $ac_pass in
3093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3094 2)
3095 as_fn_append ac_configure_args1 " '$ac_arg'"
3096 if test $ac_must_keep_next = true; then
3097 ac_must_keep_next=false # Got value, back to normal.
3098 else
3099 case $ac_arg in
3100 *=* | --config-cache | -C | -disable-* | --disable-* \
3101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3103 | -with-* | --with-* | -without-* | --without-* | --x)
3104 case "$ac_configure_args0 " in
3105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3106 esac
3107 ;;
3108 -* ) ac_must_keep_next=true ;;
3109 esac
3110 fi
3111 as_fn_append ac_configure_args " '$ac_arg'"
3112 ;;
3113 esac
3114 done
3115done
3116{ ac_configure_args0=; unset ac_configure_args0;}
3117{ ac_configure_args1=; unset ac_configure_args1;}
3118
3119# When interrupted or exit'd, cleanup temporary files, and complete
3120# config.log. We remove comments because anyway the quotes in there
3121# would cause problems or look ugly.
3122# WARNING: Use '\'' to represent an apostrophe within the trap.
3123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3124trap 'exit_status=$?
3125 # Save into config.log some information that might help in debugging.
3126 {
3127 echo
3128
3129 cat <<\_ASBOX
3130## ---------------- ##
3131## Cache variables. ##
3132## ---------------- ##
3133_ASBOX
3134 echo
3135 # The following way of writing the cache mishandles newlines in values,
3136(
3137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3138 eval ac_val=\$$ac_var
3139 case $ac_val in #(
3140 *${as_nl}*)
3141 case $ac_var in #(
3142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3144 esac
3145 case $ac_var in #(
3146 _ | IFS | as_nl) ;; #(
3147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3148 *) { eval $ac_var=; unset $ac_var;} ;;
3149 esac ;;
3150 esac
3151 done
3152 (set) 2>&1 |
3153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3154 *${as_nl}ac_space=\ *)
3155 sed -n \
3156 "s/'\''/'\''\\\\'\'''\''/g;
3157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3158 ;; #(
3159 *)
3160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3161 ;;
3162 esac |
3163 sort
3164)
3165 echo
3166
3167 cat <<\_ASBOX
3168## ----------------- ##
3169## Output variables. ##
3170## ----------------- ##
3171_ASBOX
3172 echo
3173 for ac_var in $ac_subst_vars
3174 do
3175 eval ac_val=\$$ac_var
3176 case $ac_val in
3177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3178 esac
3179 $as_echo "$ac_var='\''$ac_val'\''"
3180 done | sort
3181 echo
3182
3183 if test -n "$ac_subst_files"; then
3184 cat <<\_ASBOX
3185## ------------------- ##
3186## File substitutions. ##
3187## ------------------- ##
3188_ASBOX
3189 echo
3190 for ac_var in $ac_subst_files
3191 do
3192 eval ac_val=\$$ac_var
3193 case $ac_val in
3194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3195 esac
3196 $as_echo "$ac_var='\''$ac_val'\''"
3197 done | sort
3198 echo
3199 fi
3200
3201 if test -s confdefs.h; then
3202 cat <<\_ASBOX
3203## ----------- ##
3204## confdefs.h. ##
3205## ----------- ##
3206_ASBOX
3207 echo
3208 cat confdefs.h
3209 echo
3210 fi
3211 test "$ac_signal" != 0 &&
3212 $as_echo "$as_me: caught signal $ac_signal"
3213 $as_echo "$as_me: exit $exit_status"
3214 } >&5
3215 rm -f core *.core core.conftest.* &&
3216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3217 exit $exit_status
3218' 0
3219for ac_signal in 1 2 13 15; do
3220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3221done
3222ac_signal=0
3223
3224# confdefs.h avoids OS command line length limits that DEFS can exceed.
3225rm -f -r conftest* confdefs.h
3226
3227$as_echo "/* confdefs.h */" > confdefs.h
3228
3229# Predefined preprocessor variables.
3230
3231cat >>confdefs.h <<_ACEOF
3232#define PACKAGE_NAME "$PACKAGE_NAME"
3233_ACEOF
3234
3235cat >>confdefs.h <<_ACEOF
3236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3237_ACEOF
3238
3239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE_VERSION "$PACKAGE_VERSION"
3241_ACEOF
3242
3243cat >>confdefs.h <<_ACEOF
3244#define PACKAGE_STRING "$PACKAGE_STRING"
3245_ACEOF
3246
3247cat >>confdefs.h <<_ACEOF
3248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3249_ACEOF
3250
3251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_URL "$PACKAGE_URL"
3253_ACEOF
3254
3255
3256# Let the site file select an alternate cache file if it wants to.
3257# Prefer an explicitly selected file to automatically selected ones.
3258ac_site_file1=NONE
3259ac_site_file2=NONE
3260if test -n "$CONFIG_SITE"; then
3261 ac_site_file1=$CONFIG_SITE
3262elif test "x$prefix" != xNONE; then
3263 ac_site_file1=$prefix/share/config.site
3264 ac_site_file2=$prefix/etc/config.site
3265else
3266 ac_site_file1=$ac_default_prefix/share/config.site
3267 ac_site_file2=$ac_default_prefix/etc/config.site
3268fi
3269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3270do
3271 test "x$ac_site_file" = xNONE && continue
3272 if test -r "$ac_site_file"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3275 sed 's/^/| /' "$ac_site_file" >&5
3276 . "$ac_site_file"
3277 fi
3278done
3279
3280if test -r "$cache_file"; then
3281 # Some versions of bash will fail to source /dev/null (special
3282 # files actually), so we avoid doing that.
3283 if test -f "$cache_file"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3285$as_echo "$as_me: loading cache $cache_file" >&6;}
3286 case $cache_file in
3287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3288 *) . "./$cache_file";;
3289 esac
3290 fi
3291else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3293$as_echo "$as_me: creating cache $cache_file" >&6;}
3294 >$cache_file
3295fi
3296
98399780
YQ
3297as_fn_append ac_func_list " canonicalize_file_name"
3298as_fn_append ac_func_list " getcwd"
3299as_fn_append ac_func_list " readlink"
3300as_fn_append ac_func_list " realpath"
3301as_fn_append ac_header_list " sys/param.h"
e26b6bb0 3302as_fn_append ac_header_list " dirent.h"
3574124b
PA
3303as_fn_append ac_func_list " btowc"
3304as_fn_append ac_func_list " isblank"
3305as_fn_append ac_func_list " iswctype"
3306as_fn_append ac_func_list " mbsrtowcs"
3307as_fn_append ac_func_list " mempcpy"
3308as_fn_append ac_func_list " wmemchr"
3309as_fn_append ac_func_list " wmemcpy"
3310as_fn_append ac_func_list " wmempcpy"
3311as_fn_append ac_header_list " wctype.h"
8690e634 3312gl_fnmatch_required=GNU
4a626d0a
PA
3313as_fn_append ac_header_list " sys/time.h"
3314as_fn_append ac_header_list " sys/socket.h"
3315as_fn_append ac_func_list " gettimeofday"
3574124b
PA
3316as_fn_append ac_header_list " wchar.h"
3317as_fn_append ac_header_list " stdint.h"
3318as_fn_append ac_header_list " inttypes.h"
3319as_fn_append ac_header_list " unistd.h"
3320as_fn_append ac_func_list " symlink"
f45c62c4 3321as_fn_append ac_func_list " lstat"
3574124b
PA
3322as_fn_append ac_header_list " math.h"
3323as_fn_append ac_func_list " mbsinit"
3324as_fn_append ac_func_list " mbrtowc"
3325as_fn_append ac_header_list " sys/mman.h"
3326as_fn_append ac_func_list " mprotect"
6a29c58e 3327as_fn_append ac_func_list " link"
09607c9e 3328as_fn_append ac_header_list " sys/stat.h"
3574124b
PA
3329as_fn_append ac_header_list " features.h"
3330as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3331# Check that the precious variables saved in the cache have kept the same
3332# value.
3333ac_cache_corrupted=false
3334for ac_var in $ac_precious_vars; do
3335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3336 eval ac_new_set=\$ac_env_${ac_var}_set
3337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3338 eval ac_new_val=\$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3340 set,)
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted=: ;;
3344 ,set)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted=: ;;
3348 ,);;
3349 *)
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w=`echo x $ac_old_val`
3353 ac_new_val_w=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted=:
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\$ac_old_val
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3364$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3366$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3367 fi;;
3368 esac
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3371 case $ac_new_val in
3372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg=$ac_var=$ac_new_val ;;
3374 esac
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3378 esac
3379 fi
3380done
3381if $ac_cache_corrupted; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3386 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3387fi
3388## -------------------- ##
3389## Main body of script. ##
3390## -------------------- ##
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399ac_config_headers="$ac_config_headers config.h:config.in"
3400
3401
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3403$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3404 # Check whether --enable-maintainer-mode was given.
3405if test "${enable_maintainer_mode+set}" = set; then :
3406 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3407else
3408 USE_MAINTAINER_MODE=no
3409fi
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3412$as_echo "$USE_MAINTAINER_MODE" >&6; }
3413 if test $USE_MAINTAINER_MODE = yes; then
3414 MAINTAINER_MODE_TRUE=
3415 MAINTAINER_MODE_FALSE='#'
3416else
3417 MAINTAINER_MODE_TRUE='#'
3418 MAINTAINER_MODE_FALSE=
3419fi
3420
3421 MAINT=$MAINTAINER_MODE_TRUE
3422
3423
3424
3425ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432set dummy ${ac_tool_prefix}gcc; ac_word=$2
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
3435if test "${ac_cv_prog_CC+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3437else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452done
3453 done
3454IFS=$as_save_IFS
3455
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468fi
3469if test -z "$ac_cv_prog_CC"; then
3470 ac_ct_CC=$CC
3471 # Extract the first word of "gcc", so it can be a program name with args.
3472set dummy gcc; ac_word=$2
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474$as_echo_n "checking for $ac_word... " >&6; }
3475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477else
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480else
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC="gcc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492done
3493 done
3494IFS=$as_save_IFS
3495
3496fi
3497fi
3498ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501$as_echo "$ac_ct_CC" >&6; }
3502else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505fi
3506
3507 if test "x$ac_ct_CC" = x; then
3508 CC=""
3509 else
3510 case $cross_compiling:$ac_tool_warned in
3511yes:)
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514ac_tool_warned=yes ;;
3515esac
3516 CC=$ac_ct_CC
3517 fi
3518else
3519 CC="$ac_cv_prog_CC"
3520fi
3521
3522if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3525set dummy ${ac_tool_prefix}cc; ac_word=$2
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527$as_echo_n "checking for $ac_word... " >&6; }
3528if test "${ac_cv_prog_CC+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_CC="${ac_tool_prefix}cc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545done
3546 done
3547IFS=$as_save_IFS
3548
3549fi
3550fi
3551CC=$ac_cv_prog_CC
3552if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554$as_echo "$CC" >&6; }
3555else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558fi
3559
3560
3561 fi
3562fi
3563if test -z "$CC"; then
3564 # Extract the first word of "cc", so it can be a program name with args.
3565set dummy cc; ac_word=$2
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if test "${ac_cv_prog_CC+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570else
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573else
3574 ac_prog_rejected=no
3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3583 ac_prog_rejected=yes
3584 continue
3585 fi
3586 ac_cv_prog_CC="cc"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3589 fi
3590done
3591 done
3592IFS=$as_save_IFS
3593
3594if test $ac_prog_rejected = yes; then
3595 # We found a bogon in the path, so make sure we never use it.
3596 set dummy $ac_cv_prog_CC
3597 shift
3598 if test $# != 0; then
3599 # We chose a different compiler from the bogus one.
3600 # However, it has the same basename, so the bogon will be chosen
3601 # first if we set CC to just the basename; use the full file name.
3602 shift
3603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3604 fi
3605fi
3606fi
3607fi
3608CC=$ac_cv_prog_CC
3609if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611$as_echo "$CC" >&6; }
3612else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614$as_echo "no" >&6; }
3615fi
3616
3617
3618fi
3619if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 for ac_prog in cl.exe
3622 do
3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644done
3645 done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650CC=$ac_cv_prog_CC
3651if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653$as_echo "$CC" >&6; }
3654else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660 test -n "$CC" && break
3661 done
3662fi
3663if test -z "$CC"; then
3664 ac_ct_CC=$CC
3665 for ac_prog in cl.exe
3666do
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668set dummy $ac_prog; ac_word=$2
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670$as_echo_n "checking for $ac_word... " >&6; }
3671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3673else
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676else
3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC="$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688done
3689 done
3690IFS=$as_save_IFS
3691
3692fi
3693fi
3694ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697$as_echo "$ac_ct_CC" >&6; }
3698else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700$as_echo "no" >&6; }
3701fi
3702
3703
3704 test -n "$ac_ct_CC" && break
3705done
3706
3707 if test "x$ac_ct_CC" = x; then
3708 CC=""
3709 else
3710 case $cross_compiling:$ac_tool_warned in
3711yes:)
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714ac_tool_warned=yes ;;
3715esac
3716 CC=$ac_ct_CC
3717 fi
3718fi
3719
3720fi
3721
3722
3723test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725as_fn_error "no acceptable C compiler found in \$PATH
3726See \`config.log' for more details." "$LINENO" 5; }
3727
3728# Provide some information about the compiler.
3729$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3730set X $ac_compile
3731ac_compiler=$2
3732for ac_option in --version -v -V -qversion; do
3733 { { ac_try="$ac_compiler $ac_option >&5"
3734case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739$as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3741 ac_status=$?
3742 if test -s conftest.err; then
3743 sed '10a\
3744... rest of stderr output deleted ...
3745 10q' conftest.err >conftest.er1
3746 cat conftest.er1 >&5
3747 rm -f conftest.er1 conftest.err
3748 fi
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3751done
3752
3753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h. */
3755#include <stdio.h>
3756int
3757main ()
3758{
3759FILE *f = fopen ("conftest.out", "w");
3760 return ferror (f) || fclose (f) != 0;
3761
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766ac_clean_files_save=$ac_clean_files
3767ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3768# Try to create an executable without -o first, disregard a.out.
3769# It will help us diagnose broken compilers, and finding out an intuition
3770# of exeext.
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3772$as_echo_n "checking for C compiler default output file name... " >&6; }
3773ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774
3775# The possible output files:
3776ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777
3778ac_rmfiles=
3779for ac_file in $ac_files
3780do
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784 esac
3785done
3786rm -f $ac_rmfiles
3787
3788if { { ac_try="$ac_link_default"
3789case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792esac
3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794$as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3796 ac_status=$?
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801# in a Makefile. We should not override ac_cv_exeext if it was cached,
3802# so that the user can short-circuit this test for compilers unknown to
3803# Autoconf.
3804for ac_file in $ac_files ''
3805do
3806 test -f "$ac_file" || continue
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3809 ;;
3810 [ab].out )
3811 # We found the default executable, but exeext='' is most
3812 # certainly right.
3813 break;;
3814 *.* )
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3816 then :; else
3817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818 fi
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3823 # actually working.
3824 break;;
3825 * )
3826 break;;
3827 esac
3828done
3829test "$ac_cv_exeext" = no && ac_cv_exeext=
3830
3831else
3832 ac_file=''
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3835$as_echo "$ac_file" >&6; }
3836if test -z "$ac_file"; then :
3837 $as_echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842{ as_fn_set_status 77
3843as_fn_error "C compiler cannot create executables
3844See \`config.log' for more details." "$LINENO" 5; }; }
3845fi
3846ac_exeext=$ac_cv_exeext
3847
3848# Check that the compiler produces executables we can run. If not, either
3849# the compiler is broken, or we cross compile.
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851$as_echo_n "checking whether the C compiler works... " >&6; }
3852# If not cross compiling, check that we can run a simple program.
3853if test "$cross_compiling" != yes; then
3854 if { ac_try='./$ac_file'
3855 { { case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860$as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; }; then
3865 cross_compiling=no
3866 else
3867 if test "$cross_compiling" = maybe; then
3868 cross_compiling=yes
3869 else
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872as_fn_error "cannot run C compiled programs.
3873If you meant to cross compile, use \`--host'.
3874See \`config.log' for more details." "$LINENO" 5; }
3875 fi
3876 fi
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879$as_echo "yes" >&6; }
3880
3881rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3882ac_clean_files=$ac_clean_files_save
3883# Check that the compiler produces executables we can run. If not, either
3884# the compiler is broken, or we cross compile.
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3886$as_echo_n "checking whether we are cross compiling... " >&6; }
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888$as_echo "$cross_compiling" >&6; }
3889
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891$as_echo_n "checking for suffix of executables... " >&6; }
3892if { { ac_try="$ac_link"
3893case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896esac
3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898$as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link") 2>&5
3900 ac_status=$?
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3904# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3905# work properly (i.e., refer to `conftest.exe'), while it won't with
3906# `rm'.
3907for ac_file in conftest.exe conftest conftest.*; do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912 break;;
3913 * ) break;;
3914 esac
3915done
3916else
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919as_fn_error "cannot compute suffix of executables: cannot compile and link
3920See \`config.log' for more details." "$LINENO" 5; }
3921fi
3922rm -f conftest$ac_cv_exeext
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3924$as_echo "$ac_cv_exeext" >&6; }
3925
3926rm -f conftest.$ac_ext
3927EXEEXT=$ac_cv_exeext
3928ac_exeext=$EXEEXT
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930$as_echo_n "checking for suffix of object files... " >&6; }
3931if test "${ac_cv_objext+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933else
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
3940
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945rm -f conftest.o conftest.obj
3946if { { ac_try="$ac_compile"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952$as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compile") 2>&5
3954 ac_status=$?
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }; then :
3957 for ac_file in conftest.o conftest.obj conftest.*; do
3958 test -f "$ac_file" || continue;
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3962 break;;
3963 esac
3964done
3965else
3966 $as_echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971as_fn_error "cannot compute suffix of object files: cannot compile
3972See \`config.log' for more details." "$LINENO" 5; }
3973fi
3974rm -f conftest.$ac_cv_objext conftest.$ac_ext
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3977$as_echo "$ac_cv_objext" >&6; }
3978OBJEXT=$ac_cv_objext
3979ac_objext=$OBJEXT
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3981$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3982if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h. */
3987
3988int
3989main ()
3990{
3991#ifndef __GNUC__
3992 choke me
3993#endif
3994
3995 ;
3996 return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_compiler_gnu=yes
4001else
4002 ac_compiler_gnu=no
4003fi
4004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005ac_cv_c_compiler_gnu=$ac_compiler_gnu
4006
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4009$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4010if test $ac_compiler_gnu = yes; then
4011 GCC=yes
4012else
4013 GCC=
4014fi
4015ac_test_CFLAGS=${CFLAGS+set}
4016ac_save_CFLAGS=$CFLAGS
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018$as_echo_n "checking whether $CC accepts -g... " >&6; }
4019if test "${ac_cv_prog_cc_g+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 ac_cv_prog_cc_g=no
4025 CFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_g=yes
4039else
4040 CFLAGS=""
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042/* end confdefs.h. */
4043
4044int
4045main ()
4046{
4047
4048 ;
4049 return 0;
4050}
4051_ACEOF
4052if ac_fn_c_try_compile "$LINENO"; then :
4053
4054else
4055 ac_c_werror_flag=$ac_save_c_werror_flag
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h. */
4059
4060int
4061main ()
4062{
4063
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_g=yes
4070fi
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079$as_echo "$ac_cv_prog_cc_g" >&6; }
4080if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4084 CFLAGS="-g -O2"
4085 else
4086 CFLAGS="-g"
4087 fi
4088else
4089 if test "$GCC" = yes; then
4090 CFLAGS="-O2"
4091 else
4092 CFLAGS=
4093 fi
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4096$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4097if test "${ac_cv_prog_cc_c89+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099else
4100 ac_cv_prog_cc_c89=no
4101ac_save_CC=$CC
4102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h. */
4104#include <stdarg.h>
4105#include <stdio.h>
4106#include <sys/types.h>
4107#include <sys/stat.h>
4108/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4109struct buf { int x; };
4110FILE * (*rcsopen) (struct buf *, struct stat *, int);
4111static char *e (p, i)
4112 char **p;
4113 int i;
4114{
4115 return p[i];
4116}
4117static char *f (char * (*g) (char **, int), char **p, ...)
4118{
4119 char *s;
4120 va_list v;
4121 va_start (v,p);
4122 s = g (p, va_arg (v,int));
4123 va_end (v);
4124 return s;
4125}
4126
4127/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4128 function prototypes and stuff, but not '\xHH' hex character constants.
4129 These don't provoke an error unfortunately, instead are silently treated
4130 as 'x'. The following induces an error, until -std is added to get
4131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4132 array size at least. It's necessary to write '\x00'==0 to get something
4133 that's true only with -std. */
4134int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4135
4136/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4137 inside strings and character constants. */
4138#define FOO(x) 'x'
4139int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4140
4141int test (int i, double x);
4142struct s1 {int (*f) (int a);};
4143struct s2 {int (*f) (double a);};
4144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4145int argc;
4146char **argv;
4147int
4148main ()
4149{
4150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 ;
4152 return 0;
4153}
4154_ACEOF
4155for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4157do
4158 CC="$ac_save_CC $ac_arg"
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_c89=$ac_arg
4161fi
4162rm -f core conftest.err conftest.$ac_objext
4163 test "x$ac_cv_prog_cc_c89" != "xno" && break
4164done
4165rm -f conftest.$ac_ext
4166CC=$ac_save_CC
4167
4168fi
4169# AC_CACHE_VAL
4170case "x$ac_cv_prog_cc_c89" in
4171 x)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173$as_echo "none needed" >&6; } ;;
4174 xno)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176$as_echo "unsupported" >&6; } ;;
4177 *)
4178 CC="$CC $ac_cv_prog_cc_c89"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4180$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4181esac
4182if test "x$ac_cv_prog_cc_c89" != xno; then :
4183
4184fi
4185
4186ac_ext=c
4187ac_cpp='$CPP $CPPFLAGS'
4188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
c971b7fa
PA
4192
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199$as_echo_n "checking how to run the C preprocessor... " >&6; }
4200# On Suns, sometimes $CPP names a directory.
4201if test -n "$CPP" && test -d "$CPP"; then
4202 CPP=
4203fi
4204if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4210 do
4211 ac_preproc_ok=false
4212for ac_c_preproc_warn_flag in '' yes
4213do
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h. */
4222#ifdef __STDC__
4223# include <limits.h>
4224#else
4225# include <assert.h>
4226#endif
4227 Syntax error
4228_ACEOF
4229if ac_fn_c_try_cpp "$LINENO"; then :
4230
4231else
4232 # Broken: fails on valid input.
4233continue
4234fi
4235rm -f conftest.err conftest.$ac_ext
4236
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241#include <ac_nonexistent.h>
4242_ACEOF
4243if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4245continue
4246else
4247 # Passes both tests.
4248ac_preproc_ok=:
4249break
4250fi
4251rm -f conftest.err conftest.$ac_ext
4252
4253done
4254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255rm -f conftest.err conftest.$ac_ext
4256if $ac_preproc_ok; then :
4257 break
4258fi
4259
4260 done
4261 ac_cv_prog_CPP=$CPP
4262
4263fi
4264 CPP=$ac_cv_prog_CPP
4265else
4266 ac_cv_prog_CPP=$CPP
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269$as_echo "$CPP" >&6; }
4270ac_preproc_ok=false
4271for ac_c_preproc_warn_flag in '' yes
4272do
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h. */
4281#ifdef __STDC__
4282# include <limits.h>
4283#else
4284# include <assert.h>
4285#endif
4286 Syntax error
4287_ACEOF
4288if ac_fn_c_try_cpp "$LINENO"; then :
4289
4290else
4291 # Broken: fails on valid input.
4292continue
4293fi
4294rm -f conftest.err conftest.$ac_ext
4295
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h. */
4300#include <ac_nonexistent.h>
4301_ACEOF
4302if ac_fn_c_try_cpp "$LINENO"; then :
4303 # Broken: success on invalid input.
4304continue
4305else
4306 # Passes both tests.
4307ac_preproc_ok=:
4308break
4309fi
4310rm -f conftest.err conftest.$ac_ext
4311
4312done
4313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314rm -f conftest.err conftest.$ac_ext
4315if $ac_preproc_ok; then :
4316
4317else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320as_fn_error "C preprocessor \"$CPP\" fails sanity check
4321See \`config.log' for more details." "$LINENO" 5; }
4322fi
4323
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333if test "${ac_cv_path_GREP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335else
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in grep ggrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4348# Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350case `"$ac_path_GREP" --version 2>&1` in
4351*GNU*)
4352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4353*)
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4357 do
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP="$ac_path_GREP"
4368 ac_path_GREP_max=$ac_count
4369 fi
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374esac
4375
4376 $ac_path_GREP_found && break 3
4377 done
4378 done
4379 done
4380IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383 fi
4384else
4385 ac_cv_path_GREP=$GREP
4386fi
4387
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390$as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP="$ac_cv_path_GREP"
4392
4393
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395$as_echo_n "checking for egrep... " >&6; }
4396if test "${ac_cv_path_EGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398else
4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4400 then ac_cv_path_EGREP="$GREP -E"
4401 else
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414# Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416case `"$ac_path_EGREP" --version 2>&1` in
4417*GNU*)
4418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4419*)
4420 ac_count=0
4421 $as_echo_n 0123456789 >"conftest.in"
4422 while :
4423 do
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP"
4434 ac_path_EGREP_max=$ac_count
4435 fi
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440esac
4441
4442 $ac_path_EGREP_found && break 3
4443 done
4444 done
4445 done
4446IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4449 fi
4450else
4451 ac_cv_path_EGREP=$EGREP
4452fi
4453
4454 fi
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457$as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP"
4459
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462$as_echo_n "checking for ANSI C header files... " >&6; }
4463if test "${ac_cv_header_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h. */
4468#include <stdlib.h>
4469#include <stdarg.h>
4470#include <string.h>
4471#include <float.h>
4472
4473int
4474main ()
4475{
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_header_stdc=yes
4483else
4484 ac_cv_header_stdc=no
4485fi
4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487
4488if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h. */
4492#include <string.h>
4493
4494_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev/null 2>&1; then :
4497
4498else
4499 ac_cv_header_stdc=no
4500fi
4501rm -f conftest*
4502
4503fi
4504
4505if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h. */
4509#include <stdlib.h>
4510
4511_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev/null 2>&1; then :
4514
4515else
4516 ac_cv_header_stdc=no
4517fi
4518rm -f conftest*
4519
4520fi
4521
4522if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4525 :
4526else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528/* end confdefs.h. */
4529#include <ctype.h>
4530#include <stdlib.h>
4531#if ((' ' & 0x0FF) == 0x020)
4532# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4534#else
4535# define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4540#endif
4541
4542#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543int
4544main ()
4545{
4546 int i;
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4550 return 2;
4551 return 0;
4552}
4553_ACEOF
4554if ac_fn_c_try_run "$LINENO"; then :
4555
4556else
4557 ac_cv_header_stdc=no
4558fi
4559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4560 conftest.$ac_objext conftest.beam conftest.$ac_ext
4561fi
4562
4563fi
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566$as_echo "$ac_cv_header_stdc" >&6; }
4567if test $ac_cv_header_stdc = yes; then
4568
4569$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4570
4571fi
4572
4573# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4576do :
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4579"
4580eval as_val=\$$as_ac_Header
4581 if test "x$as_val" = x""yes; then :
4582 cat >>confdefs.h <<_ACEOF
4583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584_ACEOF
4585
4586fi
4587
4588done
4589
4590
4591
c971b7fa
PA
4592 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4593if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4594 MINIX=yes
4595else
4596 MINIX=
4597fi
4598
4599
4600 if test "$MINIX" = yes; then
4601
4602$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4603
4604
4605$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4606
4607
4608$as_echo "#define _MINIX 1" >>confdefs.h
4609
c971b7fa 4610
4a626d0a 4611$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
c971b7fa 4612
4a626d0a 4613 fi
c971b7fa
PA
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4617$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4618if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620else
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h. */
4623
4624# define __EXTENSIONS__ 1
4625 $ac_includes_default
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_safe_to_define___extensions__=yes
4636else
4637 ac_cv_safe_to_define___extensions__=no
4638fi
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4642$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4643 test $ac_cv_safe_to_define___extensions__ = yes &&
4644 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4645
4646 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4647
4648 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4649
4650 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4651
4a626d0a
PA
4652 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4653
c971b7fa
PA
4654 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4655
4656 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4657
4a626d0a
PA
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4659$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4660if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662else
4663 ac_cv_should_define__xopen_source=no
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h. */
4666
4667 #include <wchar.h>
4668 mbstate_t x;
4669int
4670main ()
4671{
4672
4673 ;
4674 return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_compile "$LINENO"; then :
4678
4679else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682
4683 #define _XOPEN_SOURCE 500
4684 #include <wchar.h>
4685 mbstate_t x;
4686int
4687main ()
4688{
4689
4690 ;
4691 return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_should_define__xopen_source=yes
4696fi
4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698fi
4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4702$as_echo "$ac_cv_should_define__xopen_source" >&6; }
4703 test $ac_cv_should_define__xopen_source = yes &&
4704 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4705
c971b7fa
PA
4706
4707
4708
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4710$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4711if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713else
4714
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h. */
4717
4718#ifdef __ACK__
4719Amsterdam
4720#endif
4721
4722_ACEOF
4723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4725 gl_cv_c_amsterdam_compiler=yes
4726else
4727 gl_cv_c_amsterdam_compiler=no
4728fi
4729rm -f conftest*
4730
4731
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4734$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4735 if test -z "$AR"; then
4736 if test $gl_cv_c_amsterdam_compiler = yes; then
4737 AR='cc -c.a'
4738 if test -z "$ARFLAGS"; then
4739 ARFLAGS='-o'
4740 fi
4741 else
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4744set dummy ${ac_tool_prefix}ar; ac_word=$2
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_AR+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749else
4750 if test -n "$AR"; then
4751 ac_cv_prog_AR="$AR" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_AR="${ac_tool_prefix}ar"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
4765 done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770AR=$ac_cv_prog_AR
4771if test -n "$AR"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4773$as_echo "$AR" >&6; }
4774else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779
4780fi
4781if test -z "$ac_cv_prog_AR"; then
4782 ac_ct_AR=$AR
4783 # Extract the first word of "ar", so it can be a program name with args.
4784set dummy ar; ac_word=$2
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786$as_echo_n "checking for $ac_word... " >&6; }
4787if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789else
4790 if test -n "$ac_ct_AR"; then
4791 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_AR="ar"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804done
4805 done
4806IFS=$as_save_IFS
4807
4808fi
4809fi
4810ac_ct_AR=$ac_cv_prog_ac_ct_AR
4811if test -n "$ac_ct_AR"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4813$as_echo "$ac_ct_AR" >&6; }
4814else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817fi
4818
4819 if test "x$ac_ct_AR" = x; then
4820 AR="ar"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828 AR=$ac_ct_AR
4829 fi
4830else
4831 AR="$ac_cv_prog_AR"
4832fi
4833
4834 if test -z "$ARFLAGS"; then
4a626d0a 4835 ARFLAGS='cr'
c971b7fa
PA
4836 fi
4837 fi
4838 else
4839 if test -z "$ARFLAGS"; then
4a626d0a 4840 ARFLAGS='cr'
c971b7fa
PA
4841 fi
4842 fi
4843
4844
4845 if test -z "$RANLIB"; then
4846 if test $gl_cv_c_amsterdam_compiler = yes; then
4847 RANLIB=':'
4848 else
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4851set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853$as_echo_n "checking for $ac_word... " >&6; }
4854if test "${ac_cv_prog_RANLIB+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856else
4857 if test -n "$RANLIB"; then
4858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872 done
4873IFS=$as_save_IFS
4874
4875fi
4876fi
4877RANLIB=$ac_cv_prog_RANLIB
4878if test -n "$RANLIB"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4880$as_echo "$RANLIB" >&6; }
4881else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
4884fi
4885
4886
4887fi
4888if test -z "$ac_cv_prog_RANLIB"; then
4889 ac_ct_RANLIB=$RANLIB
4890 # Extract the first word of "ranlib", so it can be a program name with args.
4891set dummy ranlib; ac_word=$2
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893$as_echo_n "checking for $ac_word... " >&6; }
4894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896else
4897 if test -n "$ac_ct_RANLIB"; then
4898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_ac_ct_RANLIB="ranlib"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911done
4912 done
4913IFS=$as_save_IFS
4914
4915fi
4916fi
4917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4918if test -n "$ac_ct_RANLIB"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4920$as_echo "$ac_ct_RANLIB" >&6; }
4921else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923$as_echo "no" >&6; }
4924fi
4925
4926 if test "x$ac_ct_RANLIB" = x; then
4927 RANLIB=":"
4928 else
4929 case $cross_compiling:$ac_tool_warned in
4930yes:)
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933ac_tool_warned=yes ;;
4934esac
4935 RANLIB=$ac_ct_RANLIB
4936 fi
4937else
4938 RANLIB="$ac_cv_prog_RANLIB"
4939fi
4940
4941 fi
4942 fi
4943
4944
4945
4946
4947
4948
4949
4950
4a626d0a
PA
4951ac_aux_dir=
4952for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4953 for ac_t in install-sh install.sh shtool; do
4954 if test -f "$ac_dir/$ac_t"; then
4955 ac_aux_dir=$ac_dir
4956 ac_install_sh="$ac_aux_dir/$ac_t -c"
4957 break 2
4958 fi
4959 done
4960done
4961if test -z "$ac_aux_dir"; then
4962 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4963fi
4964
4965# These three variables are undocumented and unsupported,
4966# and are intended to be withdrawn in a future Autoconf release.
4967# They can cause serious problems if a builder's source tree is in a directory
4968# whose full name contains unusual characters.
4969ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4970ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4971ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4972
4973
4974# Make sure we can run config.sub.
4975$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4979$as_echo_n "checking build system type... " >&6; }
4980if test "${ac_cv_build+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982else
4983 ac_build_alias=$build_alias
4984test "x$ac_build_alias" = x &&
4985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4986test "x$ac_build_alias" = x &&
4987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4990
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4993$as_echo "$ac_cv_build" >&6; }
4994case $ac_cv_build in
4995*-*-*) ;;
4996*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4997esac
4998build=$ac_cv_build
4999ac_save_IFS=$IFS; IFS='-'
5000set x $ac_cv_build
5001shift
5002build_cpu=$1
5003build_vendor=$2
5004shift; shift
5005# Remember, the first character of IFS is used to create $*,
5006# except with old shells:
5007build_os=$*
5008IFS=$ac_save_IFS
5009case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5013$as_echo_n "checking host system type... " >&6; }
5014if test "${ac_cv_host+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016else
5017 if test "x$host_alias" = x; then
5018 ac_cv_host=$ac_cv_build
5019else
5020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5021 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5022fi
5023
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5026$as_echo "$ac_cv_host" >&6; }
5027case $ac_cv_host in
5028*-*-*) ;;
5029*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5030esac
5031host=$ac_cv_host
5032ac_save_IFS=$IFS; IFS='-'
5033set x $ac_cv_host
5034shift
5035host_cpu=$1
5036host_vendor=$2
5037shift; shift
5038# Remember, the first character of IFS is used to create $*,
5039# except with old shells:
5040host_os=$*
5041IFS=$ac_save_IFS
5042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5043
5044
c971b7fa
PA
5045
5046
88b48903
WN
5047
5048 # IEEE behaviour is the default on all CPUs except Alpha and SH
5049 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5050 # and the GCC 4.1.2 manual).
5051 case "$host_cpu" in
5052 alpha*)
5053 # On Alpha systems, a compiler option provides the behaviour.
5054 # See the ieee(3) manual page, also available at
5055 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5056 if test -n "$GCC"; then
5057 # GCC has the option -mieee.
5058 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5059 CPPFLAGS="$CPPFLAGS -mieee"
5060 else
5061 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5062 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5063 CPPFLAGS="$CPPFLAGS -ieee"
5064 fi
5065 ;;
5066 sh*)
5067 if test -n "$GCC"; then
5068 # GCC has the option -mieee.
5069 CPPFLAGS="$CPPFLAGS -mieee"
5070 fi
5071 ;;
5072 esac
5073
2196f55f
YQ
5074# Check whether --enable-largefile was given.
5075if test "${enable_largefile+set}" = set; then :
5076 enableval=$enable_largefile;
5077fi
5078
5079if test "$enable_largefile" != no; then
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5082$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5083if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085else
5086 ac_cv_sys_largefile_CC=no
5087 if test "$GCC" != yes; then
5088 ac_save_CC=$CC
5089 while :; do
5090 # IRIX 6.2 and later do not support large files by default,
5091 # so use the C compiler's -n32 option if that helps.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094#include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5102 ? 1 : -1];
5103int
5104main ()
5105{
5106
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 break
5113fi
5114rm -f core conftest.err conftest.$ac_objext
5115 CC="$CC -n32"
5116 if ac_fn_c_try_compile "$LINENO"; then :
5117 ac_cv_sys_largefile_CC=' -n32'; break
5118fi
5119rm -f core conftest.err conftest.$ac_objext
5120 break
5121 done
5122 CC=$ac_save_CC
5123 rm -f conftest.$ac_ext
5124 fi
5125fi
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5127$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5128 if test "$ac_cv_sys_largefile_CC" != no; then
5129 CC=$CC$ac_cv_sys_largefile_CC
5130 fi
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5133$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5134if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136else
5137 while :; do
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h. */
5140#include <sys/types.h>
5141 /* Check that off_t can represent 2**63 - 1 correctly.
5142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5143 since some C++ compilers masquerading as C compilers
5144 incorrectly reject 9223372036854775807. */
5145#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5147 && LARGE_OFF_T % 2147483647 == 1)
5148 ? 1 : -1];
5149int
5150main ()
5151{
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_sys_file_offset_bits=no; break
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h. */
5163#define _FILE_OFFSET_BITS 64
5164#include <sys/types.h>
5165 /* Check that off_t can represent 2**63 - 1 correctly.
5166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5167 since some C++ compilers masquerading as C compilers
5168 incorrectly reject 9223372036854775807. */
5169#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5171 && LARGE_OFF_T % 2147483647 == 1)
5172 ? 1 : -1];
5173int
5174main ()
5175{
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_sys_file_offset_bits=64; break
5183fi
5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 ac_cv_sys_file_offset_bits=unknown
5186 break
5187done
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5190$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5191case $ac_cv_sys_file_offset_bits in #(
5192 no | unknown) ;;
5193 *)
5194cat >>confdefs.h <<_ACEOF
5195#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5196_ACEOF
5197;;
5198esac
5199rm -rf conftest*
5200 if test $ac_cv_sys_file_offset_bits = unknown; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5202$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5203if test "${ac_cv_sys_large_files+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205else
5206 while :; do
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h. */
5209#include <sys/types.h>
5210 /* Check that off_t can represent 2**63 - 1 correctly.
5211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5212 since some C++ compilers masquerading as C compilers
5213 incorrectly reject 9223372036854775807. */
5214#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5216 && LARGE_OFF_T % 2147483647 == 1)
5217 ? 1 : -1];
5218int
5219main ()
5220{
5221
5222 ;
5223 return 0;
5224}
5225_ACEOF
5226if ac_fn_c_try_compile "$LINENO"; then :
5227 ac_cv_sys_large_files=no; break
5228fi
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h. */
5232#define _LARGE_FILES 1
5233#include <sys/types.h>
5234 /* Check that off_t can represent 2**63 - 1 correctly.
5235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5236 since some C++ compilers masquerading as C compilers
5237 incorrectly reject 9223372036854775807. */
5238#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5240 && LARGE_OFF_T % 2147483647 == 1)
5241 ? 1 : -1];
5242int
5243main ()
5244{
5245
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_sys_large_files=1; break
5252fi
5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_sys_large_files=unknown
5255 break
5256done
5257fi
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5259$as_echo "$ac_cv_sys_large_files" >&6; }
5260case $ac_cv_sys_large_files in #(
5261 no | unknown) ;;
5262 *)
5263cat >>confdefs.h <<_ACEOF
5264#define _LARGE_FILES $ac_cv_sys_large_files
5265_ACEOF
5266;;
5267esac
5268rm -rf conftest*
5269 fi
5270
5271
4a626d0a
PA
5272$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5273
2196f55f
YQ
5274fi
5275
88b48903
WN
5276
5277
4a626d0a 5278 # Code from module absolute-header:
8690e634
JK
5279 # Code from module alloca:
5280 # Code from module alloca-opt:
98399780 5281 # Code from module canonicalize-lgpl:
6a29c58e 5282 # Code from module chdir:
8690e634 5283 # Code from module configmake:
e26b6bb0 5284 # Code from module dirent:
18848e28 5285 # Code from module dirfd:
6a29c58e 5286 # Code from module dirname-lgpl:
2196f55f 5287 # Code from module dosname:
6a29c58e 5288 # Code from module double-slash-root:
18848e28 5289 # Code from module errno:
c971b7fa
PA
5290 # Code from module extensions:
5291
a512b375 5292 # Code from module extern-inline:
88b48903 5293 # Code from module float:
8690e634
JK
5294 # Code from module fnmatch:
5295 # Code from module fnmatch-gnu:
88b48903
WN
5296 # Code from module fpieee:
5297
5298 # Code from module fpucw:
5299 # Code from module frexp:
5300 # Code from module frexpl:
4a626d0a 5301 # Code from module gettimeofday:
c971b7fa
PA
5302 # Code from module include_next:
5303 # Code from module inttypes:
5304 # Code from module inttypes-incomplete:
88b48903
WN
5305 # Code from module isnand-nolibm:
5306 # Code from module isnanl-nolibm:
2196f55f
YQ
5307 # Code from module largefile:
5308
8690e634 5309 # Code from module localcharset:
f45c62c4 5310 # Code from module lstat:
6a29c58e 5311 # Code from module malloc-posix:
98399780 5312 # Code from module malloca:
88b48903 5313 # Code from module math:
8690e634
JK
5314 # Code from module mbrtowc:
5315 # Code from module mbsinit:
5316 # Code from module mbsrtowcs:
c971b7fa
PA
5317 # Code from module memchr:
5318 # Code from module memmem:
5319 # Code from module memmem-simple:
5320 # Code from module multiarch:
98399780 5321 # Code from module nocrash:
38ec2207 5322 # Code from module pathmax:
2196f55f 5323 # Code from module readlink:
6a29c58e
YQ
5324 # Code from module rename:
5325 # Code from module rmdir:
5326 # Code from module same-inode:
0750520d 5327 # Code from module signal-h:
98399780 5328 # Code from module snippet/_Noreturn:
c971b7fa
PA
5329 # Code from module snippet/arg-nonnull:
5330 # Code from module snippet/c++defs:
5331 # Code from module snippet/warn-on-use:
8839a007 5332 # Code from module ssize_t:
2196f55f 5333 # Code from module stat:
8690e634 5334 # Code from module stdbool:
c971b7fa
PA
5335 # Code from module stddef:
5336 # Code from module stdint:
6a29c58e 5337 # Code from module stdio:
98399780 5338 # Code from module stdlib:
8690e634 5339 # Code from module streq:
c971b7fa 5340 # Code from module string:
8690e634 5341 # Code from module strnlen1:
63ce7108
TT
5342 # Code from module strstr:
5343 # Code from module strstr-simple:
421693b0 5344 # Code from module strtok_r:
09607c9e 5345 # Code from module sys_stat:
4a626d0a 5346 # Code from module sys_time:
8839a007 5347 # Code from module sys_types:
09607c9e 5348 # Code from module time:
8839a007 5349 # Code from module unistd:
c971b7fa 5350 # Code from module update-copyright:
8690e634
JK
5351 # Code from module verify:
5352 # Code from module wchar:
5353 # Code from module wctype-h:
c971b7fa
PA
5354
5355ac_ext=c
5356ac_cpp='$CPP $CPPFLAGS'
5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5362set dummy ${ac_tool_prefix}gcc; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if test "${ac_cv_prog_CC+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5367else
5368 if test -n "$CC"; then
5369 ac_cv_prog_CC="$CC" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383 done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388CC=$ac_cv_prog_CC
5389if test -n "$CC"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5391$as_echo "$CC" >&6; }
5392else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398fi
5399if test -z "$ac_cv_prog_CC"; then
5400 ac_ct_CC=$CC
5401 # Extract the first word of "gcc", so it can be a program name with args.
5402set dummy gcc; ac_word=$2
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 if test -n "$ac_ct_CC"; then
5409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_CC="gcc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423 done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428ac_ct_CC=$ac_cv_prog_ac_ct_CC
5429if test -n "$ac_ct_CC"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5431$as_echo "$ac_ct_CC" >&6; }
5432else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437 if test "x$ac_ct_CC" = x; then
5438 CC=""
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441yes:)
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 CC=$ac_ct_CC
5447 fi
5448else
5449 CC="$ac_cv_prog_CC"
5450fi
5451
5452if test -z "$CC"; then
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5455set dummy ${ac_tool_prefix}cc; ac_word=$2
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
5458if test "${ac_cv_prog_CC+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460else
5461 if test -n "$CC"; then
5462 ac_cv_prog_CC="$CC" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_CC="${ac_tool_prefix}cc"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476 done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481CC=$ac_cv_prog_CC
5482if test -n "$CC"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5484$as_echo "$CC" >&6; }
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490
5491 fi
5492fi
5493if test -z "$CC"; then
5494 # Extract the first word of "cc", so it can be a program name with args.
5495set dummy cc; ac_word=$2
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if test "${ac_cv_prog_CC+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500else
5501 if test -n "$CC"; then
5502 ac_cv_prog_CC="$CC" # Let the user override the test.
5503else
5504 ac_prog_rejected=no
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5513 ac_prog_rejected=yes
5514 continue
5515 fi
5516 ac_cv_prog_CC="cc"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520done
5521 done
5522IFS=$as_save_IFS
5523
5524if test $ac_prog_rejected = yes; then
5525 # We found a bogon in the path, so make sure we never use it.
5526 set dummy $ac_cv_prog_CC
5527 shift
5528 if test $# != 0; then
5529 # We chose a different compiler from the bogus one.
5530 # However, it has the same basename, so the bogon will be chosen
5531 # first if we set CC to just the basename; use the full file name.
5532 shift
5533 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5534 fi
5535fi
5536fi
5537fi
5538CC=$ac_cv_prog_CC
5539if test -n "$CC"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5541$as_echo "$CC" >&6; }
5542else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548fi
5549if test -z "$CC"; then
5550 if test -n "$ac_tool_prefix"; then
5551 for ac_prog in cl.exe
5552 do
5553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; }
5557if test "${ac_cv_prog_CC+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559else
5560 if test -n "$CC"; then
5561 ac_cv_prog_CC="$CC" # Let the user override the test.
5562else
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574done
5575 done
5576IFS=$as_save_IFS
5577
5578fi
5579fi
5580CC=$ac_cv_prog_CC
5581if test -n "$CC"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5583$as_echo "$CC" >&6; }
5584else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5587fi
5588
5589
5590 test -n "$CC" && break
5591 done
5592fi
5593if test -z "$CC"; then
5594 ac_ct_CC=$CC
5595 for ac_prog in cl.exe
5596do
5597 # Extract the first word of "$ac_prog", so it can be a program name with args.
5598set dummy $ac_prog; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
5601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5603else
5604 if test -n "$ac_ct_CC"; then
5605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_CC="$ac_prog"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619 done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624ac_ct_CC=$ac_cv_prog_ac_ct_CC
5625if test -n "$ac_ct_CC"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5627$as_echo "$ac_ct_CC" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633
5634 test -n "$ac_ct_CC" && break
5635done
5636
5637 if test "x$ac_ct_CC" = x; then
5638 CC=""
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641yes:)
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644ac_tool_warned=yes ;;
5645esac
5646 CC=$ac_ct_CC
5647 fi
5648fi
5649
5650fi
5651
5652
5653test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5655as_fn_error "no acceptable C compiler found in \$PATH
5656See \`config.log' for more details." "$LINENO" 5; }
5657
5658# Provide some information about the compiler.
5659$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5660set X $ac_compile
5661ac_compiler=$2
5662for ac_option in --version -v -V -qversion; do
5663 { { ac_try="$ac_compiler $ac_option >&5"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669$as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5671 ac_status=$?
5672 if test -s conftest.err; then
5673 sed '10a\
5674... rest of stderr output deleted ...
5675 10q' conftest.err >conftest.er1
5676 cat conftest.er1 >&5
5677 rm -f conftest.er1 conftest.err
5678 fi
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }
5681done
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5684$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5685if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690
5691int
5692main ()
5693{
5694#ifndef __GNUC__
5695 choke me
5696#endif
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_compiler_gnu=yes
5704else
5705 ac_compiler_gnu=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708ac_cv_c_compiler_gnu=$ac_compiler_gnu
5709
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5712$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5713if test $ac_compiler_gnu = yes; then
5714 GCC=yes
5715else
5716 GCC=
5717fi
5718ac_test_CFLAGS=${CFLAGS+set}
5719ac_save_CFLAGS=$CFLAGS
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5721$as_echo_n "checking whether $CC accepts -g... " >&6; }
5722if test "${ac_cv_prog_cc_g+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724else
5725 ac_save_c_werror_flag=$ac_c_werror_flag
5726 ac_c_werror_flag=yes
5727 ac_cv_prog_cc_g=no
5728 CFLAGS="-g"
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h. */
5731
5732int
5733main ()
5734{
5735
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_compile "$LINENO"; then :
5741 ac_cv_prog_cc_g=yes
5742else
5743 CFLAGS=""
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h. */
5746
5747int
5748main ()
5749{
5750
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_compile "$LINENO"; then :
5756
5757else
5758 ac_c_werror_flag=$ac_save_c_werror_flag
5759 CFLAGS="-g"
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h. */
5762
5763int
5764main ()
5765{
5766
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771if ac_fn_c_try_compile "$LINENO"; then :
5772 ac_cv_prog_cc_g=yes
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ac_c_werror_flag=$ac_save_c_werror_flag
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5782$as_echo "$ac_cv_prog_cc_g" >&6; }
5783if test "$ac_test_CFLAGS" = set; then
5784 CFLAGS=$ac_save_CFLAGS
5785elif test $ac_cv_prog_cc_g = yes; then
5786 if test "$GCC" = yes; then
5787 CFLAGS="-g -O2"
5788 else
5789 CFLAGS="-g"
5790 fi
5791else
5792 if test "$GCC" = yes; then
5793 CFLAGS="-O2"
5794 else
5795 CFLAGS=
5796 fi
5797fi
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5799$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5800if test "${ac_cv_prog_cc_c89+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 ac_cv_prog_cc_c89=no
5804ac_save_CC=$CC
5805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h. */
5807#include <stdarg.h>
5808#include <stdio.h>
5809#include <sys/types.h>
5810#include <sys/stat.h>
5811/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5812struct buf { int x; };
5813FILE * (*rcsopen) (struct buf *, struct stat *, int);
5814static char *e (p, i)
5815 char **p;
5816 int i;
5817{
5818 return p[i];
5819}
5820static char *f (char * (*g) (char **, int), char **p, ...)
5821{
5822 char *s;
5823 va_list v;
5824 va_start (v,p);
5825 s = g (p, va_arg (v,int));
5826 va_end (v);
5827 return s;
5828}
5829
5830/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5831 function prototypes and stuff, but not '\xHH' hex character constants.
5832 These don't provoke an error unfortunately, instead are silently treated
5833 as 'x'. The following induces an error, until -std is added to get
5834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5835 array size at least. It's necessary to write '\x00'==0 to get something
5836 that's true only with -std. */
5837int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5838
5839/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5840 inside strings and character constants. */
5841#define FOO(x) 'x'
5842int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5843
5844int test (int i, double x);
5845struct s1 {int (*f) (int a);};
5846struct s2 {int (*f) (double a);};
5847int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5848int argc;
5849char **argv;
5850int
5851main ()
5852{
5853return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5860do
5861 CC="$ac_save_CC $ac_arg"
5862 if ac_fn_c_try_compile "$LINENO"; then :
5863 ac_cv_prog_cc_c89=$ac_arg
5864fi
5865rm -f core conftest.err conftest.$ac_objext
5866 test "x$ac_cv_prog_cc_c89" != "xno" && break
5867done
5868rm -f conftest.$ac_ext
5869CC=$ac_save_CC
5870
5871fi
5872# AC_CACHE_VAL
5873case "x$ac_cv_prog_cc_c89" in
5874 x)
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5876$as_echo "none needed" >&6; } ;;
5877 xno)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5879$as_echo "unsupported" >&6; } ;;
5880 *)
5881 CC="$CC $ac_cv_prog_cc_c89"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5883$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5884esac
5885if test "x$ac_cv_prog_cc_c89" != xno; then :
5886
5887fi
5888
5889ac_ext=c
5890ac_cpp='$CPP $CPPFLAGS'
5891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893ac_compiler_gnu=$ac_cv_c_compiler_gnu
5894
5895
5896am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5897
5898
5899ac_aux_dir=
5900for ac_dir in ../.. "$srcdir"/../..; do
5901 for ac_t in install-sh install.sh shtool; do
5902 if test -f "$ac_dir/$ac_t"; then
5903 ac_aux_dir=$ac_dir
5904 ac_install_sh="$ac_aux_dir/$ac_t -c"
5905 break 2
5906 fi
5907 done
5908done
5909if test -z "$ac_aux_dir"; then
5910 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5911fi
5912
5913# These three variables are undocumented and unsupported,
5914# and are intended to be withdrawn in a future Autoconf release.
5915# They can cause serious problems if a builder's source tree is in a directory
5916# whose full name contains unusual characters.
5917ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5918ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5919ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5920
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5923$as_echo_n "checking target system type... " >&6; }
5924if test "${ac_cv_target+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926else
5927 if test "x$target_alias" = x; then
5928 ac_cv_target=$ac_cv_host
5929else
5930 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5931 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5932fi
5933
5934fi
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5936$as_echo "$ac_cv_target" >&6; }
5937case $ac_cv_target in
5938*-*-*) ;;
5939*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5940esac
5941target=$ac_cv_target
5942ac_save_IFS=$IFS; IFS='-'
5943set x $ac_cv_target
5944shift
5945target_cpu=$1
5946target_vendor=$2
5947shift; shift
5948# Remember, the first character of IFS is used to create $*,
5949# except with old shells:
5950target_os=$*
5951IFS=$ac_save_IFS
5952case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5953
5954
5955# The aliases save the names the user supplied, while $host etc.
5956# will get canonicalized.
5957test -n "$target_alias" &&
5958 test "$program_prefix$program_suffix$program_transform_name" = \
5959 NONENONEs,x,x, &&
5960 program_prefix=${target_alias}-
5961
5962
5963
5964
5965
5966
5967
5968 LIBC_FATAL_STDERR_=1
5969 export LIBC_FATAL_STDERR_
5970
8690e634
JK
5971# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5972# for constant arguments. Useless!
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5974$as_echo_n "checking for working alloca.h... " >&6; }
5975if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5976 $as_echo_n "(cached) " >&6
5977else
8690e634 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5979/* end confdefs.h. */
8690e634 5980#include <alloca.h>
c971b7fa
PA
5981int
5982main ()
5983{
8690e634
JK
5984char *p = (char *) alloca (2 * sizeof (int));
5985 if (p) return 0;
c971b7fa
PA
5986 ;
5987 return 0;
5988}
c971b7fa
PA
5989_ACEOF
5990if ac_fn_c_try_link "$LINENO"; then :
8690e634 5991 ac_cv_working_alloca_h=yes
c971b7fa 5992else
8690e634 5993 ac_cv_working_alloca_h=no
c971b7fa
PA
5994fi
5995rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5997fi
8690e634
JK
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5999$as_echo "$ac_cv_working_alloca_h" >&6; }
6000if test $ac_cv_working_alloca_h = yes; then
c971b7fa 6001
8690e634 6002$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 6003
8690e634 6004fi
c971b7fa 6005
8690e634
JK
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6007$as_echo_n "checking for alloca... " >&6; }
6008if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 6009 $as_echo_n "(cached) " >&6
c971b7fa
PA
6010else
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h. */
8690e634
JK
6013#ifdef __GNUC__
6014# define alloca __builtin_alloca
6015#else
6016# ifdef _MSC_VER
6017# include <malloc.h>
6018# define alloca _alloca
6019# else
6020# ifdef HAVE_ALLOCA_H
6021# include <alloca.h>
6022# else
6023# ifdef _AIX
6024 #pragma alloca
6025# else
6026# ifndef alloca /* predefined by HP cc +Olibcalls */
6027char *alloca ();
6028# endif
6029# endif
6030# endif
6031# endif
6032#endif
6033
c971b7fa
PA
6034int
6035main ()
6036{
8690e634
JK
6037char *p = (char *) alloca (1);
6038 if (p) return 0;
c971b7fa
PA
6039 ;
6040 return 0;
6041}
6042_ACEOF
8690e634
JK
6043if ac_fn_c_try_link "$LINENO"; then :
6044 ac_cv_func_alloca_works=yes
c971b7fa 6045else
8690e634 6046 ac_cv_func_alloca_works=no
c971b7fa 6047fi
8690e634
JK
6048rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
c971b7fa 6050fi
a143c6de
JB
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6052$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 6053
a143c6de 6054if test $ac_cv_func_alloca_works = yes; then
c971b7fa 6055
a143c6de 6056$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 6057
a143c6de
JB
6058else
6059 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6060# that cause trouble. Some versions do not even contain alloca or
6061# contain a buggy version. If you still want to use their alloca,
6062# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
6063
6064
6065
6066
6067
a143c6de 6068ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 6069
a143c6de 6070$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 6071
c971b7fa 6072
a143c6de
JB
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6074$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6075if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
6076 $as_echo_n "(cached) " >&6
6077else
a143c6de 6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 6079/* end confdefs.h. */
a143c6de
JB
6080#if defined CRAY && ! defined CRAY2
6081webecray
6082#else
6083wenotbecray
8690e634 6084#endif
c971b7fa 6085
8690e634
JK
6086_ACEOF
6087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
6088 $EGREP "webecray" >/dev/null 2>&1; then :
6089 ac_cv_os_cray=yes
8690e634 6090else
a143c6de 6091 ac_cv_os_cray=no
8690e634
JK
6092fi
6093rm -f conftest*
c971b7fa 6094
c0fc7f8b 6095fi
a143c6de
JB
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6097$as_echo "$ac_cv_os_cray" >&6; }
6098if test $ac_cv_os_cray = yes; then
6099 for ac_func in _getb67 GETB67 getb67; do
6100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6101ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6102eval as_val=\$$as_ac_var
6103 if test "x$as_val" = x""yes; then :
c0fc7f8b 6104
a143c6de
JB
6105cat >>confdefs.h <<_ACEOF
6106#define CRAY_STACKSEG_END $ac_func
6107_ACEOF
c971b7fa 6108
a143c6de 6109 break
8690e634 6110fi
c971b7fa 6111
a143c6de 6112 done
8690e634 6113fi
c0fc7f8b 6114
a143c6de
JB
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6116$as_echo_n "checking stack direction for C alloca... " >&6; }
6117if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
6118 $as_echo_n "(cached) " >&6
6119else
a143c6de
JB
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_c_stack_direction=0
6122else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 6124/* end confdefs.h. */
a143c6de
JB
6125$ac_includes_default
6126int
6127find_stack_direction (int *addr, int depth)
6128{
6129 int dir, dummy = 0;
6130 if (! addr)
6131 addr = &dummy;
6132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6133 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6134 return dir + dummy;
6135}
8690e634 6136
a143c6de
JB
6137int
6138main (int argc, char **argv)
6139{
6140 return find_stack_direction (0, argc + !argv + 20) < 0;
6141}
c971b7fa 6142_ACEOF
a143c6de
JB
6143if ac_fn_c_try_run "$LINENO"; then :
6144 ac_cv_c_stack_direction=1
c971b7fa 6145else
a143c6de 6146 ac_cv_c_stack_direction=-1
8690e634 6147fi
a143c6de
JB
6148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 6150fi
c971b7fa
PA
6151
6152fi
a143c6de
JB
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6154$as_echo "$ac_cv_c_stack_direction" >&6; }
6155cat >>confdefs.h <<_ACEOF
6156#define STACK_DIRECTION $ac_cv_c_stack_direction
6157_ACEOF
8690e634 6158
c971b7fa
PA
6159
6160fi
c971b7fa
PA
6161
6162
98399780
YQ
6163 GNULIB__EXIT=0;
6164 GNULIB_ATOLL=0;
6165 GNULIB_CALLOC_POSIX=0;
6166 GNULIB_CANONICALIZE_FILE_NAME=0;
6167 GNULIB_GETLOADAVG=0;
6168 GNULIB_GETSUBOPT=0;
6169 GNULIB_GRANTPT=0;
6170 GNULIB_MALLOC_POSIX=0;
6171 GNULIB_MBTOWC=0;
6172 GNULIB_MKDTEMP=0;
6173 GNULIB_MKOSTEMP=0;
6174 GNULIB_MKOSTEMPS=0;
6175 GNULIB_MKSTEMP=0;
6176 GNULIB_MKSTEMPS=0;
6177 GNULIB_POSIX_OPENPT=0;
6178 GNULIB_PTSNAME=0;
6179 GNULIB_PTSNAME_R=0;
6180 GNULIB_PUTENV=0;
4a626d0a 6181 GNULIB_QSORT_R=0;
98399780
YQ
6182 GNULIB_RANDOM=0;
6183 GNULIB_RANDOM_R=0;
6184 GNULIB_REALLOC_POSIX=0;
6185 GNULIB_REALPATH=0;
6186 GNULIB_RPMATCH=0;
4a626d0a 6187 GNULIB_SECURE_GETENV=0;
98399780
YQ
6188 GNULIB_SETENV=0;
6189 GNULIB_STRTOD=0;
6190 GNULIB_STRTOLL=0;
6191 GNULIB_STRTOULL=0;
6192 GNULIB_SYSTEM_POSIX=0;
6193 GNULIB_UNLOCKPT=0;
6194 GNULIB_UNSETENV=0;
6195 GNULIB_WCTOMB=0;
6196 HAVE__EXIT=1;
6197 HAVE_ATOLL=1;
6198 HAVE_CANONICALIZE_FILE_NAME=1;
6199 HAVE_DECL_GETLOADAVG=1;
6200 HAVE_GETSUBOPT=1;
6201 HAVE_GRANTPT=1;
6202 HAVE_MKDTEMP=1;
6203 HAVE_MKOSTEMP=1;
6204 HAVE_MKOSTEMPS=1;
6205 HAVE_MKSTEMP=1;
6206 HAVE_MKSTEMPS=1;
6207 HAVE_POSIX_OPENPT=1;
6208 HAVE_PTSNAME=1;
6209 HAVE_PTSNAME_R=1;
6210 HAVE_RANDOM=1;
6211 HAVE_RANDOM_H=1;
6212 HAVE_RANDOM_R=1;
6213 HAVE_REALPATH=1;
6214 HAVE_RPMATCH=1;
4a626d0a 6215 HAVE_SECURE_GETENV=1;
98399780
YQ
6216 HAVE_SETENV=1;
6217 HAVE_DECL_SETENV=1;
6218 HAVE_STRTOD=1;
6219 HAVE_STRTOLL=1;
6220 HAVE_STRTOULL=1;
6221 HAVE_STRUCT_RANDOM_DATA=1;
6222 HAVE_SYS_LOADAVG_H=0;
6223 HAVE_UNLOCKPT=1;
6224 HAVE_DECL_UNSETENV=1;
6225 REPLACE_CALLOC=0;
6226 REPLACE_CANONICALIZE_FILE_NAME=0;
6227 REPLACE_MALLOC=0;
6228 REPLACE_MBTOWC=0;
6229 REPLACE_MKSTEMP=0;
6230 REPLACE_PTSNAME=0;
6231 REPLACE_PTSNAME_R=0;
6232 REPLACE_PUTENV=0;
4a626d0a 6233 REPLACE_QSORT_R=0;
98399780
YQ
6234 REPLACE_RANDOM_R=0;
6235 REPLACE_REALLOC=0;
6236 REPLACE_REALPATH=0;
6237 REPLACE_SETENV=0;
6238 REPLACE_STRTOD=0;
6239 REPLACE_UNSETENV=0;
6240 REPLACE_WCTOMB=0;
6241
6242
6243
6244
6245 for ac_func in $ac_func_list
6246do :
6247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6249eval as_val=\$$as_ac_var
6250 if test "x$as_val" = x""yes; then :
6251 cat >>confdefs.h <<_ACEOF
6252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6253_ACEOF
6254
6255fi
6256done
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6267$as_echo_n "checking whether // is distinct from /... " >&6; }
6268if test "${gl_cv_double_slash_root+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270else
6271 if test x"$cross_compiling" = xyes ; then
6272 # When cross-compiling, there is no way to tell whether // is special
6273 # short of a list of hosts. However, the only known hosts to date
6274 # that have a distinct // are Apollo DomainOS (too old to port to),
6275 # Cygwin, and z/OS. If anyone knows of another system for which // has
6276 # special semantics and is distinct from /, please report it to
6277 # <bug-gnulib@gnu.org>.
6278 case $host in
6279 *-cygwin | i370-ibm-openedition)
6280 gl_cv_double_slash_root=yes ;;
6281 *)
6282 # Be optimistic and assume that / and // are the same when we
6283 # don't know.
6284 gl_cv_double_slash_root='unknown, assuming no' ;;
6285 esac
6286 else
6287 set x `ls -di / // 2>/dev/null`
6288 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6289 gl_cv_double_slash_root=no
6290 else
6291 gl_cv_double_slash_root=yes
6292 fi
6293 fi
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6296$as_echo "$gl_cv_double_slash_root" >&6; }
6297 if test "$gl_cv_double_slash_root" = yes; then
6298
6299$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6300
6301 fi
6302
6303
6304
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6308$as_echo_n "checking whether realpath works... " >&6; }
6309if test "${gl_cv_func_realpath_works+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311else
6312
6313 touch conftest.a
6314 mkdir conftest.d
6315 if test "$cross_compiling" = yes; then :
6316 case "$host_os" in
6317 # Guess yes on glibc systems.
6318 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6319 # If we don't know, assume the worst.
6320 *) gl_cv_func_realpath_works="guessing no" ;;
6321 esac
6322
6323else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h. */
6326
6327
6328
6329#include <stdlib.h>
6330#if defined __MACH__ && defined __APPLE__
6331/* Avoid a crash on Mac OS X. */
6332#include <mach/mach.h>
6333#include <mach/mach_error.h>
6334#include <mach/thread_status.h>
6335#include <mach/exception.h>
6336#include <mach/task.h>
6337#include <pthread.h>
6338/* The exception port on which our thread listens. */
6339static mach_port_t our_exception_port;
6340/* The main function of the thread listening for exceptions of type
6341 EXC_BAD_ACCESS. */
6342static void *
6343mach_exception_thread (void *arg)
6344{
6345 /* Buffer for a message to be received. */
6346 struct {
6347 mach_msg_header_t head;
6348 mach_msg_body_t msgh_body;
6349 char data[1024];
6350 } msg;
6351 mach_msg_return_t retval;
6352 /* Wait for a message on the exception port. */
6353 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6354 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6355 if (retval != MACH_MSG_SUCCESS)
6356 abort ();
6357 exit (1);
6358}
6359static void
6360nocrash_init (void)
6361{
6362 mach_port_t self = mach_task_self ();
6363 /* Allocate a port on which the thread shall listen for exceptions. */
6364 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6365 == KERN_SUCCESS) {
6366 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6367 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6368 MACH_MSG_TYPE_MAKE_SEND)
6369 == KERN_SUCCESS) {
6370 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6371 for us. */
6372 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6373 /* Create the thread listening on the exception port. */
6374 pthread_attr_t attr;
6375 pthread_t thread;
6376 if (pthread_attr_init (&attr) == 0
6377 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6378 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6379 pthread_attr_destroy (&attr);
6380 /* Replace the exception port info for these exceptions with our own.
6381 Note that we replace the exception port for the entire task, not only
6382 for a particular thread. This has the effect that when our exception
6383 port gets the message, the thread specific exception port has already
6384 been asked, and we don't need to bother about it.
6385 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6386 task_set_exception_ports (self, mask, our_exception_port,
6387 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6388 }
6389 }
6390 }
6391}
6392#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6393/* Avoid a crash on native Windows. */
6394#define WIN32_LEAN_AND_MEAN
6395#include <windows.h>
6396#include <winerror.h>
6397static LONG WINAPI
6398exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6399{
6400 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6401 {
6402 case EXCEPTION_ACCESS_VIOLATION:
6403 case EXCEPTION_IN_PAGE_ERROR:
6404 case EXCEPTION_STACK_OVERFLOW:
6405 case EXCEPTION_GUARD_PAGE:
6406 case EXCEPTION_PRIV_INSTRUCTION:
6407 case EXCEPTION_ILLEGAL_INSTRUCTION:
6408 case EXCEPTION_DATATYPE_MISALIGNMENT:
6409 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6410 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6411 exit (1);
6412 }
6413 return EXCEPTION_CONTINUE_SEARCH;
6414}
6415static void
6416nocrash_init (void)
6417{
6418 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6419}
6420#else
6421/* Avoid a crash on POSIX systems. */
6422#include <signal.h>
6423/* A POSIX signal handler. */
6424static void
6425exception_handler (int sig)
6426{
6427 exit (1);
6428}
6429static void
6430nocrash_init (void)
6431{
6432#ifdef SIGSEGV
6433 signal (SIGSEGV, exception_handler);
6434#endif
6435#ifdef SIGBUS
6436 signal (SIGBUS, exception_handler);
6437#endif
6438}
6439#endif
6440
6441 #include <stdlib.h>
6442 #include <string.h>
6443
6444int
6445main ()
6446{
6447
6448 int result = 0;
6449 {
6450 char *name = realpath ("conftest.a", NULL);
6451 if (!(name && *name == '/'))
6452 result |= 1;
6453 }
6454 {
6455 char *name = realpath ("conftest.b/../conftest.a", NULL);
6456 if (name != NULL)
6457 result |= 2;
6458 }
6459 {
6460 char *name = realpath ("conftest.a/", NULL);
6461 if (name != NULL)
6462 result |= 4;
6463 }
6464 {
6465 char *name1 = realpath (".", NULL);
6466 char *name2 = realpath ("conftest.d//./..", NULL);
6467 if (strcmp (name1, name2) != 0)
6468 result |= 8;
6469 }
6470 return result;
6471
6472 ;
6473 return 0;
6474}
6475
6476_ACEOF
6477if ac_fn_c_try_run "$LINENO"; then :
6478 gl_cv_func_realpath_works=yes
6479else
6480 gl_cv_func_realpath_works=no
6481fi
6482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6483 conftest.$ac_objext conftest.beam conftest.$ac_ext
6484fi
6485
6486 rm -rf conftest.a conftest.d
6487
6488fi
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6490$as_echo "$gl_cv_func_realpath_works" >&6; }
6491 case "$gl_cv_func_realpath_works" in
6492 *yes)
6493
6494$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6495
6496 ;;
6497 esac
6498
6499
6500
6501
6502 for ac_header in $ac_header_list
6503do :
6504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6505ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6506"
6507eval as_val=\$$as_ac_Header
6508 if test "x$as_val" = x""yes; then :
6509 cat >>confdefs.h <<_ACEOF
6510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511_ACEOF
6512
6513fi
6514
6515done
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
e26b6bb0
TT
6527 GNULIB_CHDIR=0;
6528 GNULIB_CHOWN=0;
6529 GNULIB_CLOSE=0;
6530 GNULIB_DUP=0;
6531 GNULIB_DUP2=0;
6532 GNULIB_DUP3=0;
6533 GNULIB_ENVIRON=0;
6534 GNULIB_EUIDACCESS=0;
6535 GNULIB_FACCESSAT=0;
6536 GNULIB_FCHDIR=0;
6537 GNULIB_FCHOWNAT=0;
6538 GNULIB_FDATASYNC=0;
6539 GNULIB_FSYNC=0;
6540 GNULIB_FTRUNCATE=0;
6541 GNULIB_GETCWD=0;
6542 GNULIB_GETDOMAINNAME=0;
6543 GNULIB_GETDTABLESIZE=0;
6544 GNULIB_GETGROUPS=0;
6545 GNULIB_GETHOSTNAME=0;
6546 GNULIB_GETLOGIN=0;
6547 GNULIB_GETLOGIN_R=0;
6548 GNULIB_GETPAGESIZE=0;
6549 GNULIB_GETUSERSHELL=0;
6550 GNULIB_GROUP_MEMBER=0;
6551 GNULIB_ISATTY=0;
6552 GNULIB_LCHOWN=0;
6553 GNULIB_LINK=0;
6554 GNULIB_LINKAT=0;
6555 GNULIB_LSEEK=0;
6556 GNULIB_PIPE=0;
6557 GNULIB_PIPE2=0;
6558 GNULIB_PREAD=0;
6559 GNULIB_PWRITE=0;
6560 GNULIB_READ=0;
6561 GNULIB_READLINK=0;
6562 GNULIB_READLINKAT=0;
6563 GNULIB_RMDIR=0;
6564 GNULIB_SETHOSTNAME=0;
6565 GNULIB_SLEEP=0;
6566 GNULIB_SYMLINK=0;
6567 GNULIB_SYMLINKAT=0;
6568 GNULIB_TTYNAME_R=0;
6569 GNULIB_UNISTD_H_NONBLOCKING=0;
6570 GNULIB_UNISTD_H_SIGPIPE=0;
6571 GNULIB_UNLINK=0;
6572 GNULIB_UNLINKAT=0;
6573 GNULIB_USLEEP=0;
6574 GNULIB_WRITE=0;
6575 HAVE_CHOWN=1;
6576 HAVE_DUP2=1;
6577 HAVE_DUP3=1;
6578 HAVE_EUIDACCESS=1;
6579 HAVE_FACCESSAT=1;
6580 HAVE_FCHDIR=1;
6581 HAVE_FCHOWNAT=1;
6582 HAVE_FDATASYNC=1;
6583 HAVE_FSYNC=1;
6584 HAVE_FTRUNCATE=1;
6585 HAVE_GETDTABLESIZE=1;
6586 HAVE_GETGROUPS=1;
6587 HAVE_GETHOSTNAME=1;
6588 HAVE_GETLOGIN=1;
6589 HAVE_GETPAGESIZE=1;
6590 HAVE_GROUP_MEMBER=1;
6591 HAVE_LCHOWN=1;
6592 HAVE_LINK=1;
6593 HAVE_LINKAT=1;
6594 HAVE_PIPE=1;
6595 HAVE_PIPE2=1;
6596 HAVE_PREAD=1;
6597 HAVE_PWRITE=1;
6598 HAVE_READLINK=1;
6599 HAVE_READLINKAT=1;
6600 HAVE_SETHOSTNAME=1;
6601 HAVE_SLEEP=1;
6602 HAVE_SYMLINK=1;
6603 HAVE_SYMLINKAT=1;
6604 HAVE_UNLINKAT=1;
6605 HAVE_USLEEP=1;
6606 HAVE_DECL_ENVIRON=1;
6607 HAVE_DECL_FCHDIR=1;
6608 HAVE_DECL_FDATASYNC=1;
6609 HAVE_DECL_GETDOMAINNAME=1;
6610 HAVE_DECL_GETLOGIN_R=1;
6611 HAVE_DECL_GETPAGESIZE=1;
6612 HAVE_DECL_GETUSERSHELL=1;
6613 HAVE_DECL_SETHOSTNAME=1;
6614 HAVE_DECL_TTYNAME_R=1;
6615 HAVE_OS_H=0;
6616 HAVE_SYS_PARAM_H=0;
6617 REPLACE_CHOWN=0;
6618 REPLACE_CLOSE=0;
6619 REPLACE_DUP=0;
6620 REPLACE_DUP2=0;
6621 REPLACE_FCHOWNAT=0;
6622 REPLACE_FTRUNCATE=0;
6623 REPLACE_GETCWD=0;
6624 REPLACE_GETDOMAINNAME=0;
4a626d0a 6625 REPLACE_GETDTABLESIZE=0;
e26b6bb0
TT
6626 REPLACE_GETLOGIN_R=0;
6627 REPLACE_GETGROUPS=0;
6628 REPLACE_GETPAGESIZE=0;
6629 REPLACE_ISATTY=0;
6630 REPLACE_LCHOWN=0;
6631 REPLACE_LINK=0;
6632 REPLACE_LINKAT=0;
6633 REPLACE_LSEEK=0;
6634 REPLACE_PREAD=0;
6635 REPLACE_PWRITE=0;
6636 REPLACE_READ=0;
6637 REPLACE_READLINK=0;
4a626d0a 6638 REPLACE_READLINKAT=0;
e26b6bb0
TT
6639 REPLACE_RMDIR=0;
6640 REPLACE_SLEEP=0;
6641 REPLACE_SYMLINK=0;
4a626d0a 6642 REPLACE_SYMLINKAT=0;
e26b6bb0
TT
6643 REPLACE_TTYNAME_R=0;
6644 REPLACE_UNLINK=0;
6645 REPLACE_UNLINKAT=0;
6646 REPLACE_USLEEP=0;
6647 REPLACE_WRITE=0;
6648 UNISTD_H_HAVE_WINSOCK2_H=0;
6649 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6650
6651
6652
6653 GNULIB_OPENDIR=0;
6654 GNULIB_READDIR=0;
6655 GNULIB_REWINDDIR=0;
6656 GNULIB_CLOSEDIR=0;
6657 GNULIB_DIRFD=0;
6658 GNULIB_FDOPENDIR=0;
6659 GNULIB_SCANDIR=0;
6660 GNULIB_ALPHASORT=0;
6661 HAVE_OPENDIR=1;
6662 HAVE_READDIR=1;
6663 HAVE_REWINDDIR=1;
6664 HAVE_CLOSEDIR=1;
6665 HAVE_DECL_DIRFD=1;
6666 HAVE_DECL_FDOPENDIR=1;
6667 HAVE_FDOPENDIR=1;
6668 HAVE_SCANDIR=1;
6669 HAVE_ALPHASORT=1;
6670 REPLACE_OPENDIR=0;
6671 REPLACE_CLOSEDIR=0;
6672 REPLACE_DIRFD=0;
6673 REPLACE_FDOPENDIR=0;
6674
6675
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6678$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6679if test "${gl_cv_have_include_next+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681else
6682 rm -rf conftestd1a conftestd1b conftestd2
6683 mkdir conftestd1a conftestd1b conftestd2
6684 cat <<EOF > conftestd1a/conftest.h
6685#define DEFINED_IN_CONFTESTD1
6686#include_next <conftest.h>
6687#ifdef DEFINED_IN_CONFTESTD2
6688int foo;
6689#else
88b48903
WN
6690#error "include_next doesn't work"
6691#endif
6692EOF
6693 cat <<EOF > conftestd1b/conftest.h
6694#define DEFINED_IN_CONFTESTD1
6695#include <stdio.h>
6696#include_next <conftest.h>
6697#ifdef DEFINED_IN_CONFTESTD2
6698int foo;
6699#else
6700#error "include_next doesn't work"
6701#endif
6702EOF
6703 cat <<EOF > conftestd2/conftest.h
6704#ifndef DEFINED_IN_CONFTESTD1
6705#error "include_next test doesn't work"
6706#endif
6707#define DEFINED_IN_CONFTESTD2
6708EOF
6709 gl_save_CPPFLAGS="$CPPFLAGS"
6710 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h. */
6713#include <conftest.h>
6714_ACEOF
6715if ac_fn_c_try_compile "$LINENO"; then :
6716 gl_cv_have_include_next=yes
6717else
6718 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h. */
6721#include <conftest.h>
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"; then :
6724 gl_cv_have_include_next=buggy
6725else
6726 gl_cv_have_include_next=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729
6730fi
6731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 CPPFLAGS="$gl_save_CPPFLAGS"
6733 rm -rf conftestd1a conftestd1b conftestd2
6734
6735fi
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6737$as_echo "$gl_cv_have_include_next" >&6; }
6738 PRAGMA_SYSTEM_HEADER=
6739 if test $gl_cv_have_include_next = yes; then
6740 INCLUDE_NEXT=include_next
6741 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6742 if test -n "$GCC"; then
6743 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6744 fi
6745 else
6746 if test $gl_cv_have_include_next = buggy; then
6747 INCLUDE_NEXT=include
6748 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6749 else
6750 INCLUDE_NEXT=include
6751 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6752 fi
6753 fi
6754
6755
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6758$as_echo_n "checking whether system header files limit the line length... " >&6; }
6759if test "${gl_cv_pragma_columns+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h. */
6764
6765#ifdef __TANDEM
6766choke me
6767#endif
6768
6769_ACEOF
6770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "choke me" >/dev/null 2>&1; then :
6772 gl_cv_pragma_columns=yes
6773else
6774 gl_cv_pragma_columns=no
6775fi
6776rm -f conftest*
6777
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6781$as_echo "$gl_cv_pragma_columns" >&6; }
6782 if test $gl_cv_pragma_columns = yes; then
6783 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6784 else
6785 PRAGMA_COLUMNS=
6786 fi
6787
6788
6789
6790
e26b6bb0 6791
e26b6bb0 6792
18848e28
GF
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6794$as_echo_n "checking for complete errno.h... " >&6; }
6795if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797else
6798
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h. */
6801
6802#include <errno.h>
6803#if !defined ETXTBSY
6804booboo
6805#endif
6806#if !defined ENOMSG
6807booboo
6808#endif
6809#if !defined EIDRM
6810booboo
6811#endif
6812#if !defined ENOLINK
6813booboo
6814#endif
6815#if !defined EPROTO
6816booboo
6817#endif
6818#if !defined EMULTIHOP
6819booboo
6820#endif
6821#if !defined EBADMSG
6822booboo
6823#endif
6824#if !defined EOVERFLOW
6825booboo
6826#endif
6827#if !defined ENOTSUP
6828booboo
6829#endif
6830#if !defined ENETRESET
6831booboo
6832#endif
6833#if !defined ECONNABORTED
6834booboo
6835#endif
6836#if !defined ESTALE
6837booboo
6838#endif
6839#if !defined EDQUOT
6840booboo
6841#endif
6842#if !defined ECANCELED
6843booboo
6844#endif
6845#if !defined EOWNERDEAD
6846booboo
6847#endif
6848#if !defined ENOTRECOVERABLE
6849booboo
6850#endif
6851#if !defined EILSEQ
6852booboo
6853#endif
6854
6855_ACEOF
6856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "booboo" >/dev/null 2>&1; then :
6858 gl_cv_header_errno_h_complete=no
6859else
6860 gl_cv_header_errno_h_complete=yes
6861fi
6862rm -f conftest*
6863
6864
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6867$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6868 if test $gl_cv_header_errno_h_complete = yes; then
6869 ERRNO_H=''
6870 else
6871
6872
6873
6874
6875
6876
6877
6878
6879 if test $gl_cv_have_include_next = yes; then
6880 gl_cv_next_errno_h='<'errno.h'>'
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6883$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6884if test "${gl_cv_next_errno_h+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887
4a626d0a
PA
6888
6889
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848e28
GF
6891/* end confdefs.h. */
6892#include <errno.h>
18848e28 6893_ACEOF
4a626d0a
PA
6894 case "$host_os" in
6895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6896 *) gl_absname_cpp="$ac_cpp" ;;
6897 esac
18848e28 6898
4a626d0a
PA
6899 case "$host_os" in
6900 mingw*)
6901 gl_dirsep_regex='[/\\]'
6902 ;;
6903 *)
6904 gl_dirsep_regex='\/'
6905 ;;
6906 esac
6907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6908 gl_header_literal_regex=`echo 'errno.h' \
6909 | sed -e "$gl_make_literal_regex_sed"`
6910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6912 s|^/[^/]|//&|
6913 p
6914 q
6915 }'
6916
6917 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6918 sed -n "$gl_absolute_header_sed"`
6919
6920 gl_header=$gl_cv_absolute_errno_h
6921 gl_cv_next_errno_h='"'$gl_header'"'
6922
6923
6924fi
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18848e28
GF
6926$as_echo "$gl_cv_next_errno_h" >&6; }
6927 fi
6928 NEXT_ERRNO_H=$gl_cv_next_errno_h
6929
6930 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6932 gl_next_as_first_directive='<'errno.h'>'
6933 else
6934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6935 gl_next_as_first_directive=$gl_cv_next_errno_h
6936 fi
6937 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6938
6939
6940
6941
6942 ERRNO_H='errno.h'
6943 fi
6944
6945 if test -n "$ERRNO_H"; then
6946 GL_GENERATE_ERRNO_H_TRUE=
6947 GL_GENERATE_ERRNO_H_FALSE='#'
6948else
6949 GL_GENERATE_ERRNO_H_TRUE='#'
6950 GL_GENERATE_ERRNO_H_FALSE=
6951fi
6952
6953
6954 if test -n "$ERRNO_H"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6956$as_echo_n "checking for EMULTIHOP value... " >&6; }
6957if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959else
6960
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h. */
6963
6964#include <errno.h>
6965#ifdef EMULTIHOP
6966yes
6967#endif
6968
6969_ACEOF
6970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "yes" >/dev/null 2>&1; then :
6972 gl_cv_header_errno_h_EMULTIHOP=yes
6973else
6974 gl_cv_header_errno_h_EMULTIHOP=no
6975fi
6976rm -f conftest*
6977
6978 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h. */
6981
6982#define _XOPEN_SOURCE_EXTENDED 1
6983#include <errno.h>
6984#ifdef EMULTIHOP
6985yes
6986#endif
6987
6988_ACEOF
6989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990 $EGREP "yes" >/dev/null 2>&1; then :
6991 gl_cv_header_errno_h_EMULTIHOP=hidden
6992fi
6993rm -f conftest*
6994
6995 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6996 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6997#define _XOPEN_SOURCE_EXTENDED 1
6998#include <errno.h>
6999/* The following two lines are a workaround against an autoconf-2.52 bug. */
7000#include <stdio.h>
7001#include <stdlib.h>
7002"; then :
7003
7004fi
7005
7006 fi
7007 fi
7008
7009fi
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7011$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7012 case $gl_cv_header_errno_h_EMULTIHOP in
7013 yes | no)
7014 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7015 ;;
7016 *)
7017 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7018 ;;
7019 esac
7020
7021
7022 fi
7023
7024
7025 if test -n "$ERRNO_H"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7027$as_echo_n "checking for ENOLINK value... " >&6; }
7028if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030else
7031
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h. */
7034
7035#include <errno.h>
7036#ifdef ENOLINK
7037yes
7038#endif
7039
7040_ACEOF
7041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "yes" >/dev/null 2>&1; then :
7043 gl_cv_header_errno_h_ENOLINK=yes
7044else
7045 gl_cv_header_errno_h_ENOLINK=no
7046fi
7047rm -f conftest*
7048
7049 if test $gl_cv_header_errno_h_ENOLINK = no; then
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h. */
7052
7053#define _XOPEN_SOURCE_EXTENDED 1
7054#include <errno.h>
7055#ifdef ENOLINK
7056yes
7057#endif
7058
7059_ACEOF
7060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "yes" >/dev/null 2>&1; then :
7062 gl_cv_header_errno_h_ENOLINK=hidden
7063fi
7064rm -f conftest*
7065
7066 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7067 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7068#define _XOPEN_SOURCE_EXTENDED 1
7069#include <errno.h>
7070/* The following two lines are a workaround against an autoconf-2.52 bug. */
7071#include <stdio.h>
7072#include <stdlib.h>
7073"; then :
7074
7075fi
7076
7077 fi
7078 fi
7079
7080fi
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7082$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7083 case $gl_cv_header_errno_h_ENOLINK in
7084 yes | no)
7085 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7086 ;;
7087 *)
7088 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7089 ;;
7090 esac
7091
7092
7093 fi
7094
7095
7096 if test -n "$ERRNO_H"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7098$as_echo_n "checking for EOVERFLOW value... " >&6; }
7099if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7101else
7102
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104/* end confdefs.h. */
7105
7106#include <errno.h>
7107#ifdef EOVERFLOW
7108yes
7109#endif
7110
7111_ACEOF
7112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113 $EGREP "yes" >/dev/null 2>&1; then :
7114 gl_cv_header_errno_h_EOVERFLOW=yes
7115else
7116 gl_cv_header_errno_h_EOVERFLOW=no
7117fi
7118rm -f conftest*
7119
7120 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h. */
7123
7124#define _XOPEN_SOURCE_EXTENDED 1
7125#include <errno.h>
7126#ifdef EOVERFLOW
7127yes
7128#endif
7129
7130_ACEOF
7131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132 $EGREP "yes" >/dev/null 2>&1; then :
7133 gl_cv_header_errno_h_EOVERFLOW=hidden
7134fi
7135rm -f conftest*
7136
7137 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7138 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7139#define _XOPEN_SOURCE_EXTENDED 1
7140#include <errno.h>
7141/* The following two lines are a workaround against an autoconf-2.52 bug. */
7142#include <stdio.h>
7143#include <stdlib.h>
7144"; then :
7145
7146fi
7147
7148 fi
7149 fi
7150
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7153$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7154 case $gl_cv_header_errno_h_EOVERFLOW in
7155 yes | no)
7156 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7157 ;;
7158 *)
7159 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7160 ;;
7161 esac
7162
7163
7164 fi
7165
7166
7167
7168
63ce7108
TT
7169
7170
7171
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7173$as_echo_n "checking for mbstate_t... " >&6; }
7174if test "${ac_cv_type_mbstate_t+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7176else
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h. */
7179$ac_includes_default
7180/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7181 <wchar.h>.
7182 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7183 included before <wchar.h>. */
7184#include <stddef.h>
7185#include <stdio.h>
7186#include <time.h>
7187#include <wchar.h>
7188int
7189main ()
7190{
7191mbstate_t x; return sizeof x;
7192 ;
7193 return 0;
7194}
7195_ACEOF
7196if ac_fn_c_try_compile "$LINENO"; then :
7197 ac_cv_type_mbstate_t=yes
7198else
7199 ac_cv_type_mbstate_t=no
7200fi
7201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7204$as_echo "$ac_cv_type_mbstate_t" >&6; }
7205 if test $ac_cv_type_mbstate_t = yes; then
7206
7207$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7208
7209 else
7210
7211$as_echo "#define mbstate_t int" >>confdefs.h
7212
7213 fi
7214
7215
7216
7217
63ce7108
TT
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
63ce7108
TT
7234 GNULIB_ACOSF=0;
7235 GNULIB_ACOSL=0;
7236 GNULIB_ASINF=0;
7237 GNULIB_ASINL=0;
7238 GNULIB_ATANF=0;
7239 GNULIB_ATANL=0;
7240 GNULIB_ATAN2F=0;
7241 GNULIB_CBRT=0;
7242 GNULIB_CBRTF=0;
7243 GNULIB_CBRTL=0;
7244 GNULIB_CEIL=0;
7245 GNULIB_CEILF=0;
7246 GNULIB_CEILL=0;
7247 GNULIB_COPYSIGN=0;
7248 GNULIB_COPYSIGNF=0;
88b48903
WN
7249 GNULIB_COPYSIGNL=0;
7250 GNULIB_COSF=0;
7251 GNULIB_COSL=0;
7252 GNULIB_COSHF=0;
7253 GNULIB_EXPF=0;
7254 GNULIB_EXPL=0;
7255 GNULIB_EXP2=0;
7256 GNULIB_EXP2F=0;
7257 GNULIB_EXP2L=0;
7258 GNULIB_EXPM1=0;
7259 GNULIB_EXPM1F=0;
7260 GNULIB_EXPM1L=0;
7261 GNULIB_FABSF=0;
7262 GNULIB_FABSL=0;
7263 GNULIB_FLOOR=0;
7264 GNULIB_FLOORF=0;
7265 GNULIB_FLOORL=0;
7266 GNULIB_FMA=0;
7267 GNULIB_FMAF=0;
7268 GNULIB_FMAL=0;
7269 GNULIB_FMOD=0;
7270 GNULIB_FMODF=0;
7271 GNULIB_FMODL=0;
7272 GNULIB_FREXPF=0;
7273 GNULIB_FREXP=0;
7274 GNULIB_FREXPL=0;
7275 GNULIB_HYPOT=0;
7276 GNULIB_HYPOTF=0;
7277 GNULIB_HYPOTL=0;
7278 GNULIB_ILOGB=0;
7279 GNULIB_ILOGBF=0;
7280 GNULIB_ILOGBL=0;
7281 GNULIB_ISFINITE=0;
7282 GNULIB_ISINF=0;
7283 GNULIB_ISNAN=0;
7284 GNULIB_ISNANF=0;
7285 GNULIB_ISNAND=0;
7286 GNULIB_ISNANL=0;
7287 GNULIB_LDEXPF=0;
7288 GNULIB_LDEXPL=0;
7289 GNULIB_LOG=0;
7290 GNULIB_LOGF=0;
7291 GNULIB_LOGL=0;
7292 GNULIB_LOG10=0;
7293 GNULIB_LOG10F=0;
7294 GNULIB_LOG10L=0;
7295 GNULIB_LOG1P=0;
7296 GNULIB_LOG1PF=0;
7297 GNULIB_LOG1PL=0;
7298 GNULIB_LOG2=0;
7299 GNULIB_LOG2F=0;
7300 GNULIB_LOG2L=0;
7301 GNULIB_LOGB=0;
7302 GNULIB_LOGBF=0;
7303 GNULIB_LOGBL=0;
7304 GNULIB_MODF=0;
7305 GNULIB_MODFF=0;
7306 GNULIB_MODFL=0;
7307 GNULIB_POWF=0;
7308 GNULIB_REMAINDER=0;
7309 GNULIB_REMAINDERF=0;
7310 GNULIB_REMAINDERL=0;
7311 GNULIB_RINT=0;
7312 GNULIB_RINTF=0;
7313 GNULIB_RINTL=0;
7314 GNULIB_ROUND=0;
7315 GNULIB_ROUNDF=0;
7316 GNULIB_ROUNDL=0;
7317 GNULIB_SIGNBIT=0;
7318 GNULIB_SINF=0;
7319 GNULIB_SINL=0;
7320 GNULIB_SINHF=0;
7321 GNULIB_SQRTF=0;
7322 GNULIB_SQRTL=0;
7323 GNULIB_TANF=0;
7324 GNULIB_TANL=0;
7325 GNULIB_TANHF=0;
7326 GNULIB_TRUNC=0;
7327 GNULIB_TRUNCF=0;
7328 GNULIB_TRUNCL=0;
7329 HAVE_ACOSF=1;
7330 HAVE_ACOSL=1;
7331 HAVE_ASINF=1;
7332 HAVE_ASINL=1;
7333 HAVE_ATANF=1;
7334 HAVE_ATANL=1;
7335 HAVE_ATAN2F=1;
7336 HAVE_CBRT=1;
7337 HAVE_CBRTF=1;
7338 HAVE_CBRTL=1;
7339 HAVE_COPYSIGN=1;
7340 HAVE_COPYSIGNL=1;
7341 HAVE_COSF=1;
7342 HAVE_COSL=1;
7343 HAVE_COSHF=1;
7344 HAVE_EXPF=1;
7345 HAVE_EXPL=1;
7346 HAVE_EXPM1=1;
7347 HAVE_EXPM1F=1;
7348 HAVE_FABSF=1;
7349 HAVE_FABSL=1;
7350 HAVE_FMA=1;
7351 HAVE_FMAF=1;
7352 HAVE_FMAL=1;
7353 HAVE_FMODF=1;
7354 HAVE_FMODL=1;
7355 HAVE_FREXPF=1;
7356 HAVE_HYPOTF=1;
7357 HAVE_HYPOTL=1;
7358 HAVE_ILOGB=1;
7359 HAVE_ILOGBF=1;
7360 HAVE_ILOGBL=1;
7361 HAVE_ISNANF=1;
7362 HAVE_ISNAND=1;
7363 HAVE_ISNANL=1;
7364 HAVE_LDEXPF=1;
7365 HAVE_LOGF=1;
7366 HAVE_LOGL=1;
7367 HAVE_LOG10F=1;
7368 HAVE_LOG10L=1;
7369 HAVE_LOG1P=1;
7370 HAVE_LOG1PF=1;
7371 HAVE_LOG1PL=1;
7372 HAVE_LOGBF=1;
7373 HAVE_LOGBL=1;
7374 HAVE_MODFF=1;
7375 HAVE_MODFL=1;
7376 HAVE_POWF=1;
7377 HAVE_REMAINDER=1;
7378 HAVE_REMAINDERF=1;
7379 HAVE_RINT=1;
7380 HAVE_RINTL=1;
7381 HAVE_SINF=1;
7382 HAVE_SINL=1;
7383 HAVE_SINHF=1;
7384 HAVE_SQRTF=1;
7385 HAVE_SQRTL=1;
7386 HAVE_TANF=1;
7387 HAVE_TANL=1;
7388 HAVE_TANHF=1;
7389 HAVE_DECL_ACOSL=1;
7390 HAVE_DECL_ASINL=1;
7391 HAVE_DECL_ATANL=1;
7392 HAVE_DECL_CBRTF=1;
7393 HAVE_DECL_CBRTL=1;
7394 HAVE_DECL_CEILF=1;
7395 HAVE_DECL_CEILL=1;
7396 HAVE_DECL_COPYSIGNF=1;
7397 HAVE_DECL_COSL=1;
7398 HAVE_DECL_EXPL=1;
7399 HAVE_DECL_EXP2=1;
7400 HAVE_DECL_EXP2F=1;
7401 HAVE_DECL_EXP2L=1;
7402 HAVE_DECL_EXPM1L=1;
7403 HAVE_DECL_FLOORF=1;
7404 HAVE_DECL_FLOORL=1;
7405 HAVE_DECL_FREXPL=1;
7406 HAVE_DECL_LDEXPL=1;
7407 HAVE_DECL_LOGL=1;
7408 HAVE_DECL_LOG10L=1;
7409 HAVE_DECL_LOG2=1;
7410 HAVE_DECL_LOG2F=1;
7411 HAVE_DECL_LOG2L=1;
7412 HAVE_DECL_LOGB=1;
7413 HAVE_DECL_REMAINDER=1;
7414 HAVE_DECL_REMAINDERL=1;
7415 HAVE_DECL_RINTF=1;
7416 HAVE_DECL_ROUND=1;
7417 HAVE_DECL_ROUNDF=1;
7418 HAVE_DECL_ROUNDL=1;
7419 HAVE_DECL_SINL=1;
7420 HAVE_DECL_SQRTL=1;
7421 HAVE_DECL_TANL=1;
7422 HAVE_DECL_TRUNC=1;
7423 HAVE_DECL_TRUNCF=1;
7424 HAVE_DECL_TRUNCL=1;
7425 REPLACE_CBRTF=0;
7426 REPLACE_CBRTL=0;
7427 REPLACE_CEIL=0;
7428 REPLACE_CEILF=0;
7429 REPLACE_CEILL=0;
7430 REPLACE_EXPM1=0;
7431 REPLACE_EXPM1F=0;
7432 REPLACE_EXP2=0;
7433 REPLACE_EXP2L=0;
7434 REPLACE_FABSL=0;
7435 REPLACE_FLOOR=0;
7436 REPLACE_FLOORF=0;
7437 REPLACE_FLOORL=0;
7438 REPLACE_FMA=0;
7439 REPLACE_FMAF=0;
7440 REPLACE_FMAL=0;
7441 REPLACE_FMOD=0;
7442 REPLACE_FMODF=0;
7443 REPLACE_FMODL=0;
7444 REPLACE_FREXPF=0;
7445 REPLACE_FREXP=0;
7446 REPLACE_FREXPL=0;
7447 REPLACE_HUGE_VAL=0;
7448 REPLACE_HYPOT=0;
7449 REPLACE_HYPOTF=0;
7450 REPLACE_HYPOTL=0;
7451 REPLACE_ILOGB=0;
7452 REPLACE_ILOGBF=0;
7453 REPLACE_ISFINITE=0;
7454 REPLACE_ISINF=0;
7455 REPLACE_ISNAN=0;
7456 REPLACE_LDEXPL=0;
7457 REPLACE_LOG=0;
7458 REPLACE_LOGF=0;
7459 REPLACE_LOGL=0;
7460 REPLACE_LOG10=0;
7461 REPLACE_LOG10F=0;
7462 REPLACE_LOG10L=0;
7463 REPLACE_LOG1P=0;
7464 REPLACE_LOG1PF=0;
7465 REPLACE_LOG1PL=0;
7466 REPLACE_LOG2=0;
7467 REPLACE_LOG2F=0;
7468 REPLACE_LOG2L=0;
7469 REPLACE_LOGB=0;
7470 REPLACE_LOGBF=0;
7471 REPLACE_LOGBL=0;
7472 REPLACE_MODF=0;
7473 REPLACE_MODFF=0;
7474 REPLACE_MODFL=0;
7475 REPLACE_NAN=0;
7476 REPLACE_REMAINDER=0;
7477 REPLACE_REMAINDERF=0;
7478 REPLACE_REMAINDERL=0;
7479 REPLACE_ROUND=0;
7480 REPLACE_ROUNDF=0;
7481 REPLACE_ROUNDL=0;
7482 REPLACE_SIGNBIT=0;
7483 REPLACE_SIGNBIT_USING_GCC=0;
7484 REPLACE_SQRTL=0;
7485 REPLACE_TRUNC=0;
7486 REPLACE_TRUNCF=0;
7487 REPLACE_TRUNCL=0;
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7491$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7492if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h. */
7498#include <math.h>
7499 double x;
7500int
7501main ()
7502{
7503int e; return frexp (x, &e) > 0;
7504 ;
7505 return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_link "$LINENO"; then :
7509 gl_cv_func_frexp_no_libm=yes
7510else
7511 gl_cv_func_frexp_no_libm=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7515
7516fi
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7518$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7519
4a626d0a
PA
7520ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7521if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7522 ac_have_decl=1
7523else
7524 ac_have_decl=0
7525fi
88b48903 7526
4a626d0a
PA
7527cat >>confdefs.h <<_ACEOF
7528#define HAVE_DECL_ALARM $ac_have_decl
7529_ACEOF
88b48903
WN
7530
7531
88b48903
WN
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7533$as_echo_n "checking whether long double and double are the same... " >&6; }
7534if test "${gl_cv_long_double_equals_double+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h. */
7539#include <float.h>
7540int
7541main ()
7542{
7543typedef int check[sizeof (long double) == sizeof (double)
7544 && LDBL_MANT_DIG == DBL_MANT_DIG
7545 && LDBL_MAX_EXP == DBL_MAX_EXP
7546 && LDBL_MIN_EXP == DBL_MIN_EXP
7547 ? 1 : -1];
7548
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553if ac_fn_c_try_compile "$LINENO"; then :
7554 gl_cv_long_double_equals_double=yes
7555else
7556 gl_cv_long_double_equals_double=no
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7562$as_echo "$gl_cv_long_double_equals_double" >&6; }
7563 if test $gl_cv_long_double_equals_double = yes; then
7564
7565$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7566
7567 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7568 else
7569 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7570 fi
7571
7572
4a626d0a
PA
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7574$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7575if test "${ac_cv_c_restrict+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577else
7578 ac_cv_c_restrict=no
7579 # The order here caters to the fact that C++ does not require restrict.
7580 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h. */
7583typedef int *int_ptr;
7584 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7585 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7586 int bar (int ip[$ac_kw]) { return ip[0]; }
7587
7588int
7589main ()
7590{
7591int s[1];
7592 int *$ac_kw t = s;
7593 t[0] = 0;
7594 return foo (t) + bar (t);
7595
7596 ;
7597 return 0;
7598}
7599_ACEOF
7600if ac_fn_c_try_compile "$LINENO"; then :
7601 ac_cv_c_restrict=$ac_kw
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 test "$ac_cv_c_restrict" != no && break
7605 done
7606
7607fi
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7609$as_echo "$ac_cv_c_restrict" >&6; }
7610
7611 case $ac_cv_c_restrict in
7612 restrict) ;;
7613 no) $as_echo "#define restrict /**/" >>confdefs.h
7614 ;;
7615 *) cat >>confdefs.h <<_ACEOF
7616#define restrict $ac_cv_c_restrict
7617_ACEOF
7618 ;;
7619 esac
7620
7621
7622 GNULIB_GETTIMEOFDAY=0;
7623 HAVE_GETTIMEOFDAY=1;
7624 HAVE_STRUCT_TIMEVAL=1;
7625 HAVE_SYS_TIME_H=1;
7626 HAVE_TIMEZONE_T=0;
7627 REPLACE_GETTIMEOFDAY=0;
7628 REPLACE_STRUCT_TIMEVAL=0;
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 if test $gl_cv_have_include_next = yes; then
7648 gl_cv_next_sys_time_h='<'sys/time.h'>'
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7651$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7652if test "${gl_cv_next_sys_time_h+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654else
7655
7656 if test $ac_cv_header_sys_time_h = yes; then
7657
7658
7659
7660
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h. */
7663#include <sys/time.h>
7664_ACEOF
7665 case "$host_os" in
7666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7667 *) gl_absname_cpp="$ac_cpp" ;;
7668 esac
7669
7670 case "$host_os" in
7671 mingw*)
7672 gl_dirsep_regex='[/\\]'
7673 ;;
7674 *)
7675 gl_dirsep_regex='\/'
7676 ;;
7677 esac
7678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7679 gl_header_literal_regex=`echo 'sys/time.h' \
7680 | sed -e "$gl_make_literal_regex_sed"`
7681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7683 s|^/[^/]|//&|
7684 p
7685 q
7686 }'
7687
7688 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7689 sed -n "$gl_absolute_header_sed"`
7690
7691 gl_header=$gl_cv_absolute_sys_time_h
7692 gl_cv_next_sys_time_h='"'$gl_header'"'
7693 else
7694 gl_cv_next_sys_time_h='<'sys/time.h'>'
7695 fi
7696
7697
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7700$as_echo "$gl_cv_next_sys_time_h" >&6; }
7701 fi
7702 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7703
7704 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7706 gl_next_as_first_directive='<'sys/time.h'>'
7707 else
7708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7709 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7710 fi
7711 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7712
7713
7714
7715
7716
7717 if test $ac_cv_header_sys_time_h != yes; then
7718 HAVE_SYS_TIME_H=0
7719 fi
7720
7721
7722
7723
7724
7725 if test $ac_cv_header_sys_socket_h != yes; then
7726 for ac_header in winsock2.h
7727do :
7728 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7729if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7730 cat >>confdefs.h <<_ACEOF
7731#define HAVE_WINSOCK2_H 1
7732_ACEOF
7733
7734fi
7735
7736done
7737
7738 fi
7739 if test "$ac_cv_header_winsock2_h" = yes; then
7740 HAVE_WINSOCK2_H=1
7741 UNISTD_H_HAVE_WINSOCK2_H=1
7742 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7743 else
7744 HAVE_WINSOCK2_H=0
7745 fi
7746
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7749$as_echo_n "checking for struct timeval... " >&6; }
7750if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754/* end confdefs.h. */
7755#if HAVE_SYS_TIME_H
7756 #include <sys/time.h>
7757 #endif
7758 #include <time.h>
7759 #if HAVE_WINSOCK2_H
7760 # include <winsock2.h>
7761 #endif
7762
7763int
7764main ()
7765{
7766static struct timeval x; x.tv_sec = x.tv_usec;
7767 ;
7768 return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_compile "$LINENO"; then :
7772 gl_cv_sys_struct_timeval=yes
7773else
7774 gl_cv_sys_struct_timeval=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777
7778fi
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7780$as_echo "$gl_cv_sys_struct_timeval" >&6; }
7781 if test $gl_cv_sys_struct_timeval != yes; then
7782 HAVE_STRUCT_TIMEVAL=0
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7785$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7786if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h. */
7791#if HAVE_SYS_TIME_H
7792 #include <sys/time.h>
7793 #endif
7794 #include <time.h>
7795 #if HAVE_WINSOCK2_H
7796 # include <winsock2.h>
7797 #endif
7798
7799int
7800main ()
7801{
7802static struct timeval x;
7803 typedef int verify_tv_sec_type[
7804 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7805 ];
7806
7807 ;
7808 return 0;
7809}
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"; then :
7812 gl_cv_sys_struct_timeval_tv_sec=yes
7813else
7814 gl_cv_sys_struct_timeval_tv_sec=no
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7820$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7821 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7822 REPLACE_STRUCT_TIMEVAL=1
7823 fi
7824 fi
7825
7826
7827 for gl_func in gettimeofday; do
7828 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7830$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7831if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7832 $as_echo_n "(cached) " >&6
7833else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h. */
7836
7837#if HAVE_SYS_TIME_H
7838# include <sys/time.h>
7839#endif
7840#include <time.h>
7841
7842int
7843main ()
7844{
7845#undef $gl_func
7846 (void) $gl_func;
7847 ;
7848 return 0;
7849}
7850_ACEOF
7851if ac_fn_c_try_compile "$LINENO"; then :
7852 eval "$as_gl_Symbol=yes"
7853else
7854 eval "$as_gl_Symbol=no"
7855fi
7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857fi
7858eval ac_res=\$$as_gl_Symbol
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7860$as_echo "$ac_res" >&6; }
7861 eval as_val=\$$as_gl_Symbol
7862 if test "x$as_val" = x""yes; then :
7863 cat >>confdefs.h <<_ACEOF
7864#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7865_ACEOF
7866
7867 eval ac_cv_have_decl_$gl_func=yes
7868fi
7869 done
7870
7871
7872
7873
7874
7875
7876
88b48903 7877
8690e634
JK
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7879$as_echo_n "checking for unsigned long long int... " >&6; }
7880if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882else
7883 ac_cv_type_unsigned_long_long_int=yes
7884 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886/* end confdefs.h. */
7887
7888 /* For now, do not test the preprocessor; as of 2007 there are too many
7889 implementations with broken preprocessors. Perhaps this can
7890 be revisited in 2012. In the meantime, code should not expect
7891 #if to work with literals wider than 32 bits. */
7892 /* Test literals. */
7893 long long int ll = 9223372036854775807ll;
7894 long long int nll = -9223372036854775807LL;
7895 unsigned long long int ull = 18446744073709551615ULL;
7896 /* Test constant expressions. */
7897 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7898 ? 1 : -1)];
7899 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7900 ? 1 : -1)];
7901 int i = 63;
7902int
7903main ()
7904{
7905/* Test availability of runtime routines for shift and division. */
7906 long long int llmax = 9223372036854775807ll;
7907 unsigned long long int ullmax = 18446744073709551615ull;
7908 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7909 | (llmax / ll) | (llmax % ll)
7910 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7911 | (ullmax / ull) | (ullmax % ull));
7912 ;
7913 return 0;
7914}
7915
7916_ACEOF
7917if ac_fn_c_try_link "$LINENO"; then :
7918
7919else
7920 ac_cv_type_unsigned_long_long_int=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 fi
7925fi
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7927$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7928 if test $ac_cv_type_unsigned_long_long_int = yes; then
7929
7930$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7931
7932 fi
7933
7934
7935
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7937$as_echo_n "checking for long long int... " >&6; }
7938if test "${ac_cv_type_long_long_int+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940else
7941 ac_cv_type_long_long_int=yes
7942 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7943 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7944 if test $ac_cv_type_long_long_int = yes; then
7945 if test "$cross_compiling" = yes; then :
7946 :
7947else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950#include <limits.h>
7951 #ifndef LLONG_MAX
7952 # define HALF \
7953 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7954 # define LLONG_MAX (HALF - 1 + HALF)
7955 #endif
7956int
7957main ()
7958{
7959long long int n = 1;
7960 int i;
7961 for (i = 0; ; i++)
7962 {
7963 long long int m = n << i;
7964 if (m >> i != n)
7965 return 1;
7966 if (LLONG_MAX / 2 < m)
7967 break;
7968 }
7969 return 0;
7970 ;
7971 return 0;
7972}
7973_ACEOF
7974if ac_fn_c_try_run "$LINENO"; then :
7975
7976else
7977 ac_cv_type_long_long_int=no
7978fi
7979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7980 conftest.$ac_objext conftest.beam conftest.$ac_ext
7981fi
7982
7983 fi
7984 fi
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7987$as_echo "$ac_cv_type_long_long_int" >&6; }
7988 if test $ac_cv_type_long_long_int = yes; then
7989
7990$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7991
7992 fi
7993
7994
7995
7996
7997
7998
88b48903
WN
7999 gl_cv_c_multiarch=no
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 8001/* end confdefs.h. */
88b48903
WN
8002#ifndef __APPLE_CC__
8003 not a universal capable compiler
8004 #endif
8005 typedef int dummy;
8006
8690e634
JK
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009
8010 arch=
8011 prev=
8012 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8013 if test -n "$prev"; then
8014 case $word in
8015 i?86 | x86_64 | ppc | ppc64)
8016 if test -z "$arch" || test "$arch" = "$word"; then
8017 arch="$word"
8018 else
8019 gl_cv_c_multiarch=yes
8020 fi
8021 ;;
8022 esac
8023 prev=
8024 else
8025 if test "x$word" = "x-arch"; then
8026 prev=arch
8027 fi
8028 fi
8029 done
8030
8031fi
8032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 if test $gl_cv_c_multiarch = yes; then
8034 APPLE_UNIVERSAL_BUILD=1
8035 else
8036 APPLE_UNIVERSAL_BUILD=0
8037 fi
8038
8039
8040
8041
8042
8043 if test $ac_cv_type_long_long_int = yes; then
8044 HAVE_LONG_LONG_INT=1
8045 else
8046 HAVE_LONG_LONG_INT=0
8047 fi
8048
8049
8050 if test $ac_cv_type_unsigned_long_long_int = yes; then
8051 HAVE_UNSIGNED_LONG_LONG_INT=1
8052 else
8053 HAVE_UNSIGNED_LONG_LONG_INT=0
8054 fi
8055
8056
8057
8690e634
JK
8058 if test $ac_cv_header_wchar_h = yes; then
8059 HAVE_WCHAR_H=1
8060 else
8061 HAVE_WCHAR_H=0
8062 fi
8063
8064
8065 if test $ac_cv_header_inttypes_h = yes; then
8066 HAVE_INTTYPES_H=1
8067 else
8068 HAVE_INTTYPES_H=0
8069 fi
8070
8071
8072 if test $ac_cv_header_sys_types_h = yes; then
8073 HAVE_SYS_TYPES_H=1
8074 else
8075 HAVE_SYS_TYPES_H=0
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084
8690e634
JK
8085
8086
8087
8088 if test $gl_cv_have_include_next = yes; then
8089 gl_cv_next_stdint_h='<'stdint.h'>'
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8092$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8093if test "${gl_cv_next_stdint_h+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096
8097 if test $ac_cv_header_stdint_h = yes; then
8098
8099
4a626d0a
PA
8100
8101
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8103/* end confdefs.h. */
8104#include <stdint.h>
8690e634 8105_ACEOF
4a626d0a
PA
8106 case "$host_os" in
8107 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8108 *) gl_absname_cpp="$ac_cpp" ;;
8109 esac
8110
8111 case "$host_os" in
8112 mingw*)
8113 gl_dirsep_regex='[/\\]'
8114 ;;
8115 *)
8116 gl_dirsep_regex='\/'
8117 ;;
8118 esac
8119 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8120 gl_header_literal_regex=`echo 'stdint.h' \
8121 | sed -e "$gl_make_literal_regex_sed"`
8122 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8123 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8124 s|^/[^/]|//&|
8125 p
8126 q
8127 }'
8128
8129 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8130 sed -n "$gl_absolute_header_sed"`
8131
8132 gl_header=$gl_cv_absolute_stdint_h
8133 gl_cv_next_stdint_h='"'$gl_header'"'
8690e634
JK
8134 else
8135 gl_cv_next_stdint_h='<'stdint.h'>'
8136 fi
8137
8138
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8141$as_echo "$gl_cv_next_stdint_h" >&6; }
8142 fi
8143 NEXT_STDINT_H=$gl_cv_next_stdint_h
8144
8145 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8147 gl_next_as_first_directive='<'stdint.h'>'
8148 else
8149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8150 gl_next_as_first_directive=$gl_cv_next_stdint_h
8151 fi
8152 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8153
8154
8155
8156
8157 if test $ac_cv_header_stdint_h = yes; then
8158 HAVE_STDINT_H=1
8159 else
8160 HAVE_STDINT_H=0
8161 fi
8162
8163
8164 if test $ac_cv_header_stdint_h = yes; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8166$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8167if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169else
8170 gl_cv_header_working_stdint_h=no
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h. */
8173
8174
8175#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8176#include <stdint.h>
8177/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8178#if !(defined WCHAR_MIN && defined WCHAR_MAX)
8179#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8180#endif
8181
8182
8183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8184 included before <wchar.h>. */
8185 #include <stddef.h>
8186 #include <signal.h>
8187 #if HAVE_WCHAR_H
8188 # include <stdio.h>
8189 # include <time.h>
8190 # include <wchar.h>
8191 #endif
8192
8193
8194#ifdef INT8_MAX
8195int8_t a1 = INT8_MAX;
8196int8_t a1min = INT8_MIN;
8197#endif
8198#ifdef INT16_MAX
8199int16_t a2 = INT16_MAX;
8200int16_t a2min = INT16_MIN;
8201#endif
8202#ifdef INT32_MAX
8203int32_t a3 = INT32_MAX;
8204int32_t a3min = INT32_MIN;
8205#endif
8206#ifdef INT64_MAX
8207int64_t a4 = INT64_MAX;
8208int64_t a4min = INT64_MIN;
8209#endif
8210#ifdef UINT8_MAX
8211uint8_t b1 = UINT8_MAX;
8212#else
8213typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8214#endif
8215#ifdef UINT16_MAX
8216uint16_t b2 = UINT16_MAX;
8217#endif
8218#ifdef UINT32_MAX
8219uint32_t b3 = UINT32_MAX;
8220#endif
8221#ifdef UINT64_MAX
8222uint64_t b4 = UINT64_MAX;
8223#endif
8224int_least8_t c1 = INT8_C (0x7f);
8225int_least8_t c1max = INT_LEAST8_MAX;
8226int_least8_t c1min = INT_LEAST8_MIN;
8227int_least16_t c2 = INT16_C (0x7fff);
8228int_least16_t c2max = INT_LEAST16_MAX;
8229int_least16_t c2min = INT_LEAST16_MIN;
8230int_least32_t c3 = INT32_C (0x7fffffff);
8231int_least32_t c3max = INT_LEAST32_MAX;
8232int_least32_t c3min = INT_LEAST32_MIN;
8233int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8234int_least64_t c4max = INT_LEAST64_MAX;
8235int_least64_t c4min = INT_LEAST64_MIN;
8236uint_least8_t d1 = UINT8_C (0xff);
8237uint_least8_t d1max = UINT_LEAST8_MAX;
8238uint_least16_t d2 = UINT16_C (0xffff);
8239uint_least16_t d2max = UINT_LEAST16_MAX;
8240uint_least32_t d3 = UINT32_C (0xffffffff);
8241uint_least32_t d3max = UINT_LEAST32_MAX;
8242uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8243uint_least64_t d4max = UINT_LEAST64_MAX;
8244int_fast8_t e1 = INT_FAST8_MAX;
8245int_fast8_t e1min = INT_FAST8_MIN;
8246int_fast16_t e2 = INT_FAST16_MAX;
8247int_fast16_t e2min = INT_FAST16_MIN;
8248int_fast32_t e3 = INT_FAST32_MAX;
8249int_fast32_t e3min = INT_FAST32_MIN;
8250int_fast64_t e4 = INT_FAST64_MAX;
8251int_fast64_t e4min = INT_FAST64_MIN;
8252uint_fast8_t f1 = UINT_FAST8_MAX;
8253uint_fast16_t f2 = UINT_FAST16_MAX;
8254uint_fast32_t f3 = UINT_FAST32_MAX;
8255uint_fast64_t f4 = UINT_FAST64_MAX;
8256#ifdef INTPTR_MAX
8257intptr_t g = INTPTR_MAX;
8258intptr_t gmin = INTPTR_MIN;
8259#endif
8260#ifdef UINTPTR_MAX
8261uintptr_t h = UINTPTR_MAX;
8262#endif
8263intmax_t i = INTMAX_MAX;
8264uintmax_t j = UINTMAX_MAX;
8265
8266#include <limits.h> /* for CHAR_BIT */
8267#define TYPE_MINIMUM(t) \
8268 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8269#define TYPE_MAXIMUM(t) \
8270 ((t) ((t) 0 < (t) -1 \
8271 ? (t) -1 \
8272 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8273struct s {
8274 int check_PTRDIFF:
8275 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8276 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8277 ? 1 : -1;
8278 /* Detect bug in FreeBSD 6.0 / ia64. */
8279 int check_SIG_ATOMIC:
8280 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8281 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8282 ? 1 : -1;
8283 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8284 int check_WCHAR:
8285 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8286 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8287 ? 1 : -1;
8288 /* Detect bug in mingw. */
8289 int check_WINT:
8290 WINT_MIN == TYPE_MINIMUM (wint_t)
8291 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8292 ? 1 : -1;
8293
8294 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8295 int check_UINT8_C:
8296 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8297 int check_UINT16_C:
8298 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8299
8300 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8301#ifdef UINT8_MAX
8302 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8303#endif
8304#ifdef UINT16_MAX
8305 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8306#endif
8307#ifdef UINT32_MAX
8308 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8309#endif
8310#ifdef UINT64_MAX
8311 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8312#endif
8313 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8314 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8315 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8316 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8317 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8318 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8319 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8320 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8321 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8322 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8323 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8324};
8325
8326int
8327main ()
8328{
8329
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"; then :
8335 if test "$cross_compiling" = yes; then :
8336 gl_cv_header_working_stdint_h=yes
8337
8338else
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340/* end confdefs.h. */
8341
8342
8343#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8344#include <stdint.h>
8345
8346
8347 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8348 included before <wchar.h>. */
8349 #include <stddef.h>
8350 #include <signal.h>
8351 #if HAVE_WCHAR_H
8352 # include <stdio.h>
8353 # include <time.h>
8354 # include <wchar.h>
8355 #endif
8356
8357
8358#include <stdio.h>
8359#include <string.h>
8360#define MVAL(macro) MVAL1(macro)
8361#define MVAL1(expression) #expression
8362static const char *macro_values[] =
8363 {
8364#ifdef INT8_MAX
8365 MVAL (INT8_MAX),
8366#endif
8367#ifdef INT16_MAX
8368 MVAL (INT16_MAX),
8369#endif
8370#ifdef INT32_MAX
8371 MVAL (INT32_MAX),
8372#endif
8373#ifdef INT64_MAX
8374 MVAL (INT64_MAX),
8375#endif
8376#ifdef UINT8_MAX
8377 MVAL (UINT8_MAX),
8378#endif
8379#ifdef UINT16_MAX
8380 MVAL (UINT16_MAX),
8381#endif
8382#ifdef UINT32_MAX
8383 MVAL (UINT32_MAX),
8384#endif
8385#ifdef UINT64_MAX
8386 MVAL (UINT64_MAX),
8387#endif
8388 NULL
8389 };
8390
8391int
8392main ()
8393{
8394
8395 const char **mv;
8396 for (mv = macro_values; *mv != NULL; mv++)
8397 {
8398 const char *value = *mv;
8399 /* Test whether it looks like a cast expression. */
8400 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8401 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8402 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8403 || strncmp (value, "((int)"/*)*/, 6) == 0
8404 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8405 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8406 return mv - macro_values + 1;
8407 }
8408 return 0;
8409
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414if ac_fn_c_try_run "$LINENO"; then :
8415 gl_cv_header_working_stdint_h=yes
8416fi
8417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8418 conftest.$ac_objext conftest.beam conftest.$ac_ext
8419fi
8420
8421
8422fi
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424
8425fi
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8427$as_echo "$gl_cv_header_working_stdint_h" >&6; }
8428 fi
8429 if test "$gl_cv_header_working_stdint_h" = yes; then
8430 STDINT_H=
8431 else
8432 for ac_header in sys/inttypes.h sys/bitypes.h
8433do :
8434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8436eval as_val=\$$as_ac_Header
8437 if test "x$as_val" = x""yes; then :
8438 cat >>confdefs.h <<_ACEOF
8439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8440_ACEOF
8441
8442fi
8443
8444done
8445
8446 if test $ac_cv_header_sys_inttypes_h = yes; then
8447 HAVE_SYS_INTTYPES_H=1
8448 else
8449 HAVE_SYS_INTTYPES_H=0
8450 fi
8451
8452 if test $ac_cv_header_sys_bitypes_h = yes; then
8453 HAVE_SYS_BITYPES_H=1
8454 else
8455 HAVE_SYS_BITYPES_H=0
8456 fi
8457
8458
8459
8460
8461 if test $APPLE_UNIVERSAL_BUILD = 0; then
8462
8463
8464 for gltype in ptrdiff_t size_t ; do
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8466$as_echo_n "checking for bit size of $gltype... " >&6; }
8467if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8468 $as_echo_n "(cached) " >&6
8469else
8470 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8471 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8472 included before <wchar.h>. */
8473 #include <stddef.h>
8474 #include <signal.h>
8475 #if HAVE_WCHAR_H
8476 # include <stdio.h>
8477 # include <time.h>
8478 # include <wchar.h>
8479 #endif
8480
8481#include <limits.h>"; then :
8482
8483else
8484 result=unknown
8485fi
8486
8487 eval gl_cv_bitsizeof_${gltype}=\$result
8488
8489fi
8490eval ac_res=\$gl_cv_bitsizeof_${gltype}
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8492$as_echo "$ac_res" >&6; }
8493 eval result=\$gl_cv_bitsizeof_${gltype}
8494 if test $result = unknown; then
8495 result=0
8496 fi
8497 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8498 cat >>confdefs.h <<_ACEOF
8499#define BITSIZEOF_${GLTYPE} $result
8500_ACEOF
8501
8502 eval BITSIZEOF_${GLTYPE}=\$result
8503 done
8504
8505
8506 fi
8507
8508
8509 for gltype in sig_atomic_t wchar_t wint_t ; do
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8511$as_echo_n "checking for bit size of $gltype... " >&6; }
8512if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8513 $as_echo_n "(cached) " >&6
8514else
8515 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8516 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8517 included before <wchar.h>. */
8518 #include <stddef.h>
8519 #include <signal.h>
8520 #if HAVE_WCHAR_H
8521 # include <stdio.h>
8522 # include <time.h>
8523 # include <wchar.h>
8524 #endif
8525
8526#include <limits.h>"; then :
8527
8528else
8529 result=unknown
8530fi
8531
8532 eval gl_cv_bitsizeof_${gltype}=\$result
8533
8534fi
8535eval ac_res=\$gl_cv_bitsizeof_${gltype}
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8537$as_echo "$ac_res" >&6; }
8538 eval result=\$gl_cv_bitsizeof_${gltype}
8539 if test $result = unknown; then
8540 result=0
8541 fi
8542 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8543 cat >>confdefs.h <<_ACEOF
8544#define BITSIZEOF_${GLTYPE} $result
8545_ACEOF
8546
8547 eval BITSIZEOF_${GLTYPE}=\$result
8548 done
8549
8550
8551
8552
8553 for gltype in sig_atomic_t wchar_t wint_t ; do
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8555$as_echo_n "checking whether $gltype is signed... " >&6; }
8556if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8557 $as_echo_n "(cached) " >&6
8558else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h. */
8561
8562 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8563 included before <wchar.h>. */
8564 #include <stddef.h>
8565 #include <signal.h>
8566 #if HAVE_WCHAR_H
8567 # include <stdio.h>
8568 # include <time.h>
8569 # include <wchar.h>
8570 #endif
8571
8572 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8573int
8574main ()
8575{
8576
8577 ;
8578 return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582 result=yes
8583else
8584 result=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 eval gl_cv_type_${gltype}_signed=\$result
8588
8589fi
8590eval ac_res=\$gl_cv_type_${gltype}_signed
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8592$as_echo "$ac_res" >&6; }
8593 eval result=\$gl_cv_type_${gltype}_signed
8594 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8595 if test "$result" = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597#define HAVE_SIGNED_${GLTYPE} 1
8598_ACEOF
8599
8600 eval HAVE_SIGNED_${GLTYPE}=1
8601 else
8602 eval HAVE_SIGNED_${GLTYPE}=0
8603 fi
8604 done
8605
8606
8607 gl_cv_type_ptrdiff_t_signed=yes
8608 gl_cv_type_size_t_signed=no
8609 if test $APPLE_UNIVERSAL_BUILD = 0; then
8610
8611
8612 for gltype in ptrdiff_t size_t ; do
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8614$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8615if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8616 $as_echo_n "(cached) " >&6
8617else
8618 eval gl_cv_type_${gltype}_suffix=no
8619 eval result=\$gl_cv_type_${gltype}_signed
8620 if test "$result" = yes; then
8621 glsufu=
8622 else
8623 glsufu=u
8624 fi
8625 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8626 case $glsuf in
8627 '') gltype1='int';;
8628 l) gltype1='long int';;
8629 ll) gltype1='long long int';;
8630 i64) gltype1='__int64';;
8631 u) gltype1='unsigned int';;
8632 ul) gltype1='unsigned long int';;
8633 ull) gltype1='unsigned long long int';;
8634 ui64)gltype1='unsigned __int64';;
8635 esac
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h. */
8638
8639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8640 included before <wchar.h>. */
8641 #include <stddef.h>
8642 #include <signal.h>
8643 #if HAVE_WCHAR_H
8644 # include <stdio.h>
8645 # include <time.h>
8646 # include <wchar.h>
8647 #endif
8648
8649 extern $gltype foo;
8650 extern $gltype1 foo;
8651int
8652main ()
8653{
8654
8655 ;
8656 return 0;
8657}
8658_ACEOF
8659if ac_fn_c_try_compile "$LINENO"; then :
8660 eval gl_cv_type_${gltype}_suffix=\$glsuf
8661fi
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 eval result=\$gl_cv_type_${gltype}_suffix
8664 test "$result" != no && break
8665 done
8666fi
8667eval ac_res=\$gl_cv_type_${gltype}_suffix
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8669$as_echo "$ac_res" >&6; }
8670 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8671 eval result=\$gl_cv_type_${gltype}_suffix
8672 test "$result" = no && result=
8673 eval ${GLTYPE}_SUFFIX=\$result
8674 cat >>confdefs.h <<_ACEOF
8675#define ${GLTYPE}_SUFFIX $result
8676_ACEOF
8677
8678 done
8679
8680
8681 fi
8682
8683
8684 for gltype in sig_atomic_t wchar_t wint_t ; do
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8686$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8687if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8688 $as_echo_n "(cached) " >&6
8689else
8690 eval gl_cv_type_${gltype}_suffix=no
8691 eval result=\$gl_cv_type_${gltype}_signed
8692 if test "$result" = yes; then
8693 glsufu=
8694 else
8695 glsufu=u
8696 fi
8697 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8698 case $glsuf in
8699 '') gltype1='int';;
8700 l) gltype1='long int';;
8701 ll) gltype1='long long int';;
8702 i64) gltype1='__int64';;
8703 u) gltype1='unsigned int';;
8704 ul) gltype1='unsigned long int';;
8705 ull) gltype1='unsigned long long int';;
8706 ui64)gltype1='unsigned __int64';;
8707 esac
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709/* end confdefs.h. */
8710
8711 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8712 included before <wchar.h>. */
8713 #include <stddef.h>
8714 #include <signal.h>
8715 #if HAVE_WCHAR_H
8716 # include <stdio.h>
8717 # include <time.h>
8718 # include <wchar.h>
8719 #endif
8720
8721 extern $gltype foo;
8722 extern $gltype1 foo;
8723int
8724main ()
8725{
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"; then :
8732 eval gl_cv_type_${gltype}_suffix=\$glsuf
8733fi
8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 eval result=\$gl_cv_type_${gltype}_suffix
8736 test "$result" != no && break
8737 done
8738fi
8739eval ac_res=\$gl_cv_type_${gltype}_suffix
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8741$as_echo "$ac_res" >&6; }
8742 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8743 eval result=\$gl_cv_type_${gltype}_suffix
8744 test "$result" = no && result=
8745 eval ${GLTYPE}_SUFFIX=\$result
8746 cat >>confdefs.h <<_ACEOF
8747#define ${GLTYPE}_SUFFIX $result
8748_ACEOF
8749
8750 done
8751
8752
8753
8754 if test $BITSIZEOF_WINT_T -lt 32; then
8755 BITSIZEOF_WINT_T=32
8756 fi
8757
8758 STDINT_H=stdint.h
8759 fi
8760
8761 if test -n "$STDINT_H"; then
8762 GL_GENERATE_STDINT_H_TRUE=
8763 GL_GENERATE_STDINT_H_FALSE='#'
8764else
8765 GL_GENERATE_STDINT_H_TRUE='#'
8766 GL_GENERATE_STDINT_H_FALSE=
8767fi
8768
8769
8770
8771
8772
8690e634
JK
8773 GNULIB_IMAXABS=0;
8774 GNULIB_IMAXDIV=0;
8775 GNULIB_STRTOIMAX=0;
8776 GNULIB_STRTOUMAX=0;
8777 HAVE_DECL_IMAXABS=1;
8778 HAVE_DECL_IMAXDIV=1;
8779 HAVE_DECL_STRTOIMAX=1;
8780 HAVE_DECL_STRTOUMAX=1;
8781 REPLACE_STRTOIMAX=0;
4a626d0a 8782 REPLACE_STRTOUMAX=0;
8690e634
JK
8783 INT32_MAX_LT_INTMAX_MAX=1;
8784 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8785 PRI_MACROS_BROKEN=0;
8786 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8787 UINT32_MAX_LT_UINTMAX_MAX=1;
8788 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8789
8790
8791
8792
8690e634
JK
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8690e634
JK
8804 if test $gl_cv_have_include_next = yes; then
8805 gl_cv_next_inttypes_h='<'inttypes.h'>'
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8808$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8809if test "${gl_cv_next_inttypes_h+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811else
8812
8813 if test $ac_cv_header_inttypes_h = yes; then
8814
8815
4a626d0a
PA
8816
8817
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8819/* end confdefs.h. */
8820#include <inttypes.h>
8690e634 8821_ACEOF
4a626d0a
PA
8822 case "$host_os" in
8823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8824 *) gl_absname_cpp="$ac_cpp" ;;
8825 esac
8826
8827 case "$host_os" in
8828 mingw*)
8829 gl_dirsep_regex='[/\\]'
8830 ;;
8831 *)
8832 gl_dirsep_regex='\/'
8833 ;;
8834 esac
8835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8836 gl_header_literal_regex=`echo 'inttypes.h' \
8837 | sed -e "$gl_make_literal_regex_sed"`
8838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8840 s|^/[^/]|//&|
8841 p
8842 q
8843 }'
8844
8845 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8846 sed -n "$gl_absolute_header_sed"`
8847
8848 gl_header=$gl_cv_absolute_inttypes_h
8849 gl_cv_next_inttypes_h='"'$gl_header'"'
8690e634
JK
8850 else
8851 gl_cv_next_inttypes_h='<'inttypes.h'>'
8852 fi
8853
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8857$as_echo "$gl_cv_next_inttypes_h" >&6; }
8858 fi
8859 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8860
8861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8863 gl_next_as_first_directive='<'inttypes.h'>'
8864 else
8865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8866 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8867 fi
8868 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8869
8870
8871
8872
8873
8874
8875
8876
8877 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8878 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8880$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8881if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8882 $as_echo_n "(cached) " >&6
8883else
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h. */
8886#include <inttypes.h>
8887
8888int
8889main ()
8890{
8891#undef $gl_func
8892 (void) $gl_func;
8893 ;
8894 return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_compile "$LINENO"; then :
8898 eval "$as_gl_Symbol=yes"
8899else
8900 eval "$as_gl_Symbol=no"
8901fi
8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903fi
8904eval ac_res=\$$as_gl_Symbol
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8906$as_echo "$ac_res" >&6; }
8907 eval as_val=\$$as_gl_Symbol
8908 if test "x$as_val" = x""yes; then :
8909 cat >>confdefs.h <<_ACEOF
8910#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8911_ACEOF
8912
8913 eval ac_cv_have_decl_$gl_func=yes
8914fi
8915 done
8916
8917
8918
8919 for ac_header in inttypes.h
8920do :
8921 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8922if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8923 cat >>confdefs.h <<_ACEOF
8924#define HAVE_INTTYPES_H 1
8925_ACEOF
8926
8927fi
8928
8929done
8930
8931 if test $ac_cv_header_inttypes_h = yes; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8933$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8934if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936else
8937
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h. */
8940
8941#include <inttypes.h>
8942#ifdef PRId32
8943char *p = PRId32;
8944#endif
8945
8946int
8947main ()
8948{
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_compile "$LINENO"; then :
8955 gt_cv_inttypes_pri_broken=no
8956else
8957 gt_cv_inttypes_pri_broken=yes
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8963$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8964 fi
8965 if test "$gt_cv_inttypes_pri_broken" = yes; then
8966
8967cat >>confdefs.h <<_ACEOF
8968#define PRI_MACROS_BROKEN 1
8969_ACEOF
8970
8971 PRI_MACROS_BROKEN=1
8972 else
8973 PRI_MACROS_BROKEN=0
8974 fi
8975
8976
8977
88b48903
WN
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8979$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8980if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
8981 $as_echo_n "(cached) " >&6
8982else
88b48903
WN
8983
8984 if test "$cross_compiling" = yes; then :
8985
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 8987/* end confdefs.h. */
88b48903
WN
8988
8989#if defined arm || defined __arm || defined __arm__
8990 mixed_endianness
8991#endif
8992
8993_ACEOF
8994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8995 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8996 gl_cv_cc_double_expbit0="unknown"
8997else
8998
8999 :
9000if test "${ac_cv_c_bigendian+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002else
9003 ac_cv_c_bigendian=unknown
9004 # See if we're dealing with a universal compiler.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h. */
9007#ifndef __APPLE_CC__
9008 not a universal capable compiler
9009 #endif
9010 typedef int dummy;
9011
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"; then :
9014
9015 # Check for potential -arch flags. It is not universal unless
9016 # there are at least two -arch flags with different values.
9017 ac_arch=
9018 ac_prev=
9019 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9020 if test -n "$ac_prev"; then
9021 case $ac_word in
9022 i?86 | x86_64 | ppc | ppc64)
9023 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9024 ac_arch=$ac_word
9025 else
9026 ac_cv_c_bigendian=universal
9027 break
9028 fi
9029 ;;
9030 esac
9031 ac_prev=
9032 elif test "x$ac_word" = "x-arch"; then
9033 ac_prev=arch
9034 fi
9035 done
9036fi
9037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 if test $ac_cv_c_bigendian = unknown; then
9039 # See if sys/param.h defines the BYTE_ORDER macro.
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h. */
9042#include <sys/types.h>
9043 #include <sys/param.h>
9044
8690e634
JK
9045int
9046main ()
9047{
88b48903
WN
9048#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9049 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9050 && LITTLE_ENDIAN)
9051 bogus endian macros
9052 #endif
9053
8690e634
JK
9054 ;
9055 return 0;
9056}
9057_ACEOF
88b48903
WN
9058if ac_fn_c_try_compile "$LINENO"; then :
9059 # It does; now see whether it defined to BIG_ENDIAN or not.
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h. */
9062#include <sys/types.h>
9063 #include <sys/param.h>
9064
9065int
9066main ()
9067{
9068#if BYTE_ORDER != BIG_ENDIAN
9069 not big endian
9070 #endif
9071
9072 ;
9073 return 0;
9074}
9075_ACEOF
9076if ac_fn_c_try_compile "$LINENO"; then :
9077 ac_cv_c_bigendian=yes
8690e634 9078else
88b48903 9079 ac_cv_c_bigendian=no
8690e634 9080fi
88b48903 9081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 9082fi
88b48903
WN
9083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 if test $ac_cv_c_bigendian = unknown; then
9086 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h. */
9089#include <limits.h>
8690e634 9090
88b48903
WN
9091int
9092main ()
9093{
9094#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9095 bogus endian macros
9096 #endif
8690e634 9097
88b48903
WN
9098 ;
9099 return 0;
9100}
9101_ACEOF
9102if ac_fn_c_try_compile "$LINENO"; then :
9103 # It does; now see whether it defined to _BIG_ENDIAN or not.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h. */
9106#include <limits.h>
8690e634 9107
88b48903
WN
9108int
9109main ()
9110{
9111#ifndef _BIG_ENDIAN
9112 not big endian
9113 #endif
8690e634 9114
88b48903
WN
9115 ;
9116 return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_compile "$LINENO"; then :
9120 ac_cv_c_bigendian=yes
9121else
9122 ac_cv_c_bigendian=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125fi
9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 if test $ac_cv_c_bigendian = unknown; then
9129 # Compile a test program.
9130 if test "$cross_compiling" = yes; then :
9131 # Try to guess by grepping values from an object file.
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133/* end confdefs.h. */
9134short int ascii_mm[] =
9135 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9136 short int ascii_ii[] =
9137 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9138 int use_ascii (int i) {
9139 return ascii_mm[i] + ascii_ii[i];
9140 }
9141 short int ebcdic_ii[] =
9142 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9143 short int ebcdic_mm[] =
9144 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9145 int use_ebcdic (int i) {
9146 return ebcdic_mm[i] + ebcdic_ii[i];
9147 }
9148 extern int foo;
8690e634 9149
88b48903
WN
9150int
9151main ()
9152{
9153return use_ascii (foo) == use_ebcdic (foo);
9154 ;
9155 return 0;
9156}
9157_ACEOF
9158if ac_fn_c_try_compile "$LINENO"; then :
9159 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9160 ac_cv_c_bigendian=yes
9161 fi
9162 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9163 if test "$ac_cv_c_bigendian" = unknown; then
9164 ac_cv_c_bigendian=no
9165 else
9166 # finding both strings is unlikely to happen, but who knows?
9167 ac_cv_c_bigendian=unknown
9168 fi
9169 fi
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172else
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174/* end confdefs.h. */
9175$ac_includes_default
9176int
9177main ()
9178{
8690e634 9179
88b48903
WN
9180 /* Are we little or big endian? From Harbison&Steele. */
9181 union
9182 {
9183 long int l;
9184 char c[sizeof (long int)];
9185 } u;
9186 u.l = 1;
9187 return u.c[sizeof (long int) - 1] == 1;
8690e634 9188
88b48903
WN
9189 ;
9190 return 0;
9191}
9192_ACEOF
9193if ac_fn_c_try_run "$LINENO"; then :
9194 ac_cv_c_bigendian=no
9195else
9196 ac_cv_c_bigendian=yes
9197fi
9198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9199 conftest.$ac_objext conftest.beam conftest.$ac_ext
9200fi
8690e634 9201
88b48903
WN
9202 fi
9203fi
9204:
9205 case $ac_cv_c_bigendian in #(
9206 yes)
9207 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9208 no)
9209 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9210 universal)
8690e634 9211
88b48903 9212$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 9213
88b48903
WN
9214 ;; #(
9215 *)
9216 gl_cv_cc_double_expbit0="unknown" ;;
9217 esac
8690e634
JK
9218
9219
88b48903
WN
9220fi
9221rm -f conftest*
8690e634 9222
8690e634 9223
88b48903
WN
9224else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h. */
8690e634 9227
88b48903
WN
9228#include <float.h>
9229#include <stddef.h>
9230#include <stdio.h>
9231#include <string.h>
9232#define NWORDS \
9233 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9234typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9235static unsigned int ored_words[NWORDS];
9236static unsigned int anded_words[NWORDS];
9237static void add_to_ored_words (double x)
9238{
9239 memory_double m;
9240 size_t i;
9241 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9242 memset (&m, 0, sizeof (memory_double));
9243 m.value = x;
9244 for (i = 0; i < NWORDS; i++)
9245 {
9246 ored_words[i] |= m.word[i];
9247 anded_words[i] &= m.word[i];
9248 }
9249}
9250int main ()
9251{
9252 size_t j;
9253 FILE *fp = fopen ("conftest.out", "w");
9254 if (fp == NULL)
9255 return 1;
9256 for (j = 0; j < NWORDS; j++)
9257 anded_words[j] = ~ (unsigned int) 0;
9258 add_to_ored_words (0.25);
9259 add_to_ored_words (0.5);
9260 add_to_ored_words (1.0);
9261 add_to_ored_words (2.0);
9262 add_to_ored_words (4.0);
9263 /* Remove bits that are common (e.g. if representation of the first mantissa
9264 bit is explicit). */
9265 for (j = 0; j < NWORDS; j++)
9266 ored_words[j] &= ~anded_words[j];
9267 /* Now find the nonzero word. */
9268 for (j = 0; j < NWORDS; j++)
9269 if (ored_words[j] != 0)
9270 break;
9271 if (j < NWORDS)
9272 {
9273 size_t i;
9274 for (i = j + 1; i < NWORDS; i++)
9275 if (ored_words[i] != 0)
9276 {
9277 fprintf (fp, "unknown");
9278 return (fclose (fp) != 0);
9279 }
9280 for (i = 0; ; i++)
9281 if ((ored_words[j] >> i) & 1)
9282 {
9283 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9284 return (fclose (fp) != 0);
9285 }
9286 }
9287 fprintf (fp, "unknown");
9288 return (fclose (fp) != 0);
9289}
8690e634 9290
88b48903
WN
9291_ACEOF
9292if ac_fn_c_try_run "$LINENO"; then :
9293 gl_cv_cc_double_expbit0=`cat conftest.out`
9294else
9295 gl_cv_cc_double_expbit0="unknown"
9296fi
9297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9298 conftest.$ac_objext conftest.beam conftest.$ac_ext
9299fi
8690e634 9300
88b48903 9301 rm -f conftest.out
8690e634 9302
88b48903
WN
9303fi
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9305$as_echo "$gl_cv_cc_double_expbit0" >&6; }
9306 case "$gl_cv_cc_double_expbit0" in
9307 word*bit*)
9308 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9309 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 9310
88b48903
WN
9311cat >>confdefs.h <<_ACEOF
9312#define DBL_EXPBIT0_WORD $word
9313_ACEOF
8690e634
JK
9314
9315
88b48903
WN
9316cat >>confdefs.h <<_ACEOF
9317#define DBL_EXPBIT0_BIT $bit
9318_ACEOF
8690e634 9319
88b48903
WN
9320 ;;
9321 esac
8690e634
JK
9322
9323
88b48903
WN
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9325$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9326if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
9327 $as_echo_n "(cached) " >&6
9328else
88b48903
WN
9329 ac_cv_c_bigendian=unknown
9330 # See if we're dealing with a universal compiler.
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h. */
9333#ifndef __APPLE_CC__
9334 not a universal capable compiler
9335 #endif
9336 typedef int dummy;
9337
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"; then :
9340
9341 # Check for potential -arch flags. It is not universal unless
9342 # there are at least two -arch flags with different values.
9343 ac_arch=
9344 ac_prev=
9345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9346 if test -n "$ac_prev"; then
9347 case $ac_word in
9348 i?86 | x86_64 | ppc | ppc64)
9349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9350 ac_arch=$ac_word
9351 else
9352 ac_cv_c_bigendian=universal
9353 break
9354 fi
9355 ;;
9356 esac
9357 ac_prev=
9358 elif test "x$ac_word" = "x-arch"; then
9359 ac_prev=arch
9360 fi
9361 done
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 if test $ac_cv_c_bigendian = unknown; then
9365 # See if sys/param.h defines the BYTE_ORDER macro.
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
9367/* end confdefs.h. */
9368#include <sys/types.h>
88b48903
WN
9369 #include <sys/param.h>
9370
9371int
9372main ()
9373{
9374#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9375 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9376 && LITTLE_ENDIAN)
9377 bogus endian macros
9378 #endif
9379
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384if ac_fn_c_try_compile "$LINENO"; then :
9385 # It does; now see whether it defined to BIG_ENDIAN or not.
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h. */
9388#include <sys/types.h>
9389 #include <sys/param.h>
9390
9391int
9392main ()
9393{
9394#if BYTE_ORDER != BIG_ENDIAN
9395 not big endian
9396 #endif
9397
9398 ;
9399 return 0;
9400}
9401_ACEOF
9402if ac_fn_c_try_compile "$LINENO"; then :
9403 ac_cv_c_bigendian=yes
9404else
9405 ac_cv_c_bigendian=no
9406fi
9407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408fi
9409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 if test $ac_cv_c_bigendian = unknown; then
9412 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h. */
9415#include <limits.h>
9416
9417int
9418main ()
9419{
9420#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9421 bogus endian macros
9422 #endif
9423
9424 ;
9425 return 0;
9426}
9427_ACEOF
9428if ac_fn_c_try_compile "$LINENO"; then :
9429 # It does; now see whether it defined to _BIG_ENDIAN or not.
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h. */
9432#include <limits.h>
9433
9434int
9435main ()
9436{
9437#ifndef _BIG_ENDIAN
9438 not big endian
9439 #endif
9440
9441 ;
9442 return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_compile "$LINENO"; then :
9446 ac_cv_c_bigendian=yes
9447else
9448 ac_cv_c_bigendian=no
9449fi
9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451fi
9452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 if test $ac_cv_c_bigendian = unknown; then
9455 # Compile a test program.
9456 if test "$cross_compiling" = yes; then :
9457 # Try to guess by grepping values from an object file.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h. */
9460short int ascii_mm[] =
9461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9462 short int ascii_ii[] =
9463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9464 int use_ascii (int i) {
9465 return ascii_mm[i] + ascii_ii[i];
9466 }
9467 short int ebcdic_ii[] =
9468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9469 short int ebcdic_mm[] =
9470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9471 int use_ebcdic (int i) {
9472 return ebcdic_mm[i] + ebcdic_ii[i];
9473 }
9474 extern int foo;
9475
9476int
9477main ()
9478{
9479return use_ascii (foo) == use_ebcdic (foo);
9480 ;
9481 return 0;
9482}
9483_ACEOF
9484if ac_fn_c_try_compile "$LINENO"; then :
9485 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9486 ac_cv_c_bigendian=yes
9487 fi
9488 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9489 if test "$ac_cv_c_bigendian" = unknown; then
9490 ac_cv_c_bigendian=no
9491 else
9492 # finding both strings is unlikely to happen, but who knows?
9493 ac_cv_c_bigendian=unknown
9494 fi
9495 fi
9496fi
9497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498else
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h. */
9501$ac_includes_default
9502int
9503main ()
9504{
9505
9506 /* Are we little or big endian? From Harbison&Steele. */
9507 union
9508 {
9509 long int l;
9510 char c[sizeof (long int)];
9511 } u;
9512 u.l = 1;
9513 return u.c[sizeof (long int) - 1] == 1;
9514
9515 ;
9516 return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_run "$LINENO"; then :
9520 ac_cv_c_bigendian=no
9521else
9522 ac_cv_c_bigendian=yes
9523fi
9524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9525 conftest.$ac_objext conftest.beam conftest.$ac_ext
9526fi
9527
9528 fi
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9531$as_echo "$ac_cv_c_bigendian" >&6; }
9532 case $ac_cv_c_bigendian in #(
9533 yes)
9534 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9535;; #(
9536 no)
9537 ;; #(
9538 universal)
9539
9540$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9541
9542 ;; #(
9543 *)
9544 as_fn_error "unknown endianness
9545 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9546 esac
9547
9548
9549
2196f55f
YQ
9550
9551 case "$host_os" in
9552 mingw*)
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9554$as_echo_n "checking for 64-bit off_t... " >&6; }
9555if test "${gl_cv_type_off_t_64+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557else
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h. */
9560#include <sys/types.h>
9561 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9562
9563int
9564main ()
9565{
9566
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571if ac_fn_c_try_compile "$LINENO"; then :
9572 gl_cv_type_off_t_64=yes
9573else
9574 gl_cv_type_off_t_64=no
9575fi
9576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9580$as_echo "$gl_cv_type_off_t_64" >&6; }
9581 if test $gl_cv_type_off_t_64 = no; then
9582 WINDOWS_64_BIT_OFF_T=1
9583 else
9584 WINDOWS_64_BIT_OFF_T=0
9585 fi
9586 WINDOWS_64_BIT_ST_SIZE=1
9587 ;;
9588 *)
9589 WINDOWS_64_BIT_OFF_T=0
9590 WINDOWS_64_BIT_ST_SIZE=0
9591 ;;
9592 esac
9593
9594
88b48903
WN
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9596$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9597if test "${am_cv_langinfo_codeset+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h. */
9602#include <langinfo.h>
9603int
9604main ()
9605{
9606char* cs = nl_langinfo(CODESET); return !cs;
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611if ac_fn_c_try_link "$LINENO"; then :
9612 am_cv_langinfo_codeset=yes
9613else
9614 am_cv_langinfo_codeset=no
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9621$as_echo "$am_cv_langinfo_codeset" >&6; }
9622 if test $am_cv_langinfo_codeset = yes; then
9623
9624$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9625
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
88b48903
WN
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9638$as_echo_n "checking for working fcntl.h... " >&6; }
9639if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9641else
9642 if test "$cross_compiling" = yes; then :
9643 gl_cv_header_working_fcntl_h=cross-compiling
9644else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h. */
9647#include <sys/types.h>
9648 #include <sys/stat.h>
9649 #if HAVE_UNISTD_H
9650 # include <unistd.h>
9651 #else /* on Windows with MSVC */
9652 # include <io.h>
9653 # include <stdlib.h>
8690e634
JK
9654 # defined sleep(n) _sleep ((n) * 1000)
9655 #endif
9656 #include <fcntl.h>
9657 #ifndef O_NOATIME
9658 #define O_NOATIME 0
9659 #endif
9660 #ifndef O_NOFOLLOW
9661 #define O_NOFOLLOW 0
9662 #endif
9663 static int const constants[] =
9664 {
9665 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9666 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9667 };
9668
9669int
9670main ()
9671{
9672
9673 int result = !constants;
9674 #if HAVE_SYMLINK
9675 {
9676 static char const sym[] = "conftest.sym";
a512b375
JB
9677 if (symlink ("/dev/null", sym) != 0)
9678 result |= 2;
9679 else
9680 {
9681 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9682 if (fd >= 0)
9683 {
9684 close (fd);
9685 result |= 4;
9686 }
9687 }
9688 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
9689 result |= 2;
9690 else
9691 {
9692 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9693 if (fd >= 0)
9694 {
9695 close (fd);
9696 result |= 4;
9697 }
9698 }
9699 unlink (sym);
9700 }
9701 #endif
9702 {
9703 static char const file[] = "confdefs.h";
9704 int fd = open (file, O_RDONLY | O_NOATIME);
9705 if (fd < 0)
9706 result |= 8;
9707 else
9708 {
9709 struct stat st0;
9710 if (fstat (fd, &st0) != 0)
9711 result |= 16;
9712 else
9713 {
9714 char c;
9715 sleep (1);
9716 if (read (fd, &c, 1) != 1)
9717 result |= 24;
9718 else
9719 {
9720 if (close (fd) != 0)
9721 result |= 32;
9722 else
9723 {
9724 struct stat st1;
9725 if (stat (file, &st1) != 0)
9726 result |= 40;
9727 else
9728 if (st0.st_atime != st1.st_atime)
9729 result |= 64;
9730 }
9731 }
9732 }
9733 }
9734 }
9735 return result;
9736 ;
9737 return 0;
9738}
9739_ACEOF
9740if ac_fn_c_try_run "$LINENO"; then :
9741 gl_cv_header_working_fcntl_h=yes
9742else
9743 case $? in #(
9744 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9745 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9746 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9747 *) gl_cv_header_working_fcntl_h='no';;
9748 esac
9749fi
9750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9751 conftest.$ac_objext conftest.beam conftest.$ac_ext
9752fi
9753
9754fi
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9756$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9757
9758 case $gl_cv_header_working_fcntl_h in #(
9759 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9760 *) ac_val=1;;
9761 esac
9762
9763cat >>confdefs.h <<_ACEOF
9764#define HAVE_WORKING_O_NOATIME $ac_val
9765_ACEOF
9766
9767
9768 case $gl_cv_header_working_fcntl_h in #(
9769 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9770 *) ac_val=1;;
9771 esac
9772
9773cat >>confdefs.h <<_ACEOF
9774#define HAVE_WORKING_O_NOFOLLOW $ac_val
9775_ACEOF
9776
9777
3574124b 9778ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
9779if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9780 ac_have_decl=1
9781else
9782 ac_have_decl=0
9783fi
9784
9785cat >>confdefs.h <<_ACEOF
9786#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9787_ACEOF
9788
9789
8690e634
JK
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9791$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9792if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h. */
9797
9798#include <features.h>
9799#ifdef __GNU_LIBRARY__
9800 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9801 Lucky GNU user
9802 #endif
9803#endif
9804#ifdef __UCLIBC__
9805 Lucky user
9806#endif
9807
9808_ACEOF
9809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9810 $EGREP "Lucky" >/dev/null 2>&1; then :
9811 ac_cv_gnu_library_2_1=yes
9812else
9813 ac_cv_gnu_library_2_1=no
9814fi
9815rm -f conftest*
9816
9817
9818
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9821$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9822
9823 GLIBC21="$ac_cv_gnu_library_2_1"
9824
9825
9826
f45c62c4
YQ
9827 GNULIB_FCHMODAT=0;
9828 GNULIB_FSTAT=0;
9829 GNULIB_FSTATAT=0;
9830 GNULIB_FUTIMENS=0;
9831 GNULIB_LCHMOD=0;
9832 GNULIB_LSTAT=0;
9833 GNULIB_MKDIRAT=0;
9834 GNULIB_MKFIFO=0;
9835 GNULIB_MKFIFOAT=0;
9836 GNULIB_MKNOD=0;
9837 GNULIB_MKNODAT=0;
9838 GNULIB_STAT=0;
9839 GNULIB_UTIMENSAT=0;
9840 HAVE_FCHMODAT=1;
9841 HAVE_FSTATAT=1;
9842 HAVE_FUTIMENS=1;
9843 HAVE_LCHMOD=1;
9844 HAVE_LSTAT=1;
9845 HAVE_MKDIRAT=1;
9846 HAVE_MKFIFO=1;
9847 HAVE_MKFIFOAT=1;
9848 HAVE_MKNOD=1;
9849 HAVE_MKNODAT=1;
9850 HAVE_UTIMENSAT=1;
9851 REPLACE_FSTAT=0;
9852 REPLACE_FSTATAT=0;
9853 REPLACE_FUTIMENS=0;
9854 REPLACE_LSTAT=0;
9855 REPLACE_MKDIR=0;
9856 REPLACE_MKFIFO=0;
9857 REPLACE_MKNOD=0;
9858 REPLACE_STAT=0;
9859 REPLACE_UTIMENSAT=0;
9860
9861
9862
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9865$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9866if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868else
9869 rm -f conftest.sym conftest.file
9870 echo >conftest.file
4a626d0a 9871 if test "$cross_compiling" = yes; then :
f45c62c4 9872 case "$host_os" in
4a626d0a
PA
9873 *-gnu*)
9874 # Guess yes on glibc systems.
9875 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9876 *)
9877 # If we don't know, assume the worst.
9878 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9879 esac
f45c62c4
YQ
9880
9881else
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h. */
9884$ac_includes_default
9885int
9886main ()
9887{
9888struct stat sbuf;
4a626d0a
PA
9889 if (symlink ("conftest.file", "conftest.sym") != 0)
9890 return 1;
9891 /* Linux will dereference the symlink and fail, as required by
9892 POSIX. That is better in the sense that it means we will not
9893 have to compile and use the lstat wrapper. */
9894 return lstat ("conftest.sym/", &sbuf) == 0;
f45c62c4
YQ
9895
9896 ;
9897 return 0;
9898}
9899_ACEOF
9900if ac_fn_c_try_run "$LINENO"; then :
9901 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9902else
9903 gl_cv_func_lstat_dereferences_slashed_symlink=no
9904fi
9905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9906 conftest.$ac_objext conftest.beam conftest.$ac_ext
9907fi
9908
f45c62c4
YQ
9909 rm -f conftest.sym conftest.file
9910
9911fi
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9913$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9914 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9915 *yes)
9916
9917cat >>confdefs.h <<_ACEOF
9918#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9919_ACEOF
9920
9921 ;;
9922 esac
9923
9924
6a29c58e
YQ
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9926$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9927if test "${gl_cv_func_malloc_posix+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h. */
9933
9934int
9935main ()
9936{
9937#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9938 choke me
9939 #endif
9940
9941 ;
9942 return 0;
9943}
9944_ACEOF
9945if ac_fn_c_try_compile "$LINENO"; then :
9946 gl_cv_func_malloc_posix=yes
9947else
9948 gl_cv_func_malloc_posix=no
9949fi
9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951
9952fi
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9954$as_echo "$gl_cv_func_malloc_posix" >&6; }
9955
9956
9957
9958 for ac_header in stdlib.h
98399780
YQ
9959do :
9960 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9961if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9962 cat >>confdefs.h <<_ACEOF
9963#define HAVE_STDLIB_H 1
9964_ACEOF
9965
9966fi
9967
9968done
9969
6a29c58e 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
98399780
YQ
9971$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9972if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974else
9975 if test "$cross_compiling" = yes; then :
6a29c58e
YQ
9976 case "$host_os" in
9977 # Guess yes on platforms where we know the result.
9978 *-gnu* | freebsd* | netbsd* | openbsd* \
9979 | hpux* | solaris* | cygwin* | mingw*)
9980 ac_cv_func_malloc_0_nonnull=yes ;;
9981 # If we don't know, assume the worst.
9982 *) ac_cv_func_malloc_0_nonnull=no ;;
9983 esac
9984
98399780
YQ
9985else
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h. */
9988#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6a29c58e
YQ
9989 # include <stdlib.h>
9990 #else
9991 char *malloc ();
9992 #endif
98399780
YQ
9993
9994int
9995main ()
9996{
9997return ! malloc (0);
9998 ;
9999 return 0;
10000}
6a29c58e 10001
98399780
YQ
10002_ACEOF
10003if ac_fn_c_try_run "$LINENO"; then :
10004 ac_cv_func_malloc_0_nonnull=yes
10005else
10006 ac_cv_func_malloc_0_nonnull=no
10007fi
10008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10009 conftest.$ac_objext conftest.beam conftest.$ac_ext
10010fi
10011
6a29c58e 10012
98399780
YQ
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10015$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6a29c58e 10016 if test $ac_cv_func_malloc_0_nonnull = yes; then :
98399780
YQ
10017 gl_cv_func_malloc_0_nonnull=1
10018else
10019 gl_cv_func_malloc_0_nonnull=0
10020fi
10021
10022
10023cat >>confdefs.h <<_ACEOF
10024#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10025_ACEOF
10026
10027
10028
88b48903
WN
10029
10030
8690e634
JK
10031 GNULIB_BTOWC=0;
10032 GNULIB_WCTOB=0;
10033 GNULIB_MBSINIT=0;
10034 GNULIB_MBRTOWC=0;
10035 GNULIB_MBRLEN=0;
10036 GNULIB_MBSRTOWCS=0;
10037 GNULIB_MBSNRTOWCS=0;
10038 GNULIB_WCRTOMB=0;
10039 GNULIB_WCSRTOMBS=0;
10040 GNULIB_WCSNRTOMBS=0;
10041 GNULIB_WCWIDTH=0;
10042 GNULIB_WMEMCHR=0;
10043 GNULIB_WMEMCMP=0;
10044 GNULIB_WMEMCPY=0;
10045 GNULIB_WMEMMOVE=0;
10046 GNULIB_WMEMSET=0;
10047 GNULIB_WCSLEN=0;
10048 GNULIB_WCSNLEN=0;
10049 GNULIB_WCSCPY=0;
10050 GNULIB_WCPCPY=0;
10051 GNULIB_WCSNCPY=0;
10052 GNULIB_WCPNCPY=0;
10053 GNULIB_WCSCAT=0;
10054 GNULIB_WCSNCAT=0;
10055 GNULIB_WCSCMP=0;
10056 GNULIB_WCSNCMP=0;
10057 GNULIB_WCSCASECMP=0;
10058 GNULIB_WCSNCASECMP=0;
10059 GNULIB_WCSCOLL=0;
10060 GNULIB_WCSXFRM=0;
10061 GNULIB_WCSDUP=0;
10062 GNULIB_WCSCHR=0;
10063 GNULIB_WCSRCHR=0;
10064 GNULIB_WCSCSPN=0;
10065 GNULIB_WCSSPN=0;
10066 GNULIB_WCSPBRK=0;
10067 GNULIB_WCSSTR=0;
10068 GNULIB_WCSTOK=0;
10069 GNULIB_WCSWIDTH=0;
10070 HAVE_BTOWC=1;
10071 HAVE_MBSINIT=1;
10072 HAVE_MBRTOWC=1;
10073 HAVE_MBRLEN=1;
10074 HAVE_MBSRTOWCS=1;
10075 HAVE_MBSNRTOWCS=1;
10076 HAVE_WCRTOMB=1;
10077 HAVE_WCSRTOMBS=1;
10078 HAVE_WCSNRTOMBS=1;
10079 HAVE_WMEMCHR=1;
10080 HAVE_WMEMCMP=1;
10081 HAVE_WMEMCPY=1;
10082 HAVE_WMEMMOVE=1;
10083 HAVE_WMEMSET=1;
10084 HAVE_WCSLEN=1;
10085 HAVE_WCSNLEN=1;
10086 HAVE_WCSCPY=1;
10087 HAVE_WCPCPY=1;
10088 HAVE_WCSNCPY=1;
10089 HAVE_WCPNCPY=1;
10090 HAVE_WCSCAT=1;
10091 HAVE_WCSNCAT=1;
10092 HAVE_WCSCMP=1;
10093 HAVE_WCSNCMP=1;
10094 HAVE_WCSCASECMP=1;
10095 HAVE_WCSNCASECMP=1;
10096 HAVE_WCSCOLL=1;
10097 HAVE_WCSXFRM=1;
10098 HAVE_WCSDUP=1;
10099 HAVE_WCSCHR=1;
10100 HAVE_WCSRCHR=1;
10101 HAVE_WCSCSPN=1;
10102 HAVE_WCSSPN=1;
10103 HAVE_WCSPBRK=1;
10104 HAVE_WCSSTR=1;
10105 HAVE_WCSTOK=1;
10106 HAVE_WCSWIDTH=1;
10107 HAVE_DECL_WCTOB=1;
10108 HAVE_DECL_WCWIDTH=1;
10109 REPLACE_MBSTATE_T=0;
10110 REPLACE_BTOWC=0;
10111 REPLACE_WCTOB=0;
10112 REPLACE_MBSINIT=0;
10113 REPLACE_MBRTOWC=0;
10114 REPLACE_MBRLEN=0;
10115 REPLACE_MBSRTOWCS=0;
10116 REPLACE_MBSNRTOWCS=0;
10117 REPLACE_WCRTOMB=0;
10118 REPLACE_WCSRTOMBS=0;
10119 REPLACE_WCSNRTOMBS=0;
10120 REPLACE_WCWIDTH=0;
10121 REPLACE_WCSWIDTH=0;
10122
10123
10124
10125
10126
10127
10128
10129
8690e634
JK
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10131$as_echo_n "checking for a traditional japanese locale... " >&6; }
10132if test "${gt_cv_locale_ja+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10134else
10135
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137/* end confdefs.h. */
10138
10139#include <locale.h>
10140#include <time.h>
10141#if HAVE_LANGINFO_CODESET
10142# include <langinfo.h>
10143#endif
10144#include <stdlib.h>
10145#include <string.h>
10146struct tm t;
10147char buf[16];
10148int main ()
10149{
10150 const char *p;
10151 /* Check whether the given locale name is recognized by the system. */
10152#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10153 /* On native Windows, setlocale(category, "") looks at the system settings,
10154 not at the environment variables. Also, when an encoding suffix such
10155 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10156 category of the locale to "C". */
10157 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10158 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10159 return 1;
10160#else
10161 if (setlocale (LC_ALL, "") == NULL) return 1;
10162#endif
10163 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10164 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10165 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10166 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10167 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10168 some unit tests fail.
10169 On MirBSD 10, when an unsupported locale is specified, setlocale()
10170 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10171#if HAVE_LANGINFO_CODESET
10172 {
10173 const char *cs = nl_langinfo (CODESET);
10174 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10175 || strcmp (cs, "UTF-8") == 0)
10176 return 1;
10177 }
10178#endif
10179#ifdef __CYGWIN__
10180 /* On Cygwin, avoid locale names without encoding suffix, because the
10181 locale_charset() function relies on the encoding suffix. Note that
10182 LC_ALL is set on the command line. */
10183 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10184#endif
10185 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10186 on Cygwin 1.5.x. */
10187 if (MB_CUR_MAX == 1)
10188 return 1;
10189 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10190 This excludes the UTF-8 encoding (except on MirBSD). */
10191 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10192 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10193 for (p = buf; *p != '\0'; p++)
10194 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10195 return 1;
10196 return 0;
10197}
10198
10199_ACEOF
10200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10201 (eval $ac_link) 2>&5
10202 ac_status=$?
10203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10204 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10205 case "$host_os" in
10206 # Handle native Windows specially, because there setlocale() interprets
10207 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10208 # "fr" or "fra" as "French" or "French_France.1252",
10209 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10210 # "ja" as "Japanese" or "Japanese_Japan.932",
10211 # and similar.
10212 mingw*)
10213 # Note that on native Windows, the Japanese locale is
10214 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10215 # cannot use it here.
10216 gt_cv_locale_ja=none
10217 ;;
10218 *)
10219 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10220 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10221 # configure script would override the LC_ALL setting. Likewise for
10222 # LC_CTYPE, which is also set at the beginning of the configure script.
10223 # Test for the AIX locale name.
10224 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10225 gt_cv_locale_ja=ja_JP
10226 else
10227 # Test for the locale name with explicit encoding suffix.
10228 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10229 gt_cv_locale_ja=ja_JP.EUC-JP
10230 else
10231 # Test for the HP-UX, OSF/1, NetBSD locale name.
10232 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10233 gt_cv_locale_ja=ja_JP.eucJP
10234 else
10235 # Test for the IRIX, FreeBSD locale name.
10236 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10237 gt_cv_locale_ja=ja_JP.EUC
10238 else
10239 # Test for the Solaris 7 locale name.
10240 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10241 gt_cv_locale_ja=ja
10242 else
10243 # Special test for NetBSD 1.6.
10244 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10245 gt_cv_locale_ja=ja_JP.eucJP
10246 else
10247 # None found.
10248 gt_cv_locale_ja=none
10249 fi
10250 fi
10251 fi
10252 fi
10253 fi
10254 fi
10255 ;;
10256 esac
10257 fi
10258 rm -fr conftest*
10259
10260fi
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10262$as_echo "$gt_cv_locale_ja" >&6; }
10263 LOCALE_JA=$gt_cv_locale_ja
10264
10265
10266
10267
10268
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10270$as_echo_n "checking for a transitional chinese locale... " >&6; }
10271if test "${gt_cv_locale_zh_CN+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10273else
10274
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h. */
10277
10278#include <locale.h>
10279#include <stdlib.h>
10280#include <time.h>
10281#if HAVE_LANGINFO_CODESET
10282# include <langinfo.h>
10283#endif
10284#include <stdlib.h>
10285#include <string.h>
10286struct tm t;
10287char buf[16];
10288int main ()
10289{
10290 const char *p;
10291 /* Check whether the given locale name is recognized by the system. */
10292#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10293 /* On native Windows, setlocale(category, "") looks at the system settings,
10294 not at the environment variables. Also, when an encoding suffix such
10295 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10296 category of the locale to "C". */
10297 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10298 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10299 return 1;
10300#else
10301 if (setlocale (LC_ALL, "") == NULL) return 1;
10302#endif
10303 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10304 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10305 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10306 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10307 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10308 some unit tests fail.
10309 On MirBSD 10, when an unsupported locale is specified, setlocale()
10310 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10311#if HAVE_LANGINFO_CODESET
10312 {
10313 const char *cs = nl_langinfo (CODESET);
10314 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10315 || strcmp (cs, "UTF-8") == 0)
10316 return 1;
10317 }
10318#endif
10319#ifdef __CYGWIN__
10320 /* On Cygwin, avoid locale names without encoding suffix, because the
10321 locale_charset() function relies on the encoding suffix. Note that
10322 LC_ALL is set on the command line. */
10323 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10324#endif
10325 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10326 This excludes the UTF-8 encoding (except on MirBSD). */
10327 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10328 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10329 for (p = buf; *p != '\0'; p++)
10330 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10331 return 1;
10332 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10333 single wide character. This excludes the GB2312 and GBK encodings. */
10334 if (mblen ("\203\062\332\066", 5) != 4)
10335 return 1;
10336 return 0;
10337}
10338
10339_ACEOF
10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10341 (eval $ac_link) 2>&5
10342 ac_status=$?
10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10345 case "$host_os" in
10346 # Handle native Windows specially, because there setlocale() interprets
10347 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10348 # "fr" or "fra" as "French" or "French_France.1252",
10349 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10350 # "ja" as "Japanese" or "Japanese_Japan.932",
10351 # and similar.
10352 mingw*)
10353 # Test for the hypothetical native Windows locale name.
10354 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10355 gt_cv_locale_zh_CN=Chinese_China.54936
10356 else
10357 # None found.
10358 gt_cv_locale_zh_CN=none
10359 fi
10360 ;;
10361 solaris2.8)
10362 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10363 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10364 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10365 gt_cv_locale_zh_CN=none
10366 ;;
10367 *)
10368 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10369 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10370 # configure script would override the LC_ALL setting. Likewise for
10371 # LC_CTYPE, which is also set at the beginning of the configure script.
10372 # Test for the locale name without encoding suffix.
10373 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10374 gt_cv_locale_zh_CN=zh_CN
10375 else
10376 # Test for the locale name with explicit encoding suffix.
10377 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10378 gt_cv_locale_zh_CN=zh_CN.GB18030
10379 else
10380 # None found.
10381 gt_cv_locale_zh_CN=none
10382 fi
10383 fi
10384 ;;
10385 esac
10386 else
10387 # If there was a link error, due to mblen(), the system is so old that
10388 # it certainly doesn't have a chinese locale.
10389 gt_cv_locale_zh_CN=none
10390 fi
10391 rm -fr conftest*
10392
10393fi
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10395$as_echo "$gt_cv_locale_zh_CN" >&6; }
10396 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10397
10398
10399
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10402$as_echo_n "checking for a french Unicode locale... " >&6; }
10403if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405else
10406
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h. */
10409
10410#include <locale.h>
10411#include <time.h>
10412#if HAVE_LANGINFO_CODESET
10413# include <langinfo.h>
10414#endif
10415#include <stdlib.h>
10416#include <string.h>
10417struct tm t;
10418char buf[16];
10419int main () {
10420 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10421 imitates locale dependent behaviour by looking at the environment
10422 variables, and all locales use the UTF-8 encoding. */
10423#if !(defined __BEOS__ || defined __HAIKU__)
10424 /* Check whether the given locale name is recognized by the system. */
10425# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10426 /* On native Windows, setlocale(category, "") looks at the system settings,
10427 not at the environment variables. Also, when an encoding suffix such
10428 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10429 category of the locale to "C". */
10430 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10431 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10432 return 1;
10433# else
10434 if (setlocale (LC_ALL, "") == NULL) return 1;
10435# endif
10436 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10437 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10438 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10439 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10440 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10441 some unit tests fail. */
10442# if HAVE_LANGINFO_CODESET
10443 {
10444 const char *cs = nl_langinfo (CODESET);
10445 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10446 return 1;
10447 }
10448# endif
10449# ifdef __CYGWIN__
10450 /* On Cygwin, avoid locale names without encoding suffix, because the
10451 locale_charset() function relies on the encoding suffix. Note that
10452 LC_ALL is set on the command line. */
10453 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10454# endif
10455 /* Check whether in the abbreviation of the second month, the second
10456 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10457 two bytes long, with UTF-8 encoding. */
10458 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10459 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10460 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10461 return 1;
10462#endif
10463#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10464 /* Check whether the decimal separator is a comma.
10465 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10466 are nl_langinfo(RADIXCHAR) are both ".". */
10467 if (localeconv () ->decimal_point[0] != ',') return 1;
10468#endif
10469 return 0;
10470}
10471
10472_ACEOF
10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10474 (eval $ac_link) 2>&5
10475 ac_status=$?
10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10478 case "$host_os" in
10479 # Handle native Windows specially, because there setlocale() interprets
10480 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10481 # "fr" or "fra" as "French" or "French_France.1252",
10482 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10483 # "ja" as "Japanese" or "Japanese_Japan.932",
10484 # and similar.
10485 mingw*)
10486 # Test for the hypothetical native Windows locale name.
10487 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10488 gt_cv_locale_fr_utf8=French_France.65001
10489 else
10490 # None found.
10491 gt_cv_locale_fr_utf8=none
10492 fi
10493 ;;
10494 *)
10495 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10496 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10497 # configure script would override the LC_ALL setting. Likewise for
10498 # LC_CTYPE, which is also set at the beginning of the configure script.
10499 # Test for the usual locale name.
10500 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10501 gt_cv_locale_fr_utf8=fr_FR
10502 else
10503 # Test for the locale name with explicit encoding suffix.
10504 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10505 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10506 else
10507 # Test for the Solaris 7 locale name.
10508 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10509 gt_cv_locale_fr_utf8=fr.UTF-8
10510 else
10511 # None found.
10512 gt_cv_locale_fr_utf8=none
10513 fi
10514 fi
10515 fi
10516 ;;
10517 esac
10518 fi
10519 rm -fr conftest*
10520
10521fi
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10523$as_echo "$gt_cv_locale_fr_utf8" >&6; }
10524 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10525
10526
10527
10528
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10531$as_echo_n "checking for a traditional french locale... " >&6; }
10532if test "${gt_cv_locale_fr+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10534else
10535
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537/* end confdefs.h. */
10538
10539#include <locale.h>
10540#include <time.h>
10541#if HAVE_LANGINFO_CODESET
10542# include <langinfo.h>
10543#endif
10544#include <stdlib.h>
10545#include <string.h>
10546struct tm t;
10547char buf[16];
10548int main () {
10549 /* Check whether the given locale name is recognized by the system. */
10550#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10551 /* On native Windows, setlocale(category, "") looks at the system settings,
10552 not at the environment variables. Also, when an encoding suffix such
10553 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10554 category of the locale to "C". */
10555 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10556 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10557 return 1;
10558#else
10559 if (setlocale (LC_ALL, "") == NULL) return 1;
10560#endif
10561 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10562 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10563 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10564 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10565 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10566 some unit tests fail.
10567 On MirBSD 10, when an unsupported locale is specified, setlocale()
10568 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10569#if HAVE_LANGINFO_CODESET
10570 {
10571 const char *cs = nl_langinfo (CODESET);
10572 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10573 || strcmp (cs, "UTF-8") == 0)
10574 return 1;
10575 }
10576#endif
10577#ifdef __CYGWIN__
10578 /* On Cygwin, avoid locale names without encoding suffix, because the
10579 locale_charset() function relies on the encoding suffix. Note that
10580 LC_ALL is set on the command line. */
10581 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10582#endif
10583 /* Check whether in the abbreviation of the second month, the second
10584 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10585 one byte long. This excludes the UTF-8 encoding. */
10586 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10587 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10588#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10589 /* Check whether the decimal separator is a comma.
10590 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10591 are nl_langinfo(RADIXCHAR) are both ".". */
10592 if (localeconv () ->decimal_point[0] != ',') return 1;
10593#endif
10594 return 0;
10595}
10596
10597_ACEOF
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10599 (eval $ac_link) 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10603 case "$host_os" in
10604 # Handle native Windows specially, because there setlocale() interprets
10605 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10606 # "fr" or "fra" as "French" or "French_France.1252",
10607 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10608 # "ja" as "Japanese" or "Japanese_Japan.932",
10609 # and similar.
10610 mingw*)
10611 # Test for the native Windows locale name.
10612 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10613 gt_cv_locale_fr=French_France.1252
10614 else
10615 # None found.
10616 gt_cv_locale_fr=none
10617 fi
10618 ;;
10619 *)
10620 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10621 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10622 # configure script would override the LC_ALL setting. Likewise for
10623 # LC_CTYPE, which is also set at the beginning of the configure script.
10624 # Test for the usual locale name.
10625 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10626 gt_cv_locale_fr=fr_FR
10627 else
10628 # Test for the locale name with explicit encoding suffix.
10629 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10630 gt_cv_locale_fr=fr_FR.ISO-8859-1
10631 else
10632 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10633 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10634 gt_cv_locale_fr=fr_FR.ISO8859-1
10635 else
10636 # Test for the HP-UX locale name.
10637 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10638 gt_cv_locale_fr=fr_FR.iso88591
10639 else
10640 # Test for the Solaris 7 locale name.
10641 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10642 gt_cv_locale_fr=fr
10643 else
10644 # None found.
10645 gt_cv_locale_fr=none
10646 fi
10647 fi
10648 fi
10649 fi
10650 fi
10651 ;;
10652 esac
10653 fi
10654 rm -fr conftest*
10655
10656fi
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10658$as_echo "$gt_cv_locale_fr" >&6; }
10659 LOCALE_FR=$gt_cv_locale_fr
10660
10661
10662
10663
10664
10665
10666
8690e634
JK
10667 GNULIB_FFSL=0;
10668 GNULIB_FFSLL=0;
10669 GNULIB_MEMCHR=0;
10670 GNULIB_MEMMEM=0;
10671 GNULIB_MEMPCPY=0;
10672 GNULIB_MEMRCHR=0;
10673 GNULIB_RAWMEMCHR=0;
10674 GNULIB_STPCPY=0;
10675 GNULIB_STPNCPY=0;
10676 GNULIB_STRCHRNUL=0;
10677 GNULIB_STRDUP=0;
10678 GNULIB_STRNCAT=0;
10679 GNULIB_STRNDUP=0;
10680 GNULIB_STRNLEN=0;
10681 GNULIB_STRPBRK=0;
10682 GNULIB_STRSEP=0;
10683 GNULIB_STRSTR=0;
10684 GNULIB_STRCASESTR=0;
10685 GNULIB_STRTOK_R=0;
10686 GNULIB_MBSLEN=0;
10687 GNULIB_MBSNLEN=0;
10688 GNULIB_MBSCHR=0;
10689 GNULIB_MBSRCHR=0;
10690 GNULIB_MBSSTR=0;
10691 GNULIB_MBSCASECMP=0;
10692 GNULIB_MBSNCASECMP=0;
10693 GNULIB_MBSPCASECMP=0;
10694 GNULIB_MBSCASESTR=0;
10695 GNULIB_MBSCSPN=0;
10696 GNULIB_MBSPBRK=0;
10697 GNULIB_MBSSPN=0;
10698 GNULIB_MBSSEP=0;
10699 GNULIB_MBSTOK_R=0;
10700 GNULIB_STRERROR=0;
10701 GNULIB_STRERROR_R=0;
10702 GNULIB_STRSIGNAL=0;
10703 GNULIB_STRVERSCMP=0;
10704 HAVE_MBSLEN=0;
10705 HAVE_FFSL=1;
10706 HAVE_FFSLL=1;
10707 HAVE_MEMCHR=1;
10708 HAVE_DECL_MEMMEM=1;
10709 HAVE_MEMPCPY=1;
10710 HAVE_DECL_MEMRCHR=1;
10711 HAVE_RAWMEMCHR=1;
10712 HAVE_STPCPY=1;
10713 HAVE_STPNCPY=1;
10714 HAVE_STRCHRNUL=1;
10715 HAVE_DECL_STRDUP=1;
10716 HAVE_DECL_STRNDUP=1;
10717 HAVE_DECL_STRNLEN=1;
10718 HAVE_STRPBRK=1;
10719 HAVE_STRSEP=1;
10720 HAVE_STRCASESTR=1;
10721 HAVE_DECL_STRTOK_R=1;
10722 HAVE_DECL_STRERROR_R=1;
10723 HAVE_DECL_STRSIGNAL=1;
10724 HAVE_STRVERSCMP=1;
10725 REPLACE_MEMCHR=0;
10726 REPLACE_MEMMEM=0;
10727 REPLACE_STPNCPY=0;
10728 REPLACE_STRDUP=0;
10729 REPLACE_STRSTR=0;
10730 REPLACE_STRCASESTR=0;
10731 REPLACE_STRCHRNUL=0;
10732 REPLACE_STRERROR=0;
10733 REPLACE_STRERROR_R=0;
10734 REPLACE_STRNCAT=0;
10735 REPLACE_STRNDUP=0;
10736 REPLACE_STRNLEN=0;
10737 REPLACE_STRSIGNAL=0;
10738 REPLACE_STRTOK_R=0;
10739 UNDEFINE_STRTOK_R=0;
10740
10741
10742
10743
10744
10745 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10746 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10747 # irrelevant for anonymous mappings.
10748 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10749if test "x$ac_cv_func_mmap" = x""yes; then :
10750 gl_have_mmap=yes
10751else
10752 gl_have_mmap=no
10753fi
10754
10755
10756 # Try to allow MAP_ANONYMOUS.
10757 gl_have_mmap_anonymous=no
10758 if test $gl_have_mmap = yes; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10760$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762/* end confdefs.h. */
10763
10764#include <sys/mman.h>
10765#ifdef MAP_ANONYMOUS
10766 I cannot identify this map
10767#endif
10768
10769_ACEOF
10770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10771 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10772 gl_have_mmap_anonymous=yes
10773fi
10774rm -f conftest*
10775
10776 if test $gl_have_mmap_anonymous != yes; then
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778/* end confdefs.h. */
10779
10780#include <sys/mman.h>
10781#ifdef MAP_ANON
10782 I cannot identify this map
10783#endif
10784
10785_ACEOF
10786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10787 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10788
10789$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10790
10791 gl_have_mmap_anonymous=yes
10792fi
10793rm -f conftest*
10794
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10797$as_echo "$gl_have_mmap_anonymous" >&6; }
10798 if test $gl_have_mmap_anonymous = yes; then
10799
10800$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10801
10802 fi
10803 fi
10804
10805
8690e634
JK
10806
10807
10808
10809
10810 if test $HAVE_MEMCHR = 1; then
10811 # Detect platform-specific bugs in some versions of glibc:
10812 # memchr should not dereference anything with length 0
10813 # http://bugzilla.redhat.com/499689
10814 # memchr should not dereference overestimated length after a match
10815 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10816 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10817 # Assume that memchr works on platforms that lack mprotect.
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10819$as_echo_n "checking whether memchr works... " >&6; }
10820if test "${gl_cv_func_memchr_works+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822else
10823 if test "$cross_compiling" = yes; then :
10824 gl_cv_func_memchr_works="guessing no"
10825else
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
10828
10829#include <string.h>
10830#if HAVE_SYS_MMAN_H
10831# include <fcntl.h>
10832# include <unistd.h>
10833# include <sys/types.h>
10834# include <sys/mman.h>
10835# ifndef MAP_FILE
10836# define MAP_FILE 0
10837# endif
10838#endif
10839
10840int
10841main ()
10842{
10843
10844 int result = 0;
10845 char *fence = NULL;
10846#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10847# if HAVE_MAP_ANONYMOUS
10848 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10849 const int fd = -1;
10850# else /* !HAVE_MAP_ANONYMOUS */
10851 const int flags = MAP_FILE | MAP_PRIVATE;
10852 int fd = open ("/dev/zero", O_RDONLY, 0666);
10853 if (fd >= 0)
10854# endif
10855 {
10856 int pagesize = getpagesize ();
10857 char *two_pages =
10858 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10859 flags, fd, 0);
10860 if (two_pages != (char *)(-1)
10861 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10862 fence = two_pages + pagesize;
10863 }
10864#endif
10865 if (fence)
10866 {
10867 if (memchr (fence, 0, 0))
10868 result |= 1;
10869 strcpy (fence - 9, "12345678");
10870 if (memchr (fence - 9, 0, 79) != fence - 1)
10871 result |= 2;
10872 if (memchr (fence - 1, 0, 3) != fence - 1)
10873 result |= 4;
10874 }
10875 return result;
10876
10877 ;
10878 return 0;
10879}
10880_ACEOF
10881if ac_fn_c_try_run "$LINENO"; then :
10882 gl_cv_func_memchr_works=yes
10883else
10884 gl_cv_func_memchr_works=no
10885fi
10886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10887 conftest.$ac_objext conftest.beam conftest.$ac_ext
10888fi
10889
10890fi
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10892$as_echo "$gl_cv_func_memchr_works" >&6; }
10893 if test "$gl_cv_func_memchr_works" != yes; then
10894 REPLACE_MEMCHR=1
10895 fi
10896 fi
10897
3574124b 10898ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
10899if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10900 ac_have_decl=1
10901else
10902 ac_have_decl=0
10903fi
10904
10905cat >>confdefs.h <<_ACEOF
10906#define HAVE_DECL_MEMMEM $ac_have_decl
10907_ACEOF
10908
10909
10910
10911
10912
8690e634
JK
10913 for ac_func in memmem
10914do :
10915 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10916if test "x$ac_cv_func_memmem" = x""yes; then :
10917 cat >>confdefs.h <<_ACEOF
10918#define HAVE_MEMMEM 1
10919_ACEOF
10920
10921fi
10922done
10923
10924 if test $ac_cv_func_memmem = yes; then
10925 HAVE_MEMMEM=1
10926 else
10927 HAVE_MEMMEM=0
10928 fi
10929
8690e634
JK
10930 if test $ac_cv_have_decl_memmem = no; then
10931 HAVE_DECL_MEMMEM=0
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10934$as_echo_n "checking whether memmem works... " >&6; }
10935if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937else
10938 if test "$cross_compiling" = yes; then :
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h. */
10941
10942#ifdef __GNU_LIBRARY__
10943 #include <features.h>
10944 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10945 || __GLIBC_MINOR__ > 12)) \
10946 || (__GLIBC__ > 2)) \
10947 || defined __UCLIBC__
10948 Lucky user
10949 #endif
10950#elif defined __CYGWIN__
10951 #include <cygwin/version.h>
10952 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10953 Lucky user
10954 #endif
10955#else
10956 Lucky user
10957#endif
10958
10959_ACEOF
10960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 $EGREP "Lucky user" >/dev/null 2>&1; then :
10962 gl_cv_func_memmem_works_always="guessing yes"
10963else
10964 gl_cv_func_memmem_works_always="guessing no"
10965fi
10966rm -f conftest*
10967
10968
10969else
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971/* end confdefs.h. */
10972
10973#include <string.h> /* for memmem */
10974#define P "_EF_BF_BD"
10975#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10976#define NEEDLE P P P P P
10977
10978int
10979main ()
10980{
10981
10982 int result = 0;
10983 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10984 result |= 1;
10985 /* Check for empty needle behavior. */
10986 {
10987 const char *haystack = "AAA";
10988 if (memmem (haystack, 3, NULL, 0) != haystack)
10989 result |= 2;
10990 }
10991 return result;
10992
10993 ;
10994 return 0;
10995}
10996_ACEOF
10997if ac_fn_c_try_run "$LINENO"; then :
10998 gl_cv_func_memmem_works_always=yes
10999else
11000 gl_cv_func_memmem_works_always=no
11001fi
11002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11003 conftest.$ac_objext conftest.beam conftest.$ac_ext
11004fi
11005
11006
11007fi
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11009$as_echo "$gl_cv_func_memmem_works_always" >&6; }
11010 case "$gl_cv_func_memmem_works_always" in
11011 *yes) ;;
11012 *)
11013 REPLACE_MEMMEM=1
11014 ;;
11015 esac
11016 fi
11017 :
11018
6a29c58e
YQ
11019
11020 GNULIB_DPRINTF=0;
11021 GNULIB_FCLOSE=0;
11022 GNULIB_FDOPEN=0;
11023 GNULIB_FFLUSH=0;
11024 GNULIB_FGETC=0;
11025 GNULIB_FGETS=0;
11026 GNULIB_FOPEN=0;
11027 GNULIB_FPRINTF=0;
11028 GNULIB_FPRINTF_POSIX=0;
11029 GNULIB_FPURGE=0;
11030 GNULIB_FPUTC=0;
11031 GNULIB_FPUTS=0;
11032 GNULIB_FREAD=0;
11033 GNULIB_FREOPEN=0;
11034 GNULIB_FSCANF=0;
11035 GNULIB_FSEEK=0;
11036 GNULIB_FSEEKO=0;
11037 GNULIB_FTELL=0;
11038 GNULIB_FTELLO=0;
11039 GNULIB_FWRITE=0;
11040 GNULIB_GETC=0;
11041 GNULIB_GETCHAR=0;
11042 GNULIB_GETDELIM=0;
11043 GNULIB_GETLINE=0;
11044 GNULIB_OBSTACK_PRINTF=0;
11045 GNULIB_OBSTACK_PRINTF_POSIX=0;
11046 GNULIB_PCLOSE=0;
11047 GNULIB_PERROR=0;
11048 GNULIB_POPEN=0;
11049 GNULIB_PRINTF=0;
11050 GNULIB_PRINTF_POSIX=0;
11051 GNULIB_PUTC=0;
11052 GNULIB_PUTCHAR=0;
11053 GNULIB_PUTS=0;
11054 GNULIB_REMOVE=0;
11055 GNULIB_RENAME=0;
11056 GNULIB_RENAMEAT=0;
11057 GNULIB_SCANF=0;
11058 GNULIB_SNPRINTF=0;
11059 GNULIB_SPRINTF_POSIX=0;
11060 GNULIB_STDIO_H_NONBLOCKING=0;
11061 GNULIB_STDIO_H_SIGPIPE=0;
11062 GNULIB_TMPFILE=0;
11063 GNULIB_VASPRINTF=0;
11064 GNULIB_VFSCANF=0;
11065 GNULIB_VSCANF=0;
11066 GNULIB_VDPRINTF=0;
11067 GNULIB_VFPRINTF=0;
11068 GNULIB_VFPRINTF_POSIX=0;
11069 GNULIB_VPRINTF=0;
11070 GNULIB_VPRINTF_POSIX=0;
11071 GNULIB_VSNPRINTF=0;
11072 GNULIB_VSPRINTF_POSIX=0;
11073 HAVE_DECL_FPURGE=1;
11074 HAVE_DECL_FSEEKO=1;
11075 HAVE_DECL_FTELLO=1;
11076 HAVE_DECL_GETDELIM=1;
11077 HAVE_DECL_GETLINE=1;
11078 HAVE_DECL_OBSTACK_PRINTF=1;
11079 HAVE_DECL_SNPRINTF=1;
11080 HAVE_DECL_VSNPRINTF=1;
11081 HAVE_DPRINTF=1;
11082 HAVE_FSEEKO=1;
11083 HAVE_FTELLO=1;
11084 HAVE_PCLOSE=1;
11085 HAVE_POPEN=1;
11086 HAVE_RENAMEAT=1;
11087 HAVE_VASPRINTF=1;
11088 HAVE_VDPRINTF=1;
11089 REPLACE_DPRINTF=0;
11090 REPLACE_FCLOSE=0;
11091 REPLACE_FDOPEN=0;
11092 REPLACE_FFLUSH=0;
11093 REPLACE_FOPEN=0;
11094 REPLACE_FPRINTF=0;
11095 REPLACE_FPURGE=0;
11096 REPLACE_FREOPEN=0;
11097 REPLACE_FSEEK=0;
11098 REPLACE_FSEEKO=0;
11099 REPLACE_FTELL=0;
11100 REPLACE_FTELLO=0;
11101 REPLACE_GETDELIM=0;
11102 REPLACE_GETLINE=0;
11103 REPLACE_OBSTACK_PRINTF=0;
11104 REPLACE_PERROR=0;
11105 REPLACE_POPEN=0;
11106 REPLACE_PRINTF=0;
11107 REPLACE_REMOVE=0;
11108 REPLACE_RENAME=0;
11109 REPLACE_RENAMEAT=0;
11110 REPLACE_SNPRINTF=0;
11111 REPLACE_SPRINTF=0;
11112 REPLACE_STDIO_READ_FUNCS=0;
11113 REPLACE_STDIO_WRITE_FUNCS=0;
11114 REPLACE_TMPFILE=0;
11115 REPLACE_VASPRINTF=0;
11116 REPLACE_VDPRINTF=0;
11117 REPLACE_VFPRINTF=0;
11118 REPLACE_VPRINTF=0;
11119 REPLACE_VSNPRINTF=0;
11120 REPLACE_VSPRINTF=0;
11121
11122
11123
0750520d
PA
11124
11125 GNULIB_PTHREAD_SIGMASK=0;
11126 GNULIB_RAISE=0;
11127 GNULIB_SIGNAL_H_SIGPIPE=0;
11128 GNULIB_SIGPROCMASK=0;
11129 GNULIB_SIGACTION=0;
11130 HAVE_POSIX_SIGNALBLOCKING=1;
11131 HAVE_PTHREAD_SIGMASK=1;
11132 HAVE_RAISE=1;
11133 HAVE_SIGSET_T=1;
11134 HAVE_SIGINFO_T=1;
11135 HAVE_SIGACTION=1;
11136 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11137
11138 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11139
11140 HAVE_SIGHANDLER_T=1;
11141 REPLACE_PTHREAD_SIGMASK=0;
11142 REPLACE_RAISE=0;
11143
11144
11145 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11146 #include <signal.h>
11147 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11148 #include <sys/types.h>
11149
11150"
11151if test "x$ac_cv_type_sigset_t" = x""yes; then :
11152
11153cat >>confdefs.h <<_ACEOF
11154#define HAVE_SIGSET_T 1
11155_ACEOF
11156
11157gl_cv_type_sigset_t=yes
11158else
11159 gl_cv_type_sigset_t=no
11160fi
11161
11162 if test $gl_cv_type_sigset_t != yes; then
11163 HAVE_SIGSET_T=0
11164 fi
11165
11166ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11167if test "x$ac_cv_type_pid_t" = x""yes; then :
11168
11169else
11170
11171cat >>confdefs.h <<_ACEOF
11172#define pid_t int
11173_ACEOF
11174
11175fi
11176
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11178$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11179if test "${ac_cv_type_uid_t+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11181else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h. */
11184#include <sys/types.h>
11185
11186_ACEOF
11187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 $EGREP "uid_t" >/dev/null 2>&1; then :
11189 ac_cv_type_uid_t=yes
11190else
11191 ac_cv_type_uid_t=no
11192fi
11193rm -f conftest*
11194
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11197$as_echo "$ac_cv_type_uid_t" >&6; }
11198if test $ac_cv_type_uid_t = no; then
11199
11200$as_echo "#define uid_t int" >>confdefs.h
11201
11202
11203$as_echo "#define gid_t int" >>confdefs.h
11204
11205fi
11206
8690e634
JK
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11208$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11209if test "${ac_cv_header_stdbool_h+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211else
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213/* end confdefs.h. */
11214
11215 #include <stdbool.h>
11216 #ifndef bool
11217 "error: bool is not defined"
11218 #endif
11219 #ifndef false
11220 "error: false is not defined"
11221 #endif
11222 #if false
11223 "error: false is not 0"
11224 #endif
11225 #ifndef true
11226 "error: true is not defined"
11227 #endif
11228 #if true != 1
11229 "error: true is not 1"
11230 #endif
11231 #ifndef __bool_true_false_are_defined
11232 "error: __bool_true_false_are_defined is not defined"
11233 #endif
11234
11235 struct s { _Bool s: 1; _Bool t; } s;
11236
11237 char a[true == 1 ? 1 : -1];
11238 char b[false == 0 ? 1 : -1];
11239 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11240 char d[(bool) 0.5 == true ? 1 : -1];
11241 /* See body of main program for 'e'. */
11242 char f[(_Bool) 0.0 == false ? 1 : -1];
11243 char g[true];
11244 char h[sizeof (_Bool)];
11245 char i[sizeof s.t];
11246 enum { j = false, k = true, l = false * true, m = true * 256 };
11247 /* The following fails for
11248 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11249 _Bool n[m];
11250 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11251 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11252 /* Catch a bug in an HP-UX C compiler. See
11253 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11254 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11255 */
11256 _Bool q = true;
11257 _Bool *pq = &q;
11258
11259int
11260main ()
11261{
11262
11263 bool e = &s;
11264 *pq |= q;
11265 *pq |= ! q;
11266 /* Refer to every declared value, to avoid compiler optimizations. */
11267 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11268 + !m + !n + !o + !p + !q + !pq);
11269
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274if ac_fn_c_try_compile "$LINENO"; then :
11275 ac_cv_header_stdbool_h=yes
11276else
11277 ac_cv_header_stdbool_h=no
11278fi
11279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280fi
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11282$as_echo "$ac_cv_header_stdbool_h" >&6; }
11283 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11284if test "x$ac_cv_type__Bool" = x""yes; then :
11285
11286cat >>confdefs.h <<_ACEOF
11287#define HAVE__BOOL 1
11288_ACEOF
11289
11290
11291fi
11292
11293
11294
11295 REPLACE_NULL=0;
4a626d0a 11296 HAVE_MAX_ALIGN_T=1;
8690e634
JK
11297 HAVE_WCHAR_T=1;
11298
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11301$as_echo_n "checking for wchar_t... " >&6; }
11302if test "${gt_cv_c_wchar_t+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11304else
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
11307#include <stddef.h>
11308 wchar_t foo = (wchar_t)'\0';
11309int
11310main ()
11311{
11312
11313 ;
11314 return 0;
11315}
11316_ACEOF
11317if ac_fn_c_try_compile "$LINENO"; then :
11318 gt_cv_c_wchar_t=yes
11319else
11320 gt_cv_c_wchar_t=no
11321fi
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11325$as_echo "$gt_cv_c_wchar_t" >&6; }
11326 if test $gt_cv_c_wchar_t = yes; then
11327
11328$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11329
11330 fi
11331
63ce7108
TT
11332
11333
11334
11335
8690e634
JK
11336
11337
11338
11339
11340
11341
11342
11343 if test $gl_cv_have_include_next = yes; then
11344 gl_cv_next_string_h='<'string.h'>'
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11347$as_echo_n "checking absolute name of <string.h>... " >&6; }
11348if test "${gl_cv_next_string_h+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350else
11351
4a626d0a
PA
11352
11353
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
11355/* end confdefs.h. */
11356#include <string.h>
8690e634 11357_ACEOF
4a626d0a
PA
11358 case "$host_os" in
11359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11360 *) gl_absname_cpp="$ac_cpp" ;;
11361 esac
11362
11363 case "$host_os" in
11364 mingw*)
11365 gl_dirsep_regex='[/\\]'
11366 ;;
11367 *)
11368 gl_dirsep_regex='\/'
11369 ;;
11370 esac
11371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11372 gl_header_literal_regex=`echo 'string.h' \
11373 | sed -e "$gl_make_literal_regex_sed"`
11374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11376 s|^/[^/]|//&|
11377 p
11378 q
11379 }'
8690e634 11380
4a626d0a
PA
11381 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11382 sed -n "$gl_absolute_header_sed"`
c971b7fa 11383
4a626d0a
PA
11384 gl_header=$gl_cv_absolute_string_h
11385 gl_cv_next_string_h='"'$gl_header'"'
8690e634
JK
11386
11387
11388fi
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11390$as_echo "$gl_cv_next_string_h" >&6; }
11391 fi
11392 NEXT_STRING_H=$gl_cv_next_string_h
11393
11394 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11396 gl_next_as_first_directive='<'string.h'>'
11397 else
11398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11399 gl_next_as_first_directive=$gl_cv_next_string_h
11400 fi
11401 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11402
11403
11404
11405
11406
11407
11408 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
11409 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11411$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11412if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11413 $as_echo_n "(cached) " >&6
11414else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h. */
11417#include <string.h>
11418
11419int
11420main ()
11421{
11422#undef $gl_func
11423 (void) $gl_func;
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428if ac_fn_c_try_compile "$LINENO"; then :
11429 eval "$as_gl_Symbol=yes"
11430else
11431 eval "$as_gl_Symbol=no"
11432fi
11433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434fi
11435eval ac_res=\$$as_gl_Symbol
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11437$as_echo "$ac_res" >&6; }
11438 eval as_val=\$$as_gl_Symbol
11439 if test "x$as_val" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11442_ACEOF
11443
11444 eval ac_cv_have_decl_$gl_func=yes
11445fi
11446 done
11447
11448
11449
8839a007 11450
63ce7108
TT
11451
11452 if test "$gl_cv_func_memchr_works" != yes; then
11453 REPLACE_STRSTR=1
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11456$as_echo_n "checking whether strstr works... " >&6; }
11457if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11459else
11460 if test "$cross_compiling" = yes; then :
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h. */
11463
11464#ifdef __GNU_LIBRARY__
11465 #include <features.h>
11466 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11467 || defined __UCLIBC__
11468 Lucky user
11469 #endif
11470#elif defined __CYGWIN__
11471 #include <cygwin/version.h>
11472 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11473 Lucky user
11474 #endif
11475#else
11476 Lucky user
11477#endif
11478
11479_ACEOF
11480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11481 $EGREP "Lucky user" >/dev/null 2>&1; then :
11482 gl_cv_func_strstr_works_always="guessing yes"
11483else
11484 gl_cv_func_strstr_works_always="guessing no"
11485fi
11486rm -f conftest*
11487
11488
11489else
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491/* end confdefs.h. */
11492
11493#include <string.h> /* for strstr */
11494#define P "_EF_BF_BD"
11495#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11496#define NEEDLE P P P P P
11497
11498int
11499main ()
11500{
11501return !!strstr (HAYSTACK, NEEDLE);
11502
11503 ;
11504 return 0;
11505}
11506_ACEOF
11507if ac_fn_c_try_run "$LINENO"; then :
11508 gl_cv_func_strstr_works_always=yes
11509else
11510 gl_cv_func_strstr_works_always=no
11511fi
11512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11513 conftest.$ac_objext conftest.beam conftest.$ac_ext
11514fi
11515
11516
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11519$as_echo "$gl_cv_func_strstr_works_always" >&6; }
11520 case "$gl_cv_func_strstr_works_always" in
11521 *yes) ;;
11522 *)
11523 REPLACE_STRSTR=1
11524 ;;
11525 esac
11526 fi
11527
421693b0
PA
11528ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11529if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11530 ac_have_decl=1
11531else
11532 ac_have_decl=0
11533fi
11534
11535cat >>confdefs.h <<_ACEOF
11536#define HAVE_DECL_STRTOK_R $ac_have_decl
11537_ACEOF
11538
09607c9e
TT
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11540$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11541if test "${ac_cv_header_stat_broken+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543else
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h. */
11546#include <sys/types.h>
11547#include <sys/stat.h>
63ce7108 11548
09607c9e
TT
11549#if defined S_ISBLK && defined S_IFDIR
11550extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11551#endif
8839a007 11552
09607c9e
TT
11553#if defined S_ISBLK && defined S_IFCHR
11554extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11555#endif
11556
11557#if defined S_ISLNK && defined S_IFREG
11558extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11559#endif
11560
11561#if defined S_ISSOCK && defined S_IFREG
11562extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11563#endif
8839a007 11564
8839a007 11565_ACEOF
09607c9e
TT
11566if ac_fn_c_try_compile "$LINENO"; then :
11567 ac_cv_header_stat_broken=no
11568else
11569 ac_cv_header_stat_broken=yes
11570fi
11571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11574$as_echo "$ac_cv_header_stat_broken" >&6; }
11575if test $ac_cv_header_stat_broken = yes; then
11576
11577$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839a007
PA
11578
11579fi
11580
09607c9e
TT
11581
11582
8839a007
PA
11583ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11584if test "x$ac_cv_type_mode_t" = x""yes; then :
11585
11586else
11587
11588cat >>confdefs.h <<_ACEOF
11589#define mode_t int
11590_ACEOF
11591
11592fi
11593
8839a007
PA
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11595$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11596if test -z "$MKDIR_P"; then
11597 if test "${ac_cv_path_mkdir+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599else
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_prog in mkdir gmkdir; do
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11609 'mkdir (GNU coreutils) '* | \
11610 'mkdir (coreutils) '* | \
11611 'mkdir (fileutils) '4.1*)
11612 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11613 break 3;;
11614 esac
11615 done
11616 done
11617 done
11618IFS=$as_save_IFS
11619
11620fi
11621
11622 if test "${ac_cv_path_mkdir+set}" = set; then
11623 MKDIR_P="$ac_cv_path_mkdir -p"
11624 else
11625 # As a last resort, use the slow shell script. Don't cache a
11626 # value for MKDIR_P within a source directory, because that will
11627 # break other packages using the cache if that directory is
11628 # removed, or if the value is a relative name.
11629 test -d ./--version && rmdir ./--version
11630 MKDIR_P="$ac_install_sh -d"
11631 fi
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11634$as_echo "$MKDIR_P" >&6; }
11635
11636
09607c9e 11637
09607c9e
TT
11638
11639
2196f55f 11640
09607c9e
TT
11641
11642
11643
11644
4a626d0a
PA
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654 if test $gl_cv_have_include_next = yes; then
11655 gl_cv_next_sys_types_h='<'sys/types.h'>'
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11658$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11659if test "${gl_cv_next_sys_types_h+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661else
11662
11663
11664
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h. */
11667#include <sys/types.h>
11668_ACEOF
11669 case "$host_os" in
11670 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11671 *) gl_absname_cpp="$ac_cpp" ;;
11672 esac
11673
11674 case "$host_os" in
11675 mingw*)
11676 gl_dirsep_regex='[/\\]'
11677 ;;
11678 *)
11679 gl_dirsep_regex='\/'
11680 ;;
11681 esac
11682 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11683 gl_header_literal_regex=`echo 'sys/types.h' \
11684 | sed -e "$gl_make_literal_regex_sed"`
11685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11687 s|^/[^/]|//&|
11688 p
11689 q
11690 }'
11691
11692 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11693 sed -n "$gl_absolute_header_sed"`
11694
11695 gl_header=$gl_cv_absolute_sys_types_h
11696 gl_cv_next_sys_types_h='"'$gl_header'"'
11697
11698
11699fi
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11701$as_echo "$gl_cv_next_sys_types_h" >&6; }
11702 fi
11703 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11704
11705 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11707 gl_next_as_first_directive='<'sys/types.h'>'
11708 else
11709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11710 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11711 fi
11712 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
09607c9e
TT
11725 GNULIB_MKTIME=0;
11726 GNULIB_NANOSLEEP=0;
11727 GNULIB_STRPTIME=0;
11728 GNULIB_TIMEGM=0;
11729 GNULIB_TIME_R=0;
4a626d0a 11730 GNULIB_TIME_RZ=0;
09607c9e
TT
11731 HAVE_DECL_LOCALTIME_R=1;
11732 HAVE_NANOSLEEP=1;
11733 HAVE_STRPTIME=1;
11734 HAVE_TIMEGM=1;
11735 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11736 REPLACE_MKTIME=GNULIB_PORTCHECK;
11737 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11738 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11739
4a626d0a
PA
11740 : ${GNULIB_GETTIMEOFDAY=0};
11741 REPLACE_GMTIME=0;
11742 REPLACE_LOCALTIME=0;
09607c9e
TT
11743
11744
11745
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11747$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11748if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11750else
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752/* end confdefs.h. */
11753#include <time.h>
11754
11755int
11756main ()
11757{
11758static struct timespec x; x.tv_sec = x.tv_nsec;
11759 ;
11760 return 0;
11761}
11762_ACEOF
11763if ac_fn_c_try_compile "$LINENO"; then :
11764 gl_cv_sys_struct_timespec_in_time_h=yes
11765else
11766 gl_cv_sys_struct_timespec_in_time_h=no
11767fi
11768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11771$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11772
11773 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11774 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11775 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
4a626d0a 11776 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
09607c9e
TT
11777 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11778 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11781$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11782if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784else
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h. */
11787#include <sys/time.h>
11788
11789int
11790main ()
11791{
11792static struct timespec x; x.tv_sec = x.tv_nsec;
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797if ac_fn_c_try_compile "$LINENO"; then :
11798 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11799else
11800 gl_cv_sys_struct_timespec_in_sys_time_h=no
11801fi
11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11805$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11806 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11807 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11810$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11811if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813else
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815/* end confdefs.h. */
11816#include <pthread.h>
11817
11818int
11819main ()
11820{
11821static struct timespec x; x.tv_sec = x.tv_nsec;
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826if ac_fn_c_try_compile "$LINENO"; then :
11827 gl_cv_sys_struct_timespec_in_pthread_h=yes
11828else
11829 gl_cv_sys_struct_timespec_in_pthread_h=no
11830fi
11831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11834$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11835 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11836 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
4a626d0a
PA
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11839$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11840if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11842else
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844/* end confdefs.h. */
11845#include <unistd.h>
11846
11847int
11848main ()
11849{
11850static struct timespec x; x.tv_sec = x.tv_nsec;
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855if ac_fn_c_try_compile "$LINENO"; then :
11856 gl_cv_sys_struct_timespec_in_unistd_h=yes
11857else
11858 gl_cv_sys_struct_timespec_in_unistd_h=no
11859fi
11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861fi
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11863$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11864 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11865 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11866 fi
09607c9e
TT
11867 fi
11868 fi
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
4a626d0a 11885
09607c9e
TT
11886 if test $gl_cv_have_include_next = yes; then
11887 gl_cv_next_time_h='<'time.h'>'
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11890$as_echo_n "checking absolute name of <time.h>... " >&6; }
11891if test "${gl_cv_next_time_h+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893else
11894
4a626d0a
PA
11895
11896
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
09607c9e
TT
11898/* end confdefs.h. */
11899#include <time.h>
09607c9e 11900_ACEOF
4a626d0a
PA
11901 case "$host_os" in
11902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11903 *) gl_absname_cpp="$ac_cpp" ;;
11904 esac
11905
11906 case "$host_os" in
11907 mingw*)
11908 gl_dirsep_regex='[/\\]'
11909 ;;
11910 *)
11911 gl_dirsep_regex='\/'
11912 ;;
11913 esac
11914 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11915 gl_header_literal_regex=`echo 'time.h' \
11916 | sed -e "$gl_make_literal_regex_sed"`
11917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11919 s|^/[^/]|//&|
11920 p
11921 q
11922 }'
09607c9e 11923
4a626d0a
PA
11924 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11925 sed -n "$gl_absolute_header_sed"`
09607c9e 11926
4a626d0a
PA
11927 gl_header=$gl_cv_absolute_time_h
11928 gl_cv_next_time_h='"'$gl_header'"'
09607c9e
TT
11929
11930
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11933$as_echo "$gl_cv_next_time_h" >&6; }
11934 fi
11935 NEXT_TIME_H=$gl_cv_next_time_h
11936
11937 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11939 gl_next_as_first_directive='<'time.h'>'
11940 else
11941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11942 gl_next_as_first_directive=$gl_cv_next_time_h
11943 fi
11944 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11945
11946
11947
11948
11949
11950
11951
8690e634
JK
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11953$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11954if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956else
11957 gl_cv_header_wchar_h_correct_inline=yes
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h. */
11960
11961 #define wcstod renamed_wcstod
11962/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11963 <wchar.h>.
11964 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11965 included before <wchar.h>. */
11966#include <stddef.h>
11967#include <stdio.h>
11968#include <time.h>
11969#include <wchar.h>
11970extern int zero (void);
11971int main () { return zero(); }
11972
11973_ACEOF
11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11975 (eval $ac_compile) 2>&5
11976 ac_status=$?
11977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978 test $ac_status = 0; }; then
11979 mv conftest.$ac_objext conftest1.$ac_objext
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981/* end confdefs.h. */
11982
11983 #define wcstod renamed_wcstod
11984/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11985 <wchar.h>.
11986 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11987 included before <wchar.h>. */
11988#include <stddef.h>
11989#include <stdio.h>
11990#include <time.h>
11991#include <wchar.h>
11992int zero (void) { return 0; }
11993
11994_ACEOF
11995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11996 (eval $ac_compile) 2>&5
11997 ac_status=$?
11998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11999 test $ac_status = 0; }; then
12000 mv conftest.$ac_objext conftest2.$ac_objext
12001 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12002 :
12003 else
12004 gl_cv_header_wchar_h_correct_inline=no
12005 fi
12006 fi
12007 fi
12008 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12009
12010fi
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12012$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12013 if test $gl_cv_header_wchar_h_correct_inline = no; then
12014 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12015This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12016C99 mode. You have four options:
12017 - Add the flag -fgnu89-inline to CC and reconfigure, or
12018 - Fix your include files, using parts of
12019 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12020 - Use a gcc version older than 4.3, or
12021 - Don't use the flags -std=c99 or -std=gnu99.
12022Configuration aborted." "$LINENO" 5
12023 fi
12024
12025
12026
12027
12028
8690e634
JK
12029 if test $ac_cv_header_features_h = yes; then
12030 HAVE_FEATURES_H=1
12031 else
12032 HAVE_FEATURES_H=0
12033 fi
12034
12035
12036
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12038$as_echo_n "checking for wint_t... " >&6; }
12039if test "${gt_cv_c_wint_t+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041else
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h. */
12044
12045/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12046 <wchar.h>.
12047 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12048 before <wchar.h>. */
12049#include <stddef.h>
12050#include <stdio.h>
12051#include <time.h>
12052#include <wchar.h>
12053 wint_t foo = (wchar_t)'\0';
12054int
12055main ()
12056{
12057
12058 ;
12059 return 0;
12060}
12061_ACEOF
12062if ac_fn_c_try_compile "$LINENO"; then :
12063 gt_cv_c_wint_t=yes
12064else
12065 gt_cv_c_wint_t=no
12066fi
12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068fi
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12070$as_echo "$gt_cv_c_wint_t" >&6; }
12071 if test $gt_cv_c_wint_t = yes; then
12072
12073$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12074
12075 fi
12076
12077
12078 GNULIB_ISWBLANK=0;
12079 GNULIB_WCTYPE=0;
12080 GNULIB_ISWCTYPE=0;
12081 GNULIB_WCTRANS=0;
12082 GNULIB_TOWCTRANS=0;
12083 HAVE_ISWBLANK=1;
12084 HAVE_WCTYPE_T=1;
12085 HAVE_WCTRANS_T=1;
12086 REPLACE_ISWBLANK=0;
12087
12088
12089
12090
8690e634
JK
12091 if false; then
12092 GL_COND_LIBTOOL_TRUE=
12093 GL_COND_LIBTOOL_FALSE='#'
12094else
12095 GL_COND_LIBTOOL_TRUE='#'
12096 GL_COND_LIBTOOL_FALSE=
12097fi
12098
12099 gl_cond_libtool=false
12100 gl_libdeps=
12101 gl_ltlibdeps=
12102 gl_m4_base='import/m4'
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112 gl_source_base='import'
12113
12114
12115 if test $ac_cv_func_alloca_works = no; then
12116 :
12117 fi
12118
12119 # Define an additional variable used in the Makefile substitution.
12120 if test $ac_cv_working_alloca_h = yes; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12122$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12123if test "${gl_cv_rpl_alloca+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12125else
12126
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128/* end confdefs.h. */
12129
12130#if defined __GNUC__ || defined _AIX || defined _MSC_VER
12131 Need own alloca
12132#endif
12133
12134_ACEOF
12135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12136 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12137 gl_cv_rpl_alloca=yes
12138else
12139 gl_cv_rpl_alloca=no
12140fi
12141rm -f conftest*
12142
12143
12144fi
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12146$as_echo "$gl_cv_rpl_alloca" >&6; }
12147 if test $gl_cv_rpl_alloca = yes; then
12148
12149$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12150
12151 ALLOCA_H=alloca.h
12152 else
12153 ALLOCA_H=
12154 fi
12155 else
12156 ALLOCA_H=alloca.h
12157 fi
12158
12159 if test -n "$ALLOCA_H"; then
12160 GL_GENERATE_ALLOCA_H_TRUE=
12161 GL_GENERATE_ALLOCA_H_FALSE='#'
12162else
12163 GL_GENERATE_ALLOCA_H_TRUE='#'
12164 GL_GENERATE_ALLOCA_H_FALSE=
12165fi
12166
12167
12168
98399780
YQ
12169
12170
12171 if test $ac_cv_func_canonicalize_file_name = no; then
12172 HAVE_CANONICALIZE_FILE_NAME=0
12173 if test $ac_cv_func_realpath = no; then
12174 HAVE_REALPATH=0
12175 else
12176 case "$gl_cv_func_realpath_works" in
12177 *yes) ;;
12178 *) REPLACE_REALPATH=1 ;;
12179 esac
12180 fi
12181 else
12182 case "$gl_cv_func_realpath_works" in
12183 *yes)
12184 ;;
12185 *)
12186 REPLACE_CANONICALIZE_FILE_NAME=1
12187 REPLACE_REALPATH=1
12188 ;;
12189 esac
12190 fi
12191
12192 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12193
12194
12195
12196
12197
12198
12199
12200
12201 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12202
12203 fi
12204
12205
12206cat >>confdefs.h <<_ACEOF
12207#define GNULIB_CANONICALIZE_LGPL 1
12208_ACEOF
12209
12210
12211
12212
12213
12214
12215
12216 GNULIB_CANONICALIZE_FILE_NAME=1
12217
12218
12219
12220
12221
12222$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12223
12224
12225
12226
12227
12228
12229
12230
12231 GNULIB_REALPATH=1
12232
12233
12234
12235
12236
12237$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12238
12239
12240
12241
6a29c58e
YQ
12242
12243
12244
12245
12246 GNULIB_CHDIR=1
12247
12248
12249
12250
12251
12252$as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12253
12254
12255
12256
8690e634
JK
12257 if test "x$datarootdir" = x; then
12258 datarootdir='${datadir}'
12259
12260 fi
12261 if test "x$docdir" = x; then
12262 docdir='${datarootdir}/doc/${PACKAGE}'
12263
12264 fi
12265 if test "x$htmldir" = x; then
12266 htmldir='${docdir}'
12267
12268 fi
12269 if test "x$dvidir" = x; then
12270 dvidir='${docdir}'
12271
12272 fi
12273 if test "x$pdfdir" = x; then
12274 pdfdir='${docdir}'
12275
12276 fi
12277 if test "x$psdir" = x; then
12278 psdir='${docdir}'
12279
12280 fi
12281 if test "x$lispdir" = x; then
12282 lispdir='${datarootdir}/emacs/site-lisp'
12283
12284 fi
12285 if test "x$localedir" = x; then
12286 localedir='${datarootdir}/locale'
12287
4a626d0a
PA
12288 fi
12289 if test "x$runstatedir" = x; then
12290 runstatedir='${localstatedir}/run'
12291
8690e634
JK
12292 fi
12293
12294 pkglibexecdir='${libexecdir}/${PACKAGE}'
12295
12296
12297
12298
12299
12300
63ce7108 12301
e26b6bb0
TT
12302
12303
12304
12305
12306
12307
12308
12309 if test $gl_cv_have_include_next = yes; then
12310 gl_cv_next_dirent_h='<'dirent.h'>'
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12313$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12314if test "${gl_cv_next_dirent_h+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316else
12317
12318 if test $ac_cv_header_dirent_h = yes; then
12319
12320
4a626d0a
PA
12321
12322
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e26b6bb0
TT
12324/* end confdefs.h. */
12325#include <dirent.h>
e26b6bb0 12326_ACEOF
4a626d0a
PA
12327 case "$host_os" in
12328 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12329 *) gl_absname_cpp="$ac_cpp" ;;
12330 esac
12331
12332 case "$host_os" in
12333 mingw*)
12334 gl_dirsep_regex='[/\\]'
12335 ;;
12336 *)
12337 gl_dirsep_regex='\/'
12338 ;;
12339 esac
12340 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12341 gl_header_literal_regex=`echo 'dirent.h' \
12342 | sed -e "$gl_make_literal_regex_sed"`
12343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12345 s|^/[^/]|//&|
12346 p
12347 q
12348 }'
12349
12350 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12351 sed -n "$gl_absolute_header_sed"`
12352
12353 gl_header=$gl_cv_absolute_dirent_h
12354 gl_cv_next_dirent_h='"'$gl_header'"'
e26b6bb0
TT
12355 else
12356 gl_cv_next_dirent_h='<'dirent.h'>'
12357 fi
12358
12359
12360fi
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12362$as_echo "$gl_cv_next_dirent_h" >&6; }
12363 fi
12364 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12365
12366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12368 gl_next_as_first_directive='<'dirent.h'>'
12369 else
12370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12371 gl_next_as_first_directive=$gl_cv_next_dirent_h
12372 fi
12373 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12374
12375
12376
12377
12378 if test $ac_cv_header_dirent_h = yes; then
12379 HAVE_DIRENT_H=1
12380 else
12381 HAVE_DIRENT_H=0
12382 fi
12383
12384
12385
12386 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12387 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12389$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12390if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12391 $as_echo_n "(cached) " >&6
12392else
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394/* end confdefs.h. */
12395#include <dirent.h>
12396
12397int
12398main ()
12399{
12400#undef $gl_func
12401 (void) $gl_func;
12402 ;
12403 return 0;
12404}
12405_ACEOF
12406if ac_fn_c_try_compile "$LINENO"; then :
12407 eval "$as_gl_Symbol=yes"
12408else
12409 eval "$as_gl_Symbol=no"
12410fi
12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412fi
12413eval ac_res=\$$as_gl_Symbol
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12415$as_echo "$ac_res" >&6; }
12416 eval as_val=\$$as_gl_Symbol
12417 if test "x$as_val" = x""yes; then :
12418 cat >>confdefs.h <<_ACEOF
12419#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12420_ACEOF
12421
12422 eval ac_cv_have_decl_$gl_func=yes
12423fi
12424 done
12425
12426
12427
12428
12429
12430
18848e28
GF
12431
12432 for ac_func in dirfd
12433do :
12434 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12435if test "x$ac_cv_func_dirfd" = x""yes; then :
12436 cat >>confdefs.h <<_ACEOF
12437#define HAVE_DIRFD 1
12438_ACEOF
12439
12440fi
12441done
12442
12443 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12444 #include <dirent.h>
12445"
12446if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12447 ac_have_decl=1
12448else
12449 ac_have_decl=0
12450fi
12451
12452cat >>confdefs.h <<_ACEOF
12453#define HAVE_DECL_DIRFD $ac_have_decl
12454_ACEOF
12455
12456 if test $ac_cv_have_decl_dirfd = no; then
12457 HAVE_DECL_DIRFD=0
12458 fi
12459
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12461$as_echo_n "checking whether dirfd is a macro... " >&6; }
12462if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12464else
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466/* end confdefs.h. */
12467
12468#include <sys/types.h>
12469#include <dirent.h>
12470#ifdef dirfd
12471 dirent_header_defines_dirfd
12472#endif
12473_ACEOF
12474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12475 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12476 gl_cv_func_dirfd_macro=yes
12477else
12478 gl_cv_func_dirfd_macro=no
12479fi
12480rm -f conftest*
12481
12482fi
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12484$as_echo "$gl_cv_func_dirfd_macro" >&6; }
12485
12486 # Use the replacement only if we have no function or macro with that name.
12487 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12488 if test $ac_cv_have_decl_dirfd = yes; then
12489 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12490 REPLACE_DIRFD=1
12491 fi
12492 fi
12493
12494 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12495
12496
12497
12498
12499
12500
12501
12502
12503 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12504
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12507$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12508if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510else
12511
12512 dirfd_save_CFLAGS=$CFLAGS
12513 for ac_expr in d_fd dd_fd; do
12514
12515 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h. */
12518
12519 #include <sys/types.h>
12520 #include <dirent.h>
12521int
12522main ()
12523{
12524DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529if ac_fn_c_try_compile "$LINENO"; then :
12530 dir_fd_found=yes
12531
12532fi
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 CFLAGS=$dirfd_save_CFLAGS
12535 test "$dir_fd_found" = yes && break
12536 done
12537 test "$dir_fd_found" = yes || ac_expr=no_such_member
12538
12539 gl_cv_sys_dir_fd_member_name=$ac_expr
12540
12541
12542fi
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12544$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12545 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12546
12547cat >>confdefs.h <<_ACEOF
12548#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12549_ACEOF
12550
12551 fi
12552
12553
12554 fi
12555
12556
12557
12558
12559
12560 GNULIB_DIRFD=1
12561
12562
12563
12564
12565
12566$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12567
12568
12569
12570
12571
12572
12573
12574
6a29c58e
YQ
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12577$as_echo_n "checking whether // is distinct from /... " >&6; }
12578if test "${gl_cv_double_slash_root+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580else
12581 if test x"$cross_compiling" = xyes ; then
12582 # When cross-compiling, there is no way to tell whether // is special
12583 # short of a list of hosts. However, the only known hosts to date
12584 # that have a distinct // are Apollo DomainOS (too old to port to),
12585 # Cygwin, and z/OS. If anyone knows of another system for which // has
12586 # special semantics and is distinct from /, please report it to
12587 # <bug-gnulib@gnu.org>.
12588 case $host in
12589 *-cygwin | i370-ibm-openedition)
12590 gl_cv_double_slash_root=yes ;;
12591 *)
12592 # Be optimistic and assume that / and // are the same when we
12593 # don't know.
12594 gl_cv_double_slash_root='unknown, assuming no' ;;
12595 esac
12596 else
12597 set x `ls -di / // 2>/dev/null`
12598 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12599 gl_cv_double_slash_root=no
12600 else
12601 gl_cv_double_slash_root=yes
12602 fi
12603 fi
12604fi
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12606$as_echo "$gl_cv_double_slash_root" >&6; }
12607 if test "$gl_cv_double_slash_root" = yes; then
12608
12609$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12610
12611 fi
12612
12613
12614
12615
12616
12617
88b48903
WN
12618 FLOAT_H=
12619 REPLACE_FLOAT_LDBL=0
12620 case "$host_os" in
12621 aix* | beos* | openbsd* | mirbsd* | irix*)
12622 FLOAT_H=float.h
12623 ;;
12624 freebsd*)
12625 case "$host_cpu" in
12626 i[34567]86 )
12627 FLOAT_H=float.h
12628 ;;
12629 x86_64 )
12630 # On x86_64 systems, the C compiler may still be generating
12631 # 32-bit code.
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h. */
12634#if defined __LP64__ || defined __x86_64__ || defined __amd64__
12635 yes
12636 #endif
12637_ACEOF
12638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12639 $EGREP "yes" >/dev/null 2>&1; then :
12640
12641else
12642 FLOAT_H=float.h
12643fi
12644rm -f conftest*
8690e634 12645
88b48903
WN
12646 ;;
12647 esac
12648 ;;
12649 linux*)
12650 case "$host_cpu" in
12651 powerpc*)
12652 FLOAT_H=float.h
12653 ;;
12654 esac
12655 ;;
12656 esac
12657 case "$host_os" in
12658 aix* | freebsd* | linux*)
12659 if test -n "$FLOAT_H"; then
12660 REPLACE_FLOAT_LDBL=1
12661 fi
12662 ;;
12663 esac
a512b375 12664
88b48903
WN
12665 REPLACE_ITOLD=0
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12667$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12668if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
12669 $as_echo_n "(cached) " >&6
12670else
88b48903
WN
12671
12672 if test "$cross_compiling" = yes; then :
12673 case "$host" in
12674 sparc*-*-linux*)
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h. */
12677#if defined __LP64__ || defined __arch64__
12678 yes
12679 #endif
12680_ACEOF
12681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 $EGREP "yes" >/dev/null 2>&1; then :
12683 gl_cv_func_itold_works="guessing no"
12684else
12685 gl_cv_func_itold_works="guessing yes"
12686fi
12687rm -f conftest*
12688
12689 ;;
12690 *) gl_cv_func_itold_works="guessing yes" ;;
12691 esac
12692
8690e634
JK
12693else
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h. */
8690e634 12696
88b48903
WN
12697int i = -1;
12698volatile long double ld;
12699int main ()
8690e634 12700{
88b48903
WN
12701 ld += i * 1.0L;
12702 if (ld > 0)
12703 return 1;
12704 return 0;
12705}
12706_ACEOF
12707if ac_fn_c_try_run "$LINENO"; then :
12708 gl_cv_func_itold_works=yes
12709else
12710 gl_cv_func_itold_works=no
12711fi
12712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12713 conftest.$ac_objext conftest.beam conftest.$ac_ext
12714fi
12715
12716
12717fi
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12719$as_echo "$gl_cv_func_itold_works" >&6; }
12720 case "$gl_cv_func_itold_works" in
12721 *no)
12722 REPLACE_ITOLD=1
12723 FLOAT_H=float.h
12724 ;;
12725 esac
12726
12727 if test -n "$FLOAT_H"; then
12728
12729
12730
12731
12732
12733
12734
12735
12736 if test $gl_cv_have_include_next = yes; then
12737 gl_cv_next_float_h='<'float.h'>'
12738 else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12740$as_echo_n "checking absolute name of <float.h>... " >&6; }
12741if test "${gl_cv_next_float_h+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12743else
12744
4a626d0a
PA
12745
12746
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88b48903
WN
12748/* end confdefs.h. */
12749#include <float.h>
88b48903 12750_ACEOF
4a626d0a
PA
12751 case "$host_os" in
12752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12753 *) gl_absname_cpp="$ac_cpp" ;;
12754 esac
12755
12756 case "$host_os" in
12757 mingw*)
12758 gl_dirsep_regex='[/\\]'
12759 ;;
12760 *)
12761 gl_dirsep_regex='\/'
12762 ;;
12763 esac
12764 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12765 gl_header_literal_regex=`echo 'float.h' \
12766 | sed -e "$gl_make_literal_regex_sed"`
12767 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12769 s|^/[^/]|//&|
12770 p
12771 q
12772 }'
88b48903 12773
4a626d0a
PA
12774 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12775 sed -n "$gl_absolute_header_sed"`
88b48903 12776
4a626d0a
PA
12777 gl_header=$gl_cv_absolute_float_h
12778 gl_cv_next_float_h='"'$gl_header'"'
88b48903
WN
12779
12780
12781fi
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12783$as_echo "$gl_cv_next_float_h" >&6; }
12784 fi
12785 NEXT_FLOAT_H=$gl_cv_next_float_h
12786
12787 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12789 gl_next_as_first_directive='<'float.h'>'
12790 else
12791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12792 gl_next_as_first_directive=$gl_cv_next_float_h
12793 fi
12794 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12795
12796
12797
12798
12799 fi
12800
12801 if test -n "$FLOAT_H"; then
12802 GL_GENERATE_FLOAT_H_TRUE=
12803 GL_GENERATE_FLOAT_H_FALSE='#'
12804else
12805 GL_GENERATE_FLOAT_H_TRUE='#'
12806 GL_GENERATE_FLOAT_H_FALSE=
12807fi
12808
12809
12810
12811 if test $REPLACE_FLOAT_LDBL = 1; then
12812
12813
12814
12815
12816
12817
12818
12819
12820 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12821
12822 fi
12823 if test $REPLACE_ITOLD = 1; then
12824
12825
12826
12827
12828
12829
12830
12831
12832 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12833
12834 fi
12835
12836
12837
12838
12839
12840 FNMATCH_H=
12841 gl_fnmatch_required_lowercase=`
12842 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
12843 `
12844 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12846$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12847if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12848 $as_echo_n "(cached) " >&6
12849else
12850 if test $gl_fnmatch_required = GNU; then
12851 gl_fnmatch_gnu_start=
12852 gl_fnmatch_gnu_end=
12853 else
12854 gl_fnmatch_gnu_start='#if 0'
12855 gl_fnmatch_gnu_end='#endif'
12856 fi
12857 if test "$cross_compiling" = yes; then :
12858 eval "$gl_fnmatch_cache_var=\"guessing no\""
12859else
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h. */
12862#include <fnmatch.h>
12863 static int
12864 y (char const *pattern, char const *string, int flags)
12865 {
12866 return fnmatch (pattern, string, flags) == 0;
12867 }
12868 static int
12869 n (char const *pattern, char const *string, int flags)
12870 {
12871 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12872 }
12873
12874int
12875main ()
12876{
12877char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12878 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12879 static char const A_1[] = { 'A' - 1, 0 };
12880 static char const A01[] = { 'A' + 1, 0 };
12881 static char const a_1[] = { 'a' - 1, 0 };
12882 static char const a01[] = { 'a' + 1, 0 };
12883 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
12884 static char const bs01[] = { '\\\\' + 1, 0 };
12885 int result = 0;
12886 if (!n ("a*", "", 0))
12887 return 1;
12888 if (!y ("a*", "abc", 0))
12889 return 1;
12890 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12891 return 1;
12892 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12893 return 2;
12894 if (!y ("a\\\\bc", "abc", 0))
12895 return 3;
12896 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12897 return 3;
12898 if (!y ("*x", ".x", 0))
12899 return 4;
12900 if (!n ("*x", ".x", FNM_PERIOD))
12901 return 4;
12902 if (!y (Apat, "\\\\", 0))
12903 return 5;
12904 if (!y (Apat, "A", 0))
12905 return 5;
12906 if (!y (apat, "\\\\", 0))
12907 return 5;
12908 if (!y (apat, "a", 0))
12909 return 5;
12910 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12911 return 5;
12912 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12913 return 5;
12914 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12915 return 5;
12916 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12917 return 5;
12918 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12919 return 5;
12920 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12921 return 5;
12922 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12923 return 5;
12924 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12925 return 5;
12926 $gl_fnmatch_gnu_start
12927 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12928 result |= 8;
12929 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12930 result |= 16;
12931 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12932 result |= 32;
12933 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12934 result |= 64;
12935 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12936 result |= 64;
12937 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12938 result |= 64;
12939 $gl_fnmatch_gnu_end
12940 return result;
12941
12942 ;
12943 return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_run "$LINENO"; then :
12947 eval "$gl_fnmatch_cache_var=yes"
12948else
12949 eval "$gl_fnmatch_cache_var=no"
12950fi
12951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12952 conftest.$ac_objext conftest.beam conftest.$ac_ext
12953fi
12954
12955
12956fi
12957eval ac_res=\$$gl_fnmatch_cache_var
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12959$as_echo "$ac_res" >&6; }
12960 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12961 if test "$gl_fnmatch_result" = yes; then
12962 rm -f "$gl_source_base/fnmatch.h"
12963 else
12964 FNMATCH_H=fnmatch.h
12965 fi
12966
12967 if test -n "$FNMATCH_H"; then
12968 GL_GENERATE_FNMATCH_H_TRUE=
12969 GL_GENERATE_FNMATCH_H_FALSE='#'
12970else
12971 GL_GENERATE_FNMATCH_H_TRUE='#'
12972 GL_GENERATE_FNMATCH_H_FALSE=
12973fi
12974
12975
a512b375 12976 if test -n "$FNMATCH_H"; then
8690e634
JK
12977
12978
12979
12980
12981
12982
12983
12984
12985 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12986
12987
12988
12989cat >>confdefs.h <<_ACEOF
12990#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12991_ACEOF
12992
12993
12994 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12995"
12996if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12997 ac_have_decl=1
12998else
12999 ac_have_decl=0
13000fi
13001
13002cat >>confdefs.h <<_ACEOF
13003#define HAVE_DECL_ISBLANK $ac_have_decl
13004_ACEOF
13005
13006
c971b7fa 13007
c971b7fa 13008
a512b375 13009 fi
c971b7fa 13010
c971b7fa 13011
c971b7fa 13012
c971b7fa 13013
c971b7fa 13014
a512b375 13015 if test -n "$FNMATCH_H"; then
c971b7fa 13016
c971b7fa 13017
c971b7fa
PA
13018
13019
c971b7fa
PA
13020
13021
c971b7fa
PA
13022
13023
8690e634 13024 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 13025
c971b7fa 13026
c971b7fa 13027
8690e634
JK
13028cat >>confdefs.h <<_ACEOF
13029#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13030_ACEOF
c971b7fa
PA
13031
13032
8690e634
JK
13033 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13034"
13035if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13036 ac_have_decl=1
13037else
13038 ac_have_decl=0
c971b7fa 13039fi
c971b7fa 13040
8690e634
JK
13041cat >>confdefs.h <<_ACEOF
13042#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
13043_ACEOF
13044
c971b7fa 13045
8690e634 13046
c971b7fa 13047
88b48903
WN
13048 fi
13049
13050
13051
13052 FREXP_LIBM=
13053 if test $gl_cv_func_frexp_no_libm = no; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13055$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13056if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13058else
13059
13060 save_LIBS="$LIBS"
13061 LIBS="$LIBS -lm"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063/* end confdefs.h. */
13064#include <math.h>
13065 double x;
13066int
13067main ()
13068{
13069int e; return frexp (x, &e) > 0;
13070 ;
13071 return 0;
13072}
13073_ACEOF
13074if ac_fn_c_try_link "$LINENO"; then :
13075 gl_cv_func_frexp_in_libm=yes
13076else
13077 gl_cv_func_frexp_in_libm=no
13078fi
13079rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS="$save_LIBS"
13082
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13085$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13086 if test $gl_cv_func_frexp_in_libm = yes; then
13087 FREXP_LIBM=-lm
13088 fi
13089 fi
13090 if test $gl_cv_func_frexp_no_libm = yes \
13091 || test $gl_cv_func_frexp_in_libm = yes; then
13092 save_LIBS="$LIBS"
13093 LIBS="$LIBS $FREXP_LIBM"
13094
13095
13096
88b48903
WN
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13098$as_echo_n "checking whether frexp works... " >&6; }
13099if test "${gl_cv_func_frexp_works+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13101else
13102
13103 if test "$cross_compiling" = yes; then :
13104 case "$host_os" in
13105 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13106 *) gl_cv_func_frexp_works="guessing yes";;
13107 esac
13108
13109else
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h. */
13112
13113#include <float.h>
13114#include <math.h>
13115#include <string.h>
4a626d0a
PA
13116#if HAVE_DECL_ALARM
13117# include <signal.h>
88b48903
WN
13118# include <unistd.h>
13119#endif
13120/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13121 ICC 10.0 has a bug when optimizing the expression -zero.
13122 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13123 to PowerPC on Mac OS X 10.5. */
13124#if defined __hpux || defined __sgi || defined __ICC
13125static double
13126compute_minus_zero (void)
13127{
13128 return -DBL_MIN * DBL_MIN;
13129}
13130# define minus_zero compute_minus_zero ()
13131#else
13132double minus_zero = -0.0;
13133#endif
13134int main()
13135{
13136 int result = 0;
13137 int i;
13138 volatile double x;
13139 double zero = 0.0;
4a626d0a 13140#if HAVE_DECL_ALARM
88b48903
WN
13141 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13142 number. Let the test fail in this case. */
4a626d0a 13143 signal (SIGALRM, SIG_DFL);
88b48903
WN
13144 alarm (5);
13145#endif
13146 /* Test on denormalized numbers. */
13147 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13148 ;
13149 if (x > 0.0)
13150 {
13151 int exp;
13152 double y = frexp (x, &exp);
13153 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13154 On NetBSD: y = 0.75. Correct: y = 0.5. */
13155 if (y != 0.5)
13156 result |= 1;
13157 }
13158 /* Test on infinite numbers. */
13159 x = 1.0 / zero;
13160 {
13161 int exp;
13162 double y = frexp (x, &exp);
13163 if (y != x)
13164 result |= 2;
13165 }
13166 /* Test on negative zero. */
13167 x = minus_zero;
13168 {
13169 int exp;
13170 double y = frexp (x, &exp);
13171 if (memcmp (&y, &x, sizeof x))
13172 result |= 4;
13173 }
13174 return result;
13175}
13176_ACEOF
13177if ac_fn_c_try_run "$LINENO"; then :
13178 gl_cv_func_frexp_works=yes
13179else
13180 gl_cv_func_frexp_works=no
13181fi
13182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13183 conftest.$ac_objext conftest.beam conftest.$ac_ext
13184fi
13185
13186
13187fi
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13189$as_echo "$gl_cv_func_frexp_works" >&6; }
13190
13191 LIBS="$save_LIBS"
13192 case "$gl_cv_func_frexp_works" in
13193 *yes) gl_func_frexp=yes ;;
13194 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13195 esac
13196 else
13197 gl_func_frexp=no
13198 fi
13199 if test $gl_func_frexp = yes; then
13200
13201$as_echo "#define HAVE_FREXP 1" >>confdefs.h
13202
13203 fi
13204
13205
13206 if test $gl_func_frexp != yes; then
13207
13208
13209
13210
13211
13212
13213
13214
13215 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13216
13217 fi
13218
13219
13220
13221
13222
13223 GNULIB_FREXP=1
13224
13225
13226
13227
13228
13229$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13240"
13241if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13242
13243else
13244 HAVE_DECL_FREXPL=0
13245fi
13246
13247
13248 FREXPL_LIBM=
13249 if test $HAVE_DECL_FREXPL = 1; then
13250
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13252$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13253if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255else
13256
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258/* end confdefs.h. */
13259#include <math.h>
13260 long double x;
13261int
13262main ()
13263{
13264int e; return frexpl (x, &e) > 0;
13265 ;
13266 return 0;
13267}
13268_ACEOF
13269if ac_fn_c_try_link "$LINENO"; then :
13270 gl_cv_func_frexpl_no_libm=yes
13271else
13272 gl_cv_func_frexpl_no_libm=no
13273fi
13274rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13279$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13280
13281 if test $gl_cv_func_frexpl_no_libm = no; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13283$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13284if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286else
13287
13288 save_LIBS="$LIBS"
13289 LIBS="$LIBS -lm"
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h. */
13292#include <math.h>
13293 long double x;
13294int
13295main ()
13296{
13297int e; return frexpl (x, &e) > 0;
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302if ac_fn_c_try_link "$LINENO"; then :
13303 gl_cv_func_frexpl_in_libm=yes
13304else
13305 gl_cv_func_frexpl_in_libm=no
13306fi
13307rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS="$save_LIBS"
13310
13311fi
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13313$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13314 if test $gl_cv_func_frexpl_in_libm = yes; then
13315 FREXPL_LIBM=-lm
13316 fi
13317 fi
13318 if test $gl_cv_func_frexpl_no_libm = yes \
13319 || test $gl_cv_func_frexpl_in_libm = yes; then
13320 save_LIBS="$LIBS"
13321 LIBS="$LIBS $FREXPL_LIBM"
13322
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13325$as_echo_n "checking whether frexpl works... " >&6; }
13326if test "${gl_cv_func_frexpl_works+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13328else
13329
13330 if test "$cross_compiling" = yes; then :
13331
13332 case "$host_os" in
13333 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13334 gl_cv_func_frexpl_works="guessing no";;
13335 *) gl_cv_func_frexpl_works="guessing yes";;
13336 esac
13337
13338else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h. */
13341
13342#include <float.h>
13343#include <math.h>
13344/* Override the values of <float.h>, like done in float.in.h. */
13345#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13346# undef LDBL_MIN_EXP
13347# define LDBL_MIN_EXP (-16381)
13348#endif
13349#if defined __i386__ && defined __FreeBSD__
13350# undef LDBL_MIN_EXP
13351# define LDBL_MIN_EXP (-16381)
13352#endif
13353#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13354# undef LDBL_MIN_EXP
13355# define LDBL_MIN_EXP DBL_MIN_EXP
13356#endif
13357#if defined __sgi && (LDBL_MANT_DIG >= 106)
13358# if defined __GNUC__
13359# undef LDBL_MIN_EXP
13360# define LDBL_MIN_EXP DBL_MIN_EXP
13361# endif
13362#endif
13363extern
13364#ifdef __cplusplus
13365"C"
13366#endif
13367long double frexpl (long double, int *);
13368int main()
13369{
13370 int result = 0;
13371 volatile long double x;
13372 /* Test on finite numbers that fails on AIX 5.1. */
13373 x = 16.0L;
13374 {
13375 int exp = -9999;
13376 frexpl (x, &exp);
13377 if (exp != 5)
13378 result |= 1;
13379 }
13380 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13381 function returns an invalid (incorrectly normalized) value: it returns
13382 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13383 but the correct result is
13384 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13385 x = 1.01L;
13386 {
13387 int exp = -9999;
13388 long double y = frexpl (x, &exp);
13389 if (!(exp == 1 && y == 0.505L))
13390 result |= 2;
13391 }
13392 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13393 LDBL_MAX_EXP = 16384.
13394 In the loop end test, we test x against Infinity, rather than comparing
13395 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13396 {
13397 int i;
13398 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13399 {
13400 int exp = -9999;
13401 frexpl (x, &exp);
13402 if (exp != i)
13403 {
13404 result |= 4;
13405 break;
13406 }
13407 }
13408 }
13409 /* Test on denormalized numbers. */
13410 {
13411 int i;
13412 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13413 ;
13414 if (x > 0.0L)
13415 {
13416 int exp;
13417 long double y = frexpl (x, &exp);
13418 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13419 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13420 if (exp != LDBL_MIN_EXP - 1)
13421 result |= 8;
13422 }
13423 }
13424 /* Test on infinite numbers. */
13425 x = 1.0L / 0.0L;
13426 {
13427 int exp;
13428 long double y = frexpl (x, &exp);
13429 if (y != x)
13430 result |= 16;
13431 }
13432 return result;
13433}
13434_ACEOF
13435if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_frexpl_works=yes
13437else
13438 gl_cv_func_frexpl_works=no
13439fi
13440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13442fi
13443
13444
4a626d0a
PA
13445fi
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13447$as_echo "$gl_cv_func_frexpl_works" >&6; }
13448
13449 LIBS="$save_LIBS"
13450 case "$gl_cv_func_frexpl_works" in
13451 *yes) gl_func_frexpl=yes ;;
13452 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13453 esac
13454 else
13455 gl_func_frexpl=no
13456 fi
13457 if test $gl_func_frexpl = yes; then
13458
13459$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13460
13461 fi
13462 fi
13463 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13464 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13465
13466 FREXPL_LIBM="$FREXP_LIBM"
13467 else
13468 FREXPL_LIBM=
13469 fi
13470 fi
13471
13472
13473 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13474
13475
13476
13477
13478
13479
13480
13481
13482 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13483
13484 fi
13485
13486
13487
13488
13489
13490 GNULIB_FREXPL=1
13491
13492
13493
13494
13495
13496$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506 gl_gettimeofday_timezone=void
13507 if test $ac_cv_func_gettimeofday != yes; then
13508 HAVE_GETTIMEOFDAY=0
13509 else
13510
13511
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13514$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13515if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517else
13518 if test "$cross_compiling" = yes; then :
13519 # When cross-compiling:
13520 case "$host_os" in
13521 # Guess all is fine on glibc systems.
13522 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13523 # If we don't know, assume the worst.
13524 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13525 esac
13526
13527else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529/* end confdefs.h. */
13530#include <string.h>
13531 #include <sys/time.h>
13532 #include <time.h>
13533 #include <stdlib.h>
13534
13535int
13536main ()
13537{
13538
13539 time_t t = 0;
13540 struct tm *lt;
13541 struct tm saved_lt;
13542 struct timeval tv;
13543 lt = localtime (&t);
13544 saved_lt = *lt;
13545 gettimeofday (&tv, NULL);
13546 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13547
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552if ac_fn_c_try_run "$LINENO"; then :
13553 gl_cv_func_gettimeofday_clobber=no
13554else
13555 gl_cv_func_gettimeofday_clobber=yes
13556fi
13557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13558 conftest.$ac_objext conftest.beam conftest.$ac_ext
13559fi
13560
13561fi
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13563$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13564
13565 case "$gl_cv_func_gettimeofday_clobber" in
13566 *yes)
13567 REPLACE_GETTIMEOFDAY=1
13568
13569 REPLACE_GMTIME=1
13570 REPLACE_LOCALTIME=1
13571
13572
13573$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13574
13575 ;;
13576 esac
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13579$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13580if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582else
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584/* end confdefs.h. */
13585#include <sys/time.h>
13586 struct timeval c;
13587 int gettimeofday (struct timeval *restrict, void *restrict);
13588
13589int
13590main ()
13591{
13592/* glibc uses struct timezone * rather than the POSIX void *
13593 if _GNU_SOURCE is defined. However, since the only portable
13594 use of gettimeofday uses NULL as the second parameter, and
13595 since the glibc definition is actually more typesafe, it is
13596 not worth wrapping this to get a compliant signature. */
13597 int (*f) (struct timeval *restrict, void *restrict)
13598 = gettimeofday;
13599 int x = f (&c, 0);
13600 return !(x | c.tv_sec | c.tv_usec);
13601
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606if ac_fn_c_try_compile "$LINENO"; then :
13607 gl_cv_func_gettimeofday_posix_signature=yes
13608else
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610/* end confdefs.h. */
13611#include <sys/time.h>
13612int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13613
13614int
13615main ()
13616{
13617
13618 ;
13619 return 0;
13620}
13621_ACEOF
13622if ac_fn_c_try_compile "$LINENO"; then :
13623 gl_cv_func_gettimeofday_posix_signature=almost
13624else
13625 gl_cv_func_gettimeofday_posix_signature=no
13626fi
13627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628fi
13629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630fi
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13632$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13633 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13634 gl_gettimeofday_timezone='struct timezone'
13635 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13636 REPLACE_GETTIMEOFDAY=1
13637 fi
13638 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13639 REPLACE_GETTIMEOFDAY=1
13640 fi
13641
13642 fi
13643
13644cat >>confdefs.h <<_ACEOF
13645#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13646_ACEOF
13647
88b48903 13648
4a626d0a 13649 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
88b48903 13650
88b48903 13651
88b48903 13652
88b48903
WN
13653
13654
88b48903
WN
13655
13656
13657
4a626d0a 13658 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
88b48903
WN
13659
13660
4a626d0a
PA
13661 for ac_header in sys/timeb.h
13662do :
13663 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13664if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13665 cat >>confdefs.h <<_ACEOF
13666#define HAVE_SYS_TIMEB_H 1
13667_ACEOF
88b48903 13668
4a626d0a 13669fi
88b48903 13670
4a626d0a
PA
13671done
13672
13673 for ac_func in _ftime
13674do :
13675 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13676if test "x$ac_cv_func__ftime" = x""yes; then :
13677 cat >>confdefs.h <<_ACEOF
13678#define HAVE__FTIME 1
13679_ACEOF
13680
13681fi
13682done
88b48903 13683
88b48903
WN
13684
13685 fi
13686
13687
13688
13689
13690
4a626d0a 13691 GNULIB_GETTIMEOFDAY=1
88b48903
WN
13692
13693
13694
13695
13696
4a626d0a 13697$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
88b48903
WN
13698
13699
13700
13701
13702
13703
13704
13705
13706 PRIPTR_PREFIX=
13707 if test -n "$STDINT_H"; then
13708 PRIPTR_PREFIX='"l"'
13709 else
13710 for glpfx in '' l ll I64; do
13711 case $glpfx in
13712 '') gltype1='int';;
13713 l) gltype1='long int';;
13714 ll) gltype1='long long int';;
13715 I64) gltype1='__int64';;
13716 esac
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h. */
13719#include <stdint.h>
13720 extern intptr_t foo;
13721 extern $gltype1 foo;
13722int
13723main ()
13724{
13725
13726 ;
13727 return 0;
13728}
13729_ACEOF
13730if ac_fn_c_try_compile "$LINENO"; then :
13731 PRIPTR_PREFIX='"'$glpfx'"'
13732fi
13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 test -n "$PRIPTR_PREFIX" && break
13735 done
13736 fi
13737
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13741$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13742if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746/* end confdefs.h. */
13747/* Work also in C++ mode. */
13748 #define __STDC_LIMIT_MACROS 1
13749
13750 /* Work if build is not clean. */
13751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13752
13753 #include <limits.h>
13754 #if HAVE_STDINT_H
13755 #include <stdint.h>
13756 #endif
13757
13758 #if defined INT32_MAX && defined INTMAX_MAX
13759 #define CONDITION (INT32_MAX < INTMAX_MAX)
13760 #elif HAVE_LONG_LONG_INT
13761 #define CONDITION (sizeof (int) < sizeof (long long int))
13762 #else
13763 #define CONDITION 0
13764 #endif
13765 int test[CONDITION ? 1 : -1];
13766int
13767main ()
13768{
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"; then :
13775 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13776else
13777 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13778fi
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780fi
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13782$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13783 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13784 INT32_MAX_LT_INTMAX_MAX=1;
13785 else
13786 INT32_MAX_LT_INTMAX_MAX=0;
13787 fi
13788
13789
13790 if test $APPLE_UNIVERSAL_BUILD = 0; then
13791
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13793$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13794if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13796else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798/* end confdefs.h. */
13799/* Work also in C++ mode. */
13800 #define __STDC_LIMIT_MACROS 1
13801
13802 /* Work if build is not clean. */
13803 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13804
13805 #include <limits.h>
13806 #if HAVE_STDINT_H
13807 #include <stdint.h>
13808 #endif
13809
13810 #if defined INT64_MAX
13811 #define CONDITION (INT64_MAX == LONG_MAX)
13812 #elif HAVE_LONG_LONG_INT
13813 #define CONDITION (sizeof (long long int) == sizeof (long int))
13814 #else
13815 #define CONDITION 0
13816 #endif
13817 int test[CONDITION ? 1 : -1];
13818int
13819main ()
13820{
13821
13822 ;
13823 return 0;
13824}
13825_ACEOF
13826if ac_fn_c_try_compile "$LINENO"; then :
13827 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13828else
13829 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13830fi
13831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832fi
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13834$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13835 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13836 INT64_MAX_EQ_LONG_MAX=1;
13837 else
13838 INT64_MAX_EQ_LONG_MAX=0;
13839 fi
13840
13841
13842 else
13843 INT64_MAX_EQ_LONG_MAX=-1
13844 fi
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13847$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13848if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13850else
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852/* end confdefs.h. */
13853/* Work also in C++ mode. */
13854 #define __STDC_LIMIT_MACROS 1
13855
13856 /* Work if build is not clean. */
13857 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13858
13859 #include <limits.h>
13860 #if HAVE_STDINT_H
13861 #include <stdint.h>
13862 #endif
13863
13864 #if defined UINT32_MAX && defined UINTMAX_MAX
13865 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13866 #elif HAVE_LONG_LONG_INT
13867 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13868 #else
13869 #define CONDITION 0
13870 #endif
13871 int test[CONDITION ? 1 : -1];
13872int
13873main ()
13874{
13875
13876 ;
13877 return 0;
13878}
13879_ACEOF
13880if ac_fn_c_try_compile "$LINENO"; then :
13881 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13882else
13883 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13884fi
13885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886fi
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13888$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13889 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13890 UINT32_MAX_LT_UINTMAX_MAX=1;
13891 else
13892 UINT32_MAX_LT_UINTMAX_MAX=0;
13893 fi
13894
13895
13896 if test $APPLE_UNIVERSAL_BUILD = 0; then
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13899$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13900if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902else
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h. */
13905/* Work also in C++ mode. */
13906 #define __STDC_LIMIT_MACROS 1
13907
13908 /* Work if build is not clean. */
13909 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13910
13911 #include <limits.h>
13912 #if HAVE_STDINT_H
13913 #include <stdint.h>
13914 #endif
13915
13916 #if defined UINT64_MAX
13917 #define CONDITION (UINT64_MAX == ULONG_MAX)
13918 #elif HAVE_LONG_LONG_INT
13919 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13920 #else
13921 #define CONDITION 0
13922 #endif
13923 int test[CONDITION ? 1 : -1];
13924int
13925main ()
13926{
13927
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932if ac_fn_c_try_compile "$LINENO"; then :
13933 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13934else
13935 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13936fi
13937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938fi
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13940$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13941 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13942 UINT64_MAX_EQ_ULONG_MAX=1;
13943 else
13944 UINT64_MAX_EQ_ULONG_MAX=0;
13945 fi
13946
13947
13948 else
13949 UINT64_MAX_EQ_ULONG_MAX=-1
13950 fi
13951
13952
13953
13954
13955
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13957$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13958if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13960else
13961
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h. */
13964#include <math.h>
13965 #if __GNUC__ >= 4
13966 # undef isnand
13967 # define isnand(x) __builtin_isnan ((double)(x))
13968 #else
13969 # undef isnand
13970 # define isnand(x) isnan ((double)(x))
13971 #endif
13972 double x;
13973int
13974main ()
13975{
13976return isnand (x);
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981if ac_fn_c_try_link "$LINENO"; then :
13982 gl_cv_func_isnand_no_libm=yes
13983else
13984 gl_cv_func_isnand_no_libm=no
13985fi
13986rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13991$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13992
13993 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13994 if test $gl_cv_func_isnand_no_libm = yes; then
13995
13996$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13997
13998 fi
13999
14000 if test $gl_func_isnand_no_libm != yes; then
14001
14002
14003
14004
14005
14006
14007
14008
14009 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14010
14011
14012
14013
14014 fi
14015
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14018$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14019if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14021else
14022
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h. */
14025#include <math.h>
14026 #if __GNUC__ >= 4
14027 # undef isnanl
14028 # define isnanl(x) __builtin_isnanl ((long double)(x))
14029 #elif defined isnan
14030 # undef isnanl
14031 # define isnanl(x) isnan ((long double)(x))
14032 #endif
14033 long double x;
14034int
14035main ()
14036{
14037return isnanl (x);
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042if ac_fn_c_try_link "$LINENO"; then :
14043 gl_cv_func_isnanl_no_libm=yes
14044else
14045 gl_cv_func_isnanl_no_libm=no
14046fi
14047rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049
14050fi
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14052$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14053
14054 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14055 if test $gl_func_isnanl_no_libm = yes; then
14056
14057
14058
14059
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14061$as_echo_n "checking whether isnanl works... " >&6; }
14062if test "${gl_cv_func_isnanl_works+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14064else
14065
14066 if test "$cross_compiling" = yes; then :
4a626d0a 14067 gl_cv_func_isnanl_works="guessing yes"
88b48903
WN
14068else
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070/* end confdefs.h. */
14071
14072#include <float.h>
14073#include <limits.h>
14074#include <math.h>
14075#if __GNUC__ >= 4
14076# undef isnanl
14077# define isnanl(x) __builtin_isnanl ((long double)(x))
14078#elif defined isnan
14079# undef isnanl
14080# define isnanl(x) isnan ((long double)(x))
14081#endif
14082#define NWORDS \
14083 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14084typedef union { unsigned int word[NWORDS]; long double value; }
14085 memory_long_double;
14086/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14087 runtime type conversion. */
14088#ifdef __sgi
14089static long double NaNl ()
14090{
14091 double zero = 0.0;
14092 return zero / zero;
14093}
14094#else
14095# define NaNl() (0.0L / 0.0L)
14096#endif
14097int main ()
14098{
14099 int result = 0;
14100
14101 if (!isnanl (NaNl ()))
14102 result |= 1;
14103
14104 {
14105 memory_long_double m;
14106 unsigned int i;
14107
14108 /* The isnanl function should be immune against changes in the sign bit and
14109 in the mantissa bits. The xor operation twiddles a bit that can only be
14110 a sign bit or a mantissa bit (since the exponent never extends to
14111 bit 31). */
14112 m.value = NaNl ();
14113 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14114 for (i = 0; i < NWORDS; i++)
14115 m.word[i] |= 1;
14116 if (!isnanl (m.value))
14117 result |= 1;
14118 }
14119
14120#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
14121/* Representation of an 80-bit 'long double' as an initializer for a sequence
14122 of 'unsigned int' words. */
14123# ifdef WORDS_BIGENDIAN
14124# define LDBL80_WORDS(exponent,manthi,mantlo) \
14125 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
4a626d0a 14126 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
88b48903
WN
14127 (unsigned int) (mantlo) << 16 \
14128 }
14129# else
14130# define LDBL80_WORDS(exponent,manthi,mantlo) \
14131 { mantlo, manthi, exponent }
14132# endif
14133 { /* Quiet NaN. */
14134 static memory_long_double x =
14135 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14136 if (!isnanl (x.value))
14137 result |= 2;
14138 }
14139 {
14140 /* Signalling NaN. */
14141 static memory_long_double x =
14142 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14143 if (!isnanl (x.value))
14144 result |= 2;
14145 }
4a626d0a 14146 /* isnanl should return something even for noncanonical values. */
88b48903
WN
14147 { /* Pseudo-NaN. */
14148 static memory_long_double x =
14149 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
4a626d0a 14150 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14151 result |= 4;
14152 }
14153 { /* Pseudo-Infinity. */
14154 static memory_long_double x =
14155 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
4a626d0a 14156 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14157 result |= 8;
14158 }
14159 { /* Pseudo-Zero. */
14160 static memory_long_double x =
14161 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
4a626d0a 14162 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14163 result |= 16;
14164 }
14165 { /* Unnormalized number. */
14166 static memory_long_double x =
14167 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
4a626d0a 14168 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14169 result |= 32;
14170 }
14171 { /* Pseudo-Denormal. */
14172 static memory_long_double x =
14173 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
4a626d0a 14174 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14175 result |= 64;
14176 }
14177#endif
14178
14179 return result;
14180}
14181_ACEOF
14182if ac_fn_c_try_run "$LINENO"; then :
14183 gl_cv_func_isnanl_works=yes
14184else
14185 gl_cv_func_isnanl_works=no
14186fi
14187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14188 conftest.$ac_objext conftest.beam conftest.$ac_ext
14189fi
14190
14191
14192fi
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14194$as_echo "$gl_cv_func_isnanl_works" >&6; }
14195
14196 case "$gl_cv_func_isnanl_works" in
14197 *yes) ;;
14198 *) gl_func_isnanl_no_libm=no ;;
14199 esac
14200 fi
14201 if test $gl_func_isnanl_no_libm = yes; then
14202
14203$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14204
14205 fi
14206
14207 if test $gl_func_isnanl_no_libm != yes; then
14208
14209
14210
14211
14212
14213
14214
14215
14216 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14217
14218
14219
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14222$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14223if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225else
14226
14227 if test "$cross_compiling" = yes; then :
14228
14229 gl_cv_cc_long_double_expbit0="unknown"
14230
14231else
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233/* end confdefs.h. */
14234
14235#include <float.h>
14236#include <stddef.h>
14237#include <stdio.h>
14238#include <string.h>
14239#define NWORDS \
14240 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14241typedef union { long double value; unsigned int word[NWORDS]; }
14242 memory_long_double;
14243static unsigned int ored_words[NWORDS];
14244static unsigned int anded_words[NWORDS];
14245static void add_to_ored_words (long double x)
14246{
14247 memory_long_double m;
14248 size_t i;
14249 /* Clear it first, in case
14250 sizeof (long double) < sizeof (memory_long_double). */
14251 memset (&m, 0, sizeof (memory_long_double));
14252 m.value = x;
14253 for (i = 0; i < NWORDS; i++)
14254 {
14255 ored_words[i] |= m.word[i];
14256 anded_words[i] &= m.word[i];
14257 }
14258}
14259int main ()
14260{
14261 size_t j;
14262 FILE *fp = fopen ("conftest.out", "w");
14263 if (fp == NULL)
14264 return 1;
14265 for (j = 0; j < NWORDS; j++)
14266 anded_words[j] = ~ (unsigned int) 0;
14267 add_to_ored_words (0.25L);
14268 add_to_ored_words (0.5L);
14269 add_to_ored_words (1.0L);
14270 add_to_ored_words (2.0L);
14271 add_to_ored_words (4.0L);
14272 /* Remove bits that are common (e.g. if representation of the first mantissa
14273 bit is explicit). */
14274 for (j = 0; j < NWORDS; j++)
14275 ored_words[j] &= ~anded_words[j];
14276 /* Now find the nonzero word. */
14277 for (j = 0; j < NWORDS; j++)
14278 if (ored_words[j] != 0)
14279 break;
14280 if (j < NWORDS)
14281 {
14282 size_t i;
14283 for (i = j + 1; i < NWORDS; i++)
14284 if (ored_words[i] != 0)
14285 {
14286 fprintf (fp, "unknown");
14287 return (fclose (fp) != 0);
14288 }
14289 for (i = 0; ; i++)
14290 if ((ored_words[j] >> i) & 1)
14291 {
14292 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14293 return (fclose (fp) != 0);
14294 }
14295 }
14296 fprintf (fp, "unknown");
14297 return (fclose (fp) != 0);
14298}
14299
14300_ACEOF
14301if ac_fn_c_try_run "$LINENO"; then :
14302 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14303else
14304 gl_cv_cc_long_double_expbit0="unknown"
14305fi
14306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14307 conftest.$ac_objext conftest.beam conftest.$ac_ext
14308fi
14309
14310 rm -f conftest.out
14311
14312fi
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14314$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14315 case "$gl_cv_cc_long_double_expbit0" in
14316 word*bit*)
14317 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14318 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14319
14320cat >>confdefs.h <<_ACEOF
14321#define LDBL_EXPBIT0_WORD $word
14322_ACEOF
14323
14324
14325cat >>confdefs.h <<_ACEOF
14326#define LDBL_EXPBIT0_BIT $bit
14327_ACEOF
14328
14329 ;;
14330 esac
14331
14332
14333
14334 fi
14335
14336
14337
14338
88b48903
WN
14339
14340
14341
14342
2196f55f 14343
88b48903
WN
14344 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14345
14346
14347
14348
f45c62c4
YQ
14349 if test $ac_cv_func_lstat = yes; then
14350
14351 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14352 *no)
14353 REPLACE_LSTAT=1
14354 ;;
14355 esac
14356 else
14357 HAVE_LSTAT=0
14358 fi
14359
14360 if test $REPLACE_LSTAT = 1; then
14361
14362
14363
14364
14365
14366
14367
14368
14369 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14370
14371 :
14372 fi
14373
14374
14375
14376
14377
14378 GNULIB_LSTAT=1
14379
14380
14381
14382
14383
14384$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14385
14386
14387
14388
14389
14390
6a29c58e
YQ
14391 if test $gl_cv_func_malloc_posix = yes; then
14392
14393$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14394
14395 else
14396 REPLACE_MALLOC=1
14397 fi
14398
14399 if test $REPLACE_MALLOC = 1; then
14400
14401
14402
14403
14404
14405
14406
14407
14408 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14409
14410 fi
14411
14412
14413
14414
14415
14416 GNULIB_MALLOC_POSIX=1
14417
14418
14419
14420
14421
14422$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14423
14424
14425
14426
14427
14428
88b48903
WN
14429
14430
14431
14432
14433
88b48903 14434
c971b7fa 14435
c971b7fa 14436
98399780
YQ
14437
14438
14439
14440
88b48903
WN
14441 if test $gl_cv_have_include_next = yes; then
14442 gl_cv_next_math_h='<'math.h'>'
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14445$as_echo_n "checking absolute name of <math.h>... " >&6; }
14446if test "${gl_cv_next_math_h+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14448else
c971b7fa 14449
88b48903 14450 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
14451
14452
4a626d0a
PA
14453
14454
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 14456/* end confdefs.h. */
88b48903 14457#include <math.h>
8690e634 14458_ACEOF
4a626d0a
PA
14459 case "$host_os" in
14460 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14461 *) gl_absname_cpp="$ac_cpp" ;;
14462 esac
14463
14464 case "$host_os" in
14465 mingw*)
14466 gl_dirsep_regex='[/\\]'
14467 ;;
14468 *)
14469 gl_dirsep_regex='\/'
14470 ;;
14471 esac
14472 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14473 gl_header_literal_regex=`echo 'math.h' \
14474 | sed -e "$gl_make_literal_regex_sed"`
14475 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14477 s|^/[^/]|//&|
14478 p
14479 q
14480 }'
14481
14482 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14483 sed -n "$gl_absolute_header_sed"`
14484
14485 gl_header=$gl_cv_absolute_math_h
14486 gl_cv_next_math_h='"'$gl_header'"'
88b48903
WN
14487 else
14488 gl_cv_next_math_h='<'math.h'>'
14489 fi
8690e634 14490
c971b7fa 14491
88b48903
WN
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14494$as_echo "$gl_cv_next_math_h" >&6; }
14495 fi
14496 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 14497
88b48903
WN
14498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14500 gl_next_as_first_directive='<'math.h'>'
14501 else
14502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14503 gl_next_as_first_directive=$gl_cv_next_math_h
14504 fi
14505 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 14506
c971b7fa 14507
c971b7fa
PA
14508
14509
c971b7fa 14510
88b48903
WN
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14512$as_echo_n "checking whether NAN macro works... " >&6; }
14513if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
14514 $as_echo_n "(cached) " >&6
14515else
8690e634
JK
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h. */
88b48903 14518#include <math.h>
c971b7fa
PA
14519int
14520main ()
14521{
88b48903
WN
14522/* Solaris 10 has a broken definition of NAN. Other platforms
14523 fail to provide NAN, or provide it only in C99 mode; this
14524 test only needs to fail when NAN is provided but wrong. */
14525 float f = 1.0f;
14526#ifdef NAN
14527 f = NAN;
14528#endif
14529 return f == 0;
c971b7fa
PA
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534if ac_fn_c_try_compile "$LINENO"; then :
88b48903 14535 gl_cv_header_math_nan_works=yes
8690e634 14536else
88b48903 14537 gl_cv_header_math_nan_works=no
c971b7fa
PA
14538fi
14539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14540fi
88b48903
WN
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14542$as_echo "$gl_cv_header_math_nan_works" >&6; }
14543 if test $gl_cv_header_math_nan_works = no; then
14544 REPLACE_NAN=1
c971b7fa 14545 fi
88b48903
WN
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14547$as_echo_n "checking whether HUGE_VAL works... " >&6; }
14548if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
14549 $as_echo_n "(cached) " >&6
14550else
8690e634 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 14552/* end confdefs.h. */
88b48903 14553#include <math.h>
c971b7fa
PA
14554int
14555main ()
14556{
88b48903
WN
14557/* Solaris 10 has a broken definition of HUGE_VAL. */
14558 double d = HUGE_VAL;
14559 return d == 0;
c971b7fa
PA
14560 ;
14561 return 0;
14562}
14563_ACEOF
14564if ac_fn_c_try_compile "$LINENO"; then :
88b48903 14565 gl_cv_header_math_huge_val_works=yes
8690e634 14566else
88b48903 14567 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
14568fi
14569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14570fi
88b48903
WN
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14572$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14573 if test $gl_cv_header_math_huge_val_works = no; then
14574 REPLACE_HUGE_VAL=1
8690e634 14575 fi
c971b7fa 14576
c971b7fa 14577
88b48903
WN
14578 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
14579 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14581$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14582if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
14583 $as_echo_n "(cached) " >&6
14584else
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586/* end confdefs.h. */
88b48903 14587#include <math.h>
8690e634
JK
14588int
14589main ()
14590{
88b48903
WN
14591#undef $gl_func
14592 (void) $gl_func;
8690e634
JK
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"; then :
88b48903 14598 eval "$as_gl_Symbol=yes"
c971b7fa 14599else
88b48903 14600 eval "$as_gl_Symbol=no"
c971b7fa 14601fi
8690e634
JK
14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603fi
88b48903
WN
14604eval ac_res=\$$as_gl_Symbol
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14606$as_echo "$ac_res" >&6; }
14607 eval as_val=\$$as_gl_Symbol
14608 if test "x$as_val" = x""yes; then :
14609 cat >>confdefs.h <<_ACEOF
14610#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14611_ACEOF
c971b7fa 14612
88b48903
WN
14613 eval ac_cv_have_decl_$gl_func=yes
14614fi
14615 done
c971b7fa
PA
14616
14617
14618
14619
14620
c971b7fa 14621
c971b7fa 14622
c971b7fa 14623
c971b7fa
PA
14624
14625
c971b7fa 14626
8690e634
JK
14627
14628 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14629
14630
14631
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14633$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14634if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
14635 $as_echo_n "(cached) " >&6
14636else
8690e634
JK
14637
14638 case "$host_os" in
14639 # Guess no on AIX and OSF/1.
14640 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14641 # Guess yes otherwise.
14642 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14643 esac
14644 if test $LOCALE_JA != none; then
14645 if test "$cross_compiling" = yes; then :
14646 :
14647else
c971b7fa
PA
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h. */
c971b7fa 14650
8690e634
JK
14651#include <locale.h>
14652#include <string.h>
14653/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14654 <wchar.h>.
14655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14656 included before <wchar.h>. */
14657#include <stddef.h>
14658#include <stdio.h>
14659#include <time.h>
14660#include <wchar.h>
14661int main ()
c971b7fa 14662{
8690e634
JK
14663 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14664 {
14665 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14666 mbstate_t state;
14667 wchar_t wc;
14668
14669 memset (&state, '\0', sizeof (mbstate_t));
14670 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14671 if (mbsinit (&state))
14672 return 1;
14673 }
c971b7fa
PA
14674 return 0;
14675}
14676_ACEOF
8690e634
JK
14677if ac_fn_c_try_run "$LINENO"; then :
14678 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 14679else
8690e634 14680 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 14681fi
8690e634
JK
14682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14683 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14684fi
c971b7fa 14685
8690e634 14686 fi
c971b7fa 14687
8690e634
JK
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14690$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 14691
c971b7fa 14692
c971b7fa 14693
c971b7fa 14694
8690e634
JK
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14696$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14697if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
14698 $as_echo_n "(cached) " >&6
14699else
14700
8690e634
JK
14701 case "$host_os" in
14702 # Guess no on Solaris 8.
14703 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14704 # Guess yes otherwise.
14705 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14706 esac
14707 if test $LOCALE_ZH_CN != none; then
14708 if test "$cross_compiling" = yes; then :
14709 :
14710else
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14712/* end confdefs.h. */
14713
8690e634
JK
14714#include <locale.h>
14715#include <stdlib.h>
14716#include <string.h>
14717/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14718 <wchar.h>.
14719 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14720 included before <wchar.h>. */
14721#include <stddef.h>
14722#include <stdio.h>
14723#include <time.h>
14724#include <wchar.h>
14725int main ()
c971b7fa 14726{
8690e634
JK
14727 /* This fails on Solaris 8:
14728 mbrtowc returns 2, and sets wc to 0x00F0.
14729 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14730 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14731 {
14732 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14733 mbstate_t state;
14734 wchar_t wc;
14735
14736 memset (&state, '\0', sizeof (mbstate_t));
14737 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14738 && mbtowc (&wc, input + 3, 6) == 4)
14739 return 1;
14740 }
c971b7fa
PA
14741 return 0;
14742}
14743_ACEOF
8690e634
JK
14744if ac_fn_c_try_run "$LINENO"; then :
14745 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 14746else
8690e634 14747 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 14748fi
8690e634
JK
14749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14750 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14751fi
c971b7fa 14752
8690e634 14753 fi
c971b7fa 14754
8690e634
JK
14755fi
14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14757$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14758
14759 REPLACE_MBSTATE_T=0
14760 case "$gl_cv_func_mbrtowc_incomplete_state" in
14761 *yes) ;;
14762 *) REPLACE_MBSTATE_T=1 ;;
14763 esac
14764 case "$gl_cv_func_mbrtowc_sanitycheck" in
14765 *yes) ;;
14766 *) REPLACE_MBSTATE_T=1 ;;
14767 esac
c971b7fa 14768 else
8690e634 14769 REPLACE_MBSTATE_T=1
c971b7fa
PA
14770 fi
14771
14772
14773
8690e634
JK
14774 if test $ac_cv_func_mbrtowc = no; then
14775 HAVE_MBRTOWC=0
14776 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14777/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14778 <wchar.h>.
14779 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14780 included before <wchar.h>. */
14781#include <stddef.h>
14782#include <stdio.h>
14783#include <time.h>
14784#include <wchar.h>
c971b7fa 14785
8690e634
JK
14786"
14787if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14788 ac_have_decl=1
14789else
14790 ac_have_decl=0
c971b7fa 14791fi
c971b7fa 14792
8690e634
JK
14793cat >>confdefs.h <<_ACEOF
14794#define HAVE_DECL_MBRTOWC $ac_have_decl
14795_ACEOF
c971b7fa 14796
8690e634
JK
14797 if test $ac_cv_have_decl_mbrtowc = yes; then
14798 REPLACE_MBRTOWC=1
14799 fi
14800 else
14801 if test $REPLACE_MBSTATE_T = 1; then
14802 REPLACE_MBRTOWC=1
14803 else
c971b7fa
PA
14804
14805
14806
8690e634
JK
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14808$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14809if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
c971b7fa 14811else
c971b7fa 14812
8690e634
JK
14813 case "$host_os" in
14814 # Guess no on Solaris.
14815 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14816 # Guess yes otherwise.
14817 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14818 esac
14819 if test $LOCALE_FR_UTF8 != none; then
14820 if test "$cross_compiling" = yes; then :
14821 :
14822else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14824/* end confdefs.h. */
14825
8690e634
JK
14826#include <locale.h>
14827#include <stdlib.h>
14828#include <string.h>
14829/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14830 <wchar.h>.
14831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14832 included before <wchar.h>. */
14833#include <stddef.h>
14834#include <stdio.h>
14835#include <time.h>
14836#include <wchar.h>
14837int main ()
14838{
14839 int result = 0;
14840
14841 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14842 {
14843 char input[] = "\303\237er";
14844 mbstate_t state;
14845 wchar_t wc;
14846 size_t ret;
14847
14848 memset (&state, '\0', sizeof (mbstate_t));
14849 wc = (wchar_t) 0xBADFACE;
14850 ret = mbrtowc (&wc, input, 5, &state);
14851 if (ret != 2)
14852 result |= 1;
14853 if (!mbsinit (&state))
14854 result |= 2;
c971b7fa 14855
8690e634
JK
14856 memset (&state, '\0', sizeof (mbstate_t));
14857 ret = mbrtowc (NULL, input, 5, &state);
14858 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14859 result |= 4;
14860 if (!mbsinit (&state))
14861 result |= 8;
14862 }
14863 return result;
14864}
c971b7fa 14865_ACEOF
8690e634
JK
14866if ac_fn_c_try_run "$LINENO"; then :
14867 gl_cv_func_mbrtowc_null_arg1=yes
14868else
14869 gl_cv_func_mbrtowc_null_arg1=no
14870fi
14871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14872 conftest.$ac_objext conftest.beam conftest.$ac_ext
14873fi
c971b7fa 14874
8690e634 14875 fi
c971b7fa 14876
c971b7fa 14877fi
8690e634
JK
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14879$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 14880
c971b7fa 14881
c971b7fa 14882
c971b7fa 14883
8690e634
JK
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14885$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14886if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14887 $as_echo_n "(cached) " >&6
14888else
c971b7fa 14889
8690e634
JK
14890 case "$host_os" in
14891 # Guess no on OSF/1.
14892 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14893 # Guess yes otherwise.
14894 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14895 esac
14896 if test $LOCALE_FR_UTF8 != none; then
14897 if test "$cross_compiling" = yes; then :
c971b7fa 14898 :
8690e634
JK
14899else
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901/* end confdefs.h. */
14902
14903#include <locale.h>
14904#include <string.h>
14905/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14906 <wchar.h>.
14907 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14908 included before <wchar.h>. */
14909#include <stddef.h>
14910#include <stdio.h>
14911#include <time.h>
14912#include <wchar.h>
14913int main ()
14914{
14915 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14916 {
14917 mbstate_t state;
14918 wchar_t wc;
14919 int ret;
14920
14921 memset (&state, '\0', sizeof (mbstate_t));
14922 wc = (wchar_t) 0xBADFACE;
14923 mbrtowc (&wc, NULL, 5, &state);
14924 /* Check that wc was not modified. */
14925 if (wc != (wchar_t) 0xBADFACE)
14926 return 1;
14927 }
14928 return 0;
14929}
14930_ACEOF
14931if ac_fn_c_try_run "$LINENO"; then :
14932 gl_cv_func_mbrtowc_null_arg2=yes
14933else
14934 gl_cv_func_mbrtowc_null_arg2=no
14935fi
14936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14937 conftest.$ac_objext conftest.beam conftest.$ac_ext
14938fi
14939
14940 fi
14941
14942fi
14943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14944$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
14945
14946
14947
14948
14949
14950
8690e634
JK
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14952$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14953if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14954 $as_echo_n "(cached) " >&6
14955else
14956
14957 case "$host_os" in
14958 # Guess no on HP-UX, Solaris, native Windows.
14959 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14960 # Guess yes otherwise.
14961 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14962 esac
14963 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14964 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14965 if test "$cross_compiling" = yes; then :
c971b7fa 14966 :
8690e634
JK
14967else
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969/* end confdefs.h. */
c971b7fa 14970
8690e634
JK
14971#include <locale.h>
14972#include <string.h>
14973/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14974 <wchar.h>.
14975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14976 included before <wchar.h>. */
14977#include <stddef.h>
14978#include <stdio.h>
14979#include <time.h>
14980#include <wchar.h>
14981int main ()
14982{
14983 int result = 0;
14984 int found_some_locale = 0;
14985 /* This fails on Solaris. */
14986 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14987 {
14988 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14989 mbstate_t state;
14990 wchar_t wc;
14991
14992 memset (&state, '\0', sizeof (mbstate_t));
14993 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14994 {
14995 input[1] = '\0';
14996 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14997 result |= 1;
14998 }
14999 found_some_locale = 1;
15000 }
15001 /* This fails on HP-UX 11.11. */
15002 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15003 {
15004 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15005 mbstate_t state;
15006 wchar_t wc;
15007
15008 memset (&state, '\0', sizeof (mbstate_t));
15009 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15010 {
15011 input[1] = '\0';
15012 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15013 result |= 2;
15014 }
15015 found_some_locale = 1;
15016 }
15017 /* This fails on native Windows. */
15018 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15019 {
15020 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15021 mbstate_t state;
15022 wchar_t wc;
15023
15024 memset (&state, '\0', sizeof (mbstate_t));
15025 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15026 {
15027 input[3] = '\0';
15028 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15029 result |= 4;
15030 }
15031 found_some_locale = 1;
15032 }
15033 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15034 {
15035 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15036 mbstate_t state;
15037 wchar_t wc;
15038
15039 memset (&state, '\0', sizeof (mbstate_t));
15040 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15041 {
15042 input[3] = '\0';
15043 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15044 result |= 8;
15045 }
15046 found_some_locale = 1;
15047 }
15048 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15049 {
15050 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15051 mbstate_t state;
15052 wchar_t wc;
15053
15054 memset (&state, '\0', sizeof (mbstate_t));
15055 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15056 {
15057 input[3] = '\0';
15058 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15059 result |= 16;
15060 }
15061 found_some_locale = 1;
15062 }
15063 return (found_some_locale ? result : 77);
15064}
15065_ACEOF
15066if ac_fn_c_try_run "$LINENO"; then :
15067 gl_cv_func_mbrtowc_retval=yes
15068else
15069 if test $? != 77; then
15070 gl_cv_func_mbrtowc_retval=no
15071 fi
c971b7fa 15072
8690e634
JK
15073fi
15074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15075 conftest.$ac_objext conftest.beam conftest.$ac_ext
15076fi
c971b7fa 15077
8690e634 15078 fi
c971b7fa 15079
8690e634
JK
15080fi
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15082$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
15083
15084
15085
15086
8690e634
JK
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15088$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15089if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
15090 $as_echo_n "(cached) " >&6
15091else
8690e634
JK
15092
15093 case "$host_os" in
15094 # Guess no on Solaris 8 and 9.
15095 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15096 # Guess yes otherwise.
15097 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15098 esac
15099 if test $LOCALE_ZH_CN != none; then
15100 if test "$cross_compiling" = yes; then :
15101 :
c971b7fa
PA
15102else
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h. */
15105
8690e634 15106#include <locale.h>
c971b7fa 15107#include <string.h>
8690e634
JK
15108/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15109 <wchar.h>.
15110 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15111 included before <wchar.h>. */
15112#include <stddef.h>
15113#include <stdio.h>
15114#include <time.h>
15115#include <wchar.h>
15116int main ()
c971b7fa 15117{
8690e634
JK
15118 /* This fails on Solaris 8 and 9. */
15119 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 15120 {
8690e634
JK
15121 mbstate_t state;
15122 wchar_t wc;
c971b7fa 15123
8690e634
JK
15124 memset (&state, '\0', sizeof (mbstate_t));
15125 if (mbrtowc (&wc, "", 1, &state) != 0)
15126 return 1;
15127 }
c971b7fa
PA
15128 return 0;
15129}
15130_ACEOF
15131if ac_fn_c_try_run "$LINENO"; then :
8690e634 15132 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 15133else
8690e634 15134 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
15135fi
15136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15137 conftest.$ac_objext conftest.beam conftest.$ac_ext
15138fi
15139
8690e634
JK
15140 fi
15141
c971b7fa 15142fi
8690e634
JK
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15144$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15145
4a626d0a
PA
15146
15147
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15149$as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15150if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15152else
15153
15154 case "$host_os" in
15155 # Guess no on AIX and glibc systems.
15156 aix* | *-gnu*)
15157 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15158 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15159 esac
15160 if test "$cross_compiling" = yes; then :
15161 :
15162else
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h. */
15165
15166 #include <wchar.h>
15167 static wchar_t wc;
15168 static mbstate_t mbs;
15169 int
15170 main (void)
15171 {
15172 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15173 }
15174_ACEOF
15175if ac_fn_c_try_run "$LINENO"; then :
15176 gl_cv_func_mbrtowc_empty_input=no
15177else
15178 gl_cv_func_mbrtowc_empty_input=yes
15179fi
15180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15181 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182fi
15183
15184
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15187$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15188
8690e634
JK
15189 case "$gl_cv_func_mbrtowc_null_arg1" in
15190 *yes) ;;
15191 *)
15192$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15193
15194 REPLACE_MBRTOWC=1
15195 ;;
15196 esac
15197 case "$gl_cv_func_mbrtowc_null_arg2" in
15198 *yes) ;;
15199 *)
15200$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15201
15202 REPLACE_MBRTOWC=1
15203 ;;
15204 esac
15205 case "$gl_cv_func_mbrtowc_retval" in
15206 *yes) ;;
15207 *)
15208$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15209
15210 REPLACE_MBRTOWC=1
15211 ;;
15212 esac
15213 case "$gl_cv_func_mbrtowc_nul_retval" in
15214 *yes) ;;
15215 *)
15216$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15217
4a626d0a
PA
15218 REPLACE_MBRTOWC=1
15219 ;;
15220 esac
15221 case "$gl_cv_func_mbrtowc_empty_input" in
15222 *yes) ;;
15223 *)
15224$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15225
8690e634
JK
15226 REPLACE_MBRTOWC=1
15227 ;;
15228 esac
c971b7fa
PA
15229 fi
15230 fi
15231
a512b375 15232 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 15233
c971b7fa 15234
c971b7fa
PA
15235
15236
15237
15238
15239
15240
8690e634
JK
15241 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15242
15243
15244 :
c971b7fa 15245
a512b375 15246 fi
c971b7fa 15247
8690e634
JK
15248
15249
15250
15251
15252 GNULIB_MBRTOWC=1
15253
15254
15255
15256
15257
15258$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
c971b7fa 15271
c971b7fa 15272
8690e634 15273 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 15274
8690e634
JK
15275
15276
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15278$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15279if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15281else
15282
15283 case "$host_os" in
15284 # Guess no on AIX and OSF/1.
15285 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15286 # Guess yes otherwise.
15287 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15288 esac
15289 if test $LOCALE_JA != none; then
15290 if test "$cross_compiling" = yes; then :
15291 :
c971b7fa
PA
15292else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h. */
15295
8690e634
JK
15296#include <locale.h>
15297#include <string.h>
15298/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15299 <wchar.h>.
15300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15301 included before <wchar.h>. */
15302#include <stddef.h>
15303#include <stdio.h>
15304#include <time.h>
15305#include <wchar.h>
15306int main ()
c971b7fa 15307{
8690e634 15308 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 15309 {
8690e634
JK
15310 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15311 mbstate_t state;
15312 wchar_t wc;
15313
15314 memset (&state, '\0', sizeof (mbstate_t));
15315 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15316 if (mbsinit (&state))
15317 return 1;
c971b7fa 15318 }
c971b7fa
PA
15319 return 0;
15320}
15321_ACEOF
15322if ac_fn_c_try_run "$LINENO"; then :
8690e634 15323 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 15324else
8690e634 15325 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
15326fi
15327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15328 conftest.$ac_objext conftest.beam conftest.$ac_ext
15329fi
15330
8690e634 15331 fi
c971b7fa
PA
15332
15333fi
8690e634
JK
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15335$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
15336
15337
c971b7fa
PA
15338
15339
8690e634
JK
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15341$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15342if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
15343 $as_echo_n "(cached) " >&6
15344else
8690e634
JK
15345
15346 case "$host_os" in
15347 # Guess no on Solaris 8.
15348 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15349 # Guess yes otherwise.
15350 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15351 esac
15352 if test $LOCALE_ZH_CN != none; then
15353 if test "$cross_compiling" = yes; then :
15354 :
15355else
c971b7fa
PA
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h. */
8690e634
JK
15358
15359#include <locale.h>
15360#include <stdlib.h>
15361#include <string.h>
15362/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15363 <wchar.h>.
15364 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15365 included before <wchar.h>. */
c971b7fa 15366#include <stddef.h>
8690e634
JK
15367#include <stdio.h>
15368#include <time.h>
15369#include <wchar.h>
15370int main ()
c971b7fa 15371{
8690e634
JK
15372 /* This fails on Solaris 8:
15373 mbrtowc returns 2, and sets wc to 0x00F0.
15374 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15375 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15376 {
15377 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15378 mbstate_t state;
15379 wchar_t wc;
15380
15381 memset (&state, '\0', sizeof (mbstate_t));
15382 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15383 && mbtowc (&wc, input + 3, 6) == 4)
15384 return 1;
15385 }
c971b7fa
PA
15386 return 0;
15387}
15388_ACEOF
8690e634
JK
15389if ac_fn_c_try_run "$LINENO"; then :
15390 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 15391else
8690e634 15392 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 15393fi
8690e634
JK
15394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15395 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15396fi
c971b7fa 15397
8690e634
JK
15398 fi
15399
15400fi
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15402$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 15403
8690e634
JK
15404 REPLACE_MBSTATE_T=0
15405 case "$gl_cv_func_mbrtowc_incomplete_state" in
15406 *yes) ;;
15407 *) REPLACE_MBSTATE_T=1 ;;
15408 esac
15409 case "$gl_cv_func_mbrtowc_sanitycheck" in
15410 *yes) ;;
15411 *) REPLACE_MBSTATE_T=1 ;;
15412 esac
15413 else
15414 REPLACE_MBSTATE_T=1
c971b7fa
PA
15415 fi
15416
c971b7fa 15417
8690e634 15418
8690e634
JK
15419 if test $ac_cv_func_mbsinit = no; then
15420 HAVE_MBSINIT=0
15421 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15422/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15423 <wchar.h>.
15424 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15425 included before <wchar.h>. */
15426#include <stddef.h>
15427#include <stdio.h>
15428#include <time.h>
15429#include <wchar.h>
15430
15431"
15432if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15433 ac_have_decl=1
15434else
15435 ac_have_decl=0
c971b7fa 15436fi
c971b7fa 15437
8690e634
JK
15438cat >>confdefs.h <<_ACEOF
15439#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 15440_ACEOF
c971b7fa 15441
8690e634
JK
15442 if test $ac_cv_have_decl_mbsinit = yes; then
15443 REPLACE_MBSINIT=1
15444 fi
15445 else
15446 if test $REPLACE_MBSTATE_T = 1; then
15447 REPLACE_MBSINIT=1
15448 else
15449 case "$host_os" in
15450 mingw*) REPLACE_MBSINIT=1 ;;
15451 esac
15452 fi
15453 fi
c971b7fa 15454
a512b375 15455 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
15456
15457
15458
15459
15460
15461
15462
15463
8690e634 15464 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
15465
15466
8690e634 15467 :
c971b7fa 15468
a512b375 15469 fi
c971b7fa 15470
c971b7fa 15471
c971b7fa 15472
c971b7fa
PA
15473
15474
8690e634 15475 GNULIB_MBSINIT=1
c971b7fa 15476
c971b7fa
PA
15477
15478
15479
15480
8690e634 15481$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
15482
15483
c971b7fa 15484
c971b7fa 15485
c971b7fa
PA
15486
15487
15488
c971b7fa 15489
c971b7fa
PA
15490
15491
15492
15493
8690e634
JK
15494
15495 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
15496
15497
15498
8690e634
JK
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15500$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15501if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15503else
c971b7fa 15504
8690e634
JK
15505 case "$host_os" in
15506 # Guess no on AIX and OSF/1.
15507 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15508 # Guess yes otherwise.
15509 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 15510 esac
8690e634
JK
15511 if test $LOCALE_JA != none; then
15512 if test "$cross_compiling" = yes; then :
15513 :
15514else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 15516/* end confdefs.h. */
c971b7fa 15517
8690e634
JK
15518#include <locale.h>
15519#include <string.h>
15520/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15521 <wchar.h>.
15522 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15523 included before <wchar.h>. */
15524#include <stddef.h>
15525#include <stdio.h>
15526#include <time.h>
15527#include <wchar.h>
15528int main ()
15529{
15530 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15531 {
15532 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15533 mbstate_t state;
15534 wchar_t wc;
15535
15536 memset (&state, '\0', sizeof (mbstate_t));
15537 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15538 if (mbsinit (&state))
15539 return 1;
15540 }
c971b7fa
PA
15541 return 0;
15542}
15543_ACEOF
8690e634
JK
15544if ac_fn_c_try_run "$LINENO"; then :
15545 gl_cv_func_mbrtowc_incomplete_state=yes
15546else
15547 gl_cv_func_mbrtowc_incomplete_state=no
15548fi
15549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15550 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15551fi
c971b7fa 15552
8690e634 15553 fi
c971b7fa 15554
8690e634
JK
15555fi
15556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15557$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 15558
8690e634
JK
15559
15560
15561
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15563$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15564if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
15565 $as_echo_n "(cached) " >&6
15566else
8690e634
JK
15567
15568 case "$host_os" in
15569 # Guess no on Solaris 8.
15570 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15571 # Guess yes otherwise.
15572 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15573 esac
15574 if test $LOCALE_ZH_CN != none; then
15575 if test "$cross_compiling" = yes; then :
15576 :
15577else
c971b7fa
PA
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579/* end confdefs.h. */
c971b7fa 15580
8690e634
JK
15581#include <locale.h>
15582#include <stdlib.h>
15583#include <string.h>
15584/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15585 <wchar.h>.
15586 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15587 included before <wchar.h>. */
15588#include <stddef.h>
15589#include <stdio.h>
15590#include <time.h>
15591#include <wchar.h>
15592int main ()
c971b7fa 15593{
8690e634
JK
15594 /* This fails on Solaris 8:
15595 mbrtowc returns 2, and sets wc to 0x00F0.
15596 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15597 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15598 {
15599 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15600 mbstate_t state;
15601 wchar_t wc;
15602
15603 memset (&state, '\0', sizeof (mbstate_t));
15604 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15605 && mbtowc (&wc, input + 3, 6) == 4)
15606 return 1;
15607 }
c971b7fa
PA
15608 return 0;
15609}
15610_ACEOF
8690e634
JK
15611if ac_fn_c_try_run "$LINENO"; then :
15612 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 15613else
8690e634 15614 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 15615fi
8690e634
JK
15616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15617 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15618fi
8690e634
JK
15619
15620 fi
15621
15622fi
15623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15624$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15625
15626 REPLACE_MBSTATE_T=0
15627 case "$gl_cv_func_mbrtowc_incomplete_state" in
15628 *yes) ;;
15629 *) REPLACE_MBSTATE_T=1 ;;
15630 esac
15631 case "$gl_cv_func_mbrtowc_sanitycheck" in
15632 *yes) ;;
15633 *) REPLACE_MBSTATE_T=1 ;;
15634 esac
c971b7fa 15635 else
8690e634 15636 REPLACE_MBSTATE_T=1
c971b7fa
PA
15637 fi
15638
15639
c971b7fa 15640
8690e634
JK
15641 if test $ac_cv_func_mbsrtowcs = no; then
15642 HAVE_MBSRTOWCS=0
15643 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15644/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15645 <wchar.h>.
15646 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15647 included before <wchar.h>. */
15648#include <stddef.h>
15649#include <stdio.h>
15650#include <time.h>
15651#include <wchar.h>
15652
15653"
15654if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15655 ac_have_decl=1
c971b7fa 15656else
8690e634 15657 ac_have_decl=0
c971b7fa 15658fi
c971b7fa 15659
8690e634
JK
15660cat >>confdefs.h <<_ACEOF
15661#define HAVE_DECL_MBSRTOWCS $ac_have_decl
15662_ACEOF
c971b7fa 15663
8690e634
JK
15664 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15665 REPLACE_MBSRTOWCS=1
15666 fi
c971b7fa 15667 else
8690e634
JK
15668 if test $REPLACE_MBSTATE_T = 1; then
15669 REPLACE_MBSRTOWCS=1
15670 else
c971b7fa 15671
8690e634
JK
15672
15673
15674
15675
15676
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15678$as_echo_n "checking whether mbsrtowcs works... " >&6; }
15679if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
15680 $as_echo_n "(cached) " >&6
15681else
8690e634
JK
15682
15683 case "$host_os" in
15684 # Guess no on HP-UX, Solaris, mingw.
15685 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15686 # Guess yes otherwise.
15687 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15688 esac
15689 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15690 if test "$cross_compiling" = yes; then :
15691 :
15692else
c971b7fa
PA
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h. */
c971b7fa 15695
8690e634
JK
15696#include <locale.h>
15697#include <string.h>
15698/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15699 <wchar.h>.
15700 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15701 included before <wchar.h>. */
15702#include <stddef.h>
15703#include <stdio.h>
15704#include <time.h>
15705#include <wchar.h>
15706int main ()
c971b7fa 15707{
8690e634
JK
15708 int result = 0;
15709 /* Test whether the function supports a NULL destination argument.
15710 This fails on native Windows. */
15711 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15712 {
15713 const char input[] = "\337er";
15714 const char *src = input;
15715 mbstate_t state;
c971b7fa 15716
8690e634
JK
15717 memset (&state, '\0', sizeof (mbstate_t));
15718 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15719 || src != input)
15720 result |= 1;
15721 }
15722 /* Test whether the function works when started with a conversion state
15723 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15724 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15725 {
15726 const char input[] = "B\303\274\303\237er";
15727 mbstate_t state;
15728
15729 memset (&state, '\0', sizeof (mbstate_t));
15730 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15731 if (!mbsinit (&state))
15732 {
15733 const char *src = input + 2;
15734 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15735 result |= 2;
15736 }
15737 }
15738 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15739 {
15740 const char input[] = "<\306\374\313\334\270\354>";
15741 mbstate_t state;
15742
15743 memset (&state, '\0', sizeof (mbstate_t));
15744 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15745 if (!mbsinit (&state))
15746 {
15747 const char *src = input + 4;
15748 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15749 result |= 4;
15750 }
15751 }
15752 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15753 {
15754 const char input[] = "B\250\271\201\060\211\070er";
15755 mbstate_t state;
15756
15757 memset (&state, '\0', sizeof (mbstate_t));
15758 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15759 if (!mbsinit (&state))
15760 {
15761 const char *src = input + 2;
15762 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15763 result |= 8;
15764 }
15765 }
15766 return result;
c971b7fa
PA
15767}
15768_ACEOF
8690e634
JK
15769if ac_fn_c_try_run "$LINENO"; then :
15770 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 15771else
8690e634 15772 gl_cv_func_mbsrtowcs_works=no
c971b7fa 15773fi
8690e634
JK
15774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15775 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15776fi
8690e634
JK
15777
15778 fi
15779
15780fi
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15782$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15783
15784 case "$gl_cv_func_mbsrtowcs_works" in
15785 *yes) ;;
15786 *) REPLACE_MBSRTOWCS=1 ;;
15787 esac
15788 fi
c971b7fa
PA
15789 fi
15790
a512b375 15791 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 15792
c971b7fa 15793
c971b7fa 15794
c971b7fa 15795
c971b7fa 15796
c971b7fa 15797
c971b7fa
PA
15798
15799
8690e634
JK
15800 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15811
15812
15813 :
15814
a512b375 15815 fi
8690e634
JK
15816
15817
15818
15819
15820
15821 GNULIB_MBSRTOWCS=1
15822
15823
15824
15825
15826
15827$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
15828
15829
15830
15831
a512b375 15832 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
15833
15834
15835
15836
15837
15838
15839
15840
15841 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15842
15843
15844 for ac_header in bp-sym.h
15845do :
15846 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15847if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15848 cat >>confdefs.h <<_ACEOF
15849#define HAVE_BP_SYM_H 1
15850_ACEOF
15851
15852fi
15853
15854done
15855
15856
a512b375 15857 fi
c971b7fa
PA
15858
15859
15860
15861
15862
15863 GNULIB_MEMCHR=1
15864
15865
15866
15867
15868
15869$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15870
15871
15872
15873
15874
15875 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15877$as_echo_n "checking whether memmem works in linear time... " >&6; }
15878if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880else
15881 if test "$cross_compiling" = yes; then :
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883/* end confdefs.h. */
15884
15885#include <features.h>
15886#ifdef __GNU_LIBRARY__
15887 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15888 && !defined __UCLIBC__
15889 Lucky user
15890 #endif
15891#endif
15892#ifdef __CYGWIN__
15893 #include <cygwin/version.h>
15894 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15895 Lucky user
15896 #endif
15897#endif
15898
15899_ACEOF
15900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15901 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
15902 gl_cv_func_memmem_works_fast="guessing yes"
15903else
15904 gl_cv_func_memmem_works_fast="guessing no"
15905fi
15906rm -f conftest*
15907
15908
15909else
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h. */
15912
15913#include <signal.h> /* for signal */
15914#include <string.h> /* for memmem */
15915#include <stdlib.h> /* for malloc */
15916#include <unistd.h> /* for alarm */
15917static void quit (int sig) { exit (sig + 128); }
15918
15919int
15920main ()
15921{
15922
15923 int result = 0;
15924 size_t m = 1000000;
15925 char *haystack = (char *) malloc (2 * m + 1);
15926 char *needle = (char *) malloc (m + 1);
15927 /* Failure to compile this test due to missing alarm is okay,
15928 since all such platforms (mingw) also lack memmem. */
15929 signal (SIGALRM, quit);
15930 alarm (5);
15931 /* Check for quadratic performance. */
15932 if (haystack && needle)
15933 {
15934 memset (haystack, 'A', 2 * m);
15935 haystack[2 * m] = 'B';
15936 memset (needle, 'A', m);
15937 needle[m] = 'B';
15938 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15939 result |= 1;
15940 }
15941 return result;
15942
15943 ;
15944 return 0;
15945}
15946_ACEOF
15947if ac_fn_c_try_run "$LINENO"; then :
15948 gl_cv_func_memmem_works_fast=yes
15949else
15950 gl_cv_func_memmem_works_fast=no
15951fi
15952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15953 conftest.$ac_objext conftest.beam conftest.$ac_ext
15954fi
15955
15956
15957fi
15958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15959$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15960 case "$gl_cv_func_memmem_works_fast" in
15961 *yes) ;;
15962 *)
15963 REPLACE_MEMMEM=1
15964 ;;
15965 esac
15966 fi
15967
15968 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15969
15970
15971
15972
15973
15974
15975
15976
15977 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15978
15979 fi
15980
15981
15982
15983
15984 for ac_func in memmem
15985do :
15986 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15987if test "x$ac_cv_func_memmem" = x""yes; then :
15988 cat >>confdefs.h <<_ACEOF
15989#define HAVE_MEMMEM 1
15990_ACEOF
15991
15992fi
15993done
15994
15995 if test $ac_cv_func_memmem = yes; then
15996 HAVE_MEMMEM=1
15997 else
15998 HAVE_MEMMEM=0
15999 fi
16000
16001 if test $ac_cv_have_decl_memmem = no; then
16002 HAVE_DECL_MEMMEM=0
16003 else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16005$as_echo_n "checking whether memmem works... " >&6; }
16006if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16007 $as_echo_n "(cached) " >&6
16008else
16009 if test "$cross_compiling" = yes; then :
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011/* end confdefs.h. */
16012
16013#ifdef __GNU_LIBRARY__
16014 #include <features.h>
16015 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16016 || __GLIBC_MINOR__ > 12)) \
16017 || (__GLIBC__ > 2)) \
16018 || defined __UCLIBC__
16019 Lucky user
16020 #endif
16021#elif defined __CYGWIN__
16022 #include <cygwin/version.h>
16023 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16024 Lucky user
16025 #endif
16026#else
16027 Lucky user
16028#endif
16029
16030_ACEOF
16031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16032 $EGREP "Lucky user" >/dev/null 2>&1; then :
16033 gl_cv_func_memmem_works_always="guessing yes"
16034else
16035 gl_cv_func_memmem_works_always="guessing no"
16036fi
16037rm -f conftest*
16038
16039
16040else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h. */
16043
16044#include <string.h> /* for memmem */
16045#define P "_EF_BF_BD"
16046#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16047#define NEEDLE P P P P P
16048
16049int
16050main ()
16051{
16052
16053 int result = 0;
16054 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16055 result |= 1;
16056 /* Check for empty needle behavior. */
16057 {
16058 const char *haystack = "AAA";
16059 if (memmem (haystack, 3, NULL, 0) != haystack)
16060 result |= 2;
16061 }
16062 return result;
16063
16064 ;
16065 return 0;
16066}
16067_ACEOF
16068if ac_fn_c_try_run "$LINENO"; then :
16069 gl_cv_func_memmem_works_always=yes
16070else
16071 gl_cv_func_memmem_works_always=no
16072fi
16073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16074 conftest.$ac_objext conftest.beam conftest.$ac_ext
16075fi
16076
16077
16078fi
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16080$as_echo "$gl_cv_func_memmem_works_always" >&6; }
16081 case "$gl_cv_func_memmem_works_always" in
16082 *yes) ;;
16083 *)
16084 REPLACE_MEMMEM=1
16085 ;;
16086 esac
16087 fi
16088 :
16089
16090 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16091
16092
16093
16094
16095
16096
16097
16098
16099 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16100
16101 fi
16102
16103
16104
16105
16106
16107 GNULIB_MEMMEM=1
16108
16109
16110
16111
16112
16113$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16114
16115
16116
16117
16118
16119
16120
16121
2196f55f
YQ
16122
16123
16124 if test $ac_cv_func_readlink = no; then
16125 HAVE_READLINK=0
16126 else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16128$as_echo_n "checking whether readlink signature is correct... " >&6; }
16129if test "${gl_cv_decl_readlink_works+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16131else
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133/* end confdefs.h. */
16134#include <unistd.h>
16135 /* Cause compilation failure if original declaration has wrong type. */
16136 ssize_t readlink (const char *, char *, size_t);
16137int
16138main ()
16139{
16140
16141 ;
16142 return 0;
16143}
16144_ACEOF
16145if ac_fn_c_try_compile "$LINENO"; then :
16146 gl_cv_decl_readlink_works=yes
16147else
16148 gl_cv_decl_readlink_works=no
16149fi
16150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151fi
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16153$as_echo "$gl_cv_decl_readlink_works" >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16155$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16156if test "${gl_cv_func_readlink_works+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16158else
16159 # We have readlink, so assume ln -s works.
16160 ln -s conftest.no-such conftest.link
16161 ln -s conftest.link conftest.lnk2
16162 if test "$cross_compiling" = yes; then :
16163 case "$host_os" in
16164 # Guess yes on glibc systems.
16165 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16166 # If we don't know, assume the worst.
16167 *) gl_cv_func_readlink_works="guessing no" ;;
16168 esac
16169
16170else
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172/* end confdefs.h. */
16173#include <unistd.h>
16174
16175int
16176main ()
16177{
16178char buf[20];
16179 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16180 ;
16181 return 0;
16182}
16183_ACEOF
16184if ac_fn_c_try_run "$LINENO"; then :
16185 gl_cv_func_readlink_works=yes
16186else
16187 gl_cv_func_readlink_works=no
16188fi
16189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16190 conftest.$ac_objext conftest.beam conftest.$ac_ext
16191fi
16192
16193 rm -f conftest.link conftest.lnk2
16194fi
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16196$as_echo "$gl_cv_func_readlink_works" >&6; }
16197 case "$gl_cv_func_readlink_works" in
16198 *yes)
16199 if test "$gl_cv_decl_readlink_works" != yes; then
16200 REPLACE_READLINK=1
16201 fi
16202 ;;
16203 *)
16204
16205$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16206
16207 REPLACE_READLINK=1
16208 ;;
16209 esac
16210 fi
16211
16212 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16213
16214
16215
16216
16217
16218
16219
16220
16221 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16222
16223
16224 :
16225
16226 fi
16227
16228
16229
16230
16231
16232 GNULIB_READLINK=1
16233
16234
16235
16236
16237
16238$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16239
16240
16241
16242
6a29c58e
YQ
16243
16244
16245
16246
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16248$as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16249if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16250 $as_echo_n "(cached) " >&6
16251else
16252 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16253 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16254 as_fn_error "cannot create temporary files" "$LINENO" 5
16255 # Assume that if we have lstat, we can also check symlinks.
16256 if test $ac_cv_func_lstat = yes; then
16257 ln -s conftest.f conftest.lnk
16258 fi
16259 if test "$cross_compiling" = yes; then :
16260 case "$host_os" in
16261 # Guess yes on glibc systems.
16262 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16263 # If we don't know, assume the worst.
16264 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16265 esac
16266
16267else
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269/* end confdefs.h. */
16270
16271# include <stdio.h>
16272# include <stdlib.h>
16273
16274int
16275main ()
16276{
16277int result = 0;
16278 if (rename ("conftest.f1", "conftest.f2/") == 0)
16279 result |= 1;
16280 if (rename ("conftest.d1", "conftest.d2/") != 0)
16281 result |= 2;
16282#if HAVE_LSTAT
16283 if (rename ("conftest.f", "conftest.lnk/") == 0)
16284 result |= 4;
16285#endif
16286 return result;
16287
16288 ;
16289 return 0;
16290}
16291_ACEOF
16292if ac_fn_c_try_run "$LINENO"; then :
16293 gl_cv_func_rename_slash_dst_works=yes
16294else
16295 gl_cv_func_rename_slash_dst_works=no
16296fi
16297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16298 conftest.$ac_objext conftest.beam conftest.$ac_ext
16299fi
16300
16301 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16302
16303fi
16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16305$as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16306 case "$gl_cv_func_rename_slash_dst_works" in
16307 *yes) ;;
16308 *)
16309 REPLACE_RENAME=1
16310
16311$as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16312
16313 ;;
16314 esac
16315
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16317$as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16318if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16319 $as_echo_n "(cached) " >&6
16320else
16321 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16322 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16323 as_fn_error "cannot create temporary files" "$LINENO" 5
16324 # Assume that if we have lstat, we can also check symlinks.
16325 if test $ac_cv_func_lstat = yes; then
16326 ln -s conftest.f conftest.lnk
16327 fi
16328 if test "$cross_compiling" = yes; then :
16329 case "$host_os" in
16330 # Guess yes on glibc systems.
16331 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16332 # If we don't know, assume the worst.
16333 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16334 esac
16335
16336else
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338/* end confdefs.h. */
16339
16340# include <stdio.h>
16341# include <stdlib.h>
16342
16343int
16344main ()
16345{
16346int result = 0;
16347 if (rename ("conftest.f1/", "conftest.d3") == 0)
16348 result |= 1;
16349 if (rename ("conftest.d1/", "conftest.d2") != 0)
16350 result |= 2;
16351#if HAVE_LSTAT
16352 if (rename ("conftest.lnk/", "conftest.f") == 0)
16353 result |= 4;
16354#endif
16355 return result;
16356
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361if ac_fn_c_try_run "$LINENO"; then :
16362 gl_cv_func_rename_slash_src_works=yes
16363else
16364 gl_cv_func_rename_slash_src_works=no
16365fi
16366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16367 conftest.$ac_objext conftest.beam conftest.$ac_ext
16368fi
16369
16370 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16371
16372fi
16373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16374$as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16375 case "$gl_cv_func_rename_slash_src_works" in
16376 *yes) ;;
16377 *)
16378 REPLACE_RENAME=1
16379
16380$as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16381
16382 ;;
16383 esac
16384
16385
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16387$as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16388if test "${gl_cv_func_rename_link_works+set}" = set; then :
16389 $as_echo_n "(cached) " >&6
16390else
16391 if test $ac_cv_func_link = yes; then
16392 rm -rf conftest.f conftest.f1
16393 if touch conftest.f && ln conftest.f conftest.f1 &&
16394 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
16395 if test "$cross_compiling" = yes; then :
16396 case "$host_os" in
16397 # Guess yes on glibc systems.
16398 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16399 # If we don't know, assume the worst.
16400 *) gl_cv_func_rename_link_works="guessing no" ;;
16401 esac
16402
16403else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405/* end confdefs.h. */
16406
16407# include <stdio.h>
16408# include <stdlib.h>
16409# include <unistd.h>
16410
16411int
16412main ()
16413{
16414int result = 0;
16415 if (rename ("conftest.f", "conftest.f1"))
16416 result |= 1;
16417 if (unlink ("conftest.f1"))
16418 result |= 2;
16419 if (rename ("conftest.f", "conftest.f"))
16420 result |= 4;
16421 if (rename ("conftest.f1", "conftest.f1") == 0)
16422 result |= 8;
16423 return result;
16424
16425 ;
16426 return 0;
16427}
16428_ACEOF
16429if ac_fn_c_try_run "$LINENO"; then :
16430 gl_cv_func_rename_link_works=yes
16431else
16432 gl_cv_func_rename_link_works=no
16433fi
16434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16435 conftest.$ac_objext conftest.beam conftest.$ac_ext
16436fi
16437
16438 else
16439 gl_cv_func_rename_link_works="guessing no"
16440 fi
16441 rm -rf conftest.f conftest.f1
16442 else
16443 gl_cv_func_rename_link_works=yes
16444 fi
16445
16446fi
16447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16448$as_echo "$gl_cv_func_rename_link_works" >&6; }
16449 case "$gl_cv_func_rename_link_works" in
16450 *yes) ;;
16451 *)
16452 REPLACE_RENAME=1
16453
16454$as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16455
16456 ;;
16457 esac
16458
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16460$as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16461if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16463else
16464 rm -rf conftest.f conftest.d1 conftest.d2
16465 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16466 as_fn_error "cannot create temporary files" "$LINENO" 5
16467 if test "$cross_compiling" = yes; then :
16468 case "$host_os" in
16469 # Guess yes on glibc systems.
16470 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16471 # If we don't know, assume the worst.
16472 *) gl_cv_func_rename_dest_works="guessing no" ;;
16473 esac
16474
16475else
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477/* end confdefs.h. */
16478
16479# include <stdio.h>
16480# include <stdlib.h>
16481
16482int
16483main ()
16484{
16485int result = 0;
16486 if (rename ("conftest.d1", "conftest.d2") != 0)
16487 result |= 1;
16488 if (rename ("conftest.d2", "conftest.f") == 0)
16489 result |= 2;
16490 return result;
16491
16492 ;
16493 return 0;
16494}
16495_ACEOF
16496if ac_fn_c_try_run "$LINENO"; then :
16497 gl_cv_func_rename_dest_works=yes
16498else
16499 gl_cv_func_rename_dest_works=no
16500fi
16501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502 conftest.$ac_objext conftest.beam conftest.$ac_ext
16503fi
16504
16505 rm -rf conftest.f conftest.d1 conftest.d2
16506
16507fi
16508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16509$as_echo "$gl_cv_func_rename_dest_works" >&6; }
16510 case "$gl_cv_func_rename_dest_works" in
16511 *yes) ;;
16512 *)
16513 REPLACE_RENAME=1
16514
16515$as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16516
16517 ;;
16518 esac
16519
16520 if test $REPLACE_RENAME = 1; then
16521
16522
16523
16524
16525
16526
16527
16528
16529 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16530
16531 fi
16532
16533
16534
16535
16536
16537 GNULIB_RENAME=1
16538
16539
16540
16541
16542
16543$as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16544
16545
16546
16547
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16551$as_echo_n "checking whether rmdir works... " >&6; }
16552if test "${gl_cv_func_rmdir_works+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16554else
16555 mkdir conftest.dir
16556 touch conftest.file
16557 if test "$cross_compiling" = yes; then :
16558 case "$host_os" in
16559 # Guess yes on glibc systems.
16560 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16561 # If we don't know, assume the worst.
16562 *) gl_cv_func_rmdir_works="guessing no" ;;
16563 esac
16564
16565else
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h. */
16568#include <stdio.h>
16569 #include <errno.h>
16570 #if HAVE_UNISTD_H
16571 # include <unistd.h>
16572 #else /* on Windows with MSVC */
16573 # include <direct.h>
16574 #endif
16575
16576int
16577main ()
16578{
16579int result = 0;
16580 if (!rmdir ("conftest.file/"))
16581 result |= 1;
16582 else if (errno != ENOTDIR)
16583 result |= 2;
16584 if (!rmdir ("conftest.dir/./"))
16585 result |= 4;
16586 return result;
16587
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592if ac_fn_c_try_run "$LINENO"; then :
16593 gl_cv_func_rmdir_works=yes
16594else
16595 gl_cv_func_rmdir_works=no
16596fi
16597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16598 conftest.$ac_objext conftest.beam conftest.$ac_ext
16599fi
16600
16601 rm -rf conftest.dir conftest.file
16602fi
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16604$as_echo "$gl_cv_func_rmdir_works" >&6; }
16605 case "$gl_cv_func_rmdir_works" in
16606 *yes) ;;
16607 *)
16608 REPLACE_RMDIR=1
16609 ;;
16610 esac
16611
16612 if test $REPLACE_RMDIR = 1; then
16613
16614
16615
16616
16617
16618
16619
16620
16621 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16622
16623 fi
16624
16625
16626
16627
16628
16629 GNULIB_RMDIR=1
16630
16631
16632
16633
16634
16635$as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16636
16637
16638
16639
0750520d
PA
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650 if test $gl_cv_have_include_next = yes; then
16651 gl_cv_next_signal_h='<'signal.h'>'
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
16654$as_echo_n "checking absolute name of <signal.h>... " >&6; }
16655if test "${gl_cv_next_signal_h+set}" = set; then :
16656 $as_echo_n "(cached) " >&6
16657else
16658
16659
16660
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662/* end confdefs.h. */
16663#include <signal.h>
16664_ACEOF
16665 case "$host_os" in
16666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16667 *) gl_absname_cpp="$ac_cpp" ;;
16668 esac
16669
16670 case "$host_os" in
16671 mingw*)
16672 gl_dirsep_regex='[/\\]'
16673 ;;
16674 *)
16675 gl_dirsep_regex='\/'
16676 ;;
16677 esac
16678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16679 gl_header_literal_regex=`echo 'signal.h' \
16680 | sed -e "$gl_make_literal_regex_sed"`
16681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16683 s|^/[^/]|//&|
16684 p
16685 q
16686 }'
16687
16688 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16689 sed -n "$gl_absolute_header_sed"`
16690
16691 gl_header=$gl_cv_absolute_signal_h
16692 gl_cv_next_signal_h='"'$gl_header'"'
16693
16694
16695fi
16696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
16697$as_echo "$gl_cv_next_signal_h" >&6; }
16698 fi
16699 NEXT_SIGNAL_H=$gl_cv_next_signal_h
16700
16701 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16703 gl_next_as_first_directive='<'signal.h'>'
16704 else
16705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16706 gl_next_as_first_directive=$gl_cv_next_signal_h
16707 fi
16708 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
16709
16710
16711
16712
16713
16714# AIX declares sig_atomic_t to already include volatile, and C89 compilers
16715# then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
16716 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
16717#include <signal.h>
16718
16719"
16720if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
16721
16722else
16723 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
16724fi
16725
16726
16727
16728
16729
16730
16731
16732 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
16733#include <signal.h>
16734
16735"
16736if test "x$ac_cv_type_sighandler_t" = x""yes; then :
16737
16738else
16739 HAVE_SIGHANDLER_T=0
16740fi
16741
16742
16743
16744 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
16745 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16747$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16748if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16749 $as_echo_n "(cached) " >&6
16750else
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752/* end confdefs.h. */
16753#include <signal.h>
16754
16755int
16756main ()
16757{
16758#undef $gl_func
16759 (void) $gl_func;
16760 ;
16761 return 0;
16762}
16763_ACEOF
16764if ac_fn_c_try_compile "$LINENO"; then :
16765 eval "$as_gl_Symbol=yes"
16766else
16767 eval "$as_gl_Symbol=no"
16768fi
16769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770fi
16771eval ac_res=\$$as_gl_Symbol
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16773$as_echo "$ac_res" >&6; }
16774 eval as_val=\$$as_gl_Symbol
16775 if test "x$as_val" = x""yes; then :
16776 cat >>confdefs.h <<_ACEOF
16777#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16778_ACEOF
16779
16780 eval ac_cv_have_decl_$gl_func=yes
16781fi
16782 done
16783
16784
16785
63ce7108
TT
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16787$as_echo_n "checking for ssize_t... " >&6; }
16788if test "${gt_cv_ssize_t+set}" = set; then :
16789 $as_echo_n "(cached) " >&6
16790else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792/* end confdefs.h. */
16793#include <sys/types.h>
16794int
16795main ()
16796{
16797int x = sizeof (ssize_t *) + sizeof (ssize_t);
16798 return !x;
16799 ;
16800 return 0;
16801}
16802_ACEOF
16803if ac_fn_c_try_compile "$LINENO"; then :
16804 gt_cv_ssize_t=yes
16805else
16806 gt_cv_ssize_t=no
16807fi
16808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809fi
16810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16811$as_echo "$gt_cv_ssize_t" >&6; }
16812 if test $gt_cv_ssize_t = no; then
16813
16814$as_echo "#define ssize_t int" >>confdefs.h
16815
16816 fi
16817
16818
16819
16820
2196f55f
YQ
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16822$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16823if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16825else
16826 if test "$cross_compiling" = yes; then :
16827 case $host_os in
16828 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16829 *) gl_cv_func_stat_dir_slash="guessing yes";;
16830 esac
16831else
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833/* end confdefs.h. */
16834#include <sys/stat.h>
16835
16836int
16837main ()
16838{
16839struct stat st; return stat (".", &st) != stat ("./", &st);
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844if ac_fn_c_try_run "$LINENO"; then :
16845 gl_cv_func_stat_dir_slash=yes
16846else
16847 gl_cv_func_stat_dir_slash=no
16848fi
16849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850 conftest.$ac_objext conftest.beam conftest.$ac_ext
16851fi
16852
16853fi
16854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16855$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16857$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16858if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16859 $as_echo_n "(cached) " >&6
16860else
16861 touch conftest.tmp
16862 # Assume that if we have lstat, we can also check symlinks.
16863 if test $ac_cv_func_lstat = yes; then
16864 ln -s conftest.tmp conftest.lnk
16865 fi
16866 if test "$cross_compiling" = yes; then :
16867 case "$host_os" in
16868 # Guess yes on glibc systems.
16869 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16870 # If we don't know, assume the worst.
16871 *) gl_cv_func_stat_file_slash="guessing no" ;;
16872 esac
16873
16874else
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876/* end confdefs.h. */
16877#include <sys/stat.h>
16878
16879int
16880main ()
16881{
16882int result = 0;
16883 struct stat st;
16884 if (!stat ("conftest.tmp/", &st))
16885 result |= 1;
16886#if HAVE_LSTAT
16887 if (!stat ("conftest.lnk/", &st))
16888 result |= 2;
16889#endif
16890 return result;
16891
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896if ac_fn_c_try_run "$LINENO"; then :
16897 gl_cv_func_stat_file_slash=yes
16898else
16899 gl_cv_func_stat_file_slash=no
16900fi
16901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16902 conftest.$ac_objext conftest.beam conftest.$ac_ext
16903fi
16904
16905 rm -f conftest.tmp conftest.lnk
16906fi
16907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16908$as_echo "$gl_cv_func_stat_file_slash" >&6; }
16909 case $gl_cv_func_stat_dir_slash in
16910 *no) REPLACE_STAT=1
16911
16912$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16913;;
16914 esac
16915 case $gl_cv_func_stat_file_slash in
16916 *no) REPLACE_STAT=1
16917
16918$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16919;;
16920 esac
16921
16922 if test $REPLACE_STAT = 1; then
16923
16924
16925
16926
16927
16928
16929
16930
16931 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16932
16933 :
16934 fi
16935
16936
16937
16938
16939
16940 GNULIB_STAT=1
16941
16942
16943
16944
16945
16946$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
16947
16948
16949
16950
16951
16952
63ce7108
TT
16953 # Define two additional variables used in the Makefile substitution.
16954
16955 if test "$ac_cv_header_stdbool_h" = yes; then
16956 STDBOOL_H=''
16957 else
16958 STDBOOL_H='stdbool.h'
16959 fi
16960
16961 if test -n "$STDBOOL_H"; then
16962 GL_GENERATE_STDBOOL_H_TRUE=
16963 GL_GENERATE_STDBOOL_H_FALSE='#'
16964else
16965 GL_GENERATE_STDBOOL_H_TRUE='#'
16966 GL_GENERATE_STDBOOL_H_FALSE=
16967fi
16968
16969
16970 if test "$ac_cv_type__Bool" = yes; then
16971 HAVE__BOOL=1
16972 else
16973 HAVE__BOOL=0
16974 fi
16975
16976
16977
16978
16979
16980 STDDEF_H=
4a626d0a
PA
16981 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
16982
16983"
16984if test "x$ac_cv_type_max_align_t" = x""yes; then :
16985
16986else
16987 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
16988fi
16989
63ce7108
TT
16990 if test $gt_cv_c_wchar_t = no; then
16991 HAVE_WCHAR_T=0
16992 STDDEF_H=stddef.h
16993 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16995$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16996if test "${gl_cv_decl_null_works+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16998else
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000/* end confdefs.h. */
17001#include <stddef.h>
17002 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17003
17004int
17005main ()
17006{
17007
17008 ;
17009 return 0;
17010}
17011_ACEOF
17012if ac_fn_c_try_compile "$LINENO"; then :
17013 gl_cv_decl_null_works=yes
17014else
17015 gl_cv_decl_null_works=no
17016fi
17017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018fi
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17020$as_echo "$gl_cv_decl_null_works" >&6; }
17021 if test $gl_cv_decl_null_works = no; then
17022 REPLACE_NULL=1
17023 STDDEF_H=stddef.h
17024 fi
17025
17026 if test -n "$STDDEF_H"; then
17027 GL_GENERATE_STDDEF_H_TRUE=
17028 GL_GENERATE_STDDEF_H_FALSE='#'
17029else
17030 GL_GENERATE_STDDEF_H_TRUE='#'
17031 GL_GENERATE_STDDEF_H_FALSE=
17032fi
17033
17034 if test -n "$STDDEF_H"; then
17035
17036
17037
17038
17039
17040
17041
17042
17043 if test $gl_cv_have_include_next = yes; then
17044 gl_cv_next_stddef_h='<'stddef.h'>'
17045 else
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17047$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17048if test "${gl_cv_next_stddef_h+set}" = set; then :
17049 $as_echo_n "(cached) " >&6
17050else
17051
4a626d0a
PA
17052
17053
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63ce7108
TT
17055/* end confdefs.h. */
17056#include <stddef.h>
63ce7108 17057_ACEOF
4a626d0a
PA
17058 case "$host_os" in
17059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17060 *) gl_absname_cpp="$ac_cpp" ;;
17061 esac
63ce7108 17062
4a626d0a
PA
17063 case "$host_os" in
17064 mingw*)
17065 gl_dirsep_regex='[/\\]'
17066 ;;
17067 *)
17068 gl_dirsep_regex='\/'
17069 ;;
17070 esac
17071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17072 gl_header_literal_regex=`echo 'stddef.h' \
17073 | sed -e "$gl_make_literal_regex_sed"`
17074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17076 s|^/[^/]|//&|
17077 p
17078 q
17079 }'
63ce7108 17080
4a626d0a
PA
17081 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17082 sed -n "$gl_absolute_header_sed"`
17083
17084 gl_header=$gl_cv_absolute_stddef_h
17085 gl_cv_next_stddef_h='"'$gl_header'"'
63ce7108
TT
17086
17087
17088fi
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17090$as_echo "$gl_cv_next_stddef_h" >&6; }
17091 fi
17092 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17093
17094 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17096 gl_next_as_first_directive='<'stddef.h'>'
17097 else
17098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17099 gl_next_as_first_directive=$gl_cv_next_stddef_h
17100 fi
17101 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17102
17103
17104
17105
17106 fi
17107
17108
17109
17110
17111
17112
17113
98399780
YQ
17114
17115
17116
17117
17118
4a626d0a
PA
17119
17120
6a29c58e
YQ
17121 if test $gl_cv_have_include_next = yes; then
17122 gl_cv_next_stdio_h='<'stdio.h'>'
17123 else
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17125$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17126if test "${gl_cv_next_stdio_h+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17128else
17129
4a626d0a
PA
17130
17131
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6a29c58e
YQ
17133/* end confdefs.h. */
17134#include <stdio.h>
6a29c58e 17135_ACEOF
4a626d0a
PA
17136 case "$host_os" in
17137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17138 *) gl_absname_cpp="$ac_cpp" ;;
17139 esac
17140
17141 case "$host_os" in
17142 mingw*)
17143 gl_dirsep_regex='[/\\]'
17144 ;;
17145 *)
17146 gl_dirsep_regex='\/'
17147 ;;
17148 esac
17149 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17150 gl_header_literal_regex=`echo 'stdio.h' \
17151 | sed -e "$gl_make_literal_regex_sed"`
17152 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17153 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17154 s|^/[^/]|//&|
17155 p
17156 q
17157 }'
6a29c58e 17158
4a626d0a
PA
17159 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17160 sed -n "$gl_absolute_header_sed"`
6a29c58e 17161
4a626d0a
PA
17162 gl_header=$gl_cv_absolute_stdio_h
17163 gl_cv_next_stdio_h='"'$gl_header'"'
6a29c58e
YQ
17164
17165
17166fi
17167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17168$as_echo "$gl_cv_next_stdio_h" >&6; }
17169 fi
17170 NEXT_STDIO_H=$gl_cv_next_stdio_h
17171
17172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17174 gl_next_as_first_directive='<'stdio.h'>'
17175 else
17176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17177 gl_next_as_first_directive=$gl_cv_next_stdio_h
17178 fi
17179 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17180
17181
17182
17183
17184
4a626d0a
PA
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17186$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17187if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17188 $as_echo_n "(cached) " >&6
17189else
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191/* end confdefs.h. */
17192
17193 #define __STDC_FORMAT_MACROS 1
17194 #include <stdio.h>
17195 #include <inttypes.h>
17196 /* For non-mingw systems, compilation will trivially succeed.
17197 For mingw, compilation will succeed for older mingw (system
17198 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17199 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17200 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17201 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17202 #endif
17203
17204int
17205main ()
17206{
17207
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_compile "$LINENO"; then :
17213 gl_cv_func_printf_attribute_flavor=system
17214else
17215 gl_cv_func_printf_attribute_flavor=gnu
17216fi
17217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218fi
17219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17220$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17221 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17222
17223$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17224
17225 fi
17226
6a29c58e
YQ
17227 GNULIB_FSCANF=1
17228
17229
17230cat >>confdefs.h <<_ACEOF
17231#define GNULIB_FSCANF 1
17232_ACEOF
17233
17234
17235 GNULIB_SCANF=1
17236
17237
17238cat >>confdefs.h <<_ACEOF
17239#define GNULIB_SCANF 1
17240_ACEOF
17241
17242
17243 GNULIB_FGETC=1
17244 GNULIB_GETC=1
17245 GNULIB_GETCHAR=1
17246 GNULIB_FGETS=1
17247 GNULIB_FREAD=1
17248
17249
17250 GNULIB_FPRINTF=1
17251 GNULIB_PRINTF=1
17252 GNULIB_VFPRINTF=1
17253 GNULIB_VPRINTF=1
17254 GNULIB_FPUTC=1
17255 GNULIB_PUTC=1
17256 GNULIB_PUTCHAR=1
17257 GNULIB_FPUTS=1
17258 GNULIB_PUTS=1
17259 GNULIB_FWRITE=1
17260
17261
17262
17263
17264 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17265 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17267$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17268if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17269 $as_echo_n "(cached) " >&6
17270else
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h. */
17273#include <stdio.h>
17274
17275int
17276main ()
17277{
17278#undef $gl_func
17279 (void) $gl_func;
17280 ;
17281 return 0;
17282}
17283_ACEOF
17284if ac_fn_c_try_compile "$LINENO"; then :
17285 eval "$as_gl_Symbol=yes"
17286else
17287 eval "$as_gl_Symbol=no"
17288fi
17289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290fi
17291eval ac_res=\$$as_gl_Symbol
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17293$as_echo "$ac_res" >&6; }
17294 eval as_val=\$$as_gl_Symbol
17295 if test "x$as_val" = x""yes; then :
17296 cat >>confdefs.h <<_ACEOF
17297#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17298_ACEOF
17299
17300 eval ac_cv_have_decl_$gl_func=yes
17301fi
17302 done
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
98399780
YQ
17315 if test $gl_cv_have_include_next = yes; then
17316 gl_cv_next_stdlib_h='<'stdlib.h'>'
17317 else
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17319$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17320if test "${gl_cv_next_stdlib_h+set}" = set; then :
17321 $as_echo_n "(cached) " >&6
17322else
17323
4a626d0a
PA
17324
17325
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98399780
YQ
17327/* end confdefs.h. */
17328#include <stdlib.h>
98399780 17329_ACEOF
4a626d0a
PA
17330 case "$host_os" in
17331 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17332 *) gl_absname_cpp="$ac_cpp" ;;
17333 esac
17334
17335 case "$host_os" in
17336 mingw*)
17337 gl_dirsep_regex='[/\\]'
17338 ;;
17339 *)
17340 gl_dirsep_regex='\/'
17341 ;;
17342 esac
17343 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17344 gl_header_literal_regex=`echo 'stdlib.h' \
17345 | sed -e "$gl_make_literal_regex_sed"`
17346 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17347 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17348 s|^/[^/]|//&|
17349 p
17350 q
17351 }'
98399780 17352
4a626d0a
PA
17353 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17354 sed -n "$gl_absolute_header_sed"`
98399780 17355
4a626d0a
PA
17356 gl_header=$gl_cv_absolute_stdlib_h
17357 gl_cv_next_stdlib_h='"'$gl_header'"'
98399780
YQ
17358
17359
17360fi
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17362$as_echo "$gl_cv_next_stdlib_h" >&6; }
17363 fi
17364 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17365
17366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17368 gl_next_as_first_directive='<'stdlib.h'>'
17369 else
17370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17371 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17372 fi
17373 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17374
17375
17376
17377
17378
17379
4a626d0a 17380 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
98399780
YQ
17381 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17383$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17384if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17385 $as_echo_n "(cached) " >&6
17386else
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h. */
17389#include <stdlib.h>
17390#if HAVE_SYS_LOADAVG_H
17391# include <sys/loadavg.h>
17392#endif
17393#if HAVE_RANDOM_H
17394# include <random.h>
17395#endif
17396
17397int
17398main ()
17399{
17400#undef $gl_func
17401 (void) $gl_func;
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406if ac_fn_c_try_compile "$LINENO"; then :
17407 eval "$as_gl_Symbol=yes"
17408else
17409 eval "$as_gl_Symbol=no"
17410fi
17411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412fi
17413eval ac_res=\$$as_gl_Symbol
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17415$as_echo "$ac_res" >&6; }
17416 eval as_val=\$$as_gl_Symbol
17417 if test "x$as_val" = x""yes; then :
17418 cat >>confdefs.h <<_ACEOF
17419#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17420_ACEOF
17421
17422 eval ac_cv_have_decl_$gl_func=yes
17423fi
17424 done
17425
17426
17427
17428
17429
17430
17431
63ce7108
TT
17432 if test $REPLACE_STRSTR = 0; then
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17434$as_echo_n "checking whether strstr works in linear time... " >&6; }
17435if test "${gl_cv_func_strstr_linear+set}" = set; then :
17436 $as_echo_n "(cached) " >&6
17437else
17438 if test "$cross_compiling" = yes; then :
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h. */
17441
17442#include <features.h>
17443#ifdef __GNU_LIBRARY__
17444 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17445 && !(defined __i386__ || defined __x86_64__) \
17446 && !defined __UCLIBC__
17447 Lucky user
17448 #endif
17449#endif
17450#ifdef __CYGWIN__
17451 #include <cygwin/version.h>
17452 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17453 Lucky user
17454 #endif
17455#endif
17456
17457_ACEOF
17458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17459 $EGREP "Lucky user" >/dev/null 2>&1; then :
17460 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 17461else
63ce7108 17462 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
17463fi
17464rm -f conftest*
17465
17466
17467else
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469/* end confdefs.h. */
17470
17471#include <signal.h> /* for signal */
63ce7108 17472#include <string.h> /* for strstr */
c971b7fa
PA
17473#include <stdlib.h> /* for malloc */
17474#include <unistd.h> /* for alarm */
17475static void quit (int sig) { exit (sig + 128); }
17476
17477int
17478main ()
17479{
17480
17481 int result = 0;
17482 size_t m = 1000000;
63ce7108
TT
17483 char *haystack = (char *) malloc (2 * m + 2);
17484 char *needle = (char *) malloc (m + 2);
c971b7fa 17485 /* Failure to compile this test due to missing alarm is okay,
63ce7108 17486 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
17487 signal (SIGALRM, quit);
17488 alarm (5);
17489 /* Check for quadratic performance. */
17490 if (haystack && needle)
17491 {
17492 memset (haystack, 'A', 2 * m);
17493 haystack[2 * m] = 'B';
63ce7108 17494 haystack[2 * m + 1] = 0;
c971b7fa
PA
17495 memset (needle, 'A', m);
17496 needle[m] = 'B';
63ce7108
TT
17497 needle[m + 1] = 0;
17498 if (!strstr (haystack, needle))
c971b7fa
PA
17499 result |= 1;
17500 }
17501 return result;
17502
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507if ac_fn_c_try_run "$LINENO"; then :
63ce7108 17508 gl_cv_func_strstr_linear=yes
c971b7fa 17509else
63ce7108 17510 gl_cv_func_strstr_linear=no
c971b7fa
PA
17511fi
17512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17513 conftest.$ac_objext conftest.beam conftest.$ac_ext
17514fi
17515
17516
17517fi
63ce7108
TT
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17519$as_echo "$gl_cv_func_strstr_linear" >&6; }
17520 case "$gl_cv_func_strstr_linear" in
40a73391
JK
17521 *yes) ;;
17522 *)
63ce7108 17523 REPLACE_STRSTR=1
40a73391
JK
17524 ;;
17525 esac
c971b7fa
PA
17526 fi
17527
63ce7108 17528 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
17529
17530
17531
17532
17533
17534
17535
17536
63ce7108 17537 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 17538
a512b375 17539 fi
c971b7fa
PA
17540
17541
17542
63ce7108
TT
17543 if test "$gl_cv_func_memchr_works" != yes; then
17544 REPLACE_STRSTR=1
c971b7fa 17545 else
63ce7108
TT
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17547$as_echo_n "checking whether strstr works... " >&6; }
17548if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
17549 $as_echo_n "(cached) " >&6
17550else
17551 if test "$cross_compiling" = yes; then :
63ce7108 17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
17553/* end confdefs.h. */
17554
17555#ifdef __GNU_LIBRARY__
17556 #include <features.h>
63ce7108 17557 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
17558 || defined __UCLIBC__
17559 Lucky user
17560 #endif
17561#elif defined __CYGWIN__
17562 #include <cygwin/version.h>
17563 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17564 Lucky user
17565 #endif
17566#else
17567 Lucky user
17568#endif
17569
17570_ACEOF
17571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17572 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 17573 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 17574else
63ce7108 17575 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
17576fi
17577rm -f conftest*
17578
17579
17580else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h. */
17583
63ce7108 17584#include <string.h> /* for strstr */
c971b7fa
PA
17585#define P "_EF_BF_BD"
17586#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17587#define NEEDLE P P P P P
17588
17589int
17590main ()
17591{
63ce7108 17592return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
17593
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598if ac_fn_c_try_run "$LINENO"; then :
63ce7108 17599 gl_cv_func_strstr_works_always=yes
c971b7fa 17600else
63ce7108 17601 gl_cv_func_strstr_works_always=no
c971b7fa
PA
17602fi
17603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17605fi
17606
17607
17608fi
63ce7108
TT
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17610$as_echo "$gl_cv_func_strstr_works_always" >&6; }
17611 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
17612 *yes) ;;
17613 *)
63ce7108 17614 REPLACE_STRSTR=1
40a73391
JK
17615 ;;
17616 esac
c971b7fa 17617 fi
8839a007 17618
63ce7108 17619 if test $REPLACE_STRSTR = 1; then
8839a007 17620
8690e634
JK
17621
17622
8690e634
JK
17623
17624
17625
17626
17627
63ce7108 17628 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 17629
8690e634
JK
17630 fi
17631
8690e634
JK
17632
17633
8690e634 17634
8690e634 17635
63ce7108 17636 GNULIB_STRSTR=1
8690e634
JK
17637
17638
17639
8690e634
JK
17640
17641
63ce7108 17642$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
17643
17644
17645
17646
17647
17648
17649
421693b0
PA
17650 for ac_func in strtok_r
17651do :
17652 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17653if test "x$ac_cv_func_strtok_r" = x""yes; then :
17654 cat >>confdefs.h <<_ACEOF
17655#define HAVE_STRTOK_R 1
17656_ACEOF
17657
17658fi
17659done
17660
17661 if test $ac_cv_func_strtok_r = yes; then
17662 HAVE_STRTOK_R=1
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17664$as_echo_n "checking whether strtok_r works... " >&6; }
17665if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17666 $as_echo_n "(cached) " >&6
17667else
17668 if test "$cross_compiling" = yes; then :
17669
17670 case "$host_os" in
17671 # Guess no on glibc systems.
17672 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17673 *) gl_cv_func_strtok_r_works="guessing yes";;
17674 esac
17675
17676else
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678/* end confdefs.h. */
17679
17680 #ifndef __OPTIMIZE__
17681 # define __OPTIMIZE__ 1
17682 #endif
17683 #undef __OPTIMIZE_SIZE__
17684 #undef __NO_INLINE__
17685 #include <stdlib.h>
17686 #include <string.h>
17687
17688int
17689main ()
17690{
17691static const char dummy[] = "\177\01a";
17692 char delimiters[] = "xxxxxxxx";
17693 char *save_ptr = (char *) dummy;
17694 strtok_r (delimiters, "x", &save_ptr);
17695 strtok_r (NULL, "x", &save_ptr);
17696 return 0;
17697
17698 ;
17699 return 0;
17700}
17701
17702_ACEOF
17703if ac_fn_c_try_run "$LINENO"; then :
17704 gl_cv_func_strtok_r_works=yes
17705else
17706 gl_cv_func_strtok_r_works=no
17707fi
17708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17709 conftest.$ac_objext conftest.beam conftest.$ac_ext
17710fi
17711
17712
17713fi
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17715$as_echo "$gl_cv_func_strtok_r_works" >&6; }
17716 case "$gl_cv_func_strtok_r_works" in
17717 *no)
17718 UNDEFINE_STRTOK_R=1
17719 ;;
17720 esac
17721 else
17722 HAVE_STRTOK_R=0
17723 fi
17724
17725 if test $ac_cv_have_decl_strtok_r = no; then
17726 HAVE_DECL_STRTOK_R=0
17727 fi
17728
17729 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17730
17731
17732
17733
17734
17735
17736
17737
17738 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17739
17740
17741 :
17742
17743 fi
17744
17745
17746
17747
17748
17749 GNULIB_STRTOK_R=1
17750
17751
17752
17753
17754
17755$as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17756
17757
17758
17759
17760
17761
17762
8690e634
JK
17763
17764
17765
17766
17767
8690e634 17768
09607c9e
TT
17769
17770
17771
17772
17773 if test $gl_cv_have_include_next = yes; then
17774 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17775 else
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17777$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17778if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17780else
17781
17782 if test $ac_cv_header_sys_stat_h = yes; then
17783
17784
4a626d0a
PA
17785
17786
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
09607c9e
TT
17788/* end confdefs.h. */
17789#include <sys/stat.h>
09607c9e 17790_ACEOF
4a626d0a
PA
17791 case "$host_os" in
17792 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17793 *) gl_absname_cpp="$ac_cpp" ;;
17794 esac
17795
17796 case "$host_os" in
17797 mingw*)
17798 gl_dirsep_regex='[/\\]'
17799 ;;
17800 *)
17801 gl_dirsep_regex='\/'
17802 ;;
17803 esac
17804 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17805 gl_header_literal_regex=`echo 'sys/stat.h' \
17806 | sed -e "$gl_make_literal_regex_sed"`
17807 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17808 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17809 s|^/[^/]|//&|
17810 p
17811 q
17812 }'
17813
17814 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17815 sed -n "$gl_absolute_header_sed"`
17816
17817 gl_header=$gl_cv_absolute_sys_stat_h
17818 gl_cv_next_sys_stat_h='"'$gl_header'"'
09607c9e
TT
17819 else
17820 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17821 fi
17822
17823
17824fi
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17826$as_echo "$gl_cv_next_sys_stat_h" >&6; }
17827 fi
17828 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17829
17830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17832 gl_next_as_first_directive='<'sys/stat.h'>'
17833 else
17834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17835 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17836 fi
17837 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17838
17839
17840
17841
17842
17843
17844
17845
2196f55f 17846
09607c9e
TT
17847
17848
17849 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17850
17851$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
17852
17853 fi
17854
17855 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17856 #include <sys/stat.h>
17857"
17858if test "x$ac_cv_type_nlink_t" = x""yes; then :
17859
17860else
17861
17862$as_echo "#define nlink_t int" >>confdefs.h
17863
17864fi
17865
17866
17867
17868 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
17869 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17871$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17872if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17873 $as_echo_n "(cached) " >&6
17874else
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876/* end confdefs.h. */
17877#include <sys/stat.h>
17878
17879int
17880main ()
17881{
17882#undef $gl_func
17883 (void) $gl_func;
17884 ;
17885 return 0;
17886}
17887_ACEOF
17888if ac_fn_c_try_compile "$LINENO"; then :
17889 eval "$as_gl_Symbol=yes"
17890else
17891 eval "$as_gl_Symbol=no"
17892fi
17893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894fi
17895eval ac_res=\$$as_gl_Symbol
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17897$as_echo "$ac_res" >&6; }
17898 eval as_val=\$$as_gl_Symbol
17899 if test "x$as_val" = x""yes; then :
17900 cat >>confdefs.h <<_ACEOF
17901#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17902_ACEOF
17903
17904 eval ac_cv_have_decl_$gl_func=yes
17905fi
17906 done
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
8839a007
PA
17921
17922
17923
17924
09607c9e
TT
17925
17926
8839a007
PA
17927
17928
17929
17930
17931 if test $gl_cv_have_include_next = yes; then
17932 gl_cv_next_unistd_h='<'unistd.h'>'
17933 else
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17935$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17936if test "${gl_cv_next_unistd_h+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17938else
17939
17940 if test $ac_cv_header_unistd_h = yes; then
17941
17942
4a626d0a
PA
17943
17944
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839a007
PA
17946/* end confdefs.h. */
17947#include <unistd.h>
8839a007 17948_ACEOF
4a626d0a
PA
17949 case "$host_os" in
17950 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17951 *) gl_absname_cpp="$ac_cpp" ;;
17952 esac
17953
17954 case "$host_os" in
17955 mingw*)
17956 gl_dirsep_regex='[/\\]'
17957 ;;
17958 *)
17959 gl_dirsep_regex='\/'
17960 ;;
17961 esac
17962 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17963 gl_header_literal_regex=`echo 'unistd.h' \
17964 | sed -e "$gl_make_literal_regex_sed"`
17965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17967 s|^/[^/]|//&|
17968 p
17969 q
17970 }'
17971
17972 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17973 sed -n "$gl_absolute_header_sed"`
17974
17975 gl_header=$gl_cv_absolute_unistd_h
17976 gl_cv_next_unistd_h='"'$gl_header'"'
8839a007
PA
17977 else
17978 gl_cv_next_unistd_h='<'unistd.h'>'
17979 fi
17980
17981
17982fi
17983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17984$as_echo "$gl_cv_next_unistd_h" >&6; }
17985 fi
17986 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17987
17988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17990 gl_next_as_first_directive='<'unistd.h'>'
17991 else
17992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17993 gl_next_as_first_directive=$gl_cv_next_unistd_h
17994 fi
17995 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17996
17997
17998
17999
18000 if test $ac_cv_header_unistd_h = yes; then
18001 HAVE_UNISTD_H=1
18002 else
18003 HAVE_UNISTD_H=0
18004 fi
18005
18006
18007
18008
18009
18010
18011
18012 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
18013 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18015$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18016if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18017 $as_echo_n "(cached) " >&6
18018else
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020/* end confdefs.h. */
18021
18022#if HAVE_UNISTD_H
18023# include <unistd.h>
18024#endif
18025/* Some systems declare various items in the wrong headers. */
18026#if !(defined __GLIBC__ && !defined __UCLIBC__)
18027# include <fcntl.h>
18028# include <stdio.h>
18029# include <stdlib.h>
18030# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18031# include <io.h>
18032# endif
18033#endif
18034
18035int
18036main ()
18037{
18038#undef $gl_func
18039 (void) $gl_func;
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044if ac_fn_c_try_compile "$LINENO"; then :
18045 eval "$as_gl_Symbol=yes"
18046else
18047 eval "$as_gl_Symbol=no"
18048fi
18049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050fi
18051eval ac_res=\$$as_gl_Symbol
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18053$as_echo "$ac_res" >&6; }
18054 eval as_val=\$$as_gl_Symbol
18055 if test "x$as_val" = x""yes; then :
18056 cat >>confdefs.h <<_ACEOF
18057#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18058_ACEOF
18059
18060 eval ac_cv_have_decl_$gl_func=yes
18061fi
18062 done
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
8690e634
JK
18075
18076
18077 if test $gl_cv_have_include_next = yes; then
18078 gl_cv_next_wchar_h='<'wchar.h'>'
18079 else
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18081$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18082if test "${gl_cv_next_wchar_h+set}" = set; then :
18083 $as_echo_n "(cached) " >&6
18084else
18085
18086 if test $ac_cv_header_wchar_h = yes; then
18087
18088
4a626d0a
PA
18089
18090
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
18092/* end confdefs.h. */
18093#include <wchar.h>
8690e634 18094_ACEOF
4a626d0a
PA
18095 case "$host_os" in
18096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18097 *) gl_absname_cpp="$ac_cpp" ;;
18098 esac
18099
18100 case "$host_os" in
18101 mingw*)
18102 gl_dirsep_regex='[/\\]'
18103 ;;
18104 *)
18105 gl_dirsep_regex='\/'
18106 ;;
18107 esac
18108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18109 gl_header_literal_regex=`echo 'wchar.h' \
18110 | sed -e "$gl_make_literal_regex_sed"`
18111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18113 s|^/[^/]|//&|
18114 p
18115 q
18116 }'
18117
18118 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18119 sed -n "$gl_absolute_header_sed"`
18120
18121 gl_header=$gl_cv_absolute_wchar_h
18122 gl_cv_next_wchar_h='"'$gl_header'"'
8690e634
JK
18123 else
18124 gl_cv_next_wchar_h='<'wchar.h'>'
18125 fi
18126
18127
18128fi
18129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18130$as_echo "$gl_cv_next_wchar_h" >&6; }
18131 fi
18132 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18133
18134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18136 gl_next_as_first_directive='<'wchar.h'>'
18137 else
18138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18139 gl_next_as_first_directive=$gl_cv_next_wchar_h
18140 fi
18141 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18142
18143
18144
18145
18146 if test $ac_cv_header_wchar_h = yes; then
18147 HAVE_WCHAR_H=1
18148 else
18149 HAVE_WCHAR_H=0
18150 fi
18151
c971b7fa
PA
18152
18153
18154
18155
8690e634
JK
18156 if test $gt_cv_c_wint_t = yes; then
18157 HAVE_WINT_T=1
18158 else
18159 HAVE_WINT_T=0
18160 fi
c971b7fa
PA
18161
18162
18163
8690e634
JK
18164 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
18165 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18167$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18168if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
18169 $as_echo_n "(cached) " >&6
18170else
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h. */
8690e634
JK
18173
18174/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18175 <wchar.h>.
18176 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18177 included before <wchar.h>. */
18178#if !(defined __GLIBC__ && !defined __UCLIBC__)
18179# include <stddef.h>
18180# include <stdio.h>
18181# include <time.h>
18182#endif
18183#include <wchar.h>
c971b7fa
PA
18184
18185int
18186main ()
18187{
8690e634
JK
18188#undef $gl_func
18189 (void) $gl_func;
c971b7fa
PA
18190 ;
18191 return 0;
18192}
18193_ACEOF
18194if ac_fn_c_try_compile "$LINENO"; then :
8690e634 18195 eval "$as_gl_Symbol=yes"
c971b7fa 18196else
8690e634 18197 eval "$as_gl_Symbol=no"
c971b7fa
PA
18198fi
18199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18200fi
8690e634
JK
18201eval ac_res=\$$as_gl_Symbol
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18203$as_echo "$ac_res" >&6; }
18204 eval as_val=\$$as_gl_Symbol
18205 if test "x$as_val" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18208_ACEOF
c971b7fa 18209
8690e634 18210 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 18211fi
8690e634
JK
18212 done
18213
18214
18215
18216
18217
18218
18219
8690e634
JK
18220 if test $ac_cv_func_iswcntrl = yes; then
18221 HAVE_ISWCNTRL=1
18222 else
18223 HAVE_ISWCNTRL=0
18224 fi
18225
18226
18227
8690e634
JK
18228 if test $gt_cv_c_wint_t = yes; then
18229 HAVE_WINT_T=1
18230 else
18231 HAVE_WINT_T=0
18232 fi
18233
18234
18235
18236
18237
18238
c971b7fa 18239
8690e634 18240
c971b7fa
PA
18241
18242
18243
18244 if test $gl_cv_have_include_next = yes; then
8690e634 18245 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 18246 else
8690e634
JK
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18248$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18249if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
18250 $as_echo_n "(cached) " >&6
18251else
18252
8690e634
JK
18253 if test $ac_cv_header_wctype_h = yes; then
18254
18255
4a626d0a
PA
18256
18257
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 18259/* end confdefs.h. */
8690e634 18260#include <wctype.h>
c971b7fa 18261_ACEOF
4a626d0a
PA
18262 case "$host_os" in
18263 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18264 *) gl_absname_cpp="$ac_cpp" ;;
18265 esac
18266
18267 case "$host_os" in
18268 mingw*)
18269 gl_dirsep_regex='[/\\]'
18270 ;;
18271 *)
18272 gl_dirsep_regex='\/'
18273 ;;
18274 esac
18275 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18276 gl_header_literal_regex=`echo 'wctype.h' \
18277 | sed -e "$gl_make_literal_regex_sed"`
18278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18280 s|^/[^/]|//&|
18281 p
18282 q
18283 }'
18284
18285 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18286 sed -n "$gl_absolute_header_sed"`
18287
18288 gl_header=$gl_cv_absolute_wctype_h
18289 gl_cv_next_wctype_h='"'$gl_header'"'
8690e634
JK
18290 else
18291 gl_cv_next_wctype_h='<'wctype.h'>'
18292 fi
c971b7fa
PA
18293
18294
18295fi
8690e634
JK
18296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18297$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 18298 fi
8690e634 18299 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
18300
18301 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 18303 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
18304 else
18305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 18306 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 18307 fi
8690e634
JK
18308 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18309
18310
18311
18312
18313 if test $ac_cv_header_wctype_h = yes; then
18314 if test $ac_cv_func_iswcntrl = yes; then
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18316$as_echo_n "checking whether iswcntrl works... " >&6; }
18317if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18319else
18320
18321 if test "$cross_compiling" = yes; then :
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323/* end confdefs.h. */
18324#include <stdlib.h>
18325 #if __GNU_LIBRARY__ == 1
18326 Linux libc5 i18n is broken.
18327 #endif
18328int
18329main ()
18330{
18331
18332 ;
18333 return 0;
18334}
18335_ACEOF
18336if ac_fn_c_try_compile "$LINENO"; then :
18337 gl_cv_func_iswcntrl_works="guessing yes"
18338else
18339 gl_cv_func_iswcntrl_works="guessing no"
18340fi
18341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342
18343else
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345/* end confdefs.h. */
18346
18347 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18348 included before <wchar.h>.
18349 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18350 must be included before <wchar.h>. */
18351 #include <stddef.h>
18352 #include <stdio.h>
18353 #include <time.h>
18354 #include <wchar.h>
18355 #include <wctype.h>
18356 int main () { return iswprint ('x') == 0; }
18357
18358_ACEOF
18359if ac_fn_c_try_run "$LINENO"; then :
18360 gl_cv_func_iswcntrl_works=yes
18361else
18362 gl_cv_func_iswcntrl_works=no
18363fi
18364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365 conftest.$ac_objext conftest.beam conftest.$ac_ext
18366fi
18367
18368
18369fi
18370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18371$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18372 fi
18373 HAVE_WCTYPE_H=1
18374 else
18375 HAVE_WCTYPE_H=0
18376 fi
18377
18378
18379 case "$gl_cv_func_iswcntrl_works" in
18380 *yes) REPLACE_ISWCNTRL=0 ;;
18381 *) REPLACE_ISWCNTRL=1 ;;
18382 esac
18383
18384
18385 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18386 :
18387 fi
18388
18389 if test $REPLACE_ISWCNTRL = 1; then
18390 REPLACE_TOWLOWER=1
18391 else
18392 for ac_func in towlower
18393do :
18394 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18395if test "x$ac_cv_func_towlower" = x""yes; then :
18396 cat >>confdefs.h <<_ACEOF
18397#define HAVE_TOWLOWER 1
18398_ACEOF
18399
18400fi
18401done
18402
18403 if test $ac_cv_func_towlower = yes; then
18404 REPLACE_TOWLOWER=0
18405 else
18406 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18407 included before <wchar.h>.
18408 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18409 must be included before <wchar.h>. */
18410 #include <stddef.h>
18411 #include <stdio.h>
18412 #include <time.h>
18413 #include <wchar.h>
18414 #if HAVE_WCTYPE_H
18415 # include <wctype.h>
18416 #endif
18417
18418"
18419if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18420 ac_have_decl=1
18421else
18422 ac_have_decl=0
18423fi
18424
18425cat >>confdefs.h <<_ACEOF
18426#define HAVE_DECL_TOWLOWER $ac_have_decl
18427_ACEOF
18428
18429 if test $ac_cv_have_decl_towlower = yes; then
18430 REPLACE_TOWLOWER=1
18431 else
18432 REPLACE_TOWLOWER=0
18433 fi
18434 fi
18435 fi
18436
18437
18438 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18439 :
18440 fi
18441
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18443$as_echo_n "checking for wctype_t... " >&6; }
18444if test "${gl_cv_type_wctype_t+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18446else
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448/* end confdefs.h. */
18449/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18450 included before <wchar.h>.
18451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18452 must be included before <wchar.h>. */
18453 #include <stddef.h>
18454 #include <stdio.h>
18455 #include <time.h>
18456 #include <wchar.h>
18457 #if HAVE_WCTYPE_H
18458 # include <wctype.h>
18459 #endif
18460 wctype_t a;
18461
18462int
18463main ()
18464{
18465
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470if ac_fn_c_try_compile "$LINENO"; then :
18471 gl_cv_type_wctype_t=yes
18472else
18473 gl_cv_type_wctype_t=no
18474fi
18475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 18476
8690e634
JK
18477fi
18478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18479$as_echo "$gl_cv_type_wctype_t" >&6; }
18480 if test $gl_cv_type_wctype_t = no; then
18481 HAVE_WCTYPE_T=0
18482 fi
18483
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18485$as_echo_n "checking for wctrans_t... " >&6; }
18486if test "${gl_cv_type_wctrans_t+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18488else
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490/* end confdefs.h. */
18491/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18492 included before <wchar.h>.
18493 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18494 must be included before <wchar.h>. */
18495 #include <stddef.h>
18496 #include <stdio.h>
18497 #include <time.h>
18498 #include <wchar.h>
18499 #include <wctype.h>
18500 wctrans_t a;
c971b7fa 18501
8690e634
JK
18502int
18503main ()
18504{
c971b7fa 18505
8690e634
JK
18506 ;
18507 return 0;
18508}
18509_ACEOF
18510if ac_fn_c_try_compile "$LINENO"; then :
18511 gl_cv_type_wctrans_t=yes
18512else
18513 gl_cv_type_wctrans_t=no
18514fi
18515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 18516
8690e634
JK
18517fi
18518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18519$as_echo "$gl_cv_type_wctrans_t" >&6; }
18520 if test $gl_cv_type_wctrans_t = no; then
18521 HAVE_WCTRANS_T=0
c971b7fa
PA
18522 fi
18523
18524
8690e634
JK
18525 for gl_func in wctype iswctype wctrans towctrans ; do
18526 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18528$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18529if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18530 $as_echo_n "(cached) " >&6
18531else
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533/* end confdefs.h. */
18534
18535/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18536 <wchar.h>.
18537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18538 included before <wchar.h>. */
18539#if !(defined __GLIBC__ && !defined __UCLIBC__)
18540# include <stddef.h>
18541# include <stdio.h>
18542# include <time.h>
18543# include <wchar.h>
18544#endif
18545#include <wctype.h>
18546
18547int
18548main ()
18549{
18550#undef $gl_func
18551 (void) $gl_func;
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556if ac_fn_c_try_compile "$LINENO"; then :
18557 eval "$as_gl_Symbol=yes"
18558else
18559 eval "$as_gl_Symbol=no"
18560fi
18561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18562fi
18563eval ac_res=\$$as_gl_Symbol
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18565$as_echo "$ac_res" >&6; }
18566 eval as_val=\$$as_gl_Symbol
18567 if test "x$as_val" = x""yes; then :
18568 cat >>confdefs.h <<_ACEOF
18569#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18570_ACEOF
c971b7fa 18571
8690e634
JK
18572 eval ac_cv_have_decl_$gl_func=yes
18573fi
18574 done
c971b7fa
PA
18575
18576
18577 # End of code from modules
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587 gltests_libdeps=
18588 gltests_ltlibdeps=
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598 gl_source_base='tests'
18599 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
18600
18601 gl_module_indicator_condition=$gltests_WITNESS
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611 LIBGNU_LIBDEPS="$gl_libdeps"
18612
18613 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18614
18615
18616
18617# We don't use automake, but gnulib does. This line lets us generate
18618# its Makefile.in.
18619am__api_version='1.11'
18620
18621# Find a good install program. We prefer a C program (faster),
18622# so one script is as good as another. But avoid the broken or
18623# incompatible versions:
18624# SysV /etc/install, /usr/sbin/install
18625# SunOS /usr/etc/install
18626# IRIX /sbin/install
18627# AIX /bin/install
18628# AmigaOS /C/install, which installs bootblocks on floppy discs
18629# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18630# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18631# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18632# OS/2's system install, which has a completely different semantic
18633# ./install, which can be erroneously created by make from ./install.sh.
18634# Reject install programs that cannot install multiple files.
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18636$as_echo_n "checking for a BSD-compatible install... " >&6; }
18637if test -z "$INSTALL"; then
18638if test "${ac_cv_path_install+set}" = set; then :
18639 $as_echo_n "(cached) " >&6
18640else
18641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18642for as_dir in $PATH
18643do
18644 IFS=$as_save_IFS
18645 test -z "$as_dir" && as_dir=.
18646 # Account for people who put trailing slashes in PATH elements.
18647case $as_dir/ in #((
18648 ./ | .// | /[cC]/* | \
18649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18651 /usr/ucb/* ) ;;
18652 *)
18653 # OSF1 and SCO ODT 3.0 have their own names for install.
18654 # Don't use installbsd from OSF since it installs stuff as root
18655 # by default.
18656 for ac_prog in ginstall scoinst install; do
18657 for ac_exec_ext in '' $ac_executable_extensions; do
18658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18659 if test $ac_prog = install &&
18660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18661 # AIX install. It has an incompatible calling convention.
18662 :
18663 elif test $ac_prog = install &&
18664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18665 # program-specific install script used by HP pwplus--don't use.
18666 :
18667 else
18668 rm -rf conftest.one conftest.two conftest.dir
18669 echo one > conftest.one
18670 echo two > conftest.two
18671 mkdir conftest.dir
18672 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18673 test -s conftest.one && test -s conftest.two &&
18674 test -s conftest.dir/conftest.one &&
18675 test -s conftest.dir/conftest.two
18676 then
18677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18678 break 3
18679 fi
18680 fi
18681 fi
18682 done
18683 done
18684 ;;
18685esac
18686
18687 done
18688IFS=$as_save_IFS
18689
18690rm -rf conftest.one conftest.two conftest.dir
18691
18692fi
18693 if test "${ac_cv_path_install+set}" = set; then
18694 INSTALL=$ac_cv_path_install
18695 else
18696 # As a last resort, use the slow shell script. Don't cache a
18697 # value for INSTALL within a source directory, because that will
18698 # break other packages using the cache if that directory is
18699 # removed, or if the value is a relative name.
18700 INSTALL=$ac_install_sh
18701 fi
18702fi
18703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18704$as_echo "$INSTALL" >&6; }
18705
18706# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18707# It thinks the first close brace ends the variable substitution.
18708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18709
18710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18711
18712test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18713
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18715$as_echo_n "checking whether build environment is sane... " >&6; }
18716# Just in case
18717sleep 1
18718echo timestamp > conftest.file
18719# Reject unsafe characters in $srcdir or the absolute working directory
18720# name. Accept space and tab only in the latter.
18721am_lf='
18722'
18723case `pwd` in
18724 *[\\\"\#\$\&\'\`$am_lf]*)
18725 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
18726esac
18727case $srcdir in
18728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
18729 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18730esac
18731
18732# Do `set' in a subshell so we don't clobber the current shell's
18733# arguments. Must try -L first in case configure is actually a
18734# symlink; some systems play weird games with the mod time of symlinks
18735# (eg FreeBSD returns the mod time of the symlink's containing
18736# directory).
18737if (
18738 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18739 if test "$*" = "X"; then
18740 # -L didn't work.
18741 set X `ls -t "$srcdir/configure" conftest.file`
18742 fi
18743 rm -f conftest.file
18744 if test "$*" != "X $srcdir/configure conftest.file" \
18745 && test "$*" != "X conftest.file $srcdir/configure"; then
18746
18747 # If neither matched, then we have a broken ls. This can happen
18748 # if, for instance, CONFIG_SHELL is bash and it inherits a
18749 # broken ls alias from the environment. This has actually
18750 # happened. Such a system could not be considered "sane".
18751 as_fn_error "ls -t appears to fail. Make sure there is not a broken
18752alias in your environment" "$LINENO" 5
18753 fi
18754
18755 test "$2" = conftest.file
18756 )
18757then
18758 # Ok.
18759 :
18760else
18761 as_fn_error "newly created file is older than distributed files!
18762Check your system clock" "$LINENO" 5
18763fi
18764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18765$as_echo "yes" >&6; }
18766test "$program_prefix" != NONE &&
18767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18768# Use a double $ so make ignores it.
18769test "$program_suffix" != NONE &&
18770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18771# Double any \ or $.
18772# By default was `s,x,x', remove it if useless.
18773ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
18774program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
18775
18776# expand $ac_aux_dir to an absolute path
18777am_aux_dir=`cd $ac_aux_dir && pwd`
18778
18779if test x"${MISSING+set}" != xset; then
18780 case $am_aux_dir in
18781 *\ * | *\ *)
18782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
18783 *)
18784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
18785 esac
18786fi
18787# Use eval to expand $SHELL
18788if eval "$MISSING --run true"; then
18789 am_missing_run="$MISSING --run "
18790else
18791 am_missing_run=
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18793$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18794fi
18795
18796if test x"${install_sh}" != xset; then
18797 case $am_aux_dir in
18798 *\ * | *\ *)
18799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
18800 *)
18801 install_sh="\${SHELL} $am_aux_dir/install-sh"
18802 esac
18803fi
18804
18805# Installed binaries are usually stripped using `strip' when the user
18806# run `make install-strip'. However `strip' might not be the right
18807# tool to use in cross-compilation environments, therefore Automake
18808# will honor the `STRIP' environment variable to overrule this program.
18809if test "$cross_compiling" != no; then
18810 if test -n "$ac_tool_prefix"; then
18811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18812set dummy ${ac_tool_prefix}strip; ac_word=$2
18813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18814$as_echo_n "checking for $ac_word... " >&6; }
18815if test "${ac_cv_prog_STRIP+set}" = set; then :
18816 $as_echo_n "(cached) " >&6
18817else
18818 if test -n "$STRIP"; then
18819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18820else
18821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18822for as_dir in $PATH
18823do
18824 IFS=$as_save_IFS
18825 test -z "$as_dir" && as_dir=.
18826 for ac_exec_ext in '' $ac_executable_extensions; do
18827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18830 break 2
18831 fi
18832done
18833 done
18834IFS=$as_save_IFS
18835
18836fi
18837fi
18838STRIP=$ac_cv_prog_STRIP
18839if test -n "$STRIP"; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18841$as_echo "$STRIP" >&6; }
18842else
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18844$as_echo "no" >&6; }
18845fi
18846
18847
18848fi
18849if test -z "$ac_cv_prog_STRIP"; then
18850 ac_ct_STRIP=$STRIP
18851 # Extract the first word of "strip", so it can be a program name with args.
18852set dummy strip; ac_word=$2
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854$as_echo_n "checking for $ac_word... " >&6; }
18855if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
18856 $as_echo_n "(cached) " >&6
18857else
18858 if test -n "$ac_ct_STRIP"; then
18859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18860else
18861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18862for as_dir in $PATH
18863do
18864 IFS=$as_save_IFS
18865 test -z "$as_dir" && as_dir=.
18866 for ac_exec_ext in '' $ac_executable_extensions; do
18867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18868 ac_cv_prog_ac_ct_STRIP="strip"
18869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18870 break 2
18871 fi
18872done
18873 done
18874IFS=$as_save_IFS
18875
18876fi
18877fi
18878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18879if test -n "$ac_ct_STRIP"; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
18881$as_echo "$ac_ct_STRIP" >&6; }
18882else
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884$as_echo "no" >&6; }
18885fi
18886
18887 if test "x$ac_ct_STRIP" = x; then
18888 STRIP=":"
18889 else
18890 case $cross_compiling:$ac_tool_warned in
18891yes:)
18892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18894ac_tool_warned=yes ;;
18895esac
18896 STRIP=$ac_ct_STRIP
18897 fi
18898else
18899 STRIP="$ac_cv_prog_STRIP"
18900fi
18901
18902fi
18903INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
18904
c971b7fa
PA
18905mkdir_p="$MKDIR_P"
18906case $mkdir_p in
18907 [\\/$]* | ?:[\\/]*) ;;
18908 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18909esac
18910
18911for ac_prog in gawk mawk nawk awk
18912do
18913 # Extract the first word of "$ac_prog", so it can be a program name with args.
18914set dummy $ac_prog; ac_word=$2
18915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18916$as_echo_n "checking for $ac_word... " >&6; }
18917if test "${ac_cv_prog_AWK+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18919else
18920 if test -n "$AWK"; then
18921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18922else
18923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924for as_dir in $PATH
18925do
18926 IFS=$as_save_IFS
18927 test -z "$as_dir" && as_dir=.
18928 for ac_exec_ext in '' $ac_executable_extensions; do
18929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18930 ac_cv_prog_AWK="$ac_prog"
18931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932 break 2
18933 fi
18934done
18935 done
18936IFS=$as_save_IFS
18937
18938fi
18939fi
18940AWK=$ac_cv_prog_AWK
18941if test -n "$AWK"; then
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18943$as_echo "$AWK" >&6; }
18944else
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946$as_echo "no" >&6; }
18947fi
18948
18949
18950 test -n "$AWK" && break
18951done
18952
18953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18954$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18955set x ${MAKE-make}
18956ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18957if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18958 $as_echo_n "(cached) " >&6
18959else
18960 cat >conftest.make <<\_ACEOF
18961SHELL = /bin/sh
18962all:
18963 @echo '@@@%%%=$(MAKE)=@@@%%%'
18964_ACEOF
18965# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18966case `${MAKE-make} -f conftest.make 2>/dev/null` in
18967 *@@@%%%=?*=@@@%%%*)
18968 eval ac_cv_prog_make_${ac_make}_set=yes;;
18969 *)
18970 eval ac_cv_prog_make_${ac_make}_set=no;;
18971esac
18972rm -f conftest.make
18973fi
18974if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18976$as_echo "yes" >&6; }
18977 SET_MAKE=
18978else
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980$as_echo "no" >&6; }
18981 SET_MAKE="MAKE=${MAKE-make}"
18982fi
18983
18984rm -rf .tst 2>/dev/null
18985mkdir .tst 2>/dev/null
18986if test -d .tst; then
18987 am__leading_dot=.
18988else
18989 am__leading_dot=_
18990fi
18991rmdir .tst 2>/dev/null
18992
18993DEPDIR="${am__leading_dot}deps"
18994
18995ac_config_commands="$ac_config_commands depfiles"
18996
18997
18998am_make=${MAKE-make}
18999cat > confinc << 'END'
19000am__doit:
19001 @echo this is the am__doit target
19002.PHONY: am__doit
19003END
19004# If we don't find an include directive, just comment out the code.
19005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19006$as_echo_n "checking for style of include used by $am_make... " >&6; }
19007am__include="#"
19008am__quote=
19009_am_result=none
19010# First try GNU make style include.
19011echo "include confinc" > confmf
19012# Ignore all kinds of additional output from `make'.
19013case `$am_make -s -f confmf 2> /dev/null` in #(
19014*the\ am__doit\ target*)
19015 am__include=include
19016 am__quote=
19017 _am_result=GNU
19018 ;;
19019esac
19020# Now try BSD make style include.
19021if test "$am__include" = "#"; then
19022 echo '.include "confinc"' > confmf
19023 case `$am_make -s -f confmf 2> /dev/null` in #(
19024 *the\ am__doit\ target*)
19025 am__include=.include
19026 am__quote="\""
19027 _am_result=BSD
19028 ;;
19029 esac
19030fi
19031
19032
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19034$as_echo "$_am_result" >&6; }
19035rm -f confinc confmf
19036
19037# Check whether --enable-dependency-tracking was given.
19038if test "${enable_dependency_tracking+set}" = set; then :
19039 enableval=$enable_dependency_tracking;
19040fi
19041
19042if test "x$enable_dependency_tracking" != xno; then
19043 am_depcomp="$ac_aux_dir/depcomp"
19044 AMDEPBACKSLASH='\'
19045fi
19046 if test "x$enable_dependency_tracking" != xno; then
19047 AMDEP_TRUE=
19048 AMDEP_FALSE='#'
19049else
19050 AMDEP_TRUE='#'
19051 AMDEP_FALSE=
19052fi
19053
19054
19055if test "`cd $srcdir && pwd`" != "`pwd`"; then
19056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19057 # is not polluted with repeated "-I."
19058 am__isrc=' -I$(srcdir)'
19059 # test to see if srcdir already configured
19060 if test -f $srcdir/config.status; then
19061 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19062 fi
19063fi
19064
19065# test whether we have cygpath
19066if test -z "$CYGPATH_W"; then
19067 if (cygpath --version) >/dev/null 2>/dev/null; then
19068 CYGPATH_W='cygpath -w'
19069 else
19070 CYGPATH_W=echo
19071 fi
19072fi
19073
19074
19075# Define the identity of the package.
19076 PACKAGE=libgnu
19077 VERSION=UNUSED-VERSION
19078
19079
19080# Some tools Automake needs.
19081
19082ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19083
19084
19085AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19086
19087
19088AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19089
19090
19091AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19092
19093
19094MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19095
19096# We need awk for the "check" target. The system "awk" is bad on
19097# some platforms.
19098# Always define AMTAR for backward compatibility.
19099
19100AMTAR=${AMTAR-"${am_missing_run}tar"}
19101
19102am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19103
19104
19105
19106
19107depcc="$CC" am_compiler_list=
19108
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19110$as_echo_n "checking dependency style of $depcc... " >&6; }
19111if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19112 $as_echo_n "(cached) " >&6
19113else
19114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19115 # We make a subdir and do the tests there. Otherwise we can end up
19116 # making bogus files that we don't know about and never remove. For
19117 # instance it was reported that on HP-UX the gcc test will end up
19118 # making a dummy file named `D' -- because `-MD' means `put the output
19119 # in D'.
19120 mkdir conftest.dir
19121 # Copy depcomp to subdir because otherwise we won't find it if we're
19122 # using a relative directory.
19123 cp "$am_depcomp" conftest.dir
19124 cd conftest.dir
19125 # We will build objects and dependencies in a subdirectory because
19126 # it helps to detect inapplicable dependency modes. For instance
19127 # both Tru64's cc and ICC support -MD to output dependencies as a
19128 # side effect of compilation, but ICC will put the dependencies in
19129 # the current directory while Tru64 will put them in the object
19130 # directory.
19131 mkdir sub
19132
19133 am_cv_CC_dependencies_compiler_type=none
19134 if test "$am_compiler_list" = ""; then
19135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19136 fi
19137 am__universal=false
19138 case " $depcc " in #(
19139 *\ -arch\ *\ -arch\ *) am__universal=true ;;
19140 esac
19141
19142 for depmode in $am_compiler_list; do
19143 # Setup a source with many dependencies, because some compilers
19144 # like to wrap large dependency lists on column 80 (with \), and
19145 # we should not choose a depcomp mode which is confused by this.
19146 #
19147 # We need to recreate these files for each test, as the compiler may
19148 # overwrite some of them when testing with obscure command lines.
19149 # This happens at least with the AIX C compiler.
19150 : > sub/conftest.c
19151 for i in 1 2 3 4 5 6; do
19152 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19153 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19154 # Solaris 8's {/usr,}/bin/sh.
19155 touch sub/conftst$i.h
19156 done
19157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19158
19159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19160 # mode. It turns out that the SunPro C++ compiler does not properly
19161 # handle `-M -o', and we need to detect this. Also, some Intel
19162 # versions had trouble with output in subdirs
19163 am__obj=sub/conftest.${OBJEXT-o}
19164 am__minus_obj="-o $am__obj"
19165 case $depmode in
19166 gcc)
19167 # This depmode causes a compiler race in universal mode.
19168 test "$am__universal" = false || continue
19169 ;;
19170 nosideeffect)
19171 # after this tag, mechanisms are not by side-effect, so they'll
19172 # only be used when explicitly requested
19173 if test "x$enable_dependency_tracking" = xyes; then
19174 continue
19175 else
19176 break
19177 fi
19178 ;;
19179 msvisualcpp | msvcmsys)
19180 # This compiler won't grok `-c -o', but also, the minuso test has
19181 # not run yet. These depmodes are late enough in the game, and
19182 # so weak that their functioning should not be impacted.
19183 am__obj=conftest.${OBJEXT-o}
19184 am__minus_obj=
19185 ;;
19186 none) break ;;
19187 esac
19188 if depmode=$depmode \
19189 source=sub/conftest.c object=$am__obj \
19190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19191 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19192 >/dev/null 2>conftest.err &&
19193 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19195 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19197 # icc doesn't choke on unknown options, it will just issue warnings
19198 # or remarks (even with -Werror). So we grep stderr for any message
19199 # that says an option was ignored or not supported.
19200 # When given -MP, icc 7.0 and 7.1 complain thusly:
19201 # icc: Command line warning: ignoring option '-M'; no argument required
19202 # The diagnosis changed in icc 8.0:
19203 # icc: Command line remark: option '-MP' not supported
19204 if (grep 'ignoring option' conftest.err ||
19205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19206 am_cv_CC_dependencies_compiler_type=$depmode
19207 break
19208 fi
19209 fi
19210 done
19211
19212 cd ..
19213 rm -rf conftest.dir
19214else
19215 am_cv_CC_dependencies_compiler_type=none
19216fi
19217
19218fi
19219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19220$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19221CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19222
19223 if
19224 test "x$enable_dependency_tracking" != xno \
19225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19226 am__fastdepCC_TRUE=
19227 am__fastdepCC_FALSE='#'
19228else
19229 am__fastdepCC_TRUE='#'
19230 am__fastdepCC_FALSE=
19231fi
19232
19233
19234
19235
19236# --------------------- #
19237# Checks for programs. #
19238# --------------------- #
19239
19240
19241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19242$as_echo_n "checking whether ln -s works... " >&6; }
19243LN_S=$as_ln_s
19244if test "$LN_S" = "ln -s"; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246$as_echo "yes" >&6; }
19247else
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19249$as_echo "no, using $LN_S" >&6; }
19250fi
19251
19252if test -n "$ac_tool_prefix"; then
19253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19254set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19256$as_echo_n "checking for $ac_word... " >&6; }
19257if test "${ac_cv_prog_RANLIB+set}" = set; then :
19258 $as_echo_n "(cached) " >&6
19259else
19260 if test -n "$RANLIB"; then
19261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19262else
19263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19264for as_dir in $PATH
19265do
19266 IFS=$as_save_IFS
19267 test -z "$as_dir" && as_dir=.
19268 for ac_exec_ext in '' $ac_executable_extensions; do
19269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19272 break 2
19273 fi
19274done
19275 done
19276IFS=$as_save_IFS
19277
19278fi
19279fi
19280RANLIB=$ac_cv_prog_RANLIB
19281if test -n "$RANLIB"; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19283$as_echo "$RANLIB" >&6; }
19284else
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286$as_echo "no" >&6; }
19287fi
19288
19289
19290fi
19291if test -z "$ac_cv_prog_RANLIB"; then
19292 ac_ct_RANLIB=$RANLIB
19293 # Extract the first word of "ranlib", so it can be a program name with args.
19294set dummy ranlib; ac_word=$2
19295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19296$as_echo_n "checking for $ac_word... " >&6; }
19297if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19298 $as_echo_n "(cached) " >&6
19299else
19300 if test -n "$ac_ct_RANLIB"; then
19301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19302else
19303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304for as_dir in $PATH
19305do
19306 IFS=$as_save_IFS
19307 test -z "$as_dir" && as_dir=.
19308 for ac_exec_ext in '' $ac_executable_extensions; do
19309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310 ac_cv_prog_ac_ct_RANLIB="ranlib"
19311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19312 break 2
19313 fi
19314done
19315 done
19316IFS=$as_save_IFS
19317
19318fi
19319fi
19320ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19321if test -n "$ac_ct_RANLIB"; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19323$as_echo "$ac_ct_RANLIB" >&6; }
19324else
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326$as_echo "no" >&6; }
19327fi
19328
19329 if test "x$ac_ct_RANLIB" = x; then
19330 RANLIB=":"
19331 else
19332 case $cross_compiling:$ac_tool_warned in
19333yes:)
19334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19336ac_tool_warned=yes ;;
19337esac
19338 RANLIB=$ac_ct_RANLIB
19339 fi
19340else
19341 RANLIB="$ac_cv_prog_RANLIB"
19342fi
19343
19344
19345if test -n "$ac_tool_prefix"; then
19346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19347set dummy ${ac_tool_prefix}ar; ac_word=$2
19348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349$as_echo_n "checking for $ac_word... " >&6; }
19350if test "${ac_cv_prog_AR+set}" = set; then :
19351 $as_echo_n "(cached) " >&6
19352else
19353 if test -n "$AR"; then
19354 ac_cv_prog_AR="$AR" # Let the user override the test.
19355else
19356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19357for as_dir in $PATH
19358do
19359 IFS=$as_save_IFS
19360 test -z "$as_dir" && as_dir=.
19361 for ac_exec_ext in '' $ac_executable_extensions; do
19362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19363 ac_cv_prog_AR="${ac_tool_prefix}ar"
19364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19365 break 2
19366 fi
19367done
19368 done
19369IFS=$as_save_IFS
19370
19371fi
19372fi
19373AR=$ac_cv_prog_AR
19374if test -n "$AR"; then
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19376$as_echo "$AR" >&6; }
19377else
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379$as_echo "no" >&6; }
19380fi
19381
19382
19383fi
19384if test -z "$ac_cv_prog_AR"; then
19385 ac_ct_AR=$AR
19386 # Extract the first word of "ar", so it can be a program name with args.
19387set dummy ar; ac_word=$2
19388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19389$as_echo_n "checking for $ac_word... " >&6; }
19390if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19391 $as_echo_n "(cached) " >&6
19392else
19393 if test -n "$ac_ct_AR"; then
19394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19395else
19396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397for as_dir in $PATH
19398do
19399 IFS=$as_save_IFS
19400 test -z "$as_dir" && as_dir=.
19401 for ac_exec_ext in '' $ac_executable_extensions; do
19402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19403 ac_cv_prog_ac_ct_AR="ar"
19404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19405 break 2
19406 fi
19407done
19408 done
19409IFS=$as_save_IFS
19410
19411fi
19412fi
19413ac_ct_AR=$ac_cv_prog_ac_ct_AR
19414if test -n "$ac_ct_AR"; then
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19416$as_echo "$ac_ct_AR" >&6; }
19417else
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419$as_echo "no" >&6; }
19420fi
19421
19422 if test "x$ac_ct_AR" = x; then
19423 AR=""
19424 else
19425 case $cross_compiling:$ac_tool_warned in
19426yes:)
19427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19429ac_tool_warned=yes ;;
19430esac
19431 AR=$ac_ct_AR
19432 fi
19433else
19434 AR="$ac_cv_prog_AR"
19435fi
19436
19437
19438# ---------------------- #
19439# Checks for libraries. #
19440# ---------------------- #
19441
19442ac_config_files="$ac_config_files Makefile import/Makefile"
19443
19444ac_config_commands="$ac_config_commands default"
19445
19446cat >confcache <<\_ACEOF
19447# This file is a shell script that caches the results of configure
19448# tests run on this system so they can be shared between configure
19449# scripts and configure runs, see configure's option --config-cache.
19450# It is not useful on other systems. If it contains results you don't
19451# want to keep, you may remove or edit it.
19452#
19453# config.status only pays attention to the cache file if you give it
19454# the --recheck option to rerun configure.
19455#
19456# `ac_cv_env_foo' variables (set or unset) will be overridden when
19457# loading this file, other *unset* `ac_cv_foo' will be assigned the
19458# following values.
19459
19460_ACEOF
19461
19462# The following way of writing the cache mishandles newlines in values,
19463# but we know of no workaround that is simple, portable, and efficient.
19464# So, we kill variables containing newlines.
19465# Ultrix sh set writes to stderr and can't be redirected directly,
19466# and sets the high bit in the cache file unless we assign to the vars.
19467(
19468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19469 eval ac_val=\$$ac_var
19470 case $ac_val in #(
19471 *${as_nl}*)
19472 case $ac_var in #(
19473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19475 esac
19476 case $ac_var in #(
19477 _ | IFS | as_nl) ;; #(
19478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19479 *) { eval $ac_var=; unset $ac_var;} ;;
19480 esac ;;
19481 esac
19482 done
19483
19484 (set) 2>&1 |
19485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19486 *${as_nl}ac_space=\ *)
19487 # `set' does not quote correctly, so add quotes: double-quote
19488 # substitution turns \\\\ into \\, and sed turns \\ into \.
19489 sed -n \
19490 "s/'/'\\\\''/g;
19491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19492 ;; #(
19493 *)
19494 # `set' quotes correctly as required by POSIX, so do not add quotes.
19495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19496 ;;
19497 esac |
19498 sort
19499) |
19500 sed '
19501 /^ac_cv_env_/b end
19502 t clear
19503 :clear
19504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19505 t end
19506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19507 :end' >>confcache
19508if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19509 if test -w "$cache_file"; then
19510 test "x$cache_file" != "x/dev/null" &&
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19512$as_echo "$as_me: updating cache $cache_file" >&6;}
19513 cat confcache >$cache_file
19514 else
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19516$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19517 fi
19518fi
19519rm -f confcache
19520
19521test "x$prefix" = xNONE && prefix=$ac_default_prefix
19522# Let make expand exec_prefix.
19523test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19524
19525DEFS=-DHAVE_CONFIG_H
19526
19527ac_libobjs=
19528ac_ltlibobjs=
19529for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19530 # 1. Remove the extension, and $U if already installed.
19531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19534 # will be set to the directory where LIBOBJS objects are built.
19535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19537done
19538LIBOBJS=$ac_libobjs
19539
19540LTLIBOBJS=$ac_ltlibobjs
19541
19542
19543if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19544 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
19545Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546fi
19547if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19548 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
19549Usually this means the macro was only invoked conditionally." "$LINENO" 5
19550fi
8690e634
JK
19551if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19552 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19553Usually this means the macro was only invoked conditionally." "$LINENO" 5
19554fi
18848e28
GF
19555if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19556 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19557Usually this means the macro was only invoked conditionally." "$LINENO" 5
19558fi
88b48903
WN
19559if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19560 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19561Usually this means the macro was only invoked conditionally." "$LINENO" 5
19562fi
8690e634
JK
19563if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19564 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19565Usually this means the macro was only invoked conditionally." "$LINENO" 5
19566fi
c971b7fa
PA
19567if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19568 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
19569Usually this means the macro was only invoked conditionally." "$LINENO" 5
19570fi
88b48903
WN
19571
19572
8690e634
JK
19573if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19574 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19575Usually this means the macro was only invoked conditionally." "$LINENO" 5
19576fi
c971b7fa
PA
19577if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19578 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19579Usually this means the macro was only invoked conditionally." "$LINENO" 5
19580fi
19581
19582 gl_libobjs=
19583 gl_ltlibobjs=
19584 if test -n "$gl_LIBOBJS"; then
19585 # Remove the extension.
19586 sed_drop_objext='s/\.o$//;s/\.obj$//'
19587 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19588 gl_libobjs="$gl_libobjs $i.$ac_objext"
19589 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19590 done
19591 fi
19592 gl_LIBOBJS=$gl_libobjs
19593
19594 gl_LTLIBOBJS=$gl_ltlibobjs
19595
19596
19597
19598 gltests_libobjs=
19599 gltests_ltlibobjs=
19600 if test -n "$gltests_LIBOBJS"; then
19601 # Remove the extension.
19602 sed_drop_objext='s/\.o$//;s/\.obj$//'
19603 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19604 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19605 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19606 done
19607 fi
19608 gltests_LIBOBJS=$gltests_libobjs
19609
19610 gltests_LTLIBOBJS=$gltests_ltlibobjs
19611
19612
19613if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19614 as_fn_error "conditional \"AMDEP\" was never defined.
19615Usually this means the macro was only invoked conditionally." "$LINENO" 5
19616fi
19617if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19618 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19619Usually this means the macro was only invoked conditionally." "$LINENO" 5
19620fi
19621 if test -n "$EXEEXT"; then
19622 am__EXEEXT_TRUE=
19623 am__EXEEXT_FALSE='#'
19624else
19625 am__EXEEXT_TRUE='#'
19626 am__EXEEXT_FALSE=
19627fi
19628
19629
19630: ${CONFIG_STATUS=./config.status}
19631ac_write_fail=0
19632ac_clean_files_save=$ac_clean_files
19633ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19634{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19635$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19636as_write_fail=0
19637cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19638#! $SHELL
19639# Generated by $as_me.
19640# Run this file to recreate the current configuration.
19641# Compiler output produced by configure, useful for debugging
19642# configure, is in config.log if it exists.
19643
19644debug=false
19645ac_cs_recheck=false
19646ac_cs_silent=false
19647
19648SHELL=\${CONFIG_SHELL-$SHELL}
19649export SHELL
19650_ASEOF
19651cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19652## -------------------- ##
19653## M4sh Initialization. ##
19654## -------------------- ##
19655
19656# Be more Bourne compatible
19657DUALCASE=1; export DUALCASE # for MKS sh
19658if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19659 emulate sh
19660 NULLCMD=:
19661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19662 # is contrary to our usage. Disable this feature.
19663 alias -g '${1+"$@"}'='"$@"'
19664 setopt NO_GLOB_SUBST
19665else
19666 case `(set -o) 2>/dev/null` in #(
19667 *posix*) :
19668 set -o posix ;; #(
19669 *) :
19670 ;;
19671esac
19672fi
19673
19674
19675as_nl='
19676'
19677export as_nl
19678# Printing a long string crashes Solaris 7 /usr/bin/printf.
19679as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19680as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19682# Prefer a ksh shell builtin over an external printf program on Solaris,
19683# but without wasting forks for bash or zsh.
19684if test -z "$BASH_VERSION$ZSH_VERSION" \
19685 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19686 as_echo='print -r --'
19687 as_echo_n='print -rn --'
19688elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19689 as_echo='printf %s\n'
19690 as_echo_n='printf %s'
19691else
19692 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19693 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19694 as_echo_n='/usr/ucb/echo -n'
19695 else
19696 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19697 as_echo_n_body='eval
19698 arg=$1;
19699 case $arg in #(
19700 *"$as_nl"*)
19701 expr "X$arg" : "X\\(.*\\)$as_nl";
19702 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19703 esac;
19704 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19705 '
19706 export as_echo_n_body
19707 as_echo_n='sh -c $as_echo_n_body as_echo'
19708 fi
19709 export as_echo_body
19710 as_echo='sh -c $as_echo_body as_echo'
19711fi
19712
19713# The user is always right.
19714if test "${PATH_SEPARATOR+set}" != set; then
19715 PATH_SEPARATOR=:
19716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19718 PATH_SEPARATOR=';'
19719 }
19720fi
19721
19722
19723# IFS
19724# We need space, tab and new line, in precisely that order. Quoting is
19725# there to prevent editors from complaining about space-tab.
19726# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19727# splitting by setting IFS to empty value.)
19728IFS=" "" $as_nl"
19729
19730# Find who we are. Look in the path if we contain no directory separator.
19731case $0 in #((
19732 *[\\/]* ) as_myself=$0 ;;
19733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19734for as_dir in $PATH
19735do
19736 IFS=$as_save_IFS
19737 test -z "$as_dir" && as_dir=.
19738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19739 done
19740IFS=$as_save_IFS
19741
19742 ;;
19743esac
19744# We did not find ourselves, most probably we were run as `sh COMMAND'
19745# in which case we are not to be found in the path.
19746if test "x$as_myself" = x; then
19747 as_myself=$0
19748fi
19749if test ! -f "$as_myself"; then
19750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19751 exit 1
19752fi
19753
19754# Unset variables that we do not need and which cause bugs (e.g. in
19755# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19756# suppresses any "Segmentation fault" message there. '((' could
19757# trigger a bug in pdksh 5.2.14.
19758for as_var in BASH_ENV ENV MAIL MAILPATH
19759do eval test x\${$as_var+set} = xset \
19760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19761done
19762PS1='$ '
19763PS2='> '
19764PS4='+ '
19765
19766# NLS nuisances.
19767LC_ALL=C
19768export LC_ALL
19769LANGUAGE=C
19770export LANGUAGE
19771
19772# CDPATH.
19773(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19774
19775
19776# as_fn_error ERROR [LINENO LOG_FD]
19777# ---------------------------------
19778# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19779# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19780# script with status $?, using 1 if that was 0.
19781as_fn_error ()
19782{
19783 as_status=$?; test $as_status -eq 0 && as_status=1
19784 if test "$3"; then
19785 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19787 fi
19788 $as_echo "$as_me: error: $1" >&2
19789 as_fn_exit $as_status
19790} # as_fn_error
19791
19792
19793# as_fn_set_status STATUS
19794# -----------------------
19795# Set $? to STATUS, without forking.
19796as_fn_set_status ()
19797{
19798 return $1
19799} # as_fn_set_status
19800
19801# as_fn_exit STATUS
19802# -----------------
19803# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19804as_fn_exit ()
19805{
19806 set +e
19807 as_fn_set_status $1
19808 exit $1
19809} # as_fn_exit
19810
19811# as_fn_unset VAR
19812# ---------------
19813# Portably unset VAR.
19814as_fn_unset ()
19815{
19816 { eval $1=; unset $1;}
19817}
19818as_unset=as_fn_unset
19819# as_fn_append VAR VALUE
19820# ----------------------
19821# Append the text in VALUE to the end of the definition contained in VAR. Take
19822# advantage of any shell optimizations that allow amortized linear growth over
19823# repeated appends, instead of the typical quadratic growth present in naive
19824# implementations.
19825if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19826 eval 'as_fn_append ()
19827 {
19828 eval $1+=\$2
19829 }'
19830else
19831 as_fn_append ()
19832 {
19833 eval $1=\$$1\$2
19834 }
19835fi # as_fn_append
19836
19837# as_fn_arith ARG...
19838# ------------------
19839# Perform arithmetic evaluation on the ARGs, and store the result in the
19840# global $as_val. Take advantage of shells that can avoid forks. The arguments
19841# must be portable across $(()) and expr.
19842if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19843 eval 'as_fn_arith ()
19844 {
19845 as_val=$(( $* ))
19846 }'
19847else
19848 as_fn_arith ()
19849 {
19850 as_val=`expr "$@" || test $? -eq 1`
19851 }
19852fi # as_fn_arith
19853
19854
19855if expr a : '\(a\)' >/dev/null 2>&1 &&
19856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19857 as_expr=expr
19858else
19859 as_expr=false
19860fi
19861
19862if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19863 as_basename=basename
19864else
19865 as_basename=false
19866fi
19867
19868if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19869 as_dirname=dirname
19870else
19871 as_dirname=false
19872fi
19873
19874as_me=`$as_basename -- "$0" ||
19875$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19876 X"$0" : 'X\(//\)$' \| \
19877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19878$as_echo X/"$0" |
19879 sed '/^.*\/\([^/][^/]*\)\/*$/{
19880 s//\1/
19881 q
19882 }
19883 /^X\/\(\/\/\)$/{
19884 s//\1/
19885 q
19886 }
19887 /^X\/\(\/\).*/{
19888 s//\1/
19889 q
19890 }
19891 s/.*/./; q'`
19892
19893# Avoid depending upon Character Ranges.
19894as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19895as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19896as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19897as_cr_digits='0123456789'
19898as_cr_alnum=$as_cr_Letters$as_cr_digits
19899
19900ECHO_C= ECHO_N= ECHO_T=
19901case `echo -n x` in #(((((
19902-n*)
19903 case `echo 'xy\c'` in
19904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19905 xy) ECHO_C='\c';;
19906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19907 ECHO_T=' ';;
19908 esac;;
19909*)
19910 ECHO_N='-n';;
19911esac
19912
19913rm -f conf$$ conf$$.exe conf$$.file
19914if test -d conf$$.dir; then
19915 rm -f conf$$.dir/conf$$.file
19916else
19917 rm -f conf$$.dir
19918 mkdir conf$$.dir 2>/dev/null
19919fi
19920if (echo >conf$$.file) 2>/dev/null; then
19921 if ln -s conf$$.file conf$$ 2>/dev/null; then
19922 as_ln_s='ln -s'
19923 # ... but there are two gotchas:
19924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19926 # In both cases, we have to default to `cp -p'.
19927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19928 as_ln_s='cp -p'
19929 elif ln conf$$.file conf$$ 2>/dev/null; then
19930 as_ln_s=ln
19931 else
19932 as_ln_s='cp -p'
19933 fi
19934else
19935 as_ln_s='cp -p'
19936fi
19937rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19938rmdir conf$$.dir 2>/dev/null
19939
19940
19941# as_fn_mkdir_p
19942# -------------
19943# Create "$as_dir" as a directory, including parents if necessary.
19944as_fn_mkdir_p ()
19945{
19946
19947 case $as_dir in #(
19948 -*) as_dir=./$as_dir;;
19949 esac
19950 test -d "$as_dir" || eval $as_mkdir_p || {
19951 as_dirs=
19952 while :; do
19953 case $as_dir in #(
19954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19955 *) as_qdir=$as_dir;;
19956 esac
19957 as_dirs="'$as_qdir' $as_dirs"
19958 as_dir=`$as_dirname -- "$as_dir" ||
19959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19960 X"$as_dir" : 'X\(//\)[^/]' \| \
19961 X"$as_dir" : 'X\(//\)$' \| \
19962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19963$as_echo X"$as_dir" |
19964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19965 s//\1/
19966 q
19967 }
19968 /^X\(\/\/\)[^/].*/{
19969 s//\1/
19970 q
19971 }
19972 /^X\(\/\/\)$/{
19973 s//\1/
19974 q
19975 }
19976 /^X\(\/\).*/{
19977 s//\1/
19978 q
19979 }
19980 s/.*/./; q'`
19981 test -d "$as_dir" && break
19982 done
19983 test -z "$as_dirs" || eval "mkdir $as_dirs"
19984 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19985
19986
19987} # as_fn_mkdir_p
19988if mkdir -p . 2>/dev/null; then
19989 as_mkdir_p='mkdir -p "$as_dir"'
19990else
19991 test -d ./-p && rmdir ./-p
19992 as_mkdir_p=false
19993fi
19994
19995if test -x / >/dev/null 2>&1; then
19996 as_test_x='test -x'
19997else
19998 if ls -dL / >/dev/null 2>&1; then
19999 as_ls_L_option=L
20000 else
20001 as_ls_L_option=
20002 fi
20003 as_test_x='
20004 eval sh -c '\''
20005 if test -d "$1"; then
20006 test -d "$1/.";
20007 else
20008 case $1 in #(
20009 -*)set "./$1";;
20010 esac;
20011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20012 ???[sx]*):;;*)false;;esac;fi
20013 '\'' sh
20014 '
20015fi
20016as_executable_p=$as_test_x
20017
20018# Sed expression to map a string onto a valid CPP name.
20019as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20020
20021# Sed expression to map a string onto a valid variable name.
20022as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20023
20024
20025exec 6>&1
20026## ----------------------------------- ##
20027## Main body of $CONFIG_STATUS script. ##
20028## ----------------------------------- ##
20029_ASEOF
20030test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20031
20032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20033# Save the log message, to keep $0 and so on meaningful, and to
20034# report actual input values of CONFIG_FILES etc. instead of their
20035# values after options handling.
20036ac_log="
20037This file was extended by $as_me, which was
20038generated by GNU Autoconf 2.64. Invocation command line was
20039
20040 CONFIG_FILES = $CONFIG_FILES
20041 CONFIG_HEADERS = $CONFIG_HEADERS
20042 CONFIG_LINKS = $CONFIG_LINKS
20043 CONFIG_COMMANDS = $CONFIG_COMMANDS
20044 $ $0 $@
20045
20046on `(hostname || uname -n) 2>/dev/null | sed 1q`
20047"
20048
20049_ACEOF
20050
20051case $ac_config_files in *"
20052"*) set x $ac_config_files; shift; ac_config_files=$*;;
20053esac
20054
20055case $ac_config_headers in *"
20056"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20057esac
20058
20059
20060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20061# Files that config.status was made for.
20062config_files="$ac_config_files"
20063config_headers="$ac_config_headers"
20064config_commands="$ac_config_commands"
20065
20066_ACEOF
20067
20068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20069ac_cs_usage="\
20070\`$as_me' instantiates files and other configuration actions
20071from templates according to the current configuration. Unless the files
20072and actions are specified as TAGs, all are instantiated by default.
20073
20074Usage: $0 [OPTION]... [TAG]...
20075
20076 -h, --help print this help, then exit
20077 -V, --version print version number and configuration settings, then exit
20078 -q, --quiet, --silent
20079 do not print progress messages
20080 -d, --debug don't remove temporary files
20081 --recheck update $as_me by reconfiguring in the same conditions
20082 --file=FILE[:TEMPLATE]
20083 instantiate the configuration file FILE
20084 --header=FILE[:TEMPLATE]
20085 instantiate the configuration header FILE
20086
20087Configuration files:
20088$config_files
20089
20090Configuration headers:
20091$config_headers
20092
20093Configuration commands:
20094$config_commands
20095
20096Report bugs to the package provider."
20097
20098_ACEOF
20099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20100ac_cs_version="\\
20101config.status
20102configured by $0, generated by GNU Autoconf 2.64,
20103 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20104
20105Copyright (C) 2009 Free Software Foundation, Inc.
20106This config.status script is free software; the Free Software Foundation
20107gives unlimited permission to copy, distribute and modify it."
20108
20109ac_pwd='$ac_pwd'
20110srcdir='$srcdir'
20111INSTALL='$INSTALL'
20112MKDIR_P='$MKDIR_P'
20113AWK='$AWK'
20114test -n "\$AWK" || AWK=awk
20115_ACEOF
20116
20117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20118# The default lists apply if the user does not specify any file.
20119ac_need_defaults=:
20120while test $# != 0
20121do
20122 case $1 in
20123 --*=*)
20124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20125 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20126 ac_shift=:
20127 ;;
20128 *)
20129 ac_option=$1
20130 ac_optarg=$2
20131 ac_shift=shift
20132 ;;
20133 esac
20134
20135 case $ac_option in
20136 # Handling of the options.
20137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20138 ac_cs_recheck=: ;;
20139 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20140 $as_echo "$ac_cs_version"; exit ;;
20141 --debug | --debu | --deb | --de | --d | -d )
20142 debug=: ;;
20143 --file | --fil | --fi | --f )
20144 $ac_shift
20145 case $ac_optarg in
20146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20147 esac
20148 as_fn_append CONFIG_FILES " '$ac_optarg'"
20149 ac_need_defaults=false;;
20150 --header | --heade | --head | --hea )
20151 $ac_shift
20152 case $ac_optarg in
20153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20154 esac
20155 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20156 ac_need_defaults=false;;
20157 --he | --h)
20158 # Conflict between --help and --header
20159 as_fn_error "ambiguous option: \`$1'
20160Try \`$0 --help' for more information.";;
20161 --help | --hel | -h )
20162 $as_echo "$ac_cs_usage"; exit ;;
20163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20165 ac_cs_silent=: ;;
20166
20167 # This is an error.
20168 -*) as_fn_error "unrecognized option: \`$1'
20169Try \`$0 --help' for more information." ;;
20170
20171 *) as_fn_append ac_config_targets " $1"
20172 ac_need_defaults=false ;;
20173
20174 esac
20175 shift
20176done
20177
20178ac_configure_extra_args=
20179
20180if $ac_cs_silent; then
20181 exec 6>/dev/null
20182 ac_configure_extra_args="$ac_configure_extra_args --silent"
20183fi
20184
20185_ACEOF
20186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187if \$ac_cs_recheck; then
20188 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20189 shift
20190 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20191 CONFIG_SHELL='$SHELL'
20192 export CONFIG_SHELL
20193 exec "\$@"
20194fi
20195
20196_ACEOF
20197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20198exec 5>>config.log
20199{
20200 echo
20201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20202## Running $as_me. ##
20203_ASBOX
20204 $as_echo "$ac_log"
20205} >&5
20206
20207_ACEOF
20208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20209#
20210# INIT-COMMANDS
20211#
20212AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20213
20214_ACEOF
20215
20216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217
20218# Handling of arguments.
20219for ac_config_target in $ac_config_targets
20220do
20221 case $ac_config_target in
20222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20225 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
20226 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20227
20228 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20229 esac
20230done
20231
20232
20233# If the user did not use the arguments to specify the items to instantiate,
20234# then the envvar interface is used. Set only those that are not.
20235# We use the long form for the default assignment because of an extremely
20236# bizarre bug on SunOS 4.1.3.
20237if $ac_need_defaults; then
20238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20241fi
20242
20243# Have a temporary directory for convenience. Make it in the build tree
20244# simply because there is no reason against having it here, and in addition,
20245# creating and moving files from /tmp can sometimes cause problems.
20246# Hook for its removal unless debugging.
20247# Note that there is a small window in which the directory will not be cleaned:
20248# after its creation but before its name has been assigned to `$tmp'.
20249$debug ||
20250{
20251 tmp=
20252 trap 'exit_status=$?
20253 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20254' 0
20255 trap 'as_fn_exit 1' 1 2 13 15
20256}
20257# Create a (secure) tmp directory for tmp files.
20258
20259{
20260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20261 test -n "$tmp" && test -d "$tmp"
20262} ||
20263{
20264 tmp=./conf$$-$RANDOM
20265 (umask 077 && mkdir "$tmp")
20266} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20267
20268# Set up the scripts for CONFIG_FILES section.
20269# No need to generate them if there are no CONFIG_FILES.
20270# This happens for instance with `./config.status config.h'.
20271if test -n "$CONFIG_FILES"; then
20272
20273
20274ac_cr=`echo X | tr X '\015'`
20275# On cygwin, bash can eat \r inside `` if the user requested igncr.
20276# But we know of no other shell where ac_cr would be empty at this
20277# point, so we can use a bashism as a fallback.
20278if test "x$ac_cr" = x; then
20279 eval ac_cr=\$\'\\r\'
20280fi
20281ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20282if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20283 ac_cs_awk_cr='\r'
20284else
20285 ac_cs_awk_cr=$ac_cr
20286fi
20287
20288echo 'BEGIN {' >"$tmp/subs1.awk" &&
20289_ACEOF
20290
20291
20292{
20293 echo "cat >conf$$subs.awk <<_ACEOF" &&
20294 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20295 echo "_ACEOF"
20296} >conf$$subs.sh ||
20297 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20298ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20299ac_delim='%!_!# '
20300for ac_last_try in false false false false false :; do
20301 . ./conf$$subs.sh ||
20302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20303
20304 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20305 if test $ac_delim_n = $ac_delim_num; then
20306 break
20307 elif $ac_last_try; then
20308 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20309 else
20310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20311 fi
20312done
20313rm -f conf$$subs.sh
20314
20315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20316cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20317_ACEOF
20318sed -n '
20319h
20320s/^/S["/; s/!.*/"]=/
20321p
20322g
20323s/^[^!]*!//
20324:repl
20325t repl
20326s/'"$ac_delim"'$//
20327t delim
20328:nl
20329h
20330s/\(.\{148\}\).*/\1/
20331t more1
20332s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20333p
20334n
20335b repl
20336:more1
20337s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20338p
20339g
20340s/.\{148\}//
20341t nl
20342:delim
20343h
20344s/\(.\{148\}\).*/\1/
20345t more2
20346s/["\\]/\\&/g; s/^/"/; s/$/"/
20347p
20348b
20349:more2
20350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20351p
20352g
20353s/.\{148\}//
20354t delim
20355' <conf$$subs.awk | sed '
20356/^[^""]/{
20357 N
20358 s/\n//
20359}
20360' >>$CONFIG_STATUS || ac_write_fail=1
20361rm -f conf$$subs.awk
20362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20363_ACAWK
20364cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20365 for (key in S) S_is_set[key] = 1
20366 FS = "\a"
20367
20368}
20369{
20370 line = $ 0
20371 nfields = split(line, field, "@")
20372 substed = 0
20373 len = length(field[1])
20374 for (i = 2; i < nfields; i++) {
20375 key = field[i]
20376 keylen = length(key)
20377 if (S_is_set[key]) {
20378 value = S[key]
20379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20380 len += length(value) + length(field[++i])
20381 substed = 1
20382 } else
20383 len += 1 + keylen
20384 }
20385
20386 print line
20387}
20388
20389_ACAWK
20390_ACEOF
20391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20392if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20394else
20395 cat
20396fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20397 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20398_ACEOF
20399
20400# VPATH may cause trouble with some makes, so we remove $(srcdir),
20401# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20402# trailing colons and then remove the whole line if VPATH becomes empty
20403# (actually we leave an empty line to preserve line numbers).
20404if test "x$srcdir" = x.; then
20405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20406s/:*\$(srcdir):*/:/
20407s/:*\${srcdir}:*/:/
20408s/:*@srcdir@:*/:/
20409s/^\([^=]*=[ ]*\):*/\1/
20410s/:*$//
20411s/^[^=]*=[ ]*$//
20412}'
20413fi
20414
20415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20416fi # test -n "$CONFIG_FILES"
20417
20418# Set up the scripts for CONFIG_HEADERS section.
20419# No need to generate them if there are no CONFIG_HEADERS.
20420# This happens for instance with `./config.status Makefile'.
20421if test -n "$CONFIG_HEADERS"; then
20422cat >"$tmp/defines.awk" <<\_ACAWK ||
20423BEGIN {
20424_ACEOF
20425
20426# Transform confdefs.h into an awk script `defines.awk', embedded as
20427# here-document in config.status, that substitutes the proper values into
20428# config.h.in to produce config.h.
20429
20430# Create a delimiter string that does not exist in confdefs.h, to ease
20431# handling of long lines.
20432ac_delim='%!_!# '
20433for ac_last_try in false false :; do
20434 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20435 if test -z "$ac_t"; then
20436 break
20437 elif $ac_last_try; then
20438 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20439 else
20440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20441 fi
20442done
20443
20444# For the awk script, D is an array of macro values keyed by name,
20445# likewise P contains macro parameters if any. Preserve backslash
20446# newline sequences.
20447
20448ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20449sed -n '
20450s/.\{148\}/&'"$ac_delim"'/g
20451t rset
20452:rset
20453s/^[ ]*#[ ]*define[ ][ ]*/ /
20454t def
20455d
20456:def
20457s/\\$//
20458t bsnl
20459s/["\\]/\\&/g
20460s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20461D["\1"]=" \3"/p
20462s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20463d
20464:bsnl
20465s/["\\]/\\&/g
20466s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20467D["\1"]=" \3\\\\\\n"\\/p
20468t cont
20469s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20470t cont
20471d
20472:cont
20473n
20474s/.\{148\}/&'"$ac_delim"'/g
20475t clear
20476:clear
20477s/\\$//
20478t bsnlc
20479s/["\\]/\\&/g; s/^/"/; s/$/"/p
20480d
20481:bsnlc
20482s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20483b cont
20484' <confdefs.h | sed '
20485s/'"$ac_delim"'/"\\\
20486"/g' >>$CONFIG_STATUS || ac_write_fail=1
20487
20488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20489 for (key in D) D_is_set[key] = 1
20490 FS = "\a"
20491}
20492/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20493 line = \$ 0
20494 split(line, arg, " ")
20495 if (arg[1] == "#") {
20496 defundef = arg[2]
20497 mac1 = arg[3]
20498 } else {
20499 defundef = substr(arg[1], 2)
20500 mac1 = arg[2]
20501 }
20502 split(mac1, mac2, "(") #)
20503 macro = mac2[1]
20504 prefix = substr(line, 1, index(line, defundef) - 1)
20505 if (D_is_set[macro]) {
20506 # Preserve the white space surrounding the "#".
20507 print prefix "define", macro P[macro] D[macro]
20508 next
20509 } else {
20510 # Replace #undef with comments. This is necessary, for example,
20511 # in the case of _POSIX_SOURCE, which is predefined and required
20512 # on some systems where configure will not decide to define it.
20513 if (defundef == "undef") {
20514 print "/*", prefix defundef, macro, "*/"
20515 next
20516 }
20517 }
20518}
20519{ print }
20520_ACAWK
20521_ACEOF
20522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20524fi # test -n "$CONFIG_HEADERS"
20525
20526
20527eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20528shift
20529for ac_tag
20530do
20531 case $ac_tag in
20532 :[FHLC]) ac_mode=$ac_tag; continue;;
20533 esac
20534 case $ac_mode$ac_tag in
20535 :[FHL]*:*);;
20536 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20537 :[FH]-) ac_tag=-:-;;
20538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20539 esac
20540 ac_save_IFS=$IFS
20541 IFS=:
20542 set x $ac_tag
20543 IFS=$ac_save_IFS
20544 shift
20545 ac_file=$1
20546 shift
20547
20548 case $ac_mode in
20549 :L) ac_source=$1;;
20550 :[FH])
20551 ac_file_inputs=
20552 for ac_f
20553 do
20554 case $ac_f in
20555 -) ac_f="$tmp/stdin";;
20556 *) # Look for the file first in the build tree, then in the source tree
20557 # (if the path is not absolute). The absolute path cannot be DOS-style,
20558 # because $ac_f cannot contain `:'.
20559 test -f "$ac_f" ||
20560 case $ac_f in
20561 [\\/$]*) false;;
20562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20563 esac ||
20564 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20565 esac
20566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20567 as_fn_append ac_file_inputs " '$ac_f'"
20568 done
20569
20570 # Let's still pretend it is `configure' which instantiates (i.e., don't
20571 # use $as_me), people would be surprised to read:
20572 # /* config.h. Generated by config.status. */
20573 configure_input='Generated from '`
20574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20575 `' by configure.'
20576 if test x"$ac_file" != x-; then
20577 configure_input="$ac_file. $configure_input"
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20579$as_echo "$as_me: creating $ac_file" >&6;}
20580 fi
20581 # Neutralize special characters interpreted by sed in replacement strings.
20582 case $configure_input in #(
20583 *\&* | *\|* | *\\* )
20584 ac_sed_conf_input=`$as_echo "$configure_input" |
20585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20586 *) ac_sed_conf_input=$configure_input;;
20587 esac
20588
20589 case $ac_tag in
20590 *:-:* | *:-) cat >"$tmp/stdin" \
20591 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20592 esac
20593 ;;
20594 esac
20595
20596 ac_dir=`$as_dirname -- "$ac_file" ||
20597$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20598 X"$ac_file" : 'X\(//\)[^/]' \| \
20599 X"$ac_file" : 'X\(//\)$' \| \
20600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20601$as_echo X"$ac_file" |
20602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20603 s//\1/
20604 q
20605 }
20606 /^X\(\/\/\)[^/].*/{
20607 s//\1/
20608 q
20609 }
20610 /^X\(\/\/\)$/{
20611 s//\1/
20612 q
20613 }
20614 /^X\(\/\).*/{
20615 s//\1/
20616 q
20617 }
20618 s/.*/./; q'`
20619 as_dir="$ac_dir"; as_fn_mkdir_p
20620 ac_builddir=.
20621
20622case "$ac_dir" in
20623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20624*)
20625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20626 # A ".." for each directory in $ac_dir_suffix.
20627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20628 case $ac_top_builddir_sub in
20629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20631 esac ;;
20632esac
20633ac_abs_top_builddir=$ac_pwd
20634ac_abs_builddir=$ac_pwd$ac_dir_suffix
20635# for backward compatibility:
20636ac_top_builddir=$ac_top_build_prefix
20637
20638case $srcdir in
20639 .) # We are building in place.
20640 ac_srcdir=.
20641 ac_top_srcdir=$ac_top_builddir_sub
20642 ac_abs_top_srcdir=$ac_pwd ;;
20643 [\\/]* | ?:[\\/]* ) # Absolute name.
20644 ac_srcdir=$srcdir$ac_dir_suffix;
20645 ac_top_srcdir=$srcdir
20646 ac_abs_top_srcdir=$srcdir ;;
20647 *) # Relative name.
20648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20649 ac_top_srcdir=$ac_top_build_prefix$srcdir
20650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20651esac
20652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20653
20654
20655 case $ac_mode in
20656 :F)
20657 #
20658 # CONFIG_FILE
20659 #
20660
20661 case $INSTALL in
20662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20664 esac
20665 ac_MKDIR_P=$MKDIR_P
20666 case $MKDIR_P in
20667 [\\/$]* | ?:[\\/]* ) ;;
20668 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20669 esac
20670_ACEOF
20671
20672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20673# If the template does not know about datarootdir, expand it.
20674# FIXME: This hack should be removed a few years after 2.60.
20675ac_datarootdir_hack=; ac_datarootdir_seen=
20676ac_sed_dataroot='
20677/datarootdir/ {
20678 p
20679 q
20680}
20681/@datadir@/p
20682/@docdir@/p
20683/@infodir@/p
20684/@localedir@/p
20685/@mandir@/p'
20686case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20687*datarootdir*) ac_datarootdir_seen=yes;;
20688*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20690$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20691_ACEOF
20692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20693 ac_datarootdir_hack='
20694 s&@datadir@&$datadir&g
20695 s&@docdir@&$docdir&g
20696 s&@infodir@&$infodir&g
20697 s&@localedir@&$localedir&g
20698 s&@mandir@&$mandir&g
20699 s&\\\${datarootdir}&$datarootdir&g' ;;
20700esac
20701_ACEOF
20702
20703# Neutralize VPATH when `$srcdir' = `.'.
20704# Shell code in configure.ac might set extrasub.
20705# FIXME: do we really want to maintain this feature?
20706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707ac_sed_extra="$ac_vpsub
20708$extrasub
20709_ACEOF
20710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20711:t
20712/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20713s|@configure_input@|$ac_sed_conf_input|;t t
20714s&@top_builddir@&$ac_top_builddir_sub&;t t
20715s&@top_build_prefix@&$ac_top_build_prefix&;t t
20716s&@srcdir@&$ac_srcdir&;t t
20717s&@abs_srcdir@&$ac_abs_srcdir&;t t
20718s&@top_srcdir@&$ac_top_srcdir&;t t
20719s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20720s&@builddir@&$ac_builddir&;t t
20721s&@abs_builddir@&$ac_abs_builddir&;t t
20722s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20723s&@INSTALL@&$ac_INSTALL&;t t
20724s&@MKDIR_P@&$ac_MKDIR_P&;t t
20725$ac_datarootdir_hack
20726"
20727eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20728 || as_fn_error "could not create $ac_file" "$LINENO" 5
20729
20730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20731 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20734which seems to be undefined. Please make sure it is defined." >&5
20735$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20736which seems to be undefined. Please make sure it is defined." >&2;}
20737
20738 rm -f "$tmp/stdin"
20739 case $ac_file in
20740 -) cat "$tmp/out" && rm -f "$tmp/out";;
20741 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20742 esac \
20743 || as_fn_error "could not create $ac_file" "$LINENO" 5
20744 ;;
20745 :H)
20746 #
20747 # CONFIG_HEADER
20748 #
20749 if test x"$ac_file" != x-; then
20750 {
20751 $as_echo "/* $configure_input */" \
20752 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20753 } >"$tmp/config.h" \
20754 || as_fn_error "could not create $ac_file" "$LINENO" 5
20755 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20757$as_echo "$as_me: $ac_file is unchanged" >&6;}
20758 else
20759 rm -f "$ac_file"
20760 mv "$tmp/config.h" "$ac_file" \
20761 || as_fn_error "could not create $ac_file" "$LINENO" 5
20762 fi
20763 else
20764 $as_echo "/* $configure_input */" \
20765 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20766 || as_fn_error "could not create -" "$LINENO" 5
20767 fi
20768# Compute "$ac_file"'s index in $config_headers.
20769_am_arg="$ac_file"
20770_am_stamp_count=1
20771for _am_header in $config_headers :; do
20772 case $_am_header in
20773 $_am_arg | $_am_arg:* )
20774 break ;;
20775 * )
20776 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20777 esac
20778done
20779echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20780$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20781 X"$_am_arg" : 'X\(//\)[^/]' \| \
20782 X"$_am_arg" : 'X\(//\)$' \| \
20783 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20784$as_echo X"$_am_arg" |
20785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20786 s//\1/
20787 q
20788 }
20789 /^X\(\/\/\)[^/].*/{
20790 s//\1/
20791 q
20792 }
20793 /^X\(\/\/\)$/{
20794 s//\1/
20795 q
20796 }
20797 /^X\(\/\).*/{
20798 s//\1/
20799 q
20800 }
20801 s/.*/./; q'`/stamp-h$_am_stamp_count
20802 ;;
20803
20804 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20805$as_echo "$as_me: executing $ac_file commands" >&6;}
20806 ;;
20807 esac
20808
20809
20810 case $ac_file$ac_mode in
20811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20812 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20813 # are listed without --file. Let's play safe and only enable the eval
20814 # if we detect the quoting.
20815 case $CONFIG_FILES in
20816 *\'*) eval set x "$CONFIG_FILES" ;;
20817 *) set x $CONFIG_FILES ;;
20818 esac
20819 shift
20820 for mf
20821 do
20822 # Strip MF so we end up with the name of the file.
20823 mf=`echo "$mf" | sed -e 's/:.*$//'`
20824 # Check whether this is an Automake generated Makefile or not.
20825 # We used to match only the files named `Makefile.in', but
20826 # some people rename them; so instead we look at the file content.
20827 # Grep'ing the first line is not enough: some people post-process
20828 # each Makefile.in and add a new line on top of each file to say so.
20829 # Grep'ing the whole file is not good either: AIX grep has a line
20830 # limit of 2048, but all sed's we know have understand at least 4000.
20831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20832 dirpart=`$as_dirname -- "$mf" ||
20833$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20834 X"$mf" : 'X\(//\)[^/]' \| \
20835 X"$mf" : 'X\(//\)$' \| \
20836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20837$as_echo X"$mf" |
20838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20839 s//\1/
20840 q
20841 }
20842 /^X\(\/\/\)[^/].*/{
20843 s//\1/
20844 q
20845 }
20846 /^X\(\/\/\)$/{
20847 s//\1/
20848 q
20849 }
20850 /^X\(\/\).*/{
20851 s//\1/
20852 q
20853 }
20854 s/.*/./; q'`
20855 else
20856 continue
20857 fi
20858 # Extract the definition of DEPDIR, am__include, and am__quote
20859 # from the Makefile without running `make'.
20860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20861 test -z "$DEPDIR" && continue
20862 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20863 test -z "am__include" && continue
20864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20865 # When using ansi2knr, U may be empty or an underscore; expand it
20866 U=`sed -n 's/^U = //p' < "$mf"`
20867 # Find all dependency output files, they are included files with
20868 # $(DEPDIR) in their names. We invoke sed twice because it is the
20869 # simplest approach to changing $(DEPDIR) to its actual value in the
20870 # expansion.
20871 for file in `sed -n "
20872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20874 # Make sure the directory exists.
20875 test -f "$dirpart/$file" && continue
20876 fdir=`$as_dirname -- "$file" ||
20877$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20878 X"$file" : 'X\(//\)[^/]' \| \
20879 X"$file" : 'X\(//\)$' \| \
20880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20881$as_echo X"$file" |
20882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20883 s//\1/
20884 q
20885 }
20886 /^X\(\/\/\)[^/].*/{
20887 s//\1/
20888 q
20889 }
20890 /^X\(\/\/\)$/{
20891 s//\1/
20892 q
20893 }
20894 /^X\(\/\).*/{
20895 s//\1/
20896 q
20897 }
20898 s/.*/./; q'`
20899 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20900 # echo "creating $dirpart/$file"
20901 echo '# dummy' > "$dirpart/$file"
20902 done
20903 done
20904}
20905 ;;
20906 "default":C)
20907case x$CONFIG_HEADERS in
20908xconfig.h:config.in)
20909echo > stamp-h ;;
20910esac
20911 ;;
20912
20913 esac
20914done # for ac_tag
20915
20916
20917as_fn_exit 0
20918_ACEOF
20919ac_clean_files=$ac_clean_files_save
20920
20921test $ac_write_fail = 0 ||
20922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20923
20924
20925# configure is writing to config.log, and then calls config.status.
20926# config.status does its own redirection, appending to config.log.
20927# Unfortunately, on DOS this fails, as config.log is still kept open
20928# by configure, so config.status won't be able to write to it; its
20929# output is simply discarded. So we exec the FD to /dev/null,
20930# effectively closing config.log, so it can be properly (re)opened and
20931# appended to by config.status. When coming back to configure, we
20932# need to make the FD available again.
20933if test "$no_create" != yes; then
20934 ac_cs_success=:
20935 ac_config_status_args=
20936 test "$silent" = yes &&
20937 ac_config_status_args="$ac_config_status_args --quiet"
20938 exec 5>/dev/null
20939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20940 exec 5>>config.log
20941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20942 # would make configure fail if this is the last instruction.
20943 $ac_cs_success || as_fn_exit $?
20944fi
20945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20948fi
20949
20950
20951exit 0
This page took 1.21754 seconds and 4 git commands to generate.