Update gnulib to current upstream master
[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
6a29c58e
YQ
706REPLACE_VSPRINTF
707REPLACE_VSNPRINTF
708REPLACE_VPRINTF
709REPLACE_VFPRINTF
710REPLACE_VDPRINTF
711REPLACE_VASPRINTF
712REPLACE_TMPFILE
713REPLACE_STDIO_WRITE_FUNCS
714REPLACE_STDIO_READ_FUNCS
715REPLACE_SPRINTF
716REPLACE_SNPRINTF
717REPLACE_RENAMEAT
718REPLACE_RENAME
719REPLACE_REMOVE
720REPLACE_PRINTF
721REPLACE_POPEN
722REPLACE_PERROR
723REPLACE_OBSTACK_PRINTF
724REPLACE_GETLINE
725REPLACE_GETDELIM
726REPLACE_FTELLO
727REPLACE_FTELL
728REPLACE_FSEEKO
729REPLACE_FSEEK
730REPLACE_FREOPEN
731REPLACE_FPURGE
732REPLACE_FPRINTF
733REPLACE_FOPEN
734REPLACE_FFLUSH
735REPLACE_FDOPEN
736REPLACE_FCLOSE
737REPLACE_DPRINTF
738HAVE_VDPRINTF
739HAVE_VASPRINTF
740HAVE_RENAMEAT
741HAVE_POPEN
742HAVE_PCLOSE
743HAVE_FTELLO
744HAVE_FSEEKO
745HAVE_DPRINTF
746HAVE_DECL_VSNPRINTF
747HAVE_DECL_SNPRINTF
748HAVE_DECL_OBSTACK_PRINTF
749HAVE_DECL_GETLINE
750HAVE_DECL_GETDELIM
751HAVE_DECL_FTELLO
752HAVE_DECL_FSEEKO
753HAVE_DECL_FPURGE
754GNULIB_VSPRINTF_POSIX
755GNULIB_VSNPRINTF
756GNULIB_VPRINTF_POSIX
757GNULIB_VPRINTF
758GNULIB_VFPRINTF_POSIX
759GNULIB_VFPRINTF
760GNULIB_VDPRINTF
761GNULIB_VSCANF
762GNULIB_VFSCANF
763GNULIB_VASPRINTF
764GNULIB_TMPFILE
765GNULIB_STDIO_H_SIGPIPE
766GNULIB_STDIO_H_NONBLOCKING
767GNULIB_SPRINTF_POSIX
768GNULIB_SNPRINTF
769GNULIB_SCANF
770GNULIB_RENAMEAT
771GNULIB_RENAME
772GNULIB_REMOVE
773GNULIB_PUTS
774GNULIB_PUTCHAR
775GNULIB_PUTC
776GNULIB_PRINTF_POSIX
777GNULIB_PRINTF
778GNULIB_POPEN
779GNULIB_PERROR
780GNULIB_PCLOSE
781GNULIB_OBSTACK_PRINTF_POSIX
782GNULIB_OBSTACK_PRINTF
783GNULIB_GETLINE
784GNULIB_GETDELIM
785GNULIB_GETCHAR
786GNULIB_GETC
787GNULIB_FWRITE
788GNULIB_FTELLO
789GNULIB_FTELL
790GNULIB_FSEEKO
791GNULIB_FSEEK
792GNULIB_FSCANF
793GNULIB_FREOPEN
794GNULIB_FREAD
795GNULIB_FPUTS
796GNULIB_FPUTC
797GNULIB_FPURGE
798GNULIB_FPRINTF_POSIX
799GNULIB_FPRINTF
800GNULIB_FOPEN
801GNULIB_FGETS
802GNULIB_FGETC
803GNULIB_FFLUSH
804GNULIB_FDOPEN
805GNULIB_FCLOSE
806GNULIB_DPRINTF
c971b7fa
PA
807UNDEFINE_STRTOK_R
808REPLACE_STRTOK_R
809REPLACE_STRSIGNAL
810REPLACE_STRNLEN
811REPLACE_STRNDUP
812REPLACE_STRNCAT
813REPLACE_STRERROR_R
814REPLACE_STRERROR
815REPLACE_STRCHRNUL
816REPLACE_STRCASESTR
817REPLACE_STRSTR
818REPLACE_STRDUP
819REPLACE_STPNCPY
820REPLACE_MEMMEM
821REPLACE_MEMCHR
822HAVE_STRVERSCMP
823HAVE_DECL_STRSIGNAL
824HAVE_DECL_STRERROR_R
825HAVE_DECL_STRTOK_R
826HAVE_STRCASESTR
827HAVE_STRSEP
828HAVE_STRPBRK
829HAVE_DECL_STRNLEN
830HAVE_DECL_STRNDUP
831HAVE_DECL_STRDUP
832HAVE_STRCHRNUL
833HAVE_STPNCPY
834HAVE_STPCPY
835HAVE_RAWMEMCHR
836HAVE_DECL_MEMRCHR
837HAVE_MEMPCPY
838HAVE_DECL_MEMMEM
839HAVE_MEMCHR
840HAVE_FFSLL
841HAVE_FFSL
842HAVE_MBSLEN
843GNULIB_STRVERSCMP
844GNULIB_STRSIGNAL
845GNULIB_STRERROR_R
846GNULIB_STRERROR
847GNULIB_MBSTOK_R
848GNULIB_MBSSEP
849GNULIB_MBSSPN
850GNULIB_MBSPBRK
851GNULIB_MBSCSPN
852GNULIB_MBSCASESTR
853GNULIB_MBSPCASECMP
854GNULIB_MBSNCASECMP
855GNULIB_MBSCASECMP
856GNULIB_MBSSTR
857GNULIB_MBSRCHR
858GNULIB_MBSCHR
859GNULIB_MBSNLEN
860GNULIB_MBSLEN
861GNULIB_STRTOK_R
862GNULIB_STRCASESTR
863GNULIB_STRSTR
864GNULIB_STRSEP
865GNULIB_STRPBRK
866GNULIB_STRNLEN
867GNULIB_STRNDUP
868GNULIB_STRNCAT
869GNULIB_STRDUP
870GNULIB_STRCHRNUL
871GNULIB_STPNCPY
872GNULIB_STPCPY
873GNULIB_RAWMEMCHR
874GNULIB_MEMRCHR
875GNULIB_MEMPCPY
876GNULIB_MEMMEM
877GNULIB_MEMCHR
878GNULIB_FFSLL
879GNULIB_FFSL
8690e634
JK
880LOCALE_FR
881LOCALE_FR_UTF8
882LOCALE_ZH_CN
883LOCALE_JA
884REPLACE_WCSWIDTH
885REPLACE_WCWIDTH
886REPLACE_WCSNRTOMBS
887REPLACE_WCSRTOMBS
888REPLACE_WCRTOMB
889REPLACE_MBSNRTOWCS
890REPLACE_MBSRTOWCS
891REPLACE_MBRLEN
892REPLACE_MBRTOWC
893REPLACE_MBSINIT
894REPLACE_WCTOB
895REPLACE_BTOWC
896REPLACE_MBSTATE_T
897HAVE_DECL_WCWIDTH
898HAVE_DECL_WCTOB
899HAVE_WCSWIDTH
900HAVE_WCSTOK
901HAVE_WCSSTR
902HAVE_WCSPBRK
903HAVE_WCSSPN
904HAVE_WCSCSPN
905HAVE_WCSRCHR
906HAVE_WCSCHR
907HAVE_WCSDUP
908HAVE_WCSXFRM
909HAVE_WCSCOLL
910HAVE_WCSNCASECMP
911HAVE_WCSCASECMP
912HAVE_WCSNCMP
913HAVE_WCSCMP
914HAVE_WCSNCAT
915HAVE_WCSCAT
916HAVE_WCPNCPY
917HAVE_WCSNCPY
918HAVE_WCPCPY
919HAVE_WCSCPY
920HAVE_WCSNLEN
921HAVE_WCSLEN
922HAVE_WMEMSET
923HAVE_WMEMMOVE
924HAVE_WMEMCPY
925HAVE_WMEMCMP
926HAVE_WMEMCHR
927HAVE_WCSNRTOMBS
928HAVE_WCSRTOMBS
929HAVE_WCRTOMB
930HAVE_MBSNRTOWCS
931HAVE_MBSRTOWCS
932HAVE_MBRLEN
933HAVE_MBRTOWC
934HAVE_MBSINIT
935HAVE_BTOWC
936GNULIB_WCSWIDTH
937GNULIB_WCSTOK
938GNULIB_WCSSTR
939GNULIB_WCSPBRK
940GNULIB_WCSSPN
941GNULIB_WCSCSPN
942GNULIB_WCSRCHR
943GNULIB_WCSCHR
944GNULIB_WCSDUP
945GNULIB_WCSXFRM
946GNULIB_WCSCOLL
947GNULIB_WCSNCASECMP
948GNULIB_WCSCASECMP
949GNULIB_WCSNCMP
950GNULIB_WCSCMP
951GNULIB_WCSNCAT
952GNULIB_WCSCAT
953GNULIB_WCPNCPY
954GNULIB_WCSNCPY
955GNULIB_WCPCPY
956GNULIB_WCSCPY
957GNULIB_WCSNLEN
958GNULIB_WCSLEN
959GNULIB_WMEMSET
960GNULIB_WMEMMOVE
961GNULIB_WMEMCPY
962GNULIB_WMEMCMP
963GNULIB_WMEMCHR
964GNULIB_WCWIDTH
965GNULIB_WCSNRTOMBS
966GNULIB_WCSRTOMBS
967GNULIB_WCRTOMB
968GNULIB_MBSNRTOWCS
969GNULIB_MBSRTOWCS
970GNULIB_MBRLEN
971GNULIB_MBRTOWC
972GNULIB_MBSINIT
973GNULIB_WCTOB
974GNULIB_BTOWC
88b48903
WN
975NEXT_AS_FIRST_DIRECTIVE_MATH_H
976NEXT_MATH_H
f45c62c4
YQ
977REPLACE_UTIMENSAT
978REPLACE_STAT
979REPLACE_MKNOD
980REPLACE_MKFIFO
981REPLACE_MKDIR
982REPLACE_LSTAT
983REPLACE_FUTIMENS
984REPLACE_FSTATAT
985REPLACE_FSTAT
986HAVE_UTIMENSAT
987HAVE_MKNODAT
988HAVE_MKNOD
989HAVE_MKFIFOAT
990HAVE_MKFIFO
991HAVE_MKDIRAT
992HAVE_LSTAT
993HAVE_LCHMOD
994HAVE_FUTIMENS
995HAVE_FSTATAT
996HAVE_FCHMODAT
997GNULIB_UTIMENSAT
998GNULIB_STAT
999GNULIB_MKNODAT
1000GNULIB_MKNOD
1001GNULIB_MKFIFOAT
1002GNULIB_MKFIFO
1003GNULIB_MKDIRAT
1004GNULIB_LSTAT
1005GNULIB_LCHMOD
1006GNULIB_FUTIMENS
1007GNULIB_FSTATAT
1008GNULIB_FSTAT
1009GNULIB_FCHMODAT
8690e634
JK
1010LOCALCHARSET_TESTS_ENVIRONMENT
1011GLIBC21
c971b7fa
PA
1012NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1013NEXT_INTTYPES_H
1014UINT64_MAX_EQ_ULONG_MAX
1015UINT32_MAX_LT_UINTMAX_MAX
1016PRIPTR_PREFIX
1017PRI_MACROS_BROKEN
1018INT64_MAX_EQ_LONG_MAX
1019INT32_MAX_LT_INTMAX_MAX
4a626d0a 1020REPLACE_STRTOUMAX
c971b7fa
PA
1021REPLACE_STRTOIMAX
1022HAVE_DECL_STRTOUMAX
1023HAVE_DECL_STRTOIMAX
1024HAVE_DECL_IMAXDIV
1025HAVE_DECL_IMAXABS
1026GNULIB_STRTOUMAX
1027GNULIB_STRTOIMAX
1028GNULIB_IMAXDIV
1029GNULIB_IMAXABS
1030GL_GENERATE_STDINT_H_FALSE
1031GL_GENERATE_STDINT_H_TRUE
1032STDINT_H
1033WINT_T_SUFFIX
1034WCHAR_T_SUFFIX
1035SIG_ATOMIC_T_SUFFIX
1036SIZE_T_SUFFIX
1037PTRDIFF_T_SUFFIX
1038HAVE_SIGNED_WINT_T
1039HAVE_SIGNED_WCHAR_T
1040HAVE_SIGNED_SIG_ATOMIC_T
1041BITSIZEOF_WINT_T
1042BITSIZEOF_WCHAR_T
1043BITSIZEOF_SIG_ATOMIC_T
1044BITSIZEOF_SIZE_T
1045BITSIZEOF_PTRDIFF_T
1046APPLE_UNIVERSAL_BUILD
1047HAVE_SYS_BITYPES_H
1048HAVE_SYS_INTTYPES_H
1049HAVE_STDINT_H
1050NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1051NEXT_STDINT_H
c971b7fa
PA
1052HAVE_SYS_TYPES_H
1053HAVE_INTTYPES_H
1054HAVE_WCHAR_H
1055HAVE_UNSIGNED_LONG_LONG_INT
1056HAVE_LONG_LONG_INT
4a626d0a
PA
1057HAVE_WINSOCK2_H
1058NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1059NEXT_SYS_TIME_H
1060REPLACE_STRUCT_TIMEVAL
1061REPLACE_GETTIMEOFDAY
1062HAVE_TIMEZONE_T
1063HAVE_SYS_TIME_H
1064HAVE_STRUCT_TIMEVAL
1065HAVE_GETTIMEOFDAY
1066GNULIB_GETTIMEOFDAY
88b48903
WN
1067FREXPL_LIBM
1068HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1069FREXP_LIBM
1070REPLACE_TRUNCL
1071REPLACE_TRUNCF
1072REPLACE_TRUNC
1073REPLACE_SQRTL
1074REPLACE_SIGNBIT_USING_GCC
1075REPLACE_SIGNBIT
1076REPLACE_ROUNDL
1077REPLACE_ROUNDF
1078REPLACE_ROUND
1079REPLACE_REMAINDERL
1080REPLACE_REMAINDERF
1081REPLACE_REMAINDER
1082REPLACE_NAN
1083REPLACE_MODFL
1084REPLACE_MODFF
1085REPLACE_MODF
1086REPLACE_LOGBL
1087REPLACE_LOGBF
1088REPLACE_LOGB
1089REPLACE_LOG2L
1090REPLACE_LOG2F
1091REPLACE_LOG2
1092REPLACE_LOG1PL
1093REPLACE_LOG1PF
1094REPLACE_LOG1P
1095REPLACE_LOG10L
1096REPLACE_LOG10F
1097REPLACE_LOG10
1098REPLACE_LOGL
1099REPLACE_LOGF
1100REPLACE_LOG
1101REPLACE_LDEXPL
1102REPLACE_ISNAN
1103REPLACE_ISINF
1104REPLACE_ISFINITE
1105REPLACE_ILOGBF
1106REPLACE_ILOGB
1107REPLACE_HYPOTL
1108REPLACE_HYPOTF
1109REPLACE_HYPOT
1110REPLACE_HUGE_VAL
1111REPLACE_FREXPL
1112REPLACE_FREXP
1113REPLACE_FREXPF
1114REPLACE_FMODL
1115REPLACE_FMODF
1116REPLACE_FMOD
1117REPLACE_FMAL
1118REPLACE_FMAF
1119REPLACE_FMA
1120REPLACE_FLOORL
1121REPLACE_FLOORF
1122REPLACE_FLOOR
1123REPLACE_FABSL
1124REPLACE_EXP2L
1125REPLACE_EXP2
1126REPLACE_EXPM1F
1127REPLACE_EXPM1
1128REPLACE_CEILL
1129REPLACE_CEILF
1130REPLACE_CEIL
1131REPLACE_CBRTL
1132REPLACE_CBRTF
1133HAVE_DECL_TRUNCL
1134HAVE_DECL_TRUNCF
1135HAVE_DECL_TRUNC
1136HAVE_DECL_TANL
1137HAVE_DECL_SQRTL
1138HAVE_DECL_SINL
1139HAVE_DECL_ROUNDL
1140HAVE_DECL_ROUNDF
1141HAVE_DECL_ROUND
1142HAVE_DECL_RINTF
1143HAVE_DECL_REMAINDERL
1144HAVE_DECL_REMAINDER
1145HAVE_DECL_LOGB
1146HAVE_DECL_LOG2L
1147HAVE_DECL_LOG2F
1148HAVE_DECL_LOG2
1149HAVE_DECL_LOG10L
1150HAVE_DECL_LOGL
1151HAVE_DECL_LDEXPL
1152HAVE_DECL_FREXPL
1153HAVE_DECL_FLOORL
1154HAVE_DECL_FLOORF
1155HAVE_DECL_EXPM1L
1156HAVE_DECL_EXP2L
1157HAVE_DECL_EXP2F
1158HAVE_DECL_EXP2
1159HAVE_DECL_EXPL
1160HAVE_DECL_COSL
1161HAVE_DECL_COPYSIGNF
1162HAVE_DECL_CEILL
1163HAVE_DECL_CEILF
1164HAVE_DECL_CBRTL
1165HAVE_DECL_CBRTF
1166HAVE_DECL_ATANL
1167HAVE_DECL_ASINL
1168HAVE_DECL_ACOSL
1169HAVE_TANHF
1170HAVE_TANL
1171HAVE_TANF
1172HAVE_SQRTL
1173HAVE_SQRTF
1174HAVE_SINHF
1175HAVE_SINL
1176HAVE_SINF
1177HAVE_RINTL
1178HAVE_RINT
1179HAVE_REMAINDERF
1180HAVE_REMAINDER
1181HAVE_POWF
1182HAVE_MODFL
1183HAVE_MODFF
1184HAVE_LOGBL
1185HAVE_LOGBF
1186HAVE_LOG1PL
1187HAVE_LOG1PF
1188HAVE_LOG1P
1189HAVE_LOG10L
1190HAVE_LOG10F
1191HAVE_LOGL
1192HAVE_LOGF
1193HAVE_LDEXPF
1194HAVE_ISNANL
1195HAVE_ISNAND
1196HAVE_ISNANF
1197HAVE_ILOGBL
1198HAVE_ILOGBF
1199HAVE_ILOGB
1200HAVE_HYPOTL
1201HAVE_HYPOTF
1202HAVE_FREXPF
1203HAVE_FMODL
1204HAVE_FMODF
1205HAVE_FMAL
1206HAVE_FMAF
1207HAVE_FMA
1208HAVE_FABSL
1209HAVE_FABSF
1210HAVE_EXPM1F
1211HAVE_EXPM1
1212HAVE_EXPL
1213HAVE_EXPF
1214HAVE_COSHF
1215HAVE_COSL
1216HAVE_COSF
1217HAVE_COPYSIGNL
1218HAVE_COPYSIGN
1219HAVE_CBRTL
1220HAVE_CBRTF
1221HAVE_CBRT
1222HAVE_ATAN2F
1223HAVE_ATANL
1224HAVE_ATANF
1225HAVE_ASINL
1226HAVE_ASINF
1227HAVE_ACOSL
1228HAVE_ACOSF
1229GNULIB_TRUNCL
1230GNULIB_TRUNCF
1231GNULIB_TRUNC
1232GNULIB_TANHF
1233GNULIB_TANL
1234GNULIB_TANF
1235GNULIB_SQRTL
1236GNULIB_SQRTF
1237GNULIB_SINHF
1238GNULIB_SINL
1239GNULIB_SINF
1240GNULIB_SIGNBIT
1241GNULIB_ROUNDL
1242GNULIB_ROUNDF
1243GNULIB_ROUND
1244GNULIB_RINTL
1245GNULIB_RINTF
1246GNULIB_RINT
1247GNULIB_REMAINDERL
1248GNULIB_REMAINDERF
1249GNULIB_REMAINDER
1250GNULIB_POWF
1251GNULIB_MODFL
1252GNULIB_MODFF
1253GNULIB_MODF
1254GNULIB_LOGBL
1255GNULIB_LOGBF
1256GNULIB_LOGB
1257GNULIB_LOG2L
1258GNULIB_LOG2F
1259GNULIB_LOG2
1260GNULIB_LOG1PL
1261GNULIB_LOG1PF
1262GNULIB_LOG1P
1263GNULIB_LOG10L
1264GNULIB_LOG10F
1265GNULIB_LOG10
1266GNULIB_LOGL
1267GNULIB_LOGF
1268GNULIB_LOG
1269GNULIB_LDEXPL
1270GNULIB_LDEXPF
1271GNULIB_ISNANL
1272GNULIB_ISNAND
1273GNULIB_ISNANF
1274GNULIB_ISNAN
1275GNULIB_ISINF
1276GNULIB_ISFINITE
1277GNULIB_ILOGBL
1278GNULIB_ILOGBF
1279GNULIB_ILOGB
1280GNULIB_HYPOTL
1281GNULIB_HYPOTF
1282GNULIB_HYPOT
1283GNULIB_FREXPL
1284GNULIB_FREXP
1285GNULIB_FREXPF
1286GNULIB_FMODL
1287GNULIB_FMODF
1288GNULIB_FMOD
1289GNULIB_FMAL
1290GNULIB_FMAF
1291GNULIB_FMA
1292GNULIB_FLOORL
1293GNULIB_FLOORF
1294GNULIB_FLOOR
1295GNULIB_FABSL
1296GNULIB_FABSF
1297GNULIB_EXPM1L
1298GNULIB_EXPM1F
1299GNULIB_EXPM1
1300GNULIB_EXP2L
1301GNULIB_EXP2F
1302GNULIB_EXP2
1303GNULIB_EXPL
1304GNULIB_EXPF
1305GNULIB_COSHF
1306GNULIB_COSL
1307GNULIB_COSF
1308GNULIB_COPYSIGNL
1309GNULIB_COPYSIGNF
1310GNULIB_COPYSIGN
1311GNULIB_CEILL
1312GNULIB_CEILF
1313GNULIB_CEIL
1314GNULIB_CBRTL
1315GNULIB_CBRTF
1316GNULIB_CBRT
1317GNULIB_ATAN2F
1318GNULIB_ATANL
1319GNULIB_ATANF
1320GNULIB_ASINL
1321GNULIB_ASINF
1322GNULIB_ACOSL
1323GNULIB_ACOSF
8690e634
JK
1324GL_GENERATE_FNMATCH_H_FALSE
1325GL_GENERATE_FNMATCH_H_TRUE
1326FNMATCH_H
88b48903
WN
1327REPLACE_ITOLD
1328GL_GENERATE_FLOAT_H_FALSE
1329GL_GENERATE_FLOAT_H_TRUE
1330FLOAT_H
1331NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1332NEXT_FLOAT_H
18848e28
GF
1333EOVERFLOW_VALUE
1334EOVERFLOW_HIDDEN
1335ENOLINK_VALUE
1336ENOLINK_HIDDEN
1337EMULTIHOP_VALUE
1338EMULTIHOP_HIDDEN
1339GL_GENERATE_ERRNO_H_FALSE
1340GL_GENERATE_ERRNO_H_TRUE
1341ERRNO_H
1342NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1343NEXT_ERRNO_H
e26b6bb0
TT
1344HAVE_DIRENT_H
1345NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1346NEXT_DIRENT_H
88b48903
WN
1347PRAGMA_COLUMNS
1348PRAGMA_SYSTEM_HEADER
1349INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1350INCLUDE_NEXT
e26b6bb0
TT
1351REPLACE_FDOPENDIR
1352REPLACE_DIRFD
1353REPLACE_CLOSEDIR
1354REPLACE_OPENDIR
1355HAVE_ALPHASORT
1356HAVE_SCANDIR
1357HAVE_FDOPENDIR
1358HAVE_DECL_FDOPENDIR
1359HAVE_DECL_DIRFD
1360HAVE_CLOSEDIR
1361HAVE_REWINDDIR
1362HAVE_READDIR
1363HAVE_OPENDIR
1364GNULIB_ALPHASORT
1365GNULIB_SCANDIR
1366GNULIB_FDOPENDIR
1367GNULIB_DIRFD
1368GNULIB_CLOSEDIR
1369GNULIB_REWINDDIR
1370GNULIB_READDIR
1371GNULIB_OPENDIR
6a29c58e 1372pkglibexecdir
4a626d0a 1373runstatedir
6a29c58e 1374lispdir
e26b6bb0
TT
1375UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1376UNISTD_H_HAVE_WINSOCK2_H
1377REPLACE_WRITE
1378REPLACE_USLEEP
1379REPLACE_UNLINKAT
1380REPLACE_UNLINK
1381REPLACE_TTYNAME_R
4a626d0a 1382REPLACE_SYMLINKAT
e26b6bb0
TT
1383REPLACE_SYMLINK
1384REPLACE_SLEEP
1385REPLACE_RMDIR
4a626d0a 1386REPLACE_READLINKAT
e26b6bb0
TT
1387REPLACE_READLINK
1388REPLACE_READ
1389REPLACE_PWRITE
1390REPLACE_PREAD
1391REPLACE_LSEEK
1392REPLACE_LINKAT
1393REPLACE_LINK
1394REPLACE_LCHOWN
1395REPLACE_ISATTY
1396REPLACE_GETPAGESIZE
1397REPLACE_GETGROUPS
1398REPLACE_GETLOGIN_R
4a626d0a 1399REPLACE_GETDTABLESIZE
e26b6bb0
TT
1400REPLACE_GETDOMAINNAME
1401REPLACE_GETCWD
1402REPLACE_FTRUNCATE
1403REPLACE_FCHOWNAT
1404REPLACE_DUP2
1405REPLACE_DUP
1406REPLACE_CLOSE
1407REPLACE_CHOWN
1408HAVE_SYS_PARAM_H
1409HAVE_OS_H
1410HAVE_DECL_TTYNAME_R
1411HAVE_DECL_SETHOSTNAME
1412HAVE_DECL_GETUSERSHELL
1413HAVE_DECL_GETPAGESIZE
1414HAVE_DECL_GETLOGIN_R
1415HAVE_DECL_GETDOMAINNAME
1416HAVE_DECL_FDATASYNC
1417HAVE_DECL_FCHDIR
1418HAVE_DECL_ENVIRON
1419HAVE_USLEEP
1420HAVE_UNLINKAT
1421HAVE_SYMLINKAT
1422HAVE_SYMLINK
1423HAVE_SLEEP
1424HAVE_SETHOSTNAME
1425HAVE_READLINKAT
1426HAVE_READLINK
1427HAVE_PWRITE
1428HAVE_PREAD
1429HAVE_PIPE2
1430HAVE_PIPE
1431HAVE_LINKAT
1432HAVE_LINK
1433HAVE_LCHOWN
1434HAVE_GROUP_MEMBER
1435HAVE_GETPAGESIZE
1436HAVE_GETLOGIN
1437HAVE_GETHOSTNAME
1438HAVE_GETGROUPS
1439HAVE_GETDTABLESIZE
1440HAVE_FTRUNCATE
1441HAVE_FSYNC
1442HAVE_FDATASYNC
1443HAVE_FCHOWNAT
1444HAVE_FCHDIR
1445HAVE_FACCESSAT
1446HAVE_EUIDACCESS
1447HAVE_DUP3
1448HAVE_DUP2
1449HAVE_CHOWN
1450GNULIB_WRITE
1451GNULIB_USLEEP
1452GNULIB_UNLINKAT
1453GNULIB_UNLINK
1454GNULIB_UNISTD_H_SIGPIPE
1455GNULIB_UNISTD_H_NONBLOCKING
1456GNULIB_TTYNAME_R
1457GNULIB_SYMLINKAT
1458GNULIB_SYMLINK
1459GNULIB_SLEEP
1460GNULIB_SETHOSTNAME
1461GNULIB_RMDIR
1462GNULIB_READLINKAT
1463GNULIB_READLINK
1464GNULIB_READ
1465GNULIB_PWRITE
1466GNULIB_PREAD
1467GNULIB_PIPE2
1468GNULIB_PIPE
1469GNULIB_LSEEK
1470GNULIB_LINKAT
1471GNULIB_LINK
1472GNULIB_LCHOWN
1473GNULIB_ISATTY
1474GNULIB_GROUP_MEMBER
1475GNULIB_GETUSERSHELL
1476GNULIB_GETPAGESIZE
1477GNULIB_GETLOGIN_R
1478GNULIB_GETLOGIN
1479GNULIB_GETHOSTNAME
1480GNULIB_GETGROUPS
1481GNULIB_GETDTABLESIZE
1482GNULIB_GETDOMAINNAME
1483GNULIB_GETCWD
1484GNULIB_FTRUNCATE
1485GNULIB_FSYNC
1486GNULIB_FDATASYNC
1487GNULIB_FCHOWNAT
1488GNULIB_FCHDIR
1489GNULIB_FACCESSAT
1490GNULIB_EUIDACCESS
1491GNULIB_ENVIRON
1492GNULIB_DUP3
1493GNULIB_DUP2
1494GNULIB_DUP
1495GNULIB_CLOSE
1496GNULIB_CHOWN
1497GNULIB_CHDIR
98399780
YQ
1498REPLACE_WCTOMB
1499REPLACE_UNSETENV
1500REPLACE_STRTOD
1501REPLACE_SETENV
1502REPLACE_REALPATH
1503REPLACE_REALLOC
1504REPLACE_RANDOM_R
4a626d0a 1505REPLACE_QSORT_R
98399780
YQ
1506REPLACE_PUTENV
1507REPLACE_PTSNAME_R
1508REPLACE_PTSNAME
1509REPLACE_MKSTEMP
1510REPLACE_MBTOWC
1511REPLACE_MALLOC
1512REPLACE_CANONICALIZE_FILE_NAME
1513REPLACE_CALLOC
1514HAVE_DECL_UNSETENV
1515HAVE_UNLOCKPT
1516HAVE_SYS_LOADAVG_H
1517HAVE_STRUCT_RANDOM_DATA
1518HAVE_STRTOULL
1519HAVE_STRTOLL
1520HAVE_STRTOD
1521HAVE_DECL_SETENV
1522HAVE_SETENV
4a626d0a 1523HAVE_SECURE_GETENV
98399780
YQ
1524HAVE_RPMATCH
1525HAVE_REALPATH
1526HAVE_RANDOM_R
1527HAVE_RANDOM_H
1528HAVE_RANDOM
1529HAVE_PTSNAME_R
1530HAVE_PTSNAME
1531HAVE_POSIX_OPENPT
1532HAVE_MKSTEMPS
1533HAVE_MKSTEMP
1534HAVE_MKOSTEMPS
1535HAVE_MKOSTEMP
1536HAVE_MKDTEMP
1537HAVE_GRANTPT
1538HAVE_GETSUBOPT
1539HAVE_DECL_GETLOADAVG
1540HAVE_CANONICALIZE_FILE_NAME
1541HAVE_ATOLL
1542HAVE__EXIT
1543GNULIB_WCTOMB
1544GNULIB_UNSETENV
1545GNULIB_UNLOCKPT
1546GNULIB_SYSTEM_POSIX
1547GNULIB_STRTOULL
1548GNULIB_STRTOLL
1549GNULIB_STRTOD
1550GNULIB_SETENV
4a626d0a 1551GNULIB_SECURE_GETENV
98399780
YQ
1552GNULIB_RPMATCH
1553GNULIB_REALPATH
1554GNULIB_REALLOC_POSIX
1555GNULIB_RANDOM_R
1556GNULIB_RANDOM
4a626d0a 1557GNULIB_QSORT_R
98399780
YQ
1558GNULIB_PUTENV
1559GNULIB_PTSNAME_R
1560GNULIB_PTSNAME
1561GNULIB_POSIX_OPENPT
1562GNULIB_MKSTEMPS
1563GNULIB_MKSTEMP
1564GNULIB_MKOSTEMPS
1565GNULIB_MKOSTEMP
1566GNULIB_MKDTEMP
1567GNULIB_MBTOWC
1568GNULIB_MALLOC_POSIX
1569GNULIB_GRANTPT
1570GNULIB_GETSUBOPT
1571GNULIB_GETLOADAVG
1572GNULIB_CANONICALIZE_FILE_NAME
1573GNULIB_CALLOC_POSIX
1574GNULIB_ATOLL
1575GNULIB__EXIT
8690e634
JK
1576GL_GENERATE_ALLOCA_H_FALSE
1577GL_GENERATE_ALLOCA_H_TRUE
1578ALLOCA_H
1579ALLOCA
c971b7fa
PA
1580GL_COND_LIBTOOL_FALSE
1581GL_COND_LIBTOOL_TRUE
1582target_os
1583target_vendor
1584target_cpu
1585target
c971b7fa
PA
1586host_os
1587host_vendor
1588host_cpu
1589host
1590build_os
1591build_vendor
1592build_cpu
1593build
4a626d0a
PA
1594RANLIB
1595ARFLAGS
1596AR
1597EGREP
1598GREP
1599CPP
c971b7fa
PA
1600OBJEXT
1601EXEEXT
1602ac_ct_CC
1603CPPFLAGS
1604LDFLAGS
1605CFLAGS
1606CC
1607MAINT
1608MAINTAINER_MODE_FALSE
1609MAINTAINER_MODE_TRUE
1610target_alias
1611host_alias
1612build_alias
1613LIBS
1614ECHO_T
1615ECHO_N
1616ECHO_C
1617DEFS
1618mandir
1619localedir
1620libdir
1621psdir
1622pdfdir
1623dvidir
1624htmldir
1625infodir
1626docdir
1627oldincludedir
1628includedir
1629localstatedir
1630sharedstatedir
1631sysconfdir
1632datadir
1633datarootdir
1634libexecdir
1635sbindir
1636bindir
1637program_transform_name
1638prefix
1639exec_prefix
1640PACKAGE_URL
1641PACKAGE_BUGREPORT
1642PACKAGE_STRING
1643PACKAGE_VERSION
1644PACKAGE_TARNAME
1645PACKAGE_NAME
1646PATH_SEPARATOR
1647SHELL'
1648ac_subst_files=''
1649ac_user_opts='
1650enable_option_checking
1651enable_maintainer_mode
2196f55f 1652enable_largefile
c971b7fa
PA
1653enable_dependency_tracking
1654'
1655 ac_precious_vars='build_alias
1656host_alias
1657target_alias
1658CC
1659CFLAGS
1660LDFLAGS
1661LIBS
1662CPPFLAGS
1663CPP'
1664
1665
1666# Initialize some variables set by options.
1667ac_init_help=
1668ac_init_version=false
1669ac_unrecognized_opts=
1670ac_unrecognized_sep=
1671# The variables have the same names as the options, with
1672# dashes changed to underlines.
1673cache_file=/dev/null
1674exec_prefix=NONE
1675no_create=
1676no_recursion=
1677prefix=NONE
1678program_prefix=NONE
1679program_suffix=NONE
1680program_transform_name=s,x,x,
1681silent=
1682site=
1683srcdir=
1684verbose=
1685x_includes=NONE
1686x_libraries=NONE
1687
1688# Installation directory options.
1689# These are left unexpanded so users can "make install exec_prefix=/foo"
1690# and all the variables that are supposed to be based on exec_prefix
1691# by default will actually change.
1692# Use braces instead of parens because sh, perl, etc. also accept them.
1693# (The list follows the same order as the GNU Coding Standards.)
1694bindir='${exec_prefix}/bin'
1695sbindir='${exec_prefix}/sbin'
1696libexecdir='${exec_prefix}/libexec'
1697datarootdir='${prefix}/share'
1698datadir='${datarootdir}'
1699sysconfdir='${prefix}/etc'
1700sharedstatedir='${prefix}/com'
1701localstatedir='${prefix}/var'
1702includedir='${prefix}/include'
1703oldincludedir='/usr/include'
1704docdir='${datarootdir}/doc/${PACKAGE}'
1705infodir='${datarootdir}/info'
1706htmldir='${docdir}'
1707dvidir='${docdir}'
1708pdfdir='${docdir}'
1709psdir='${docdir}'
1710libdir='${exec_prefix}/lib'
1711localedir='${datarootdir}/locale'
1712mandir='${datarootdir}/man'
1713
1714ac_prev=
1715ac_dashdash=
1716for ac_option
1717do
1718 # If the previous option needs an argument, assign it.
1719 if test -n "$ac_prev"; then
1720 eval $ac_prev=\$ac_option
1721 ac_prev=
1722 continue
1723 fi
1724
1725 case $ac_option in
1726 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1727 *) ac_optarg=yes ;;
1728 esac
1729
1730 # Accept the important Cygnus configure options, so we can diagnose typos.
1731
1732 case $ac_dashdash$ac_option in
1733 --)
1734 ac_dashdash=yes ;;
1735
1736 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1737 ac_prev=bindir ;;
1738 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1739 bindir=$ac_optarg ;;
1740
1741 -build | --build | --buil | --bui | --bu)
1742 ac_prev=build_alias ;;
1743 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1744 build_alias=$ac_optarg ;;
1745
1746 -cache-file | --cache-file | --cache-fil | --cache-fi \
1747 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1748 ac_prev=cache_file ;;
1749 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1750 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1751 cache_file=$ac_optarg ;;
1752
1753 --config-cache | -C)
1754 cache_file=config.cache ;;
1755
1756 -datadir | --datadir | --datadi | --datad)
1757 ac_prev=datadir ;;
1758 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1759 datadir=$ac_optarg ;;
1760
1761 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1762 | --dataroo | --dataro | --datar)
1763 ac_prev=datarootdir ;;
1764 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1765 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1766 datarootdir=$ac_optarg ;;
1767
1768 -disable-* | --disable-*)
1769 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1770 # Reject names that are not valid shell variable names.
1771 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1772 as_fn_error "invalid feature name: $ac_useropt"
1773 ac_useropt_orig=$ac_useropt
1774 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1775 case $ac_user_opts in
1776 *"
1777"enable_$ac_useropt"
1778"*) ;;
1779 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1780 ac_unrecognized_sep=', ';;
1781 esac
1782 eval enable_$ac_useropt=no ;;
1783
1784 -docdir | --docdir | --docdi | --doc | --do)
1785 ac_prev=docdir ;;
1786 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1787 docdir=$ac_optarg ;;
1788
1789 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1790 ac_prev=dvidir ;;
1791 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1792 dvidir=$ac_optarg ;;
1793
1794 -enable-* | --enable-*)
1795 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1796 # Reject names that are not valid shell variable names.
1797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1798 as_fn_error "invalid feature name: $ac_useropt"
1799 ac_useropt_orig=$ac_useropt
1800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801 case $ac_user_opts in
1802 *"
1803"enable_$ac_useropt"
1804"*) ;;
1805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1806 ac_unrecognized_sep=', ';;
1807 esac
1808 eval enable_$ac_useropt=\$ac_optarg ;;
1809
1810 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1811 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1812 | --exec | --exe | --ex)
1813 ac_prev=exec_prefix ;;
1814 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1815 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1816 | --exec=* | --exe=* | --ex=*)
1817 exec_prefix=$ac_optarg ;;
1818
1819 -gas | --gas | --ga | --g)
1820 # Obsolete; use --with-gas.
1821 with_gas=yes ;;
1822
1823 -help | --help | --hel | --he | -h)
1824 ac_init_help=long ;;
1825 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1826 ac_init_help=recursive ;;
1827 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1828 ac_init_help=short ;;
1829
1830 -host | --host | --hos | --ho)
1831 ac_prev=host_alias ;;
1832 -host=* | --host=* | --hos=* | --ho=*)
1833 host_alias=$ac_optarg ;;
1834
1835 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1836 ac_prev=htmldir ;;
1837 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1838 | --ht=*)
1839 htmldir=$ac_optarg ;;
1840
1841 -includedir | --includedir | --includedi | --included | --include \
1842 | --includ | --inclu | --incl | --inc)
1843 ac_prev=includedir ;;
1844 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1845 | --includ=* | --inclu=* | --incl=* | --inc=*)
1846 includedir=$ac_optarg ;;
1847
1848 -infodir | --infodir | --infodi | --infod | --info | --inf)
1849 ac_prev=infodir ;;
1850 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1851 infodir=$ac_optarg ;;
1852
1853 -libdir | --libdir | --libdi | --libd)
1854 ac_prev=libdir ;;
1855 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1856 libdir=$ac_optarg ;;
1857
1858 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1859 | --libexe | --libex | --libe)
1860 ac_prev=libexecdir ;;
1861 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1862 | --libexe=* | --libex=* | --libe=*)
1863 libexecdir=$ac_optarg ;;
1864
1865 -localedir | --localedir | --localedi | --localed | --locale)
1866 ac_prev=localedir ;;
1867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1868 localedir=$ac_optarg ;;
1869
1870 -localstatedir | --localstatedir | --localstatedi | --localstated \
1871 | --localstate | --localstat | --localsta | --localst | --locals)
1872 ac_prev=localstatedir ;;
1873 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1874 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1875 localstatedir=$ac_optarg ;;
1876
1877 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1878 ac_prev=mandir ;;
1879 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1880 mandir=$ac_optarg ;;
1881
1882 -nfp | --nfp | --nf)
1883 # Obsolete; use --without-fp.
1884 with_fp=no ;;
1885
1886 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1887 | --no-cr | --no-c | -n)
1888 no_create=yes ;;
1889
1890 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1891 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1892 no_recursion=yes ;;
1893
1894 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1895 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1896 | --oldin | --oldi | --old | --ol | --o)
1897 ac_prev=oldincludedir ;;
1898 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1899 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1900 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1901 oldincludedir=$ac_optarg ;;
1902
1903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1904 ac_prev=prefix ;;
1905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1906 prefix=$ac_optarg ;;
1907
1908 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1909 | --program-pre | --program-pr | --program-p)
1910 ac_prev=program_prefix ;;
1911 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1912 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1913 program_prefix=$ac_optarg ;;
1914
1915 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1916 | --program-suf | --program-su | --program-s)
1917 ac_prev=program_suffix ;;
1918 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1919 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1920 program_suffix=$ac_optarg ;;
1921
1922 -program-transform-name | --program-transform-name \
1923 | --program-transform-nam | --program-transform-na \
1924 | --program-transform-n | --program-transform- \
1925 | --program-transform | --program-transfor \
1926 | --program-transfo | --program-transf \
1927 | --program-trans | --program-tran \
1928 | --progr-tra | --program-tr | --program-t)
1929 ac_prev=program_transform_name ;;
1930 -program-transform-name=* | --program-transform-name=* \
1931 | --program-transform-nam=* | --program-transform-na=* \
1932 | --program-transform-n=* | --program-transform-=* \
1933 | --program-transform=* | --program-transfor=* \
1934 | --program-transfo=* | --program-transf=* \
1935 | --program-trans=* | --program-tran=* \
1936 | --progr-tra=* | --program-tr=* | --program-t=*)
1937 program_transform_name=$ac_optarg ;;
1938
1939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1940 ac_prev=pdfdir ;;
1941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1942 pdfdir=$ac_optarg ;;
1943
1944 -psdir | --psdir | --psdi | --psd | --ps)
1945 ac_prev=psdir ;;
1946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1947 psdir=$ac_optarg ;;
1948
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 silent=yes ;;
1952
1953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1954 ac_prev=sbindir ;;
1955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1956 | --sbi=* | --sb=*)
1957 sbindir=$ac_optarg ;;
1958
1959 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1961 | --sharedst | --shareds | --shared | --share | --shar \
1962 | --sha | --sh)
1963 ac_prev=sharedstatedir ;;
1964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1967 | --sha=* | --sh=*)
1968 sharedstatedir=$ac_optarg ;;
1969
1970 -site | --site | --sit)
1971 ac_prev=site ;;
1972 -site=* | --site=* | --sit=*)
1973 site=$ac_optarg ;;
1974
1975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1976 ac_prev=srcdir ;;
1977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1978 srcdir=$ac_optarg ;;
1979
1980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1981 | --syscon | --sysco | --sysc | --sys | --sy)
1982 ac_prev=sysconfdir ;;
1983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1985 sysconfdir=$ac_optarg ;;
1986
1987 -target | --target | --targe | --targ | --tar | --ta | --t)
1988 ac_prev=target_alias ;;
1989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1990 target_alias=$ac_optarg ;;
1991
1992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1993 verbose=yes ;;
1994
1995 -version | --version | --versio | --versi | --vers | -V)
1996 ac_init_version=: ;;
1997
1998 -with-* | --with-*)
1999 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2000 # Reject names that are not valid shell variable names.
2001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2002 as_fn_error "invalid package name: $ac_useropt"
2003 ac_useropt_orig=$ac_useropt
2004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2005 case $ac_user_opts in
2006 *"
2007"with_$ac_useropt"
2008"*) ;;
2009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2010 ac_unrecognized_sep=', ';;
2011 esac
2012 eval with_$ac_useropt=\$ac_optarg ;;
2013
2014 -without-* | --without-*)
2015 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2016 # Reject names that are not valid shell variable names.
2017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018 as_fn_error "invalid package name: $ac_useropt"
2019 ac_useropt_orig=$ac_useropt
2020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2021 case $ac_user_opts in
2022 *"
2023"with_$ac_useropt"
2024"*) ;;
2025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2026 ac_unrecognized_sep=', ';;
2027 esac
2028 eval with_$ac_useropt=no ;;
2029
2030 --x)
2031 # Obsolete; use --with-x.
2032 with_x=yes ;;
2033
2034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2035 | --x-incl | --x-inc | --x-in | --x-i)
2036 ac_prev=x_includes ;;
2037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2039 x_includes=$ac_optarg ;;
2040
2041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2043 ac_prev=x_libraries ;;
2044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2046 x_libraries=$ac_optarg ;;
2047
2048 -*) as_fn_error "unrecognized option: \`$ac_option'
2049Try \`$0 --help' for more information."
2050 ;;
2051
2052 *=*)
2053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2054 # Reject names that are not valid shell variable names.
2055 case $ac_envvar in #(
2056 '' | [0-9]* | *[!_$as_cr_alnum]* )
2057 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2058 esac
2059 eval $ac_envvar=\$ac_optarg
2060 export $ac_envvar ;;
2061
2062 *)
2063 # FIXME: should be removed in autoconf 3.0.
2064 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2066 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2068 ;;
2069
2070 esac
2071done
2072
2073if test -n "$ac_prev"; then
2074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2075 as_fn_error "missing argument to $ac_option"
2076fi
2077
2078if test -n "$ac_unrecognized_opts"; then
2079 case $enable_option_checking in
2080 no) ;;
2081 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2082 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2083 esac
2084fi
2085
2086# Check all directory arguments for consistency.
2087for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2088 datadir sysconfdir sharedstatedir localstatedir includedir \
2089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2090 libdir localedir mandir
2091do
2092 eval ac_val=\$$ac_var
2093 # Remove trailing slashes.
2094 case $ac_val in
2095 */ )
2096 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2097 eval $ac_var=\$ac_val;;
2098 esac
2099 # Be sure to have absolute directory names.
2100 case $ac_val in
2101 [\\/$]* | ?:[\\/]* ) continue;;
2102 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2103 esac
2104 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2105done
2106
2107# There might be people who depend on the old broken behavior: `$host'
2108# used to hold the argument of --host etc.
2109# FIXME: To remove some day.
2110build=$build_alias
2111host=$host_alias
2112target=$target_alias
2113
2114# FIXME: To remove some day.
2115if test "x$host_alias" != x; then
2116 if test "x$build_alias" = x; then
2117 cross_compiling=maybe
2118 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2119 If a cross compiler is detected then cross compile mode will be used." >&2
2120 elif test "x$build_alias" != "x$host_alias"; then
2121 cross_compiling=yes
2122 fi
2123fi
2124
2125ac_tool_prefix=
2126test -n "$host_alias" && ac_tool_prefix=$host_alias-
2127
2128test "$silent" = yes && exec 6>/dev/null
2129
2130
2131ac_pwd=`pwd` && test -n "$ac_pwd" &&
2132ac_ls_di=`ls -di .` &&
2133ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2134 as_fn_error "working directory cannot be determined"
2135test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2136 as_fn_error "pwd does not report name of working directory"
2137
2138
2139# Find the source files, if location was not specified.
2140if test -z "$srcdir"; then
2141 ac_srcdir_defaulted=yes
2142 # Try the directory containing this script, then the parent directory.
2143 ac_confdir=`$as_dirname -- "$as_myself" ||
2144$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2145 X"$as_myself" : 'X\(//\)[^/]' \| \
2146 X"$as_myself" : 'X\(//\)$' \| \
2147 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2148$as_echo X"$as_myself" |
2149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2150 s//\1/
2151 q
2152 }
2153 /^X\(\/\/\)[^/].*/{
2154 s//\1/
2155 q
2156 }
2157 /^X\(\/\/\)$/{
2158 s//\1/
2159 q
2160 }
2161 /^X\(\/\).*/{
2162 s//\1/
2163 q
2164 }
2165 s/.*/./; q'`
2166 srcdir=$ac_confdir
2167 if test ! -r "$srcdir/$ac_unique_file"; then
2168 srcdir=..
2169 fi
2170else
2171 ac_srcdir_defaulted=no
2172fi
2173if test ! -r "$srcdir/$ac_unique_file"; then
2174 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2175 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2176fi
2177ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2178ac_abs_confdir=`(
2179 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2180 pwd)`
2181# When building in place, set srcdir=.
2182if test "$ac_abs_confdir" = "$ac_pwd"; then
2183 srcdir=.
2184fi
2185# Remove unnecessary trailing slashes from srcdir.
2186# Double slashes in file names in object file debugging info
2187# mess up M-x gdb in Emacs.
2188case $srcdir in
2189*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2190esac
2191for ac_var in $ac_precious_vars; do
2192 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2193 eval ac_env_${ac_var}_value=\$${ac_var}
2194 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2195 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2196done
2197
2198#
2199# Report the --help message.
2200#
2201if test "$ac_init_help" = "long"; then
2202 # Omit some internal or obsolete options to make the list less imposing.
2203 # This message is too long to be a string in the A/UX 3.1 sh.
2204 cat <<_ACEOF
2205\`configure' configures this package to adapt to many kinds of systems.
2206
2207Usage: $0 [OPTION]... [VAR=VALUE]...
2208
2209To assign environment variables (e.g., CC, CFLAGS...), specify them as
2210VAR=VALUE. See below for descriptions of some of the useful variables.
2211
2212Defaults for the options are specified in brackets.
2213
2214Configuration:
2215 -h, --help display this help and exit
2216 --help=short display options specific to this package
2217 --help=recursive display the short help of all the included packages
2218 -V, --version display version information and exit
2219 -q, --quiet, --silent do not print \`checking...' messages
2220 --cache-file=FILE cache test results in FILE [disabled]
2221 -C, --config-cache alias for \`--cache-file=config.cache'
2222 -n, --no-create do not create output files
2223 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2224
2225Installation directories:
2226 --prefix=PREFIX install architecture-independent files in PREFIX
2227 [$ac_default_prefix]
2228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2229 [PREFIX]
2230
2231By default, \`make install' will install all the files in
2232\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2233an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2234for instance \`--prefix=\$HOME'.
2235
2236For better control, use the options below.
2237
2238Fine tuning of the installation directories:
2239 --bindir=DIR user executables [EPREFIX/bin]
2240 --sbindir=DIR system admin executables [EPREFIX/sbin]
2241 --libexecdir=DIR program executables [EPREFIX/libexec]
2242 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2243 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2244 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2245 --libdir=DIR object code libraries [EPREFIX/lib]
2246 --includedir=DIR C header files [PREFIX/include]
2247 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2248 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2249 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2250 --infodir=DIR info documentation [DATAROOTDIR/info]
2251 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2252 --mandir=DIR man documentation [DATAROOTDIR/man]
2253 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2254 --htmldir=DIR html documentation [DOCDIR]
2255 --dvidir=DIR dvi documentation [DOCDIR]
2256 --pdfdir=DIR pdf documentation [DOCDIR]
2257 --psdir=DIR ps documentation [DOCDIR]
2258_ACEOF
2259
2260 cat <<\_ACEOF
2261
2262Program names:
2263 --program-prefix=PREFIX prepend PREFIX to installed program names
2264 --program-suffix=SUFFIX append SUFFIX to installed program names
2265 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2266
2267System types:
2268 --build=BUILD configure for building on BUILD [guessed]
2269 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2270 --target=TARGET configure for building compilers for TARGET [HOST]
2271_ACEOF
2272fi
2273
2274if test -n "$ac_init_help"; then
2275
2276 cat <<\_ACEOF
2277
2278Optional Features:
2279 --disable-option-checking ignore unrecognized --enable/--with options
2280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2282 --enable-maintainer-mode enable make rules and dependencies not useful
2283 (and sometimes confusing) to the casual installer
2196f55f 2284 --disable-largefile omit support for large files
c971b7fa
PA
2285 --disable-dependency-tracking speeds up one-time build
2286 --enable-dependency-tracking do not reject slow dependency extractors
2287
2288Some influential environment variables:
2289 CC C compiler command
2290 CFLAGS C compiler flags
2291 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2292 nonstandard directory <lib dir>
2293 LIBS libraries to pass to the linker, e.g. -l<library>
2294 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2295 you have headers in a nonstandard directory <include dir>
2296 CPP C preprocessor
2297
2298Use these variables to override the choices made by `configure' or to help
2299it to find libraries and programs with nonstandard names/locations.
2300
2301Report bugs to the package provider.
2302_ACEOF
2303ac_status=$?
2304fi
2305
2306if test "$ac_init_help" = "recursive"; then
2307 # If there are subdirs, report their specific --help.
2308 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2309 test -d "$ac_dir" ||
2310 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2311 continue
2312 ac_builddir=.
2313
2314case "$ac_dir" in
2315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2316*)
2317 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2318 # A ".." for each directory in $ac_dir_suffix.
2319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2320 case $ac_top_builddir_sub in
2321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2323 esac ;;
2324esac
2325ac_abs_top_builddir=$ac_pwd
2326ac_abs_builddir=$ac_pwd$ac_dir_suffix
2327# for backward compatibility:
2328ac_top_builddir=$ac_top_build_prefix
2329
2330case $srcdir in
2331 .) # We are building in place.
2332 ac_srcdir=.
2333 ac_top_srcdir=$ac_top_builddir_sub
2334 ac_abs_top_srcdir=$ac_pwd ;;
2335 [\\/]* | ?:[\\/]* ) # Absolute name.
2336 ac_srcdir=$srcdir$ac_dir_suffix;
2337 ac_top_srcdir=$srcdir
2338 ac_abs_top_srcdir=$srcdir ;;
2339 *) # Relative name.
2340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2341 ac_top_srcdir=$ac_top_build_prefix$srcdir
2342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2343esac
2344ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2345
2346 cd "$ac_dir" || { ac_status=$?; continue; }
2347 # Check for guested configure.
2348 if test -f "$ac_srcdir/configure.gnu"; then
2349 echo &&
2350 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2351 elif test -f "$ac_srcdir/configure"; then
2352 echo &&
2353 $SHELL "$ac_srcdir/configure" --help=recursive
2354 else
2355 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2356 fi || ac_status=$?
2357 cd "$ac_pwd" || { ac_status=$?; break; }
2358 done
2359fi
2360
2361test -n "$ac_init_help" && exit $ac_status
2362if $ac_init_version; then
2363 cat <<\_ACEOF
2364configure
2365generated by GNU Autoconf 2.64
2366
2367Copyright (C) 2009 Free Software Foundation, Inc.
2368This configure script is free software; the Free Software Foundation
2369gives unlimited permission to copy, distribute and modify it.
2370_ACEOF
2371 exit
2372fi
2373
2374## ------------------------ ##
2375## Autoconf initialization. ##
2376## ------------------------ ##
2377
2378# ac_fn_c_try_compile LINENO
2379# --------------------------
2380# Try to compile conftest.$ac_ext, and return whether this succeeded.
2381ac_fn_c_try_compile ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext
2385 if { { ac_try="$ac_compile"
2386case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391$as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_compile") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2398 fi
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest.$ac_objext; then :
2404 ac_retval=0
2405else
2406 $as_echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_retval=1
2410fi
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 return $ac_retval
2413
2414} # ac_fn_c_try_compile
2415
2416# ac_fn_c_try_cpp LINENO
2417# ----------------------
2418# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2419ac_fn_c_try_cpp ()
2420{
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 if { { ac_try="$ac_cpp conftest.$ac_ext"
2423case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426esac
2427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428$as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2430 ac_status=$?
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2435 fi
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } >/dev/null && {
2438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2439 test ! -s conftest.err
2440 }; then :
2441 ac_retval=0
2442else
2443 $as_echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 ac_retval=1
2447fi
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 return $ac_retval
2450
2451} # ac_fn_c_try_cpp
2452
2453# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2454# -------------------------------------------------------
2455# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2456# the include files in INCLUDES and setting the cache variable VAR
2457# accordingly.
2458ac_fn_c_check_header_mongrel ()
2459{
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463$as_echo_n "checking for $2... " >&6; }
2464if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2466fi
2467eval ac_res=\$$3
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469$as_echo "$ac_res" >&6; }
2470else
2471 # Is the header compilable?
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2473$as_echo_n "checking $2 usability... " >&6; }
2474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477#include <$2>
2478_ACEOF
2479if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_header_compiler=yes
2481else
2482 ac_header_compiler=no
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2486$as_echo "$ac_header_compiler" >&6; }
2487
2488# Is the header present?
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2490$as_echo_n "checking $2 presence... " >&6; }
2491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h. */
2493#include <$2>
2494_ACEOF
2495if ac_fn_c_try_cpp "$LINENO"; then :
2496 ac_header_preproc=yes
2497else
2498 ac_header_preproc=no
2499fi
2500rm -f conftest.err conftest.$ac_ext
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2502$as_echo "$ac_header_preproc" >&6; }
2503
2504# So? What about this header?
2505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2506 yes:no: )
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2508$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2510$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2511 ;;
2512 no:yes:* )
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2514$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2516$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2518$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2520$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2523 ;;
2524esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526$as_echo_n "checking for $2... " >&6; }
2527if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2529else
2530 eval "$3=\$ac_header_compiler"
2531fi
2532eval ac_res=\$$3
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2534$as_echo "$ac_res" >&6; }
2535fi
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537
2538} # ac_fn_c_check_header_mongrel
2539
2540# ac_fn_c_try_run LINENO
2541# ----------------------
2542# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2543# that executables *can* be run.
2544ac_fn_c_try_run ()
2545{
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 if { { ac_try="$ac_link"
2548case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551esac
2552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553$as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>&5
2555 ac_status=$?
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2558 { { case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561esac
2562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563$as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_try") 2>&5
2565 ac_status=$?
2566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567 test $ac_status = 0; }; }; then :
2568 ac_retval=0
2569else
2570 $as_echo "$as_me: program exited with status $ac_status" >&5
2571 $as_echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_retval=$ac_status
2575fi
2576 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 return $ac_retval
2579
2580} # ac_fn_c_try_run
2581
2582# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2583# -------------------------------------------------------
2584# Tests whether HEADER exists and can be compiled using the include files in
2585# INCLUDES, setting the cache variable VAR accordingly.
2586ac_fn_c_check_header_compile ()
2587{
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590$as_echo_n "checking for $2... " >&6; }
2591if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2593else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595/* end confdefs.h. */
2596$4
2597#include <$2>
2598_ACEOF
2599if ac_fn_c_try_compile "$LINENO"; then :
2600 eval "$3=yes"
2601else
2602 eval "$3=no"
2603fi
2604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605fi
2606eval ac_res=\$$3
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608$as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610
2611} # ac_fn_c_check_header_compile
2612
2613# ac_fn_c_try_link LINENO
2614# -----------------------
2615# Try to link conftest.$ac_ext, and return whether this succeeded.
2616ac_fn_c_try_link ()
2617{
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { { ac_try="$ac_link"
2621case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624esac
2625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626$as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_link") 2>conftest.err
2628 ac_status=$?
2629 if test -s conftest.err; then
2630 grep -v '^ *+' conftest.err >conftest.er1
2631 cat conftest.er1 >&5
2632 mv -f conftest.er1 conftest.err
2633 fi
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest$ac_exeext && {
2639 test "$cross_compiling" = yes ||
2640 $as_test_x conftest$ac_exeext
2641 }; then :
2642 ac_retval=0
2643else
2644 $as_echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647 ac_retval=1
2648fi
2649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2651 # interfere with the next link command; also delete a directory that is
2652 # left behind by Apple's compiler. We do this before executing the actions.
2653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655 return $ac_retval
2656
2657} # ac_fn_c_try_link
2658
8690e634
JK
2659# ac_fn_c_check_func LINENO FUNC VAR
2660# ----------------------------------
2661# Tests whether FUNC exists, setting the cache variable VAR accordingly
2662ac_fn_c_check_func ()
2663{
2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2666$as_echo_n "checking for $2... " >&6; }
2667if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671/* end confdefs.h. */
2672/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2674#define $2 innocuous_$2
2675
2676/* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $2 (); below.
2678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2679 <limits.h> exists even on freestanding compilers. */
2680
2681#ifdef __STDC__
2682# include <limits.h>
2683#else
2684# include <assert.h>
2685#endif
2686
2687#undef $2
2688
2689/* Override any GCC internal prototype to avoid an error.
2690 Use char because int might match the return type of a GCC
2691 builtin and then its argument prototype would still apply. */
2692#ifdef __cplusplus
2693extern "C"
2694#endif
2695char $2 ();
2696/* The GNU C library defines this for functions which it implements
2697 to always fail with ENOSYS. Some functions are actually named
2698 something starting with __ and the normal name is an alias. */
2699#if defined __stub_$2 || defined __stub___$2
2700choke me
2701#endif
2702
2703int
2704main ()
2705{
2706return $2 ();
2707 ;
2708 return 0;
2709}
2710_ACEOF
2711if ac_fn_c_try_link "$LINENO"; then :
2712 eval "$3=yes"
2713else
2714 eval "$3=no"
2715fi
2716rm -f core conftest.err conftest.$ac_objext \
2717 conftest$ac_exeext conftest.$ac_ext
2718fi
2719eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721$as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723
2724} # ac_fn_c_check_func
2725
8986e351
TT
2726# ac_fn_c_check_decl LINENO SYMBOL VAR
2727# ------------------------------------
2728# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2729ac_fn_c_check_decl ()
2730{
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2733$as_echo_n "checking whether $2 is declared... " >&6; }
2734if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2735 $as_echo_n "(cached) " >&6
2736else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$4
2740int
2741main ()
2742{
2743#ifndef $2
2744 (void) $2;
2745#endif
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752 eval "$3=yes"
2753else
2754 eval "$3=no"
2755fi
2756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757fi
2758eval ac_res=\$$3
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760$as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2762
2763} # ac_fn_c_check_decl
2764
c971b7fa
PA
2765# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2766# --------------------------------------------
2767# Tries to find the compile-time value of EXPR in a program that includes
2768# INCLUDES, setting VAR accordingly. Returns whether the value could be
2769# computed
2770ac_fn_c_compute_int ()
2771{
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 if test "$cross_compiling" = yes; then
2774 # Depending upon the size, compute the lo and hi bounds.
2775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h. */
2777$4
2778int
2779main ()
2780{
2781static int test_array [1 - 2 * !(($2) >= 0)];
2782test_array [0] = 0
2783
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788if ac_fn_c_try_compile "$LINENO"; then :
2789 ac_lo=0 ac_mid=0
2790 while :; do
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792/* end confdefs.h. */
2793$4
2794int
2795main ()
2796{
2797static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2798test_array [0] = 0
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_hi=$ac_mid; break
2806else
2807 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2808 if test $ac_lo -le $ac_mid; then
2809 ac_lo= ac_hi=
2810 break
2811 fi
2812 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2813fi
2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 done
2816else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h. */
2819$4
2820int
2821main ()
2822{
2823static int test_array [1 - 2 * !(($2) < 0)];
2824test_array [0] = 0
2825
2826 ;
2827 return 0;
2828}
2829_ACEOF
2830if ac_fn_c_try_compile "$LINENO"; then :
2831 ac_hi=-1 ac_mid=-1
2832 while :; do
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835$4
2836int
2837main ()
2838{
2839static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2840test_array [0] = 0
2841
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846if ac_fn_c_try_compile "$LINENO"; then :
2847 ac_lo=$ac_mid; break
2848else
2849 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2850 if test $ac_mid -le $ac_hi; then
2851 ac_lo= ac_hi=
2852 break
2853 fi
2854 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2855fi
2856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 done
2858else
2859 ac_lo= ac_hi=
2860fi
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862fi
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864# Binary search between lo and hi bounds.
2865while test "x$ac_lo" != "x$ac_hi"; do
2866 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h. */
2869$4
2870int
2871main ()
2872{
2873static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2874test_array [0] = 0
2875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_hi=$ac_mid
2882else
2883 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2884fi
2885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886done
2887case $ac_lo in #((
2888?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2889'') ac_retval=1 ;;
2890esac
2891 else
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h. */
2894$4
2895static long int longval () { return $2; }
2896static unsigned long int ulongval () { return $2; }
2897#include <stdio.h>
2898#include <stdlib.h>
2899int
2900main ()
2901{
2902
2903 FILE *f = fopen ("conftest.val", "w");
2904 if (! f)
2905 return 1;
2906 if (($2) < 0)
2907 {
2908 long int i = longval ();
2909 if (i != ($2))
2910 return 1;
2911 fprintf (f, "%ld", i);
2912 }
2913 else
2914 {
2915 unsigned long int i = ulongval ();
2916 if (i != ($2))
2917 return 1;
2918 fprintf (f, "%lu", i);
2919 }
2920 /* Do not output a trailing newline, as this causes \r\n confusion
2921 on some platforms. */
2922 return ferror (f) || fclose (f) != 0;
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928if ac_fn_c_try_run "$LINENO"; then :
2929 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2930else
2931 ac_retval=1
2932fi
2933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2934 conftest.$ac_objext conftest.beam conftest.$ac_ext
2935rm -f conftest.val
2936
2937 fi
2938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2939 return $ac_retval
2940
2941} # ac_fn_c_compute_int
2942
8690e634
JK
2943# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2944# -------------------------------------------
2945# Tests whether TYPE exists after having included INCLUDES, setting cache
2946# variable VAR accordingly.
2947ac_fn_c_check_type ()
c971b7fa
PA
2948{
2949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2951$as_echo_n "checking for $2... " >&6; }
2952if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2953 $as_echo_n "(cached) " >&6
2954else
8690e634 2955 eval "$3=no"
c971b7fa
PA
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h. */
8690e634 2958$4
c971b7fa
PA
2959int
2960main ()
2961{
8690e634
JK
2962if (sizeof ($2))
2963 return 0;
c971b7fa
PA
2964 ;
2965 return 0;
2966}
2967_ACEOF
8690e634 2968if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h. */
2971$4
2972int
2973main ()
2974{
8690e634
JK
2975if (sizeof (($2)))
2976 return 0;
c971b7fa
PA
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2982
c971b7fa 2983else
8690e634
JK
2984 eval "$3=yes"
2985fi
2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2987fi
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989fi
2990eval ac_res=\$$3
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2992$as_echo "$ac_res" >&6; }
2993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2994
8690e634 2995} # ac_fn_c_check_type
c971b7fa
PA
2996cat >config.log <<_ACEOF
2997This file contains any messages produced by compilers while
2998running configure, to aid debugging if configure makes a mistake.
2999
3000It was created by $as_me, which was
3001generated by GNU Autoconf 2.64. Invocation command line was
3002
3003 $ $0 $@
3004
3005_ACEOF
3006exec 5>>config.log
3007{
3008cat <<_ASUNAME
3009## --------- ##
3010## Platform. ##
3011## --------- ##
3012
3013hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3014uname -m = `(uname -m) 2>/dev/null || echo unknown`
3015uname -r = `(uname -r) 2>/dev/null || echo unknown`
3016uname -s = `(uname -s) 2>/dev/null || echo unknown`
3017uname -v = `(uname -v) 2>/dev/null || echo unknown`
3018
3019/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3020/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3021
3022/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3023/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3024/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3025/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3026/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3027/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3028/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3029
3030_ASUNAME
3031
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 $as_echo "PATH: $as_dir"
3038 done
3039IFS=$as_save_IFS
3040
3041} >&5
3042
3043cat >&5 <<_ACEOF
3044
3045
3046## ----------- ##
3047## Core tests. ##
3048## ----------- ##
3049
3050_ACEOF
3051
3052
3053# Keep a trace of the command line.
3054# Strip out --no-create and --no-recursion so they do not pile up.
3055# Strip out --silent because we don't want to record it for future runs.
3056# Also quote any args containing shell meta-characters.
3057# Make two passes to allow for proper duplicate-argument suppression.
3058ac_configure_args=
3059ac_configure_args0=
3060ac_configure_args1=
3061ac_must_keep_next=false
3062for ac_pass in 1 2
3063do
3064 for ac_arg
3065 do
3066 case $ac_arg in
3067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3069 | -silent | --silent | --silen | --sile | --sil)
3070 continue ;;
3071 *\'*)
3072 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3073 esac
3074 case $ac_pass in
3075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3076 2)
3077 as_fn_append ac_configure_args1 " '$ac_arg'"
3078 if test $ac_must_keep_next = true; then
3079 ac_must_keep_next=false # Got value, back to normal.
3080 else
3081 case $ac_arg in
3082 *=* | --config-cache | -C | -disable-* | --disable-* \
3083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3085 | -with-* | --with-* | -without-* | --without-* | --x)
3086 case "$ac_configure_args0 " in
3087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3088 esac
3089 ;;
3090 -* ) ac_must_keep_next=true ;;
3091 esac
3092 fi
3093 as_fn_append ac_configure_args " '$ac_arg'"
3094 ;;
3095 esac
3096 done
3097done
3098{ ac_configure_args0=; unset ac_configure_args0;}
3099{ ac_configure_args1=; unset ac_configure_args1;}
3100
3101# When interrupted or exit'd, cleanup temporary files, and complete
3102# config.log. We remove comments because anyway the quotes in there
3103# would cause problems or look ugly.
3104# WARNING: Use '\'' to represent an apostrophe within the trap.
3105# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3106trap 'exit_status=$?
3107 # Save into config.log some information that might help in debugging.
3108 {
3109 echo
3110
3111 cat <<\_ASBOX
3112## ---------------- ##
3113## Cache variables. ##
3114## ---------------- ##
3115_ASBOX
3116 echo
3117 # The following way of writing the cache mishandles newlines in values,
3118(
3119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3120 eval ac_val=\$$ac_var
3121 case $ac_val in #(
3122 *${as_nl}*)
3123 case $ac_var in #(
3124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3126 esac
3127 case $ac_var in #(
3128 _ | IFS | as_nl) ;; #(
3129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3130 *) { eval $ac_var=; unset $ac_var;} ;;
3131 esac ;;
3132 esac
3133 done
3134 (set) 2>&1 |
3135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3136 *${as_nl}ac_space=\ *)
3137 sed -n \
3138 "s/'\''/'\''\\\\'\'''\''/g;
3139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3140 ;; #(
3141 *)
3142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3143 ;;
3144 esac |
3145 sort
3146)
3147 echo
3148
3149 cat <<\_ASBOX
3150## ----------------- ##
3151## Output variables. ##
3152## ----------------- ##
3153_ASBOX
3154 echo
3155 for ac_var in $ac_subst_vars
3156 do
3157 eval ac_val=\$$ac_var
3158 case $ac_val in
3159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3160 esac
3161 $as_echo "$ac_var='\''$ac_val'\''"
3162 done | sort
3163 echo
3164
3165 if test -n "$ac_subst_files"; then
3166 cat <<\_ASBOX
3167## ------------------- ##
3168## File substitutions. ##
3169## ------------------- ##
3170_ASBOX
3171 echo
3172 for ac_var in $ac_subst_files
3173 do
3174 eval ac_val=\$$ac_var
3175 case $ac_val in
3176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3177 esac
3178 $as_echo "$ac_var='\''$ac_val'\''"
3179 done | sort
3180 echo
3181 fi
3182
3183 if test -s confdefs.h; then
3184 cat <<\_ASBOX
3185## ----------- ##
3186## confdefs.h. ##
3187## ----------- ##
3188_ASBOX
3189 echo
3190 cat confdefs.h
3191 echo
3192 fi
3193 test "$ac_signal" != 0 &&
3194 $as_echo "$as_me: caught signal $ac_signal"
3195 $as_echo "$as_me: exit $exit_status"
3196 } >&5
3197 rm -f core *.core core.conftest.* &&
3198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3199 exit $exit_status
3200' 0
3201for ac_signal in 1 2 13 15; do
3202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3203done
3204ac_signal=0
3205
3206# confdefs.h avoids OS command line length limits that DEFS can exceed.
3207rm -f -r conftest* confdefs.h
3208
3209$as_echo "/* confdefs.h */" > confdefs.h
3210
3211# Predefined preprocessor variables.
3212
3213cat >>confdefs.h <<_ACEOF
3214#define PACKAGE_NAME "$PACKAGE_NAME"
3215_ACEOF
3216
3217cat >>confdefs.h <<_ACEOF
3218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3219_ACEOF
3220
3221cat >>confdefs.h <<_ACEOF
3222#define PACKAGE_VERSION "$PACKAGE_VERSION"
3223_ACEOF
3224
3225cat >>confdefs.h <<_ACEOF
3226#define PACKAGE_STRING "$PACKAGE_STRING"
3227_ACEOF
3228
3229cat >>confdefs.h <<_ACEOF
3230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3231_ACEOF
3232
3233cat >>confdefs.h <<_ACEOF
3234#define PACKAGE_URL "$PACKAGE_URL"
3235_ACEOF
3236
3237
3238# Let the site file select an alternate cache file if it wants to.
3239# Prefer an explicitly selected file to automatically selected ones.
3240ac_site_file1=NONE
3241ac_site_file2=NONE
3242if test -n "$CONFIG_SITE"; then
3243 ac_site_file1=$CONFIG_SITE
3244elif test "x$prefix" != xNONE; then
3245 ac_site_file1=$prefix/share/config.site
3246 ac_site_file2=$prefix/etc/config.site
3247else
3248 ac_site_file1=$ac_default_prefix/share/config.site
3249 ac_site_file2=$ac_default_prefix/etc/config.site
3250fi
3251for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3252do
3253 test "x$ac_site_file" = xNONE && continue
3254 if test -r "$ac_site_file"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3256$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3257 sed 's/^/| /' "$ac_site_file" >&5
3258 . "$ac_site_file"
3259 fi
3260done
3261
3262if test -r "$cache_file"; then
3263 # Some versions of bash will fail to source /dev/null (special
3264 # files actually), so we avoid doing that.
3265 if test -f "$cache_file"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3267$as_echo "$as_me: loading cache $cache_file" >&6;}
3268 case $cache_file in
3269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3270 *) . "./$cache_file";;
3271 esac
3272 fi
3273else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3275$as_echo "$as_me: creating cache $cache_file" >&6;}
3276 >$cache_file
3277fi
3278
98399780
YQ
3279as_fn_append ac_func_list " canonicalize_file_name"
3280as_fn_append ac_func_list " getcwd"
3281as_fn_append ac_func_list " readlink"
3282as_fn_append ac_func_list " realpath"
3283as_fn_append ac_header_list " sys/param.h"
e26b6bb0 3284as_fn_append ac_header_list " dirent.h"
3574124b
PA
3285as_fn_append ac_func_list " btowc"
3286as_fn_append ac_func_list " isblank"
3287as_fn_append ac_func_list " iswctype"
3288as_fn_append ac_func_list " mbsrtowcs"
3289as_fn_append ac_func_list " mempcpy"
3290as_fn_append ac_func_list " wmemchr"
3291as_fn_append ac_func_list " wmemcpy"
3292as_fn_append ac_func_list " wmempcpy"
3293as_fn_append ac_header_list " wctype.h"
8690e634 3294gl_fnmatch_required=GNU
4a626d0a
PA
3295as_fn_append ac_header_list " sys/time.h"
3296as_fn_append ac_header_list " sys/socket.h"
3297as_fn_append ac_func_list " gettimeofday"
3574124b
PA
3298as_fn_append ac_header_list " wchar.h"
3299as_fn_append ac_header_list " stdint.h"
3300as_fn_append ac_header_list " inttypes.h"
3301as_fn_append ac_header_list " unistd.h"
3302as_fn_append ac_func_list " symlink"
f45c62c4 3303as_fn_append ac_func_list " lstat"
3574124b
PA
3304as_fn_append ac_header_list " math.h"
3305as_fn_append ac_func_list " mbsinit"
3306as_fn_append ac_func_list " mbrtowc"
3307as_fn_append ac_header_list " sys/mman.h"
3308as_fn_append ac_func_list " mprotect"
6a29c58e 3309as_fn_append ac_func_list " link"
09607c9e 3310as_fn_append ac_header_list " sys/stat.h"
3574124b
PA
3311as_fn_append ac_header_list " features.h"
3312as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3313# Check that the precious variables saved in the cache have kept the same
3314# value.
3315ac_cache_corrupted=false
3316for ac_var in $ac_precious_vars; do
3317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3318 eval ac_new_set=\$ac_env_${ac_var}_set
3319 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3320 eval ac_new_val=\$ac_env_${ac_var}_value
3321 case $ac_old_set,$ac_new_set in
3322 set,)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3324$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3325 ac_cache_corrupted=: ;;
3326 ,set)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3328$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3329 ac_cache_corrupted=: ;;
3330 ,);;
3331 *)
3332 if test "x$ac_old_val" != "x$ac_new_val"; then
3333 # differences in whitespace do not lead to failure.
3334 ac_old_val_w=`echo x $ac_old_val`
3335 ac_new_val_w=`echo x $ac_new_val`
3336 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3338$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3339 ac_cache_corrupted=:
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3342$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3343 eval $ac_var=\$ac_old_val
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3346$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3348$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3349 fi;;
3350 esac
3351 # Pass precious variables to config.status.
3352 if test "$ac_new_set" = set; then
3353 case $ac_new_val in
3354 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3355 *) ac_arg=$ac_var=$ac_new_val ;;
3356 esac
3357 case " $ac_configure_args " in
3358 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3359 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3360 esac
3361 fi
3362done
3363if $ac_cache_corrupted; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3367$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3368 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3369fi
3370## -------------------- ##
3371## Main body of script. ##
3372## -------------------- ##
3373
3374ac_ext=c
3375ac_cpp='$CPP $CPPFLAGS'
3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381ac_config_headers="$ac_config_headers config.h:config.in"
3382
3383
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3385$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3386 # Check whether --enable-maintainer-mode was given.
3387if test "${enable_maintainer_mode+set}" = set; then :
3388 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3389else
3390 USE_MAINTAINER_MODE=no
3391fi
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3394$as_echo "$USE_MAINTAINER_MODE" >&6; }
3395 if test $USE_MAINTAINER_MODE = yes; then
3396 MAINTAINER_MODE_TRUE=
3397 MAINTAINER_MODE_FALSE='#'
3398else
3399 MAINTAINER_MODE_TRUE='#'
3400 MAINTAINER_MODE_FALSE=
3401fi
3402
3403 MAINT=$MAINTAINER_MODE_TRUE
3404
3405
3406
3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416$as_echo_n "checking for $ac_word... " >&6; }
3417if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434done
3435 done
3436IFS=$as_save_IFS
3437
3438fi
3439fi
3440CC=$ac_cv_prog_CC
3441if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443$as_echo "$CC" >&6; }
3444else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447fi
3448
3449
3450fi
3451if test -z "$ac_cv_prog_CC"; then
3452 ac_ct_CC=$CC
3453 # Extract the first word of "gcc", so it can be a program name with args.
3454set dummy gcc; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459else
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC="gcc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474done
3475 done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481if test -n "$ac_ct_CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483$as_echo "$ac_ct_CC" >&6; }
3484else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489 if test "x$ac_ct_CC" = x; then
3490 CC=""
3491 else
3492 case $cross_compiling:$ac_tool_warned in
3493yes:)
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496ac_tool_warned=yes ;;
3497esac
3498 CC=$ac_ct_CC
3499 fi
3500else
3501 CC="$ac_cv_prog_CC"
3502fi
3503
3504if test -z "$CC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507set dummy ${ac_tool_prefix}cc; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}cc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527done
3528 done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533CC=$ac_cv_prog_CC
3534if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536$as_echo "$CC" >&6; }
3537else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542
3543 fi
3544fi
3545if test -z "$CC"; then
3546 # Extract the first word of "cc", so it can be a program name with args.
3547set dummy cc; ac_word=$2
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555else
3556 ac_prog_rejected=no
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565 ac_prog_rejected=yes
3566 continue
3567 fi
3568 ac_cv_prog_CC="cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573 done
3574IFS=$as_save_IFS
3575
3576if test $ac_prog_rejected = yes; then
3577 # We found a bogon in the path, so make sure we never use it.
3578 set dummy $ac_cv_prog_CC
3579 shift
3580 if test $# != 0; then
3581 # We chose a different compiler from the bogus one.
3582 # However, it has the same basename, so the bogon will be chosen
3583 # first if we set CC to just the basename; use the full file name.
3584 shift
3585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586 fi
3587fi
3588fi
3589fi
3590CC=$ac_cv_prog_CC
3591if test -n "$CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593$as_echo "$CC" >&6; }
3594else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597fi
3598
3599
3600fi
3601if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 for ac_prog in cl.exe
3604 do
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608$as_echo_n "checking for $ac_word... " >&6; }
3609if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614else
3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH
3617do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626done
3627 done
3628IFS=$as_save_IFS
3629
3630fi
3631fi
3632CC=$ac_cv_prog_CC
3633if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635$as_echo "$CC" >&6; }
3636else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638$as_echo "no" >&6; }
3639fi
3640
3641
3642 test -n "$CC" && break
3643 done
3644fi
3645if test -z "$CC"; then
3646 ac_ct_CC=$CC
3647 for ac_prog in cl.exe
3648do
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650set dummy $ac_prog; ac_word=$2
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652$as_echo_n "checking for $ac_word... " >&6; }
3653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655else
3656 if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_CC="$ac_prog"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671 done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677if test -n "$ac_ct_CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679$as_echo "$ac_ct_CC" >&6; }
3680else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683fi
3684
3685
3686 test -n "$ac_ct_CC" && break
3687done
3688
3689 if test "x$ac_ct_CC" = x; then
3690 CC=""
3691 else
3692 case $cross_compiling:$ac_tool_warned in
3693yes:)
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696ac_tool_warned=yes ;;
3697esac
3698 CC=$ac_ct_CC
3699 fi
3700fi
3701
3702fi
3703
3704
3705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707as_fn_error "no acceptable C compiler found in \$PATH
3708See \`config.log' for more details." "$LINENO" 5; }
3709
3710# Provide some information about the compiler.
3711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3712set X $ac_compile
3713ac_compiler=$2
3714for ac_option in --version -v -V -qversion; do
3715 { { ac_try="$ac_compiler $ac_option >&5"
3716case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723 ac_status=$?
3724 if test -s conftest.err; then
3725 sed '10a\
3726... rest of stderr output deleted ...
3727 10q' conftest.err >conftest.er1
3728 cat conftest.er1 >&5
3729 rm -f conftest.er1 conftest.err
3730 fi
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3733done
3734
3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h. */
3737#include <stdio.h>
3738int
3739main ()
3740{
3741FILE *f = fopen ("conftest.out", "w");
3742 return ferror (f) || fclose (f) != 0;
3743
3744 ;
3745 return 0;
3746}
3747_ACEOF
3748ac_clean_files_save=$ac_clean_files
3749ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3750# Try to create an executable without -o first, disregard a.out.
3751# It will help us diagnose broken compilers, and finding out an intuition
3752# of exeext.
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754$as_echo_n "checking for C compiler default output file name... " >&6; }
3755ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3756
3757# The possible output files:
3758ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3759
3760ac_rmfiles=
3761for ac_file in $ac_files
3762do
3763 case $ac_file in
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3766 esac
3767done
3768rm -f $ac_rmfiles
3769
3770if { { ac_try="$ac_link_default"
3771case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774esac
3775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776$as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_link_default") 2>&5
3778 ac_status=$?
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; then :
3781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3782# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3783# in a Makefile. We should not override ac_cv_exeext if it was cached,
3784# so that the user can short-circuit this test for compilers unknown to
3785# Autoconf.
3786for ac_file in $ac_files ''
3787do
3788 test -f "$ac_file" || continue
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3791 ;;
3792 [ab].out )
3793 # We found the default executable, but exeext='' is most
3794 # certainly right.
3795 break;;
3796 *.* )
3797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3798 then :; else
3799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 fi
3801 # We set ac_cv_exeext here because the later test for it is not
3802 # safe: cross compilers may not add the suffix if given an `-o'
3803 # argument, so we may need to know it at that point already.
3804 # Even if this section looks crufty: it has the advantage of
3805 # actually working.
3806 break;;
3807 * )
3808 break;;
3809 esac
3810done
3811test "$ac_cv_exeext" = no && ac_cv_exeext=
3812
3813else
3814 ac_file=''
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817$as_echo "$ac_file" >&6; }
3818if test -z "$ac_file"; then :
3819 $as_echo "$as_me: failed program was:" >&5
3820sed 's/^/| /' conftest.$ac_ext >&5
3821
3822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824{ as_fn_set_status 77
3825as_fn_error "C compiler cannot create executables
3826See \`config.log' for more details." "$LINENO" 5; }; }
3827fi
3828ac_exeext=$ac_cv_exeext
3829
3830# Check that the compiler produces executables we can run. If not, either
3831# the compiler is broken, or we cross compile.
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3833$as_echo_n "checking whether the C compiler works... " >&6; }
3834# If not cross compiling, check that we can run a simple program.
3835if test "$cross_compiling" != yes; then
3836 if { ac_try='./$ac_file'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842$as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3847 cross_compiling=no
3848 else
3849 if test "$cross_compiling" = maybe; then
3850 cross_compiling=yes
3851 else
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854as_fn_error "cannot run C compiled programs.
3855If you meant to cross compile, use \`--host'.
3856See \`config.log' for more details." "$LINENO" 5; }
3857 fi
3858 fi
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861$as_echo "yes" >&6; }
3862
3863rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3864ac_clean_files=$ac_clean_files_save
3865# Check that the compiler produces executables we can run. If not, either
3866# the compiler is broken, or we cross compile.
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3868$as_echo_n "checking whether we are cross compiling... " >&6; }
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3870$as_echo "$cross_compiling" >&6; }
3871
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3873$as_echo_n "checking for suffix of executables... " >&6; }
3874if { { ac_try="$ac_link"
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3887# work properly (i.e., refer to `conftest.exe'), while it won't with
3888# `rm'.
3889for ac_file in conftest.exe conftest conftest.*; do
3890 test -f "$ac_file" || continue
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 break;;
3895 * ) break;;
3896 esac
3897done
3898else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901as_fn_error "cannot compute suffix of executables: cannot compile and link
3902See \`config.log' for more details." "$LINENO" 5; }
3903fi
3904rm -f conftest$ac_cv_exeext
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3906$as_echo "$ac_cv_exeext" >&6; }
3907
3908rm -f conftest.$ac_ext
3909EXEEXT=$ac_cv_exeext
3910ac_exeext=$EXEEXT
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3912$as_echo_n "checking for suffix of object files... " >&6; }
3913if test "${ac_cv_objext+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915else
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */
3918
3919int
3920main ()
3921{
3922
3923 ;
3924 return 0;
3925}
3926_ACEOF
3927rm -f conftest.o conftest.obj
3928if { { ac_try="$ac_compile"
3929case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932esac
3933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934$as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compile") 2>&5
3936 ac_status=$?
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; then :
3939 for ac_file in conftest.o conftest.obj conftest.*; do
3940 test -f "$ac_file" || continue;
3941 case $ac_file in
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3944 break;;
3945 esac
3946done
3947else
3948 $as_echo "$as_me: failed program was:" >&5
3949sed 's/^/| /' conftest.$ac_ext >&5
3950
3951{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953as_fn_error "cannot compute suffix of object files: cannot compile
3954See \`config.log' for more details." "$LINENO" 5; }
3955fi
3956rm -f conftest.$ac_cv_objext conftest.$ac_ext
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959$as_echo "$ac_cv_objext" >&6; }
3960OBJEXT=$ac_cv_objext
3961ac_objext=$OBJEXT
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3963$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3964if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966else
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968/* end confdefs.h. */
3969
3970int
3971main ()
3972{
3973#ifndef __GNUC__
3974 choke me
3975#endif
3976
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_compiler_gnu=yes
3983else
3984 ac_compiler_gnu=no
3985fi
3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987ac_cv_c_compiler_gnu=$ac_compiler_gnu
3988
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3991$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3992if test $ac_compiler_gnu = yes; then
3993 GCC=yes
3994else
3995 GCC=
3996fi
3997ac_test_CFLAGS=${CFLAGS+set}
3998ac_save_CFLAGS=$CFLAGS
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4000$as_echo_n "checking whether $CC accepts -g... " >&6; }
4001if test "${ac_cv_prog_cc_g+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003else
4004 ac_save_c_werror_flag=$ac_c_werror_flag
4005 ac_c_werror_flag=yes
4006 ac_cv_prog_cc_g=no
4007 CFLAGS="-g"
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010
4011int
4012main ()
4013{
4014
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_g=yes
4021else
4022 CFLAGS=""
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h. */
4025
4026int
4027main ()
4028{
4029
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then :
4035
4036else
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4038 CFLAGS="-g"
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h. */
4041
4042int
4043main ()
4044{
4045
4046 ;
4047 return 0;
4048}
4049_ACEOF
4050if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_g=yes
4052fi
4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054fi
4055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056fi
4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_c_werror_flag=$ac_save_c_werror_flag
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4061$as_echo "$ac_cv_prog_cc_g" >&6; }
4062if test "$ac_test_CFLAGS" = set; then
4063 CFLAGS=$ac_save_CFLAGS
4064elif test $ac_cv_prog_cc_g = yes; then
4065 if test "$GCC" = yes; then
4066 CFLAGS="-g -O2"
4067 else
4068 CFLAGS="-g"
4069 fi
4070else
4071 if test "$GCC" = yes; then
4072 CFLAGS="-O2"
4073 else
4074 CFLAGS=
4075 fi
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4078$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4079if test "${ac_cv_prog_cc_c89+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081else
4082 ac_cv_prog_cc_c89=no
4083ac_save_CC=$CC
4084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086#include <stdarg.h>
4087#include <stdio.h>
4088#include <sys/types.h>
4089#include <sys/stat.h>
4090/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091struct buf { int x; };
4092FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093static char *e (p, i)
4094 char **p;
4095 int i;
4096{
4097 return p[i];
4098}
4099static char *f (char * (*g) (char **, int), char **p, ...)
4100{
4101 char *s;
4102 va_list v;
4103 va_start (v,p);
4104 s = g (p, va_arg (v,int));
4105 va_end (v);
4106 return s;
4107}
4108
4109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117
4118/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4120#define FOO(x) 'x'
4121int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122
4123int test (int i, double x);
4124struct s1 {int (*f) (int a);};
4125struct s2 {int (*f) (double a);};
4126int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127int argc;
4128char **argv;
4129int
4130main ()
4131{
4132return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139do
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4143fi
4144rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4146done
4147rm -f conftest.$ac_ext
4148CC=$ac_save_CC
4149
4150fi
4151# AC_CACHE_VAL
4152case "x$ac_cv_prog_cc_c89" in
4153 x)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155$as_echo "none needed" >&6; } ;;
4156 xno)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158$as_echo "unsupported" >&6; } ;;
4159 *)
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4163esac
4164if test "x$ac_cv_prog_cc_c89" != xno; then :
4165
4166fi
4167
4168ac_ext=c
4169ac_cpp='$CPP $CPPFLAGS'
4170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
c971b7fa
PA
4174
4175ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4181$as_echo_n "checking how to run the C preprocessor... " >&6; }
4182# On Suns, sometimes $CPP names a directory.
4183if test -n "$CPP" && test -d "$CPP"; then
4184 CPP=
4185fi
4186if test -z "$CPP"; then
4187 if test "${ac_cv_prog_CPP+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4189else
4190 # Double quotes because CPP needs to be expanded
4191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4192 do
4193 ac_preproc_ok=false
4194for ac_c_preproc_warn_flag in '' yes
4195do
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h. */
4204#ifdef __STDC__
4205# include <limits.h>
4206#else
4207# include <assert.h>
4208#endif
4209 Syntax error
4210_ACEOF
4211if ac_fn_c_try_cpp "$LINENO"; then :
4212
4213else
4214 # Broken: fails on valid input.
4215continue
4216fi
4217rm -f conftest.err conftest.$ac_ext
4218
4219 # OK, works on sane cases. Now check whether nonexistent headers
4220 # can be detected and how.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h. */
4223#include <ac_nonexistent.h>
4224_ACEOF
4225if ac_fn_c_try_cpp "$LINENO"; then :
4226 # Broken: success on invalid input.
4227continue
4228else
4229 # Passes both tests.
4230ac_preproc_ok=:
4231break
4232fi
4233rm -f conftest.err conftest.$ac_ext
4234
4235done
4236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237rm -f conftest.err conftest.$ac_ext
4238if $ac_preproc_ok; then :
4239 break
4240fi
4241
4242 done
4243 ac_cv_prog_CPP=$CPP
4244
4245fi
4246 CPP=$ac_cv_prog_CPP
4247else
4248 ac_cv_prog_CPP=$CPP
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4251$as_echo "$CPP" >&6; }
4252ac_preproc_ok=false
4253for ac_c_preproc_warn_flag in '' yes
4254do
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h. */
4263#ifdef __STDC__
4264# include <limits.h>
4265#else
4266# include <assert.h>
4267#endif
4268 Syntax error
4269_ACEOF
4270if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272else
4273 # Broken: fails on valid input.
4274continue
4275fi
4276rm -f conftest.err conftest.$ac_ext
4277
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h. */
4282#include <ac_nonexistent.h>
4283_ACEOF
4284if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4286continue
4287else
4288 # Passes both tests.
4289ac_preproc_ok=:
4290break
4291fi
4292rm -f conftest.err conftest.$ac_ext
4293
4294done
4295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296rm -f conftest.err conftest.$ac_ext
4297if $ac_preproc_ok; then :
4298
4299else
4300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302as_fn_error "C preprocessor \"$CPP\" fails sanity check
4303See \`config.log' for more details." "$LINENO" 5; }
4304fi
4305
4306ac_ext=c
4307ac_cpp='$CPP $CPPFLAGS'
4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
4312
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4314$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315if test "${ac_cv_path_GREP+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317else
4318 if test -z "$GREP"; then
4319 ac_path_GREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in grep ggrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4330# Check for GNU ac_path_GREP and select it if it is found.
4331 # Check for GNU $ac_path_GREP
4332case `"$ac_path_GREP" --version 2>&1` in
4333*GNU*)
4334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335*)
4336 ac_count=0
4337 $as_echo_n 0123456789 >"conftest.in"
4338 while :
4339 do
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'GREP' >> "conftest.nl"
4344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_GREP="$ac_path_GREP"
4350 ac_path_GREP_max=$ac_count
4351 fi
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4354 done
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356esac
4357
4358 $ac_path_GREP_found && break 3
4359 done
4360 done
4361 done
4362IFS=$as_save_IFS
4363 if test -z "$ac_cv_path_GREP"; then
4364 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365 fi
4366else
4367 ac_cv_path_GREP=$GREP
4368fi
4369
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4372$as_echo "$ac_cv_path_GREP" >&6; }
4373 GREP="$ac_cv_path_GREP"
4374
4375
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4377$as_echo_n "checking for egrep... " >&6; }
4378if test "${ac_cv_path_EGREP+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380else
4381 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4382 then ac_cv_path_EGREP="$GREP -E"
4383 else
4384 if test -z "$EGREP"; then
4385 ac_path_EGREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in egrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4396# Check for GNU ac_path_EGREP and select it if it is found.
4397 # Check for GNU $ac_path_EGREP
4398case `"$ac_path_EGREP" --version 2>&1` in
4399*GNU*)
4400 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4401*)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'EGREP' >> "conftest.nl"
4410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_EGREP="$ac_path_EGREP"
4416 ac_path_EGREP_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422esac
4423
4424 $ac_path_EGREP_found && break 3
4425 done
4426 done
4427 done
4428IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_EGREP"; then
4430 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 fi
4432else
4433 ac_cv_path_EGREP=$EGREP
4434fi
4435
4436 fi
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4439$as_echo "$ac_cv_path_EGREP" >&6; }
4440 EGREP="$ac_cv_path_EGREP"
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4444$as_echo_n "checking for ANSI C header files... " >&6; }
4445if test "${ac_cv_header_stdc+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447else
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h. */
4450#include <stdlib.h>
4451#include <stdarg.h>
4452#include <string.h>
4453#include <float.h>
4454
4455int
4456main ()
4457{
4458
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463if ac_fn_c_try_compile "$LINENO"; then :
4464 ac_cv_header_stdc=yes
4465else
4466 ac_cv_header_stdc=no
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469
4470if test $ac_cv_header_stdc = yes; then
4471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */
4474#include <string.h>
4475
4476_ACEOF
4477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 $EGREP "memchr" >/dev/null 2>&1; then :
4479
4480else
4481 ac_cv_header_stdc=no
4482fi
4483rm -f conftest*
4484
4485fi
4486
4487if test $ac_cv_header_stdc = yes; then
4488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h. */
4491#include <stdlib.h>
4492
4493_ACEOF
4494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "free" >/dev/null 2>&1; then :
4496
4497else
4498 ac_cv_header_stdc=no
4499fi
4500rm -f conftest*
4501
4502fi
4503
4504if test $ac_cv_header_stdc = yes; then
4505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4506 if test "$cross_compiling" = yes; then :
4507 :
4508else
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h. */
4511#include <ctype.h>
4512#include <stdlib.h>
4513#if ((' ' & 0x0FF) == 0x020)
4514# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516#else
4517# define ISLOWER(c) \
4518 (('a' <= (c) && (c) <= 'i') \
4519 || ('j' <= (c) && (c) <= 'r') \
4520 || ('s' <= (c) && (c) <= 'z'))
4521# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522#endif
4523
4524#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525int
4526main ()
4527{
4528 int i;
4529 for (i = 0; i < 256; i++)
4530 if (XOR (islower (i), ISLOWER (i))
4531 || toupper (i) != TOUPPER (i))
4532 return 2;
4533 return 0;
4534}
4535_ACEOF
4536if ac_fn_c_try_run "$LINENO"; then :
4537
4538else
4539 ac_cv_header_stdc=no
4540fi
4541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4542 conftest.$ac_objext conftest.beam conftest.$ac_ext
4543fi
4544
4545fi
4546fi
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4548$as_echo "$ac_cv_header_stdc" >&6; }
4549if test $ac_cv_header_stdc = yes; then
4550
4551$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4552
4553fi
4554
4555# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4556for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4557 inttypes.h stdint.h unistd.h
4558do :
4559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4561"
4562eval as_val=\$$as_ac_Header
4563 if test "x$as_val" = x""yes; then :
4564 cat >>confdefs.h <<_ACEOF
4565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566_ACEOF
4567
4568fi
4569
4570done
4571
4572
4573
c971b7fa
PA
4574 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4575if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4576 MINIX=yes
4577else
4578 MINIX=
4579fi
4580
4581
4582 if test "$MINIX" = yes; then
4583
4584$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4585
4586
4587$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4588
4589
4590$as_echo "#define _MINIX 1" >>confdefs.h
4591
c971b7fa 4592
4a626d0a 4593$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
c971b7fa 4594
4a626d0a 4595 fi
c971b7fa
PA
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4599$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4600if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605
4606# define __EXTENSIONS__ 1
4607 $ac_includes_default
4608int
4609main ()
4610{
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_safe_to_define___extensions__=yes
4618else
4619 ac_cv_safe_to_define___extensions__=no
4620fi
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4624$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4625 test $ac_cv_safe_to_define___extensions__ = yes &&
4626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4627
4628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4629
4630 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4631
4632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4633
4a626d0a
PA
4634 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4635
c971b7fa
PA
4636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4637
4638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4639
4a626d0a
PA
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4641$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4642if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644else
4645 ac_cv_should_define__xopen_source=no
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648
4649 #include <wchar.h>
4650 mbstate_t x;
4651int
4652main ()
4653{
4654
4655 ;
4656 return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_compile "$LINENO"; then :
4660
4661else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h. */
4664
4665 #define _XOPEN_SOURCE 500
4666 #include <wchar.h>
4667 mbstate_t x;
4668int
4669main ()
4670{
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_cv_should_define__xopen_source=yes
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680fi
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4684$as_echo "$ac_cv_should_define__xopen_source" >&6; }
4685 test $ac_cv_should_define__xopen_source = yes &&
4686 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4687
c971b7fa
PA
4688
4689
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4692$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4693if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695else
4696
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h. */
4699
4700#ifdef __ACK__
4701Amsterdam
4702#endif
4703
4704_ACEOF
4705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4707 gl_cv_c_amsterdam_compiler=yes
4708else
4709 gl_cv_c_amsterdam_compiler=no
4710fi
4711rm -f conftest*
4712
4713
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4716$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4717 if test -z "$AR"; then
4718 if test $gl_cv_c_amsterdam_compiler = yes; then
4719 AR='cc -c.a'
4720 if test -z "$ARFLAGS"; then
4721 ARFLAGS='-o'
4722 fi
4723 else
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4726set dummy ${ac_tool_prefix}ar; ac_word=$2
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
4729if test "${ac_cv_prog_AR+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 if test -n "$AR"; then
4733 ac_cv_prog_AR="$AR" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_AR="${ac_tool_prefix}ar"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746done
4747 done
4748IFS=$as_save_IFS
4749
4750fi
4751fi
4752AR=$ac_cv_prog_AR
4753if test -n "$AR"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4755$as_echo "$AR" >&6; }
4756else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758$as_echo "no" >&6; }
4759fi
4760
4761
4762fi
4763if test -z "$ac_cv_prog_AR"; then
4764 ac_ct_AR=$AR
4765 # Extract the first word of "ar", so it can be a program name with args.
4766set dummy ar; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772 if test -n "$ac_ct_AR"; then
4773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4774else
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_AR="ar"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786done
4787 done
4788IFS=$as_save_IFS
4789
4790fi
4791fi
4792ac_ct_AR=$ac_cv_prog_ac_ct_AR
4793if test -n "$ac_ct_AR"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4795$as_echo "$ac_ct_AR" >&6; }
4796else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798$as_echo "no" >&6; }
4799fi
4800
4801 if test "x$ac_ct_AR" = x; then
4802 AR="ar"
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805yes:)
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808ac_tool_warned=yes ;;
4809esac
4810 AR=$ac_ct_AR
4811 fi
4812else
4813 AR="$ac_cv_prog_AR"
4814fi
4815
4816 if test -z "$ARFLAGS"; then
4a626d0a 4817 ARFLAGS='cr'
c971b7fa
PA
4818 fi
4819 fi
4820 else
4821 if test -z "$ARFLAGS"; then
4a626d0a 4822 ARFLAGS='cr'
c971b7fa
PA
4823 fi
4824 fi
4825
4826
4827 if test -z "$RANLIB"; then
4828 if test $gl_cv_c_amsterdam_compiler = yes; then
4829 RANLIB=':'
4830 else
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_RANLIB+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838else
4839 if test -n "$RANLIB"; then
4840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854 done
4855IFS=$as_save_IFS
4856
4857fi
4858fi
4859RANLIB=$ac_cv_prog_RANLIB
4860if test -n "$RANLIB"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4862$as_echo "$RANLIB" >&6; }
4863else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
4867
4868
4869fi
4870if test -z "$ac_cv_prog_RANLIB"; then
4871 ac_ct_RANLIB=$RANLIB
4872 # Extract the first word of "ranlib", so it can be a program name with args.
4873set dummy ranlib; ac_word=$2
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878else
4879 if test -n "$ac_ct_RANLIB"; then
4880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_ac_ct_RANLIB="ranlib"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893done
4894 done
4895IFS=$as_save_IFS
4896
4897fi
4898fi
4899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4900if test -n "$ac_ct_RANLIB"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4902$as_echo "$ac_ct_RANLIB" >&6; }
4903else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
4906fi
4907
4908 if test "x$ac_ct_RANLIB" = x; then
4909 RANLIB=":"
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912yes:)
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915ac_tool_warned=yes ;;
4916esac
4917 RANLIB=$ac_ct_RANLIB
4918 fi
4919else
4920 RANLIB="$ac_cv_prog_RANLIB"
4921fi
4922
4923 fi
4924 fi
4925
4926
4927
4928
4929
4930
4931
4932
4a626d0a
PA
4933ac_aux_dir=
4934for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4935 for ac_t in install-sh install.sh shtool; do
4936 if test -f "$ac_dir/$ac_t"; then
4937 ac_aux_dir=$ac_dir
4938 ac_install_sh="$ac_aux_dir/$ac_t -c"
4939 break 2
4940 fi
4941 done
4942done
4943if test -z "$ac_aux_dir"; then
4944 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4945fi
4946
4947# These three variables are undocumented and unsupported,
4948# and are intended to be withdrawn in a future Autoconf release.
4949# They can cause serious problems if a builder's source tree is in a directory
4950# whose full name contains unusual characters.
4951ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4952ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4953ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4954
4955
4956# Make sure we can run config.sub.
4957$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4958 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4961$as_echo_n "checking build system type... " >&6; }
4962if test "${ac_cv_build+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964else
4965 ac_build_alias=$build_alias
4966test "x$ac_build_alias" = x &&
4967 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4968test "x$ac_build_alias" = x &&
4969 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4970ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4972
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4975$as_echo "$ac_cv_build" >&6; }
4976case $ac_cv_build in
4977*-*-*) ;;
4978*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4979esac
4980build=$ac_cv_build
4981ac_save_IFS=$IFS; IFS='-'
4982set x $ac_cv_build
4983shift
4984build_cpu=$1
4985build_vendor=$2
4986shift; shift
4987# Remember, the first character of IFS is used to create $*,
4988# except with old shells:
4989build_os=$*
4990IFS=$ac_save_IFS
4991case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4992
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4995$as_echo_n "checking host system type... " >&6; }
4996if test "${ac_cv_host+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 if test "x$host_alias" = x; then
5000 ac_cv_host=$ac_cv_build
5001else
5002 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5003 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5004fi
5005
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5008$as_echo "$ac_cv_host" >&6; }
5009case $ac_cv_host in
5010*-*-*) ;;
5011*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5012esac
5013host=$ac_cv_host
5014ac_save_IFS=$IFS; IFS='-'
5015set x $ac_cv_host
5016shift
5017host_cpu=$1
5018host_vendor=$2
5019shift; shift
5020# Remember, the first character of IFS is used to create $*,
5021# except with old shells:
5022host_os=$*
5023IFS=$ac_save_IFS
5024case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5025
5026
c971b7fa
PA
5027
5028
88b48903
WN
5029
5030 # IEEE behaviour is the default on all CPUs except Alpha and SH
5031 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5032 # and the GCC 4.1.2 manual).
5033 case "$host_cpu" in
5034 alpha*)
5035 # On Alpha systems, a compiler option provides the behaviour.
5036 # See the ieee(3) manual page, also available at
5037 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5038 if test -n "$GCC"; then
5039 # GCC has the option -mieee.
5040 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5041 CPPFLAGS="$CPPFLAGS -mieee"
5042 else
5043 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5044 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5045 CPPFLAGS="$CPPFLAGS -ieee"
5046 fi
5047 ;;
5048 sh*)
5049 if test -n "$GCC"; then
5050 # GCC has the option -mieee.
5051 CPPFLAGS="$CPPFLAGS -mieee"
5052 fi
5053 ;;
5054 esac
5055
2196f55f
YQ
5056# Check whether --enable-largefile was given.
5057if test "${enable_largefile+set}" = set; then :
5058 enableval=$enable_largefile;
5059fi
5060
5061if test "$enable_largefile" != no; then
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5064$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5065if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067else
5068 ac_cv_sys_largefile_CC=no
5069 if test "$GCC" != yes; then
5070 ac_save_CC=$CC
5071 while :; do
5072 # IRIX 6.2 and later do not support large files by default,
5073 # so use the C compiler's -n32 option if that helps.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h. */
5076#include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5085int
5086main ()
5087{
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 break
5095fi
5096rm -f core conftest.err conftest.$ac_objext
5097 CC="$CC -n32"
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_sys_largefile_CC=' -n32'; break
5100fi
5101rm -f core conftest.err conftest.$ac_objext
5102 break
5103 done
5104 CC=$ac_save_CC
5105 rm -f conftest.$ac_ext
5106 fi
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5109$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5110 if test "$ac_cv_sys_largefile_CC" != no; then
5111 CC=$CC$ac_cv_sys_largefile_CC
5112 fi
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5115$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5116if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 while :; do
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
5122#include <sys/types.h>
5123 /* Check that off_t can represent 2**63 - 1 correctly.
5124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5125 since some C++ compilers masquerading as C compilers
5126 incorrectly reject 9223372036854775807. */
5127#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5129 && LARGE_OFF_T % 2147483647 == 1)
5130 ? 1 : -1];
5131int
5132main ()
5133{
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_sys_file_offset_bits=no; break
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h. */
5145#define _FILE_OFFSET_BITS 64
5146#include <sys/types.h>
5147 /* Check that off_t can represent 2**63 - 1 correctly.
5148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5149 since some C++ compilers masquerading as C compilers
5150 incorrectly reject 9223372036854775807. */
5151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5153 && LARGE_OFF_T % 2147483647 == 1)
5154 ? 1 : -1];
5155int
5156main ()
5157{
5158
5159 ;
5160 return 0;
5161}
5162_ACEOF
5163if ac_fn_c_try_compile "$LINENO"; then :
5164 ac_cv_sys_file_offset_bits=64; break
5165fi
5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 ac_cv_sys_file_offset_bits=unknown
5168 break
5169done
5170fi
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5172$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5173case $ac_cv_sys_file_offset_bits in #(
5174 no | unknown) ;;
5175 *)
5176cat >>confdefs.h <<_ACEOF
5177#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5178_ACEOF
5179;;
5180esac
5181rm -rf conftest*
5182 if test $ac_cv_sys_file_offset_bits = unknown; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5184$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5185if test "${ac_cv_sys_large_files+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187else
5188 while :; do
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h. */
5191#include <sys/types.h>
5192 /* Check that off_t can represent 2**63 - 1 correctly.
5193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5194 since some C++ compilers masquerading as C compilers
5195 incorrectly reject 9223372036854775807. */
5196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5198 && LARGE_OFF_T % 2147483647 == 1)
5199 ? 1 : -1];
5200int
5201main ()
5202{
5203
5204 ;
5205 return 0;
5206}
5207_ACEOF
5208if ac_fn_c_try_compile "$LINENO"; then :
5209 ac_cv_sys_large_files=no; break
5210fi
5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h. */
5214#define _LARGE_FILES 1
5215#include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5223 ? 1 : -1];
5224int
5225main ()
5226{
5227
5228 ;
5229 return 0;
5230}
5231_ACEOF
5232if ac_fn_c_try_compile "$LINENO"; then :
5233 ac_cv_sys_large_files=1; break
5234fi
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_sys_large_files=unknown
5237 break
5238done
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5241$as_echo "$ac_cv_sys_large_files" >&6; }
5242case $ac_cv_sys_large_files in #(
5243 no | unknown) ;;
5244 *)
5245cat >>confdefs.h <<_ACEOF
5246#define _LARGE_FILES $ac_cv_sys_large_files
5247_ACEOF
5248;;
5249esac
5250rm -rf conftest*
5251 fi
5252
5253
4a626d0a
PA
5254$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5255
2196f55f
YQ
5256fi
5257
88b48903
WN
5258
5259
4a626d0a 5260 # Code from module absolute-header:
8690e634
JK
5261 # Code from module alloca:
5262 # Code from module alloca-opt:
98399780 5263 # Code from module canonicalize-lgpl:
6a29c58e 5264 # Code from module chdir:
8690e634 5265 # Code from module configmake:
e26b6bb0 5266 # Code from module dirent:
18848e28 5267 # Code from module dirfd:
6a29c58e 5268 # Code from module dirname-lgpl:
2196f55f 5269 # Code from module dosname:
6a29c58e 5270 # Code from module double-slash-root:
18848e28 5271 # Code from module errno:
c971b7fa
PA
5272 # Code from module extensions:
5273
a512b375 5274 # Code from module extern-inline:
88b48903 5275 # Code from module float:
8690e634
JK
5276 # Code from module fnmatch:
5277 # Code from module fnmatch-gnu:
88b48903
WN
5278 # Code from module fpieee:
5279
5280 # Code from module fpucw:
5281 # Code from module frexp:
5282 # Code from module frexpl:
4a626d0a 5283 # Code from module gettimeofday:
c971b7fa
PA
5284 # Code from module include_next:
5285 # Code from module inttypes:
5286 # Code from module inttypes-incomplete:
88b48903
WN
5287 # Code from module isnand-nolibm:
5288 # Code from module isnanl-nolibm:
2196f55f
YQ
5289 # Code from module largefile:
5290
8690e634 5291 # Code from module localcharset:
f45c62c4 5292 # Code from module lstat:
6a29c58e 5293 # Code from module malloc-posix:
98399780 5294 # Code from module malloca:
88b48903 5295 # Code from module math:
8690e634
JK
5296 # Code from module mbrtowc:
5297 # Code from module mbsinit:
5298 # Code from module mbsrtowcs:
c971b7fa
PA
5299 # Code from module memchr:
5300 # Code from module memmem:
5301 # Code from module memmem-simple:
5302 # Code from module multiarch:
98399780 5303 # Code from module nocrash:
38ec2207 5304 # Code from module pathmax:
2196f55f 5305 # Code from module readlink:
6a29c58e
YQ
5306 # Code from module rename:
5307 # Code from module rmdir:
5308 # Code from module same-inode:
98399780 5309 # Code from module snippet/_Noreturn:
c971b7fa
PA
5310 # Code from module snippet/arg-nonnull:
5311 # Code from module snippet/c++defs:
5312 # Code from module snippet/warn-on-use:
8839a007 5313 # Code from module ssize_t:
2196f55f 5314 # Code from module stat:
8690e634 5315 # Code from module stdbool:
c971b7fa
PA
5316 # Code from module stddef:
5317 # Code from module stdint:
6a29c58e 5318 # Code from module stdio:
98399780 5319 # Code from module stdlib:
8690e634 5320 # Code from module streq:
c971b7fa 5321 # Code from module string:
8690e634 5322 # Code from module strnlen1:
63ce7108
TT
5323 # Code from module strstr:
5324 # Code from module strstr-simple:
421693b0 5325 # Code from module strtok_r:
09607c9e 5326 # Code from module sys_stat:
4a626d0a 5327 # Code from module sys_time:
8839a007 5328 # Code from module sys_types:
09607c9e 5329 # Code from module time:
8839a007 5330 # Code from module unistd:
c971b7fa 5331 # Code from module update-copyright:
8690e634
JK
5332 # Code from module verify:
5333 # Code from module wchar:
5334 # Code from module wctype-h:
c971b7fa
PA
5335
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5343set dummy ${ac_tool_prefix}gcc; ac_word=$2
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if test "${ac_cv_prog_CC+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348else
5349 if test -n "$CC"; then
5350 ac_cv_prog_CC="$CC" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363done
5364 done
5365IFS=$as_save_IFS
5366
5367fi
5368fi
5369CC=$ac_cv_prog_CC
5370if test -n "$CC"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5372$as_echo "$CC" >&6; }
5373else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378
5379fi
5380if test -z "$ac_cv_prog_CC"; then
5381 ac_ct_CC=$CC
5382 # Extract the first word of "gcc", so it can be a program name with args.
5383set dummy gcc; ac_word=$2
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385$as_echo_n "checking for $ac_word... " >&6; }
5386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388else
5389 if test -n "$ac_ct_CC"; then
5390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5391else
5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_ac_ct_CC="gcc"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403done
5404 done
5405IFS=$as_save_IFS
5406
5407fi
5408fi
5409ac_ct_CC=$ac_cv_prog_ac_ct_CC
5410if test -n "$ac_ct_CC"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5412$as_echo "$ac_ct_CC" >&6; }
5413else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415$as_echo "no" >&6; }
5416fi
5417
5418 if test "x$ac_ct_CC" = x; then
5419 CC=""
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422yes:)
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425ac_tool_warned=yes ;;
5426esac
5427 CC=$ac_ct_CC
5428 fi
5429else
5430 CC="$ac_cv_prog_CC"
5431fi
5432
5433if test -z "$CC"; then
5434 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5436set dummy ${ac_tool_prefix}cc; ac_word=$2
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438$as_echo_n "checking for $ac_word... " >&6; }
5439if test "${ac_cv_prog_CC+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441else
5442 if test -n "$CC"; then
5443 ac_cv_prog_CC="$CC" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_CC="${ac_tool_prefix}cc"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456done
5457 done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462CC=$ac_cv_prog_CC
5463if test -n "$CC"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5465$as_echo "$CC" >&6; }
5466else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469fi
5470
5471
5472 fi
5473fi
5474if test -z "$CC"; then
5475 # Extract the first word of "cc", so it can be a program name with args.
5476set dummy cc; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5484else
5485 ac_prog_rejected=no
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5494 ac_prog_rejected=yes
5495 continue
5496 fi
5497 ac_cv_prog_CC="cc"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501done
5502 done
5503IFS=$as_save_IFS
5504
5505if test $ac_prog_rejected = yes; then
5506 # We found a bogon in the path, so make sure we never use it.
5507 set dummy $ac_cv_prog_CC
5508 shift
5509 if test $# != 0; then
5510 # We chose a different compiler from the bogus one.
5511 # However, it has the same basename, so the bogon will be chosen
5512 # first if we set CC to just the basename; use the full file name.
5513 shift
5514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5515 fi
5516fi
5517fi
5518fi
5519CC=$ac_cv_prog_CC
5520if test -n "$CC"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5522$as_echo "$CC" >&6; }
5523else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528
5529fi
5530if test -z "$CC"; then
5531 if test -n "$ac_tool_prefix"; then
5532 for ac_prog in cl.exe
5533 do
5534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
5538if test "${ac_cv_prog_CC+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540else
5541 if test -n "$CC"; then
5542 ac_cv_prog_CC="$CC" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556 done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561CC=$ac_cv_prog_CC
5562if test -n "$CC"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5564$as_echo "$CC" >&6; }
5565else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570
5571 test -n "$CC" && break
5572 done
5573fi
5574if test -z "$CC"; then
5575 ac_ct_CC=$CC
5576 for ac_prog in cl.exe
5577do
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579set dummy $ac_prog; ac_word=$2
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584else
5585 if test -n "$ac_ct_CC"; then
5586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_ac_ct_CC="$ac_prog"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600 done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605ac_ct_CC=$ac_cv_prog_ac_ct_CC
5606if test -n "$ac_ct_CC"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5608$as_echo "$ac_ct_CC" >&6; }
5609else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614
5615 test -n "$ac_ct_CC" && break
5616done
5617
5618 if test "x$ac_ct_CC" = x; then
5619 CC=""
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622yes:)
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625ac_tool_warned=yes ;;
5626esac
5627 CC=$ac_ct_CC
5628 fi
5629fi
5630
5631fi
5632
5633
5634test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5636as_fn_error "no acceptable C compiler found in \$PATH
5637See \`config.log' for more details." "$LINENO" 5; }
5638
5639# Provide some information about the compiler.
5640$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5641set X $ac_compile
5642ac_compiler=$2
5643for ac_option in --version -v -V -qversion; do
5644 { { ac_try="$ac_compiler $ac_option >&5"
5645case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648esac
5649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650$as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5652 ac_status=$?
5653 if test -s conftest.err; then
5654 sed '10a\
5655... rest of stderr output deleted ...
5656 10q' conftest.err >conftest.er1
5657 cat conftest.er1 >&5
5658 rm -f conftest.er1 conftest.err
5659 fi
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5662done
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5665$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5666if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671
5672int
5673main ()
5674{
5675#ifndef __GNUC__
5676 choke me
5677#endif
5678
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683if ac_fn_c_try_compile "$LINENO"; then :
5684 ac_compiler_gnu=yes
5685else
5686 ac_compiler_gnu=no
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689ac_cv_c_compiler_gnu=$ac_compiler_gnu
5690
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5693$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5694if test $ac_compiler_gnu = yes; then
5695 GCC=yes
5696else
5697 GCC=
5698fi
5699ac_test_CFLAGS=${CFLAGS+set}
5700ac_save_CFLAGS=$CFLAGS
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5702$as_echo_n "checking whether $CC accepts -g... " >&6; }
5703if test "${ac_cv_prog_cc_g+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705else
5706 ac_save_c_werror_flag=$ac_c_werror_flag
5707 ac_c_werror_flag=yes
5708 ac_cv_prog_cc_g=no
5709 CFLAGS="-g"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h. */
5712
5713int
5714main ()
5715{
5716
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_compile "$LINENO"; then :
5722 ac_cv_prog_cc_g=yes
5723else
5724 CFLAGS=""
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726/* end confdefs.h. */
5727
5728int
5729main ()
5730{
5731
5732 ;
5733 return 0;
5734}
5735_ACEOF
5736if ac_fn_c_try_compile "$LINENO"; then :
5737
5738else
5739 ac_c_werror_flag=$ac_save_c_werror_flag
5740 CFLAGS="-g"
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h. */
5743
5744int
5745main ()
5746{
5747
5748 ;
5749 return 0;
5750}
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"; then :
5753 ac_cv_prog_cc_g=yes
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756fi
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_c_werror_flag=$ac_save_c_werror_flag
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5763$as_echo "$ac_cv_prog_cc_g" >&6; }
5764if test "$ac_test_CFLAGS" = set; then
5765 CFLAGS=$ac_save_CFLAGS
5766elif test $ac_cv_prog_cc_g = yes; then
5767 if test "$GCC" = yes; then
5768 CFLAGS="-g -O2"
5769 else
5770 CFLAGS="-g"
5771 fi
5772else
5773 if test "$GCC" = yes; then
5774 CFLAGS="-O2"
5775 else
5776 CFLAGS=
5777 fi
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5780$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5781if test "${ac_cv_prog_cc_c89+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 ac_cv_prog_cc_c89=no
5785ac_save_CC=$CC
5786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h. */
5788#include <stdarg.h>
5789#include <stdio.h>
5790#include <sys/types.h>
5791#include <sys/stat.h>
5792/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5793struct buf { int x; };
5794FILE * (*rcsopen) (struct buf *, struct stat *, int);
5795static char *e (p, i)
5796 char **p;
5797 int i;
5798{
5799 return p[i];
5800}
5801static char *f (char * (*g) (char **, int), char **p, ...)
5802{
5803 char *s;
5804 va_list v;
5805 va_start (v,p);
5806 s = g (p, va_arg (v,int));
5807 va_end (v);
5808 return s;
5809}
5810
5811/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5812 function prototypes and stuff, but not '\xHH' hex character constants.
5813 These don't provoke an error unfortunately, instead are silently treated
5814 as 'x'. The following induces an error, until -std is added to get
5815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5816 array size at least. It's necessary to write '\x00'==0 to get something
5817 that's true only with -std. */
5818int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5819
5820/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5821 inside strings and character constants. */
5822#define FOO(x) 'x'
5823int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5824
5825int test (int i, double x);
5826struct s1 {int (*f) (int a);};
5827struct s2 {int (*f) (double a);};
5828int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5829int argc;
5830char **argv;
5831int
5832main ()
5833{
5834return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5841do
5842 CC="$ac_save_CC $ac_arg"
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_cv_prog_cc_c89=$ac_arg
5845fi
5846rm -f core conftest.err conftest.$ac_objext
5847 test "x$ac_cv_prog_cc_c89" != "xno" && break
5848done
5849rm -f conftest.$ac_ext
5850CC=$ac_save_CC
5851
5852fi
5853# AC_CACHE_VAL
5854case "x$ac_cv_prog_cc_c89" in
5855 x)
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5857$as_echo "none needed" >&6; } ;;
5858 xno)
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5860$as_echo "unsupported" >&6; } ;;
5861 *)
5862 CC="$CC $ac_cv_prog_cc_c89"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5864$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5865esac
5866if test "x$ac_cv_prog_cc_c89" != xno; then :
5867
5868fi
5869
5870ac_ext=c
5871ac_cpp='$CPP $CPPFLAGS'
5872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875
5876
5877am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5878
5879
5880ac_aux_dir=
5881for ac_dir in ../.. "$srcdir"/../..; do
5882 for ac_t in install-sh install.sh shtool; do
5883 if test -f "$ac_dir/$ac_t"; then
5884 ac_aux_dir=$ac_dir
5885 ac_install_sh="$ac_aux_dir/$ac_t -c"
5886 break 2
5887 fi
5888 done
5889done
5890if test -z "$ac_aux_dir"; then
5891 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5892fi
5893
5894# These three variables are undocumented and unsupported,
5895# and are intended to be withdrawn in a future Autoconf release.
5896# They can cause serious problems if a builder's source tree is in a directory
5897# whose full name contains unusual characters.
5898ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5899ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5900ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5901
5902
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5904$as_echo_n "checking target system type... " >&6; }
5905if test "${ac_cv_target+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5907else
5908 if test "x$target_alias" = x; then
5909 ac_cv_target=$ac_cv_host
5910else
5911 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5912 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5913fi
5914
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5917$as_echo "$ac_cv_target" >&6; }
5918case $ac_cv_target in
5919*-*-*) ;;
5920*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5921esac
5922target=$ac_cv_target
5923ac_save_IFS=$IFS; IFS='-'
5924set x $ac_cv_target
5925shift
5926target_cpu=$1
5927target_vendor=$2
5928shift; shift
5929# Remember, the first character of IFS is used to create $*,
5930# except with old shells:
5931target_os=$*
5932IFS=$ac_save_IFS
5933case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5934
5935
5936# The aliases save the names the user supplied, while $host etc.
5937# will get canonicalized.
5938test -n "$target_alias" &&
5939 test "$program_prefix$program_suffix$program_transform_name" = \
5940 NONENONEs,x,x, &&
5941 program_prefix=${target_alias}-
5942
5943
5944
5945
5946
5947
5948
5949 LIBC_FATAL_STDERR_=1
5950 export LIBC_FATAL_STDERR_
5951
8690e634
JK
5952# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953# for constant arguments. Useless!
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5955$as_echo_n "checking for working alloca.h... " >&6; }
5956if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5957 $as_echo_n "(cached) " >&6
5958else
8690e634 5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5960/* end confdefs.h. */
8690e634 5961#include <alloca.h>
c971b7fa
PA
5962int
5963main ()
5964{
8690e634
JK
5965char *p = (char *) alloca (2 * sizeof (int));
5966 if (p) return 0;
c971b7fa
PA
5967 ;
5968 return 0;
5969}
c971b7fa
PA
5970_ACEOF
5971if ac_fn_c_try_link "$LINENO"; then :
8690e634 5972 ac_cv_working_alloca_h=yes
c971b7fa 5973else
8690e634 5974 ac_cv_working_alloca_h=no
c971b7fa
PA
5975fi
5976rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5978fi
8690e634
JK
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5980$as_echo "$ac_cv_working_alloca_h" >&6; }
5981if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5982
8690e634 5983$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5984
8690e634 5985fi
c971b7fa 5986
8690e634
JK
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5988$as_echo_n "checking for alloca... " >&6; }
5989if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5990 $as_echo_n "(cached) " >&6
c971b7fa
PA
5991else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h. */
8690e634
JK
5994#ifdef __GNUC__
5995# define alloca __builtin_alloca
5996#else
5997# ifdef _MSC_VER
5998# include <malloc.h>
5999# define alloca _alloca
6000# else
6001# ifdef HAVE_ALLOCA_H
6002# include <alloca.h>
6003# else
6004# ifdef _AIX
6005 #pragma alloca
6006# else
6007# ifndef alloca /* predefined by HP cc +Olibcalls */
6008char *alloca ();
6009# endif
6010# endif
6011# endif
6012# endif
6013#endif
6014
c971b7fa
PA
6015int
6016main ()
6017{
8690e634
JK
6018char *p = (char *) alloca (1);
6019 if (p) return 0;
c971b7fa
PA
6020 ;
6021 return 0;
6022}
6023_ACEOF
8690e634
JK
6024if ac_fn_c_try_link "$LINENO"; then :
6025 ac_cv_func_alloca_works=yes
c971b7fa 6026else
8690e634 6027 ac_cv_func_alloca_works=no
c971b7fa 6028fi
8690e634
JK
6029rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
c971b7fa 6031fi
a143c6de
JB
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6033$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 6034
a143c6de 6035if test $ac_cv_func_alloca_works = yes; then
c971b7fa 6036
a143c6de 6037$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 6038
a143c6de
JB
6039else
6040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6041# that cause trouble. Some versions do not even contain alloca or
6042# contain a buggy version. If you still want to use their alloca,
6043# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
6044
6045
6046
6047
6048
a143c6de 6049ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 6050
a143c6de 6051$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 6052
c971b7fa 6053
a143c6de
JB
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6055$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6056if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
6057 $as_echo_n "(cached) " >&6
6058else
a143c6de 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 6060/* end confdefs.h. */
a143c6de
JB
6061#if defined CRAY && ! defined CRAY2
6062webecray
6063#else
6064wenotbecray
8690e634 6065#endif
c971b7fa 6066
8690e634
JK
6067_ACEOF
6068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
6069 $EGREP "webecray" >/dev/null 2>&1; then :
6070 ac_cv_os_cray=yes
8690e634 6071else
a143c6de 6072 ac_cv_os_cray=no
8690e634
JK
6073fi
6074rm -f conftest*
c971b7fa 6075
c0fc7f8b 6076fi
a143c6de
JB
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6078$as_echo "$ac_cv_os_cray" >&6; }
6079if test $ac_cv_os_cray = yes; then
6080 for ac_func in _getb67 GETB67 getb67; do
6081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6083eval as_val=\$$as_ac_var
6084 if test "x$as_val" = x""yes; then :
c0fc7f8b 6085
a143c6de
JB
6086cat >>confdefs.h <<_ACEOF
6087#define CRAY_STACKSEG_END $ac_func
6088_ACEOF
c971b7fa 6089
a143c6de 6090 break
8690e634 6091fi
c971b7fa 6092
a143c6de 6093 done
8690e634 6094fi
c0fc7f8b 6095
a143c6de
JB
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6097$as_echo_n "checking stack direction for C alloca... " >&6; }
6098if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
6099 $as_echo_n "(cached) " >&6
6100else
a143c6de
JB
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_c_stack_direction=0
6103else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 6105/* end confdefs.h. */
a143c6de
JB
6106$ac_includes_default
6107int
6108find_stack_direction (int *addr, int depth)
6109{
6110 int dir, dummy = 0;
6111 if (! addr)
6112 addr = &dummy;
6113 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6114 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6115 return dir + dummy;
6116}
8690e634 6117
a143c6de
JB
6118int
6119main (int argc, char **argv)
6120{
6121 return find_stack_direction (0, argc + !argv + 20) < 0;
6122}
c971b7fa 6123_ACEOF
a143c6de
JB
6124if ac_fn_c_try_run "$LINENO"; then :
6125 ac_cv_c_stack_direction=1
c971b7fa 6126else
a143c6de 6127 ac_cv_c_stack_direction=-1
8690e634 6128fi
a143c6de
JB
6129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6130 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 6131fi
c971b7fa
PA
6132
6133fi
a143c6de
JB
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6135$as_echo "$ac_cv_c_stack_direction" >&6; }
6136cat >>confdefs.h <<_ACEOF
6137#define STACK_DIRECTION $ac_cv_c_stack_direction
6138_ACEOF
8690e634 6139
c971b7fa
PA
6140
6141fi
c971b7fa
PA
6142
6143
98399780
YQ
6144 GNULIB__EXIT=0;
6145 GNULIB_ATOLL=0;
6146 GNULIB_CALLOC_POSIX=0;
6147 GNULIB_CANONICALIZE_FILE_NAME=0;
6148 GNULIB_GETLOADAVG=0;
6149 GNULIB_GETSUBOPT=0;
6150 GNULIB_GRANTPT=0;
6151 GNULIB_MALLOC_POSIX=0;
6152 GNULIB_MBTOWC=0;
6153 GNULIB_MKDTEMP=0;
6154 GNULIB_MKOSTEMP=0;
6155 GNULIB_MKOSTEMPS=0;
6156 GNULIB_MKSTEMP=0;
6157 GNULIB_MKSTEMPS=0;
6158 GNULIB_POSIX_OPENPT=0;
6159 GNULIB_PTSNAME=0;
6160 GNULIB_PTSNAME_R=0;
6161 GNULIB_PUTENV=0;
4a626d0a 6162 GNULIB_QSORT_R=0;
98399780
YQ
6163 GNULIB_RANDOM=0;
6164 GNULIB_RANDOM_R=0;
6165 GNULIB_REALLOC_POSIX=0;
6166 GNULIB_REALPATH=0;
6167 GNULIB_RPMATCH=0;
4a626d0a 6168 GNULIB_SECURE_GETENV=0;
98399780
YQ
6169 GNULIB_SETENV=0;
6170 GNULIB_STRTOD=0;
6171 GNULIB_STRTOLL=0;
6172 GNULIB_STRTOULL=0;
6173 GNULIB_SYSTEM_POSIX=0;
6174 GNULIB_UNLOCKPT=0;
6175 GNULIB_UNSETENV=0;
6176 GNULIB_WCTOMB=0;
6177 HAVE__EXIT=1;
6178 HAVE_ATOLL=1;
6179 HAVE_CANONICALIZE_FILE_NAME=1;
6180 HAVE_DECL_GETLOADAVG=1;
6181 HAVE_GETSUBOPT=1;
6182 HAVE_GRANTPT=1;
6183 HAVE_MKDTEMP=1;
6184 HAVE_MKOSTEMP=1;
6185 HAVE_MKOSTEMPS=1;
6186 HAVE_MKSTEMP=1;
6187 HAVE_MKSTEMPS=1;
6188 HAVE_POSIX_OPENPT=1;
6189 HAVE_PTSNAME=1;
6190 HAVE_PTSNAME_R=1;
6191 HAVE_RANDOM=1;
6192 HAVE_RANDOM_H=1;
6193 HAVE_RANDOM_R=1;
6194 HAVE_REALPATH=1;
6195 HAVE_RPMATCH=1;
4a626d0a 6196 HAVE_SECURE_GETENV=1;
98399780
YQ
6197 HAVE_SETENV=1;
6198 HAVE_DECL_SETENV=1;
6199 HAVE_STRTOD=1;
6200 HAVE_STRTOLL=1;
6201 HAVE_STRTOULL=1;
6202 HAVE_STRUCT_RANDOM_DATA=1;
6203 HAVE_SYS_LOADAVG_H=0;
6204 HAVE_UNLOCKPT=1;
6205 HAVE_DECL_UNSETENV=1;
6206 REPLACE_CALLOC=0;
6207 REPLACE_CANONICALIZE_FILE_NAME=0;
6208 REPLACE_MALLOC=0;
6209 REPLACE_MBTOWC=0;
6210 REPLACE_MKSTEMP=0;
6211 REPLACE_PTSNAME=0;
6212 REPLACE_PTSNAME_R=0;
6213 REPLACE_PUTENV=0;
4a626d0a 6214 REPLACE_QSORT_R=0;
98399780
YQ
6215 REPLACE_RANDOM_R=0;
6216 REPLACE_REALLOC=0;
6217 REPLACE_REALPATH=0;
6218 REPLACE_SETENV=0;
6219 REPLACE_STRTOD=0;
6220 REPLACE_UNSETENV=0;
6221 REPLACE_WCTOMB=0;
6222
6223
6224
6225
6226 for ac_func in $ac_func_list
6227do :
6228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6230eval as_val=\$$as_ac_var
6231 if test "x$as_val" = x""yes; then :
6232 cat >>confdefs.h <<_ACEOF
6233#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6234_ACEOF
6235
6236fi
6237done
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6248$as_echo_n "checking whether // is distinct from /... " >&6; }
6249if test "${gl_cv_double_slash_root+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251else
6252 if test x"$cross_compiling" = xyes ; then
6253 # When cross-compiling, there is no way to tell whether // is special
6254 # short of a list of hosts. However, the only known hosts to date
6255 # that have a distinct // are Apollo DomainOS (too old to port to),
6256 # Cygwin, and z/OS. If anyone knows of another system for which // has
6257 # special semantics and is distinct from /, please report it to
6258 # <bug-gnulib@gnu.org>.
6259 case $host in
6260 *-cygwin | i370-ibm-openedition)
6261 gl_cv_double_slash_root=yes ;;
6262 *)
6263 # Be optimistic and assume that / and // are the same when we
6264 # don't know.
6265 gl_cv_double_slash_root='unknown, assuming no' ;;
6266 esac
6267 else
6268 set x `ls -di / // 2>/dev/null`
6269 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6270 gl_cv_double_slash_root=no
6271 else
6272 gl_cv_double_slash_root=yes
6273 fi
6274 fi
6275fi
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6277$as_echo "$gl_cv_double_slash_root" >&6; }
6278 if test "$gl_cv_double_slash_root" = yes; then
6279
6280$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6281
6282 fi
6283
6284
6285
6286
6287
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6289$as_echo_n "checking whether realpath works... " >&6; }
6290if test "${gl_cv_func_realpath_works+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292else
6293
6294 touch conftest.a
6295 mkdir conftest.d
6296 if test "$cross_compiling" = yes; then :
6297 case "$host_os" in
6298 # Guess yes on glibc systems.
6299 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6300 # If we don't know, assume the worst.
6301 *) gl_cv_func_realpath_works="guessing no" ;;
6302 esac
6303
6304else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306/* end confdefs.h. */
6307
6308
6309
6310#include <stdlib.h>
6311#if defined __MACH__ && defined __APPLE__
6312/* Avoid a crash on Mac OS X. */
6313#include <mach/mach.h>
6314#include <mach/mach_error.h>
6315#include <mach/thread_status.h>
6316#include <mach/exception.h>
6317#include <mach/task.h>
6318#include <pthread.h>
6319/* The exception port on which our thread listens. */
6320static mach_port_t our_exception_port;
6321/* The main function of the thread listening for exceptions of type
6322 EXC_BAD_ACCESS. */
6323static void *
6324mach_exception_thread (void *arg)
6325{
6326 /* Buffer for a message to be received. */
6327 struct {
6328 mach_msg_header_t head;
6329 mach_msg_body_t msgh_body;
6330 char data[1024];
6331 } msg;
6332 mach_msg_return_t retval;
6333 /* Wait for a message on the exception port. */
6334 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6335 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6336 if (retval != MACH_MSG_SUCCESS)
6337 abort ();
6338 exit (1);
6339}
6340static void
6341nocrash_init (void)
6342{
6343 mach_port_t self = mach_task_self ();
6344 /* Allocate a port on which the thread shall listen for exceptions. */
6345 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6346 == KERN_SUCCESS) {
6347 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6348 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6349 MACH_MSG_TYPE_MAKE_SEND)
6350 == KERN_SUCCESS) {
6351 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6352 for us. */
6353 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6354 /* Create the thread listening on the exception port. */
6355 pthread_attr_t attr;
6356 pthread_t thread;
6357 if (pthread_attr_init (&attr) == 0
6358 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6359 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6360 pthread_attr_destroy (&attr);
6361 /* Replace the exception port info for these exceptions with our own.
6362 Note that we replace the exception port for the entire task, not only
6363 for a particular thread. This has the effect that when our exception
6364 port gets the message, the thread specific exception port has already
6365 been asked, and we don't need to bother about it.
6366 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6367 task_set_exception_ports (self, mask, our_exception_port,
6368 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6369 }
6370 }
6371 }
6372}
6373#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6374/* Avoid a crash on native Windows. */
6375#define WIN32_LEAN_AND_MEAN
6376#include <windows.h>
6377#include <winerror.h>
6378static LONG WINAPI
6379exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6380{
6381 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6382 {
6383 case EXCEPTION_ACCESS_VIOLATION:
6384 case EXCEPTION_IN_PAGE_ERROR:
6385 case EXCEPTION_STACK_OVERFLOW:
6386 case EXCEPTION_GUARD_PAGE:
6387 case EXCEPTION_PRIV_INSTRUCTION:
6388 case EXCEPTION_ILLEGAL_INSTRUCTION:
6389 case EXCEPTION_DATATYPE_MISALIGNMENT:
6390 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6391 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6392 exit (1);
6393 }
6394 return EXCEPTION_CONTINUE_SEARCH;
6395}
6396static void
6397nocrash_init (void)
6398{
6399 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6400}
6401#else
6402/* Avoid a crash on POSIX systems. */
6403#include <signal.h>
6404/* A POSIX signal handler. */
6405static void
6406exception_handler (int sig)
6407{
6408 exit (1);
6409}
6410static void
6411nocrash_init (void)
6412{
6413#ifdef SIGSEGV
6414 signal (SIGSEGV, exception_handler);
6415#endif
6416#ifdef SIGBUS
6417 signal (SIGBUS, exception_handler);
6418#endif
6419}
6420#endif
6421
6422 #include <stdlib.h>
6423 #include <string.h>
6424
6425int
6426main ()
6427{
6428
6429 int result = 0;
6430 {
6431 char *name = realpath ("conftest.a", NULL);
6432 if (!(name && *name == '/'))
6433 result |= 1;
6434 }
6435 {
6436 char *name = realpath ("conftest.b/../conftest.a", NULL);
6437 if (name != NULL)
6438 result |= 2;
6439 }
6440 {
6441 char *name = realpath ("conftest.a/", NULL);
6442 if (name != NULL)
6443 result |= 4;
6444 }
6445 {
6446 char *name1 = realpath (".", NULL);
6447 char *name2 = realpath ("conftest.d//./..", NULL);
6448 if (strcmp (name1, name2) != 0)
6449 result |= 8;
6450 }
6451 return result;
6452
6453 ;
6454 return 0;
6455}
6456
6457_ACEOF
6458if ac_fn_c_try_run "$LINENO"; then :
6459 gl_cv_func_realpath_works=yes
6460else
6461 gl_cv_func_realpath_works=no
6462fi
6463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6464 conftest.$ac_objext conftest.beam conftest.$ac_ext
6465fi
6466
6467 rm -rf conftest.a conftest.d
6468
6469fi
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6471$as_echo "$gl_cv_func_realpath_works" >&6; }
6472 case "$gl_cv_func_realpath_works" in
6473 *yes)
6474
6475$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6476
6477 ;;
6478 esac
6479
6480
6481
6482
6483 for ac_header in $ac_header_list
6484do :
6485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6487"
6488eval as_val=\$$as_ac_Header
6489 if test "x$as_val" = x""yes; then :
6490 cat >>confdefs.h <<_ACEOF
6491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492_ACEOF
6493
6494fi
6495
6496done
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
e26b6bb0
TT
6508 GNULIB_CHDIR=0;
6509 GNULIB_CHOWN=0;
6510 GNULIB_CLOSE=0;
6511 GNULIB_DUP=0;
6512 GNULIB_DUP2=0;
6513 GNULIB_DUP3=0;
6514 GNULIB_ENVIRON=0;
6515 GNULIB_EUIDACCESS=0;
6516 GNULIB_FACCESSAT=0;
6517 GNULIB_FCHDIR=0;
6518 GNULIB_FCHOWNAT=0;
6519 GNULIB_FDATASYNC=0;
6520 GNULIB_FSYNC=0;
6521 GNULIB_FTRUNCATE=0;
6522 GNULIB_GETCWD=0;
6523 GNULIB_GETDOMAINNAME=0;
6524 GNULIB_GETDTABLESIZE=0;
6525 GNULIB_GETGROUPS=0;
6526 GNULIB_GETHOSTNAME=0;
6527 GNULIB_GETLOGIN=0;
6528 GNULIB_GETLOGIN_R=0;
6529 GNULIB_GETPAGESIZE=0;
6530 GNULIB_GETUSERSHELL=0;
6531 GNULIB_GROUP_MEMBER=0;
6532 GNULIB_ISATTY=0;
6533 GNULIB_LCHOWN=0;
6534 GNULIB_LINK=0;
6535 GNULIB_LINKAT=0;
6536 GNULIB_LSEEK=0;
6537 GNULIB_PIPE=0;
6538 GNULIB_PIPE2=0;
6539 GNULIB_PREAD=0;
6540 GNULIB_PWRITE=0;
6541 GNULIB_READ=0;
6542 GNULIB_READLINK=0;
6543 GNULIB_READLINKAT=0;
6544 GNULIB_RMDIR=0;
6545 GNULIB_SETHOSTNAME=0;
6546 GNULIB_SLEEP=0;
6547 GNULIB_SYMLINK=0;
6548 GNULIB_SYMLINKAT=0;
6549 GNULIB_TTYNAME_R=0;
6550 GNULIB_UNISTD_H_NONBLOCKING=0;
6551 GNULIB_UNISTD_H_SIGPIPE=0;
6552 GNULIB_UNLINK=0;
6553 GNULIB_UNLINKAT=0;
6554 GNULIB_USLEEP=0;
6555 GNULIB_WRITE=0;
6556 HAVE_CHOWN=1;
6557 HAVE_DUP2=1;
6558 HAVE_DUP3=1;
6559 HAVE_EUIDACCESS=1;
6560 HAVE_FACCESSAT=1;
6561 HAVE_FCHDIR=1;
6562 HAVE_FCHOWNAT=1;
6563 HAVE_FDATASYNC=1;
6564 HAVE_FSYNC=1;
6565 HAVE_FTRUNCATE=1;
6566 HAVE_GETDTABLESIZE=1;
6567 HAVE_GETGROUPS=1;
6568 HAVE_GETHOSTNAME=1;
6569 HAVE_GETLOGIN=1;
6570 HAVE_GETPAGESIZE=1;
6571 HAVE_GROUP_MEMBER=1;
6572 HAVE_LCHOWN=1;
6573 HAVE_LINK=1;
6574 HAVE_LINKAT=1;
6575 HAVE_PIPE=1;
6576 HAVE_PIPE2=1;
6577 HAVE_PREAD=1;
6578 HAVE_PWRITE=1;
6579 HAVE_READLINK=1;
6580 HAVE_READLINKAT=1;
6581 HAVE_SETHOSTNAME=1;
6582 HAVE_SLEEP=1;
6583 HAVE_SYMLINK=1;
6584 HAVE_SYMLINKAT=1;
6585 HAVE_UNLINKAT=1;
6586 HAVE_USLEEP=1;
6587 HAVE_DECL_ENVIRON=1;
6588 HAVE_DECL_FCHDIR=1;
6589 HAVE_DECL_FDATASYNC=1;
6590 HAVE_DECL_GETDOMAINNAME=1;
6591 HAVE_DECL_GETLOGIN_R=1;
6592 HAVE_DECL_GETPAGESIZE=1;
6593 HAVE_DECL_GETUSERSHELL=1;
6594 HAVE_DECL_SETHOSTNAME=1;
6595 HAVE_DECL_TTYNAME_R=1;
6596 HAVE_OS_H=0;
6597 HAVE_SYS_PARAM_H=0;
6598 REPLACE_CHOWN=0;
6599 REPLACE_CLOSE=0;
6600 REPLACE_DUP=0;
6601 REPLACE_DUP2=0;
6602 REPLACE_FCHOWNAT=0;
6603 REPLACE_FTRUNCATE=0;
6604 REPLACE_GETCWD=0;
6605 REPLACE_GETDOMAINNAME=0;
4a626d0a 6606 REPLACE_GETDTABLESIZE=0;
e26b6bb0
TT
6607 REPLACE_GETLOGIN_R=0;
6608 REPLACE_GETGROUPS=0;
6609 REPLACE_GETPAGESIZE=0;
6610 REPLACE_ISATTY=0;
6611 REPLACE_LCHOWN=0;
6612 REPLACE_LINK=0;
6613 REPLACE_LINKAT=0;
6614 REPLACE_LSEEK=0;
6615 REPLACE_PREAD=0;
6616 REPLACE_PWRITE=0;
6617 REPLACE_READ=0;
6618 REPLACE_READLINK=0;
4a626d0a 6619 REPLACE_READLINKAT=0;
e26b6bb0
TT
6620 REPLACE_RMDIR=0;
6621 REPLACE_SLEEP=0;
6622 REPLACE_SYMLINK=0;
4a626d0a 6623 REPLACE_SYMLINKAT=0;
e26b6bb0
TT
6624 REPLACE_TTYNAME_R=0;
6625 REPLACE_UNLINK=0;
6626 REPLACE_UNLINKAT=0;
6627 REPLACE_USLEEP=0;
6628 REPLACE_WRITE=0;
6629 UNISTD_H_HAVE_WINSOCK2_H=0;
6630 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6631
6632
6633
6634 GNULIB_OPENDIR=0;
6635 GNULIB_READDIR=0;
6636 GNULIB_REWINDDIR=0;
6637 GNULIB_CLOSEDIR=0;
6638 GNULIB_DIRFD=0;
6639 GNULIB_FDOPENDIR=0;
6640 GNULIB_SCANDIR=0;
6641 GNULIB_ALPHASORT=0;
6642 HAVE_OPENDIR=1;
6643 HAVE_READDIR=1;
6644 HAVE_REWINDDIR=1;
6645 HAVE_CLOSEDIR=1;
6646 HAVE_DECL_DIRFD=1;
6647 HAVE_DECL_FDOPENDIR=1;
6648 HAVE_FDOPENDIR=1;
6649 HAVE_SCANDIR=1;
6650 HAVE_ALPHASORT=1;
6651 REPLACE_OPENDIR=0;
6652 REPLACE_CLOSEDIR=0;
6653 REPLACE_DIRFD=0;
6654 REPLACE_FDOPENDIR=0;
6655
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6659$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6660if test "${gl_cv_have_include_next+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 rm -rf conftestd1a conftestd1b conftestd2
6664 mkdir conftestd1a conftestd1b conftestd2
6665 cat <<EOF > conftestd1a/conftest.h
6666#define DEFINED_IN_CONFTESTD1
6667#include_next <conftest.h>
6668#ifdef DEFINED_IN_CONFTESTD2
6669int foo;
6670#else
88b48903
WN
6671#error "include_next doesn't work"
6672#endif
6673EOF
6674 cat <<EOF > conftestd1b/conftest.h
6675#define DEFINED_IN_CONFTESTD1
6676#include <stdio.h>
6677#include_next <conftest.h>
6678#ifdef DEFINED_IN_CONFTESTD2
6679int foo;
6680#else
6681#error "include_next doesn't work"
6682#endif
6683EOF
6684 cat <<EOF > conftestd2/conftest.h
6685#ifndef DEFINED_IN_CONFTESTD1
6686#error "include_next test doesn't work"
6687#endif
6688#define DEFINED_IN_CONFTESTD2
6689EOF
6690 gl_save_CPPFLAGS="$CPPFLAGS"
6691 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h. */
6694#include <conftest.h>
6695_ACEOF
6696if ac_fn_c_try_compile "$LINENO"; then :
6697 gl_cv_have_include_next=yes
6698else
6699 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h. */
6702#include <conftest.h>
6703_ACEOF
6704if ac_fn_c_try_compile "$LINENO"; then :
6705 gl_cv_have_include_next=buggy
6706else
6707 gl_cv_have_include_next=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710
6711fi
6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 CPPFLAGS="$gl_save_CPPFLAGS"
6714 rm -rf conftestd1a conftestd1b conftestd2
6715
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6718$as_echo "$gl_cv_have_include_next" >&6; }
6719 PRAGMA_SYSTEM_HEADER=
6720 if test $gl_cv_have_include_next = yes; then
6721 INCLUDE_NEXT=include_next
6722 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6723 if test -n "$GCC"; then
6724 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6725 fi
6726 else
6727 if test $gl_cv_have_include_next = buggy; then
6728 INCLUDE_NEXT=include
6729 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6730 else
6731 INCLUDE_NEXT=include
6732 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6733 fi
6734 fi
6735
6736
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6739$as_echo_n "checking whether system header files limit the line length... " >&6; }
6740if test "${gl_cv_pragma_columns+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742else
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h. */
6745
6746#ifdef __TANDEM
6747choke me
6748#endif
6749
6750_ACEOF
6751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "choke me" >/dev/null 2>&1; then :
6753 gl_cv_pragma_columns=yes
6754else
6755 gl_cv_pragma_columns=no
6756fi
6757rm -f conftest*
6758
6759
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6762$as_echo "$gl_cv_pragma_columns" >&6; }
6763 if test $gl_cv_pragma_columns = yes; then
6764 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6765 else
6766 PRAGMA_COLUMNS=
6767 fi
6768
6769
6770
6771
e26b6bb0 6772
e26b6bb0 6773
18848e28
GF
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6775$as_echo_n "checking for complete errno.h... " >&6; }
6776if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778else
6779
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h. */
6782
6783#include <errno.h>
6784#if !defined ETXTBSY
6785booboo
6786#endif
6787#if !defined ENOMSG
6788booboo
6789#endif
6790#if !defined EIDRM
6791booboo
6792#endif
6793#if !defined ENOLINK
6794booboo
6795#endif
6796#if !defined EPROTO
6797booboo
6798#endif
6799#if !defined EMULTIHOP
6800booboo
6801#endif
6802#if !defined EBADMSG
6803booboo
6804#endif
6805#if !defined EOVERFLOW
6806booboo
6807#endif
6808#if !defined ENOTSUP
6809booboo
6810#endif
6811#if !defined ENETRESET
6812booboo
6813#endif
6814#if !defined ECONNABORTED
6815booboo
6816#endif
6817#if !defined ESTALE
6818booboo
6819#endif
6820#if !defined EDQUOT
6821booboo
6822#endif
6823#if !defined ECANCELED
6824booboo
6825#endif
6826#if !defined EOWNERDEAD
6827booboo
6828#endif
6829#if !defined ENOTRECOVERABLE
6830booboo
6831#endif
6832#if !defined EILSEQ
6833booboo
6834#endif
6835
6836_ACEOF
6837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838 $EGREP "booboo" >/dev/null 2>&1; then :
6839 gl_cv_header_errno_h_complete=no
6840else
6841 gl_cv_header_errno_h_complete=yes
6842fi
6843rm -f conftest*
6844
6845
6846fi
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6848$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6849 if test $gl_cv_header_errno_h_complete = yes; then
6850 ERRNO_H=''
6851 else
6852
6853
6854
6855
6856
6857
6858
6859
6860 if test $gl_cv_have_include_next = yes; then
6861 gl_cv_next_errno_h='<'errno.h'>'
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6864$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6865if test "${gl_cv_next_errno_h+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6867else
6868
4a626d0a
PA
6869
6870
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848e28
GF
6872/* end confdefs.h. */
6873#include <errno.h>
18848e28 6874_ACEOF
4a626d0a
PA
6875 case "$host_os" in
6876 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6877 *) gl_absname_cpp="$ac_cpp" ;;
6878 esac
18848e28 6879
4a626d0a
PA
6880 case "$host_os" in
6881 mingw*)
6882 gl_dirsep_regex='[/\\]'
6883 ;;
6884 *)
6885 gl_dirsep_regex='\/'
6886 ;;
6887 esac
6888 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6889 gl_header_literal_regex=`echo 'errno.h' \
6890 | sed -e "$gl_make_literal_regex_sed"`
6891 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6892 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6893 s|^/[^/]|//&|
6894 p
6895 q
6896 }'
6897
6898 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6899 sed -n "$gl_absolute_header_sed"`
6900
6901 gl_header=$gl_cv_absolute_errno_h
6902 gl_cv_next_errno_h='"'$gl_header'"'
6903
6904
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18848e28
GF
6907$as_echo "$gl_cv_next_errno_h" >&6; }
6908 fi
6909 NEXT_ERRNO_H=$gl_cv_next_errno_h
6910
6911 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6913 gl_next_as_first_directive='<'errno.h'>'
6914 else
6915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6916 gl_next_as_first_directive=$gl_cv_next_errno_h
6917 fi
6918 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6919
6920
6921
6922
6923 ERRNO_H='errno.h'
6924 fi
6925
6926 if test -n "$ERRNO_H"; then
6927 GL_GENERATE_ERRNO_H_TRUE=
6928 GL_GENERATE_ERRNO_H_FALSE='#'
6929else
6930 GL_GENERATE_ERRNO_H_TRUE='#'
6931 GL_GENERATE_ERRNO_H_FALSE=
6932fi
6933
6934
6935 if test -n "$ERRNO_H"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6937$as_echo_n "checking for EMULTIHOP value... " >&6; }
6938if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940else
6941
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h. */
6944
6945#include <errno.h>
6946#ifdef EMULTIHOP
6947yes
6948#endif
6949
6950_ACEOF
6951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "yes" >/dev/null 2>&1; then :
6953 gl_cv_header_errno_h_EMULTIHOP=yes
6954else
6955 gl_cv_header_errno_h_EMULTIHOP=no
6956fi
6957rm -f conftest*
6958
6959 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h. */
6962
6963#define _XOPEN_SOURCE_EXTENDED 1
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=hidden
6973fi
6974rm -f conftest*
6975
6976 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6977 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6978#define _XOPEN_SOURCE_EXTENDED 1
6979#include <errno.h>
6980/* The following two lines are a workaround against an autoconf-2.52 bug. */
6981#include <stdio.h>
6982#include <stdlib.h>
6983"; then :
6984
6985fi
6986
6987 fi
6988 fi
6989
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6992$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6993 case $gl_cv_header_errno_h_EMULTIHOP in
6994 yes | no)
6995 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6996 ;;
6997 *)
6998 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6999 ;;
7000 esac
7001
7002
7003 fi
7004
7005
7006 if test -n "$ERRNO_H"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7008$as_echo_n "checking for ENOLINK value... " >&6; }
7009if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011else
7012
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h. */
7015
7016#include <errno.h>
7017#ifdef ENOLINK
7018yes
7019#endif
7020
7021_ACEOF
7022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "yes" >/dev/null 2>&1; then :
7024 gl_cv_header_errno_h_ENOLINK=yes
7025else
7026 gl_cv_header_errno_h_ENOLINK=no
7027fi
7028rm -f conftest*
7029
7030 if test $gl_cv_header_errno_h_ENOLINK = no; then
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h. */
7033
7034#define _XOPEN_SOURCE_EXTENDED 1
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=hidden
7044fi
7045rm -f conftest*
7046
7047 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7048 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7049#define _XOPEN_SOURCE_EXTENDED 1
7050#include <errno.h>
7051/* The following two lines are a workaround against an autoconf-2.52 bug. */
7052#include <stdio.h>
7053#include <stdlib.h>
7054"; then :
7055
7056fi
7057
7058 fi
7059 fi
7060
7061fi
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7063$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7064 case $gl_cv_header_errno_h_ENOLINK in
7065 yes | no)
7066 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7067 ;;
7068 *)
7069 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7070 ;;
7071 esac
7072
7073
7074 fi
7075
7076
7077 if test -n "$ERRNO_H"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7079$as_echo_n "checking for EOVERFLOW value... " >&6; }
7080if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082else
7083
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h. */
7086
7087#include <errno.h>
7088#ifdef EOVERFLOW
7089yes
7090#endif
7091
7092_ACEOF
7093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "yes" >/dev/null 2>&1; then :
7095 gl_cv_header_errno_h_EOVERFLOW=yes
7096else
7097 gl_cv_header_errno_h_EOVERFLOW=no
7098fi
7099rm -f conftest*
7100
7101 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h. */
7104
7105#define _XOPEN_SOURCE_EXTENDED 1
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=hidden
7115fi
7116rm -f conftest*
7117
7118 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7119 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7120#define _XOPEN_SOURCE_EXTENDED 1
7121#include <errno.h>
7122/* The following two lines are a workaround against an autoconf-2.52 bug. */
7123#include <stdio.h>
7124#include <stdlib.h>
7125"; then :
7126
7127fi
7128
7129 fi
7130 fi
7131
7132fi
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7134$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7135 case $gl_cv_header_errno_h_EOVERFLOW in
7136 yes | no)
7137 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7138 ;;
7139 *)
7140 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7141 ;;
7142 esac
7143
7144
7145 fi
7146
7147
7148
7149
63ce7108
TT
7150
7151
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7154$as_echo_n "checking for mbstate_t... " >&6; }
7155if test "${ac_cv_type_mbstate_t+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159/* end confdefs.h. */
7160$ac_includes_default
7161/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7162 <wchar.h>.
7163 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7164 included before <wchar.h>. */
7165#include <stddef.h>
7166#include <stdio.h>
7167#include <time.h>
7168#include <wchar.h>
7169int
7170main ()
7171{
7172mbstate_t x; return sizeof x;
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"; then :
7178 ac_cv_type_mbstate_t=yes
7179else
7180 ac_cv_type_mbstate_t=no
7181fi
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7185$as_echo "$ac_cv_type_mbstate_t" >&6; }
7186 if test $ac_cv_type_mbstate_t = yes; then
7187
7188$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7189
7190 else
7191
7192$as_echo "#define mbstate_t int" >>confdefs.h
7193
7194 fi
7195
7196
7197
7198
63ce7108
TT
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
63ce7108
TT
7215 GNULIB_ACOSF=0;
7216 GNULIB_ACOSL=0;
7217 GNULIB_ASINF=0;
7218 GNULIB_ASINL=0;
7219 GNULIB_ATANF=0;
7220 GNULIB_ATANL=0;
7221 GNULIB_ATAN2F=0;
7222 GNULIB_CBRT=0;
7223 GNULIB_CBRTF=0;
7224 GNULIB_CBRTL=0;
7225 GNULIB_CEIL=0;
7226 GNULIB_CEILF=0;
7227 GNULIB_CEILL=0;
7228 GNULIB_COPYSIGN=0;
7229 GNULIB_COPYSIGNF=0;
88b48903
WN
7230 GNULIB_COPYSIGNL=0;
7231 GNULIB_COSF=0;
7232 GNULIB_COSL=0;
7233 GNULIB_COSHF=0;
7234 GNULIB_EXPF=0;
7235 GNULIB_EXPL=0;
7236 GNULIB_EXP2=0;
7237 GNULIB_EXP2F=0;
7238 GNULIB_EXP2L=0;
7239 GNULIB_EXPM1=0;
7240 GNULIB_EXPM1F=0;
7241 GNULIB_EXPM1L=0;
7242 GNULIB_FABSF=0;
7243 GNULIB_FABSL=0;
7244 GNULIB_FLOOR=0;
7245 GNULIB_FLOORF=0;
7246 GNULIB_FLOORL=0;
7247 GNULIB_FMA=0;
7248 GNULIB_FMAF=0;
7249 GNULIB_FMAL=0;
7250 GNULIB_FMOD=0;
7251 GNULIB_FMODF=0;
7252 GNULIB_FMODL=0;
7253 GNULIB_FREXPF=0;
7254 GNULIB_FREXP=0;
7255 GNULIB_FREXPL=0;
7256 GNULIB_HYPOT=0;
7257 GNULIB_HYPOTF=0;
7258 GNULIB_HYPOTL=0;
7259 GNULIB_ILOGB=0;
7260 GNULIB_ILOGBF=0;
7261 GNULIB_ILOGBL=0;
7262 GNULIB_ISFINITE=0;
7263 GNULIB_ISINF=0;
7264 GNULIB_ISNAN=0;
7265 GNULIB_ISNANF=0;
7266 GNULIB_ISNAND=0;
7267 GNULIB_ISNANL=0;
7268 GNULIB_LDEXPF=0;
7269 GNULIB_LDEXPL=0;
7270 GNULIB_LOG=0;
7271 GNULIB_LOGF=0;
7272 GNULIB_LOGL=0;
7273 GNULIB_LOG10=0;
7274 GNULIB_LOG10F=0;
7275 GNULIB_LOG10L=0;
7276 GNULIB_LOG1P=0;
7277 GNULIB_LOG1PF=0;
7278 GNULIB_LOG1PL=0;
7279 GNULIB_LOG2=0;
7280 GNULIB_LOG2F=0;
7281 GNULIB_LOG2L=0;
7282 GNULIB_LOGB=0;
7283 GNULIB_LOGBF=0;
7284 GNULIB_LOGBL=0;
7285 GNULIB_MODF=0;
7286 GNULIB_MODFF=0;
7287 GNULIB_MODFL=0;
7288 GNULIB_POWF=0;
7289 GNULIB_REMAINDER=0;
7290 GNULIB_REMAINDERF=0;
7291 GNULIB_REMAINDERL=0;
7292 GNULIB_RINT=0;
7293 GNULIB_RINTF=0;
7294 GNULIB_RINTL=0;
7295 GNULIB_ROUND=0;
7296 GNULIB_ROUNDF=0;
7297 GNULIB_ROUNDL=0;
7298 GNULIB_SIGNBIT=0;
7299 GNULIB_SINF=0;
7300 GNULIB_SINL=0;
7301 GNULIB_SINHF=0;
7302 GNULIB_SQRTF=0;
7303 GNULIB_SQRTL=0;
7304 GNULIB_TANF=0;
7305 GNULIB_TANL=0;
7306 GNULIB_TANHF=0;
7307 GNULIB_TRUNC=0;
7308 GNULIB_TRUNCF=0;
7309 GNULIB_TRUNCL=0;
7310 HAVE_ACOSF=1;
7311 HAVE_ACOSL=1;
7312 HAVE_ASINF=1;
7313 HAVE_ASINL=1;
7314 HAVE_ATANF=1;
7315 HAVE_ATANL=1;
7316 HAVE_ATAN2F=1;
7317 HAVE_CBRT=1;
7318 HAVE_CBRTF=1;
7319 HAVE_CBRTL=1;
7320 HAVE_COPYSIGN=1;
7321 HAVE_COPYSIGNL=1;
7322 HAVE_COSF=1;
7323 HAVE_COSL=1;
7324 HAVE_COSHF=1;
7325 HAVE_EXPF=1;
7326 HAVE_EXPL=1;
7327 HAVE_EXPM1=1;
7328 HAVE_EXPM1F=1;
7329 HAVE_FABSF=1;
7330 HAVE_FABSL=1;
7331 HAVE_FMA=1;
7332 HAVE_FMAF=1;
7333 HAVE_FMAL=1;
7334 HAVE_FMODF=1;
7335 HAVE_FMODL=1;
7336 HAVE_FREXPF=1;
7337 HAVE_HYPOTF=1;
7338 HAVE_HYPOTL=1;
7339 HAVE_ILOGB=1;
7340 HAVE_ILOGBF=1;
7341 HAVE_ILOGBL=1;
7342 HAVE_ISNANF=1;
7343 HAVE_ISNAND=1;
7344 HAVE_ISNANL=1;
7345 HAVE_LDEXPF=1;
7346 HAVE_LOGF=1;
7347 HAVE_LOGL=1;
7348 HAVE_LOG10F=1;
7349 HAVE_LOG10L=1;
7350 HAVE_LOG1P=1;
7351 HAVE_LOG1PF=1;
7352 HAVE_LOG1PL=1;
7353 HAVE_LOGBF=1;
7354 HAVE_LOGBL=1;
7355 HAVE_MODFF=1;
7356 HAVE_MODFL=1;
7357 HAVE_POWF=1;
7358 HAVE_REMAINDER=1;
7359 HAVE_REMAINDERF=1;
7360 HAVE_RINT=1;
7361 HAVE_RINTL=1;
7362 HAVE_SINF=1;
7363 HAVE_SINL=1;
7364 HAVE_SINHF=1;
7365 HAVE_SQRTF=1;
7366 HAVE_SQRTL=1;
7367 HAVE_TANF=1;
7368 HAVE_TANL=1;
7369 HAVE_TANHF=1;
7370 HAVE_DECL_ACOSL=1;
7371 HAVE_DECL_ASINL=1;
7372 HAVE_DECL_ATANL=1;
7373 HAVE_DECL_CBRTF=1;
7374 HAVE_DECL_CBRTL=1;
7375 HAVE_DECL_CEILF=1;
7376 HAVE_DECL_CEILL=1;
7377 HAVE_DECL_COPYSIGNF=1;
7378 HAVE_DECL_COSL=1;
7379 HAVE_DECL_EXPL=1;
7380 HAVE_DECL_EXP2=1;
7381 HAVE_DECL_EXP2F=1;
7382 HAVE_DECL_EXP2L=1;
7383 HAVE_DECL_EXPM1L=1;
7384 HAVE_DECL_FLOORF=1;
7385 HAVE_DECL_FLOORL=1;
7386 HAVE_DECL_FREXPL=1;
7387 HAVE_DECL_LDEXPL=1;
7388 HAVE_DECL_LOGL=1;
7389 HAVE_DECL_LOG10L=1;
7390 HAVE_DECL_LOG2=1;
7391 HAVE_DECL_LOG2F=1;
7392 HAVE_DECL_LOG2L=1;
7393 HAVE_DECL_LOGB=1;
7394 HAVE_DECL_REMAINDER=1;
7395 HAVE_DECL_REMAINDERL=1;
7396 HAVE_DECL_RINTF=1;
7397 HAVE_DECL_ROUND=1;
7398 HAVE_DECL_ROUNDF=1;
7399 HAVE_DECL_ROUNDL=1;
7400 HAVE_DECL_SINL=1;
7401 HAVE_DECL_SQRTL=1;
7402 HAVE_DECL_TANL=1;
7403 HAVE_DECL_TRUNC=1;
7404 HAVE_DECL_TRUNCF=1;
7405 HAVE_DECL_TRUNCL=1;
7406 REPLACE_CBRTF=0;
7407 REPLACE_CBRTL=0;
7408 REPLACE_CEIL=0;
7409 REPLACE_CEILF=0;
7410 REPLACE_CEILL=0;
7411 REPLACE_EXPM1=0;
7412 REPLACE_EXPM1F=0;
7413 REPLACE_EXP2=0;
7414 REPLACE_EXP2L=0;
7415 REPLACE_FABSL=0;
7416 REPLACE_FLOOR=0;
7417 REPLACE_FLOORF=0;
7418 REPLACE_FLOORL=0;
7419 REPLACE_FMA=0;
7420 REPLACE_FMAF=0;
7421 REPLACE_FMAL=0;
7422 REPLACE_FMOD=0;
7423 REPLACE_FMODF=0;
7424 REPLACE_FMODL=0;
7425 REPLACE_FREXPF=0;
7426 REPLACE_FREXP=0;
7427 REPLACE_FREXPL=0;
7428 REPLACE_HUGE_VAL=0;
7429 REPLACE_HYPOT=0;
7430 REPLACE_HYPOTF=0;
7431 REPLACE_HYPOTL=0;
7432 REPLACE_ILOGB=0;
7433 REPLACE_ILOGBF=0;
7434 REPLACE_ISFINITE=0;
7435 REPLACE_ISINF=0;
7436 REPLACE_ISNAN=0;
7437 REPLACE_LDEXPL=0;
7438 REPLACE_LOG=0;
7439 REPLACE_LOGF=0;
7440 REPLACE_LOGL=0;
7441 REPLACE_LOG10=0;
7442 REPLACE_LOG10F=0;
7443 REPLACE_LOG10L=0;
7444 REPLACE_LOG1P=0;
7445 REPLACE_LOG1PF=0;
7446 REPLACE_LOG1PL=0;
7447 REPLACE_LOG2=0;
7448 REPLACE_LOG2F=0;
7449 REPLACE_LOG2L=0;
7450 REPLACE_LOGB=0;
7451 REPLACE_LOGBF=0;
7452 REPLACE_LOGBL=0;
7453 REPLACE_MODF=0;
7454 REPLACE_MODFF=0;
7455 REPLACE_MODFL=0;
7456 REPLACE_NAN=0;
7457 REPLACE_REMAINDER=0;
7458 REPLACE_REMAINDERF=0;
7459 REPLACE_REMAINDERL=0;
7460 REPLACE_ROUND=0;
7461 REPLACE_ROUNDF=0;
7462 REPLACE_ROUNDL=0;
7463 REPLACE_SIGNBIT=0;
7464 REPLACE_SIGNBIT_USING_GCC=0;
7465 REPLACE_SQRTL=0;
7466 REPLACE_TRUNC=0;
7467 REPLACE_TRUNCF=0;
7468 REPLACE_TRUNCL=0;
7469
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7472$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7473if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475else
7476
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h. */
7479#include <math.h>
7480 double x;
7481int
7482main ()
7483{
7484int e; return frexp (x, &e) > 0;
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_link "$LINENO"; then :
7490 gl_cv_func_frexp_no_libm=yes
7491else
7492 gl_cv_func_frexp_no_libm=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7496
7497fi
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7499$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7500
4a626d0a
PA
7501ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7502if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7503 ac_have_decl=1
7504else
7505 ac_have_decl=0
7506fi
88b48903 7507
4a626d0a
PA
7508cat >>confdefs.h <<_ACEOF
7509#define HAVE_DECL_ALARM $ac_have_decl
7510_ACEOF
88b48903
WN
7511
7512
88b48903
WN
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7514$as_echo_n "checking whether long double and double are the same... " >&6; }
7515if test "${gl_cv_long_double_equals_double+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h. */
7520#include <float.h>
7521int
7522main ()
7523{
7524typedef int check[sizeof (long double) == sizeof (double)
7525 && LDBL_MANT_DIG == DBL_MANT_DIG
7526 && LDBL_MAX_EXP == DBL_MAX_EXP
7527 && LDBL_MIN_EXP == DBL_MIN_EXP
7528 ? 1 : -1];
7529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534if ac_fn_c_try_compile "$LINENO"; then :
7535 gl_cv_long_double_equals_double=yes
7536else
7537 gl_cv_long_double_equals_double=no
7538fi
7539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7543$as_echo "$gl_cv_long_double_equals_double" >&6; }
7544 if test $gl_cv_long_double_equals_double = yes; then
7545
7546$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7547
7548 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7549 else
7550 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7551 fi
7552
7553
4a626d0a
PA
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7555$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7556if test "${ac_cv_c_restrict+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 ac_cv_c_restrict=no
7560 # The order here caters to the fact that C++ does not require restrict.
7561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h. */
7564typedef int *int_ptr;
7565 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7566 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7567 int bar (int ip[$ac_kw]) { return ip[0]; }
7568
7569int
7570main ()
7571{
7572int s[1];
7573 int *$ac_kw t = s;
7574 t[0] = 0;
7575 return foo (t) + bar (t);
7576
7577 ;
7578 return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582 ac_cv_c_restrict=$ac_kw
7583fi
7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 test "$ac_cv_c_restrict" != no && break
7586 done
7587
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7590$as_echo "$ac_cv_c_restrict" >&6; }
7591
7592 case $ac_cv_c_restrict in
7593 restrict) ;;
7594 no) $as_echo "#define restrict /**/" >>confdefs.h
7595 ;;
7596 *) cat >>confdefs.h <<_ACEOF
7597#define restrict $ac_cv_c_restrict
7598_ACEOF
7599 ;;
7600 esac
7601
7602
7603 GNULIB_GETTIMEOFDAY=0;
7604 HAVE_GETTIMEOFDAY=1;
7605 HAVE_STRUCT_TIMEVAL=1;
7606 HAVE_SYS_TIME_H=1;
7607 HAVE_TIMEZONE_T=0;
7608 REPLACE_GETTIMEOFDAY=0;
7609 REPLACE_STRUCT_TIMEVAL=0;
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 if test $gl_cv_have_include_next = yes; then
7629 gl_cv_next_sys_time_h='<'sys/time.h'>'
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7632$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7633if test "${gl_cv_next_sys_time_h+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7635else
7636
7637 if test $ac_cv_header_sys_time_h = yes; then
7638
7639
7640
7641
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h. */
7644#include <sys/time.h>
7645_ACEOF
7646 case "$host_os" in
7647 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7648 *) gl_absname_cpp="$ac_cpp" ;;
7649 esac
7650
7651 case "$host_os" in
7652 mingw*)
7653 gl_dirsep_regex='[/\\]'
7654 ;;
7655 *)
7656 gl_dirsep_regex='\/'
7657 ;;
7658 esac
7659 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7660 gl_header_literal_regex=`echo 'sys/time.h' \
7661 | sed -e "$gl_make_literal_regex_sed"`
7662 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7663 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7664 s|^/[^/]|//&|
7665 p
7666 q
7667 }'
7668
7669 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7670 sed -n "$gl_absolute_header_sed"`
7671
7672 gl_header=$gl_cv_absolute_sys_time_h
7673 gl_cv_next_sys_time_h='"'$gl_header'"'
7674 else
7675 gl_cv_next_sys_time_h='<'sys/time.h'>'
7676 fi
7677
7678
7679fi
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7681$as_echo "$gl_cv_next_sys_time_h" >&6; }
7682 fi
7683 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7684
7685 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7687 gl_next_as_first_directive='<'sys/time.h'>'
7688 else
7689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7690 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7691 fi
7692 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7693
7694
7695
7696
7697
7698 if test $ac_cv_header_sys_time_h != yes; then
7699 HAVE_SYS_TIME_H=0
7700 fi
7701
7702
7703
7704
7705
7706 if test $ac_cv_header_sys_socket_h != yes; then
7707 for ac_header in winsock2.h
7708do :
7709 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7710if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7711 cat >>confdefs.h <<_ACEOF
7712#define HAVE_WINSOCK2_H 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719 fi
7720 if test "$ac_cv_header_winsock2_h" = yes; then
7721 HAVE_WINSOCK2_H=1
7722 UNISTD_H_HAVE_WINSOCK2_H=1
7723 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7724 else
7725 HAVE_WINSOCK2_H=0
7726 fi
7727
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7730$as_echo_n "checking for struct timeval... " >&6; }
7731if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733else
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h. */
7736#if HAVE_SYS_TIME_H
7737 #include <sys/time.h>
7738 #endif
7739 #include <time.h>
7740 #if HAVE_WINSOCK2_H
7741 # include <winsock2.h>
7742 #endif
7743
7744int
7745main ()
7746{
7747static struct timeval x; x.tv_sec = x.tv_usec;
7748 ;
7749 return 0;
7750}
7751_ACEOF
7752if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_sys_struct_timeval=yes
7754else
7755 gl_cv_sys_struct_timeval=no
7756fi
7757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7761$as_echo "$gl_cv_sys_struct_timeval" >&6; }
7762 if test $gl_cv_sys_struct_timeval != yes; then
7763 HAVE_STRUCT_TIMEVAL=0
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7766$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7767if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h. */
7772#if HAVE_SYS_TIME_H
7773 #include <sys/time.h>
7774 #endif
7775 #include <time.h>
7776 #if HAVE_WINSOCK2_H
7777 # include <winsock2.h>
7778 #endif
7779
7780int
7781main ()
7782{
7783static struct timeval x;
7784 typedef int verify_tv_sec_type[
7785 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7786 ];
7787
7788 ;
7789 return 0;
7790}
7791_ACEOF
7792if ac_fn_c_try_compile "$LINENO"; then :
7793 gl_cv_sys_struct_timeval_tv_sec=yes
7794else
7795 gl_cv_sys_struct_timeval_tv_sec=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7801$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7802 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7803 REPLACE_STRUCT_TIMEVAL=1
7804 fi
7805 fi
7806
7807
7808 for gl_func in gettimeofday; do
7809 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7811$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7812if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7813 $as_echo_n "(cached) " >&6
7814else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h. */
7817
7818#if HAVE_SYS_TIME_H
7819# include <sys/time.h>
7820#endif
7821#include <time.h>
7822
7823int
7824main ()
7825{
7826#undef $gl_func
7827 (void) $gl_func;
7828 ;
7829 return 0;
7830}
7831_ACEOF
7832if ac_fn_c_try_compile "$LINENO"; then :
7833 eval "$as_gl_Symbol=yes"
7834else
7835 eval "$as_gl_Symbol=no"
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838fi
7839eval ac_res=\$$as_gl_Symbol
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7841$as_echo "$ac_res" >&6; }
7842 eval as_val=\$$as_gl_Symbol
7843 if test "x$as_val" = x""yes; then :
7844 cat >>confdefs.h <<_ACEOF
7845#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7846_ACEOF
7847
7848 eval ac_cv_have_decl_$gl_func=yes
7849fi
7850 done
7851
7852
7853
7854
7855
7856
7857
88b48903 7858
8690e634
JK
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7860$as_echo_n "checking for unsigned long long int... " >&6; }
7861if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863else
7864 ac_cv_type_unsigned_long_long_int=yes
7865 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h. */
7868
7869 /* For now, do not test the preprocessor; as of 2007 there are too many
7870 implementations with broken preprocessors. Perhaps this can
7871 be revisited in 2012. In the meantime, code should not expect
7872 #if to work with literals wider than 32 bits. */
7873 /* Test literals. */
7874 long long int ll = 9223372036854775807ll;
7875 long long int nll = -9223372036854775807LL;
7876 unsigned long long int ull = 18446744073709551615ULL;
7877 /* Test constant expressions. */
7878 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7879 ? 1 : -1)];
7880 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7881 ? 1 : -1)];
7882 int i = 63;
7883int
7884main ()
7885{
7886/* Test availability of runtime routines for shift and division. */
7887 long long int llmax = 9223372036854775807ll;
7888 unsigned long long int ullmax = 18446744073709551615ull;
7889 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7890 | (llmax / ll) | (llmax % ll)
7891 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7892 | (ullmax / ull) | (ullmax % ull));
7893 ;
7894 return 0;
7895}
7896
7897_ACEOF
7898if ac_fn_c_try_link "$LINENO"; then :
7899
7900else
7901 ac_cv_type_unsigned_long_long_int=no
7902fi
7903rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 fi
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7908$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7909 if test $ac_cv_type_unsigned_long_long_int = yes; then
7910
7911$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7912
7913 fi
7914
7915
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7918$as_echo_n "checking for long long int... " >&6; }
7919if test "${ac_cv_type_long_long_int+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921else
7922 ac_cv_type_long_long_int=yes
7923 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7924 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7925 if test $ac_cv_type_long_long_int = yes; then
7926 if test "$cross_compiling" = yes; then :
7927 :
7928else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931#include <limits.h>
7932 #ifndef LLONG_MAX
7933 # define HALF \
7934 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7935 # define LLONG_MAX (HALF - 1 + HALF)
7936 #endif
7937int
7938main ()
7939{
7940long long int n = 1;
7941 int i;
7942 for (i = 0; ; i++)
7943 {
7944 long long int m = n << i;
7945 if (m >> i != n)
7946 return 1;
7947 if (LLONG_MAX / 2 < m)
7948 break;
7949 }
7950 return 0;
7951 ;
7952 return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_run "$LINENO"; then :
7956
7957else
7958 ac_cv_type_long_long_int=no
7959fi
7960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7961 conftest.$ac_objext conftest.beam conftest.$ac_ext
7962fi
7963
7964 fi
7965 fi
7966fi
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7968$as_echo "$ac_cv_type_long_long_int" >&6; }
7969 if test $ac_cv_type_long_long_int = yes; then
7970
7971$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7972
7973 fi
7974
7975
7976
7977
7978
7979
88b48903
WN
7980 gl_cv_c_multiarch=no
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 7982/* end confdefs.h. */
88b48903
WN
7983#ifndef __APPLE_CC__
7984 not a universal capable compiler
7985 #endif
7986 typedef int dummy;
7987
8690e634
JK
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990
7991 arch=
7992 prev=
7993 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7994 if test -n "$prev"; then
7995 case $word in
7996 i?86 | x86_64 | ppc | ppc64)
7997 if test -z "$arch" || test "$arch" = "$word"; then
7998 arch="$word"
7999 else
8000 gl_cv_c_multiarch=yes
8001 fi
8002 ;;
8003 esac
8004 prev=
8005 else
8006 if test "x$word" = "x-arch"; then
8007 prev=arch
8008 fi
8009 fi
8010 done
8011
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 if test $gl_cv_c_multiarch = yes; then
8015 APPLE_UNIVERSAL_BUILD=1
8016 else
8017 APPLE_UNIVERSAL_BUILD=0
8018 fi
8019
8020
8021
8022
8023
8024 if test $ac_cv_type_long_long_int = yes; then
8025 HAVE_LONG_LONG_INT=1
8026 else
8027 HAVE_LONG_LONG_INT=0
8028 fi
8029
8030
8031 if test $ac_cv_type_unsigned_long_long_int = yes; then
8032 HAVE_UNSIGNED_LONG_LONG_INT=1
8033 else
8034 HAVE_UNSIGNED_LONG_LONG_INT=0
8035 fi
8036
8037
8038
8690e634
JK
8039 if test $ac_cv_header_wchar_h = yes; then
8040 HAVE_WCHAR_H=1
8041 else
8042 HAVE_WCHAR_H=0
8043 fi
8044
8045
8046 if test $ac_cv_header_inttypes_h = yes; then
8047 HAVE_INTTYPES_H=1
8048 else
8049 HAVE_INTTYPES_H=0
8050 fi
8051
8052
8053 if test $ac_cv_header_sys_types_h = yes; then
8054 HAVE_SYS_TYPES_H=1
8055 else
8056 HAVE_SYS_TYPES_H=0
8057 fi
8058
8059
8060
8061
8062
8063
8064
8065
8690e634
JK
8066
8067
8068
8069 if test $gl_cv_have_include_next = yes; then
8070 gl_cv_next_stdint_h='<'stdint.h'>'
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8073$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8074if test "${gl_cv_next_stdint_h+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076else
8077
8078 if test $ac_cv_header_stdint_h = yes; then
8079
8080
4a626d0a
PA
8081
8082
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8084/* end confdefs.h. */
8085#include <stdint.h>
8690e634 8086_ACEOF
4a626d0a
PA
8087 case "$host_os" in
8088 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8089 *) gl_absname_cpp="$ac_cpp" ;;
8090 esac
8091
8092 case "$host_os" in
8093 mingw*)
8094 gl_dirsep_regex='[/\\]'
8095 ;;
8096 *)
8097 gl_dirsep_regex='\/'
8098 ;;
8099 esac
8100 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8101 gl_header_literal_regex=`echo 'stdint.h' \
8102 | sed -e "$gl_make_literal_regex_sed"`
8103 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8104 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8105 s|^/[^/]|//&|
8106 p
8107 q
8108 }'
8109
8110 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8111 sed -n "$gl_absolute_header_sed"`
8112
8113 gl_header=$gl_cv_absolute_stdint_h
8114 gl_cv_next_stdint_h='"'$gl_header'"'
8690e634
JK
8115 else
8116 gl_cv_next_stdint_h='<'stdint.h'>'
8117 fi
8118
8119
8120fi
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8122$as_echo "$gl_cv_next_stdint_h" >&6; }
8123 fi
8124 NEXT_STDINT_H=$gl_cv_next_stdint_h
8125
8126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8128 gl_next_as_first_directive='<'stdint.h'>'
8129 else
8130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8131 gl_next_as_first_directive=$gl_cv_next_stdint_h
8132 fi
8133 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8134
8135
8136
8137
8138 if test $ac_cv_header_stdint_h = yes; then
8139 HAVE_STDINT_H=1
8140 else
8141 HAVE_STDINT_H=0
8142 fi
8143
8144
8145 if test $ac_cv_header_stdint_h = yes; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8147$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8148if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150else
8151 gl_cv_header_working_stdint_h=no
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h. */
8154
8155
8156#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8157#include <stdint.h>
8158/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8159#if !(defined WCHAR_MIN && defined WCHAR_MAX)
8160#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8161#endif
8162
8163
8164 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8165 included before <wchar.h>. */
8166 #include <stddef.h>
8167 #include <signal.h>
8168 #if HAVE_WCHAR_H
8169 # include <stdio.h>
8170 # include <time.h>
8171 # include <wchar.h>
8172 #endif
8173
8174
8175#ifdef INT8_MAX
8176int8_t a1 = INT8_MAX;
8177int8_t a1min = INT8_MIN;
8178#endif
8179#ifdef INT16_MAX
8180int16_t a2 = INT16_MAX;
8181int16_t a2min = INT16_MIN;
8182#endif
8183#ifdef INT32_MAX
8184int32_t a3 = INT32_MAX;
8185int32_t a3min = INT32_MIN;
8186#endif
8187#ifdef INT64_MAX
8188int64_t a4 = INT64_MAX;
8189int64_t a4min = INT64_MIN;
8190#endif
8191#ifdef UINT8_MAX
8192uint8_t b1 = UINT8_MAX;
8193#else
8194typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8195#endif
8196#ifdef UINT16_MAX
8197uint16_t b2 = UINT16_MAX;
8198#endif
8199#ifdef UINT32_MAX
8200uint32_t b3 = UINT32_MAX;
8201#endif
8202#ifdef UINT64_MAX
8203uint64_t b4 = UINT64_MAX;
8204#endif
8205int_least8_t c1 = INT8_C (0x7f);
8206int_least8_t c1max = INT_LEAST8_MAX;
8207int_least8_t c1min = INT_LEAST8_MIN;
8208int_least16_t c2 = INT16_C (0x7fff);
8209int_least16_t c2max = INT_LEAST16_MAX;
8210int_least16_t c2min = INT_LEAST16_MIN;
8211int_least32_t c3 = INT32_C (0x7fffffff);
8212int_least32_t c3max = INT_LEAST32_MAX;
8213int_least32_t c3min = INT_LEAST32_MIN;
8214int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8215int_least64_t c4max = INT_LEAST64_MAX;
8216int_least64_t c4min = INT_LEAST64_MIN;
8217uint_least8_t d1 = UINT8_C (0xff);
8218uint_least8_t d1max = UINT_LEAST8_MAX;
8219uint_least16_t d2 = UINT16_C (0xffff);
8220uint_least16_t d2max = UINT_LEAST16_MAX;
8221uint_least32_t d3 = UINT32_C (0xffffffff);
8222uint_least32_t d3max = UINT_LEAST32_MAX;
8223uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8224uint_least64_t d4max = UINT_LEAST64_MAX;
8225int_fast8_t e1 = INT_FAST8_MAX;
8226int_fast8_t e1min = INT_FAST8_MIN;
8227int_fast16_t e2 = INT_FAST16_MAX;
8228int_fast16_t e2min = INT_FAST16_MIN;
8229int_fast32_t e3 = INT_FAST32_MAX;
8230int_fast32_t e3min = INT_FAST32_MIN;
8231int_fast64_t e4 = INT_FAST64_MAX;
8232int_fast64_t e4min = INT_FAST64_MIN;
8233uint_fast8_t f1 = UINT_FAST8_MAX;
8234uint_fast16_t f2 = UINT_FAST16_MAX;
8235uint_fast32_t f3 = UINT_FAST32_MAX;
8236uint_fast64_t f4 = UINT_FAST64_MAX;
8237#ifdef INTPTR_MAX
8238intptr_t g = INTPTR_MAX;
8239intptr_t gmin = INTPTR_MIN;
8240#endif
8241#ifdef UINTPTR_MAX
8242uintptr_t h = UINTPTR_MAX;
8243#endif
8244intmax_t i = INTMAX_MAX;
8245uintmax_t j = UINTMAX_MAX;
8246
8247#include <limits.h> /* for CHAR_BIT */
8248#define TYPE_MINIMUM(t) \
8249 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8250#define TYPE_MAXIMUM(t) \
8251 ((t) ((t) 0 < (t) -1 \
8252 ? (t) -1 \
8253 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8254struct s {
8255 int check_PTRDIFF:
8256 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8257 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8258 ? 1 : -1;
8259 /* Detect bug in FreeBSD 6.0 / ia64. */
8260 int check_SIG_ATOMIC:
8261 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8262 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8263 ? 1 : -1;
8264 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8265 int check_WCHAR:
8266 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8267 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8268 ? 1 : -1;
8269 /* Detect bug in mingw. */
8270 int check_WINT:
8271 WINT_MIN == TYPE_MINIMUM (wint_t)
8272 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8273 ? 1 : -1;
8274
8275 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8276 int check_UINT8_C:
8277 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8278 int check_UINT16_C:
8279 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8280
8281 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8282#ifdef UINT8_MAX
8283 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8284#endif
8285#ifdef UINT16_MAX
8286 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8287#endif
8288#ifdef UINT32_MAX
8289 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8290#endif
8291#ifdef UINT64_MAX
8292 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8293#endif
8294 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8295 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8296 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8297 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8298 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8299 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8300 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8301 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8302 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8303 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8304 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8305};
8306
8307int
8308main ()
8309{
8310
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316 if test "$cross_compiling" = yes; then :
8317 gl_cv_header_working_stdint_h=yes
8318
8319else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321/* end confdefs.h. */
8322
8323
8324#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8325#include <stdint.h>
8326
8327
8328 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8329 included before <wchar.h>. */
8330 #include <stddef.h>
8331 #include <signal.h>
8332 #if HAVE_WCHAR_H
8333 # include <stdio.h>
8334 # include <time.h>
8335 # include <wchar.h>
8336 #endif
8337
8338
8339#include <stdio.h>
8340#include <string.h>
8341#define MVAL(macro) MVAL1(macro)
8342#define MVAL1(expression) #expression
8343static const char *macro_values[] =
8344 {
8345#ifdef INT8_MAX
8346 MVAL (INT8_MAX),
8347#endif
8348#ifdef INT16_MAX
8349 MVAL (INT16_MAX),
8350#endif
8351#ifdef INT32_MAX
8352 MVAL (INT32_MAX),
8353#endif
8354#ifdef INT64_MAX
8355 MVAL (INT64_MAX),
8356#endif
8357#ifdef UINT8_MAX
8358 MVAL (UINT8_MAX),
8359#endif
8360#ifdef UINT16_MAX
8361 MVAL (UINT16_MAX),
8362#endif
8363#ifdef UINT32_MAX
8364 MVAL (UINT32_MAX),
8365#endif
8366#ifdef UINT64_MAX
8367 MVAL (UINT64_MAX),
8368#endif
8369 NULL
8370 };
8371
8372int
8373main ()
8374{
8375
8376 const char **mv;
8377 for (mv = macro_values; *mv != NULL; mv++)
8378 {
8379 const char *value = *mv;
8380 /* Test whether it looks like a cast expression. */
8381 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8382 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8383 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8384 || strncmp (value, "((int)"/*)*/, 6) == 0
8385 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8386 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8387 return mv - macro_values + 1;
8388 }
8389 return 0;
8390
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_run "$LINENO"; then :
8396 gl_cv_header_working_stdint_h=yes
8397fi
8398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8399 conftest.$ac_objext conftest.beam conftest.$ac_ext
8400fi
8401
8402
8403fi
8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8408$as_echo "$gl_cv_header_working_stdint_h" >&6; }
8409 fi
8410 if test "$gl_cv_header_working_stdint_h" = yes; then
8411 STDINT_H=
8412 else
8413 for ac_header in sys/inttypes.h sys/bitypes.h
8414do :
8415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8417eval as_val=\$$as_ac_Header
8418 if test "x$as_val" = x""yes; then :
8419 cat >>confdefs.h <<_ACEOF
8420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8421_ACEOF
8422
8423fi
8424
8425done
8426
8427 if test $ac_cv_header_sys_inttypes_h = yes; then
8428 HAVE_SYS_INTTYPES_H=1
8429 else
8430 HAVE_SYS_INTTYPES_H=0
8431 fi
8432
8433 if test $ac_cv_header_sys_bitypes_h = yes; then
8434 HAVE_SYS_BITYPES_H=1
8435 else
8436 HAVE_SYS_BITYPES_H=0
8437 fi
8438
8439
8440
8441
8442 if test $APPLE_UNIVERSAL_BUILD = 0; then
8443
8444
8445 for gltype in ptrdiff_t size_t ; do
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8447$as_echo_n "checking for bit size of $gltype... " >&6; }
8448if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8449 $as_echo_n "(cached) " >&6
8450else
8451 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8452 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8453 included before <wchar.h>. */
8454 #include <stddef.h>
8455 #include <signal.h>
8456 #if HAVE_WCHAR_H
8457 # include <stdio.h>
8458 # include <time.h>
8459 # include <wchar.h>
8460 #endif
8461
8462#include <limits.h>"; then :
8463
8464else
8465 result=unknown
8466fi
8467
8468 eval gl_cv_bitsizeof_${gltype}=\$result
8469
8470fi
8471eval ac_res=\$gl_cv_bitsizeof_${gltype}
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8473$as_echo "$ac_res" >&6; }
8474 eval result=\$gl_cv_bitsizeof_${gltype}
8475 if test $result = unknown; then
8476 result=0
8477 fi
8478 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8479 cat >>confdefs.h <<_ACEOF
8480#define BITSIZEOF_${GLTYPE} $result
8481_ACEOF
8482
8483 eval BITSIZEOF_${GLTYPE}=\$result
8484 done
8485
8486
8487 fi
8488
8489
8490 for gltype in sig_atomic_t wchar_t wint_t ; do
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8492$as_echo_n "checking for bit size of $gltype... " >&6; }
8493if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8494 $as_echo_n "(cached) " >&6
8495else
8496 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8497 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8498 included before <wchar.h>. */
8499 #include <stddef.h>
8500 #include <signal.h>
8501 #if HAVE_WCHAR_H
8502 # include <stdio.h>
8503 # include <time.h>
8504 # include <wchar.h>
8505 #endif
8506
8507#include <limits.h>"; then :
8508
8509else
8510 result=unknown
8511fi
8512
8513 eval gl_cv_bitsizeof_${gltype}=\$result
8514
8515fi
8516eval ac_res=\$gl_cv_bitsizeof_${gltype}
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8518$as_echo "$ac_res" >&6; }
8519 eval result=\$gl_cv_bitsizeof_${gltype}
8520 if test $result = unknown; then
8521 result=0
8522 fi
8523 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8524 cat >>confdefs.h <<_ACEOF
8525#define BITSIZEOF_${GLTYPE} $result
8526_ACEOF
8527
8528 eval BITSIZEOF_${GLTYPE}=\$result
8529 done
8530
8531
8532
8533
8534 for gltype in sig_atomic_t wchar_t wint_t ; do
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8536$as_echo_n "checking whether $gltype is signed... " >&6; }
8537if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8538 $as_echo_n "(cached) " >&6
8539else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h. */
8542
8543 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8544 included before <wchar.h>. */
8545 #include <stddef.h>
8546 #include <signal.h>
8547 #if HAVE_WCHAR_H
8548 # include <stdio.h>
8549 # include <time.h>
8550 # include <wchar.h>
8551 #endif
8552
8553 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8554int
8555main ()
8556{
8557
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563 result=yes
8564else
8565 result=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 eval gl_cv_type_${gltype}_signed=\$result
8569
8570fi
8571eval ac_res=\$gl_cv_type_${gltype}_signed
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8573$as_echo "$ac_res" >&6; }
8574 eval result=\$gl_cv_type_${gltype}_signed
8575 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8576 if test "$result" = yes; then
8577 cat >>confdefs.h <<_ACEOF
8578#define HAVE_SIGNED_${GLTYPE} 1
8579_ACEOF
8580
8581 eval HAVE_SIGNED_${GLTYPE}=1
8582 else
8583 eval HAVE_SIGNED_${GLTYPE}=0
8584 fi
8585 done
8586
8587
8588 gl_cv_type_ptrdiff_t_signed=yes
8589 gl_cv_type_size_t_signed=no
8590 if test $APPLE_UNIVERSAL_BUILD = 0; then
8591
8592
8593 for gltype in ptrdiff_t size_t ; do
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8595$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8596if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8597 $as_echo_n "(cached) " >&6
8598else
8599 eval gl_cv_type_${gltype}_suffix=no
8600 eval result=\$gl_cv_type_${gltype}_signed
8601 if test "$result" = yes; then
8602 glsufu=
8603 else
8604 glsufu=u
8605 fi
8606 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8607 case $glsuf in
8608 '') gltype1='int';;
8609 l) gltype1='long int';;
8610 ll) gltype1='long long int';;
8611 i64) gltype1='__int64';;
8612 u) gltype1='unsigned int';;
8613 ul) gltype1='unsigned long int';;
8614 ull) gltype1='unsigned long long int';;
8615 ui64)gltype1='unsigned __int64';;
8616 esac
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
8619
8620 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8621 included before <wchar.h>. */
8622 #include <stddef.h>
8623 #include <signal.h>
8624 #if HAVE_WCHAR_H
8625 # include <stdio.h>
8626 # include <time.h>
8627 # include <wchar.h>
8628 #endif
8629
8630 extern $gltype foo;
8631 extern $gltype1 foo;
8632int
8633main ()
8634{
8635
8636 ;
8637 return 0;
8638}
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"; then :
8641 eval gl_cv_type_${gltype}_suffix=\$glsuf
8642fi
8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 eval result=\$gl_cv_type_${gltype}_suffix
8645 test "$result" != no && break
8646 done
8647fi
8648eval ac_res=\$gl_cv_type_${gltype}_suffix
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8650$as_echo "$ac_res" >&6; }
8651 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8652 eval result=\$gl_cv_type_${gltype}_suffix
8653 test "$result" = no && result=
8654 eval ${GLTYPE}_SUFFIX=\$result
8655 cat >>confdefs.h <<_ACEOF
8656#define ${GLTYPE}_SUFFIX $result
8657_ACEOF
8658
8659 done
8660
8661
8662 fi
8663
8664
8665 for gltype in sig_atomic_t wchar_t wint_t ; do
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8667$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8668if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8669 $as_echo_n "(cached) " >&6
8670else
8671 eval gl_cv_type_${gltype}_suffix=no
8672 eval result=\$gl_cv_type_${gltype}_signed
8673 if test "$result" = yes; then
8674 glsufu=
8675 else
8676 glsufu=u
8677 fi
8678 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8679 case $glsuf in
8680 '') gltype1='int';;
8681 l) gltype1='long int';;
8682 ll) gltype1='long long int';;
8683 i64) gltype1='__int64';;
8684 u) gltype1='unsigned int';;
8685 ul) gltype1='unsigned long int';;
8686 ull) gltype1='unsigned long long int';;
8687 ui64)gltype1='unsigned __int64';;
8688 esac
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691
8692 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8693 included before <wchar.h>. */
8694 #include <stddef.h>
8695 #include <signal.h>
8696 #if HAVE_WCHAR_H
8697 # include <stdio.h>
8698 # include <time.h>
8699 # include <wchar.h>
8700 #endif
8701
8702 extern $gltype foo;
8703 extern $gltype1 foo;
8704int
8705main ()
8706{
8707
8708 ;
8709 return 0;
8710}
8711_ACEOF
8712if ac_fn_c_try_compile "$LINENO"; then :
8713 eval gl_cv_type_${gltype}_suffix=\$glsuf
8714fi
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 eval result=\$gl_cv_type_${gltype}_suffix
8717 test "$result" != no && break
8718 done
8719fi
8720eval ac_res=\$gl_cv_type_${gltype}_suffix
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8722$as_echo "$ac_res" >&6; }
8723 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8724 eval result=\$gl_cv_type_${gltype}_suffix
8725 test "$result" = no && result=
8726 eval ${GLTYPE}_SUFFIX=\$result
8727 cat >>confdefs.h <<_ACEOF
8728#define ${GLTYPE}_SUFFIX $result
8729_ACEOF
8730
8731 done
8732
8733
8734
8735 if test $BITSIZEOF_WINT_T -lt 32; then
8736 BITSIZEOF_WINT_T=32
8737 fi
8738
8739 STDINT_H=stdint.h
8740 fi
8741
8742 if test -n "$STDINT_H"; then
8743 GL_GENERATE_STDINT_H_TRUE=
8744 GL_GENERATE_STDINT_H_FALSE='#'
8745else
8746 GL_GENERATE_STDINT_H_TRUE='#'
8747 GL_GENERATE_STDINT_H_FALSE=
8748fi
8749
8750
8751
8752
8753
8690e634
JK
8754 GNULIB_IMAXABS=0;
8755 GNULIB_IMAXDIV=0;
8756 GNULIB_STRTOIMAX=0;
8757 GNULIB_STRTOUMAX=0;
8758 HAVE_DECL_IMAXABS=1;
8759 HAVE_DECL_IMAXDIV=1;
8760 HAVE_DECL_STRTOIMAX=1;
8761 HAVE_DECL_STRTOUMAX=1;
8762 REPLACE_STRTOIMAX=0;
4a626d0a 8763 REPLACE_STRTOUMAX=0;
8690e634
JK
8764 INT32_MAX_LT_INTMAX_MAX=1;
8765 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8766 PRI_MACROS_BROKEN=0;
8767 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8768 UINT32_MAX_LT_UINTMAX_MAX=1;
8769 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8770
8771
8772
8773
8690e634
JK
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8690e634
JK
8785 if test $gl_cv_have_include_next = yes; then
8786 gl_cv_next_inttypes_h='<'inttypes.h'>'
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8789$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8790if test "${gl_cv_next_inttypes_h+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792else
8793
8794 if test $ac_cv_header_inttypes_h = yes; then
8795
8796
4a626d0a
PA
8797
8798
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8800/* end confdefs.h. */
8801#include <inttypes.h>
8690e634 8802_ACEOF
4a626d0a
PA
8803 case "$host_os" in
8804 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8805 *) gl_absname_cpp="$ac_cpp" ;;
8806 esac
8807
8808 case "$host_os" in
8809 mingw*)
8810 gl_dirsep_regex='[/\\]'
8811 ;;
8812 *)
8813 gl_dirsep_regex='\/'
8814 ;;
8815 esac
8816 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8817 gl_header_literal_regex=`echo 'inttypes.h' \
8818 | sed -e "$gl_make_literal_regex_sed"`
8819 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8820 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8821 s|^/[^/]|//&|
8822 p
8823 q
8824 }'
8825
8826 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8827 sed -n "$gl_absolute_header_sed"`
8828
8829 gl_header=$gl_cv_absolute_inttypes_h
8830 gl_cv_next_inttypes_h='"'$gl_header'"'
8690e634
JK
8831 else
8832 gl_cv_next_inttypes_h='<'inttypes.h'>'
8833 fi
8834
8835
8836fi
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8838$as_echo "$gl_cv_next_inttypes_h" >&6; }
8839 fi
8840 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8841
8842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8844 gl_next_as_first_directive='<'inttypes.h'>'
8845 else
8846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8847 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8848 fi
8849 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8850
8851
8852
8853
8854
8855
8856
8857
8858 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8859 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8861$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8862if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8863 $as_echo_n "(cached) " >&6
8864else
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866/* end confdefs.h. */
8867#include <inttypes.h>
8868
8869int
8870main ()
8871{
8872#undef $gl_func
8873 (void) $gl_func;
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878if ac_fn_c_try_compile "$LINENO"; then :
8879 eval "$as_gl_Symbol=yes"
8880else
8881 eval "$as_gl_Symbol=no"
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884fi
8885eval ac_res=\$$as_gl_Symbol
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8887$as_echo "$ac_res" >&6; }
8888 eval as_val=\$$as_gl_Symbol
8889 if test "x$as_val" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8892_ACEOF
8893
8894 eval ac_cv_have_decl_$gl_func=yes
8895fi
8896 done
8897
8898
8899
8900 for ac_header in inttypes.h
8901do :
8902 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8903if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905#define HAVE_INTTYPES_H 1
8906_ACEOF
8907
8908fi
8909
8910done
8911
8912 if test $ac_cv_header_inttypes_h = yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8914$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8915if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917else
8918
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h. */
8921
8922#include <inttypes.h>
8923#ifdef PRId32
8924char *p = PRId32;
8925#endif
8926
8927int
8928main ()
8929{
8930
8931 ;
8932 return 0;
8933}
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"; then :
8936 gt_cv_inttypes_pri_broken=no
8937else
8938 gt_cv_inttypes_pri_broken=yes
8939fi
8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941
8942fi
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8944$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8945 fi
8946 if test "$gt_cv_inttypes_pri_broken" = yes; then
8947
8948cat >>confdefs.h <<_ACEOF
8949#define PRI_MACROS_BROKEN 1
8950_ACEOF
8951
8952 PRI_MACROS_BROKEN=1
8953 else
8954 PRI_MACROS_BROKEN=0
8955 fi
8956
8957
8958
88b48903
WN
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8960$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8961if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
8962 $as_echo_n "(cached) " >&6
8963else
88b48903
WN
8964
8965 if test "$cross_compiling" = yes; then :
8966
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 8968/* end confdefs.h. */
88b48903
WN
8969
8970#if defined arm || defined __arm || defined __arm__
8971 mixed_endianness
8972#endif
8973
8974_ACEOF
8975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8976 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8977 gl_cv_cc_double_expbit0="unknown"
8978else
8979
8980 :
8981if test "${ac_cv_c_bigendian+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983else
8984 ac_cv_c_bigendian=unknown
8985 # See if we're dealing with a universal compiler.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h. */
8988#ifndef __APPLE_CC__
8989 not a universal capable compiler
8990 #endif
8991 typedef int dummy;
8992
8993_ACEOF
8994if ac_fn_c_try_compile "$LINENO"; then :
8995
8996 # Check for potential -arch flags. It is not universal unless
8997 # there are at least two -arch flags with different values.
8998 ac_arch=
8999 ac_prev=
9000 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9001 if test -n "$ac_prev"; then
9002 case $ac_word in
9003 i?86 | x86_64 | ppc | ppc64)
9004 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9005 ac_arch=$ac_word
9006 else
9007 ac_cv_c_bigendian=universal
9008 break
9009 fi
9010 ;;
9011 esac
9012 ac_prev=
9013 elif test "x$ac_word" = "x-arch"; then
9014 ac_prev=arch
9015 fi
9016 done
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 if test $ac_cv_c_bigendian = unknown; then
9020 # See if sys/param.h defines the BYTE_ORDER macro.
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h. */
9023#include <sys/types.h>
9024 #include <sys/param.h>
9025
8690e634
JK
9026int
9027main ()
9028{
88b48903
WN
9029#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9030 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9031 && LITTLE_ENDIAN)
9032 bogus endian macros
9033 #endif
9034
8690e634
JK
9035 ;
9036 return 0;
9037}
9038_ACEOF
88b48903
WN
9039if ac_fn_c_try_compile "$LINENO"; then :
9040 # It does; now see whether it defined to BIG_ENDIAN or not.
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h. */
9043#include <sys/types.h>
9044 #include <sys/param.h>
9045
9046int
9047main ()
9048{
9049#if BYTE_ORDER != BIG_ENDIAN
9050 not big endian
9051 #endif
9052
9053 ;
9054 return 0;
9055}
9056_ACEOF
9057if ac_fn_c_try_compile "$LINENO"; then :
9058 ac_cv_c_bigendian=yes
8690e634 9059else
88b48903 9060 ac_cv_c_bigendian=no
8690e634 9061fi
88b48903 9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 9063fi
88b48903
WN
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 if test $ac_cv_c_bigendian = unknown; then
9067 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h. */
9070#include <limits.h>
8690e634 9071
88b48903
WN
9072int
9073main ()
9074{
9075#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9076 bogus endian macros
9077 #endif
8690e634 9078
88b48903
WN
9079 ;
9080 return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_compile "$LINENO"; then :
9084 # It does; now see whether it defined to _BIG_ENDIAN or not.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h. */
9087#include <limits.h>
8690e634 9088
88b48903
WN
9089int
9090main ()
9091{
9092#ifndef _BIG_ENDIAN
9093 not big endian
9094 #endif
8690e634 9095
88b48903
WN
9096 ;
9097 return 0;
9098}
9099_ACEOF
9100if ac_fn_c_try_compile "$LINENO"; then :
9101 ac_cv_c_bigendian=yes
9102else
9103 ac_cv_c_bigendian=no
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 fi
9109 if test $ac_cv_c_bigendian = unknown; then
9110 # Compile a test program.
9111 if test "$cross_compiling" = yes; then :
9112 # Try to guess by grepping values from an object file.
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h. */
9115short int ascii_mm[] =
9116 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9117 short int ascii_ii[] =
9118 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9119 int use_ascii (int i) {
9120 return ascii_mm[i] + ascii_ii[i];
9121 }
9122 short int ebcdic_ii[] =
9123 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9124 short int ebcdic_mm[] =
9125 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9126 int use_ebcdic (int i) {
9127 return ebcdic_mm[i] + ebcdic_ii[i];
9128 }
9129 extern int foo;
8690e634 9130
88b48903
WN
9131int
9132main ()
9133{
9134return use_ascii (foo) == use_ebcdic (foo);
9135 ;
9136 return 0;
9137}
9138_ACEOF
9139if ac_fn_c_try_compile "$LINENO"; then :
9140 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9141 ac_cv_c_bigendian=yes
9142 fi
9143 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9144 if test "$ac_cv_c_bigendian" = unknown; then
9145 ac_cv_c_bigendian=no
9146 else
9147 # finding both strings is unlikely to happen, but who knows?
9148 ac_cv_c_bigendian=unknown
9149 fi
9150 fi
9151fi
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153else
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h. */
9156$ac_includes_default
9157int
9158main ()
9159{
8690e634 9160
88b48903
WN
9161 /* Are we little or big endian? From Harbison&Steele. */
9162 union
9163 {
9164 long int l;
9165 char c[sizeof (long int)];
9166 } u;
9167 u.l = 1;
9168 return u.c[sizeof (long int) - 1] == 1;
8690e634 9169
88b48903
WN
9170 ;
9171 return 0;
9172}
9173_ACEOF
9174if ac_fn_c_try_run "$LINENO"; then :
9175 ac_cv_c_bigendian=no
9176else
9177 ac_cv_c_bigendian=yes
9178fi
9179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9180 conftest.$ac_objext conftest.beam conftest.$ac_ext
9181fi
8690e634 9182
88b48903
WN
9183 fi
9184fi
9185:
9186 case $ac_cv_c_bigendian in #(
9187 yes)
9188 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9189 no)
9190 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9191 universal)
8690e634 9192
88b48903 9193$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 9194
88b48903
WN
9195 ;; #(
9196 *)
9197 gl_cv_cc_double_expbit0="unknown" ;;
9198 esac
8690e634
JK
9199
9200
88b48903
WN
9201fi
9202rm -f conftest*
8690e634 9203
8690e634 9204
88b48903
WN
9205else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h. */
8690e634 9208
88b48903
WN
9209#include <float.h>
9210#include <stddef.h>
9211#include <stdio.h>
9212#include <string.h>
9213#define NWORDS \
9214 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9215typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9216static unsigned int ored_words[NWORDS];
9217static unsigned int anded_words[NWORDS];
9218static void add_to_ored_words (double x)
9219{
9220 memory_double m;
9221 size_t i;
9222 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9223 memset (&m, 0, sizeof (memory_double));
9224 m.value = x;
9225 for (i = 0; i < NWORDS; i++)
9226 {
9227 ored_words[i] |= m.word[i];
9228 anded_words[i] &= m.word[i];
9229 }
9230}
9231int main ()
9232{
9233 size_t j;
9234 FILE *fp = fopen ("conftest.out", "w");
9235 if (fp == NULL)
9236 return 1;
9237 for (j = 0; j < NWORDS; j++)
9238 anded_words[j] = ~ (unsigned int) 0;
9239 add_to_ored_words (0.25);
9240 add_to_ored_words (0.5);
9241 add_to_ored_words (1.0);
9242 add_to_ored_words (2.0);
9243 add_to_ored_words (4.0);
9244 /* Remove bits that are common (e.g. if representation of the first mantissa
9245 bit is explicit). */
9246 for (j = 0; j < NWORDS; j++)
9247 ored_words[j] &= ~anded_words[j];
9248 /* Now find the nonzero word. */
9249 for (j = 0; j < NWORDS; j++)
9250 if (ored_words[j] != 0)
9251 break;
9252 if (j < NWORDS)
9253 {
9254 size_t i;
9255 for (i = j + 1; i < NWORDS; i++)
9256 if (ored_words[i] != 0)
9257 {
9258 fprintf (fp, "unknown");
9259 return (fclose (fp) != 0);
9260 }
9261 for (i = 0; ; i++)
9262 if ((ored_words[j] >> i) & 1)
9263 {
9264 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9265 return (fclose (fp) != 0);
9266 }
9267 }
9268 fprintf (fp, "unknown");
9269 return (fclose (fp) != 0);
9270}
8690e634 9271
88b48903
WN
9272_ACEOF
9273if ac_fn_c_try_run "$LINENO"; then :
9274 gl_cv_cc_double_expbit0=`cat conftest.out`
9275else
9276 gl_cv_cc_double_expbit0="unknown"
9277fi
9278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9279 conftest.$ac_objext conftest.beam conftest.$ac_ext
9280fi
8690e634 9281
88b48903 9282 rm -f conftest.out
8690e634 9283
88b48903
WN
9284fi
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9286$as_echo "$gl_cv_cc_double_expbit0" >&6; }
9287 case "$gl_cv_cc_double_expbit0" in
9288 word*bit*)
9289 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9290 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 9291
88b48903
WN
9292cat >>confdefs.h <<_ACEOF
9293#define DBL_EXPBIT0_WORD $word
9294_ACEOF
8690e634
JK
9295
9296
88b48903
WN
9297cat >>confdefs.h <<_ACEOF
9298#define DBL_EXPBIT0_BIT $bit
9299_ACEOF
8690e634 9300
88b48903
WN
9301 ;;
9302 esac
8690e634
JK
9303
9304
88b48903
WN
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9306$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9307if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
9308 $as_echo_n "(cached) " >&6
9309else
88b48903
WN
9310 ac_cv_c_bigendian=unknown
9311 # See if we're dealing with a universal compiler.
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h. */
9314#ifndef __APPLE_CC__
9315 not a universal capable compiler
9316 #endif
9317 typedef int dummy;
9318
9319_ACEOF
9320if ac_fn_c_try_compile "$LINENO"; then :
9321
9322 # Check for potential -arch flags. It is not universal unless
9323 # there are at least two -arch flags with different values.
9324 ac_arch=
9325 ac_prev=
9326 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9327 if test -n "$ac_prev"; then
9328 case $ac_word in
9329 i?86 | x86_64 | ppc | ppc64)
9330 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9331 ac_arch=$ac_word
9332 else
9333 ac_cv_c_bigendian=universal
9334 break
9335 fi
9336 ;;
9337 esac
9338 ac_prev=
9339 elif test "x$ac_word" = "x-arch"; then
9340 ac_prev=arch
9341 fi
9342 done
9343fi
9344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 if test $ac_cv_c_bigendian = unknown; then
9346 # See if sys/param.h defines the BYTE_ORDER macro.
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
9348/* end confdefs.h. */
9349#include <sys/types.h>
88b48903
WN
9350 #include <sys/param.h>
9351
9352int
9353main ()
9354{
9355#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9357 && LITTLE_ENDIAN)
9358 bogus endian macros
9359 #endif
9360
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365if ac_fn_c_try_compile "$LINENO"; then :
9366 # It does; now see whether it defined to BIG_ENDIAN or not.
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h. */
9369#include <sys/types.h>
9370 #include <sys/param.h>
9371
9372int
9373main ()
9374{
9375#if BYTE_ORDER != BIG_ENDIAN
9376 not big endian
9377 #endif
9378
9379 ;
9380 return 0;
9381}
9382_ACEOF
9383if ac_fn_c_try_compile "$LINENO"; then :
9384 ac_cv_c_bigendian=yes
9385else
9386 ac_cv_c_bigendian=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 if test $ac_cv_c_bigendian = unknown; then
9393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h. */
9396#include <limits.h>
9397
9398int
9399main ()
9400{
9401#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9402 bogus endian macros
9403 #endif
9404
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409if ac_fn_c_try_compile "$LINENO"; then :
9410 # It does; now see whether it defined to _BIG_ENDIAN or not.
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h. */
9413#include <limits.h>
9414
9415int
9416main ()
9417{
9418#ifndef _BIG_ENDIAN
9419 not big endian
9420 #endif
9421
9422 ;
9423 return 0;
9424}
9425_ACEOF
9426if ac_fn_c_try_compile "$LINENO"; then :
9427 ac_cv_c_bigendian=yes
9428else
9429 ac_cv_c_bigendian=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432fi
9433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 if test $ac_cv_c_bigendian = unknown; then
9436 # Compile a test program.
9437 if test "$cross_compiling" = yes; then :
9438 # Try to guess by grepping values from an object file.
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h. */
9441short int ascii_mm[] =
9442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9443 short int ascii_ii[] =
9444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9445 int use_ascii (int i) {
9446 return ascii_mm[i] + ascii_ii[i];
9447 }
9448 short int ebcdic_ii[] =
9449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9450 short int ebcdic_mm[] =
9451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9452 int use_ebcdic (int i) {
9453 return ebcdic_mm[i] + ebcdic_ii[i];
9454 }
9455 extern int foo;
9456
9457int
9458main ()
9459{
9460return use_ascii (foo) == use_ebcdic (foo);
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465if ac_fn_c_try_compile "$LINENO"; then :
9466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9467 ac_cv_c_bigendian=yes
9468 fi
9469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9470 if test "$ac_cv_c_bigendian" = unknown; then
9471 ac_cv_c_bigendian=no
9472 else
9473 # finding both strings is unlikely to happen, but who knows?
9474 ac_cv_c_bigendian=unknown
9475 fi
9476 fi
9477fi
9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482$ac_includes_default
9483int
9484main ()
9485{
9486
9487 /* Are we little or big endian? From Harbison&Steele. */
9488 union
9489 {
9490 long int l;
9491 char c[sizeof (long int)];
9492 } u;
9493 u.l = 1;
9494 return u.c[sizeof (long int) - 1] == 1;
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
9500if ac_fn_c_try_run "$LINENO"; then :
9501 ac_cv_c_bigendian=no
9502else
9503 ac_cv_c_bigendian=yes
9504fi
9505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9506 conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508
9509 fi
9510fi
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9512$as_echo "$ac_cv_c_bigendian" >&6; }
9513 case $ac_cv_c_bigendian in #(
9514 yes)
9515 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9516;; #(
9517 no)
9518 ;; #(
9519 universal)
9520
9521$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9522
9523 ;; #(
9524 *)
9525 as_fn_error "unknown endianness
9526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9527 esac
9528
9529
9530
2196f55f
YQ
9531
9532 case "$host_os" in
9533 mingw*)
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9535$as_echo_n "checking for 64-bit off_t... " >&6; }
9536if test "${gl_cv_type_off_t_64+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h. */
9541#include <sys/types.h>
9542 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9543
9544int
9545main ()
9546{
9547
9548 ;
9549 return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_compile "$LINENO"; then :
9553 gl_cv_type_off_t_64=yes
9554else
9555 gl_cv_type_off_t_64=no
9556fi
9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9561$as_echo "$gl_cv_type_off_t_64" >&6; }
9562 if test $gl_cv_type_off_t_64 = no; then
9563 WINDOWS_64_BIT_OFF_T=1
9564 else
9565 WINDOWS_64_BIT_OFF_T=0
9566 fi
9567 WINDOWS_64_BIT_ST_SIZE=1
9568 ;;
9569 *)
9570 WINDOWS_64_BIT_OFF_T=0
9571 WINDOWS_64_BIT_ST_SIZE=0
9572 ;;
9573 esac
9574
9575
88b48903
WN
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9577$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9578if test "${am_cv_langinfo_codeset+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h. */
9583#include <langinfo.h>
9584int
9585main ()
9586{
9587char* cs = nl_langinfo(CODESET); return !cs;
9588 ;
9589 return 0;
9590}
9591_ACEOF
9592if ac_fn_c_try_link "$LINENO"; then :
9593 am_cv_langinfo_codeset=yes
9594else
9595 am_cv_langinfo_codeset=no
9596fi
9597rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9602$as_echo "$am_cv_langinfo_codeset" >&6; }
9603 if test $am_cv_langinfo_codeset = yes; then
9604
9605$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9606
9607 fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
88b48903
WN
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9619$as_echo_n "checking for working fcntl.h... " >&6; }
9620if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622else
9623 if test "$cross_compiling" = yes; then :
9624 gl_cv_header_working_fcntl_h=cross-compiling
9625else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h. */
9628#include <sys/types.h>
9629 #include <sys/stat.h>
9630 #if HAVE_UNISTD_H
9631 # include <unistd.h>
9632 #else /* on Windows with MSVC */
9633 # include <io.h>
9634 # include <stdlib.h>
8690e634
JK
9635 # defined sleep(n) _sleep ((n) * 1000)
9636 #endif
9637 #include <fcntl.h>
9638 #ifndef O_NOATIME
9639 #define O_NOATIME 0
9640 #endif
9641 #ifndef O_NOFOLLOW
9642 #define O_NOFOLLOW 0
9643 #endif
9644 static int const constants[] =
9645 {
9646 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9647 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9648 };
9649
9650int
9651main ()
9652{
9653
9654 int result = !constants;
9655 #if HAVE_SYMLINK
9656 {
9657 static char const sym[] = "conftest.sym";
a512b375
JB
9658 if (symlink ("/dev/null", sym) != 0)
9659 result |= 2;
9660 else
9661 {
9662 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9663 if (fd >= 0)
9664 {
9665 close (fd);
9666 result |= 4;
9667 }
9668 }
9669 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
9670 result |= 2;
9671 else
9672 {
9673 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9674 if (fd >= 0)
9675 {
9676 close (fd);
9677 result |= 4;
9678 }
9679 }
9680 unlink (sym);
9681 }
9682 #endif
9683 {
9684 static char const file[] = "confdefs.h";
9685 int fd = open (file, O_RDONLY | O_NOATIME);
9686 if (fd < 0)
9687 result |= 8;
9688 else
9689 {
9690 struct stat st0;
9691 if (fstat (fd, &st0) != 0)
9692 result |= 16;
9693 else
9694 {
9695 char c;
9696 sleep (1);
9697 if (read (fd, &c, 1) != 1)
9698 result |= 24;
9699 else
9700 {
9701 if (close (fd) != 0)
9702 result |= 32;
9703 else
9704 {
9705 struct stat st1;
9706 if (stat (file, &st1) != 0)
9707 result |= 40;
9708 else
9709 if (st0.st_atime != st1.st_atime)
9710 result |= 64;
9711 }
9712 }
9713 }
9714 }
9715 }
9716 return result;
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721if ac_fn_c_try_run "$LINENO"; then :
9722 gl_cv_header_working_fcntl_h=yes
9723else
9724 case $? in #(
9725 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9726 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9727 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9728 *) gl_cv_header_working_fcntl_h='no';;
9729 esac
9730fi
9731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9732 conftest.$ac_objext conftest.beam conftest.$ac_ext
9733fi
9734
9735fi
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9737$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9738
9739 case $gl_cv_header_working_fcntl_h in #(
9740 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9741 *) ac_val=1;;
9742 esac
9743
9744cat >>confdefs.h <<_ACEOF
9745#define HAVE_WORKING_O_NOATIME $ac_val
9746_ACEOF
9747
9748
9749 case $gl_cv_header_working_fcntl_h in #(
9750 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9751 *) ac_val=1;;
9752 esac
9753
9754cat >>confdefs.h <<_ACEOF
9755#define HAVE_WORKING_O_NOFOLLOW $ac_val
9756_ACEOF
9757
9758
3574124b 9759ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
9760if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9761 ac_have_decl=1
9762else
9763 ac_have_decl=0
9764fi
9765
9766cat >>confdefs.h <<_ACEOF
9767#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9768_ACEOF
9769
9770
8690e634
JK
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9772$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9773if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9775else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h. */
9778
9779#include <features.h>
9780#ifdef __GNU_LIBRARY__
9781 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9782 Lucky GNU user
9783 #endif
9784#endif
9785#ifdef __UCLIBC__
9786 Lucky user
9787#endif
9788
9789_ACEOF
9790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9791 $EGREP "Lucky" >/dev/null 2>&1; then :
9792 ac_cv_gnu_library_2_1=yes
9793else
9794 ac_cv_gnu_library_2_1=no
9795fi
9796rm -f conftest*
9797
9798
9799
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9802$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9803
9804 GLIBC21="$ac_cv_gnu_library_2_1"
9805
9806
9807
f45c62c4
YQ
9808 GNULIB_FCHMODAT=0;
9809 GNULIB_FSTAT=0;
9810 GNULIB_FSTATAT=0;
9811 GNULIB_FUTIMENS=0;
9812 GNULIB_LCHMOD=0;
9813 GNULIB_LSTAT=0;
9814 GNULIB_MKDIRAT=0;
9815 GNULIB_MKFIFO=0;
9816 GNULIB_MKFIFOAT=0;
9817 GNULIB_MKNOD=0;
9818 GNULIB_MKNODAT=0;
9819 GNULIB_STAT=0;
9820 GNULIB_UTIMENSAT=0;
9821 HAVE_FCHMODAT=1;
9822 HAVE_FSTATAT=1;
9823 HAVE_FUTIMENS=1;
9824 HAVE_LCHMOD=1;
9825 HAVE_LSTAT=1;
9826 HAVE_MKDIRAT=1;
9827 HAVE_MKFIFO=1;
9828 HAVE_MKFIFOAT=1;
9829 HAVE_MKNOD=1;
9830 HAVE_MKNODAT=1;
9831 HAVE_UTIMENSAT=1;
9832 REPLACE_FSTAT=0;
9833 REPLACE_FSTATAT=0;
9834 REPLACE_FUTIMENS=0;
9835 REPLACE_LSTAT=0;
9836 REPLACE_MKDIR=0;
9837 REPLACE_MKFIFO=0;
9838 REPLACE_MKNOD=0;
9839 REPLACE_STAT=0;
9840 REPLACE_UTIMENSAT=0;
9841
9842
9843
9844
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9846$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9847if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849else
9850 rm -f conftest.sym conftest.file
9851 echo >conftest.file
4a626d0a 9852 if test "$cross_compiling" = yes; then :
f45c62c4 9853 case "$host_os" in
4a626d0a
PA
9854 *-gnu*)
9855 # Guess yes on glibc systems.
9856 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9857 *)
9858 # If we don't know, assume the worst.
9859 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9860 esac
f45c62c4
YQ
9861
9862else
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h. */
9865$ac_includes_default
9866int
9867main ()
9868{
9869struct stat sbuf;
4a626d0a
PA
9870 if (symlink ("conftest.file", "conftest.sym") != 0)
9871 return 1;
9872 /* Linux will dereference the symlink and fail, as required by
9873 POSIX. That is better in the sense that it means we will not
9874 have to compile and use the lstat wrapper. */
9875 return lstat ("conftest.sym/", &sbuf) == 0;
f45c62c4
YQ
9876
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881if ac_fn_c_try_run "$LINENO"; then :
9882 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9883else
9884 gl_cv_func_lstat_dereferences_slashed_symlink=no
9885fi
9886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9887 conftest.$ac_objext conftest.beam conftest.$ac_ext
9888fi
9889
f45c62c4
YQ
9890 rm -f conftest.sym conftest.file
9891
9892fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9894$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9895 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9896 *yes)
9897
9898cat >>confdefs.h <<_ACEOF
9899#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9900_ACEOF
9901
9902 ;;
9903 esac
9904
9905
6a29c58e
YQ
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9907$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9908if test "${gl_cv_func_malloc_posix+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910else
9911
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h. */
9914
9915int
9916main ()
9917{
9918#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9919 choke me
9920 #endif
9921
9922 ;
9923 return 0;
9924}
9925_ACEOF
9926if ac_fn_c_try_compile "$LINENO"; then :
9927 gl_cv_func_malloc_posix=yes
9928else
9929 gl_cv_func_malloc_posix=no
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932
9933fi
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9935$as_echo "$gl_cv_func_malloc_posix" >&6; }
9936
9937
9938
9939 for ac_header in stdlib.h
98399780
YQ
9940do :
9941 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9942if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9943 cat >>confdefs.h <<_ACEOF
9944#define HAVE_STDLIB_H 1
9945_ACEOF
9946
9947fi
9948
9949done
9950
6a29c58e 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
98399780
YQ
9952$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9953if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955else
9956 if test "$cross_compiling" = yes; then :
6a29c58e
YQ
9957 case "$host_os" in
9958 # Guess yes on platforms where we know the result.
9959 *-gnu* | freebsd* | netbsd* | openbsd* \
9960 | hpux* | solaris* | cygwin* | mingw*)
9961 ac_cv_func_malloc_0_nonnull=yes ;;
9962 # If we don't know, assume the worst.
9963 *) ac_cv_func_malloc_0_nonnull=no ;;
9964 esac
9965
98399780
YQ
9966else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h. */
9969#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6a29c58e
YQ
9970 # include <stdlib.h>
9971 #else
9972 char *malloc ();
9973 #endif
98399780
YQ
9974
9975int
9976main ()
9977{
9978return ! malloc (0);
9979 ;
9980 return 0;
9981}
6a29c58e 9982
98399780
YQ
9983_ACEOF
9984if ac_fn_c_try_run "$LINENO"; then :
9985 ac_cv_func_malloc_0_nonnull=yes
9986else
9987 ac_cv_func_malloc_0_nonnull=no
9988fi
9989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9990 conftest.$ac_objext conftest.beam conftest.$ac_ext
9991fi
9992
6a29c58e 9993
98399780
YQ
9994fi
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9996$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6a29c58e 9997 if test $ac_cv_func_malloc_0_nonnull = yes; then :
98399780
YQ
9998 gl_cv_func_malloc_0_nonnull=1
9999else
10000 gl_cv_func_malloc_0_nonnull=0
10001fi
10002
10003
10004cat >>confdefs.h <<_ACEOF
10005#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10006_ACEOF
10007
10008
10009
88b48903
WN
10010
10011
8690e634
JK
10012 GNULIB_BTOWC=0;
10013 GNULIB_WCTOB=0;
10014 GNULIB_MBSINIT=0;
10015 GNULIB_MBRTOWC=0;
10016 GNULIB_MBRLEN=0;
10017 GNULIB_MBSRTOWCS=0;
10018 GNULIB_MBSNRTOWCS=0;
10019 GNULIB_WCRTOMB=0;
10020 GNULIB_WCSRTOMBS=0;
10021 GNULIB_WCSNRTOMBS=0;
10022 GNULIB_WCWIDTH=0;
10023 GNULIB_WMEMCHR=0;
10024 GNULIB_WMEMCMP=0;
10025 GNULIB_WMEMCPY=0;
10026 GNULIB_WMEMMOVE=0;
10027 GNULIB_WMEMSET=0;
10028 GNULIB_WCSLEN=0;
10029 GNULIB_WCSNLEN=0;
10030 GNULIB_WCSCPY=0;
10031 GNULIB_WCPCPY=0;
10032 GNULIB_WCSNCPY=0;
10033 GNULIB_WCPNCPY=0;
10034 GNULIB_WCSCAT=0;
10035 GNULIB_WCSNCAT=0;
10036 GNULIB_WCSCMP=0;
10037 GNULIB_WCSNCMP=0;
10038 GNULIB_WCSCASECMP=0;
10039 GNULIB_WCSNCASECMP=0;
10040 GNULIB_WCSCOLL=0;
10041 GNULIB_WCSXFRM=0;
10042 GNULIB_WCSDUP=0;
10043 GNULIB_WCSCHR=0;
10044 GNULIB_WCSRCHR=0;
10045 GNULIB_WCSCSPN=0;
10046 GNULIB_WCSSPN=0;
10047 GNULIB_WCSPBRK=0;
10048 GNULIB_WCSSTR=0;
10049 GNULIB_WCSTOK=0;
10050 GNULIB_WCSWIDTH=0;
10051 HAVE_BTOWC=1;
10052 HAVE_MBSINIT=1;
10053 HAVE_MBRTOWC=1;
10054 HAVE_MBRLEN=1;
10055 HAVE_MBSRTOWCS=1;
10056 HAVE_MBSNRTOWCS=1;
10057 HAVE_WCRTOMB=1;
10058 HAVE_WCSRTOMBS=1;
10059 HAVE_WCSNRTOMBS=1;
10060 HAVE_WMEMCHR=1;
10061 HAVE_WMEMCMP=1;
10062 HAVE_WMEMCPY=1;
10063 HAVE_WMEMMOVE=1;
10064 HAVE_WMEMSET=1;
10065 HAVE_WCSLEN=1;
10066 HAVE_WCSNLEN=1;
10067 HAVE_WCSCPY=1;
10068 HAVE_WCPCPY=1;
10069 HAVE_WCSNCPY=1;
10070 HAVE_WCPNCPY=1;
10071 HAVE_WCSCAT=1;
10072 HAVE_WCSNCAT=1;
10073 HAVE_WCSCMP=1;
10074 HAVE_WCSNCMP=1;
10075 HAVE_WCSCASECMP=1;
10076 HAVE_WCSNCASECMP=1;
10077 HAVE_WCSCOLL=1;
10078 HAVE_WCSXFRM=1;
10079 HAVE_WCSDUP=1;
10080 HAVE_WCSCHR=1;
10081 HAVE_WCSRCHR=1;
10082 HAVE_WCSCSPN=1;
10083 HAVE_WCSSPN=1;
10084 HAVE_WCSPBRK=1;
10085 HAVE_WCSSTR=1;
10086 HAVE_WCSTOK=1;
10087 HAVE_WCSWIDTH=1;
10088 HAVE_DECL_WCTOB=1;
10089 HAVE_DECL_WCWIDTH=1;
10090 REPLACE_MBSTATE_T=0;
10091 REPLACE_BTOWC=0;
10092 REPLACE_WCTOB=0;
10093 REPLACE_MBSINIT=0;
10094 REPLACE_MBRTOWC=0;
10095 REPLACE_MBRLEN=0;
10096 REPLACE_MBSRTOWCS=0;
10097 REPLACE_MBSNRTOWCS=0;
10098 REPLACE_WCRTOMB=0;
10099 REPLACE_WCSRTOMBS=0;
10100 REPLACE_WCSNRTOMBS=0;
10101 REPLACE_WCWIDTH=0;
10102 REPLACE_WCSWIDTH=0;
10103
10104
10105
10106
10107
10108
10109
10110
8690e634
JK
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10112$as_echo_n "checking for a traditional japanese locale... " >&6; }
10113if test "${gt_cv_locale_ja+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115else
10116
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h. */
10119
10120#include <locale.h>
10121#include <time.h>
10122#if HAVE_LANGINFO_CODESET
10123# include <langinfo.h>
10124#endif
10125#include <stdlib.h>
10126#include <string.h>
10127struct tm t;
10128char buf[16];
10129int main ()
10130{
10131 const char *p;
10132 /* Check whether the given locale name is recognized by the system. */
10133#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10134 /* On native Windows, setlocale(category, "") looks at the system settings,
10135 not at the environment variables. Also, when an encoding suffix such
10136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10137 category of the locale to "C". */
10138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10140 return 1;
10141#else
10142 if (setlocale (LC_ALL, "") == NULL) return 1;
10143#endif
10144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10149 some unit tests fail.
10150 On MirBSD 10, when an unsupported locale is specified, setlocale()
10151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10152#if HAVE_LANGINFO_CODESET
10153 {
10154 const char *cs = nl_langinfo (CODESET);
10155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10156 || strcmp (cs, "UTF-8") == 0)
10157 return 1;
10158 }
10159#endif
10160#ifdef __CYGWIN__
10161 /* On Cygwin, avoid locale names without encoding suffix, because the
10162 locale_charset() function relies on the encoding suffix. Note that
10163 LC_ALL is set on the command line. */
10164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10165#endif
10166 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10167 on Cygwin 1.5.x. */
10168 if (MB_CUR_MAX == 1)
10169 return 1;
10170 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10171 This excludes the UTF-8 encoding (except on MirBSD). */
10172 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10173 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10174 for (p = buf; *p != '\0'; p++)
10175 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10176 return 1;
10177 return 0;
10178}
10179
10180_ACEOF
10181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10182 (eval $ac_link) 2>&5
10183 ac_status=$?
10184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10185 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10186 case "$host_os" in
10187 # Handle native Windows specially, because there setlocale() interprets
10188 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10189 # "fr" or "fra" as "French" or "French_France.1252",
10190 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10191 # "ja" as "Japanese" or "Japanese_Japan.932",
10192 # and similar.
10193 mingw*)
10194 # Note that on native Windows, the Japanese locale is
10195 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10196 # cannot use it here.
10197 gt_cv_locale_ja=none
10198 ;;
10199 *)
10200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10202 # configure script would override the LC_ALL setting. Likewise for
10203 # LC_CTYPE, which is also set at the beginning of the configure script.
10204 # Test for the AIX locale name.
10205 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10206 gt_cv_locale_ja=ja_JP
10207 else
10208 # Test for the locale name with explicit encoding suffix.
10209 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10210 gt_cv_locale_ja=ja_JP.EUC-JP
10211 else
10212 # Test for the HP-UX, OSF/1, NetBSD locale name.
10213 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10214 gt_cv_locale_ja=ja_JP.eucJP
10215 else
10216 # Test for the IRIX, FreeBSD locale name.
10217 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10218 gt_cv_locale_ja=ja_JP.EUC
10219 else
10220 # Test for the Solaris 7 locale name.
10221 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10222 gt_cv_locale_ja=ja
10223 else
10224 # Special test for NetBSD 1.6.
10225 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10226 gt_cv_locale_ja=ja_JP.eucJP
10227 else
10228 # None found.
10229 gt_cv_locale_ja=none
10230 fi
10231 fi
10232 fi
10233 fi
10234 fi
10235 fi
10236 ;;
10237 esac
10238 fi
10239 rm -fr conftest*
10240
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10243$as_echo "$gt_cv_locale_ja" >&6; }
10244 LOCALE_JA=$gt_cv_locale_ja
10245
10246
10247
10248
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10251$as_echo_n "checking for a transitional chinese locale... " >&6; }
10252if test "${gt_cv_locale_zh_CN+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h. */
10258
10259#include <locale.h>
10260#include <stdlib.h>
10261#include <time.h>
10262#if HAVE_LANGINFO_CODESET
10263# include <langinfo.h>
10264#endif
10265#include <stdlib.h>
10266#include <string.h>
10267struct tm t;
10268char buf[16];
10269int main ()
10270{
10271 const char *p;
10272 /* Check whether the given locale name is recognized by the system. */
10273#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10274 /* On native Windows, setlocale(category, "") looks at the system settings,
10275 not at the environment variables. Also, when an encoding suffix such
10276 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10277 category of the locale to "C". */
10278 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10279 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10280 return 1;
10281#else
10282 if (setlocale (LC_ALL, "") == NULL) return 1;
10283#endif
10284 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10285 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10286 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10287 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10288 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10289 some unit tests fail.
10290 On MirBSD 10, when an unsupported locale is specified, setlocale()
10291 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10292#if HAVE_LANGINFO_CODESET
10293 {
10294 const char *cs = nl_langinfo (CODESET);
10295 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10296 || strcmp (cs, "UTF-8") == 0)
10297 return 1;
10298 }
10299#endif
10300#ifdef __CYGWIN__
10301 /* On Cygwin, avoid locale names without encoding suffix, because the
10302 locale_charset() function relies on the encoding suffix. Note that
10303 LC_ALL is set on the command line. */
10304 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10305#endif
10306 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10307 This excludes the UTF-8 encoding (except on MirBSD). */
10308 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10309 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10310 for (p = buf; *p != '\0'; p++)
10311 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10312 return 1;
10313 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10314 single wide character. This excludes the GB2312 and GBK encodings. */
10315 if (mblen ("\203\062\332\066", 5) != 4)
10316 return 1;
10317 return 0;
10318}
10319
10320_ACEOF
10321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10322 (eval $ac_link) 2>&5
10323 ac_status=$?
10324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10326 case "$host_os" in
10327 # Handle native Windows specially, because there setlocale() interprets
10328 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10329 # "fr" or "fra" as "French" or "French_France.1252",
10330 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10331 # "ja" as "Japanese" or "Japanese_Japan.932",
10332 # and similar.
10333 mingw*)
10334 # Test for the hypothetical native Windows locale name.
10335 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10336 gt_cv_locale_zh_CN=Chinese_China.54936
10337 else
10338 # None found.
10339 gt_cv_locale_zh_CN=none
10340 fi
10341 ;;
10342 solaris2.8)
10343 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10344 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10345 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10346 gt_cv_locale_zh_CN=none
10347 ;;
10348 *)
10349 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10350 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10351 # configure script would override the LC_ALL setting. Likewise for
10352 # LC_CTYPE, which is also set at the beginning of the configure script.
10353 # Test for the locale name without encoding suffix.
10354 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10355 gt_cv_locale_zh_CN=zh_CN
10356 else
10357 # Test for the locale name with explicit encoding suffix.
10358 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10359 gt_cv_locale_zh_CN=zh_CN.GB18030
10360 else
10361 # None found.
10362 gt_cv_locale_zh_CN=none
10363 fi
10364 fi
10365 ;;
10366 esac
10367 else
10368 # If there was a link error, due to mblen(), the system is so old that
10369 # it certainly doesn't have a chinese locale.
10370 gt_cv_locale_zh_CN=none
10371 fi
10372 rm -fr conftest*
10373
10374fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10376$as_echo "$gt_cv_locale_zh_CN" >&6; }
10377 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10378
10379
10380
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10383$as_echo_n "checking for a french Unicode locale... " >&6; }
10384if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386else
10387
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h. */
10390
10391#include <locale.h>
10392#include <time.h>
10393#if HAVE_LANGINFO_CODESET
10394# include <langinfo.h>
10395#endif
10396#include <stdlib.h>
10397#include <string.h>
10398struct tm t;
10399char buf[16];
10400int main () {
10401 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10402 imitates locale dependent behaviour by looking at the environment
10403 variables, and all locales use the UTF-8 encoding. */
10404#if !(defined __BEOS__ || defined __HAIKU__)
10405 /* Check whether the given locale name is recognized by the system. */
10406# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10407 /* On native Windows, setlocale(category, "") looks at the system settings,
10408 not at the environment variables. Also, when an encoding suffix such
10409 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10410 category of the locale to "C". */
10411 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10412 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10413 return 1;
10414# else
10415 if (setlocale (LC_ALL, "") == NULL) return 1;
10416# endif
10417 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10418 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10419 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10420 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10421 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10422 some unit tests fail. */
10423# if HAVE_LANGINFO_CODESET
10424 {
10425 const char *cs = nl_langinfo (CODESET);
10426 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10427 return 1;
10428 }
10429# endif
10430# ifdef __CYGWIN__
10431 /* On Cygwin, avoid locale names without encoding suffix, because the
10432 locale_charset() function relies on the encoding suffix. Note that
10433 LC_ALL is set on the command line. */
10434 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10435# endif
10436 /* Check whether in the abbreviation of the second month, the second
10437 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10438 two bytes long, with UTF-8 encoding. */
10439 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10440 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10441 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10442 return 1;
10443#endif
10444#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10445 /* Check whether the decimal separator is a comma.
10446 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10447 are nl_langinfo(RADIXCHAR) are both ".". */
10448 if (localeconv () ->decimal_point[0] != ',') return 1;
10449#endif
10450 return 0;
10451}
10452
10453_ACEOF
10454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10455 (eval $ac_link) 2>&5
10456 ac_status=$?
10457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10458 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10459 case "$host_os" in
10460 # Handle native Windows specially, because there setlocale() interprets
10461 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10462 # "fr" or "fra" as "French" or "French_France.1252",
10463 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10464 # "ja" as "Japanese" or "Japanese_Japan.932",
10465 # and similar.
10466 mingw*)
10467 # Test for the hypothetical native Windows locale name.
10468 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10469 gt_cv_locale_fr_utf8=French_France.65001
10470 else
10471 # None found.
10472 gt_cv_locale_fr_utf8=none
10473 fi
10474 ;;
10475 *)
10476 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10477 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10478 # configure script would override the LC_ALL setting. Likewise for
10479 # LC_CTYPE, which is also set at the beginning of the configure script.
10480 # Test for the usual locale name.
10481 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10482 gt_cv_locale_fr_utf8=fr_FR
10483 else
10484 # Test for the locale name with explicit encoding suffix.
10485 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10486 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10487 else
10488 # Test for the Solaris 7 locale name.
10489 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10490 gt_cv_locale_fr_utf8=fr.UTF-8
10491 else
10492 # None found.
10493 gt_cv_locale_fr_utf8=none
10494 fi
10495 fi
10496 fi
10497 ;;
10498 esac
10499 fi
10500 rm -fr conftest*
10501
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10504$as_echo "$gt_cv_locale_fr_utf8" >&6; }
10505 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10506
10507
10508
10509
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10512$as_echo_n "checking for a traditional french locale... " >&6; }
10513if test "${gt_cv_locale_fr+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h. */
10519
10520#include <locale.h>
10521#include <time.h>
10522#if HAVE_LANGINFO_CODESET
10523# include <langinfo.h>
10524#endif
10525#include <stdlib.h>
10526#include <string.h>
10527struct tm t;
10528char buf[16];
10529int main () {
10530 /* Check whether the given locale name is recognized by the system. */
10531#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10532 /* On native Windows, setlocale(category, "") looks at the system settings,
10533 not at the environment variables. Also, when an encoding suffix such
10534 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10535 category of the locale to "C". */
10536 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10537 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10538 return 1;
10539#else
10540 if (setlocale (LC_ALL, "") == NULL) return 1;
10541#endif
10542 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10543 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10544 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10545 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10546 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10547 some unit tests fail.
10548 On MirBSD 10, when an unsupported locale is specified, setlocale()
10549 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10550#if HAVE_LANGINFO_CODESET
10551 {
10552 const char *cs = nl_langinfo (CODESET);
10553 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10554 || strcmp (cs, "UTF-8") == 0)
10555 return 1;
10556 }
10557#endif
10558#ifdef __CYGWIN__
10559 /* On Cygwin, avoid locale names without encoding suffix, because the
10560 locale_charset() function relies on the encoding suffix. Note that
10561 LC_ALL is set on the command line. */
10562 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10563#endif
10564 /* Check whether in the abbreviation of the second month, the second
10565 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10566 one byte long. This excludes the UTF-8 encoding. */
10567 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10568 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10569#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10570 /* Check whether the decimal separator is a comma.
10571 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10572 are nl_langinfo(RADIXCHAR) are both ".". */
10573 if (localeconv () ->decimal_point[0] != ',') return 1;
10574#endif
10575 return 0;
10576}
10577
10578_ACEOF
10579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10580 (eval $ac_link) 2>&5
10581 ac_status=$?
10582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10583 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10584 case "$host_os" in
10585 # Handle native Windows specially, because there setlocale() interprets
10586 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10587 # "fr" or "fra" as "French" or "French_France.1252",
10588 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10589 # "ja" as "Japanese" or "Japanese_Japan.932",
10590 # and similar.
10591 mingw*)
10592 # Test for the native Windows locale name.
10593 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10594 gt_cv_locale_fr=French_France.1252
10595 else
10596 # None found.
10597 gt_cv_locale_fr=none
10598 fi
10599 ;;
10600 *)
10601 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10602 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10603 # configure script would override the LC_ALL setting. Likewise for
10604 # LC_CTYPE, which is also set at the beginning of the configure script.
10605 # Test for the usual locale name.
10606 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10607 gt_cv_locale_fr=fr_FR
10608 else
10609 # Test for the locale name with explicit encoding suffix.
10610 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10611 gt_cv_locale_fr=fr_FR.ISO-8859-1
10612 else
10613 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10614 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10615 gt_cv_locale_fr=fr_FR.ISO8859-1
10616 else
10617 # Test for the HP-UX locale name.
10618 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10619 gt_cv_locale_fr=fr_FR.iso88591
10620 else
10621 # Test for the Solaris 7 locale name.
10622 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10623 gt_cv_locale_fr=fr
10624 else
10625 # None found.
10626 gt_cv_locale_fr=none
10627 fi
10628 fi
10629 fi
10630 fi
10631 fi
10632 ;;
10633 esac
10634 fi
10635 rm -fr conftest*
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10639$as_echo "$gt_cv_locale_fr" >&6; }
10640 LOCALE_FR=$gt_cv_locale_fr
10641
10642
10643
10644
10645
10646
10647
8690e634
JK
10648 GNULIB_FFSL=0;
10649 GNULIB_FFSLL=0;
10650 GNULIB_MEMCHR=0;
10651 GNULIB_MEMMEM=0;
10652 GNULIB_MEMPCPY=0;
10653 GNULIB_MEMRCHR=0;
10654 GNULIB_RAWMEMCHR=0;
10655 GNULIB_STPCPY=0;
10656 GNULIB_STPNCPY=0;
10657 GNULIB_STRCHRNUL=0;
10658 GNULIB_STRDUP=0;
10659 GNULIB_STRNCAT=0;
10660 GNULIB_STRNDUP=0;
10661 GNULIB_STRNLEN=0;
10662 GNULIB_STRPBRK=0;
10663 GNULIB_STRSEP=0;
10664 GNULIB_STRSTR=0;
10665 GNULIB_STRCASESTR=0;
10666 GNULIB_STRTOK_R=0;
10667 GNULIB_MBSLEN=0;
10668 GNULIB_MBSNLEN=0;
10669 GNULIB_MBSCHR=0;
10670 GNULIB_MBSRCHR=0;
10671 GNULIB_MBSSTR=0;
10672 GNULIB_MBSCASECMP=0;
10673 GNULIB_MBSNCASECMP=0;
10674 GNULIB_MBSPCASECMP=0;
10675 GNULIB_MBSCASESTR=0;
10676 GNULIB_MBSCSPN=0;
10677 GNULIB_MBSPBRK=0;
10678 GNULIB_MBSSPN=0;
10679 GNULIB_MBSSEP=0;
10680 GNULIB_MBSTOK_R=0;
10681 GNULIB_STRERROR=0;
10682 GNULIB_STRERROR_R=0;
10683 GNULIB_STRSIGNAL=0;
10684 GNULIB_STRVERSCMP=0;
10685 HAVE_MBSLEN=0;
10686 HAVE_FFSL=1;
10687 HAVE_FFSLL=1;
10688 HAVE_MEMCHR=1;
10689 HAVE_DECL_MEMMEM=1;
10690 HAVE_MEMPCPY=1;
10691 HAVE_DECL_MEMRCHR=1;
10692 HAVE_RAWMEMCHR=1;
10693 HAVE_STPCPY=1;
10694 HAVE_STPNCPY=1;
10695 HAVE_STRCHRNUL=1;
10696 HAVE_DECL_STRDUP=1;
10697 HAVE_DECL_STRNDUP=1;
10698 HAVE_DECL_STRNLEN=1;
10699 HAVE_STRPBRK=1;
10700 HAVE_STRSEP=1;
10701 HAVE_STRCASESTR=1;
10702 HAVE_DECL_STRTOK_R=1;
10703 HAVE_DECL_STRERROR_R=1;
10704 HAVE_DECL_STRSIGNAL=1;
10705 HAVE_STRVERSCMP=1;
10706 REPLACE_MEMCHR=0;
10707 REPLACE_MEMMEM=0;
10708 REPLACE_STPNCPY=0;
10709 REPLACE_STRDUP=0;
10710 REPLACE_STRSTR=0;
10711 REPLACE_STRCASESTR=0;
10712 REPLACE_STRCHRNUL=0;
10713 REPLACE_STRERROR=0;
10714 REPLACE_STRERROR_R=0;
10715 REPLACE_STRNCAT=0;
10716 REPLACE_STRNDUP=0;
10717 REPLACE_STRNLEN=0;
10718 REPLACE_STRSIGNAL=0;
10719 REPLACE_STRTOK_R=0;
10720 UNDEFINE_STRTOK_R=0;
10721
10722
10723
10724
10725
10726 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10727 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10728 # irrelevant for anonymous mappings.
10729 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10730if test "x$ac_cv_func_mmap" = x""yes; then :
10731 gl_have_mmap=yes
10732else
10733 gl_have_mmap=no
10734fi
10735
10736
10737 # Try to allow MAP_ANONYMOUS.
10738 gl_have_mmap_anonymous=no
10739 if test $gl_have_mmap = yes; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10741$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743/* end confdefs.h. */
10744
10745#include <sys/mman.h>
10746#ifdef MAP_ANONYMOUS
10747 I cannot identify this map
10748#endif
10749
10750_ACEOF
10751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10752 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10753 gl_have_mmap_anonymous=yes
10754fi
10755rm -f conftest*
10756
10757 if test $gl_have_mmap_anonymous != yes; then
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h. */
10760
10761#include <sys/mman.h>
10762#ifdef MAP_ANON
10763 I cannot identify this map
10764#endif
10765
10766_ACEOF
10767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10768 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10769
10770$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10771
10772 gl_have_mmap_anonymous=yes
10773fi
10774rm -f conftest*
10775
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10778$as_echo "$gl_have_mmap_anonymous" >&6; }
10779 if test $gl_have_mmap_anonymous = yes; then
10780
10781$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10782
10783 fi
10784 fi
10785
10786
8690e634
JK
10787
10788
10789
10790
10791 if test $HAVE_MEMCHR = 1; then
10792 # Detect platform-specific bugs in some versions of glibc:
10793 # memchr should not dereference anything with length 0
10794 # http://bugzilla.redhat.com/499689
10795 # memchr should not dereference overestimated length after a match
10796 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10797 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10798 # Assume that memchr works on platforms that lack mprotect.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10800$as_echo_n "checking whether memchr works... " >&6; }
10801if test "${gl_cv_func_memchr_works+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803else
10804 if test "$cross_compiling" = yes; then :
10805 gl_cv_func_memchr_works="guessing no"
10806else
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h. */
10809
10810#include <string.h>
10811#if HAVE_SYS_MMAN_H
10812# include <fcntl.h>
10813# include <unistd.h>
10814# include <sys/types.h>
10815# include <sys/mman.h>
10816# ifndef MAP_FILE
10817# define MAP_FILE 0
10818# endif
10819#endif
10820
10821int
10822main ()
10823{
10824
10825 int result = 0;
10826 char *fence = NULL;
10827#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10828# if HAVE_MAP_ANONYMOUS
10829 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10830 const int fd = -1;
10831# else /* !HAVE_MAP_ANONYMOUS */
10832 const int flags = MAP_FILE | MAP_PRIVATE;
10833 int fd = open ("/dev/zero", O_RDONLY, 0666);
10834 if (fd >= 0)
10835# endif
10836 {
10837 int pagesize = getpagesize ();
10838 char *two_pages =
10839 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10840 flags, fd, 0);
10841 if (two_pages != (char *)(-1)
10842 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10843 fence = two_pages + pagesize;
10844 }
10845#endif
10846 if (fence)
10847 {
10848 if (memchr (fence, 0, 0))
10849 result |= 1;
10850 strcpy (fence - 9, "12345678");
10851 if (memchr (fence - 9, 0, 79) != fence - 1)
10852 result |= 2;
10853 if (memchr (fence - 1, 0, 3) != fence - 1)
10854 result |= 4;
10855 }
10856 return result;
10857
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862if ac_fn_c_try_run "$LINENO"; then :
10863 gl_cv_func_memchr_works=yes
10864else
10865 gl_cv_func_memchr_works=no
10866fi
10867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10868 conftest.$ac_objext conftest.beam conftest.$ac_ext
10869fi
10870
10871fi
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10873$as_echo "$gl_cv_func_memchr_works" >&6; }
10874 if test "$gl_cv_func_memchr_works" != yes; then
10875 REPLACE_MEMCHR=1
10876 fi
10877 fi
10878
3574124b 10879ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
10880if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10881 ac_have_decl=1
10882else
10883 ac_have_decl=0
10884fi
10885
10886cat >>confdefs.h <<_ACEOF
10887#define HAVE_DECL_MEMMEM $ac_have_decl
10888_ACEOF
10889
10890
10891
10892
10893
8690e634
JK
10894 for ac_func in memmem
10895do :
10896 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10897if test "x$ac_cv_func_memmem" = x""yes; then :
10898 cat >>confdefs.h <<_ACEOF
10899#define HAVE_MEMMEM 1
10900_ACEOF
10901
10902fi
10903done
10904
10905 if test $ac_cv_func_memmem = yes; then
10906 HAVE_MEMMEM=1
10907 else
10908 HAVE_MEMMEM=0
10909 fi
10910
8690e634
JK
10911 if test $ac_cv_have_decl_memmem = no; then
10912 HAVE_DECL_MEMMEM=0
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10915$as_echo_n "checking whether memmem works... " >&6; }
10916if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918else
10919 if test "$cross_compiling" = yes; then :
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h. */
10922
10923#ifdef __GNU_LIBRARY__
10924 #include <features.h>
10925 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10926 || __GLIBC_MINOR__ > 12)) \
10927 || (__GLIBC__ > 2)) \
10928 || defined __UCLIBC__
10929 Lucky user
10930 #endif
10931#elif defined __CYGWIN__
10932 #include <cygwin/version.h>
10933 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10934 Lucky user
10935 #endif
10936#else
10937 Lucky user
10938#endif
10939
10940_ACEOF
10941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10942 $EGREP "Lucky user" >/dev/null 2>&1; then :
10943 gl_cv_func_memmem_works_always="guessing yes"
10944else
10945 gl_cv_func_memmem_works_always="guessing no"
10946fi
10947rm -f conftest*
10948
10949
10950else
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h. */
10953
10954#include <string.h> /* for memmem */
10955#define P "_EF_BF_BD"
10956#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10957#define NEEDLE P P P P P
10958
10959int
10960main ()
10961{
10962
10963 int result = 0;
10964 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10965 result |= 1;
10966 /* Check for empty needle behavior. */
10967 {
10968 const char *haystack = "AAA";
10969 if (memmem (haystack, 3, NULL, 0) != haystack)
10970 result |= 2;
10971 }
10972 return result;
10973
10974 ;
10975 return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_run "$LINENO"; then :
10979 gl_cv_func_memmem_works_always=yes
10980else
10981 gl_cv_func_memmem_works_always=no
10982fi
10983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10984 conftest.$ac_objext conftest.beam conftest.$ac_ext
10985fi
10986
10987
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10990$as_echo "$gl_cv_func_memmem_works_always" >&6; }
10991 case "$gl_cv_func_memmem_works_always" in
10992 *yes) ;;
10993 *)
10994 REPLACE_MEMMEM=1
10995 ;;
10996 esac
10997 fi
10998 :
10999
6a29c58e
YQ
11000
11001 GNULIB_DPRINTF=0;
11002 GNULIB_FCLOSE=0;
11003 GNULIB_FDOPEN=0;
11004 GNULIB_FFLUSH=0;
11005 GNULIB_FGETC=0;
11006 GNULIB_FGETS=0;
11007 GNULIB_FOPEN=0;
11008 GNULIB_FPRINTF=0;
11009 GNULIB_FPRINTF_POSIX=0;
11010 GNULIB_FPURGE=0;
11011 GNULIB_FPUTC=0;
11012 GNULIB_FPUTS=0;
11013 GNULIB_FREAD=0;
11014 GNULIB_FREOPEN=0;
11015 GNULIB_FSCANF=0;
11016 GNULIB_FSEEK=0;
11017 GNULIB_FSEEKO=0;
11018 GNULIB_FTELL=0;
11019 GNULIB_FTELLO=0;
11020 GNULIB_FWRITE=0;
11021 GNULIB_GETC=0;
11022 GNULIB_GETCHAR=0;
11023 GNULIB_GETDELIM=0;
11024 GNULIB_GETLINE=0;
11025 GNULIB_OBSTACK_PRINTF=0;
11026 GNULIB_OBSTACK_PRINTF_POSIX=0;
11027 GNULIB_PCLOSE=0;
11028 GNULIB_PERROR=0;
11029 GNULIB_POPEN=0;
11030 GNULIB_PRINTF=0;
11031 GNULIB_PRINTF_POSIX=0;
11032 GNULIB_PUTC=0;
11033 GNULIB_PUTCHAR=0;
11034 GNULIB_PUTS=0;
11035 GNULIB_REMOVE=0;
11036 GNULIB_RENAME=0;
11037 GNULIB_RENAMEAT=0;
11038 GNULIB_SCANF=0;
11039 GNULIB_SNPRINTF=0;
11040 GNULIB_SPRINTF_POSIX=0;
11041 GNULIB_STDIO_H_NONBLOCKING=0;
11042 GNULIB_STDIO_H_SIGPIPE=0;
11043 GNULIB_TMPFILE=0;
11044 GNULIB_VASPRINTF=0;
11045 GNULIB_VFSCANF=0;
11046 GNULIB_VSCANF=0;
11047 GNULIB_VDPRINTF=0;
11048 GNULIB_VFPRINTF=0;
11049 GNULIB_VFPRINTF_POSIX=0;
11050 GNULIB_VPRINTF=0;
11051 GNULIB_VPRINTF_POSIX=0;
11052 GNULIB_VSNPRINTF=0;
11053 GNULIB_VSPRINTF_POSIX=0;
11054 HAVE_DECL_FPURGE=1;
11055 HAVE_DECL_FSEEKO=1;
11056 HAVE_DECL_FTELLO=1;
11057 HAVE_DECL_GETDELIM=1;
11058 HAVE_DECL_GETLINE=1;
11059 HAVE_DECL_OBSTACK_PRINTF=1;
11060 HAVE_DECL_SNPRINTF=1;
11061 HAVE_DECL_VSNPRINTF=1;
11062 HAVE_DPRINTF=1;
11063 HAVE_FSEEKO=1;
11064 HAVE_FTELLO=1;
11065 HAVE_PCLOSE=1;
11066 HAVE_POPEN=1;
11067 HAVE_RENAMEAT=1;
11068 HAVE_VASPRINTF=1;
11069 HAVE_VDPRINTF=1;
11070 REPLACE_DPRINTF=0;
11071 REPLACE_FCLOSE=0;
11072 REPLACE_FDOPEN=0;
11073 REPLACE_FFLUSH=0;
11074 REPLACE_FOPEN=0;
11075 REPLACE_FPRINTF=0;
11076 REPLACE_FPURGE=0;
11077 REPLACE_FREOPEN=0;
11078 REPLACE_FSEEK=0;
11079 REPLACE_FSEEKO=0;
11080 REPLACE_FTELL=0;
11081 REPLACE_FTELLO=0;
11082 REPLACE_GETDELIM=0;
11083 REPLACE_GETLINE=0;
11084 REPLACE_OBSTACK_PRINTF=0;
11085 REPLACE_PERROR=0;
11086 REPLACE_POPEN=0;
11087 REPLACE_PRINTF=0;
11088 REPLACE_REMOVE=0;
11089 REPLACE_RENAME=0;
11090 REPLACE_RENAMEAT=0;
11091 REPLACE_SNPRINTF=0;
11092 REPLACE_SPRINTF=0;
11093 REPLACE_STDIO_READ_FUNCS=0;
11094 REPLACE_STDIO_WRITE_FUNCS=0;
11095 REPLACE_TMPFILE=0;
11096 REPLACE_VASPRINTF=0;
11097 REPLACE_VDPRINTF=0;
11098 REPLACE_VFPRINTF=0;
11099 REPLACE_VPRINTF=0;
11100 REPLACE_VSNPRINTF=0;
11101 REPLACE_VSPRINTF=0;
11102
11103
11104
8690e634
JK
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11106$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11107if test "${ac_cv_header_stdbool_h+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109else
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h. */
11112
11113 #include <stdbool.h>
11114 #ifndef bool
11115 "error: bool is not defined"
11116 #endif
11117 #ifndef false
11118 "error: false is not defined"
11119 #endif
11120 #if false
11121 "error: false is not 0"
11122 #endif
11123 #ifndef true
11124 "error: true is not defined"
11125 #endif
11126 #if true != 1
11127 "error: true is not 1"
11128 #endif
11129 #ifndef __bool_true_false_are_defined
11130 "error: __bool_true_false_are_defined is not defined"
11131 #endif
11132
11133 struct s { _Bool s: 1; _Bool t; } s;
11134
11135 char a[true == 1 ? 1 : -1];
11136 char b[false == 0 ? 1 : -1];
11137 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11138 char d[(bool) 0.5 == true ? 1 : -1];
11139 /* See body of main program for 'e'. */
11140 char f[(_Bool) 0.0 == false ? 1 : -1];
11141 char g[true];
11142 char h[sizeof (_Bool)];
11143 char i[sizeof s.t];
11144 enum { j = false, k = true, l = false * true, m = true * 256 };
11145 /* The following fails for
11146 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11147 _Bool n[m];
11148 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11149 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11150 /* Catch a bug in an HP-UX C compiler. See
11151 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11152 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11153 */
11154 _Bool q = true;
11155 _Bool *pq = &q;
11156
11157int
11158main ()
11159{
11160
11161 bool e = &s;
11162 *pq |= q;
11163 *pq |= ! q;
11164 /* Refer to every declared value, to avoid compiler optimizations. */
11165 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11166 + !m + !n + !o + !p + !q + !pq);
11167
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172if ac_fn_c_try_compile "$LINENO"; then :
11173 ac_cv_header_stdbool_h=yes
11174else
11175 ac_cv_header_stdbool_h=no
11176fi
11177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178fi
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11180$as_echo "$ac_cv_header_stdbool_h" >&6; }
11181 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11182if test "x$ac_cv_type__Bool" = x""yes; then :
11183
11184cat >>confdefs.h <<_ACEOF
11185#define HAVE__BOOL 1
11186_ACEOF
11187
11188
11189fi
11190
11191
11192
11193 REPLACE_NULL=0;
4a626d0a 11194 HAVE_MAX_ALIGN_T=1;
8690e634
JK
11195 HAVE_WCHAR_T=1;
11196
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11199$as_echo_n "checking for wchar_t... " >&6; }
11200if test "${gt_cv_c_wchar_t+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202else
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204/* end confdefs.h. */
11205#include <stddef.h>
11206 wchar_t foo = (wchar_t)'\0';
11207int
11208main ()
11209{
11210
11211 ;
11212 return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_compile "$LINENO"; then :
11216 gt_cv_c_wchar_t=yes
11217else
11218 gt_cv_c_wchar_t=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221fi
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11223$as_echo "$gt_cv_c_wchar_t" >&6; }
11224 if test $gt_cv_c_wchar_t = yes; then
11225
11226$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11227
11228 fi
11229
63ce7108
TT
11230
11231
11232
11233
8690e634
JK
11234
11235
11236
11237
11238
11239
11240
11241 if test $gl_cv_have_include_next = yes; then
11242 gl_cv_next_string_h='<'string.h'>'
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11245$as_echo_n "checking absolute name of <string.h>... " >&6; }
11246if test "${gl_cv_next_string_h+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248else
11249
4a626d0a
PA
11250
11251
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
11253/* end confdefs.h. */
11254#include <string.h>
8690e634 11255_ACEOF
4a626d0a
PA
11256 case "$host_os" in
11257 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11258 *) gl_absname_cpp="$ac_cpp" ;;
11259 esac
11260
11261 case "$host_os" in
11262 mingw*)
11263 gl_dirsep_regex='[/\\]'
11264 ;;
11265 *)
11266 gl_dirsep_regex='\/'
11267 ;;
11268 esac
11269 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11270 gl_header_literal_regex=`echo 'string.h' \
11271 | sed -e "$gl_make_literal_regex_sed"`
11272 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11273 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11274 s|^/[^/]|//&|
11275 p
11276 q
11277 }'
8690e634 11278
4a626d0a
PA
11279 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11280 sed -n "$gl_absolute_header_sed"`
c971b7fa 11281
4a626d0a
PA
11282 gl_header=$gl_cv_absolute_string_h
11283 gl_cv_next_string_h='"'$gl_header'"'
8690e634
JK
11284
11285
11286fi
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11288$as_echo "$gl_cv_next_string_h" >&6; }
11289 fi
11290 NEXT_STRING_H=$gl_cv_next_string_h
11291
11292 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11294 gl_next_as_first_directive='<'string.h'>'
11295 else
11296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11297 gl_next_as_first_directive=$gl_cv_next_string_h
11298 fi
11299 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11300
11301
11302
11303
11304
11305
11306 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
11307 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11309$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11310if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11311 $as_echo_n "(cached) " >&6
11312else
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314/* end confdefs.h. */
11315#include <string.h>
11316
11317int
11318main ()
11319{
11320#undef $gl_func
11321 (void) $gl_func;
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326if ac_fn_c_try_compile "$LINENO"; then :
11327 eval "$as_gl_Symbol=yes"
11328else
11329 eval "$as_gl_Symbol=no"
11330fi
11331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332fi
11333eval ac_res=\$$as_gl_Symbol
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11335$as_echo "$ac_res" >&6; }
11336 eval as_val=\$$as_gl_Symbol
11337 if test "x$as_val" = x""yes; then :
11338 cat >>confdefs.h <<_ACEOF
11339#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11340_ACEOF
11341
11342 eval ac_cv_have_decl_$gl_func=yes
11343fi
11344 done
11345
11346
11347
8839a007 11348
63ce7108
TT
11349
11350 if test "$gl_cv_func_memchr_works" != yes; then
11351 REPLACE_STRSTR=1
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11354$as_echo_n "checking whether strstr works... " >&6; }
11355if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357else
11358 if test "$cross_compiling" = yes; then :
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360/* end confdefs.h. */
11361
11362#ifdef __GNU_LIBRARY__
11363 #include <features.h>
11364 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11365 || defined __UCLIBC__
11366 Lucky user
11367 #endif
11368#elif defined __CYGWIN__
11369 #include <cygwin/version.h>
11370 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11371 Lucky user
11372 #endif
11373#else
11374 Lucky user
11375#endif
11376
11377_ACEOF
11378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11379 $EGREP "Lucky user" >/dev/null 2>&1; then :
11380 gl_cv_func_strstr_works_always="guessing yes"
11381else
11382 gl_cv_func_strstr_works_always="guessing no"
11383fi
11384rm -f conftest*
11385
11386
11387else
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389/* end confdefs.h. */
11390
11391#include <string.h> /* for strstr */
11392#define P "_EF_BF_BD"
11393#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11394#define NEEDLE P P P P P
11395
11396int
11397main ()
11398{
11399return !!strstr (HAYSTACK, NEEDLE);
11400
11401 ;
11402 return 0;
11403}
11404_ACEOF
11405if ac_fn_c_try_run "$LINENO"; then :
11406 gl_cv_func_strstr_works_always=yes
11407else
11408 gl_cv_func_strstr_works_always=no
11409fi
11410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11411 conftest.$ac_objext conftest.beam conftest.$ac_ext
11412fi
11413
11414
11415fi
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11417$as_echo "$gl_cv_func_strstr_works_always" >&6; }
11418 case "$gl_cv_func_strstr_works_always" in
11419 *yes) ;;
11420 *)
11421 REPLACE_STRSTR=1
11422 ;;
11423 esac
11424 fi
11425
421693b0
PA
11426ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11427if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11428 ac_have_decl=1
11429else
11430 ac_have_decl=0
11431fi
11432
11433cat >>confdefs.h <<_ACEOF
11434#define HAVE_DECL_STRTOK_R $ac_have_decl
11435_ACEOF
11436
09607c9e
TT
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11438$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11439if test "${ac_cv_header_stat_broken+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443/* end confdefs.h. */
11444#include <sys/types.h>
11445#include <sys/stat.h>
63ce7108 11446
09607c9e
TT
11447#if defined S_ISBLK && defined S_IFDIR
11448extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11449#endif
8839a007 11450
09607c9e
TT
11451#if defined S_ISBLK && defined S_IFCHR
11452extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11453#endif
11454
11455#if defined S_ISLNK && defined S_IFREG
11456extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11457#endif
11458
11459#if defined S_ISSOCK && defined S_IFREG
11460extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11461#endif
8839a007 11462
8839a007 11463_ACEOF
09607c9e
TT
11464if ac_fn_c_try_compile "$LINENO"; then :
11465 ac_cv_header_stat_broken=no
11466else
11467 ac_cv_header_stat_broken=yes
11468fi
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470fi
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11472$as_echo "$ac_cv_header_stat_broken" >&6; }
11473if test $ac_cv_header_stat_broken = yes; then
11474
11475$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839a007
PA
11476
11477fi
11478
09607c9e
TT
11479
11480
8839a007
PA
11481ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11482if test "x$ac_cv_type_mode_t" = x""yes; then :
11483
11484else
11485
11486cat >>confdefs.h <<_ACEOF
11487#define mode_t int
11488_ACEOF
11489
11490fi
11491
8839a007
PA
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11493$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11494if test -z "$MKDIR_P"; then
11495 if test "${ac_cv_path_mkdir+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497else
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11500do
11501 IFS=$as_save_IFS
11502 test -z "$as_dir" && as_dir=.
11503 for ac_prog in mkdir gmkdir; do
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11506 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11507 'mkdir (GNU coreutils) '* | \
11508 'mkdir (coreutils) '* | \
11509 'mkdir (fileutils) '4.1*)
11510 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11511 break 3;;
11512 esac
11513 done
11514 done
11515 done
11516IFS=$as_save_IFS
11517
11518fi
11519
11520 if test "${ac_cv_path_mkdir+set}" = set; then
11521 MKDIR_P="$ac_cv_path_mkdir -p"
11522 else
11523 # As a last resort, use the slow shell script. Don't cache a
11524 # value for MKDIR_P within a source directory, because that will
11525 # break other packages using the cache if that directory is
11526 # removed, or if the value is a relative name.
11527 test -d ./--version && rmdir ./--version
11528 MKDIR_P="$ac_install_sh -d"
11529 fi
11530fi
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11532$as_echo "$MKDIR_P" >&6; }
11533
11534
09607c9e
TT
11535
11536ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11537if test "x$ac_cv_type_pid_t" = x""yes; then :
11538
11539else
11540
11541cat >>confdefs.h <<_ACEOF
11542#define pid_t int
11543_ACEOF
11544
11545fi
11546
11547
11548
2196f55f 11549
09607c9e
TT
11550
11551
11552
11553
4a626d0a
PA
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563 if test $gl_cv_have_include_next = yes; then
11564 gl_cv_next_sys_types_h='<'sys/types.h'>'
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11567$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11568if test "${gl_cv_next_sys_types_h+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570else
11571
11572
11573
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575/* end confdefs.h. */
11576#include <sys/types.h>
11577_ACEOF
11578 case "$host_os" in
11579 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11580 *) gl_absname_cpp="$ac_cpp" ;;
11581 esac
11582
11583 case "$host_os" in
11584 mingw*)
11585 gl_dirsep_regex='[/\\]'
11586 ;;
11587 *)
11588 gl_dirsep_regex='\/'
11589 ;;
11590 esac
11591 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11592 gl_header_literal_regex=`echo 'sys/types.h' \
11593 | sed -e "$gl_make_literal_regex_sed"`
11594 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11595 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11596 s|^/[^/]|//&|
11597 p
11598 q
11599 }'
11600
11601 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11602 sed -n "$gl_absolute_header_sed"`
11603
11604 gl_header=$gl_cv_absolute_sys_types_h
11605 gl_cv_next_sys_types_h='"'$gl_header'"'
11606
11607
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11610$as_echo "$gl_cv_next_sys_types_h" >&6; }
11611 fi
11612 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11613
11614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11616 gl_next_as_first_directive='<'sys/types.h'>'
11617 else
11618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11619 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11620 fi
11621 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
09607c9e
TT
11634 GNULIB_MKTIME=0;
11635 GNULIB_NANOSLEEP=0;
11636 GNULIB_STRPTIME=0;
11637 GNULIB_TIMEGM=0;
11638 GNULIB_TIME_R=0;
4a626d0a 11639 GNULIB_TIME_RZ=0;
09607c9e
TT
11640 HAVE_DECL_LOCALTIME_R=1;
11641 HAVE_NANOSLEEP=1;
11642 HAVE_STRPTIME=1;
11643 HAVE_TIMEGM=1;
11644 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11645 REPLACE_MKTIME=GNULIB_PORTCHECK;
11646 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11647 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11648
4a626d0a
PA
11649 : ${GNULIB_GETTIMEOFDAY=0};
11650 REPLACE_GMTIME=0;
11651 REPLACE_LOCALTIME=0;
09607c9e
TT
11652
11653
11654
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11656$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11657if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659else
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h. */
11662#include <time.h>
11663
11664int
11665main ()
11666{
11667static struct timespec x; x.tv_sec = x.tv_nsec;
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_compile "$LINENO"; then :
11673 gl_cv_sys_struct_timespec_in_time_h=yes
11674else
11675 gl_cv_sys_struct_timespec_in_time_h=no
11676fi
11677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678fi
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11680$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11681
11682 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11683 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
4a626d0a 11685 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
09607c9e
TT
11686 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11687 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11690$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11691if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693else
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695/* end confdefs.h. */
11696#include <sys/time.h>
11697
11698int
11699main ()
11700{
11701static struct timespec x; x.tv_sec = x.tv_nsec;
11702 ;
11703 return 0;
11704}
11705_ACEOF
11706if ac_fn_c_try_compile "$LINENO"; then :
11707 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11708else
11709 gl_cv_sys_struct_timespec_in_sys_time_h=no
11710fi
11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712fi
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11714$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11715 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11716 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11719$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11720if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11722else
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h. */
11725#include <pthread.h>
11726
11727int
11728main ()
11729{
11730static struct timespec x; x.tv_sec = x.tv_nsec;
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735if ac_fn_c_try_compile "$LINENO"; then :
11736 gl_cv_sys_struct_timespec_in_pthread_h=yes
11737else
11738 gl_cv_sys_struct_timespec_in_pthread_h=no
11739fi
11740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741fi
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11743$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11744 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
4a626d0a
PA
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11748$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11749if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11751else
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753/* end confdefs.h. */
11754#include <unistd.h>
11755
11756int
11757main ()
11758{
11759static struct timespec x; x.tv_sec = x.tv_nsec;
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764if ac_fn_c_try_compile "$LINENO"; then :
11765 gl_cv_sys_struct_timespec_in_unistd_h=yes
11766else
11767 gl_cv_sys_struct_timespec_in_unistd_h=no
11768fi
11769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770fi
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11772$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11773 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11774 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11775 fi
09607c9e
TT
11776 fi
11777 fi
11778 fi
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
4a626d0a 11794
09607c9e
TT
11795 if test $gl_cv_have_include_next = yes; then
11796 gl_cv_next_time_h='<'time.h'>'
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11799$as_echo_n "checking absolute name of <time.h>... " >&6; }
11800if test "${gl_cv_next_time_h+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11802else
11803
4a626d0a
PA
11804
11805
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
09607c9e
TT
11807/* end confdefs.h. */
11808#include <time.h>
09607c9e 11809_ACEOF
4a626d0a
PA
11810 case "$host_os" in
11811 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11812 *) gl_absname_cpp="$ac_cpp" ;;
11813 esac
11814
11815 case "$host_os" in
11816 mingw*)
11817 gl_dirsep_regex='[/\\]'
11818 ;;
11819 *)
11820 gl_dirsep_regex='\/'
11821 ;;
11822 esac
11823 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11824 gl_header_literal_regex=`echo 'time.h' \
11825 | sed -e "$gl_make_literal_regex_sed"`
11826 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11828 s|^/[^/]|//&|
11829 p
11830 q
11831 }'
09607c9e 11832
4a626d0a
PA
11833 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11834 sed -n "$gl_absolute_header_sed"`
09607c9e 11835
4a626d0a
PA
11836 gl_header=$gl_cv_absolute_time_h
11837 gl_cv_next_time_h='"'$gl_header'"'
09607c9e
TT
11838
11839
11840fi
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11842$as_echo "$gl_cv_next_time_h" >&6; }
11843 fi
11844 NEXT_TIME_H=$gl_cv_next_time_h
11845
11846 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11848 gl_next_as_first_directive='<'time.h'>'
11849 else
11850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11851 gl_next_as_first_directive=$gl_cv_next_time_h
11852 fi
11853 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11854
11855
11856
11857
11858
11859
11860
8690e634
JK
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11862$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11863if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11865else
11866 gl_cv_header_wchar_h_correct_inline=yes
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868/* end confdefs.h. */
11869
11870 #define wcstod renamed_wcstod
11871/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11872 <wchar.h>.
11873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11874 included before <wchar.h>. */
11875#include <stddef.h>
11876#include <stdio.h>
11877#include <time.h>
11878#include <wchar.h>
11879extern int zero (void);
11880int main () { return zero(); }
11881
11882_ACEOF
11883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884 (eval $ac_compile) 2>&5
11885 ac_status=$?
11886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887 test $ac_status = 0; }; then
11888 mv conftest.$ac_objext conftest1.$ac_objext
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890/* end confdefs.h. */
11891
11892 #define wcstod renamed_wcstod
11893/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11894 <wchar.h>.
11895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11896 included before <wchar.h>. */
11897#include <stddef.h>
11898#include <stdio.h>
11899#include <time.h>
11900#include <wchar.h>
11901int zero (void) { return 0; }
11902
11903_ACEOF
11904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11905 (eval $ac_compile) 2>&5
11906 ac_status=$?
11907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908 test $ac_status = 0; }; then
11909 mv conftest.$ac_objext conftest2.$ac_objext
11910 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11911 :
11912 else
11913 gl_cv_header_wchar_h_correct_inline=no
11914 fi
11915 fi
11916 fi
11917 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11918
11919fi
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11921$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11922 if test $gl_cv_header_wchar_h_correct_inline = no; then
11923 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11924This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11925C99 mode. You have four options:
11926 - Add the flag -fgnu89-inline to CC and reconfigure, or
11927 - Fix your include files, using parts of
11928 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11929 - Use a gcc version older than 4.3, or
11930 - Don't use the flags -std=c99 or -std=gnu99.
11931Configuration aborted." "$LINENO" 5
11932 fi
11933
11934
11935
11936
11937
8690e634
JK
11938 if test $ac_cv_header_features_h = yes; then
11939 HAVE_FEATURES_H=1
11940 else
11941 HAVE_FEATURES_H=0
11942 fi
11943
11944
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11947$as_echo_n "checking for wint_t... " >&6; }
11948if test "${gt_cv_c_wint_t+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11950else
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h. */
11953
11954/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11955 <wchar.h>.
11956 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11957 before <wchar.h>. */
11958#include <stddef.h>
11959#include <stdio.h>
11960#include <time.h>
11961#include <wchar.h>
11962 wint_t foo = (wchar_t)'\0';
11963int
11964main ()
11965{
11966
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971if ac_fn_c_try_compile "$LINENO"; then :
11972 gt_cv_c_wint_t=yes
11973else
11974 gt_cv_c_wint_t=no
11975fi
11976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11979$as_echo "$gt_cv_c_wint_t" >&6; }
11980 if test $gt_cv_c_wint_t = yes; then
11981
11982$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11983
11984 fi
11985
11986
11987 GNULIB_ISWBLANK=0;
11988 GNULIB_WCTYPE=0;
11989 GNULIB_ISWCTYPE=0;
11990 GNULIB_WCTRANS=0;
11991 GNULIB_TOWCTRANS=0;
11992 HAVE_ISWBLANK=1;
11993 HAVE_WCTYPE_T=1;
11994 HAVE_WCTRANS_T=1;
11995 REPLACE_ISWBLANK=0;
11996
11997
11998
11999
8690e634
JK
12000 if false; then
12001 GL_COND_LIBTOOL_TRUE=
12002 GL_COND_LIBTOOL_FALSE='#'
12003else
12004 GL_COND_LIBTOOL_TRUE='#'
12005 GL_COND_LIBTOOL_FALSE=
12006fi
12007
12008 gl_cond_libtool=false
12009 gl_libdeps=
12010 gl_ltlibdeps=
12011 gl_m4_base='import/m4'
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021 gl_source_base='import'
12022
12023
12024 if test $ac_cv_func_alloca_works = no; then
12025 :
12026 fi
12027
12028 # Define an additional variable used in the Makefile substitution.
12029 if test $ac_cv_working_alloca_h = yes; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12031$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12032if test "${gl_cv_rpl_alloca+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034else
12035
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037/* end confdefs.h. */
12038
12039#if defined __GNUC__ || defined _AIX || defined _MSC_VER
12040 Need own alloca
12041#endif
12042
12043_ACEOF
12044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12046 gl_cv_rpl_alloca=yes
12047else
12048 gl_cv_rpl_alloca=no
12049fi
12050rm -f conftest*
12051
12052
12053fi
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12055$as_echo "$gl_cv_rpl_alloca" >&6; }
12056 if test $gl_cv_rpl_alloca = yes; then
12057
12058$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12059
12060 ALLOCA_H=alloca.h
12061 else
12062 ALLOCA_H=
12063 fi
12064 else
12065 ALLOCA_H=alloca.h
12066 fi
12067
12068 if test -n "$ALLOCA_H"; then
12069 GL_GENERATE_ALLOCA_H_TRUE=
12070 GL_GENERATE_ALLOCA_H_FALSE='#'
12071else
12072 GL_GENERATE_ALLOCA_H_TRUE='#'
12073 GL_GENERATE_ALLOCA_H_FALSE=
12074fi
12075
12076
12077
98399780
YQ
12078
12079
12080 if test $ac_cv_func_canonicalize_file_name = no; then
12081 HAVE_CANONICALIZE_FILE_NAME=0
12082 if test $ac_cv_func_realpath = no; then
12083 HAVE_REALPATH=0
12084 else
12085 case "$gl_cv_func_realpath_works" in
12086 *yes) ;;
12087 *) REPLACE_REALPATH=1 ;;
12088 esac
12089 fi
12090 else
12091 case "$gl_cv_func_realpath_works" in
12092 *yes)
12093 ;;
12094 *)
12095 REPLACE_CANONICALIZE_FILE_NAME=1
12096 REPLACE_REALPATH=1
12097 ;;
12098 esac
12099 fi
12100
12101 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12102
12103
12104
12105
12106
12107
12108
12109
12110 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12111
12112 fi
12113
12114
12115cat >>confdefs.h <<_ACEOF
12116#define GNULIB_CANONICALIZE_LGPL 1
12117_ACEOF
12118
12119
12120
12121
12122
12123
12124
12125 GNULIB_CANONICALIZE_FILE_NAME=1
12126
12127
12128
12129
12130
12131$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12132
12133
12134
12135
12136
12137
12138
12139
12140 GNULIB_REALPATH=1
12141
12142
12143
12144
12145
12146$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12147
12148
12149
12150
6a29c58e
YQ
12151
12152
12153
12154
12155 GNULIB_CHDIR=1
12156
12157
12158
12159
12160
12161$as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12162
12163
12164
12165
8690e634
JK
12166 if test "x$datarootdir" = x; then
12167 datarootdir='${datadir}'
12168
12169 fi
12170 if test "x$docdir" = x; then
12171 docdir='${datarootdir}/doc/${PACKAGE}'
12172
12173 fi
12174 if test "x$htmldir" = x; then
12175 htmldir='${docdir}'
12176
12177 fi
12178 if test "x$dvidir" = x; then
12179 dvidir='${docdir}'
12180
12181 fi
12182 if test "x$pdfdir" = x; then
12183 pdfdir='${docdir}'
12184
12185 fi
12186 if test "x$psdir" = x; then
12187 psdir='${docdir}'
12188
12189 fi
12190 if test "x$lispdir" = x; then
12191 lispdir='${datarootdir}/emacs/site-lisp'
12192
12193 fi
12194 if test "x$localedir" = x; then
12195 localedir='${datarootdir}/locale'
12196
4a626d0a
PA
12197 fi
12198 if test "x$runstatedir" = x; then
12199 runstatedir='${localstatedir}/run'
12200
8690e634
JK
12201 fi
12202
12203 pkglibexecdir='${libexecdir}/${PACKAGE}'
12204
12205
12206
12207
12208
12209
63ce7108 12210
e26b6bb0
TT
12211
12212
12213
12214
12215
12216
12217
12218 if test $gl_cv_have_include_next = yes; then
12219 gl_cv_next_dirent_h='<'dirent.h'>'
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12222$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12223if test "${gl_cv_next_dirent_h+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225else
12226
12227 if test $ac_cv_header_dirent_h = yes; then
12228
12229
4a626d0a
PA
12230
12231
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e26b6bb0
TT
12233/* end confdefs.h. */
12234#include <dirent.h>
e26b6bb0 12235_ACEOF
4a626d0a
PA
12236 case "$host_os" in
12237 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12238 *) gl_absname_cpp="$ac_cpp" ;;
12239 esac
12240
12241 case "$host_os" in
12242 mingw*)
12243 gl_dirsep_regex='[/\\]'
12244 ;;
12245 *)
12246 gl_dirsep_regex='\/'
12247 ;;
12248 esac
12249 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12250 gl_header_literal_regex=`echo 'dirent.h' \
12251 | sed -e "$gl_make_literal_regex_sed"`
12252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12254 s|^/[^/]|//&|
12255 p
12256 q
12257 }'
12258
12259 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12260 sed -n "$gl_absolute_header_sed"`
12261
12262 gl_header=$gl_cv_absolute_dirent_h
12263 gl_cv_next_dirent_h='"'$gl_header'"'
e26b6bb0
TT
12264 else
12265 gl_cv_next_dirent_h='<'dirent.h'>'
12266 fi
12267
12268
12269fi
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12271$as_echo "$gl_cv_next_dirent_h" >&6; }
12272 fi
12273 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12274
12275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12277 gl_next_as_first_directive='<'dirent.h'>'
12278 else
12279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12280 gl_next_as_first_directive=$gl_cv_next_dirent_h
12281 fi
12282 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12283
12284
12285
12286
12287 if test $ac_cv_header_dirent_h = yes; then
12288 HAVE_DIRENT_H=1
12289 else
12290 HAVE_DIRENT_H=0
12291 fi
12292
12293
12294
12295 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12296 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12298$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12299if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12300 $as_echo_n "(cached) " >&6
12301else
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h. */
12304#include <dirent.h>
12305
12306int
12307main ()
12308{
12309#undef $gl_func
12310 (void) $gl_func;
12311 ;
12312 return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_compile "$LINENO"; then :
12316 eval "$as_gl_Symbol=yes"
12317else
12318 eval "$as_gl_Symbol=no"
12319fi
12320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321fi
12322eval ac_res=\$$as_gl_Symbol
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12324$as_echo "$ac_res" >&6; }
12325 eval as_val=\$$as_gl_Symbol
12326 if test "x$as_val" = x""yes; then :
12327 cat >>confdefs.h <<_ACEOF
12328#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12329_ACEOF
12330
12331 eval ac_cv_have_decl_$gl_func=yes
12332fi
12333 done
12334
12335
12336
12337
12338
12339
18848e28
GF
12340
12341 for ac_func in dirfd
12342do :
12343 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12344if test "x$ac_cv_func_dirfd" = x""yes; then :
12345 cat >>confdefs.h <<_ACEOF
12346#define HAVE_DIRFD 1
12347_ACEOF
12348
12349fi
12350done
12351
12352 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12353 #include <dirent.h>
12354"
12355if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12356 ac_have_decl=1
12357else
12358 ac_have_decl=0
12359fi
12360
12361cat >>confdefs.h <<_ACEOF
12362#define HAVE_DECL_DIRFD $ac_have_decl
12363_ACEOF
12364
12365 if test $ac_cv_have_decl_dirfd = no; then
12366 HAVE_DECL_DIRFD=0
12367 fi
12368
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12370$as_echo_n "checking whether dirfd is a macro... " >&6; }
12371if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h. */
12376
12377#include <sys/types.h>
12378#include <dirent.h>
12379#ifdef dirfd
12380 dirent_header_defines_dirfd
12381#endif
12382_ACEOF
12383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12384 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12385 gl_cv_func_dirfd_macro=yes
12386else
12387 gl_cv_func_dirfd_macro=no
12388fi
12389rm -f conftest*
12390
12391fi
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12393$as_echo "$gl_cv_func_dirfd_macro" >&6; }
12394
12395 # Use the replacement only if we have no function or macro with that name.
12396 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12397 if test $ac_cv_have_decl_dirfd = yes; then
12398 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12399 REPLACE_DIRFD=1
12400 fi
12401 fi
12402
12403 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12404
12405
12406
12407
12408
12409
12410
12411
12412 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12413
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12416$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12417if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419else
12420
12421 dirfd_save_CFLAGS=$CFLAGS
12422 for ac_expr in d_fd dd_fd; do
12423
12424 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426/* end confdefs.h. */
12427
12428 #include <sys/types.h>
12429 #include <dirent.h>
12430int
12431main ()
12432{
12433DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438if ac_fn_c_try_compile "$LINENO"; then :
12439 dir_fd_found=yes
12440
12441fi
12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 CFLAGS=$dirfd_save_CFLAGS
12444 test "$dir_fd_found" = yes && break
12445 done
12446 test "$dir_fd_found" = yes || ac_expr=no_such_member
12447
12448 gl_cv_sys_dir_fd_member_name=$ac_expr
12449
12450
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12453$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12454 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12455
12456cat >>confdefs.h <<_ACEOF
12457#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12458_ACEOF
12459
12460 fi
12461
12462
12463 fi
12464
12465
12466
12467
12468
12469 GNULIB_DIRFD=1
12470
12471
12472
12473
12474
12475$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12476
12477
12478
12479
12480
12481
12482
12483
6a29c58e
YQ
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12486$as_echo_n "checking whether // is distinct from /... " >&6; }
12487if test "${gl_cv_double_slash_root+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12489else
12490 if test x"$cross_compiling" = xyes ; then
12491 # When cross-compiling, there is no way to tell whether // is special
12492 # short of a list of hosts. However, the only known hosts to date
12493 # that have a distinct // are Apollo DomainOS (too old to port to),
12494 # Cygwin, and z/OS. If anyone knows of another system for which // has
12495 # special semantics and is distinct from /, please report it to
12496 # <bug-gnulib@gnu.org>.
12497 case $host in
12498 *-cygwin | i370-ibm-openedition)
12499 gl_cv_double_slash_root=yes ;;
12500 *)
12501 # Be optimistic and assume that / and // are the same when we
12502 # don't know.
12503 gl_cv_double_slash_root='unknown, assuming no' ;;
12504 esac
12505 else
12506 set x `ls -di / // 2>/dev/null`
12507 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12508 gl_cv_double_slash_root=no
12509 else
12510 gl_cv_double_slash_root=yes
12511 fi
12512 fi
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12515$as_echo "$gl_cv_double_slash_root" >&6; }
12516 if test "$gl_cv_double_slash_root" = yes; then
12517
12518$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12519
12520 fi
12521
12522
12523
12524
12525
12526
88b48903
WN
12527 FLOAT_H=
12528 REPLACE_FLOAT_LDBL=0
12529 case "$host_os" in
12530 aix* | beos* | openbsd* | mirbsd* | irix*)
12531 FLOAT_H=float.h
12532 ;;
12533 freebsd*)
12534 case "$host_cpu" in
12535 i[34567]86 )
12536 FLOAT_H=float.h
12537 ;;
12538 x86_64 )
12539 # On x86_64 systems, the C compiler may still be generating
12540 # 32-bit code.
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h. */
12543#if defined __LP64__ || defined __x86_64__ || defined __amd64__
12544 yes
12545 #endif
12546_ACEOF
12547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548 $EGREP "yes" >/dev/null 2>&1; then :
12549
12550else
12551 FLOAT_H=float.h
12552fi
12553rm -f conftest*
8690e634 12554
88b48903
WN
12555 ;;
12556 esac
12557 ;;
12558 linux*)
12559 case "$host_cpu" in
12560 powerpc*)
12561 FLOAT_H=float.h
12562 ;;
12563 esac
12564 ;;
12565 esac
12566 case "$host_os" in
12567 aix* | freebsd* | linux*)
12568 if test -n "$FLOAT_H"; then
12569 REPLACE_FLOAT_LDBL=1
12570 fi
12571 ;;
12572 esac
a512b375 12573
88b48903
WN
12574 REPLACE_ITOLD=0
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12576$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12577if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
12578 $as_echo_n "(cached) " >&6
12579else
88b48903
WN
12580
12581 if test "$cross_compiling" = yes; then :
12582 case "$host" in
12583 sparc*-*-linux*)
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585/* end confdefs.h. */
12586#if defined __LP64__ || defined __arch64__
12587 yes
12588 #endif
12589_ACEOF
12590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12591 $EGREP "yes" >/dev/null 2>&1; then :
12592 gl_cv_func_itold_works="guessing no"
12593else
12594 gl_cv_func_itold_works="guessing yes"
12595fi
12596rm -f conftest*
12597
12598 ;;
12599 *) gl_cv_func_itold_works="guessing yes" ;;
12600 esac
12601
8690e634
JK
12602else
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h. */
8690e634 12605
88b48903
WN
12606int i = -1;
12607volatile long double ld;
12608int main ()
8690e634 12609{
88b48903
WN
12610 ld += i * 1.0L;
12611 if (ld > 0)
12612 return 1;
12613 return 0;
12614}
12615_ACEOF
12616if ac_fn_c_try_run "$LINENO"; then :
12617 gl_cv_func_itold_works=yes
12618else
12619 gl_cv_func_itold_works=no
12620fi
12621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12622 conftest.$ac_objext conftest.beam conftest.$ac_ext
12623fi
12624
12625
12626fi
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12628$as_echo "$gl_cv_func_itold_works" >&6; }
12629 case "$gl_cv_func_itold_works" in
12630 *no)
12631 REPLACE_ITOLD=1
12632 FLOAT_H=float.h
12633 ;;
12634 esac
12635
12636 if test -n "$FLOAT_H"; then
12637
12638
12639
12640
12641
12642
12643
12644
12645 if test $gl_cv_have_include_next = yes; then
12646 gl_cv_next_float_h='<'float.h'>'
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12649$as_echo_n "checking absolute name of <float.h>... " >&6; }
12650if test "${gl_cv_next_float_h+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12652else
12653
4a626d0a
PA
12654
12655
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88b48903
WN
12657/* end confdefs.h. */
12658#include <float.h>
88b48903 12659_ACEOF
4a626d0a
PA
12660 case "$host_os" in
12661 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12662 *) gl_absname_cpp="$ac_cpp" ;;
12663 esac
12664
12665 case "$host_os" in
12666 mingw*)
12667 gl_dirsep_regex='[/\\]'
12668 ;;
12669 *)
12670 gl_dirsep_regex='\/'
12671 ;;
12672 esac
12673 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12674 gl_header_literal_regex=`echo 'float.h' \
12675 | sed -e "$gl_make_literal_regex_sed"`
12676 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12677 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12678 s|^/[^/]|//&|
12679 p
12680 q
12681 }'
88b48903 12682
4a626d0a
PA
12683 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12684 sed -n "$gl_absolute_header_sed"`
88b48903 12685
4a626d0a
PA
12686 gl_header=$gl_cv_absolute_float_h
12687 gl_cv_next_float_h='"'$gl_header'"'
88b48903
WN
12688
12689
12690fi
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12692$as_echo "$gl_cv_next_float_h" >&6; }
12693 fi
12694 NEXT_FLOAT_H=$gl_cv_next_float_h
12695
12696 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12698 gl_next_as_first_directive='<'float.h'>'
12699 else
12700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12701 gl_next_as_first_directive=$gl_cv_next_float_h
12702 fi
12703 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12704
12705
12706
12707
12708 fi
12709
12710 if test -n "$FLOAT_H"; then
12711 GL_GENERATE_FLOAT_H_TRUE=
12712 GL_GENERATE_FLOAT_H_FALSE='#'
12713else
12714 GL_GENERATE_FLOAT_H_TRUE='#'
12715 GL_GENERATE_FLOAT_H_FALSE=
12716fi
12717
12718
12719
12720 if test $REPLACE_FLOAT_LDBL = 1; then
12721
12722
12723
12724
12725
12726
12727
12728
12729 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12730
12731 fi
12732 if test $REPLACE_ITOLD = 1; then
12733
12734
12735
12736
12737
12738
12739
12740
12741 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12742
12743 fi
12744
12745
12746
12747
12748
12749 FNMATCH_H=
12750 gl_fnmatch_required_lowercase=`
12751 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
12752 `
12753 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12755$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12756if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12757 $as_echo_n "(cached) " >&6
12758else
12759 if test $gl_fnmatch_required = GNU; then
12760 gl_fnmatch_gnu_start=
12761 gl_fnmatch_gnu_end=
12762 else
12763 gl_fnmatch_gnu_start='#if 0'
12764 gl_fnmatch_gnu_end='#endif'
12765 fi
12766 if test "$cross_compiling" = yes; then :
12767 eval "$gl_fnmatch_cache_var=\"guessing no\""
12768else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h. */
12771#include <fnmatch.h>
12772 static int
12773 y (char const *pattern, char const *string, int flags)
12774 {
12775 return fnmatch (pattern, string, flags) == 0;
12776 }
12777 static int
12778 n (char const *pattern, char const *string, int flags)
12779 {
12780 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12781 }
12782
12783int
12784main ()
12785{
12786char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12787 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12788 static char const A_1[] = { 'A' - 1, 0 };
12789 static char const A01[] = { 'A' + 1, 0 };
12790 static char const a_1[] = { 'a' - 1, 0 };
12791 static char const a01[] = { 'a' + 1, 0 };
12792 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
12793 static char const bs01[] = { '\\\\' + 1, 0 };
12794 int result = 0;
12795 if (!n ("a*", "", 0))
12796 return 1;
12797 if (!y ("a*", "abc", 0))
12798 return 1;
12799 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12800 return 1;
12801 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12802 return 2;
12803 if (!y ("a\\\\bc", "abc", 0))
12804 return 3;
12805 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12806 return 3;
12807 if (!y ("*x", ".x", 0))
12808 return 4;
12809 if (!n ("*x", ".x", FNM_PERIOD))
12810 return 4;
12811 if (!y (Apat, "\\\\", 0))
12812 return 5;
12813 if (!y (Apat, "A", 0))
12814 return 5;
12815 if (!y (apat, "\\\\", 0))
12816 return 5;
12817 if (!y (apat, "a", 0))
12818 return 5;
12819 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12820 return 5;
12821 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12822 return 5;
12823 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12824 return 5;
12825 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12826 return 5;
12827 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12828 return 5;
12829 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12830 return 5;
12831 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12832 return 5;
12833 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12834 return 5;
12835 $gl_fnmatch_gnu_start
12836 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12837 result |= 8;
12838 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12839 result |= 16;
12840 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12841 result |= 32;
12842 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12843 result |= 64;
12844 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12845 result |= 64;
12846 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12847 result |= 64;
12848 $gl_fnmatch_gnu_end
12849 return result;
12850
12851 ;
12852 return 0;
12853}
12854_ACEOF
12855if ac_fn_c_try_run "$LINENO"; then :
12856 eval "$gl_fnmatch_cache_var=yes"
12857else
12858 eval "$gl_fnmatch_cache_var=no"
12859fi
12860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12861 conftest.$ac_objext conftest.beam conftest.$ac_ext
12862fi
12863
12864
12865fi
12866eval ac_res=\$$gl_fnmatch_cache_var
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12868$as_echo "$ac_res" >&6; }
12869 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12870 if test "$gl_fnmatch_result" = yes; then
12871 rm -f "$gl_source_base/fnmatch.h"
12872 else
12873 FNMATCH_H=fnmatch.h
12874 fi
12875
12876 if test -n "$FNMATCH_H"; then
12877 GL_GENERATE_FNMATCH_H_TRUE=
12878 GL_GENERATE_FNMATCH_H_FALSE='#'
12879else
12880 GL_GENERATE_FNMATCH_H_TRUE='#'
12881 GL_GENERATE_FNMATCH_H_FALSE=
12882fi
12883
12884
a512b375 12885 if test -n "$FNMATCH_H"; then
8690e634
JK
12886
12887
12888
12889
12890
12891
12892
12893
12894 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12895
12896
12897
12898cat >>confdefs.h <<_ACEOF
12899#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12900_ACEOF
12901
12902
12903 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12904"
12905if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12906 ac_have_decl=1
12907else
12908 ac_have_decl=0
12909fi
12910
12911cat >>confdefs.h <<_ACEOF
12912#define HAVE_DECL_ISBLANK $ac_have_decl
12913_ACEOF
12914
12915
c971b7fa 12916
c971b7fa 12917
a512b375 12918 fi
c971b7fa 12919
c971b7fa 12920
c971b7fa 12921
c971b7fa 12922
c971b7fa 12923
a512b375 12924 if test -n "$FNMATCH_H"; then
c971b7fa 12925
c971b7fa 12926
c971b7fa
PA
12927
12928
c971b7fa
PA
12929
12930
c971b7fa
PA
12931
12932
8690e634 12933 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 12934
c971b7fa 12935
c971b7fa 12936
8690e634
JK
12937cat >>confdefs.h <<_ACEOF
12938#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12939_ACEOF
c971b7fa
PA
12940
12941
8690e634
JK
12942 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12943"
12944if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12945 ac_have_decl=1
12946else
12947 ac_have_decl=0
c971b7fa 12948fi
c971b7fa 12949
8690e634
JK
12950cat >>confdefs.h <<_ACEOF
12951#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
12952_ACEOF
12953
c971b7fa 12954
8690e634 12955
c971b7fa 12956
88b48903
WN
12957 fi
12958
12959
12960
12961 FREXP_LIBM=
12962 if test $gl_cv_func_frexp_no_libm = no; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12964$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12965if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967else
12968
12969 save_LIBS="$LIBS"
12970 LIBS="$LIBS -lm"
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h. */
12973#include <math.h>
12974 double x;
12975int
12976main ()
12977{
12978int e; return frexp (x, &e) > 0;
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983if ac_fn_c_try_link "$LINENO"; then :
12984 gl_cv_func_frexp_in_libm=yes
12985else
12986 gl_cv_func_frexp_in_libm=no
12987fi
12988rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12990 LIBS="$save_LIBS"
12991
12992fi
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12994$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12995 if test $gl_cv_func_frexp_in_libm = yes; then
12996 FREXP_LIBM=-lm
12997 fi
12998 fi
12999 if test $gl_cv_func_frexp_no_libm = yes \
13000 || test $gl_cv_func_frexp_in_libm = yes; then
13001 save_LIBS="$LIBS"
13002 LIBS="$LIBS $FREXP_LIBM"
13003
13004
13005
88b48903
WN
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13007$as_echo_n "checking whether frexp works... " >&6; }
13008if test "${gl_cv_func_frexp_works+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010else
13011
13012 if test "$cross_compiling" = yes; then :
13013 case "$host_os" in
13014 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13015 *) gl_cv_func_frexp_works="guessing yes";;
13016 esac
13017
13018else
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020/* end confdefs.h. */
13021
13022#include <float.h>
13023#include <math.h>
13024#include <string.h>
4a626d0a
PA
13025#if HAVE_DECL_ALARM
13026# include <signal.h>
88b48903
WN
13027# include <unistd.h>
13028#endif
13029/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13030 ICC 10.0 has a bug when optimizing the expression -zero.
13031 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13032 to PowerPC on Mac OS X 10.5. */
13033#if defined __hpux || defined __sgi || defined __ICC
13034static double
13035compute_minus_zero (void)
13036{
13037 return -DBL_MIN * DBL_MIN;
13038}
13039# define minus_zero compute_minus_zero ()
13040#else
13041double minus_zero = -0.0;
13042#endif
13043int main()
13044{
13045 int result = 0;
13046 int i;
13047 volatile double x;
13048 double zero = 0.0;
4a626d0a 13049#if HAVE_DECL_ALARM
88b48903
WN
13050 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13051 number. Let the test fail in this case. */
4a626d0a 13052 signal (SIGALRM, SIG_DFL);
88b48903
WN
13053 alarm (5);
13054#endif
13055 /* Test on denormalized numbers. */
13056 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13057 ;
13058 if (x > 0.0)
13059 {
13060 int exp;
13061 double y = frexp (x, &exp);
13062 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13063 On NetBSD: y = 0.75. Correct: y = 0.5. */
13064 if (y != 0.5)
13065 result |= 1;
13066 }
13067 /* Test on infinite numbers. */
13068 x = 1.0 / zero;
13069 {
13070 int exp;
13071 double y = frexp (x, &exp);
13072 if (y != x)
13073 result |= 2;
13074 }
13075 /* Test on negative zero. */
13076 x = minus_zero;
13077 {
13078 int exp;
13079 double y = frexp (x, &exp);
13080 if (memcmp (&y, &x, sizeof x))
13081 result |= 4;
13082 }
13083 return result;
13084}
13085_ACEOF
13086if ac_fn_c_try_run "$LINENO"; then :
13087 gl_cv_func_frexp_works=yes
13088else
13089 gl_cv_func_frexp_works=no
13090fi
13091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13093fi
13094
13095
13096fi
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13098$as_echo "$gl_cv_func_frexp_works" >&6; }
13099
13100 LIBS="$save_LIBS"
13101 case "$gl_cv_func_frexp_works" in
13102 *yes) gl_func_frexp=yes ;;
13103 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13104 esac
13105 else
13106 gl_func_frexp=no
13107 fi
13108 if test $gl_func_frexp = yes; then
13109
13110$as_echo "#define HAVE_FREXP 1" >>confdefs.h
13111
13112 fi
13113
13114
13115 if test $gl_func_frexp != yes; then
13116
13117
13118
13119
13120
13121
13122
13123
13124 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13125
13126 fi
13127
13128
13129
13130
13131
13132 GNULIB_FREXP=1
13133
13134
13135
13136
13137
13138$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13149"
13150if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13151
13152else
13153 HAVE_DECL_FREXPL=0
13154fi
13155
13156
13157 FREXPL_LIBM=
13158 if test $HAVE_DECL_FREXPL = 1; then
13159
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13161$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13162if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164else
13165
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167/* end confdefs.h. */
13168#include <math.h>
13169 long double x;
13170int
13171main ()
13172{
13173int e; return frexpl (x, &e) > 0;
13174 ;
13175 return 0;
13176}
13177_ACEOF
13178if ac_fn_c_try_link "$LINENO"; then :
13179 gl_cv_func_frexpl_no_libm=yes
13180else
13181 gl_cv_func_frexpl_no_libm=no
13182fi
13183rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185
13186fi
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13188$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13189
13190 if test $gl_cv_func_frexpl_no_libm = no; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13192$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13193if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195else
13196
13197 save_LIBS="$LIBS"
13198 LIBS="$LIBS -lm"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h. */
13201#include <math.h>
13202 long double x;
13203int
13204main ()
13205{
13206int e; return frexpl (x, &e) > 0;
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211if ac_fn_c_try_link "$LINENO"; then :
13212 gl_cv_func_frexpl_in_libm=yes
13213else
13214 gl_cv_func_frexpl_in_libm=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS="$save_LIBS"
13219
13220fi
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13222$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13223 if test $gl_cv_func_frexpl_in_libm = yes; then
13224 FREXPL_LIBM=-lm
13225 fi
13226 fi
13227 if test $gl_cv_func_frexpl_no_libm = yes \
13228 || test $gl_cv_func_frexpl_in_libm = yes; then
13229 save_LIBS="$LIBS"
13230 LIBS="$LIBS $FREXPL_LIBM"
13231
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13234$as_echo_n "checking whether frexpl works... " >&6; }
13235if test "${gl_cv_func_frexpl_works+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237else
13238
13239 if test "$cross_compiling" = yes; then :
13240
13241 case "$host_os" in
13242 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13243 gl_cv_func_frexpl_works="guessing no";;
13244 *) gl_cv_func_frexpl_works="guessing yes";;
13245 esac
13246
13247else
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h. */
13250
13251#include <float.h>
13252#include <math.h>
13253/* Override the values of <float.h>, like done in float.in.h. */
13254#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13255# undef LDBL_MIN_EXP
13256# define LDBL_MIN_EXP (-16381)
13257#endif
13258#if defined __i386__ && defined __FreeBSD__
13259# undef LDBL_MIN_EXP
13260# define LDBL_MIN_EXP (-16381)
13261#endif
13262#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13263# undef LDBL_MIN_EXP
13264# define LDBL_MIN_EXP DBL_MIN_EXP
13265#endif
13266#if defined __sgi && (LDBL_MANT_DIG >= 106)
13267# if defined __GNUC__
13268# undef LDBL_MIN_EXP
13269# define LDBL_MIN_EXP DBL_MIN_EXP
13270# endif
13271#endif
13272extern
13273#ifdef __cplusplus
13274"C"
13275#endif
13276long double frexpl (long double, int *);
13277int main()
13278{
13279 int result = 0;
13280 volatile long double x;
13281 /* Test on finite numbers that fails on AIX 5.1. */
13282 x = 16.0L;
13283 {
13284 int exp = -9999;
13285 frexpl (x, &exp);
13286 if (exp != 5)
13287 result |= 1;
13288 }
13289 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13290 function returns an invalid (incorrectly normalized) value: it returns
13291 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13292 but the correct result is
13293 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13294 x = 1.01L;
13295 {
13296 int exp = -9999;
13297 long double y = frexpl (x, &exp);
13298 if (!(exp == 1 && y == 0.505L))
13299 result |= 2;
13300 }
13301 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13302 LDBL_MAX_EXP = 16384.
13303 In the loop end test, we test x against Infinity, rather than comparing
13304 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13305 {
13306 int i;
13307 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13308 {
13309 int exp = -9999;
13310 frexpl (x, &exp);
13311 if (exp != i)
13312 {
13313 result |= 4;
13314 break;
13315 }
13316 }
13317 }
13318 /* Test on denormalized numbers. */
13319 {
13320 int i;
13321 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13322 ;
13323 if (x > 0.0L)
13324 {
13325 int exp;
13326 long double y = frexpl (x, &exp);
13327 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13328 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13329 if (exp != LDBL_MIN_EXP - 1)
13330 result |= 8;
13331 }
13332 }
13333 /* Test on infinite numbers. */
13334 x = 1.0L / 0.0L;
13335 {
13336 int exp;
13337 long double y = frexpl (x, &exp);
13338 if (y != x)
13339 result |= 16;
13340 }
13341 return result;
13342}
13343_ACEOF
13344if ac_fn_c_try_run "$LINENO"; then :
13345 gl_cv_func_frexpl_works=yes
13346else
13347 gl_cv_func_frexpl_works=no
13348fi
13349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13350 conftest.$ac_objext conftest.beam conftest.$ac_ext
13351fi
13352
13353
4a626d0a
PA
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13356$as_echo "$gl_cv_func_frexpl_works" >&6; }
13357
13358 LIBS="$save_LIBS"
13359 case "$gl_cv_func_frexpl_works" in
13360 *yes) gl_func_frexpl=yes ;;
13361 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13362 esac
13363 else
13364 gl_func_frexpl=no
13365 fi
13366 if test $gl_func_frexpl = yes; then
13367
13368$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13369
13370 fi
13371 fi
13372 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13373 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13374
13375 FREXPL_LIBM="$FREXP_LIBM"
13376 else
13377 FREXPL_LIBM=
13378 fi
13379 fi
13380
13381
13382 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13383
13384
13385
13386
13387
13388
13389
13390
13391 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13392
13393 fi
13394
13395
13396
13397
13398
13399 GNULIB_FREXPL=1
13400
13401
13402
13403
13404
13405$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415 gl_gettimeofday_timezone=void
13416 if test $ac_cv_func_gettimeofday != yes; then
13417 HAVE_GETTIMEOFDAY=0
13418 else
13419
13420
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13423$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13424if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426else
13427 if test "$cross_compiling" = yes; then :
13428 # When cross-compiling:
13429 case "$host_os" in
13430 # Guess all is fine on glibc systems.
13431 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13432 # If we don't know, assume the worst.
13433 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13434 esac
13435
13436else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h. */
13439#include <string.h>
13440 #include <sys/time.h>
13441 #include <time.h>
13442 #include <stdlib.h>
13443
13444int
13445main ()
13446{
13447
13448 time_t t = 0;
13449 struct tm *lt;
13450 struct tm saved_lt;
13451 struct timeval tv;
13452 lt = localtime (&t);
13453 saved_lt = *lt;
13454 gettimeofday (&tv, NULL);
13455 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13456
13457 ;
13458 return 0;
13459}
13460_ACEOF
13461if ac_fn_c_try_run "$LINENO"; then :
13462 gl_cv_func_gettimeofday_clobber=no
13463else
13464 gl_cv_func_gettimeofday_clobber=yes
13465fi
13466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13467 conftest.$ac_objext conftest.beam conftest.$ac_ext
13468fi
13469
13470fi
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13472$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13473
13474 case "$gl_cv_func_gettimeofday_clobber" in
13475 *yes)
13476 REPLACE_GETTIMEOFDAY=1
13477
13478 REPLACE_GMTIME=1
13479 REPLACE_LOCALTIME=1
13480
13481
13482$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13483
13484 ;;
13485 esac
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13488$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13489if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491else
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h. */
13494#include <sys/time.h>
13495 struct timeval c;
13496 int gettimeofday (struct timeval *restrict, void *restrict);
13497
13498int
13499main ()
13500{
13501/* glibc uses struct timezone * rather than the POSIX void *
13502 if _GNU_SOURCE is defined. However, since the only portable
13503 use of gettimeofday uses NULL as the second parameter, and
13504 since the glibc definition is actually more typesafe, it is
13505 not worth wrapping this to get a compliant signature. */
13506 int (*f) (struct timeval *restrict, void *restrict)
13507 = gettimeofday;
13508 int x = f (&c, 0);
13509 return !(x | c.tv_sec | c.tv_usec);
13510
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515if ac_fn_c_try_compile "$LINENO"; then :
13516 gl_cv_func_gettimeofday_posix_signature=yes
13517else
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h. */
13520#include <sys/time.h>
13521int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13522
13523int
13524main ()
13525{
13526
13527 ;
13528 return 0;
13529}
13530_ACEOF
13531if ac_fn_c_try_compile "$LINENO"; then :
13532 gl_cv_func_gettimeofday_posix_signature=almost
13533else
13534 gl_cv_func_gettimeofday_posix_signature=no
13535fi
13536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539fi
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13541$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13542 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13543 gl_gettimeofday_timezone='struct timezone'
13544 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13545 REPLACE_GETTIMEOFDAY=1
13546 fi
13547 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13548 REPLACE_GETTIMEOFDAY=1
13549 fi
13550
13551 fi
13552
13553cat >>confdefs.h <<_ACEOF
13554#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13555_ACEOF
13556
88b48903 13557
4a626d0a 13558 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
88b48903 13559
88b48903 13560
88b48903 13561
88b48903
WN
13562
13563
88b48903
WN
13564
13565
13566
4a626d0a 13567 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
88b48903
WN
13568
13569
4a626d0a
PA
13570 for ac_header in sys/timeb.h
13571do :
13572 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13573if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13574 cat >>confdefs.h <<_ACEOF
13575#define HAVE_SYS_TIMEB_H 1
13576_ACEOF
88b48903 13577
4a626d0a 13578fi
88b48903 13579
4a626d0a
PA
13580done
13581
13582 for ac_func in _ftime
13583do :
13584 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13585if test "x$ac_cv_func__ftime" = x""yes; then :
13586 cat >>confdefs.h <<_ACEOF
13587#define HAVE__FTIME 1
13588_ACEOF
13589
13590fi
13591done
88b48903 13592
88b48903
WN
13593
13594 fi
13595
13596
13597
13598
13599
4a626d0a 13600 GNULIB_GETTIMEOFDAY=1
88b48903
WN
13601
13602
13603
13604
13605
4a626d0a 13606$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
88b48903
WN
13607
13608
13609
13610
13611
13612
13613
13614
13615 PRIPTR_PREFIX=
13616 if test -n "$STDINT_H"; then
13617 PRIPTR_PREFIX='"l"'
13618 else
13619 for glpfx in '' l ll I64; do
13620 case $glpfx in
13621 '') gltype1='int';;
13622 l) gltype1='long int';;
13623 ll) gltype1='long long int';;
13624 I64) gltype1='__int64';;
13625 esac
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627/* end confdefs.h. */
13628#include <stdint.h>
13629 extern intptr_t foo;
13630 extern $gltype1 foo;
13631int
13632main ()
13633{
13634
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639if ac_fn_c_try_compile "$LINENO"; then :
13640 PRIPTR_PREFIX='"'$glpfx'"'
13641fi
13642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 test -n "$PRIPTR_PREFIX" && break
13644 done
13645 fi
13646
13647
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13650$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13651if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653else
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655/* end confdefs.h. */
13656/* Work also in C++ mode. */
13657 #define __STDC_LIMIT_MACROS 1
13658
13659 /* Work if build is not clean. */
13660 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13661
13662 #include <limits.h>
13663 #if HAVE_STDINT_H
13664 #include <stdint.h>
13665 #endif
13666
13667 #if defined INT32_MAX && defined INTMAX_MAX
13668 #define CONDITION (INT32_MAX < INTMAX_MAX)
13669 #elif HAVE_LONG_LONG_INT
13670 #define CONDITION (sizeof (int) < sizeof (long long int))
13671 #else
13672 #define CONDITION 0
13673 #endif
13674 int test[CONDITION ? 1 : -1];
13675int
13676main ()
13677{
13678
13679 ;
13680 return 0;
13681}
13682_ACEOF
13683if ac_fn_c_try_compile "$LINENO"; then :
13684 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13685else
13686 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13687fi
13688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13691$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13692 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13693 INT32_MAX_LT_INTMAX_MAX=1;
13694 else
13695 INT32_MAX_LT_INTMAX_MAX=0;
13696 fi
13697
13698
13699 if test $APPLE_UNIVERSAL_BUILD = 0; then
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13702$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13703if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13705else
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707/* end confdefs.h. */
13708/* Work also in C++ mode. */
13709 #define __STDC_LIMIT_MACROS 1
13710
13711 /* Work if build is not clean. */
13712 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13713
13714 #include <limits.h>
13715 #if HAVE_STDINT_H
13716 #include <stdint.h>
13717 #endif
13718
13719 #if defined INT64_MAX
13720 #define CONDITION (INT64_MAX == LONG_MAX)
13721 #elif HAVE_LONG_LONG_INT
13722 #define CONDITION (sizeof (long long int) == sizeof (long int))
13723 #else
13724 #define CONDITION 0
13725 #endif
13726 int test[CONDITION ? 1 : -1];
13727int
13728main ()
13729{
13730
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735if ac_fn_c_try_compile "$LINENO"; then :
13736 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13737else
13738 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13739fi
13740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741fi
13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13743$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13744 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13745 INT64_MAX_EQ_LONG_MAX=1;
13746 else
13747 INT64_MAX_EQ_LONG_MAX=0;
13748 fi
13749
13750
13751 else
13752 INT64_MAX_EQ_LONG_MAX=-1
13753 fi
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13756$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13757if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761/* end confdefs.h. */
13762/* Work also in C++ mode. */
13763 #define __STDC_LIMIT_MACROS 1
13764
13765 /* Work if build is not clean. */
13766 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13767
13768 #include <limits.h>
13769 #if HAVE_STDINT_H
13770 #include <stdint.h>
13771 #endif
13772
13773 #if defined UINT32_MAX && defined UINTMAX_MAX
13774 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13775 #elif HAVE_LONG_LONG_INT
13776 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13777 #else
13778 #define CONDITION 0
13779 #endif
13780 int test[CONDITION ? 1 : -1];
13781int
13782main ()
13783{
13784
13785 ;
13786 return 0;
13787}
13788_ACEOF
13789if ac_fn_c_try_compile "$LINENO"; then :
13790 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13791else
13792 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13793fi
13794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795fi
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13797$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13798 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13799 UINT32_MAX_LT_UINTMAX_MAX=1;
13800 else
13801 UINT32_MAX_LT_UINTMAX_MAX=0;
13802 fi
13803
13804
13805 if test $APPLE_UNIVERSAL_BUILD = 0; then
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13808$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13809if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13811else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h. */
13814/* Work also in C++ mode. */
13815 #define __STDC_LIMIT_MACROS 1
13816
13817 /* Work if build is not clean. */
13818 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13819
13820 #include <limits.h>
13821 #if HAVE_STDINT_H
13822 #include <stdint.h>
13823 #endif
13824
13825 #if defined UINT64_MAX
13826 #define CONDITION (UINT64_MAX == ULONG_MAX)
13827 #elif HAVE_LONG_LONG_INT
13828 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13829 #else
13830 #define CONDITION 0
13831 #endif
13832 int test[CONDITION ? 1 : -1];
13833int
13834main ()
13835{
13836
13837 ;
13838 return 0;
13839}
13840_ACEOF
13841if ac_fn_c_try_compile "$LINENO"; then :
13842 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13843else
13844 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13845fi
13846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13849$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13850 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13851 UINT64_MAX_EQ_ULONG_MAX=1;
13852 else
13853 UINT64_MAX_EQ_ULONG_MAX=0;
13854 fi
13855
13856
13857 else
13858 UINT64_MAX_EQ_ULONG_MAX=-1
13859 fi
13860
13861
13862
13863
13864
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13866$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13867if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13869else
13870
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h. */
13873#include <math.h>
13874 #if __GNUC__ >= 4
13875 # undef isnand
13876 # define isnand(x) __builtin_isnan ((double)(x))
13877 #else
13878 # undef isnand
13879 # define isnand(x) isnan ((double)(x))
13880 #endif
13881 double x;
13882int
13883main ()
13884{
13885return isnand (x);
13886 ;
13887 return 0;
13888}
13889_ACEOF
13890if ac_fn_c_try_link "$LINENO"; then :
13891 gl_cv_func_isnand_no_libm=yes
13892else
13893 gl_cv_func_isnand_no_libm=no
13894fi
13895rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897
13898fi
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13900$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13901
13902 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13903 if test $gl_cv_func_isnand_no_libm = yes; then
13904
13905$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13906
13907 fi
13908
13909 if test $gl_func_isnand_no_libm != yes; then
13910
13911
13912
13913
13914
13915
13916
13917
13918 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13919
13920
13921
13922
13923 fi
13924
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13927$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13928if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13930else
13931
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933/* end confdefs.h. */
13934#include <math.h>
13935 #if __GNUC__ >= 4
13936 # undef isnanl
13937 # define isnanl(x) __builtin_isnanl ((long double)(x))
13938 #elif defined isnan
13939 # undef isnanl
13940 # define isnanl(x) isnan ((long double)(x))
13941 #endif
13942 long double x;
13943int
13944main ()
13945{
13946return isnanl (x);
13947 ;
13948 return 0;
13949}
13950_ACEOF
13951if ac_fn_c_try_link "$LINENO"; then :
13952 gl_cv_func_isnanl_no_libm=yes
13953else
13954 gl_cv_func_isnanl_no_libm=no
13955fi
13956rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958
13959fi
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13961$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13962
13963 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13964 if test $gl_func_isnanl_no_libm = yes; then
13965
13966
13967
13968
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13970$as_echo_n "checking whether isnanl works... " >&6; }
13971if test "${gl_cv_func_isnanl_works+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973else
13974
13975 if test "$cross_compiling" = yes; then :
4a626d0a 13976 gl_cv_func_isnanl_works="guessing yes"
88b48903
WN
13977else
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h. */
13980
13981#include <float.h>
13982#include <limits.h>
13983#include <math.h>
13984#if __GNUC__ >= 4
13985# undef isnanl
13986# define isnanl(x) __builtin_isnanl ((long double)(x))
13987#elif defined isnan
13988# undef isnanl
13989# define isnanl(x) isnan ((long double)(x))
13990#endif
13991#define NWORDS \
13992 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13993typedef union { unsigned int word[NWORDS]; long double value; }
13994 memory_long_double;
13995/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13996 runtime type conversion. */
13997#ifdef __sgi
13998static long double NaNl ()
13999{
14000 double zero = 0.0;
14001 return zero / zero;
14002}
14003#else
14004# define NaNl() (0.0L / 0.0L)
14005#endif
14006int main ()
14007{
14008 int result = 0;
14009
14010 if (!isnanl (NaNl ()))
14011 result |= 1;
14012
14013 {
14014 memory_long_double m;
14015 unsigned int i;
14016
14017 /* The isnanl function should be immune against changes in the sign bit and
14018 in the mantissa bits. The xor operation twiddles a bit that can only be
14019 a sign bit or a mantissa bit (since the exponent never extends to
14020 bit 31). */
14021 m.value = NaNl ();
14022 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14023 for (i = 0; i < NWORDS; i++)
14024 m.word[i] |= 1;
14025 if (!isnanl (m.value))
14026 result |= 1;
14027 }
14028
14029#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
14030/* Representation of an 80-bit 'long double' as an initializer for a sequence
14031 of 'unsigned int' words. */
14032# ifdef WORDS_BIGENDIAN
14033# define LDBL80_WORDS(exponent,manthi,mantlo) \
14034 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
4a626d0a 14035 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
88b48903
WN
14036 (unsigned int) (mantlo) << 16 \
14037 }
14038# else
14039# define LDBL80_WORDS(exponent,manthi,mantlo) \
14040 { mantlo, manthi, exponent }
14041# endif
14042 { /* Quiet NaN. */
14043 static memory_long_double x =
14044 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14045 if (!isnanl (x.value))
14046 result |= 2;
14047 }
14048 {
14049 /* Signalling NaN. */
14050 static memory_long_double x =
14051 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14052 if (!isnanl (x.value))
14053 result |= 2;
14054 }
4a626d0a 14055 /* isnanl should return something even for noncanonical values. */
88b48903
WN
14056 { /* Pseudo-NaN. */
14057 static memory_long_double x =
14058 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
4a626d0a 14059 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14060 result |= 4;
14061 }
14062 { /* Pseudo-Infinity. */
14063 static memory_long_double x =
14064 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
4a626d0a 14065 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14066 result |= 8;
14067 }
14068 { /* Pseudo-Zero. */
14069 static memory_long_double x =
14070 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
4a626d0a 14071 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14072 result |= 16;
14073 }
14074 { /* Unnormalized number. */
14075 static memory_long_double x =
14076 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
4a626d0a 14077 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14078 result |= 32;
14079 }
14080 { /* Pseudo-Denormal. */
14081 static memory_long_double x =
14082 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
4a626d0a 14083 if (isnanl (x.value) && !isnanl (x.value))
88b48903
WN
14084 result |= 64;
14085 }
14086#endif
14087
14088 return result;
14089}
14090_ACEOF
14091if ac_fn_c_try_run "$LINENO"; then :
14092 gl_cv_func_isnanl_works=yes
14093else
14094 gl_cv_func_isnanl_works=no
14095fi
14096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14097 conftest.$ac_objext conftest.beam conftest.$ac_ext
14098fi
14099
14100
14101fi
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14103$as_echo "$gl_cv_func_isnanl_works" >&6; }
14104
14105 case "$gl_cv_func_isnanl_works" in
14106 *yes) ;;
14107 *) gl_func_isnanl_no_libm=no ;;
14108 esac
14109 fi
14110 if test $gl_func_isnanl_no_libm = yes; then
14111
14112$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14113
14114 fi
14115
14116 if test $gl_func_isnanl_no_libm != yes; then
14117
14118
14119
14120
14121
14122
14123
14124
14125 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14126
14127
14128
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14131$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14132if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14134else
14135
14136 if test "$cross_compiling" = yes; then :
14137
14138 gl_cv_cc_long_double_expbit0="unknown"
14139
14140else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142/* end confdefs.h. */
14143
14144#include <float.h>
14145#include <stddef.h>
14146#include <stdio.h>
14147#include <string.h>
14148#define NWORDS \
14149 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14150typedef union { long double value; unsigned int word[NWORDS]; }
14151 memory_long_double;
14152static unsigned int ored_words[NWORDS];
14153static unsigned int anded_words[NWORDS];
14154static void add_to_ored_words (long double x)
14155{
14156 memory_long_double m;
14157 size_t i;
14158 /* Clear it first, in case
14159 sizeof (long double) < sizeof (memory_long_double). */
14160 memset (&m, 0, sizeof (memory_long_double));
14161 m.value = x;
14162 for (i = 0; i < NWORDS; i++)
14163 {
14164 ored_words[i] |= m.word[i];
14165 anded_words[i] &= m.word[i];
14166 }
14167}
14168int main ()
14169{
14170 size_t j;
14171 FILE *fp = fopen ("conftest.out", "w");
14172 if (fp == NULL)
14173 return 1;
14174 for (j = 0; j < NWORDS; j++)
14175 anded_words[j] = ~ (unsigned int) 0;
14176 add_to_ored_words (0.25L);
14177 add_to_ored_words (0.5L);
14178 add_to_ored_words (1.0L);
14179 add_to_ored_words (2.0L);
14180 add_to_ored_words (4.0L);
14181 /* Remove bits that are common (e.g. if representation of the first mantissa
14182 bit is explicit). */
14183 for (j = 0; j < NWORDS; j++)
14184 ored_words[j] &= ~anded_words[j];
14185 /* Now find the nonzero word. */
14186 for (j = 0; j < NWORDS; j++)
14187 if (ored_words[j] != 0)
14188 break;
14189 if (j < NWORDS)
14190 {
14191 size_t i;
14192 for (i = j + 1; i < NWORDS; i++)
14193 if (ored_words[i] != 0)
14194 {
14195 fprintf (fp, "unknown");
14196 return (fclose (fp) != 0);
14197 }
14198 for (i = 0; ; i++)
14199 if ((ored_words[j] >> i) & 1)
14200 {
14201 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14202 return (fclose (fp) != 0);
14203 }
14204 }
14205 fprintf (fp, "unknown");
14206 return (fclose (fp) != 0);
14207}
14208
14209_ACEOF
14210if ac_fn_c_try_run "$LINENO"; then :
14211 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14212else
14213 gl_cv_cc_long_double_expbit0="unknown"
14214fi
14215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14216 conftest.$ac_objext conftest.beam conftest.$ac_ext
14217fi
14218
14219 rm -f conftest.out
14220
14221fi
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14223$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14224 case "$gl_cv_cc_long_double_expbit0" in
14225 word*bit*)
14226 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14227 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14228
14229cat >>confdefs.h <<_ACEOF
14230#define LDBL_EXPBIT0_WORD $word
14231_ACEOF
14232
14233
14234cat >>confdefs.h <<_ACEOF
14235#define LDBL_EXPBIT0_BIT $bit
14236_ACEOF
14237
14238 ;;
14239 esac
14240
14241
14242
14243 fi
14244
14245
14246
14247
88b48903
WN
14248
14249
14250
14251
2196f55f 14252
88b48903
WN
14253 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14254
14255
14256
14257
f45c62c4
YQ
14258 if test $ac_cv_func_lstat = yes; then
14259
14260 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14261 *no)
14262 REPLACE_LSTAT=1
14263 ;;
14264 esac
14265 else
14266 HAVE_LSTAT=0
14267 fi
14268
14269 if test $REPLACE_LSTAT = 1; then
14270
14271
14272
14273
14274
14275
14276
14277
14278 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14279
14280 :
14281 fi
14282
14283
14284
14285
14286
14287 GNULIB_LSTAT=1
14288
14289
14290
14291
14292
14293$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14294
14295
14296
14297
14298
14299
6a29c58e
YQ
14300 if test $gl_cv_func_malloc_posix = yes; then
14301
14302$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14303
14304 else
14305 REPLACE_MALLOC=1
14306 fi
14307
14308 if test $REPLACE_MALLOC = 1; then
14309
14310
14311
14312
14313
14314
14315
14316
14317 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14318
14319 fi
14320
14321
14322
14323
14324
14325 GNULIB_MALLOC_POSIX=1
14326
14327
14328
14329
14330
14331$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14332
14333
14334
14335
14336
14337
88b48903
WN
14338
14339
14340
14341
14342
88b48903 14343
c971b7fa 14344
c971b7fa 14345
98399780
YQ
14346
14347
14348
14349
88b48903
WN
14350 if test $gl_cv_have_include_next = yes; then
14351 gl_cv_next_math_h='<'math.h'>'
14352 else
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14354$as_echo_n "checking absolute name of <math.h>... " >&6; }
14355if test "${gl_cv_next_math_h+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14357else
c971b7fa 14358
88b48903 14359 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
14360
14361
4a626d0a
PA
14362
14363
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 14365/* end confdefs.h. */
88b48903 14366#include <math.h>
8690e634 14367_ACEOF
4a626d0a
PA
14368 case "$host_os" in
14369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14370 *) gl_absname_cpp="$ac_cpp" ;;
14371 esac
14372
14373 case "$host_os" in
14374 mingw*)
14375 gl_dirsep_regex='[/\\]'
14376 ;;
14377 *)
14378 gl_dirsep_regex='\/'
14379 ;;
14380 esac
14381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14382 gl_header_literal_regex=`echo 'math.h' \
14383 | sed -e "$gl_make_literal_regex_sed"`
14384 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14386 s|^/[^/]|//&|
14387 p
14388 q
14389 }'
14390
14391 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14392 sed -n "$gl_absolute_header_sed"`
14393
14394 gl_header=$gl_cv_absolute_math_h
14395 gl_cv_next_math_h='"'$gl_header'"'
88b48903
WN
14396 else
14397 gl_cv_next_math_h='<'math.h'>'
14398 fi
8690e634 14399
c971b7fa 14400
88b48903
WN
14401fi
14402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14403$as_echo "$gl_cv_next_math_h" >&6; }
14404 fi
14405 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 14406
88b48903
WN
14407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14409 gl_next_as_first_directive='<'math.h'>'
14410 else
14411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14412 gl_next_as_first_directive=$gl_cv_next_math_h
14413 fi
14414 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 14415
c971b7fa 14416
c971b7fa
PA
14417
14418
c971b7fa 14419
88b48903
WN
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14421$as_echo_n "checking whether NAN macro works... " >&6; }
14422if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
14423 $as_echo_n "(cached) " >&6
14424else
8690e634
JK
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426/* end confdefs.h. */
88b48903 14427#include <math.h>
c971b7fa
PA
14428int
14429main ()
14430{
88b48903
WN
14431/* Solaris 10 has a broken definition of NAN. Other platforms
14432 fail to provide NAN, or provide it only in C99 mode; this
14433 test only needs to fail when NAN is provided but wrong. */
14434 float f = 1.0f;
14435#ifdef NAN
14436 f = NAN;
14437#endif
14438 return f == 0;
c971b7fa
PA
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443if ac_fn_c_try_compile "$LINENO"; then :
88b48903 14444 gl_cv_header_math_nan_works=yes
8690e634 14445else
88b48903 14446 gl_cv_header_math_nan_works=no
c971b7fa
PA
14447fi
14448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14449fi
88b48903
WN
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14451$as_echo "$gl_cv_header_math_nan_works" >&6; }
14452 if test $gl_cv_header_math_nan_works = no; then
14453 REPLACE_NAN=1
c971b7fa 14454 fi
88b48903
WN
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14456$as_echo_n "checking whether HUGE_VAL works... " >&6; }
14457if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
14458 $as_echo_n "(cached) " >&6
14459else
8690e634 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 14461/* end confdefs.h. */
88b48903 14462#include <math.h>
c971b7fa
PA
14463int
14464main ()
14465{
88b48903
WN
14466/* Solaris 10 has a broken definition of HUGE_VAL. */
14467 double d = HUGE_VAL;
14468 return d == 0;
c971b7fa
PA
14469 ;
14470 return 0;
14471}
14472_ACEOF
14473if ac_fn_c_try_compile "$LINENO"; then :
88b48903 14474 gl_cv_header_math_huge_val_works=yes
8690e634 14475else
88b48903 14476 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
14477fi
14478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14479fi
88b48903
WN
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14481$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14482 if test $gl_cv_header_math_huge_val_works = no; then
14483 REPLACE_HUGE_VAL=1
8690e634 14484 fi
c971b7fa 14485
c971b7fa 14486
88b48903
WN
14487 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
14488 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14490$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14491if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
14492 $as_echo_n "(cached) " >&6
14493else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h. */
88b48903 14496#include <math.h>
8690e634
JK
14497int
14498main ()
14499{
88b48903
WN
14500#undef $gl_func
14501 (void) $gl_func;
8690e634
JK
14502 ;
14503 return 0;
14504}
14505_ACEOF
14506if ac_fn_c_try_compile "$LINENO"; then :
88b48903 14507 eval "$as_gl_Symbol=yes"
c971b7fa 14508else
88b48903 14509 eval "$as_gl_Symbol=no"
c971b7fa 14510fi
8690e634
JK
14511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512fi
88b48903
WN
14513eval ac_res=\$$as_gl_Symbol
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14515$as_echo "$ac_res" >&6; }
14516 eval as_val=\$$as_gl_Symbol
14517 if test "x$as_val" = x""yes; then :
14518 cat >>confdefs.h <<_ACEOF
14519#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14520_ACEOF
c971b7fa 14521
88b48903
WN
14522 eval ac_cv_have_decl_$gl_func=yes
14523fi
14524 done
c971b7fa
PA
14525
14526
14527
14528
14529
c971b7fa 14530
c971b7fa 14531
c971b7fa 14532
c971b7fa
PA
14533
14534
c971b7fa 14535
8690e634
JK
14536
14537 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14538
14539
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14542$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14543if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
14544 $as_echo_n "(cached) " >&6
14545else
8690e634
JK
14546
14547 case "$host_os" in
14548 # Guess no on AIX and OSF/1.
14549 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14550 # Guess yes otherwise.
14551 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14552 esac
14553 if test $LOCALE_JA != none; then
14554 if test "$cross_compiling" = yes; then :
14555 :
14556else
c971b7fa
PA
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h. */
c971b7fa 14559
8690e634
JK
14560#include <locale.h>
14561#include <string.h>
14562/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14563 <wchar.h>.
14564 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14565 included before <wchar.h>. */
14566#include <stddef.h>
14567#include <stdio.h>
14568#include <time.h>
14569#include <wchar.h>
14570int main ()
c971b7fa 14571{
8690e634
JK
14572 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14573 {
14574 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14575 mbstate_t state;
14576 wchar_t wc;
14577
14578 memset (&state, '\0', sizeof (mbstate_t));
14579 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14580 if (mbsinit (&state))
14581 return 1;
14582 }
c971b7fa
PA
14583 return 0;
14584}
14585_ACEOF
8690e634
JK
14586if ac_fn_c_try_run "$LINENO"; then :
14587 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 14588else
8690e634 14589 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 14590fi
8690e634
JK
14591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14592 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14593fi
c971b7fa 14594
8690e634 14595 fi
c971b7fa 14596
8690e634
JK
14597fi
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14599$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 14600
c971b7fa 14601
c971b7fa 14602
c971b7fa 14603
8690e634
JK
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14605$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14606if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
14607 $as_echo_n "(cached) " >&6
14608else
14609
8690e634
JK
14610 case "$host_os" in
14611 # Guess no on Solaris 8.
14612 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14613 # Guess yes otherwise.
14614 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14615 esac
14616 if test $LOCALE_ZH_CN != none; then
14617 if test "$cross_compiling" = yes; then :
14618 :
14619else
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14621/* end confdefs.h. */
14622
8690e634
JK
14623#include <locale.h>
14624#include <stdlib.h>
14625#include <string.h>
14626/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14627 <wchar.h>.
14628 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14629 included before <wchar.h>. */
14630#include <stddef.h>
14631#include <stdio.h>
14632#include <time.h>
14633#include <wchar.h>
14634int main ()
c971b7fa 14635{
8690e634
JK
14636 /* This fails on Solaris 8:
14637 mbrtowc returns 2, and sets wc to 0x00F0.
14638 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14639 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14640 {
14641 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14642 mbstate_t state;
14643 wchar_t wc;
14644
14645 memset (&state, '\0', sizeof (mbstate_t));
14646 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14647 && mbtowc (&wc, input + 3, 6) == 4)
14648 return 1;
14649 }
c971b7fa
PA
14650 return 0;
14651}
14652_ACEOF
8690e634
JK
14653if ac_fn_c_try_run "$LINENO"; then :
14654 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 14655else
8690e634 14656 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 14657fi
8690e634
JK
14658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14659 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14660fi
c971b7fa 14661
8690e634 14662 fi
c971b7fa 14663
8690e634
JK
14664fi
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14666$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14667
14668 REPLACE_MBSTATE_T=0
14669 case "$gl_cv_func_mbrtowc_incomplete_state" in
14670 *yes) ;;
14671 *) REPLACE_MBSTATE_T=1 ;;
14672 esac
14673 case "$gl_cv_func_mbrtowc_sanitycheck" in
14674 *yes) ;;
14675 *) REPLACE_MBSTATE_T=1 ;;
14676 esac
c971b7fa 14677 else
8690e634 14678 REPLACE_MBSTATE_T=1
c971b7fa
PA
14679 fi
14680
14681
14682
8690e634
JK
14683 if test $ac_cv_func_mbrtowc = no; then
14684 HAVE_MBRTOWC=0
14685 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14686/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14687 <wchar.h>.
14688 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14689 included before <wchar.h>. */
14690#include <stddef.h>
14691#include <stdio.h>
14692#include <time.h>
14693#include <wchar.h>
c971b7fa 14694
8690e634
JK
14695"
14696if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14697 ac_have_decl=1
14698else
14699 ac_have_decl=0
c971b7fa 14700fi
c971b7fa 14701
8690e634
JK
14702cat >>confdefs.h <<_ACEOF
14703#define HAVE_DECL_MBRTOWC $ac_have_decl
14704_ACEOF
c971b7fa 14705
8690e634
JK
14706 if test $ac_cv_have_decl_mbrtowc = yes; then
14707 REPLACE_MBRTOWC=1
14708 fi
14709 else
14710 if test $REPLACE_MBSTATE_T = 1; then
14711 REPLACE_MBRTOWC=1
14712 else
c971b7fa
PA
14713
14714
14715
8690e634
JK
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14717$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14718if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
c971b7fa 14720else
c971b7fa 14721
8690e634
JK
14722 case "$host_os" in
14723 # Guess no on Solaris.
14724 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14725 # Guess yes otherwise.
14726 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14727 esac
14728 if test $LOCALE_FR_UTF8 != none; then
14729 if test "$cross_compiling" = yes; then :
14730 :
14731else
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14733/* end confdefs.h. */
14734
8690e634
JK
14735#include <locale.h>
14736#include <stdlib.h>
14737#include <string.h>
14738/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14739 <wchar.h>.
14740 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14741 included before <wchar.h>. */
14742#include <stddef.h>
14743#include <stdio.h>
14744#include <time.h>
14745#include <wchar.h>
14746int main ()
14747{
14748 int result = 0;
14749
14750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14751 {
14752 char input[] = "\303\237er";
14753 mbstate_t state;
14754 wchar_t wc;
14755 size_t ret;
14756
14757 memset (&state, '\0', sizeof (mbstate_t));
14758 wc = (wchar_t) 0xBADFACE;
14759 ret = mbrtowc (&wc, input, 5, &state);
14760 if (ret != 2)
14761 result |= 1;
14762 if (!mbsinit (&state))
14763 result |= 2;
c971b7fa 14764
8690e634
JK
14765 memset (&state, '\0', sizeof (mbstate_t));
14766 ret = mbrtowc (NULL, input, 5, &state);
14767 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14768 result |= 4;
14769 if (!mbsinit (&state))
14770 result |= 8;
14771 }
14772 return result;
14773}
c971b7fa 14774_ACEOF
8690e634
JK
14775if ac_fn_c_try_run "$LINENO"; then :
14776 gl_cv_func_mbrtowc_null_arg1=yes
14777else
14778 gl_cv_func_mbrtowc_null_arg1=no
14779fi
14780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14781 conftest.$ac_objext conftest.beam conftest.$ac_ext
14782fi
c971b7fa 14783
8690e634 14784 fi
c971b7fa 14785
c971b7fa 14786fi
8690e634
JK
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14788$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 14789
c971b7fa 14790
c971b7fa 14791
c971b7fa 14792
8690e634
JK
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14794$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14795if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14797else
c971b7fa 14798
8690e634
JK
14799 case "$host_os" in
14800 # Guess no on OSF/1.
14801 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14802 # Guess yes otherwise.
14803 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14804 esac
14805 if test $LOCALE_FR_UTF8 != none; then
14806 if test "$cross_compiling" = yes; then :
c971b7fa 14807 :
8690e634
JK
14808else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h. */
14811
14812#include <locale.h>
14813#include <string.h>
14814/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14815 <wchar.h>.
14816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14817 included before <wchar.h>. */
14818#include <stddef.h>
14819#include <stdio.h>
14820#include <time.h>
14821#include <wchar.h>
14822int main ()
14823{
14824 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14825 {
14826 mbstate_t state;
14827 wchar_t wc;
14828 int ret;
14829
14830 memset (&state, '\0', sizeof (mbstate_t));
14831 wc = (wchar_t) 0xBADFACE;
14832 mbrtowc (&wc, NULL, 5, &state);
14833 /* Check that wc was not modified. */
14834 if (wc != (wchar_t) 0xBADFACE)
14835 return 1;
14836 }
14837 return 0;
14838}
14839_ACEOF
14840if ac_fn_c_try_run "$LINENO"; then :
14841 gl_cv_func_mbrtowc_null_arg2=yes
14842else
14843 gl_cv_func_mbrtowc_null_arg2=no
14844fi
14845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14846 conftest.$ac_objext conftest.beam conftest.$ac_ext
14847fi
14848
14849 fi
14850
14851fi
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14853$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
14854
14855
14856
14857
14858
14859
8690e634
JK
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14861$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14862if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864else
14865
14866 case "$host_os" in
14867 # Guess no on HP-UX, Solaris, native Windows.
14868 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14869 # Guess yes otherwise.
14870 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14871 esac
14872 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14873 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14874 if test "$cross_compiling" = yes; then :
c971b7fa 14875 :
8690e634
JK
14876else
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878/* end confdefs.h. */
c971b7fa 14879
8690e634
JK
14880#include <locale.h>
14881#include <string.h>
14882/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14883 <wchar.h>.
14884 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14885 included before <wchar.h>. */
14886#include <stddef.h>
14887#include <stdio.h>
14888#include <time.h>
14889#include <wchar.h>
14890int main ()
14891{
14892 int result = 0;
14893 int found_some_locale = 0;
14894 /* This fails on Solaris. */
14895 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14896 {
14897 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14898 mbstate_t state;
14899 wchar_t wc;
14900
14901 memset (&state, '\0', sizeof (mbstate_t));
14902 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14903 {
14904 input[1] = '\0';
14905 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14906 result |= 1;
14907 }
14908 found_some_locale = 1;
14909 }
14910 /* This fails on HP-UX 11.11. */
14911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14912 {
14913 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14914 mbstate_t state;
14915 wchar_t wc;
14916
14917 memset (&state, '\0', sizeof (mbstate_t));
14918 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14919 {
14920 input[1] = '\0';
14921 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14922 result |= 2;
14923 }
14924 found_some_locale = 1;
14925 }
14926 /* This fails on native Windows. */
14927 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14928 {
14929 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14930 mbstate_t state;
14931 wchar_t wc;
14932
14933 memset (&state, '\0', sizeof (mbstate_t));
14934 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14935 {
14936 input[3] = '\0';
14937 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14938 result |= 4;
14939 }
14940 found_some_locale = 1;
14941 }
14942 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14943 {
14944 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14945 mbstate_t state;
14946 wchar_t wc;
14947
14948 memset (&state, '\0', sizeof (mbstate_t));
14949 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14950 {
14951 input[3] = '\0';
14952 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14953 result |= 8;
14954 }
14955 found_some_locale = 1;
14956 }
14957 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14958 {
14959 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14960 mbstate_t state;
14961 wchar_t wc;
14962
14963 memset (&state, '\0', sizeof (mbstate_t));
14964 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14965 {
14966 input[3] = '\0';
14967 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14968 result |= 16;
14969 }
14970 found_some_locale = 1;
14971 }
14972 return (found_some_locale ? result : 77);
14973}
14974_ACEOF
14975if ac_fn_c_try_run "$LINENO"; then :
14976 gl_cv_func_mbrtowc_retval=yes
14977else
14978 if test $? != 77; then
14979 gl_cv_func_mbrtowc_retval=no
14980 fi
c971b7fa 14981
8690e634
JK
14982fi
14983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14984 conftest.$ac_objext conftest.beam conftest.$ac_ext
14985fi
c971b7fa 14986
8690e634 14987 fi
c971b7fa 14988
8690e634
JK
14989fi
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14991$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
14992
14993
14994
14995
8690e634
JK
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14997$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14998if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
14999 $as_echo_n "(cached) " >&6
15000else
8690e634
JK
15001
15002 case "$host_os" in
15003 # Guess no on Solaris 8 and 9.
15004 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15005 # Guess yes otherwise.
15006 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15007 esac
15008 if test $LOCALE_ZH_CN != none; then
15009 if test "$cross_compiling" = yes; then :
15010 :
c971b7fa
PA
15011else
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h. */
15014
8690e634 15015#include <locale.h>
c971b7fa 15016#include <string.h>
8690e634
JK
15017/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15018 <wchar.h>.
15019 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15020 included before <wchar.h>. */
15021#include <stddef.h>
15022#include <stdio.h>
15023#include <time.h>
15024#include <wchar.h>
15025int main ()
c971b7fa 15026{
8690e634
JK
15027 /* This fails on Solaris 8 and 9. */
15028 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 15029 {
8690e634
JK
15030 mbstate_t state;
15031 wchar_t wc;
c971b7fa 15032
8690e634
JK
15033 memset (&state, '\0', sizeof (mbstate_t));
15034 if (mbrtowc (&wc, "", 1, &state) != 0)
15035 return 1;
15036 }
c971b7fa
PA
15037 return 0;
15038}
15039_ACEOF
15040if ac_fn_c_try_run "$LINENO"; then :
8690e634 15041 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 15042else
8690e634 15043 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
15044fi
15045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15046 conftest.$ac_objext conftest.beam conftest.$ac_ext
15047fi
15048
8690e634
JK
15049 fi
15050
c971b7fa 15051fi
8690e634
JK
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15053$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15054
4a626d0a
PA
15055
15056
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15058$as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15059if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15061else
15062
15063 case "$host_os" in
15064 # Guess no on AIX and glibc systems.
15065 aix* | *-gnu*)
15066 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15067 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15068 esac
15069 if test "$cross_compiling" = yes; then :
15070 :
15071else
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h. */
15074
15075 #include <wchar.h>
15076 static wchar_t wc;
15077 static mbstate_t mbs;
15078 int
15079 main (void)
15080 {
15081 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15082 }
15083_ACEOF
15084if ac_fn_c_try_run "$LINENO"; then :
15085 gl_cv_func_mbrtowc_empty_input=no
15086else
15087 gl_cv_func_mbrtowc_empty_input=yes
15088fi
15089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15090 conftest.$ac_objext conftest.beam conftest.$ac_ext
15091fi
15092
15093
15094fi
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15096$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15097
8690e634
JK
15098 case "$gl_cv_func_mbrtowc_null_arg1" in
15099 *yes) ;;
15100 *)
15101$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15102
15103 REPLACE_MBRTOWC=1
15104 ;;
15105 esac
15106 case "$gl_cv_func_mbrtowc_null_arg2" in
15107 *yes) ;;
15108 *)
15109$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15110
15111 REPLACE_MBRTOWC=1
15112 ;;
15113 esac
15114 case "$gl_cv_func_mbrtowc_retval" in
15115 *yes) ;;
15116 *)
15117$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15118
15119 REPLACE_MBRTOWC=1
15120 ;;
15121 esac
15122 case "$gl_cv_func_mbrtowc_nul_retval" in
15123 *yes) ;;
15124 *)
15125$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15126
4a626d0a
PA
15127 REPLACE_MBRTOWC=1
15128 ;;
15129 esac
15130 case "$gl_cv_func_mbrtowc_empty_input" in
15131 *yes) ;;
15132 *)
15133$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15134
8690e634
JK
15135 REPLACE_MBRTOWC=1
15136 ;;
15137 esac
c971b7fa
PA
15138 fi
15139 fi
15140
a512b375 15141 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 15142
c971b7fa 15143
c971b7fa
PA
15144
15145
15146
15147
15148
15149
8690e634
JK
15150 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15151
15152
15153 :
c971b7fa 15154
a512b375 15155 fi
c971b7fa 15156
8690e634
JK
15157
15158
15159
15160
15161 GNULIB_MBRTOWC=1
15162
15163
15164
15165
15166
15167$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
c971b7fa 15180
c971b7fa 15181
8690e634 15182 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 15183
8690e634
JK
15184
15185
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15187$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15188if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15189 $as_echo_n "(cached) " >&6
15190else
15191
15192 case "$host_os" in
15193 # Guess no on AIX and OSF/1.
15194 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15195 # Guess yes otherwise.
15196 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15197 esac
15198 if test $LOCALE_JA != none; then
15199 if test "$cross_compiling" = yes; then :
15200 :
c971b7fa
PA
15201else
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h. */
15204
8690e634
JK
15205#include <locale.h>
15206#include <string.h>
15207/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15208 <wchar.h>.
15209 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15210 included before <wchar.h>. */
15211#include <stddef.h>
15212#include <stdio.h>
15213#include <time.h>
15214#include <wchar.h>
15215int main ()
c971b7fa 15216{
8690e634 15217 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 15218 {
8690e634
JK
15219 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15220 mbstate_t state;
15221 wchar_t wc;
15222
15223 memset (&state, '\0', sizeof (mbstate_t));
15224 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15225 if (mbsinit (&state))
15226 return 1;
c971b7fa 15227 }
c971b7fa
PA
15228 return 0;
15229}
15230_ACEOF
15231if ac_fn_c_try_run "$LINENO"; then :
8690e634 15232 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 15233else
8690e634 15234 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
15235fi
15236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15237 conftest.$ac_objext conftest.beam conftest.$ac_ext
15238fi
15239
8690e634 15240 fi
c971b7fa
PA
15241
15242fi
8690e634
JK
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15244$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
15245
15246
c971b7fa
PA
15247
15248
8690e634
JK
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15250$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15251if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
15252 $as_echo_n "(cached) " >&6
15253else
8690e634
JK
15254
15255 case "$host_os" in
15256 # Guess no on Solaris 8.
15257 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15258 # Guess yes otherwise.
15259 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15260 esac
15261 if test $LOCALE_ZH_CN != none; then
15262 if test "$cross_compiling" = yes; then :
15263 :
15264else
c971b7fa
PA
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266/* end confdefs.h. */
8690e634
JK
15267
15268#include <locale.h>
15269#include <stdlib.h>
15270#include <string.h>
15271/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15272 <wchar.h>.
15273 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15274 included before <wchar.h>. */
c971b7fa 15275#include <stddef.h>
8690e634
JK
15276#include <stdio.h>
15277#include <time.h>
15278#include <wchar.h>
15279int main ()
c971b7fa 15280{
8690e634
JK
15281 /* This fails on Solaris 8:
15282 mbrtowc returns 2, and sets wc to 0x00F0.
15283 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15284 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15285 {
15286 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15287 mbstate_t state;
15288 wchar_t wc;
15289
15290 memset (&state, '\0', sizeof (mbstate_t));
15291 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15292 && mbtowc (&wc, input + 3, 6) == 4)
15293 return 1;
15294 }
c971b7fa
PA
15295 return 0;
15296}
15297_ACEOF
8690e634
JK
15298if ac_fn_c_try_run "$LINENO"; then :
15299 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 15300else
8690e634 15301 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 15302fi
8690e634
JK
15303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15304 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15305fi
c971b7fa 15306
8690e634
JK
15307 fi
15308
15309fi
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15311$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 15312
8690e634
JK
15313 REPLACE_MBSTATE_T=0
15314 case "$gl_cv_func_mbrtowc_incomplete_state" in
15315 *yes) ;;
15316 *) REPLACE_MBSTATE_T=1 ;;
15317 esac
15318 case "$gl_cv_func_mbrtowc_sanitycheck" in
15319 *yes) ;;
15320 *) REPLACE_MBSTATE_T=1 ;;
15321 esac
15322 else
15323 REPLACE_MBSTATE_T=1
c971b7fa
PA
15324 fi
15325
c971b7fa 15326
8690e634 15327
8690e634
JK
15328 if test $ac_cv_func_mbsinit = no; then
15329 HAVE_MBSINIT=0
15330 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15331/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15332 <wchar.h>.
15333 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15334 included before <wchar.h>. */
15335#include <stddef.h>
15336#include <stdio.h>
15337#include <time.h>
15338#include <wchar.h>
15339
15340"
15341if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15342 ac_have_decl=1
15343else
15344 ac_have_decl=0
c971b7fa 15345fi
c971b7fa 15346
8690e634
JK
15347cat >>confdefs.h <<_ACEOF
15348#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 15349_ACEOF
c971b7fa 15350
8690e634
JK
15351 if test $ac_cv_have_decl_mbsinit = yes; then
15352 REPLACE_MBSINIT=1
15353 fi
15354 else
15355 if test $REPLACE_MBSTATE_T = 1; then
15356 REPLACE_MBSINIT=1
15357 else
15358 case "$host_os" in
15359 mingw*) REPLACE_MBSINIT=1 ;;
15360 esac
15361 fi
15362 fi
c971b7fa 15363
a512b375 15364 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
15365
15366
15367
15368
15369
15370
15371
15372
8690e634 15373 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
15374
15375
8690e634 15376 :
c971b7fa 15377
a512b375 15378 fi
c971b7fa 15379
c971b7fa 15380
c971b7fa 15381
c971b7fa
PA
15382
15383
8690e634 15384 GNULIB_MBSINIT=1
c971b7fa 15385
c971b7fa
PA
15386
15387
15388
15389
8690e634 15390$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
15391
15392
c971b7fa 15393
c971b7fa 15394
c971b7fa
PA
15395
15396
15397
c971b7fa 15398
c971b7fa
PA
15399
15400
15401
15402
8690e634
JK
15403
15404 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
15405
15406
15407
8690e634
JK
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15409$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15410if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15412else
c971b7fa 15413
8690e634
JK
15414 case "$host_os" in
15415 # Guess no on AIX and OSF/1.
15416 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15417 # Guess yes otherwise.
15418 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 15419 esac
8690e634
JK
15420 if test $LOCALE_JA != none; then
15421 if test "$cross_compiling" = yes; then :
15422 :
15423else
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 15425/* end confdefs.h. */
c971b7fa 15426
8690e634
JK
15427#include <locale.h>
15428#include <string.h>
15429/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15430 <wchar.h>.
15431 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15432 included before <wchar.h>. */
15433#include <stddef.h>
15434#include <stdio.h>
15435#include <time.h>
15436#include <wchar.h>
15437int main ()
15438{
15439 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15440 {
15441 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15442 mbstate_t state;
15443 wchar_t wc;
15444
15445 memset (&state, '\0', sizeof (mbstate_t));
15446 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15447 if (mbsinit (&state))
15448 return 1;
15449 }
c971b7fa
PA
15450 return 0;
15451}
15452_ACEOF
8690e634
JK
15453if ac_fn_c_try_run "$LINENO"; then :
15454 gl_cv_func_mbrtowc_incomplete_state=yes
15455else
15456 gl_cv_func_mbrtowc_incomplete_state=no
15457fi
15458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15459 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15460fi
c971b7fa 15461
8690e634 15462 fi
c971b7fa 15463
8690e634
JK
15464fi
15465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15466$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 15467
8690e634
JK
15468
15469
15470
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15472$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15473if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
15474 $as_echo_n "(cached) " >&6
15475else
8690e634
JK
15476
15477 case "$host_os" in
15478 # Guess no on Solaris 8.
15479 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15480 # Guess yes otherwise.
15481 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15482 esac
15483 if test $LOCALE_ZH_CN != none; then
15484 if test "$cross_compiling" = yes; then :
15485 :
15486else
c971b7fa
PA
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488/* end confdefs.h. */
c971b7fa 15489
8690e634
JK
15490#include <locale.h>
15491#include <stdlib.h>
15492#include <string.h>
15493/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15494 <wchar.h>.
15495 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15496 included before <wchar.h>. */
15497#include <stddef.h>
15498#include <stdio.h>
15499#include <time.h>
15500#include <wchar.h>
15501int main ()
c971b7fa 15502{
8690e634
JK
15503 /* This fails on Solaris 8:
15504 mbrtowc returns 2, and sets wc to 0x00F0.
15505 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15506 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15507 {
15508 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15509 mbstate_t state;
15510 wchar_t wc;
15511
15512 memset (&state, '\0', sizeof (mbstate_t));
15513 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15514 && mbtowc (&wc, input + 3, 6) == 4)
15515 return 1;
15516 }
c971b7fa
PA
15517 return 0;
15518}
15519_ACEOF
8690e634
JK
15520if ac_fn_c_try_run "$LINENO"; then :
15521 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 15522else
8690e634 15523 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 15524fi
8690e634
JK
15525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15526 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15527fi
8690e634
JK
15528
15529 fi
15530
15531fi
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15533$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15534
15535 REPLACE_MBSTATE_T=0
15536 case "$gl_cv_func_mbrtowc_incomplete_state" in
15537 *yes) ;;
15538 *) REPLACE_MBSTATE_T=1 ;;
15539 esac
15540 case "$gl_cv_func_mbrtowc_sanitycheck" in
15541 *yes) ;;
15542 *) REPLACE_MBSTATE_T=1 ;;
15543 esac
c971b7fa 15544 else
8690e634 15545 REPLACE_MBSTATE_T=1
c971b7fa
PA
15546 fi
15547
15548
c971b7fa 15549
8690e634
JK
15550 if test $ac_cv_func_mbsrtowcs = no; then
15551 HAVE_MBSRTOWCS=0
15552 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15553/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15554 <wchar.h>.
15555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15556 included before <wchar.h>. */
15557#include <stddef.h>
15558#include <stdio.h>
15559#include <time.h>
15560#include <wchar.h>
15561
15562"
15563if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15564 ac_have_decl=1
c971b7fa 15565else
8690e634 15566 ac_have_decl=0
c971b7fa 15567fi
c971b7fa 15568
8690e634
JK
15569cat >>confdefs.h <<_ACEOF
15570#define HAVE_DECL_MBSRTOWCS $ac_have_decl
15571_ACEOF
c971b7fa 15572
8690e634
JK
15573 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15574 REPLACE_MBSRTOWCS=1
15575 fi
c971b7fa 15576 else
8690e634
JK
15577 if test $REPLACE_MBSTATE_T = 1; then
15578 REPLACE_MBSRTOWCS=1
15579 else
c971b7fa 15580
8690e634
JK
15581
15582
15583
15584
15585
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15587$as_echo_n "checking whether mbsrtowcs works... " >&6; }
15588if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
15589 $as_echo_n "(cached) " >&6
15590else
8690e634
JK
15591
15592 case "$host_os" in
15593 # Guess no on HP-UX, Solaris, mingw.
15594 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15595 # Guess yes otherwise.
15596 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15597 esac
15598 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15599 if test "$cross_compiling" = yes; then :
15600 :
15601else
c971b7fa
PA
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603/* end confdefs.h. */
c971b7fa 15604
8690e634
JK
15605#include <locale.h>
15606#include <string.h>
15607/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15608 <wchar.h>.
15609 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15610 included before <wchar.h>. */
15611#include <stddef.h>
15612#include <stdio.h>
15613#include <time.h>
15614#include <wchar.h>
15615int main ()
c971b7fa 15616{
8690e634
JK
15617 int result = 0;
15618 /* Test whether the function supports a NULL destination argument.
15619 This fails on native Windows. */
15620 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15621 {
15622 const char input[] = "\337er";
15623 const char *src = input;
15624 mbstate_t state;
c971b7fa 15625
8690e634
JK
15626 memset (&state, '\0', sizeof (mbstate_t));
15627 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15628 || src != input)
15629 result |= 1;
15630 }
15631 /* Test whether the function works when started with a conversion state
15632 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15633 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15634 {
15635 const char input[] = "B\303\274\303\237er";
15636 mbstate_t state;
15637
15638 memset (&state, '\0', sizeof (mbstate_t));
15639 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15640 if (!mbsinit (&state))
15641 {
15642 const char *src = input + 2;
15643 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15644 result |= 2;
15645 }
15646 }
15647 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15648 {
15649 const char input[] = "<\306\374\313\334\270\354>";
15650 mbstate_t state;
15651
15652 memset (&state, '\0', sizeof (mbstate_t));
15653 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15654 if (!mbsinit (&state))
15655 {
15656 const char *src = input + 4;
15657 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15658 result |= 4;
15659 }
15660 }
15661 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15662 {
15663 const char input[] = "B\250\271\201\060\211\070er";
15664 mbstate_t state;
15665
15666 memset (&state, '\0', sizeof (mbstate_t));
15667 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15668 if (!mbsinit (&state))
15669 {
15670 const char *src = input + 2;
15671 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15672 result |= 8;
15673 }
15674 }
15675 return result;
c971b7fa
PA
15676}
15677_ACEOF
8690e634
JK
15678if ac_fn_c_try_run "$LINENO"; then :
15679 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 15680else
8690e634 15681 gl_cv_func_mbsrtowcs_works=no
c971b7fa 15682fi
8690e634
JK
15683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15684 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 15685fi
8690e634
JK
15686
15687 fi
15688
15689fi
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15691$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15692
15693 case "$gl_cv_func_mbsrtowcs_works" in
15694 *yes) ;;
15695 *) REPLACE_MBSRTOWCS=1 ;;
15696 esac
15697 fi
c971b7fa
PA
15698 fi
15699
a512b375 15700 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 15701
c971b7fa 15702
c971b7fa 15703
c971b7fa 15704
c971b7fa 15705
c971b7fa 15706
c971b7fa
PA
15707
15708
8690e634
JK
15709 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15720
15721
15722 :
15723
a512b375 15724 fi
8690e634
JK
15725
15726
15727
15728
15729
15730 GNULIB_MBSRTOWCS=1
15731
15732
15733
15734
15735
15736$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
15737
15738
15739
15740
a512b375 15741 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
15742
15743
15744
15745
15746
15747
15748
15749
15750 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15751
15752
15753 for ac_header in bp-sym.h
15754do :
15755 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15756if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15757 cat >>confdefs.h <<_ACEOF
15758#define HAVE_BP_SYM_H 1
15759_ACEOF
15760
15761fi
15762
15763done
15764
15765
a512b375 15766 fi
c971b7fa
PA
15767
15768
15769
15770
15771
15772 GNULIB_MEMCHR=1
15773
15774
15775
15776
15777
15778$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15779
15780
15781
15782
15783
15784 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15786$as_echo_n "checking whether memmem works in linear time... " >&6; }
15787if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15789else
15790 if test "$cross_compiling" = yes; then :
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792/* end confdefs.h. */
15793
15794#include <features.h>
15795#ifdef __GNU_LIBRARY__
15796 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15797 && !defined __UCLIBC__
15798 Lucky user
15799 #endif
15800#endif
15801#ifdef __CYGWIN__
15802 #include <cygwin/version.h>
15803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15804 Lucky user
15805 #endif
15806#endif
15807
15808_ACEOF
15809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15810 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
15811 gl_cv_func_memmem_works_fast="guessing yes"
15812else
15813 gl_cv_func_memmem_works_fast="guessing no"
15814fi
15815rm -f conftest*
15816
15817
15818else
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h. */
15821
15822#include <signal.h> /* for signal */
15823#include <string.h> /* for memmem */
15824#include <stdlib.h> /* for malloc */
15825#include <unistd.h> /* for alarm */
15826static void quit (int sig) { exit (sig + 128); }
15827
15828int
15829main ()
15830{
15831
15832 int result = 0;
15833 size_t m = 1000000;
15834 char *haystack = (char *) malloc (2 * m + 1);
15835 char *needle = (char *) malloc (m + 1);
15836 /* Failure to compile this test due to missing alarm is okay,
15837 since all such platforms (mingw) also lack memmem. */
15838 signal (SIGALRM, quit);
15839 alarm (5);
15840 /* Check for quadratic performance. */
15841 if (haystack && needle)
15842 {
15843 memset (haystack, 'A', 2 * m);
15844 haystack[2 * m] = 'B';
15845 memset (needle, 'A', m);
15846 needle[m] = 'B';
15847 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15848 result |= 1;
15849 }
15850 return result;
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856if ac_fn_c_try_run "$LINENO"; then :
15857 gl_cv_func_memmem_works_fast=yes
15858else
15859 gl_cv_func_memmem_works_fast=no
15860fi
15861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15862 conftest.$ac_objext conftest.beam conftest.$ac_ext
15863fi
15864
15865
15866fi
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15868$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15869 case "$gl_cv_func_memmem_works_fast" in
15870 *yes) ;;
15871 *)
15872 REPLACE_MEMMEM=1
15873 ;;
15874 esac
15875 fi
15876
15877 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15878
15879
15880
15881
15882
15883
15884
15885
15886 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15887
15888 fi
15889
15890
15891
15892
15893 for ac_func in memmem
15894do :
15895 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15896if test "x$ac_cv_func_memmem" = x""yes; then :
15897 cat >>confdefs.h <<_ACEOF
15898#define HAVE_MEMMEM 1
15899_ACEOF
15900
15901fi
15902done
15903
15904 if test $ac_cv_func_memmem = yes; then
15905 HAVE_MEMMEM=1
15906 else
15907 HAVE_MEMMEM=0
15908 fi
15909
15910 if test $ac_cv_have_decl_memmem = no; then
15911 HAVE_DECL_MEMMEM=0
15912 else
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15914$as_echo_n "checking whether memmem works... " >&6; }
15915if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15917else
15918 if test "$cross_compiling" = yes; then :
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h. */
15921
15922#ifdef __GNU_LIBRARY__
15923 #include <features.h>
15924 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15925 || __GLIBC_MINOR__ > 12)) \
15926 || (__GLIBC__ > 2)) \
15927 || defined __UCLIBC__
15928 Lucky user
15929 #endif
15930#elif defined __CYGWIN__
15931 #include <cygwin/version.h>
15932 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15933 Lucky user
15934 #endif
15935#else
15936 Lucky user
15937#endif
15938
15939_ACEOF
15940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15941 $EGREP "Lucky user" >/dev/null 2>&1; then :
15942 gl_cv_func_memmem_works_always="guessing yes"
15943else
15944 gl_cv_func_memmem_works_always="guessing no"
15945fi
15946rm -f conftest*
15947
15948
15949else
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h. */
15952
15953#include <string.h> /* for memmem */
15954#define P "_EF_BF_BD"
15955#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15956#define NEEDLE P P P P P
15957
15958int
15959main ()
15960{
15961
15962 int result = 0;
15963 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15964 result |= 1;
15965 /* Check for empty needle behavior. */
15966 {
15967 const char *haystack = "AAA";
15968 if (memmem (haystack, 3, NULL, 0) != haystack)
15969 result |= 2;
15970 }
15971 return result;
15972
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977if ac_fn_c_try_run "$LINENO"; then :
15978 gl_cv_func_memmem_works_always=yes
15979else
15980 gl_cv_func_memmem_works_always=no
15981fi
15982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15983 conftest.$ac_objext conftest.beam conftest.$ac_ext
15984fi
15985
15986
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15989$as_echo "$gl_cv_func_memmem_works_always" >&6; }
15990 case "$gl_cv_func_memmem_works_always" in
15991 *yes) ;;
15992 *)
15993 REPLACE_MEMMEM=1
15994 ;;
15995 esac
15996 fi
15997 :
15998
15999 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16000
16001
16002
16003
16004
16005
16006
16007
16008 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16009
16010 fi
16011
16012
16013
16014
16015
16016 GNULIB_MEMMEM=1
16017
16018
16019
16020
16021
16022$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16023
16024
16025
16026
16027
16028
16029
16030
2196f55f
YQ
16031
16032
16033 if test $ac_cv_func_readlink = no; then
16034 HAVE_READLINK=0
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16037$as_echo_n "checking whether readlink signature is correct... " >&6; }
16038if test "${gl_cv_decl_readlink_works+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h. */
16043#include <unistd.h>
16044 /* Cause compilation failure if original declaration has wrong type. */
16045 ssize_t readlink (const char *, char *, size_t);
16046int
16047main ()
16048{
16049
16050 ;
16051 return 0;
16052}
16053_ACEOF
16054if ac_fn_c_try_compile "$LINENO"; then :
16055 gl_cv_decl_readlink_works=yes
16056else
16057 gl_cv_decl_readlink_works=no
16058fi
16059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060fi
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16062$as_echo "$gl_cv_decl_readlink_works" >&6; }
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16064$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16065if test "${gl_cv_func_readlink_works+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16067else
16068 # We have readlink, so assume ln -s works.
16069 ln -s conftest.no-such conftest.link
16070 ln -s conftest.link conftest.lnk2
16071 if test "$cross_compiling" = yes; then :
16072 case "$host_os" in
16073 # Guess yes on glibc systems.
16074 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16075 # If we don't know, assume the worst.
16076 *) gl_cv_func_readlink_works="guessing no" ;;
16077 esac
16078
16079else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081/* end confdefs.h. */
16082#include <unistd.h>
16083
16084int
16085main ()
16086{
16087char buf[20];
16088 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093if ac_fn_c_try_run "$LINENO"; then :
16094 gl_cv_func_readlink_works=yes
16095else
16096 gl_cv_func_readlink_works=no
16097fi
16098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16099 conftest.$ac_objext conftest.beam conftest.$ac_ext
16100fi
16101
16102 rm -f conftest.link conftest.lnk2
16103fi
16104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16105$as_echo "$gl_cv_func_readlink_works" >&6; }
16106 case "$gl_cv_func_readlink_works" in
16107 *yes)
16108 if test "$gl_cv_decl_readlink_works" != yes; then
16109 REPLACE_READLINK=1
16110 fi
16111 ;;
16112 *)
16113
16114$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16115
16116 REPLACE_READLINK=1
16117 ;;
16118 esac
16119 fi
16120
16121 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16122
16123
16124
16125
16126
16127
16128
16129
16130 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16131
16132
16133 :
16134
16135 fi
16136
16137
16138
16139
16140
16141 GNULIB_READLINK=1
16142
16143
16144
16145
16146
16147$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16148
16149
16150
16151
6a29c58e
YQ
16152
16153
16154
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16157$as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16158if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16159 $as_echo_n "(cached) " >&6
16160else
16161 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16162 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16163 as_fn_error "cannot create temporary files" "$LINENO" 5
16164 # Assume that if we have lstat, we can also check symlinks.
16165 if test $ac_cv_func_lstat = yes; then
16166 ln -s conftest.f conftest.lnk
16167 fi
16168 if test "$cross_compiling" = yes; then :
16169 case "$host_os" in
16170 # Guess yes on glibc systems.
16171 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16172 # If we don't know, assume the worst.
16173 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16174 esac
16175
16176else
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h. */
16179
16180# include <stdio.h>
16181# include <stdlib.h>
16182
16183int
16184main ()
16185{
16186int result = 0;
16187 if (rename ("conftest.f1", "conftest.f2/") == 0)
16188 result |= 1;
16189 if (rename ("conftest.d1", "conftest.d2/") != 0)
16190 result |= 2;
16191#if HAVE_LSTAT
16192 if (rename ("conftest.f", "conftest.lnk/") == 0)
16193 result |= 4;
16194#endif
16195 return result;
16196
16197 ;
16198 return 0;
16199}
16200_ACEOF
16201if ac_fn_c_try_run "$LINENO"; then :
16202 gl_cv_func_rename_slash_dst_works=yes
16203else
16204 gl_cv_func_rename_slash_dst_works=no
16205fi
16206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16207 conftest.$ac_objext conftest.beam conftest.$ac_ext
16208fi
16209
16210 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16211
16212fi
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16214$as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16215 case "$gl_cv_func_rename_slash_dst_works" in
16216 *yes) ;;
16217 *)
16218 REPLACE_RENAME=1
16219
16220$as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16221
16222 ;;
16223 esac
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16226$as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16227if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16228 $as_echo_n "(cached) " >&6
16229else
16230 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16231 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16232 as_fn_error "cannot create temporary files" "$LINENO" 5
16233 # Assume that if we have lstat, we can also check symlinks.
16234 if test $ac_cv_func_lstat = yes; then
16235 ln -s conftest.f conftest.lnk
16236 fi
16237 if test "$cross_compiling" = yes; then :
16238 case "$host_os" in
16239 # Guess yes on glibc systems.
16240 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16241 # If we don't know, assume the worst.
16242 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16243 esac
16244
16245else
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247/* end confdefs.h. */
16248
16249# include <stdio.h>
16250# include <stdlib.h>
16251
16252int
16253main ()
16254{
16255int result = 0;
16256 if (rename ("conftest.f1/", "conftest.d3") == 0)
16257 result |= 1;
16258 if (rename ("conftest.d1/", "conftest.d2") != 0)
16259 result |= 2;
16260#if HAVE_LSTAT
16261 if (rename ("conftest.lnk/", "conftest.f") == 0)
16262 result |= 4;
16263#endif
16264 return result;
16265
16266 ;
16267 return 0;
16268}
16269_ACEOF
16270if ac_fn_c_try_run "$LINENO"; then :
16271 gl_cv_func_rename_slash_src_works=yes
16272else
16273 gl_cv_func_rename_slash_src_works=no
16274fi
16275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276 conftest.$ac_objext conftest.beam conftest.$ac_ext
16277fi
16278
16279 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16280
16281fi
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16283$as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16284 case "$gl_cv_func_rename_slash_src_works" in
16285 *yes) ;;
16286 *)
16287 REPLACE_RENAME=1
16288
16289$as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16290
16291 ;;
16292 esac
16293
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16296$as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16297if test "${gl_cv_func_rename_link_works+set}" = set; then :
16298 $as_echo_n "(cached) " >&6
16299else
16300 if test $ac_cv_func_link = yes; then
16301 rm -rf conftest.f conftest.f1
16302 if touch conftest.f && ln conftest.f conftest.f1 &&
16303 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
16304 if test "$cross_compiling" = yes; then :
16305 case "$host_os" in
16306 # Guess yes on glibc systems.
16307 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16308 # If we don't know, assume the worst.
16309 *) gl_cv_func_rename_link_works="guessing no" ;;
16310 esac
16311
16312else
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h. */
16315
16316# include <stdio.h>
16317# include <stdlib.h>
16318# include <unistd.h>
16319
16320int
16321main ()
16322{
16323int result = 0;
16324 if (rename ("conftest.f", "conftest.f1"))
16325 result |= 1;
16326 if (unlink ("conftest.f1"))
16327 result |= 2;
16328 if (rename ("conftest.f", "conftest.f"))
16329 result |= 4;
16330 if (rename ("conftest.f1", "conftest.f1") == 0)
16331 result |= 8;
16332 return result;
16333
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_run "$LINENO"; then :
16339 gl_cv_func_rename_link_works=yes
16340else
16341 gl_cv_func_rename_link_works=no
16342fi
16343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16344 conftest.$ac_objext conftest.beam conftest.$ac_ext
16345fi
16346
16347 else
16348 gl_cv_func_rename_link_works="guessing no"
16349 fi
16350 rm -rf conftest.f conftest.f1
16351 else
16352 gl_cv_func_rename_link_works=yes
16353 fi
16354
16355fi
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16357$as_echo "$gl_cv_func_rename_link_works" >&6; }
16358 case "$gl_cv_func_rename_link_works" in
16359 *yes) ;;
16360 *)
16361 REPLACE_RENAME=1
16362
16363$as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16364
16365 ;;
16366 esac
16367
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16369$as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16370if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16371 $as_echo_n "(cached) " >&6
16372else
16373 rm -rf conftest.f conftest.d1 conftest.d2
16374 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16375 as_fn_error "cannot create temporary files" "$LINENO" 5
16376 if test "$cross_compiling" = yes; then :
16377 case "$host_os" in
16378 # Guess yes on glibc systems.
16379 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16380 # If we don't know, assume the worst.
16381 *) gl_cv_func_rename_dest_works="guessing no" ;;
16382 esac
16383
16384else
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386/* end confdefs.h. */
16387
16388# include <stdio.h>
16389# include <stdlib.h>
16390
16391int
16392main ()
16393{
16394int result = 0;
16395 if (rename ("conftest.d1", "conftest.d2") != 0)
16396 result |= 1;
16397 if (rename ("conftest.d2", "conftest.f") == 0)
16398 result |= 2;
16399 return result;
16400
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405if ac_fn_c_try_run "$LINENO"; then :
16406 gl_cv_func_rename_dest_works=yes
16407else
16408 gl_cv_func_rename_dest_works=no
16409fi
16410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16411 conftest.$ac_objext conftest.beam conftest.$ac_ext
16412fi
16413
16414 rm -rf conftest.f conftest.d1 conftest.d2
16415
16416fi
16417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16418$as_echo "$gl_cv_func_rename_dest_works" >&6; }
16419 case "$gl_cv_func_rename_dest_works" in
16420 *yes) ;;
16421 *)
16422 REPLACE_RENAME=1
16423
16424$as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16425
16426 ;;
16427 esac
16428
16429 if test $REPLACE_RENAME = 1; then
16430
16431
16432
16433
16434
16435
16436
16437
16438 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16439
16440 fi
16441
16442
16443
16444
16445
16446 GNULIB_RENAME=1
16447
16448
16449
16450
16451
16452$as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16453
16454
16455
16456
16457
16458
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16460$as_echo_n "checking whether rmdir works... " >&6; }
16461if test "${gl_cv_func_rmdir_works+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16463else
16464 mkdir conftest.dir
16465 touch conftest.file
16466 if test "$cross_compiling" = yes; then :
16467 case "$host_os" in
16468 # Guess yes on glibc systems.
16469 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16470 # If we don't know, assume the worst.
16471 *) gl_cv_func_rmdir_works="guessing no" ;;
16472 esac
16473
16474else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476/* end confdefs.h. */
16477#include <stdio.h>
16478 #include <errno.h>
16479 #if HAVE_UNISTD_H
16480 # include <unistd.h>
16481 #else /* on Windows with MSVC */
16482 # include <direct.h>
16483 #endif
16484
16485int
16486main ()
16487{
16488int result = 0;
16489 if (!rmdir ("conftest.file/"))
16490 result |= 1;
16491 else if (errno != ENOTDIR)
16492 result |= 2;
16493 if (!rmdir ("conftest.dir/./"))
16494 result |= 4;
16495 return result;
16496
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501if ac_fn_c_try_run "$LINENO"; then :
16502 gl_cv_func_rmdir_works=yes
16503else
16504 gl_cv_func_rmdir_works=no
16505fi
16506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16507 conftest.$ac_objext conftest.beam conftest.$ac_ext
16508fi
16509
16510 rm -rf conftest.dir conftest.file
16511fi
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16513$as_echo "$gl_cv_func_rmdir_works" >&6; }
16514 case "$gl_cv_func_rmdir_works" in
16515 *yes) ;;
16516 *)
16517 REPLACE_RMDIR=1
16518 ;;
16519 esac
16520
16521 if test $REPLACE_RMDIR = 1; then
16522
16523
16524
16525
16526
16527
16528
16529
16530 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16531
16532 fi
16533
16534
16535
16536
16537
16538 GNULIB_RMDIR=1
16539
16540
16541
16542
16543
16544$as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16545
16546
16547
16548
63ce7108
TT
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16550$as_echo_n "checking for ssize_t... " >&6; }
16551if test "${gt_cv_ssize_t+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16553else
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555/* end confdefs.h. */
16556#include <sys/types.h>
16557int
16558main ()
16559{
16560int x = sizeof (ssize_t *) + sizeof (ssize_t);
16561 return !x;
16562 ;
16563 return 0;
16564}
16565_ACEOF
16566if ac_fn_c_try_compile "$LINENO"; then :
16567 gt_cv_ssize_t=yes
16568else
16569 gt_cv_ssize_t=no
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572fi
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16574$as_echo "$gt_cv_ssize_t" >&6; }
16575 if test $gt_cv_ssize_t = no; then
16576
16577$as_echo "#define ssize_t int" >>confdefs.h
16578
16579 fi
16580
16581
16582
16583
2196f55f
YQ
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16585$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16586if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16588else
16589 if test "$cross_compiling" = yes; then :
16590 case $host_os in
16591 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16592 *) gl_cv_func_stat_dir_slash="guessing yes";;
16593 esac
16594else
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596/* end confdefs.h. */
16597#include <sys/stat.h>
16598
16599int
16600main ()
16601{
16602struct stat st; return stat (".", &st) != stat ("./", &st);
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607if ac_fn_c_try_run "$LINENO"; then :
16608 gl_cv_func_stat_dir_slash=yes
16609else
16610 gl_cv_func_stat_dir_slash=no
16611fi
16612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16613 conftest.$ac_objext conftest.beam conftest.$ac_ext
16614fi
16615
16616fi
16617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16618$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16620$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16621if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16622 $as_echo_n "(cached) " >&6
16623else
16624 touch conftest.tmp
16625 # Assume that if we have lstat, we can also check symlinks.
16626 if test $ac_cv_func_lstat = yes; then
16627 ln -s conftest.tmp conftest.lnk
16628 fi
16629 if test "$cross_compiling" = yes; then :
16630 case "$host_os" in
16631 # Guess yes on glibc systems.
16632 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16633 # If we don't know, assume the worst.
16634 *) gl_cv_func_stat_file_slash="guessing no" ;;
16635 esac
16636
16637else
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h. */
16640#include <sys/stat.h>
16641
16642int
16643main ()
16644{
16645int result = 0;
16646 struct stat st;
16647 if (!stat ("conftest.tmp/", &st))
16648 result |= 1;
16649#if HAVE_LSTAT
16650 if (!stat ("conftest.lnk/", &st))
16651 result |= 2;
16652#endif
16653 return result;
16654
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659if ac_fn_c_try_run "$LINENO"; then :
16660 gl_cv_func_stat_file_slash=yes
16661else
16662 gl_cv_func_stat_file_slash=no
16663fi
16664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16665 conftest.$ac_objext conftest.beam conftest.$ac_ext
16666fi
16667
16668 rm -f conftest.tmp conftest.lnk
16669fi
16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16671$as_echo "$gl_cv_func_stat_file_slash" >&6; }
16672 case $gl_cv_func_stat_dir_slash in
16673 *no) REPLACE_STAT=1
16674
16675$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16676;;
16677 esac
16678 case $gl_cv_func_stat_file_slash in
16679 *no) REPLACE_STAT=1
16680
16681$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16682;;
16683 esac
16684
16685 if test $REPLACE_STAT = 1; then
16686
16687
16688
16689
16690
16691
16692
16693
16694 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16695
16696 :
16697 fi
16698
16699
16700
16701
16702
16703 GNULIB_STAT=1
16704
16705
16706
16707
16708
16709$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
16710
16711
16712
16713
16714
16715
63ce7108
TT
16716 # Define two additional variables used in the Makefile substitution.
16717
16718 if test "$ac_cv_header_stdbool_h" = yes; then
16719 STDBOOL_H=''
16720 else
16721 STDBOOL_H='stdbool.h'
16722 fi
16723
16724 if test -n "$STDBOOL_H"; then
16725 GL_GENERATE_STDBOOL_H_TRUE=
16726 GL_GENERATE_STDBOOL_H_FALSE='#'
16727else
16728 GL_GENERATE_STDBOOL_H_TRUE='#'
16729 GL_GENERATE_STDBOOL_H_FALSE=
16730fi
16731
16732
16733 if test "$ac_cv_type__Bool" = yes; then
16734 HAVE__BOOL=1
16735 else
16736 HAVE__BOOL=0
16737 fi
16738
16739
16740
16741
16742
16743 STDDEF_H=
4a626d0a
PA
16744 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
16745
16746"
16747if test "x$ac_cv_type_max_align_t" = x""yes; then :
16748
16749else
16750 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
16751fi
16752
63ce7108
TT
16753 if test $gt_cv_c_wchar_t = no; then
16754 HAVE_WCHAR_T=0
16755 STDDEF_H=stddef.h
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16758$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16759if test "${gl_cv_decl_null_works+set}" = set; then :
16760 $as_echo_n "(cached) " >&6
16761else
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h. */
16764#include <stddef.h>
16765 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16766
16767int
16768main ()
16769{
16770
16771 ;
16772 return 0;
16773}
16774_ACEOF
16775if ac_fn_c_try_compile "$LINENO"; then :
16776 gl_cv_decl_null_works=yes
16777else
16778 gl_cv_decl_null_works=no
16779fi
16780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781fi
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16783$as_echo "$gl_cv_decl_null_works" >&6; }
16784 if test $gl_cv_decl_null_works = no; then
16785 REPLACE_NULL=1
16786 STDDEF_H=stddef.h
16787 fi
16788
16789 if test -n "$STDDEF_H"; then
16790 GL_GENERATE_STDDEF_H_TRUE=
16791 GL_GENERATE_STDDEF_H_FALSE='#'
16792else
16793 GL_GENERATE_STDDEF_H_TRUE='#'
16794 GL_GENERATE_STDDEF_H_FALSE=
16795fi
16796
16797 if test -n "$STDDEF_H"; then
16798
16799
16800
16801
16802
16803
16804
16805
16806 if test $gl_cv_have_include_next = yes; then
16807 gl_cv_next_stddef_h='<'stddef.h'>'
16808 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16810$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16811if test "${gl_cv_next_stddef_h+set}" = set; then :
16812 $as_echo_n "(cached) " >&6
16813else
16814
4a626d0a
PA
16815
16816
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63ce7108
TT
16818/* end confdefs.h. */
16819#include <stddef.h>
63ce7108 16820_ACEOF
4a626d0a
PA
16821 case "$host_os" in
16822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16823 *) gl_absname_cpp="$ac_cpp" ;;
16824 esac
63ce7108 16825
4a626d0a
PA
16826 case "$host_os" in
16827 mingw*)
16828 gl_dirsep_regex='[/\\]'
16829 ;;
16830 *)
16831 gl_dirsep_regex='\/'
16832 ;;
16833 esac
16834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16835 gl_header_literal_regex=`echo 'stddef.h' \
16836 | sed -e "$gl_make_literal_regex_sed"`
16837 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16838 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16839 s|^/[^/]|//&|
16840 p
16841 q
16842 }'
63ce7108 16843
4a626d0a
PA
16844 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16845 sed -n "$gl_absolute_header_sed"`
16846
16847 gl_header=$gl_cv_absolute_stddef_h
16848 gl_cv_next_stddef_h='"'$gl_header'"'
63ce7108
TT
16849
16850
16851fi
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16853$as_echo "$gl_cv_next_stddef_h" >&6; }
16854 fi
16855 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16856
16857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16859 gl_next_as_first_directive='<'stddef.h'>'
16860 else
16861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16862 gl_next_as_first_directive=$gl_cv_next_stddef_h
16863 fi
16864 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16865
16866
16867
16868
16869 fi
16870
16871
16872
16873
16874
16875
16876
98399780
YQ
16877
16878
16879
16880
16881
4a626d0a
PA
16882
16883
6a29c58e
YQ
16884 if test $gl_cv_have_include_next = yes; then
16885 gl_cv_next_stdio_h='<'stdio.h'>'
16886 else
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16888$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16889if test "${gl_cv_next_stdio_h+set}" = set; then :
16890 $as_echo_n "(cached) " >&6
16891else
16892
4a626d0a
PA
16893
16894
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6a29c58e
YQ
16896/* end confdefs.h. */
16897#include <stdio.h>
6a29c58e 16898_ACEOF
4a626d0a
PA
16899 case "$host_os" in
16900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16901 *) gl_absname_cpp="$ac_cpp" ;;
16902 esac
16903
16904 case "$host_os" in
16905 mingw*)
16906 gl_dirsep_regex='[/\\]'
16907 ;;
16908 *)
16909 gl_dirsep_regex='\/'
16910 ;;
16911 esac
16912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16913 gl_header_literal_regex=`echo 'stdio.h' \
16914 | sed -e "$gl_make_literal_regex_sed"`
16915 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16916 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16917 s|^/[^/]|//&|
16918 p
16919 q
16920 }'
6a29c58e 16921
4a626d0a
PA
16922 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16923 sed -n "$gl_absolute_header_sed"`
6a29c58e 16924
4a626d0a
PA
16925 gl_header=$gl_cv_absolute_stdio_h
16926 gl_cv_next_stdio_h='"'$gl_header'"'
6a29c58e
YQ
16927
16928
16929fi
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16931$as_echo "$gl_cv_next_stdio_h" >&6; }
16932 fi
16933 NEXT_STDIO_H=$gl_cv_next_stdio_h
16934
16935 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16937 gl_next_as_first_directive='<'stdio.h'>'
16938 else
16939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16940 gl_next_as_first_directive=$gl_cv_next_stdio_h
16941 fi
16942 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16943
16944
16945
16946
16947
4a626d0a
PA
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
16949$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
16950if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16952else
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954/* end confdefs.h. */
16955
16956 #define __STDC_FORMAT_MACROS 1
16957 #include <stdio.h>
16958 #include <inttypes.h>
16959 /* For non-mingw systems, compilation will trivially succeed.
16960 For mingw, compilation will succeed for older mingw (system
16961 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
16962 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
16963 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
16964 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
16965 #endif
16966
16967int
16968main ()
16969{
16970
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975if ac_fn_c_try_compile "$LINENO"; then :
16976 gl_cv_func_printf_attribute_flavor=system
16977else
16978 gl_cv_func_printf_attribute_flavor=gnu
16979fi
16980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981fi
16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
16983$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
16984 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
16985
16986$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
16987
16988 fi
16989
6a29c58e
YQ
16990 GNULIB_FSCANF=1
16991
16992
16993cat >>confdefs.h <<_ACEOF
16994#define GNULIB_FSCANF 1
16995_ACEOF
16996
16997
16998 GNULIB_SCANF=1
16999
17000
17001cat >>confdefs.h <<_ACEOF
17002#define GNULIB_SCANF 1
17003_ACEOF
17004
17005
17006 GNULIB_FGETC=1
17007 GNULIB_GETC=1
17008 GNULIB_GETCHAR=1
17009 GNULIB_FGETS=1
17010 GNULIB_FREAD=1
17011
17012
17013 GNULIB_FPRINTF=1
17014 GNULIB_PRINTF=1
17015 GNULIB_VFPRINTF=1
17016 GNULIB_VPRINTF=1
17017 GNULIB_FPUTC=1
17018 GNULIB_PUTC=1
17019 GNULIB_PUTCHAR=1
17020 GNULIB_FPUTS=1
17021 GNULIB_PUTS=1
17022 GNULIB_FWRITE=1
17023
17024
17025
17026
17027 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17028 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17030$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17031if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17032 $as_echo_n "(cached) " >&6
17033else
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035/* end confdefs.h. */
17036#include <stdio.h>
17037
17038int
17039main ()
17040{
17041#undef $gl_func
17042 (void) $gl_func;
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_compile "$LINENO"; then :
17048 eval "$as_gl_Symbol=yes"
17049else
17050 eval "$as_gl_Symbol=no"
17051fi
17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053fi
17054eval ac_res=\$$as_gl_Symbol
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17056$as_echo "$ac_res" >&6; }
17057 eval as_val=\$$as_gl_Symbol
17058 if test "x$as_val" = x""yes; then :
17059 cat >>confdefs.h <<_ACEOF
17060#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17061_ACEOF
17062
17063 eval ac_cv_have_decl_$gl_func=yes
17064fi
17065 done
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
98399780
YQ
17078 if test $gl_cv_have_include_next = yes; then
17079 gl_cv_next_stdlib_h='<'stdlib.h'>'
17080 else
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17082$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17083if test "${gl_cv_next_stdlib_h+set}" = set; then :
17084 $as_echo_n "(cached) " >&6
17085else
17086
4a626d0a
PA
17087
17088
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98399780
YQ
17090/* end confdefs.h. */
17091#include <stdlib.h>
98399780 17092_ACEOF
4a626d0a
PA
17093 case "$host_os" in
17094 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17095 *) gl_absname_cpp="$ac_cpp" ;;
17096 esac
17097
17098 case "$host_os" in
17099 mingw*)
17100 gl_dirsep_regex='[/\\]'
17101 ;;
17102 *)
17103 gl_dirsep_regex='\/'
17104 ;;
17105 esac
17106 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17107 gl_header_literal_regex=`echo 'stdlib.h' \
17108 | sed -e "$gl_make_literal_regex_sed"`
17109 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17110 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17111 s|^/[^/]|//&|
17112 p
17113 q
17114 }'
98399780 17115
4a626d0a
PA
17116 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17117 sed -n "$gl_absolute_header_sed"`
98399780 17118
4a626d0a
PA
17119 gl_header=$gl_cv_absolute_stdlib_h
17120 gl_cv_next_stdlib_h='"'$gl_header'"'
98399780
YQ
17121
17122
17123fi
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17125$as_echo "$gl_cv_next_stdlib_h" >&6; }
17126 fi
17127 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17128
17129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17131 gl_next_as_first_directive='<'stdlib.h'>'
17132 else
17133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17134 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17135 fi
17136 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17137
17138
17139
17140
17141
17142
4a626d0a 17143 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
17144 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17146$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17147if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17148 $as_echo_n "(cached) " >&6
17149else
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151/* end confdefs.h. */
17152#include <stdlib.h>
17153#if HAVE_SYS_LOADAVG_H
17154# include <sys/loadavg.h>
17155#endif
17156#if HAVE_RANDOM_H
17157# include <random.h>
17158#endif
17159
17160int
17161main ()
17162{
17163#undef $gl_func
17164 (void) $gl_func;
17165 ;
17166 return 0;
17167}
17168_ACEOF
17169if ac_fn_c_try_compile "$LINENO"; then :
17170 eval "$as_gl_Symbol=yes"
17171else
17172 eval "$as_gl_Symbol=no"
17173fi
17174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175fi
17176eval ac_res=\$$as_gl_Symbol
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17178$as_echo "$ac_res" >&6; }
17179 eval as_val=\$$as_gl_Symbol
17180 if test "x$as_val" = x""yes; then :
17181 cat >>confdefs.h <<_ACEOF
17182#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17183_ACEOF
17184
17185 eval ac_cv_have_decl_$gl_func=yes
17186fi
17187 done
17188
17189
17190
17191
17192
17193
17194
63ce7108
TT
17195 if test $REPLACE_STRSTR = 0; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17197$as_echo_n "checking whether strstr works in linear time... " >&6; }
17198if test "${gl_cv_func_strstr_linear+set}" = set; then :
17199 $as_echo_n "(cached) " >&6
17200else
17201 if test "$cross_compiling" = yes; then :
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203/* end confdefs.h. */
17204
17205#include <features.h>
17206#ifdef __GNU_LIBRARY__
17207 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17208 && !(defined __i386__ || defined __x86_64__) \
17209 && !defined __UCLIBC__
17210 Lucky user
17211 #endif
17212#endif
17213#ifdef __CYGWIN__
17214 #include <cygwin/version.h>
17215 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17216 Lucky user
17217 #endif
17218#endif
17219
17220_ACEOF
17221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17222 $EGREP "Lucky user" >/dev/null 2>&1; then :
17223 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 17224else
63ce7108 17225 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
17226fi
17227rm -f conftest*
17228
17229
17230else
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232/* end confdefs.h. */
17233
17234#include <signal.h> /* for signal */
63ce7108 17235#include <string.h> /* for strstr */
c971b7fa
PA
17236#include <stdlib.h> /* for malloc */
17237#include <unistd.h> /* for alarm */
17238static void quit (int sig) { exit (sig + 128); }
17239
17240int
17241main ()
17242{
17243
17244 int result = 0;
17245 size_t m = 1000000;
63ce7108
TT
17246 char *haystack = (char *) malloc (2 * m + 2);
17247 char *needle = (char *) malloc (m + 2);
c971b7fa 17248 /* Failure to compile this test due to missing alarm is okay,
63ce7108 17249 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
17250 signal (SIGALRM, quit);
17251 alarm (5);
17252 /* Check for quadratic performance. */
17253 if (haystack && needle)
17254 {
17255 memset (haystack, 'A', 2 * m);
17256 haystack[2 * m] = 'B';
63ce7108 17257 haystack[2 * m + 1] = 0;
c971b7fa
PA
17258 memset (needle, 'A', m);
17259 needle[m] = 'B';
63ce7108
TT
17260 needle[m + 1] = 0;
17261 if (!strstr (haystack, needle))
c971b7fa
PA
17262 result |= 1;
17263 }
17264 return result;
17265
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270if ac_fn_c_try_run "$LINENO"; then :
63ce7108 17271 gl_cv_func_strstr_linear=yes
c971b7fa 17272else
63ce7108 17273 gl_cv_func_strstr_linear=no
c971b7fa
PA
17274fi
17275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17276 conftest.$ac_objext conftest.beam conftest.$ac_ext
17277fi
17278
17279
17280fi
63ce7108
TT
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17282$as_echo "$gl_cv_func_strstr_linear" >&6; }
17283 case "$gl_cv_func_strstr_linear" in
40a73391
JK
17284 *yes) ;;
17285 *)
63ce7108 17286 REPLACE_STRSTR=1
40a73391
JK
17287 ;;
17288 esac
c971b7fa
PA
17289 fi
17290
63ce7108 17291 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
17292
17293
17294
17295
17296
17297
17298
17299
63ce7108 17300 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 17301
a512b375 17302 fi
c971b7fa
PA
17303
17304
17305
63ce7108
TT
17306 if test "$gl_cv_func_memchr_works" != yes; then
17307 REPLACE_STRSTR=1
c971b7fa 17308 else
63ce7108
TT
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17310$as_echo_n "checking whether strstr works... " >&6; }
17311if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
17312 $as_echo_n "(cached) " >&6
17313else
17314 if test "$cross_compiling" = yes; then :
63ce7108 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
17316/* end confdefs.h. */
17317
17318#ifdef __GNU_LIBRARY__
17319 #include <features.h>
63ce7108 17320 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
17321 || defined __UCLIBC__
17322 Lucky user
17323 #endif
17324#elif defined __CYGWIN__
17325 #include <cygwin/version.h>
17326 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17327 Lucky user
17328 #endif
17329#else
17330 Lucky user
17331#endif
17332
17333_ACEOF
17334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17335 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 17336 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 17337else
63ce7108 17338 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
17339fi
17340rm -f conftest*
17341
17342
17343else
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h. */
17346
63ce7108 17347#include <string.h> /* for strstr */
c971b7fa
PA
17348#define P "_EF_BF_BD"
17349#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17350#define NEEDLE P P P P P
17351
17352int
17353main ()
17354{
63ce7108 17355return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
17356
17357 ;
17358 return 0;
17359}
17360_ACEOF
17361if ac_fn_c_try_run "$LINENO"; then :
63ce7108 17362 gl_cv_func_strstr_works_always=yes
c971b7fa 17363else
63ce7108 17364 gl_cv_func_strstr_works_always=no
c971b7fa
PA
17365fi
17366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17367 conftest.$ac_objext conftest.beam conftest.$ac_ext
17368fi
17369
17370
17371fi
63ce7108
TT
17372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17373$as_echo "$gl_cv_func_strstr_works_always" >&6; }
17374 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
17375 *yes) ;;
17376 *)
63ce7108 17377 REPLACE_STRSTR=1
40a73391
JK
17378 ;;
17379 esac
c971b7fa 17380 fi
8839a007 17381
63ce7108 17382 if test $REPLACE_STRSTR = 1; then
8839a007 17383
8690e634
JK
17384
17385
8690e634
JK
17386
17387
17388
17389
17390
63ce7108 17391 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 17392
8690e634
JK
17393 fi
17394
8690e634
JK
17395
17396
8690e634 17397
8690e634 17398
63ce7108 17399 GNULIB_STRSTR=1
8690e634
JK
17400
17401
17402
8690e634
JK
17403
17404
63ce7108 17405$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
17406
17407
17408
17409
17410
17411
17412
421693b0
PA
17413 for ac_func in strtok_r
17414do :
17415 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17416if test "x$ac_cv_func_strtok_r" = x""yes; then :
17417 cat >>confdefs.h <<_ACEOF
17418#define HAVE_STRTOK_R 1
17419_ACEOF
17420
17421fi
17422done
17423
17424 if test $ac_cv_func_strtok_r = yes; then
17425 HAVE_STRTOK_R=1
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17427$as_echo_n "checking whether strtok_r works... " >&6; }
17428if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17429 $as_echo_n "(cached) " >&6
17430else
17431 if test "$cross_compiling" = yes; then :
17432
17433 case "$host_os" in
17434 # Guess no on glibc systems.
17435 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17436 *) gl_cv_func_strtok_r_works="guessing yes";;
17437 esac
17438
17439else
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441/* end confdefs.h. */
17442
17443 #ifndef __OPTIMIZE__
17444 # define __OPTIMIZE__ 1
17445 #endif
17446 #undef __OPTIMIZE_SIZE__
17447 #undef __NO_INLINE__
17448 #include <stdlib.h>
17449 #include <string.h>
17450
17451int
17452main ()
17453{
17454static const char dummy[] = "\177\01a";
17455 char delimiters[] = "xxxxxxxx";
17456 char *save_ptr = (char *) dummy;
17457 strtok_r (delimiters, "x", &save_ptr);
17458 strtok_r (NULL, "x", &save_ptr);
17459 return 0;
17460
17461 ;
17462 return 0;
17463}
17464
17465_ACEOF
17466if ac_fn_c_try_run "$LINENO"; then :
17467 gl_cv_func_strtok_r_works=yes
17468else
17469 gl_cv_func_strtok_r_works=no
17470fi
17471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17472 conftest.$ac_objext conftest.beam conftest.$ac_ext
17473fi
17474
17475
17476fi
17477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17478$as_echo "$gl_cv_func_strtok_r_works" >&6; }
17479 case "$gl_cv_func_strtok_r_works" in
17480 *no)
17481 UNDEFINE_STRTOK_R=1
17482 ;;
17483 esac
17484 else
17485 HAVE_STRTOK_R=0
17486 fi
17487
17488 if test $ac_cv_have_decl_strtok_r = no; then
17489 HAVE_DECL_STRTOK_R=0
17490 fi
17491
17492 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17493
17494
17495
17496
17497
17498
17499
17500
17501 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17502
17503
17504 :
17505
17506 fi
17507
17508
17509
17510
17511
17512 GNULIB_STRTOK_R=1
17513
17514
17515
17516
17517
17518$as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17519
17520
17521
17522
17523
17524
17525
8690e634
JK
17526
17527
17528
17529
17530
8690e634 17531
09607c9e
TT
17532
17533
17534
17535
17536 if test $gl_cv_have_include_next = yes; then
17537 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17538 else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17540$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17541if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17543else
17544
17545 if test $ac_cv_header_sys_stat_h = yes; then
17546
17547
4a626d0a
PA
17548
17549
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
09607c9e
TT
17551/* end confdefs.h. */
17552#include <sys/stat.h>
09607c9e 17553_ACEOF
4a626d0a
PA
17554 case "$host_os" in
17555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17556 *) gl_absname_cpp="$ac_cpp" ;;
17557 esac
17558
17559 case "$host_os" in
17560 mingw*)
17561 gl_dirsep_regex='[/\\]'
17562 ;;
17563 *)
17564 gl_dirsep_regex='\/'
17565 ;;
17566 esac
17567 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17568 gl_header_literal_regex=`echo 'sys/stat.h' \
17569 | sed -e "$gl_make_literal_regex_sed"`
17570 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17571 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17572 s|^/[^/]|//&|
17573 p
17574 q
17575 }'
17576
17577 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17578 sed -n "$gl_absolute_header_sed"`
17579
17580 gl_header=$gl_cv_absolute_sys_stat_h
17581 gl_cv_next_sys_stat_h='"'$gl_header'"'
09607c9e
TT
17582 else
17583 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17584 fi
17585
17586
17587fi
17588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17589$as_echo "$gl_cv_next_sys_stat_h" >&6; }
17590 fi
17591 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17592
17593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17595 gl_next_as_first_directive='<'sys/stat.h'>'
17596 else
17597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17598 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17599 fi
17600 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17601
17602
17603
17604
17605
17606
17607
17608
2196f55f 17609
09607c9e
TT
17610
17611
17612 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17613
17614$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
17615
17616 fi
17617
17618 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17619 #include <sys/stat.h>
17620"
17621if test "x$ac_cv_type_nlink_t" = x""yes; then :
17622
17623else
17624
17625$as_echo "#define nlink_t int" >>confdefs.h
17626
17627fi
17628
17629
17630
17631 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
17632 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17634$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17635if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17636 $as_echo_n "(cached) " >&6
17637else
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639/* end confdefs.h. */
17640#include <sys/stat.h>
17641
17642int
17643main ()
17644{
17645#undef $gl_func
17646 (void) $gl_func;
17647 ;
17648 return 0;
17649}
17650_ACEOF
17651if ac_fn_c_try_compile "$LINENO"; then :
17652 eval "$as_gl_Symbol=yes"
17653else
17654 eval "$as_gl_Symbol=no"
17655fi
17656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657fi
17658eval ac_res=\$$as_gl_Symbol
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17660$as_echo "$ac_res" >&6; }
17661 eval as_val=\$$as_gl_Symbol
17662 if test "x$as_val" = x""yes; then :
17663 cat >>confdefs.h <<_ACEOF
17664#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17665_ACEOF
17666
17667 eval ac_cv_have_decl_$gl_func=yes
17668fi
17669 done
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
8839a007
PA
17684
17685
17686
17687
09607c9e
TT
17688
17689
8839a007
PA
17690
17691
17692
17693
17694 if test $gl_cv_have_include_next = yes; then
17695 gl_cv_next_unistd_h='<'unistd.h'>'
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17698$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17699if test "${gl_cv_next_unistd_h+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701else
17702
17703 if test $ac_cv_header_unistd_h = yes; then
17704
17705
4a626d0a
PA
17706
17707
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839a007
PA
17709/* end confdefs.h. */
17710#include <unistd.h>
8839a007 17711_ACEOF
4a626d0a
PA
17712 case "$host_os" in
17713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17714 *) gl_absname_cpp="$ac_cpp" ;;
17715 esac
17716
17717 case "$host_os" in
17718 mingw*)
17719 gl_dirsep_regex='[/\\]'
17720 ;;
17721 *)
17722 gl_dirsep_regex='\/'
17723 ;;
17724 esac
17725 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17726 gl_header_literal_regex=`echo 'unistd.h' \
17727 | sed -e "$gl_make_literal_regex_sed"`
17728 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17729 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17730 s|^/[^/]|//&|
17731 p
17732 q
17733 }'
17734
17735 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17736 sed -n "$gl_absolute_header_sed"`
17737
17738 gl_header=$gl_cv_absolute_unistd_h
17739 gl_cv_next_unistd_h='"'$gl_header'"'
8839a007
PA
17740 else
17741 gl_cv_next_unistd_h='<'unistd.h'>'
17742 fi
17743
17744
17745fi
17746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17747$as_echo "$gl_cv_next_unistd_h" >&6; }
17748 fi
17749 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17750
17751 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17753 gl_next_as_first_directive='<'unistd.h'>'
17754 else
17755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17756 gl_next_as_first_directive=$gl_cv_next_unistd_h
17757 fi
17758 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17759
17760
17761
17762
17763 if test $ac_cv_header_unistd_h = yes; then
17764 HAVE_UNISTD_H=1
17765 else
17766 HAVE_UNISTD_H=0
17767 fi
17768
17769
17770
17771
17772
17773
17774
17775 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
17776 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17778$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17779if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17780 $as_echo_n "(cached) " >&6
17781else
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783/* end confdefs.h. */
17784
17785#if HAVE_UNISTD_H
17786# include <unistd.h>
17787#endif
17788/* Some systems declare various items in the wrong headers. */
17789#if !(defined __GLIBC__ && !defined __UCLIBC__)
17790# include <fcntl.h>
17791# include <stdio.h>
17792# include <stdlib.h>
17793# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17794# include <io.h>
17795# endif
17796#endif
17797
17798int
17799main ()
17800{
17801#undef $gl_func
17802 (void) $gl_func;
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807if ac_fn_c_try_compile "$LINENO"; then :
17808 eval "$as_gl_Symbol=yes"
17809else
17810 eval "$as_gl_Symbol=no"
17811fi
17812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813fi
17814eval ac_res=\$$as_gl_Symbol
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17816$as_echo "$ac_res" >&6; }
17817 eval as_val=\$$as_gl_Symbol
17818 if test "x$as_val" = x""yes; then :
17819 cat >>confdefs.h <<_ACEOF
17820#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17821_ACEOF
17822
17823 eval ac_cv_have_decl_$gl_func=yes
17824fi
17825 done
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
8690e634
JK
17838
17839
17840 if test $gl_cv_have_include_next = yes; then
17841 gl_cv_next_wchar_h='<'wchar.h'>'
17842 else
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17844$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17845if test "${gl_cv_next_wchar_h+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17847else
17848
17849 if test $ac_cv_header_wchar_h = yes; then
17850
17851
4a626d0a
PA
17852
17853
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
17855/* end confdefs.h. */
17856#include <wchar.h>
8690e634 17857_ACEOF
4a626d0a
PA
17858 case "$host_os" in
17859 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17860 *) gl_absname_cpp="$ac_cpp" ;;
17861 esac
17862
17863 case "$host_os" in
17864 mingw*)
17865 gl_dirsep_regex='[/\\]'
17866 ;;
17867 *)
17868 gl_dirsep_regex='\/'
17869 ;;
17870 esac
17871 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17872 gl_header_literal_regex=`echo 'wchar.h' \
17873 | sed -e "$gl_make_literal_regex_sed"`
17874 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17875 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17876 s|^/[^/]|//&|
17877 p
17878 q
17879 }'
17880
17881 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17882 sed -n "$gl_absolute_header_sed"`
17883
17884 gl_header=$gl_cv_absolute_wchar_h
17885 gl_cv_next_wchar_h='"'$gl_header'"'
8690e634
JK
17886 else
17887 gl_cv_next_wchar_h='<'wchar.h'>'
17888 fi
17889
17890
17891fi
17892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17893$as_echo "$gl_cv_next_wchar_h" >&6; }
17894 fi
17895 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17896
17897 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17899 gl_next_as_first_directive='<'wchar.h'>'
17900 else
17901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17902 gl_next_as_first_directive=$gl_cv_next_wchar_h
17903 fi
17904 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17905
17906
17907
17908
17909 if test $ac_cv_header_wchar_h = yes; then
17910 HAVE_WCHAR_H=1
17911 else
17912 HAVE_WCHAR_H=0
17913 fi
17914
c971b7fa
PA
17915
17916
17917
17918
8690e634
JK
17919 if test $gt_cv_c_wint_t = yes; then
17920 HAVE_WINT_T=1
17921 else
17922 HAVE_WINT_T=0
17923 fi
c971b7fa
PA
17924
17925
17926
8690e634
JK
17927 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
17928 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17930$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17931if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
17932 $as_echo_n "(cached) " >&6
17933else
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935/* end confdefs.h. */
8690e634
JK
17936
17937/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17938 <wchar.h>.
17939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17940 included before <wchar.h>. */
17941#if !(defined __GLIBC__ && !defined __UCLIBC__)
17942# include <stddef.h>
17943# include <stdio.h>
17944# include <time.h>
17945#endif
17946#include <wchar.h>
c971b7fa
PA
17947
17948int
17949main ()
17950{
8690e634
JK
17951#undef $gl_func
17952 (void) $gl_func;
c971b7fa
PA
17953 ;
17954 return 0;
17955}
17956_ACEOF
17957if ac_fn_c_try_compile "$LINENO"; then :
8690e634 17958 eval "$as_gl_Symbol=yes"
c971b7fa 17959else
8690e634 17960 eval "$as_gl_Symbol=no"
c971b7fa
PA
17961fi
17962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963fi
8690e634
JK
17964eval ac_res=\$$as_gl_Symbol
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17966$as_echo "$ac_res" >&6; }
17967 eval as_val=\$$as_gl_Symbol
17968 if test "x$as_val" = x""yes; then :
17969 cat >>confdefs.h <<_ACEOF
17970#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17971_ACEOF
c971b7fa 17972
8690e634 17973 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 17974fi
8690e634
JK
17975 done
17976
17977
17978
17979
17980
17981
17982
8690e634
JK
17983 if test $ac_cv_func_iswcntrl = yes; then
17984 HAVE_ISWCNTRL=1
17985 else
17986 HAVE_ISWCNTRL=0
17987 fi
17988
17989
17990
8690e634
JK
17991 if test $gt_cv_c_wint_t = yes; then
17992 HAVE_WINT_T=1
17993 else
17994 HAVE_WINT_T=0
17995 fi
17996
17997
17998
17999
18000
18001
c971b7fa 18002
8690e634 18003
c971b7fa
PA
18004
18005
18006
18007 if test $gl_cv_have_include_next = yes; then
8690e634 18008 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 18009 else
8690e634
JK
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18011$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18012if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
18013 $as_echo_n "(cached) " >&6
18014else
18015
8690e634
JK
18016 if test $ac_cv_header_wctype_h = yes; then
18017
18018
4a626d0a
PA
18019
18020
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 18022/* end confdefs.h. */
8690e634 18023#include <wctype.h>
c971b7fa 18024_ACEOF
4a626d0a
PA
18025 case "$host_os" in
18026 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18027 *) gl_absname_cpp="$ac_cpp" ;;
18028 esac
18029
18030 case "$host_os" in
18031 mingw*)
18032 gl_dirsep_regex='[/\\]'
18033 ;;
18034 *)
18035 gl_dirsep_regex='\/'
18036 ;;
18037 esac
18038 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18039 gl_header_literal_regex=`echo 'wctype.h' \
18040 | sed -e "$gl_make_literal_regex_sed"`
18041 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18043 s|^/[^/]|//&|
18044 p
18045 q
18046 }'
18047
18048 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18049 sed -n "$gl_absolute_header_sed"`
18050
18051 gl_header=$gl_cv_absolute_wctype_h
18052 gl_cv_next_wctype_h='"'$gl_header'"'
8690e634
JK
18053 else
18054 gl_cv_next_wctype_h='<'wctype.h'>'
18055 fi
c971b7fa
PA
18056
18057
18058fi
8690e634
JK
18059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18060$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 18061 fi
8690e634 18062 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
18063
18064 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 18066 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
18067 else
18068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 18069 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 18070 fi
8690e634
JK
18071 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18072
18073
18074
18075
18076 if test $ac_cv_header_wctype_h = yes; then
18077 if test $ac_cv_func_iswcntrl = yes; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18079$as_echo_n "checking whether iswcntrl works... " >&6; }
18080if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18081 $as_echo_n "(cached) " >&6
18082else
18083
18084 if test "$cross_compiling" = yes; then :
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h. */
18087#include <stdlib.h>
18088 #if __GNU_LIBRARY__ == 1
18089 Linux libc5 i18n is broken.
18090 #endif
18091int
18092main ()
18093{
18094
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099if ac_fn_c_try_compile "$LINENO"; then :
18100 gl_cv_func_iswcntrl_works="guessing yes"
18101else
18102 gl_cv_func_iswcntrl_works="guessing no"
18103fi
18104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18105
18106else
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108/* end confdefs.h. */
18109
18110 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18111 included before <wchar.h>.
18112 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18113 must be included before <wchar.h>. */
18114 #include <stddef.h>
18115 #include <stdio.h>
18116 #include <time.h>
18117 #include <wchar.h>
18118 #include <wctype.h>
18119 int main () { return iswprint ('x') == 0; }
18120
18121_ACEOF
18122if ac_fn_c_try_run "$LINENO"; then :
18123 gl_cv_func_iswcntrl_works=yes
18124else
18125 gl_cv_func_iswcntrl_works=no
18126fi
18127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18128 conftest.$ac_objext conftest.beam conftest.$ac_ext
18129fi
18130
18131
18132fi
18133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18134$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18135 fi
18136 HAVE_WCTYPE_H=1
18137 else
18138 HAVE_WCTYPE_H=0
18139 fi
18140
18141
18142 case "$gl_cv_func_iswcntrl_works" in
18143 *yes) REPLACE_ISWCNTRL=0 ;;
18144 *) REPLACE_ISWCNTRL=1 ;;
18145 esac
18146
18147
18148 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18149 :
18150 fi
18151
18152 if test $REPLACE_ISWCNTRL = 1; then
18153 REPLACE_TOWLOWER=1
18154 else
18155 for ac_func in towlower
18156do :
18157 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18158if test "x$ac_cv_func_towlower" = x""yes; then :
18159 cat >>confdefs.h <<_ACEOF
18160#define HAVE_TOWLOWER 1
18161_ACEOF
18162
18163fi
18164done
18165
18166 if test $ac_cv_func_towlower = yes; then
18167 REPLACE_TOWLOWER=0
18168 else
18169 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18170 included before <wchar.h>.
18171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18172 must be included before <wchar.h>. */
18173 #include <stddef.h>
18174 #include <stdio.h>
18175 #include <time.h>
18176 #include <wchar.h>
18177 #if HAVE_WCTYPE_H
18178 # include <wctype.h>
18179 #endif
18180
18181"
18182if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18183 ac_have_decl=1
18184else
18185 ac_have_decl=0
18186fi
18187
18188cat >>confdefs.h <<_ACEOF
18189#define HAVE_DECL_TOWLOWER $ac_have_decl
18190_ACEOF
18191
18192 if test $ac_cv_have_decl_towlower = yes; then
18193 REPLACE_TOWLOWER=1
18194 else
18195 REPLACE_TOWLOWER=0
18196 fi
18197 fi
18198 fi
18199
18200
18201 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18202 :
18203 fi
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18206$as_echo_n "checking for wctype_t... " >&6; }
18207if test "${gl_cv_type_wctype_t+set}" = set; then :
18208 $as_echo_n "(cached) " >&6
18209else
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211/* end confdefs.h. */
18212/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18213 included before <wchar.h>.
18214 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18215 must be included before <wchar.h>. */
18216 #include <stddef.h>
18217 #include <stdio.h>
18218 #include <time.h>
18219 #include <wchar.h>
18220 #if HAVE_WCTYPE_H
18221 # include <wctype.h>
18222 #endif
18223 wctype_t a;
18224
18225int
18226main ()
18227{
18228
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_compile "$LINENO"; then :
18234 gl_cv_type_wctype_t=yes
18235else
18236 gl_cv_type_wctype_t=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 18239
8690e634
JK
18240fi
18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18242$as_echo "$gl_cv_type_wctype_t" >&6; }
18243 if test $gl_cv_type_wctype_t = no; then
18244 HAVE_WCTYPE_T=0
18245 fi
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18248$as_echo_n "checking for wctrans_t... " >&6; }
18249if test "${gl_cv_type_wctrans_t+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251else
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253/* end confdefs.h. */
18254/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18255 included before <wchar.h>.
18256 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18257 must be included before <wchar.h>. */
18258 #include <stddef.h>
18259 #include <stdio.h>
18260 #include <time.h>
18261 #include <wchar.h>
18262 #include <wctype.h>
18263 wctrans_t a;
c971b7fa 18264
8690e634
JK
18265int
18266main ()
18267{
c971b7fa 18268
8690e634
JK
18269 ;
18270 return 0;
18271}
18272_ACEOF
18273if ac_fn_c_try_compile "$LINENO"; then :
18274 gl_cv_type_wctrans_t=yes
18275else
18276 gl_cv_type_wctrans_t=no
18277fi
18278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 18279
8690e634
JK
18280fi
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18282$as_echo "$gl_cv_type_wctrans_t" >&6; }
18283 if test $gl_cv_type_wctrans_t = no; then
18284 HAVE_WCTRANS_T=0
c971b7fa
PA
18285 fi
18286
18287
8690e634
JK
18288 for gl_func in wctype iswctype wctrans towctrans ; do
18289 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18291$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18292if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18293 $as_echo_n "(cached) " >&6
18294else
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296/* end confdefs.h. */
18297
18298/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18299 <wchar.h>.
18300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18301 included before <wchar.h>. */
18302#if !(defined __GLIBC__ && !defined __UCLIBC__)
18303# include <stddef.h>
18304# include <stdio.h>
18305# include <time.h>
18306# include <wchar.h>
18307#endif
18308#include <wctype.h>
18309
18310int
18311main ()
18312{
18313#undef $gl_func
18314 (void) $gl_func;
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319if ac_fn_c_try_compile "$LINENO"; then :
18320 eval "$as_gl_Symbol=yes"
18321else
18322 eval "$as_gl_Symbol=no"
18323fi
18324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325fi
18326eval ac_res=\$$as_gl_Symbol
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18328$as_echo "$ac_res" >&6; }
18329 eval as_val=\$$as_gl_Symbol
18330 if test "x$as_val" = x""yes; then :
18331 cat >>confdefs.h <<_ACEOF
18332#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18333_ACEOF
c971b7fa 18334
8690e634
JK
18335 eval ac_cv_have_decl_$gl_func=yes
18336fi
18337 done
c971b7fa
PA
18338
18339
18340 # End of code from modules
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 gltests_libdeps=
18351 gltests_ltlibdeps=
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361 gl_source_base='tests'
18362 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
18363
18364 gl_module_indicator_condition=$gltests_WITNESS
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374 LIBGNU_LIBDEPS="$gl_libdeps"
18375
18376 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18377
18378
18379
18380# We don't use automake, but gnulib does. This line lets us generate
18381# its Makefile.in.
18382am__api_version='1.11'
18383
18384# Find a good install program. We prefer a C program (faster),
18385# so one script is as good as another. But avoid the broken or
18386# incompatible versions:
18387# SysV /etc/install, /usr/sbin/install
18388# SunOS /usr/etc/install
18389# IRIX /sbin/install
18390# AIX /bin/install
18391# AmigaOS /C/install, which installs bootblocks on floppy discs
18392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18395# OS/2's system install, which has a completely different semantic
18396# ./install, which can be erroneously created by make from ./install.sh.
18397# Reject install programs that cannot install multiple files.
18398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18399$as_echo_n "checking for a BSD-compatible install... " >&6; }
18400if test -z "$INSTALL"; then
18401if test "${ac_cv_path_install+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18403else
18404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18405for as_dir in $PATH
18406do
18407 IFS=$as_save_IFS
18408 test -z "$as_dir" && as_dir=.
18409 # Account for people who put trailing slashes in PATH elements.
18410case $as_dir/ in #((
18411 ./ | .// | /[cC]/* | \
18412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18414 /usr/ucb/* ) ;;
18415 *)
18416 # OSF1 and SCO ODT 3.0 have their own names for install.
18417 # Don't use installbsd from OSF since it installs stuff as root
18418 # by default.
18419 for ac_prog in ginstall scoinst install; do
18420 for ac_exec_ext in '' $ac_executable_extensions; do
18421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18422 if test $ac_prog = install &&
18423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18424 # AIX install. It has an incompatible calling convention.
18425 :
18426 elif test $ac_prog = install &&
18427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18428 # program-specific install script used by HP pwplus--don't use.
18429 :
18430 else
18431 rm -rf conftest.one conftest.two conftest.dir
18432 echo one > conftest.one
18433 echo two > conftest.two
18434 mkdir conftest.dir
18435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18436 test -s conftest.one && test -s conftest.two &&
18437 test -s conftest.dir/conftest.one &&
18438 test -s conftest.dir/conftest.two
18439 then
18440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18441 break 3
18442 fi
18443 fi
18444 fi
18445 done
18446 done
18447 ;;
18448esac
18449
18450 done
18451IFS=$as_save_IFS
18452
18453rm -rf conftest.one conftest.two conftest.dir
18454
18455fi
18456 if test "${ac_cv_path_install+set}" = set; then
18457 INSTALL=$ac_cv_path_install
18458 else
18459 # As a last resort, use the slow shell script. Don't cache a
18460 # value for INSTALL within a source directory, because that will
18461 # break other packages using the cache if that directory is
18462 # removed, or if the value is a relative name.
18463 INSTALL=$ac_install_sh
18464 fi
18465fi
18466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18467$as_echo "$INSTALL" >&6; }
18468
18469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18470# It thinks the first close brace ends the variable substitution.
18471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18472
18473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18474
18475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18476
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18478$as_echo_n "checking whether build environment is sane... " >&6; }
18479# Just in case
18480sleep 1
18481echo timestamp > conftest.file
18482# Reject unsafe characters in $srcdir or the absolute working directory
18483# name. Accept space and tab only in the latter.
18484am_lf='
18485'
18486case `pwd` in
18487 *[\\\"\#\$\&\'\`$am_lf]*)
18488 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
18489esac
18490case $srcdir in
18491 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
18492 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18493esac
18494
18495# Do `set' in a subshell so we don't clobber the current shell's
18496# arguments. Must try -L first in case configure is actually a
18497# symlink; some systems play weird games with the mod time of symlinks
18498# (eg FreeBSD returns the mod time of the symlink's containing
18499# directory).
18500if (
18501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18502 if test "$*" = "X"; then
18503 # -L didn't work.
18504 set X `ls -t "$srcdir/configure" conftest.file`
18505 fi
18506 rm -f conftest.file
18507 if test "$*" != "X $srcdir/configure conftest.file" \
18508 && test "$*" != "X conftest.file $srcdir/configure"; then
18509
18510 # If neither matched, then we have a broken ls. This can happen
18511 # if, for instance, CONFIG_SHELL is bash and it inherits a
18512 # broken ls alias from the environment. This has actually
18513 # happened. Such a system could not be considered "sane".
18514 as_fn_error "ls -t appears to fail. Make sure there is not a broken
18515alias in your environment" "$LINENO" 5
18516 fi
18517
18518 test "$2" = conftest.file
18519 )
18520then
18521 # Ok.
18522 :
18523else
18524 as_fn_error "newly created file is older than distributed files!
18525Check your system clock" "$LINENO" 5
18526fi
18527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18528$as_echo "yes" >&6; }
18529test "$program_prefix" != NONE &&
18530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18531# Use a double $ so make ignores it.
18532test "$program_suffix" != NONE &&
18533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18534# Double any \ or $.
18535# By default was `s,x,x', remove it if useless.
18536ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
18537program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
18538
18539# expand $ac_aux_dir to an absolute path
18540am_aux_dir=`cd $ac_aux_dir && pwd`
18541
18542if test x"${MISSING+set}" != xset; then
18543 case $am_aux_dir in
18544 *\ * | *\ *)
18545 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
18546 *)
18547 MISSING="\${SHELL} $am_aux_dir/missing" ;;
18548 esac
18549fi
18550# Use eval to expand $SHELL
18551if eval "$MISSING --run true"; then
18552 am_missing_run="$MISSING --run "
18553else
18554 am_missing_run=
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18556$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18557fi
18558
18559if test x"${install_sh}" != xset; then
18560 case $am_aux_dir in
18561 *\ * | *\ *)
18562 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
18563 *)
18564 install_sh="\${SHELL} $am_aux_dir/install-sh"
18565 esac
18566fi
18567
18568# Installed binaries are usually stripped using `strip' when the user
18569# run `make install-strip'. However `strip' might not be the right
18570# tool to use in cross-compilation environments, therefore Automake
18571# will honor the `STRIP' environment variable to overrule this program.
18572if test "$cross_compiling" != no; then
18573 if test -n "$ac_tool_prefix"; then
18574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18575set dummy ${ac_tool_prefix}strip; ac_word=$2
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18577$as_echo_n "checking for $ac_word... " >&6; }
18578if test "${ac_cv_prog_STRIP+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18580else
18581 if test -n "$STRIP"; then
18582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18583else
18584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585for as_dir in $PATH
18586do
18587 IFS=$as_save_IFS
18588 test -z "$as_dir" && as_dir=.
18589 for ac_exec_ext in '' $ac_executable_extensions; do
18590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18593 break 2
18594 fi
18595done
18596 done
18597IFS=$as_save_IFS
18598
18599fi
18600fi
18601STRIP=$ac_cv_prog_STRIP
18602if test -n "$STRIP"; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18604$as_echo "$STRIP" >&6; }
18605else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607$as_echo "no" >&6; }
18608fi
18609
18610
18611fi
18612if test -z "$ac_cv_prog_STRIP"; then
18613 ac_ct_STRIP=$STRIP
18614 # Extract the first word of "strip", so it can be a program name with args.
18615set dummy strip; ac_word=$2
18616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18617$as_echo_n "checking for $ac_word... " >&6; }
18618if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18620else
18621 if test -n "$ac_ct_STRIP"; then
18622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18623else
18624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625for as_dir in $PATH
18626do
18627 IFS=$as_save_IFS
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631 ac_cv_prog_ac_ct_STRIP="strip"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633 break 2
18634 fi
18635done
18636 done
18637IFS=$as_save_IFS
18638
18639fi
18640fi
18641ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18642if test -n "$ac_ct_STRIP"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
18644$as_echo "$ac_ct_STRIP" >&6; }
18645else
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647$as_echo "no" >&6; }
18648fi
18649
18650 if test "x$ac_ct_STRIP" = x; then
18651 STRIP=":"
18652 else
18653 case $cross_compiling:$ac_tool_warned in
18654yes:)
18655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18657ac_tool_warned=yes ;;
18658esac
18659 STRIP=$ac_ct_STRIP
18660 fi
18661else
18662 STRIP="$ac_cv_prog_STRIP"
18663fi
18664
18665fi
18666INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
18667
c971b7fa
PA
18668mkdir_p="$MKDIR_P"
18669case $mkdir_p in
18670 [\\/$]* | ?:[\\/]*) ;;
18671 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18672esac
18673
18674for ac_prog in gawk mawk nawk awk
18675do
18676 # Extract the first word of "$ac_prog", so it can be a program name with args.
18677set dummy $ac_prog; ac_word=$2
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18679$as_echo_n "checking for $ac_word... " >&6; }
18680if test "${ac_cv_prog_AWK+set}" = set; then :
18681 $as_echo_n "(cached) " >&6
18682else
18683 if test -n "$AWK"; then
18684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18685else
18686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687for as_dir in $PATH
18688do
18689 IFS=$as_save_IFS
18690 test -z "$as_dir" && as_dir=.
18691 for ac_exec_ext in '' $ac_executable_extensions; do
18692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18693 ac_cv_prog_AWK="$ac_prog"
18694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18695 break 2
18696 fi
18697done
18698 done
18699IFS=$as_save_IFS
18700
18701fi
18702fi
18703AWK=$ac_cv_prog_AWK
18704if test -n "$AWK"; then
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18706$as_echo "$AWK" >&6; }
18707else
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709$as_echo "no" >&6; }
18710fi
18711
18712
18713 test -n "$AWK" && break
18714done
18715
18716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18717$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18718set x ${MAKE-make}
18719ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18720if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18721 $as_echo_n "(cached) " >&6
18722else
18723 cat >conftest.make <<\_ACEOF
18724SHELL = /bin/sh
18725all:
18726 @echo '@@@%%%=$(MAKE)=@@@%%%'
18727_ACEOF
18728# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18729case `${MAKE-make} -f conftest.make 2>/dev/null` in
18730 *@@@%%%=?*=@@@%%%*)
18731 eval ac_cv_prog_make_${ac_make}_set=yes;;
18732 *)
18733 eval ac_cv_prog_make_${ac_make}_set=no;;
18734esac
18735rm -f conftest.make
18736fi
18737if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739$as_echo "yes" >&6; }
18740 SET_MAKE=
18741else
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18743$as_echo "no" >&6; }
18744 SET_MAKE="MAKE=${MAKE-make}"
18745fi
18746
18747rm -rf .tst 2>/dev/null
18748mkdir .tst 2>/dev/null
18749if test -d .tst; then
18750 am__leading_dot=.
18751else
18752 am__leading_dot=_
18753fi
18754rmdir .tst 2>/dev/null
18755
18756DEPDIR="${am__leading_dot}deps"
18757
18758ac_config_commands="$ac_config_commands depfiles"
18759
18760
18761am_make=${MAKE-make}
18762cat > confinc << 'END'
18763am__doit:
18764 @echo this is the am__doit target
18765.PHONY: am__doit
18766END
18767# If we don't find an include directive, just comment out the code.
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
18769$as_echo_n "checking for style of include used by $am_make... " >&6; }
18770am__include="#"
18771am__quote=
18772_am_result=none
18773# First try GNU make style include.
18774echo "include confinc" > confmf
18775# Ignore all kinds of additional output from `make'.
18776case `$am_make -s -f confmf 2> /dev/null` in #(
18777*the\ am__doit\ target*)
18778 am__include=include
18779 am__quote=
18780 _am_result=GNU
18781 ;;
18782esac
18783# Now try BSD make style include.
18784if test "$am__include" = "#"; then
18785 echo '.include "confinc"' > confmf
18786 case `$am_make -s -f confmf 2> /dev/null` in #(
18787 *the\ am__doit\ target*)
18788 am__include=.include
18789 am__quote="\""
18790 _am_result=BSD
18791 ;;
18792 esac
18793fi
18794
18795
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
18797$as_echo "$_am_result" >&6; }
18798rm -f confinc confmf
18799
18800# Check whether --enable-dependency-tracking was given.
18801if test "${enable_dependency_tracking+set}" = set; then :
18802 enableval=$enable_dependency_tracking;
18803fi
18804
18805if test "x$enable_dependency_tracking" != xno; then
18806 am_depcomp="$ac_aux_dir/depcomp"
18807 AMDEPBACKSLASH='\'
18808fi
18809 if test "x$enable_dependency_tracking" != xno; then
18810 AMDEP_TRUE=
18811 AMDEP_FALSE='#'
18812else
18813 AMDEP_TRUE='#'
18814 AMDEP_FALSE=
18815fi
18816
18817
18818if test "`cd $srcdir && pwd`" != "`pwd`"; then
18819 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18820 # is not polluted with repeated "-I."
18821 am__isrc=' -I$(srcdir)'
18822 # test to see if srcdir already configured
18823 if test -f $srcdir/config.status; then
18824 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
18825 fi
18826fi
18827
18828# test whether we have cygpath
18829if test -z "$CYGPATH_W"; then
18830 if (cygpath --version) >/dev/null 2>/dev/null; then
18831 CYGPATH_W='cygpath -w'
18832 else
18833 CYGPATH_W=echo
18834 fi
18835fi
18836
18837
18838# Define the identity of the package.
18839 PACKAGE=libgnu
18840 VERSION=UNUSED-VERSION
18841
18842
18843# Some tools Automake needs.
18844
18845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18846
18847
18848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18849
18850
18851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18852
18853
18854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18855
18856
18857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18858
18859# We need awk for the "check" target. The system "awk" is bad on
18860# some platforms.
18861# Always define AMTAR for backward compatibility.
18862
18863AMTAR=${AMTAR-"${am_missing_run}tar"}
18864
18865am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
18866
18867
18868
18869
18870depcc="$CC" am_compiler_list=
18871
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18873$as_echo_n "checking dependency style of $depcc... " >&6; }
18874if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18875 $as_echo_n "(cached) " >&6
18876else
18877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18878 # We make a subdir and do the tests there. Otherwise we can end up
18879 # making bogus files that we don't know about and never remove. For
18880 # instance it was reported that on HP-UX the gcc test will end up
18881 # making a dummy file named `D' -- because `-MD' means `put the output
18882 # in D'.
18883 mkdir conftest.dir
18884 # Copy depcomp to subdir because otherwise we won't find it if we're
18885 # using a relative directory.
18886 cp "$am_depcomp" conftest.dir
18887 cd conftest.dir
18888 # We will build objects and dependencies in a subdirectory because
18889 # it helps to detect inapplicable dependency modes. For instance
18890 # both Tru64's cc and ICC support -MD to output dependencies as a
18891 # side effect of compilation, but ICC will put the dependencies in
18892 # the current directory while Tru64 will put them in the object
18893 # directory.
18894 mkdir sub
18895
18896 am_cv_CC_dependencies_compiler_type=none
18897 if test "$am_compiler_list" = ""; then
18898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18899 fi
18900 am__universal=false
18901 case " $depcc " in #(
18902 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18903 esac
18904
18905 for depmode in $am_compiler_list; do
18906 # Setup a source with many dependencies, because some compilers
18907 # like to wrap large dependency lists on column 80 (with \), and
18908 # we should not choose a depcomp mode which is confused by this.
18909 #
18910 # We need to recreate these files for each test, as the compiler may
18911 # overwrite some of them when testing with obscure command lines.
18912 # This happens at least with the AIX C compiler.
18913 : > sub/conftest.c
18914 for i in 1 2 3 4 5 6; do
18915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18916 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18917 # Solaris 8's {/usr,}/bin/sh.
18918 touch sub/conftst$i.h
18919 done
18920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18921
18922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18923 # mode. It turns out that the SunPro C++ compiler does not properly
18924 # handle `-M -o', and we need to detect this. Also, some Intel
18925 # versions had trouble with output in subdirs
18926 am__obj=sub/conftest.${OBJEXT-o}
18927 am__minus_obj="-o $am__obj"
18928 case $depmode in
18929 gcc)
18930 # This depmode causes a compiler race in universal mode.
18931 test "$am__universal" = false || continue
18932 ;;
18933 nosideeffect)
18934 # after this tag, mechanisms are not by side-effect, so they'll
18935 # only be used when explicitly requested
18936 if test "x$enable_dependency_tracking" = xyes; then
18937 continue
18938 else
18939 break
18940 fi
18941 ;;
18942 msvisualcpp | msvcmsys)
18943 # This compiler won't grok `-c -o', but also, the minuso test has
18944 # not run yet. These depmodes are late enough in the game, and
18945 # so weak that their functioning should not be impacted.
18946 am__obj=conftest.${OBJEXT-o}
18947 am__minus_obj=
18948 ;;
18949 none) break ;;
18950 esac
18951 if depmode=$depmode \
18952 source=sub/conftest.c object=$am__obj \
18953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18954 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18955 >/dev/null 2>conftest.err &&
18956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18958 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18960 # icc doesn't choke on unknown options, it will just issue warnings
18961 # or remarks (even with -Werror). So we grep stderr for any message
18962 # that says an option was ignored or not supported.
18963 # When given -MP, icc 7.0 and 7.1 complain thusly:
18964 # icc: Command line warning: ignoring option '-M'; no argument required
18965 # The diagnosis changed in icc 8.0:
18966 # icc: Command line remark: option '-MP' not supported
18967 if (grep 'ignoring option' conftest.err ||
18968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18969 am_cv_CC_dependencies_compiler_type=$depmode
18970 break
18971 fi
18972 fi
18973 done
18974
18975 cd ..
18976 rm -rf conftest.dir
18977else
18978 am_cv_CC_dependencies_compiler_type=none
18979fi
18980
18981fi
18982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18983$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18984CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18985
18986 if
18987 test "x$enable_dependency_tracking" != xno \
18988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18989 am__fastdepCC_TRUE=
18990 am__fastdepCC_FALSE='#'
18991else
18992 am__fastdepCC_TRUE='#'
18993 am__fastdepCC_FALSE=
18994fi
18995
18996
18997
18998
18999# --------------------- #
19000# Checks for programs. #
19001# --------------------- #
19002
19003
19004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19005$as_echo_n "checking whether ln -s works... " >&6; }
19006LN_S=$as_ln_s
19007if test "$LN_S" = "ln -s"; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19009$as_echo "yes" >&6; }
19010else
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19012$as_echo "no, using $LN_S" >&6; }
19013fi
19014
19015if test -n "$ac_tool_prefix"; then
19016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19017set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19019$as_echo_n "checking for $ac_word... " >&6; }
19020if test "${ac_cv_prog_RANLIB+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19022else
19023 if test -n "$RANLIB"; then
19024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19025else
19026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027for as_dir in $PATH
19028do
19029 IFS=$as_save_IFS
19030 test -z "$as_dir" && as_dir=.
19031 for ac_exec_ext in '' $ac_executable_extensions; do
19032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 break 2
19036 fi
19037done
19038 done
19039IFS=$as_save_IFS
19040
19041fi
19042fi
19043RANLIB=$ac_cv_prog_RANLIB
19044if test -n "$RANLIB"; then
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19046$as_echo "$RANLIB" >&6; }
19047else
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19049$as_echo "no" >&6; }
19050fi
19051
19052
19053fi
19054if test -z "$ac_cv_prog_RANLIB"; then
19055 ac_ct_RANLIB=$RANLIB
19056 # Extract the first word of "ranlib", so it can be a program name with args.
19057set dummy ranlib; ac_word=$2
19058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19059$as_echo_n "checking for $ac_word... " >&6; }
19060if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19062else
19063 if test -n "$ac_ct_RANLIB"; then
19064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19065else
19066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067for as_dir in $PATH
19068do
19069 IFS=$as_save_IFS
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19073 ac_cv_prog_ac_ct_RANLIB="ranlib"
19074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19075 break 2
19076 fi
19077done
19078 done
19079IFS=$as_save_IFS
19080
19081fi
19082fi
19083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19084if test -n "$ac_ct_RANLIB"; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19086$as_echo "$ac_ct_RANLIB" >&6; }
19087else
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19089$as_echo "no" >&6; }
19090fi
19091
19092 if test "x$ac_ct_RANLIB" = x; then
19093 RANLIB=":"
19094 else
19095 case $cross_compiling:$ac_tool_warned in
19096yes:)
19097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19099ac_tool_warned=yes ;;
19100esac
19101 RANLIB=$ac_ct_RANLIB
19102 fi
19103else
19104 RANLIB="$ac_cv_prog_RANLIB"
19105fi
19106
19107
19108if test -n "$ac_tool_prefix"; then
19109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19110set dummy ${ac_tool_prefix}ar; ac_word=$2
19111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19112$as_echo_n "checking for $ac_word... " >&6; }
19113if test "${ac_cv_prog_AR+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19115else
19116 if test -n "$AR"; then
19117 ac_cv_prog_AR="$AR" # Let the user override the test.
19118else
19119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19120for as_dir in $PATH
19121do
19122 IFS=$as_save_IFS
19123 test -z "$as_dir" && as_dir=.
19124 for ac_exec_ext in '' $ac_executable_extensions; do
19125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19126 ac_cv_prog_AR="${ac_tool_prefix}ar"
19127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19128 break 2
19129 fi
19130done
19131 done
19132IFS=$as_save_IFS
19133
19134fi
19135fi
19136AR=$ac_cv_prog_AR
19137if test -n "$AR"; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19139$as_echo "$AR" >&6; }
19140else
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142$as_echo "no" >&6; }
19143fi
19144
19145
19146fi
19147if test -z "$ac_cv_prog_AR"; then
19148 ac_ct_AR=$AR
19149 # Extract the first word of "ar", so it can be a program name with args.
19150set dummy ar; ac_word=$2
19151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152$as_echo_n "checking for $ac_word... " >&6; }
19153if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19155else
19156 if test -n "$ac_ct_AR"; then
19157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19158else
19159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19160for as_dir in $PATH
19161do
19162 IFS=$as_save_IFS
19163 test -z "$as_dir" && as_dir=.
19164 for ac_exec_ext in '' $ac_executable_extensions; do
19165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19166 ac_cv_prog_ac_ct_AR="ar"
19167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19168 break 2
19169 fi
19170done
19171 done
19172IFS=$as_save_IFS
19173
19174fi
19175fi
19176ac_ct_AR=$ac_cv_prog_ac_ct_AR
19177if test -n "$ac_ct_AR"; then
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19179$as_echo "$ac_ct_AR" >&6; }
19180else
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182$as_echo "no" >&6; }
19183fi
19184
19185 if test "x$ac_ct_AR" = x; then
19186 AR=""
19187 else
19188 case $cross_compiling:$ac_tool_warned in
19189yes:)
19190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19192ac_tool_warned=yes ;;
19193esac
19194 AR=$ac_ct_AR
19195 fi
19196else
19197 AR="$ac_cv_prog_AR"
19198fi
19199
19200
19201# ---------------------- #
19202# Checks for libraries. #
19203# ---------------------- #
19204
19205ac_config_files="$ac_config_files Makefile import/Makefile"
19206
19207ac_config_commands="$ac_config_commands default"
19208
19209cat >confcache <<\_ACEOF
19210# This file is a shell script that caches the results of configure
19211# tests run on this system so they can be shared between configure
19212# scripts and configure runs, see configure's option --config-cache.
19213# It is not useful on other systems. If it contains results you don't
19214# want to keep, you may remove or edit it.
19215#
19216# config.status only pays attention to the cache file if you give it
19217# the --recheck option to rerun configure.
19218#
19219# `ac_cv_env_foo' variables (set or unset) will be overridden when
19220# loading this file, other *unset* `ac_cv_foo' will be assigned the
19221# following values.
19222
19223_ACEOF
19224
19225# The following way of writing the cache mishandles newlines in values,
19226# but we know of no workaround that is simple, portable, and efficient.
19227# So, we kill variables containing newlines.
19228# Ultrix sh set writes to stderr and can't be redirected directly,
19229# and sets the high bit in the cache file unless we assign to the vars.
19230(
19231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19232 eval ac_val=\$$ac_var
19233 case $ac_val in #(
19234 *${as_nl}*)
19235 case $ac_var in #(
19236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19238 esac
19239 case $ac_var in #(
19240 _ | IFS | as_nl) ;; #(
19241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19242 *) { eval $ac_var=; unset $ac_var;} ;;
19243 esac ;;
19244 esac
19245 done
19246
19247 (set) 2>&1 |
19248 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19249 *${as_nl}ac_space=\ *)
19250 # `set' does not quote correctly, so add quotes: double-quote
19251 # substitution turns \\\\ into \\, and sed turns \\ into \.
19252 sed -n \
19253 "s/'/'\\\\''/g;
19254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19255 ;; #(
19256 *)
19257 # `set' quotes correctly as required by POSIX, so do not add quotes.
19258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19259 ;;
19260 esac |
19261 sort
19262) |
19263 sed '
19264 /^ac_cv_env_/b end
19265 t clear
19266 :clear
19267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19268 t end
19269 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19270 :end' >>confcache
19271if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19272 if test -w "$cache_file"; then
19273 test "x$cache_file" != "x/dev/null" &&
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19275$as_echo "$as_me: updating cache $cache_file" >&6;}
19276 cat confcache >$cache_file
19277 else
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19279$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19280 fi
19281fi
19282rm -f confcache
19283
19284test "x$prefix" = xNONE && prefix=$ac_default_prefix
19285# Let make expand exec_prefix.
19286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19287
19288DEFS=-DHAVE_CONFIG_H
19289
19290ac_libobjs=
19291ac_ltlibobjs=
19292for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19293 # 1. Remove the extension, and $U if already installed.
19294 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19295 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19296 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19297 # will be set to the directory where LIBOBJS objects are built.
19298 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19299 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19300done
19301LIBOBJS=$ac_libobjs
19302
19303LTLIBOBJS=$ac_ltlibobjs
19304
19305
19306if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19307 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
19308Usually this means the macro was only invoked conditionally." "$LINENO" 5
19309fi
19310if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19311 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
19312Usually this means the macro was only invoked conditionally." "$LINENO" 5
19313fi
8690e634
JK
19314if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19315 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19316Usually this means the macro was only invoked conditionally." "$LINENO" 5
19317fi
18848e28
GF
19318if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19319 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19320Usually this means the macro was only invoked conditionally." "$LINENO" 5
19321fi
88b48903
WN
19322if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19323 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19324Usually this means the macro was only invoked conditionally." "$LINENO" 5
19325fi
8690e634
JK
19326if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19327 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19328Usually this means the macro was only invoked conditionally." "$LINENO" 5
19329fi
c971b7fa
PA
19330if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19331 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
19332Usually this means the macro was only invoked conditionally." "$LINENO" 5
19333fi
88b48903
WN
19334
19335
8690e634
JK
19336if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19337 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19338Usually this means the macro was only invoked conditionally." "$LINENO" 5
19339fi
c971b7fa
PA
19340if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19341 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19342Usually this means the macro was only invoked conditionally." "$LINENO" 5
19343fi
19344
19345 gl_libobjs=
19346 gl_ltlibobjs=
19347 if test -n "$gl_LIBOBJS"; then
19348 # Remove the extension.
19349 sed_drop_objext='s/\.o$//;s/\.obj$//'
19350 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19351 gl_libobjs="$gl_libobjs $i.$ac_objext"
19352 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19353 done
19354 fi
19355 gl_LIBOBJS=$gl_libobjs
19356
19357 gl_LTLIBOBJS=$gl_ltlibobjs
19358
19359
19360
19361 gltests_libobjs=
19362 gltests_ltlibobjs=
19363 if test -n "$gltests_LIBOBJS"; then
19364 # Remove the extension.
19365 sed_drop_objext='s/\.o$//;s/\.obj$//'
19366 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19367 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19368 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19369 done
19370 fi
19371 gltests_LIBOBJS=$gltests_libobjs
19372
19373 gltests_LTLIBOBJS=$gltests_ltlibobjs
19374
19375
19376if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19377 as_fn_error "conditional \"AMDEP\" was never defined.
19378Usually this means the macro was only invoked conditionally." "$LINENO" 5
19379fi
19380if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19381 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19382Usually this means the macro was only invoked conditionally." "$LINENO" 5
19383fi
19384 if test -n "$EXEEXT"; then
19385 am__EXEEXT_TRUE=
19386 am__EXEEXT_FALSE='#'
19387else
19388 am__EXEEXT_TRUE='#'
19389 am__EXEEXT_FALSE=
19390fi
19391
19392
19393: ${CONFIG_STATUS=./config.status}
19394ac_write_fail=0
19395ac_clean_files_save=$ac_clean_files
19396ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19398$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19399as_write_fail=0
19400cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19401#! $SHELL
19402# Generated by $as_me.
19403# Run this file to recreate the current configuration.
19404# Compiler output produced by configure, useful for debugging
19405# configure, is in config.log if it exists.
19406
19407debug=false
19408ac_cs_recheck=false
19409ac_cs_silent=false
19410
19411SHELL=\${CONFIG_SHELL-$SHELL}
19412export SHELL
19413_ASEOF
19414cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19415## -------------------- ##
19416## M4sh Initialization. ##
19417## -------------------- ##
19418
19419# Be more Bourne compatible
19420DUALCASE=1; export DUALCASE # for MKS sh
19421if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19422 emulate sh
19423 NULLCMD=:
19424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19425 # is contrary to our usage. Disable this feature.
19426 alias -g '${1+"$@"}'='"$@"'
19427 setopt NO_GLOB_SUBST
19428else
19429 case `(set -o) 2>/dev/null` in #(
19430 *posix*) :
19431 set -o posix ;; #(
19432 *) :
19433 ;;
19434esac
19435fi
19436
19437
19438as_nl='
19439'
19440export as_nl
19441# Printing a long string crashes Solaris 7 /usr/bin/printf.
19442as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19443as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19444as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19445# Prefer a ksh shell builtin over an external printf program on Solaris,
19446# but without wasting forks for bash or zsh.
19447if test -z "$BASH_VERSION$ZSH_VERSION" \
19448 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19449 as_echo='print -r --'
19450 as_echo_n='print -rn --'
19451elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19452 as_echo='printf %s\n'
19453 as_echo_n='printf %s'
19454else
19455 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19456 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19457 as_echo_n='/usr/ucb/echo -n'
19458 else
19459 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19460 as_echo_n_body='eval
19461 arg=$1;
19462 case $arg in #(
19463 *"$as_nl"*)
19464 expr "X$arg" : "X\\(.*\\)$as_nl";
19465 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19466 esac;
19467 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19468 '
19469 export as_echo_n_body
19470 as_echo_n='sh -c $as_echo_n_body as_echo'
19471 fi
19472 export as_echo_body
19473 as_echo='sh -c $as_echo_body as_echo'
19474fi
19475
19476# The user is always right.
19477if test "${PATH_SEPARATOR+set}" != set; then
19478 PATH_SEPARATOR=:
19479 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19480 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19481 PATH_SEPARATOR=';'
19482 }
19483fi
19484
19485
19486# IFS
19487# We need space, tab and new line, in precisely that order. Quoting is
19488# there to prevent editors from complaining about space-tab.
19489# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19490# splitting by setting IFS to empty value.)
19491IFS=" "" $as_nl"
19492
19493# Find who we are. Look in the path if we contain no directory separator.
19494case $0 in #((
19495 *[\\/]* ) as_myself=$0 ;;
19496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19497for as_dir in $PATH
19498do
19499 IFS=$as_save_IFS
19500 test -z "$as_dir" && as_dir=.
19501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19502 done
19503IFS=$as_save_IFS
19504
19505 ;;
19506esac
19507# We did not find ourselves, most probably we were run as `sh COMMAND'
19508# in which case we are not to be found in the path.
19509if test "x$as_myself" = x; then
19510 as_myself=$0
19511fi
19512if test ! -f "$as_myself"; then
19513 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19514 exit 1
19515fi
19516
19517# Unset variables that we do not need and which cause bugs (e.g. in
19518# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19519# suppresses any "Segmentation fault" message there. '((' could
19520# trigger a bug in pdksh 5.2.14.
19521for as_var in BASH_ENV ENV MAIL MAILPATH
19522do eval test x\${$as_var+set} = xset \
19523 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19524done
19525PS1='$ '
19526PS2='> '
19527PS4='+ '
19528
19529# NLS nuisances.
19530LC_ALL=C
19531export LC_ALL
19532LANGUAGE=C
19533export LANGUAGE
19534
19535# CDPATH.
19536(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19537
19538
19539# as_fn_error ERROR [LINENO LOG_FD]
19540# ---------------------------------
19541# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19542# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19543# script with status $?, using 1 if that was 0.
19544as_fn_error ()
19545{
19546 as_status=$?; test $as_status -eq 0 && as_status=1
19547 if test "$3"; then
19548 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19549 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19550 fi
19551 $as_echo "$as_me: error: $1" >&2
19552 as_fn_exit $as_status
19553} # as_fn_error
19554
19555
19556# as_fn_set_status STATUS
19557# -----------------------
19558# Set $? to STATUS, without forking.
19559as_fn_set_status ()
19560{
19561 return $1
19562} # as_fn_set_status
19563
19564# as_fn_exit STATUS
19565# -----------------
19566# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19567as_fn_exit ()
19568{
19569 set +e
19570 as_fn_set_status $1
19571 exit $1
19572} # as_fn_exit
19573
19574# as_fn_unset VAR
19575# ---------------
19576# Portably unset VAR.
19577as_fn_unset ()
19578{
19579 { eval $1=; unset $1;}
19580}
19581as_unset=as_fn_unset
19582# as_fn_append VAR VALUE
19583# ----------------------
19584# Append the text in VALUE to the end of the definition contained in VAR. Take
19585# advantage of any shell optimizations that allow amortized linear growth over
19586# repeated appends, instead of the typical quadratic growth present in naive
19587# implementations.
19588if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19589 eval 'as_fn_append ()
19590 {
19591 eval $1+=\$2
19592 }'
19593else
19594 as_fn_append ()
19595 {
19596 eval $1=\$$1\$2
19597 }
19598fi # as_fn_append
19599
19600# as_fn_arith ARG...
19601# ------------------
19602# Perform arithmetic evaluation on the ARGs, and store the result in the
19603# global $as_val. Take advantage of shells that can avoid forks. The arguments
19604# must be portable across $(()) and expr.
19605if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19606 eval 'as_fn_arith ()
19607 {
19608 as_val=$(( $* ))
19609 }'
19610else
19611 as_fn_arith ()
19612 {
19613 as_val=`expr "$@" || test $? -eq 1`
19614 }
19615fi # as_fn_arith
19616
19617
19618if expr a : '\(a\)' >/dev/null 2>&1 &&
19619 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19620 as_expr=expr
19621else
19622 as_expr=false
19623fi
19624
19625if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19626 as_basename=basename
19627else
19628 as_basename=false
19629fi
19630
19631if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19632 as_dirname=dirname
19633else
19634 as_dirname=false
19635fi
19636
19637as_me=`$as_basename -- "$0" ||
19638$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19639 X"$0" : 'X\(//\)$' \| \
19640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19641$as_echo X/"$0" |
19642 sed '/^.*\/\([^/][^/]*\)\/*$/{
19643 s//\1/
19644 q
19645 }
19646 /^X\/\(\/\/\)$/{
19647 s//\1/
19648 q
19649 }
19650 /^X\/\(\/\).*/{
19651 s//\1/
19652 q
19653 }
19654 s/.*/./; q'`
19655
19656# Avoid depending upon Character Ranges.
19657as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19658as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19659as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19660as_cr_digits='0123456789'
19661as_cr_alnum=$as_cr_Letters$as_cr_digits
19662
19663ECHO_C= ECHO_N= ECHO_T=
19664case `echo -n x` in #(((((
19665-n*)
19666 case `echo 'xy\c'` in
19667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19668 xy) ECHO_C='\c';;
19669 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19670 ECHO_T=' ';;
19671 esac;;
19672*)
19673 ECHO_N='-n';;
19674esac
19675
19676rm -f conf$$ conf$$.exe conf$$.file
19677if test -d conf$$.dir; then
19678 rm -f conf$$.dir/conf$$.file
19679else
19680 rm -f conf$$.dir
19681 mkdir conf$$.dir 2>/dev/null
19682fi
19683if (echo >conf$$.file) 2>/dev/null; then
19684 if ln -s conf$$.file conf$$ 2>/dev/null; then
19685 as_ln_s='ln -s'
19686 # ... but there are two gotchas:
19687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19689 # In both cases, we have to default to `cp -p'.
19690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19691 as_ln_s='cp -p'
19692 elif ln conf$$.file conf$$ 2>/dev/null; then
19693 as_ln_s=ln
19694 else
19695 as_ln_s='cp -p'
19696 fi
19697else
19698 as_ln_s='cp -p'
19699fi
19700rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19701rmdir conf$$.dir 2>/dev/null
19702
19703
19704# as_fn_mkdir_p
19705# -------------
19706# Create "$as_dir" as a directory, including parents if necessary.
19707as_fn_mkdir_p ()
19708{
19709
19710 case $as_dir in #(
19711 -*) as_dir=./$as_dir;;
19712 esac
19713 test -d "$as_dir" || eval $as_mkdir_p || {
19714 as_dirs=
19715 while :; do
19716 case $as_dir in #(
19717 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19718 *) as_qdir=$as_dir;;
19719 esac
19720 as_dirs="'$as_qdir' $as_dirs"
19721 as_dir=`$as_dirname -- "$as_dir" ||
19722$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19723 X"$as_dir" : 'X\(//\)[^/]' \| \
19724 X"$as_dir" : 'X\(//\)$' \| \
19725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19726$as_echo X"$as_dir" |
19727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19728 s//\1/
19729 q
19730 }
19731 /^X\(\/\/\)[^/].*/{
19732 s//\1/
19733 q
19734 }
19735 /^X\(\/\/\)$/{
19736 s//\1/
19737 q
19738 }
19739 /^X\(\/\).*/{
19740 s//\1/
19741 q
19742 }
19743 s/.*/./; q'`
19744 test -d "$as_dir" && break
19745 done
19746 test -z "$as_dirs" || eval "mkdir $as_dirs"
19747 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19748
19749
19750} # as_fn_mkdir_p
19751if mkdir -p . 2>/dev/null; then
19752 as_mkdir_p='mkdir -p "$as_dir"'
19753else
19754 test -d ./-p && rmdir ./-p
19755 as_mkdir_p=false
19756fi
19757
19758if test -x / >/dev/null 2>&1; then
19759 as_test_x='test -x'
19760else
19761 if ls -dL / >/dev/null 2>&1; then
19762 as_ls_L_option=L
19763 else
19764 as_ls_L_option=
19765 fi
19766 as_test_x='
19767 eval sh -c '\''
19768 if test -d "$1"; then
19769 test -d "$1/.";
19770 else
19771 case $1 in #(
19772 -*)set "./$1";;
19773 esac;
19774 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19775 ???[sx]*):;;*)false;;esac;fi
19776 '\'' sh
19777 '
19778fi
19779as_executable_p=$as_test_x
19780
19781# Sed expression to map a string onto a valid CPP name.
19782as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19783
19784# Sed expression to map a string onto a valid variable name.
19785as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19786
19787
19788exec 6>&1
19789## ----------------------------------- ##
19790## Main body of $CONFIG_STATUS script. ##
19791## ----------------------------------- ##
19792_ASEOF
19793test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19794
19795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19796# Save the log message, to keep $0 and so on meaningful, and to
19797# report actual input values of CONFIG_FILES etc. instead of their
19798# values after options handling.
19799ac_log="
19800This file was extended by $as_me, which was
19801generated by GNU Autoconf 2.64. Invocation command line was
19802
19803 CONFIG_FILES = $CONFIG_FILES
19804 CONFIG_HEADERS = $CONFIG_HEADERS
19805 CONFIG_LINKS = $CONFIG_LINKS
19806 CONFIG_COMMANDS = $CONFIG_COMMANDS
19807 $ $0 $@
19808
19809on `(hostname || uname -n) 2>/dev/null | sed 1q`
19810"
19811
19812_ACEOF
19813
19814case $ac_config_files in *"
19815"*) set x $ac_config_files; shift; ac_config_files=$*;;
19816esac
19817
19818case $ac_config_headers in *"
19819"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19820esac
19821
19822
19823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19824# Files that config.status was made for.
19825config_files="$ac_config_files"
19826config_headers="$ac_config_headers"
19827config_commands="$ac_config_commands"
19828
19829_ACEOF
19830
19831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19832ac_cs_usage="\
19833\`$as_me' instantiates files and other configuration actions
19834from templates according to the current configuration. Unless the files
19835and actions are specified as TAGs, all are instantiated by default.
19836
19837Usage: $0 [OPTION]... [TAG]...
19838
19839 -h, --help print this help, then exit
19840 -V, --version print version number and configuration settings, then exit
19841 -q, --quiet, --silent
19842 do not print progress messages
19843 -d, --debug don't remove temporary files
19844 --recheck update $as_me by reconfiguring in the same conditions
19845 --file=FILE[:TEMPLATE]
19846 instantiate the configuration file FILE
19847 --header=FILE[:TEMPLATE]
19848 instantiate the configuration header FILE
19849
19850Configuration files:
19851$config_files
19852
19853Configuration headers:
19854$config_headers
19855
19856Configuration commands:
19857$config_commands
19858
19859Report bugs to the package provider."
19860
19861_ACEOF
19862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863ac_cs_version="\\
19864config.status
19865configured by $0, generated by GNU Autoconf 2.64,
19866 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19867
19868Copyright (C) 2009 Free Software Foundation, Inc.
19869This config.status script is free software; the Free Software Foundation
19870gives unlimited permission to copy, distribute and modify it."
19871
19872ac_pwd='$ac_pwd'
19873srcdir='$srcdir'
19874INSTALL='$INSTALL'
19875MKDIR_P='$MKDIR_P'
19876AWK='$AWK'
19877test -n "\$AWK" || AWK=awk
19878_ACEOF
19879
19880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19881# The default lists apply if the user does not specify any file.
19882ac_need_defaults=:
19883while test $# != 0
19884do
19885 case $1 in
19886 --*=*)
19887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19889 ac_shift=:
19890 ;;
19891 *)
19892 ac_option=$1
19893 ac_optarg=$2
19894 ac_shift=shift
19895 ;;
19896 esac
19897
19898 case $ac_option in
19899 # Handling of the options.
19900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19901 ac_cs_recheck=: ;;
19902 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19903 $as_echo "$ac_cs_version"; exit ;;
19904 --debug | --debu | --deb | --de | --d | -d )
19905 debug=: ;;
19906 --file | --fil | --fi | --f )
19907 $ac_shift
19908 case $ac_optarg in
19909 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19910 esac
19911 as_fn_append CONFIG_FILES " '$ac_optarg'"
19912 ac_need_defaults=false;;
19913 --header | --heade | --head | --hea )
19914 $ac_shift
19915 case $ac_optarg in
19916 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19917 esac
19918 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19919 ac_need_defaults=false;;
19920 --he | --h)
19921 # Conflict between --help and --header
19922 as_fn_error "ambiguous option: \`$1'
19923Try \`$0 --help' for more information.";;
19924 --help | --hel | -h )
19925 $as_echo "$ac_cs_usage"; exit ;;
19926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19927 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19928 ac_cs_silent=: ;;
19929
19930 # This is an error.
19931 -*) as_fn_error "unrecognized option: \`$1'
19932Try \`$0 --help' for more information." ;;
19933
19934 *) as_fn_append ac_config_targets " $1"
19935 ac_need_defaults=false ;;
19936
19937 esac
19938 shift
19939done
19940
19941ac_configure_extra_args=
19942
19943if $ac_cs_silent; then
19944 exec 6>/dev/null
19945 ac_configure_extra_args="$ac_configure_extra_args --silent"
19946fi
19947
19948_ACEOF
19949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19950if \$ac_cs_recheck; then
19951 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19952 shift
19953 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19954 CONFIG_SHELL='$SHELL'
19955 export CONFIG_SHELL
19956 exec "\$@"
19957fi
19958
19959_ACEOF
19960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19961exec 5>>config.log
19962{
19963 echo
19964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19965## Running $as_me. ##
19966_ASBOX
19967 $as_echo "$ac_log"
19968} >&5
19969
19970_ACEOF
19971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19972#
19973# INIT-COMMANDS
19974#
19975AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19976
19977_ACEOF
19978
19979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19980
19981# Handling of arguments.
19982for ac_config_target in $ac_config_targets
19983do
19984 case $ac_config_target in
19985 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
19986 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19988 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
19989 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19990
19991 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19992 esac
19993done
19994
19995
19996# If the user did not use the arguments to specify the items to instantiate,
19997# then the envvar interface is used. Set only those that are not.
19998# We use the long form for the default assignment because of an extremely
19999# bizarre bug on SunOS 4.1.3.
20000if $ac_need_defaults; then
20001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20004fi
20005
20006# Have a temporary directory for convenience. Make it in the build tree
20007# simply because there is no reason against having it here, and in addition,
20008# creating and moving files from /tmp can sometimes cause problems.
20009# Hook for its removal unless debugging.
20010# Note that there is a small window in which the directory will not be cleaned:
20011# after its creation but before its name has been assigned to `$tmp'.
20012$debug ||
20013{
20014 tmp=
20015 trap 'exit_status=$?
20016 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20017' 0
20018 trap 'as_fn_exit 1' 1 2 13 15
20019}
20020# Create a (secure) tmp directory for tmp files.
20021
20022{
20023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20024 test -n "$tmp" && test -d "$tmp"
20025} ||
20026{
20027 tmp=./conf$$-$RANDOM
20028 (umask 077 && mkdir "$tmp")
20029} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20030
20031# Set up the scripts for CONFIG_FILES section.
20032# No need to generate them if there are no CONFIG_FILES.
20033# This happens for instance with `./config.status config.h'.
20034if test -n "$CONFIG_FILES"; then
20035
20036
20037ac_cr=`echo X | tr X '\015'`
20038# On cygwin, bash can eat \r inside `` if the user requested igncr.
20039# But we know of no other shell where ac_cr would be empty at this
20040# point, so we can use a bashism as a fallback.
20041if test "x$ac_cr" = x; then
20042 eval ac_cr=\$\'\\r\'
20043fi
20044ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20045if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20046 ac_cs_awk_cr='\r'
20047else
20048 ac_cs_awk_cr=$ac_cr
20049fi
20050
20051echo 'BEGIN {' >"$tmp/subs1.awk" &&
20052_ACEOF
20053
20054
20055{
20056 echo "cat >conf$$subs.awk <<_ACEOF" &&
20057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20058 echo "_ACEOF"
20059} >conf$$subs.sh ||
20060 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20061ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20062ac_delim='%!_!# '
20063for ac_last_try in false false false false false :; do
20064 . ./conf$$subs.sh ||
20065 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20066
20067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20068 if test $ac_delim_n = $ac_delim_num; then
20069 break
20070 elif $ac_last_try; then
20071 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20072 else
20073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20074 fi
20075done
20076rm -f conf$$subs.sh
20077
20078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20079cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20080_ACEOF
20081sed -n '
20082h
20083s/^/S["/; s/!.*/"]=/
20084p
20085g
20086s/^[^!]*!//
20087:repl
20088t repl
20089s/'"$ac_delim"'$//
20090t delim
20091:nl
20092h
20093s/\(.\{148\}\).*/\1/
20094t more1
20095s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20096p
20097n
20098b repl
20099:more1
20100s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20101p
20102g
20103s/.\{148\}//
20104t nl
20105:delim
20106h
20107s/\(.\{148\}\).*/\1/
20108t more2
20109s/["\\]/\\&/g; s/^/"/; s/$/"/
20110p
20111b
20112:more2
20113s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20114p
20115g
20116s/.\{148\}//
20117t delim
20118' <conf$$subs.awk | sed '
20119/^[^""]/{
20120 N
20121 s/\n//
20122}
20123' >>$CONFIG_STATUS || ac_write_fail=1
20124rm -f conf$$subs.awk
20125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20126_ACAWK
20127cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20128 for (key in S) S_is_set[key] = 1
20129 FS = "\a"
20130
20131}
20132{
20133 line = $ 0
20134 nfields = split(line, field, "@")
20135 substed = 0
20136 len = length(field[1])
20137 for (i = 2; i < nfields; i++) {
20138 key = field[i]
20139 keylen = length(key)
20140 if (S_is_set[key]) {
20141 value = S[key]
20142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20143 len += length(value) + length(field[++i])
20144 substed = 1
20145 } else
20146 len += 1 + keylen
20147 }
20148
20149 print line
20150}
20151
20152_ACAWK
20153_ACEOF
20154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20155if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20157else
20158 cat
20159fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20160 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20161_ACEOF
20162
20163# VPATH may cause trouble with some makes, so we remove $(srcdir),
20164# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20165# trailing colons and then remove the whole line if VPATH becomes empty
20166# (actually we leave an empty line to preserve line numbers).
20167if test "x$srcdir" = x.; then
20168 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20169s/:*\$(srcdir):*/:/
20170s/:*\${srcdir}:*/:/
20171s/:*@srcdir@:*/:/
20172s/^\([^=]*=[ ]*\):*/\1/
20173s/:*$//
20174s/^[^=]*=[ ]*$//
20175}'
20176fi
20177
20178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20179fi # test -n "$CONFIG_FILES"
20180
20181# Set up the scripts for CONFIG_HEADERS section.
20182# No need to generate them if there are no CONFIG_HEADERS.
20183# This happens for instance with `./config.status Makefile'.
20184if test -n "$CONFIG_HEADERS"; then
20185cat >"$tmp/defines.awk" <<\_ACAWK ||
20186BEGIN {
20187_ACEOF
20188
20189# Transform confdefs.h into an awk script `defines.awk', embedded as
20190# here-document in config.status, that substitutes the proper values into
20191# config.h.in to produce config.h.
20192
20193# Create a delimiter string that does not exist in confdefs.h, to ease
20194# handling of long lines.
20195ac_delim='%!_!# '
20196for ac_last_try in false false :; do
20197 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20198 if test -z "$ac_t"; then
20199 break
20200 elif $ac_last_try; then
20201 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20202 else
20203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20204 fi
20205done
20206
20207# For the awk script, D is an array of macro values keyed by name,
20208# likewise P contains macro parameters if any. Preserve backslash
20209# newline sequences.
20210
20211ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20212sed -n '
20213s/.\{148\}/&'"$ac_delim"'/g
20214t rset
20215:rset
20216s/^[ ]*#[ ]*define[ ][ ]*/ /
20217t def
20218d
20219:def
20220s/\\$//
20221t bsnl
20222s/["\\]/\\&/g
20223s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20224D["\1"]=" \3"/p
20225s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20226d
20227:bsnl
20228s/["\\]/\\&/g
20229s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20230D["\1"]=" \3\\\\\\n"\\/p
20231t cont
20232s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20233t cont
20234d
20235:cont
20236n
20237s/.\{148\}/&'"$ac_delim"'/g
20238t clear
20239:clear
20240s/\\$//
20241t bsnlc
20242s/["\\]/\\&/g; s/^/"/; s/$/"/p
20243d
20244:bsnlc
20245s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20246b cont
20247' <confdefs.h | sed '
20248s/'"$ac_delim"'/"\\\
20249"/g' >>$CONFIG_STATUS || ac_write_fail=1
20250
20251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20252 for (key in D) D_is_set[key] = 1
20253 FS = "\a"
20254}
20255/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20256 line = \$ 0
20257 split(line, arg, " ")
20258 if (arg[1] == "#") {
20259 defundef = arg[2]
20260 mac1 = arg[3]
20261 } else {
20262 defundef = substr(arg[1], 2)
20263 mac1 = arg[2]
20264 }
20265 split(mac1, mac2, "(") #)
20266 macro = mac2[1]
20267 prefix = substr(line, 1, index(line, defundef) - 1)
20268 if (D_is_set[macro]) {
20269 # Preserve the white space surrounding the "#".
20270 print prefix "define", macro P[macro] D[macro]
20271 next
20272 } else {
20273 # Replace #undef with comments. This is necessary, for example,
20274 # in the case of _POSIX_SOURCE, which is predefined and required
20275 # on some systems where configure will not decide to define it.
20276 if (defundef == "undef") {
20277 print "/*", prefix defundef, macro, "*/"
20278 next
20279 }
20280 }
20281}
20282{ print }
20283_ACAWK
20284_ACEOF
20285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20286 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20287fi # test -n "$CONFIG_HEADERS"
20288
20289
20290eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20291shift
20292for ac_tag
20293do
20294 case $ac_tag in
20295 :[FHLC]) ac_mode=$ac_tag; continue;;
20296 esac
20297 case $ac_mode$ac_tag in
20298 :[FHL]*:*);;
20299 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20300 :[FH]-) ac_tag=-:-;;
20301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20302 esac
20303 ac_save_IFS=$IFS
20304 IFS=:
20305 set x $ac_tag
20306 IFS=$ac_save_IFS
20307 shift
20308 ac_file=$1
20309 shift
20310
20311 case $ac_mode in
20312 :L) ac_source=$1;;
20313 :[FH])
20314 ac_file_inputs=
20315 for ac_f
20316 do
20317 case $ac_f in
20318 -) ac_f="$tmp/stdin";;
20319 *) # Look for the file first in the build tree, then in the source tree
20320 # (if the path is not absolute). The absolute path cannot be DOS-style,
20321 # because $ac_f cannot contain `:'.
20322 test -f "$ac_f" ||
20323 case $ac_f in
20324 [\\/$]*) false;;
20325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20326 esac ||
20327 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20328 esac
20329 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20330 as_fn_append ac_file_inputs " '$ac_f'"
20331 done
20332
20333 # Let's still pretend it is `configure' which instantiates (i.e., don't
20334 # use $as_me), people would be surprised to read:
20335 # /* config.h. Generated by config.status. */
20336 configure_input='Generated from '`
20337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20338 `' by configure.'
20339 if test x"$ac_file" != x-; then
20340 configure_input="$ac_file. $configure_input"
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20342$as_echo "$as_me: creating $ac_file" >&6;}
20343 fi
20344 # Neutralize special characters interpreted by sed in replacement strings.
20345 case $configure_input in #(
20346 *\&* | *\|* | *\\* )
20347 ac_sed_conf_input=`$as_echo "$configure_input" |
20348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20349 *) ac_sed_conf_input=$configure_input;;
20350 esac
20351
20352 case $ac_tag in
20353 *:-:* | *:-) cat >"$tmp/stdin" \
20354 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20355 esac
20356 ;;
20357 esac
20358
20359 ac_dir=`$as_dirname -- "$ac_file" ||
20360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20361 X"$ac_file" : 'X\(//\)[^/]' \| \
20362 X"$ac_file" : 'X\(//\)$' \| \
20363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20364$as_echo X"$ac_file" |
20365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20366 s//\1/
20367 q
20368 }
20369 /^X\(\/\/\)[^/].*/{
20370 s//\1/
20371 q
20372 }
20373 /^X\(\/\/\)$/{
20374 s//\1/
20375 q
20376 }
20377 /^X\(\/\).*/{
20378 s//\1/
20379 q
20380 }
20381 s/.*/./; q'`
20382 as_dir="$ac_dir"; as_fn_mkdir_p
20383 ac_builddir=.
20384
20385case "$ac_dir" in
20386.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20387*)
20388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20389 # A ".." for each directory in $ac_dir_suffix.
20390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20391 case $ac_top_builddir_sub in
20392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20394 esac ;;
20395esac
20396ac_abs_top_builddir=$ac_pwd
20397ac_abs_builddir=$ac_pwd$ac_dir_suffix
20398# for backward compatibility:
20399ac_top_builddir=$ac_top_build_prefix
20400
20401case $srcdir in
20402 .) # We are building in place.
20403 ac_srcdir=.
20404 ac_top_srcdir=$ac_top_builddir_sub
20405 ac_abs_top_srcdir=$ac_pwd ;;
20406 [\\/]* | ?:[\\/]* ) # Absolute name.
20407 ac_srcdir=$srcdir$ac_dir_suffix;
20408 ac_top_srcdir=$srcdir
20409 ac_abs_top_srcdir=$srcdir ;;
20410 *) # Relative name.
20411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20412 ac_top_srcdir=$ac_top_build_prefix$srcdir
20413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20414esac
20415ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20416
20417
20418 case $ac_mode in
20419 :F)
20420 #
20421 # CONFIG_FILE
20422 #
20423
20424 case $INSTALL in
20425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20427 esac
20428 ac_MKDIR_P=$MKDIR_P
20429 case $MKDIR_P in
20430 [\\/$]* | ?:[\\/]* ) ;;
20431 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20432 esac
20433_ACEOF
20434
20435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20436# If the template does not know about datarootdir, expand it.
20437# FIXME: This hack should be removed a few years after 2.60.
20438ac_datarootdir_hack=; ac_datarootdir_seen=
20439ac_sed_dataroot='
20440/datarootdir/ {
20441 p
20442 q
20443}
20444/@datadir@/p
20445/@docdir@/p
20446/@infodir@/p
20447/@localedir@/p
20448/@mandir@/p'
20449case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20450*datarootdir*) ac_datarootdir_seen=yes;;
20451*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20453$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20454_ACEOF
20455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20456 ac_datarootdir_hack='
20457 s&@datadir@&$datadir&g
20458 s&@docdir@&$docdir&g
20459 s&@infodir@&$infodir&g
20460 s&@localedir@&$localedir&g
20461 s&@mandir@&$mandir&g
20462 s&\\\${datarootdir}&$datarootdir&g' ;;
20463esac
20464_ACEOF
20465
20466# Neutralize VPATH when `$srcdir' = `.'.
20467# Shell code in configure.ac might set extrasub.
20468# FIXME: do we really want to maintain this feature?
20469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20470ac_sed_extra="$ac_vpsub
20471$extrasub
20472_ACEOF
20473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20474:t
20475/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20476s|@configure_input@|$ac_sed_conf_input|;t t
20477s&@top_builddir@&$ac_top_builddir_sub&;t t
20478s&@top_build_prefix@&$ac_top_build_prefix&;t t
20479s&@srcdir@&$ac_srcdir&;t t
20480s&@abs_srcdir@&$ac_abs_srcdir&;t t
20481s&@top_srcdir@&$ac_top_srcdir&;t t
20482s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20483s&@builddir@&$ac_builddir&;t t
20484s&@abs_builddir@&$ac_abs_builddir&;t t
20485s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20486s&@INSTALL@&$ac_INSTALL&;t t
20487s&@MKDIR_P@&$ac_MKDIR_P&;t t
20488$ac_datarootdir_hack
20489"
20490eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20491 || as_fn_error "could not create $ac_file" "$LINENO" 5
20492
20493test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20497which seems to be undefined. Please make sure it is defined." >&5
20498$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20499which seems to be undefined. Please make sure it is defined." >&2;}
20500
20501 rm -f "$tmp/stdin"
20502 case $ac_file in
20503 -) cat "$tmp/out" && rm -f "$tmp/out";;
20504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20505 esac \
20506 || as_fn_error "could not create $ac_file" "$LINENO" 5
20507 ;;
20508 :H)
20509 #
20510 # CONFIG_HEADER
20511 #
20512 if test x"$ac_file" != x-; then
20513 {
20514 $as_echo "/* $configure_input */" \
20515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20516 } >"$tmp/config.h" \
20517 || as_fn_error "could not create $ac_file" "$LINENO" 5
20518 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20520$as_echo "$as_me: $ac_file is unchanged" >&6;}
20521 else
20522 rm -f "$ac_file"
20523 mv "$tmp/config.h" "$ac_file" \
20524 || as_fn_error "could not create $ac_file" "$LINENO" 5
20525 fi
20526 else
20527 $as_echo "/* $configure_input */" \
20528 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20529 || as_fn_error "could not create -" "$LINENO" 5
20530 fi
20531# Compute "$ac_file"'s index in $config_headers.
20532_am_arg="$ac_file"
20533_am_stamp_count=1
20534for _am_header in $config_headers :; do
20535 case $_am_header in
20536 $_am_arg | $_am_arg:* )
20537 break ;;
20538 * )
20539 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20540 esac
20541done
20542echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20543$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$_am_arg" : 'X\(//\)[^/]' \| \
20545 X"$_am_arg" : 'X\(//\)$' \| \
20546 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20547$as_echo X"$_am_arg" |
20548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20549 s//\1/
20550 q
20551 }
20552 /^X\(\/\/\)[^/].*/{
20553 s//\1/
20554 q
20555 }
20556 /^X\(\/\/\)$/{
20557 s//\1/
20558 q
20559 }
20560 /^X\(\/\).*/{
20561 s//\1/
20562 q
20563 }
20564 s/.*/./; q'`/stamp-h$_am_stamp_count
20565 ;;
20566
20567 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20568$as_echo "$as_me: executing $ac_file commands" >&6;}
20569 ;;
20570 esac
20571
20572
20573 case $ac_file$ac_mode in
20574 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20575 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20576 # are listed without --file. Let's play safe and only enable the eval
20577 # if we detect the quoting.
20578 case $CONFIG_FILES in
20579 *\'*) eval set x "$CONFIG_FILES" ;;
20580 *) set x $CONFIG_FILES ;;
20581 esac
20582 shift
20583 for mf
20584 do
20585 # Strip MF so we end up with the name of the file.
20586 mf=`echo "$mf" | sed -e 's/:.*$//'`
20587 # Check whether this is an Automake generated Makefile or not.
20588 # We used to match only the files named `Makefile.in', but
20589 # some people rename them; so instead we look at the file content.
20590 # Grep'ing the first line is not enough: some people post-process
20591 # each Makefile.in and add a new line on top of each file to say so.
20592 # Grep'ing the whole file is not good either: AIX grep has a line
20593 # limit of 2048, but all sed's we know have understand at least 4000.
20594 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20595 dirpart=`$as_dirname -- "$mf" ||
20596$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20597 X"$mf" : 'X\(//\)[^/]' \| \
20598 X"$mf" : 'X\(//\)$' \| \
20599 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20600$as_echo X"$mf" |
20601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20602 s//\1/
20603 q
20604 }
20605 /^X\(\/\/\)[^/].*/{
20606 s//\1/
20607 q
20608 }
20609 /^X\(\/\/\)$/{
20610 s//\1/
20611 q
20612 }
20613 /^X\(\/\).*/{
20614 s//\1/
20615 q
20616 }
20617 s/.*/./; q'`
20618 else
20619 continue
20620 fi
20621 # Extract the definition of DEPDIR, am__include, and am__quote
20622 # from the Makefile without running `make'.
20623 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20624 test -z "$DEPDIR" && continue
20625 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20626 test -z "am__include" && continue
20627 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20628 # When using ansi2knr, U may be empty or an underscore; expand it
20629 U=`sed -n 's/^U = //p' < "$mf"`
20630 # Find all dependency output files, they are included files with
20631 # $(DEPDIR) in their names. We invoke sed twice because it is the
20632 # simplest approach to changing $(DEPDIR) to its actual value in the
20633 # expansion.
20634 for file in `sed -n "
20635 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20637 # Make sure the directory exists.
20638 test -f "$dirpart/$file" && continue
20639 fdir=`$as_dirname -- "$file" ||
20640$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641 X"$file" : 'X\(//\)[^/]' \| \
20642 X"$file" : 'X\(//\)$' \| \
20643 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20644$as_echo X"$file" |
20645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20646 s//\1/
20647 q
20648 }
20649 /^X\(\/\/\)[^/].*/{
20650 s//\1/
20651 q
20652 }
20653 /^X\(\/\/\)$/{
20654 s//\1/
20655 q
20656 }
20657 /^X\(\/\).*/{
20658 s//\1/
20659 q
20660 }
20661 s/.*/./; q'`
20662 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20663 # echo "creating $dirpart/$file"
20664 echo '# dummy' > "$dirpart/$file"
20665 done
20666 done
20667}
20668 ;;
20669 "default":C)
20670case x$CONFIG_HEADERS in
20671xconfig.h:config.in)
20672echo > stamp-h ;;
20673esac
20674 ;;
20675
20676 esac
20677done # for ac_tag
20678
20679
20680as_fn_exit 0
20681_ACEOF
20682ac_clean_files=$ac_clean_files_save
20683
20684test $ac_write_fail = 0 ||
20685 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20686
20687
20688# configure is writing to config.log, and then calls config.status.
20689# config.status does its own redirection, appending to config.log.
20690# Unfortunately, on DOS this fails, as config.log is still kept open
20691# by configure, so config.status won't be able to write to it; its
20692# output is simply discarded. So we exec the FD to /dev/null,
20693# effectively closing config.log, so it can be properly (re)opened and
20694# appended to by config.status. When coming back to configure, we
20695# need to make the FD available again.
20696if test "$no_create" != yes; then
20697 ac_cs_success=:
20698 ac_config_status_args=
20699 test "$silent" = yes &&
20700 ac_config_status_args="$ac_config_status_args --quiet"
20701 exec 5>/dev/null
20702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20703 exec 5>>config.log
20704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20705 # would make configure fail if this is the last instruction.
20706 $ac_cs_success || as_fn_exit $?
20707fi
20708if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20710$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20711fi
20712
20713
20714exit 0
This page took 1.139244 seconds and 4 git commands to generate.