Import canonicalize-lgpl
[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
09607c9e
TT
659PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661TIME_H_DEFINES_STRUCT_TIMESPEC
662NEXT_AS_FIRST_DIRECTIVE_TIME_H
663NEXT_TIME_H
664REPLACE_TIMEGM
665REPLACE_NANOSLEEP
666REPLACE_MKTIME
667REPLACE_LOCALTIME_R
668HAVE_TIMEGM
669HAVE_STRPTIME
670HAVE_NANOSLEEP
671HAVE_DECL_LOCALTIME_R
672GNULIB_TIME_R
673GNULIB_TIMEGM
674GNULIB_STRPTIME
675GNULIB_NANOSLEEP
676GNULIB_MKTIME
63ce7108
TT
677WINDOWS_64_BIT_OFF_T
678NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679NEXT_SYS_TYPES_H
09607c9e
TT
680MKDIR_P
681WINDOWS_64_BIT_ST_SIZE
682NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683NEXT_SYS_STAT_H
2196f55f
YQ
684NEXT_AS_FIRST_DIRECTIVE_STRING_H
685NEXT_STRING_H
98399780
YQ
686NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
687NEXT_STDLIB_H
2196f55f
YQ
688NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
689NEXT_STDDEF_H
690GL_GENERATE_STDDEF_H_FALSE
691GL_GENERATE_STDDEF_H_TRUE
692STDDEF_H
693HAVE_WCHAR_T
694REPLACE_NULL
695HAVE__BOOL
696GL_GENERATE_STDBOOL_H_FALSE
697GL_GENERATE_STDBOOL_H_TRUE
698STDBOOL_H
c971b7fa
PA
699UNDEFINE_STRTOK_R
700REPLACE_STRTOK_R
701REPLACE_STRSIGNAL
702REPLACE_STRNLEN
703REPLACE_STRNDUP
704REPLACE_STRNCAT
705REPLACE_STRERROR_R
706REPLACE_STRERROR
707REPLACE_STRCHRNUL
708REPLACE_STRCASESTR
709REPLACE_STRSTR
710REPLACE_STRDUP
711REPLACE_STPNCPY
712REPLACE_MEMMEM
713REPLACE_MEMCHR
714HAVE_STRVERSCMP
715HAVE_DECL_STRSIGNAL
716HAVE_DECL_STRERROR_R
717HAVE_DECL_STRTOK_R
718HAVE_STRCASESTR
719HAVE_STRSEP
720HAVE_STRPBRK
721HAVE_DECL_STRNLEN
722HAVE_DECL_STRNDUP
723HAVE_DECL_STRDUP
724HAVE_STRCHRNUL
725HAVE_STPNCPY
726HAVE_STPCPY
727HAVE_RAWMEMCHR
728HAVE_DECL_MEMRCHR
729HAVE_MEMPCPY
730HAVE_DECL_MEMMEM
731HAVE_MEMCHR
732HAVE_FFSLL
733HAVE_FFSL
734HAVE_MBSLEN
735GNULIB_STRVERSCMP
736GNULIB_STRSIGNAL
737GNULIB_STRERROR_R
738GNULIB_STRERROR
739GNULIB_MBSTOK_R
740GNULIB_MBSSEP
741GNULIB_MBSSPN
742GNULIB_MBSPBRK
743GNULIB_MBSCSPN
744GNULIB_MBSCASESTR
745GNULIB_MBSPCASECMP
746GNULIB_MBSNCASECMP
747GNULIB_MBSCASECMP
748GNULIB_MBSSTR
749GNULIB_MBSRCHR
750GNULIB_MBSCHR
751GNULIB_MBSNLEN
752GNULIB_MBSLEN
753GNULIB_STRTOK_R
754GNULIB_STRCASESTR
755GNULIB_STRSTR
756GNULIB_STRSEP
757GNULIB_STRPBRK
758GNULIB_STRNLEN
759GNULIB_STRNDUP
760GNULIB_STRNCAT
761GNULIB_STRDUP
762GNULIB_STRCHRNUL
763GNULIB_STPNCPY
764GNULIB_STPCPY
765GNULIB_RAWMEMCHR
766GNULIB_MEMRCHR
767GNULIB_MEMPCPY
768GNULIB_MEMMEM
769GNULIB_MEMCHR
770GNULIB_FFSLL
771GNULIB_FFSL
8690e634
JK
772LOCALE_FR
773LOCALE_FR_UTF8
774LOCALE_ZH_CN
775LOCALE_JA
776REPLACE_WCSWIDTH
777REPLACE_WCWIDTH
778REPLACE_WCSNRTOMBS
779REPLACE_WCSRTOMBS
780REPLACE_WCRTOMB
781REPLACE_MBSNRTOWCS
782REPLACE_MBSRTOWCS
783REPLACE_MBRLEN
784REPLACE_MBRTOWC
785REPLACE_MBSINIT
786REPLACE_WCTOB
787REPLACE_BTOWC
788REPLACE_MBSTATE_T
789HAVE_DECL_WCWIDTH
790HAVE_DECL_WCTOB
791HAVE_WCSWIDTH
792HAVE_WCSTOK
793HAVE_WCSSTR
794HAVE_WCSPBRK
795HAVE_WCSSPN
796HAVE_WCSCSPN
797HAVE_WCSRCHR
798HAVE_WCSCHR
799HAVE_WCSDUP
800HAVE_WCSXFRM
801HAVE_WCSCOLL
802HAVE_WCSNCASECMP
803HAVE_WCSCASECMP
804HAVE_WCSNCMP
805HAVE_WCSCMP
806HAVE_WCSNCAT
807HAVE_WCSCAT
808HAVE_WCPNCPY
809HAVE_WCSNCPY
810HAVE_WCPCPY
811HAVE_WCSCPY
812HAVE_WCSNLEN
813HAVE_WCSLEN
814HAVE_WMEMSET
815HAVE_WMEMMOVE
816HAVE_WMEMCPY
817HAVE_WMEMCMP
818HAVE_WMEMCHR
819HAVE_WCSNRTOMBS
820HAVE_WCSRTOMBS
821HAVE_WCRTOMB
822HAVE_MBSNRTOWCS
823HAVE_MBSRTOWCS
824HAVE_MBRLEN
825HAVE_MBRTOWC
826HAVE_MBSINIT
827HAVE_BTOWC
828GNULIB_WCSWIDTH
829GNULIB_WCSTOK
830GNULIB_WCSSTR
831GNULIB_WCSPBRK
832GNULIB_WCSSPN
833GNULIB_WCSCSPN
834GNULIB_WCSRCHR
835GNULIB_WCSCHR
836GNULIB_WCSDUP
837GNULIB_WCSXFRM
838GNULIB_WCSCOLL
839GNULIB_WCSNCASECMP
840GNULIB_WCSCASECMP
841GNULIB_WCSNCMP
842GNULIB_WCSCMP
843GNULIB_WCSNCAT
844GNULIB_WCSCAT
845GNULIB_WCPNCPY
846GNULIB_WCSNCPY
847GNULIB_WCPCPY
848GNULIB_WCSCPY
849GNULIB_WCSNLEN
850GNULIB_WCSLEN
851GNULIB_WMEMSET
852GNULIB_WMEMMOVE
853GNULIB_WMEMCPY
854GNULIB_WMEMCMP
855GNULIB_WMEMCHR
856GNULIB_WCWIDTH
857GNULIB_WCSNRTOMBS
858GNULIB_WCSRTOMBS
859GNULIB_WCRTOMB
860GNULIB_MBSNRTOWCS
861GNULIB_MBSRTOWCS
862GNULIB_MBRLEN
863GNULIB_MBRTOWC
864GNULIB_MBSINIT
865GNULIB_WCTOB
866GNULIB_BTOWC
88b48903
WN
867NEXT_AS_FIRST_DIRECTIVE_MATH_H
868NEXT_MATH_H
f45c62c4
YQ
869REPLACE_UTIMENSAT
870REPLACE_STAT
871REPLACE_MKNOD
872REPLACE_MKFIFO
873REPLACE_MKDIR
874REPLACE_LSTAT
875REPLACE_FUTIMENS
876REPLACE_FSTATAT
877REPLACE_FSTAT
878HAVE_UTIMENSAT
879HAVE_MKNODAT
880HAVE_MKNOD
881HAVE_MKFIFOAT
882HAVE_MKFIFO
883HAVE_MKDIRAT
884HAVE_LSTAT
885HAVE_LCHMOD
886HAVE_FUTIMENS
887HAVE_FSTATAT
888HAVE_FCHMODAT
889GNULIB_UTIMENSAT
890GNULIB_STAT
891GNULIB_MKNODAT
892GNULIB_MKNOD
893GNULIB_MKFIFOAT
894GNULIB_MKFIFO
895GNULIB_MKDIRAT
896GNULIB_LSTAT
897GNULIB_LCHMOD
898GNULIB_FUTIMENS
899GNULIB_FSTATAT
900GNULIB_FSTAT
901GNULIB_FCHMODAT
8690e634
JK
902LOCALCHARSET_TESTS_ENVIRONMENT
903GLIBC21
c971b7fa
PA
904NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
905NEXT_INTTYPES_H
906UINT64_MAX_EQ_ULONG_MAX
907UINT32_MAX_LT_UINTMAX_MAX
908PRIPTR_PREFIX
909PRI_MACROS_BROKEN
910INT64_MAX_EQ_LONG_MAX
911INT32_MAX_LT_INTMAX_MAX
912REPLACE_STRTOIMAX
913HAVE_DECL_STRTOUMAX
914HAVE_DECL_STRTOIMAX
915HAVE_DECL_IMAXDIV
916HAVE_DECL_IMAXABS
917GNULIB_STRTOUMAX
918GNULIB_STRTOIMAX
919GNULIB_IMAXDIV
920GNULIB_IMAXABS
921GL_GENERATE_STDINT_H_FALSE
922GL_GENERATE_STDINT_H_TRUE
923STDINT_H
924WINT_T_SUFFIX
925WCHAR_T_SUFFIX
926SIG_ATOMIC_T_SUFFIX
927SIZE_T_SUFFIX
928PTRDIFF_T_SUFFIX
929HAVE_SIGNED_WINT_T
930HAVE_SIGNED_WCHAR_T
931HAVE_SIGNED_SIG_ATOMIC_T
932BITSIZEOF_WINT_T
933BITSIZEOF_WCHAR_T
934BITSIZEOF_SIG_ATOMIC_T
935BITSIZEOF_SIZE_T
936BITSIZEOF_PTRDIFF_T
937APPLE_UNIVERSAL_BUILD
938HAVE_SYS_BITYPES_H
939HAVE_SYS_INTTYPES_H
940HAVE_STDINT_H
941NEXT_AS_FIRST_DIRECTIVE_STDINT_H
942NEXT_STDINT_H
c971b7fa
PA
943HAVE_SYS_TYPES_H
944HAVE_INTTYPES_H
945HAVE_WCHAR_H
946HAVE_UNSIGNED_LONG_LONG_INT
947HAVE_LONG_LONG_INT
88b48903
WN
948FREXPL_LIBM
949HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
950FREXP_LIBM
951REPLACE_TRUNCL
952REPLACE_TRUNCF
953REPLACE_TRUNC
954REPLACE_SQRTL
955REPLACE_SIGNBIT_USING_GCC
956REPLACE_SIGNBIT
957REPLACE_ROUNDL
958REPLACE_ROUNDF
959REPLACE_ROUND
960REPLACE_REMAINDERL
961REPLACE_REMAINDERF
962REPLACE_REMAINDER
963REPLACE_NAN
964REPLACE_MODFL
965REPLACE_MODFF
966REPLACE_MODF
967REPLACE_LOGBL
968REPLACE_LOGBF
969REPLACE_LOGB
970REPLACE_LOG2L
971REPLACE_LOG2F
972REPLACE_LOG2
973REPLACE_LOG1PL
974REPLACE_LOG1PF
975REPLACE_LOG1P
976REPLACE_LOG10L
977REPLACE_LOG10F
978REPLACE_LOG10
979REPLACE_LOGL
980REPLACE_LOGF
981REPLACE_LOG
982REPLACE_LDEXPL
983REPLACE_ISNAN
984REPLACE_ISINF
985REPLACE_ISFINITE
986REPLACE_ILOGBF
987REPLACE_ILOGB
988REPLACE_HYPOTL
989REPLACE_HYPOTF
990REPLACE_HYPOT
991REPLACE_HUGE_VAL
992REPLACE_FREXPL
993REPLACE_FREXP
994REPLACE_FREXPF
995REPLACE_FMODL
996REPLACE_FMODF
997REPLACE_FMOD
998REPLACE_FMAL
999REPLACE_FMAF
1000REPLACE_FMA
1001REPLACE_FLOORL
1002REPLACE_FLOORF
1003REPLACE_FLOOR
1004REPLACE_FABSL
1005REPLACE_EXP2L
1006REPLACE_EXP2
1007REPLACE_EXPM1F
1008REPLACE_EXPM1
1009REPLACE_CEILL
1010REPLACE_CEILF
1011REPLACE_CEIL
1012REPLACE_CBRTL
1013REPLACE_CBRTF
1014HAVE_DECL_TRUNCL
1015HAVE_DECL_TRUNCF
1016HAVE_DECL_TRUNC
1017HAVE_DECL_TANL
1018HAVE_DECL_SQRTL
1019HAVE_DECL_SINL
1020HAVE_DECL_ROUNDL
1021HAVE_DECL_ROUNDF
1022HAVE_DECL_ROUND
1023HAVE_DECL_RINTF
1024HAVE_DECL_REMAINDERL
1025HAVE_DECL_REMAINDER
1026HAVE_DECL_LOGB
1027HAVE_DECL_LOG2L
1028HAVE_DECL_LOG2F
1029HAVE_DECL_LOG2
1030HAVE_DECL_LOG10L
1031HAVE_DECL_LOGL
1032HAVE_DECL_LDEXPL
1033HAVE_DECL_FREXPL
1034HAVE_DECL_FLOORL
1035HAVE_DECL_FLOORF
1036HAVE_DECL_EXPM1L
1037HAVE_DECL_EXP2L
1038HAVE_DECL_EXP2F
1039HAVE_DECL_EXP2
1040HAVE_DECL_EXPL
1041HAVE_DECL_COSL
1042HAVE_DECL_COPYSIGNF
1043HAVE_DECL_CEILL
1044HAVE_DECL_CEILF
1045HAVE_DECL_CBRTL
1046HAVE_DECL_CBRTF
1047HAVE_DECL_ATANL
1048HAVE_DECL_ASINL
1049HAVE_DECL_ACOSL
1050HAVE_TANHF
1051HAVE_TANL
1052HAVE_TANF
1053HAVE_SQRTL
1054HAVE_SQRTF
1055HAVE_SINHF
1056HAVE_SINL
1057HAVE_SINF
1058HAVE_RINTL
1059HAVE_RINT
1060HAVE_REMAINDERF
1061HAVE_REMAINDER
1062HAVE_POWF
1063HAVE_MODFL
1064HAVE_MODFF
1065HAVE_LOGBL
1066HAVE_LOGBF
1067HAVE_LOG1PL
1068HAVE_LOG1PF
1069HAVE_LOG1P
1070HAVE_LOG10L
1071HAVE_LOG10F
1072HAVE_LOGL
1073HAVE_LOGF
1074HAVE_LDEXPF
1075HAVE_ISNANL
1076HAVE_ISNAND
1077HAVE_ISNANF
1078HAVE_ILOGBL
1079HAVE_ILOGBF
1080HAVE_ILOGB
1081HAVE_HYPOTL
1082HAVE_HYPOTF
1083HAVE_FREXPF
1084HAVE_FMODL
1085HAVE_FMODF
1086HAVE_FMAL
1087HAVE_FMAF
1088HAVE_FMA
1089HAVE_FABSL
1090HAVE_FABSF
1091HAVE_EXPM1F
1092HAVE_EXPM1
1093HAVE_EXPL
1094HAVE_EXPF
1095HAVE_COSHF
1096HAVE_COSL
1097HAVE_COSF
1098HAVE_COPYSIGNL
1099HAVE_COPYSIGN
1100HAVE_CBRTL
1101HAVE_CBRTF
1102HAVE_CBRT
1103HAVE_ATAN2F
1104HAVE_ATANL
1105HAVE_ATANF
1106HAVE_ASINL
1107HAVE_ASINF
1108HAVE_ACOSL
1109HAVE_ACOSF
1110GNULIB_TRUNCL
1111GNULIB_TRUNCF
1112GNULIB_TRUNC
1113GNULIB_TANHF
1114GNULIB_TANL
1115GNULIB_TANF
1116GNULIB_SQRTL
1117GNULIB_SQRTF
1118GNULIB_SINHF
1119GNULIB_SINL
1120GNULIB_SINF
1121GNULIB_SIGNBIT
1122GNULIB_ROUNDL
1123GNULIB_ROUNDF
1124GNULIB_ROUND
1125GNULIB_RINTL
1126GNULIB_RINTF
1127GNULIB_RINT
1128GNULIB_REMAINDERL
1129GNULIB_REMAINDERF
1130GNULIB_REMAINDER
1131GNULIB_POWF
1132GNULIB_MODFL
1133GNULIB_MODFF
1134GNULIB_MODF
1135GNULIB_LOGBL
1136GNULIB_LOGBF
1137GNULIB_LOGB
1138GNULIB_LOG2L
1139GNULIB_LOG2F
1140GNULIB_LOG2
1141GNULIB_LOG1PL
1142GNULIB_LOG1PF
1143GNULIB_LOG1P
1144GNULIB_LOG10L
1145GNULIB_LOG10F
1146GNULIB_LOG10
1147GNULIB_LOGL
1148GNULIB_LOGF
1149GNULIB_LOG
1150GNULIB_LDEXPL
1151GNULIB_LDEXPF
1152GNULIB_ISNANL
1153GNULIB_ISNAND
1154GNULIB_ISNANF
1155GNULIB_ISNAN
1156GNULIB_ISINF
1157GNULIB_ISFINITE
1158GNULIB_ILOGBL
1159GNULIB_ILOGBF
1160GNULIB_ILOGB
1161GNULIB_HYPOTL
1162GNULIB_HYPOTF
1163GNULIB_HYPOT
1164GNULIB_FREXPL
1165GNULIB_FREXP
1166GNULIB_FREXPF
1167GNULIB_FMODL
1168GNULIB_FMODF
1169GNULIB_FMOD
1170GNULIB_FMAL
1171GNULIB_FMAF
1172GNULIB_FMA
1173GNULIB_FLOORL
1174GNULIB_FLOORF
1175GNULIB_FLOOR
1176GNULIB_FABSL
1177GNULIB_FABSF
1178GNULIB_EXPM1L
1179GNULIB_EXPM1F
1180GNULIB_EXPM1
1181GNULIB_EXP2L
1182GNULIB_EXP2F
1183GNULIB_EXP2
1184GNULIB_EXPL
1185GNULIB_EXPF
1186GNULIB_COSHF
1187GNULIB_COSL
1188GNULIB_COSF
1189GNULIB_COPYSIGNL
1190GNULIB_COPYSIGNF
1191GNULIB_COPYSIGN
1192GNULIB_CEILL
1193GNULIB_CEILF
1194GNULIB_CEIL
1195GNULIB_CBRTL
1196GNULIB_CBRTF
1197GNULIB_CBRT
1198GNULIB_ATAN2F
1199GNULIB_ATANL
1200GNULIB_ATANF
1201GNULIB_ASINL
1202GNULIB_ASINF
1203GNULIB_ACOSL
1204GNULIB_ACOSF
8690e634
JK
1205GL_GENERATE_FNMATCH_H_FALSE
1206GL_GENERATE_FNMATCH_H_TRUE
1207FNMATCH_H
88b48903
WN
1208REPLACE_ITOLD
1209GL_GENERATE_FLOAT_H_FALSE
1210GL_GENERATE_FLOAT_H_TRUE
1211FLOAT_H
1212NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1213NEXT_FLOAT_H
18848e28
GF
1214EOVERFLOW_VALUE
1215EOVERFLOW_HIDDEN
1216ENOLINK_VALUE
1217ENOLINK_HIDDEN
1218EMULTIHOP_VALUE
1219EMULTIHOP_HIDDEN
1220GL_GENERATE_ERRNO_H_FALSE
1221GL_GENERATE_ERRNO_H_TRUE
1222ERRNO_H
1223NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1224NEXT_ERRNO_H
e26b6bb0
TT
1225HAVE_DIRENT_H
1226NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1227NEXT_DIRENT_H
88b48903
WN
1228PRAGMA_COLUMNS
1229PRAGMA_SYSTEM_HEADER
1230INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1231INCLUDE_NEXT
e26b6bb0
TT
1232REPLACE_FDOPENDIR
1233REPLACE_DIRFD
1234REPLACE_CLOSEDIR
1235REPLACE_OPENDIR
1236HAVE_ALPHASORT
1237HAVE_SCANDIR
1238HAVE_FDOPENDIR
1239HAVE_DECL_FDOPENDIR
1240HAVE_DECL_DIRFD
1241HAVE_CLOSEDIR
1242HAVE_REWINDDIR
1243HAVE_READDIR
1244HAVE_OPENDIR
1245GNULIB_ALPHASORT
1246GNULIB_SCANDIR
1247GNULIB_FDOPENDIR
1248GNULIB_DIRFD
1249GNULIB_CLOSEDIR
1250GNULIB_REWINDDIR
1251GNULIB_READDIR
1252GNULIB_OPENDIR
1253UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1254UNISTD_H_HAVE_WINSOCK2_H
1255REPLACE_WRITE
1256REPLACE_USLEEP
1257REPLACE_UNLINKAT
1258REPLACE_UNLINK
1259REPLACE_TTYNAME_R
1260REPLACE_SYMLINK
1261REPLACE_SLEEP
1262REPLACE_RMDIR
1263REPLACE_READLINK
1264REPLACE_READ
1265REPLACE_PWRITE
1266REPLACE_PREAD
1267REPLACE_LSEEK
1268REPLACE_LINKAT
1269REPLACE_LINK
1270REPLACE_LCHOWN
1271REPLACE_ISATTY
1272REPLACE_GETPAGESIZE
1273REPLACE_GETGROUPS
1274REPLACE_GETLOGIN_R
1275REPLACE_GETDOMAINNAME
1276REPLACE_GETCWD
1277REPLACE_FTRUNCATE
1278REPLACE_FCHOWNAT
1279REPLACE_DUP2
1280REPLACE_DUP
1281REPLACE_CLOSE
1282REPLACE_CHOWN
1283HAVE_SYS_PARAM_H
1284HAVE_OS_H
1285HAVE_DECL_TTYNAME_R
1286HAVE_DECL_SETHOSTNAME
1287HAVE_DECL_GETUSERSHELL
1288HAVE_DECL_GETPAGESIZE
1289HAVE_DECL_GETLOGIN_R
1290HAVE_DECL_GETDOMAINNAME
1291HAVE_DECL_FDATASYNC
1292HAVE_DECL_FCHDIR
1293HAVE_DECL_ENVIRON
1294HAVE_USLEEP
1295HAVE_UNLINKAT
1296HAVE_SYMLINKAT
1297HAVE_SYMLINK
1298HAVE_SLEEP
1299HAVE_SETHOSTNAME
1300HAVE_READLINKAT
1301HAVE_READLINK
1302HAVE_PWRITE
1303HAVE_PREAD
1304HAVE_PIPE2
1305HAVE_PIPE
1306HAVE_LINKAT
1307HAVE_LINK
1308HAVE_LCHOWN
1309HAVE_GROUP_MEMBER
1310HAVE_GETPAGESIZE
1311HAVE_GETLOGIN
1312HAVE_GETHOSTNAME
1313HAVE_GETGROUPS
1314HAVE_GETDTABLESIZE
1315HAVE_FTRUNCATE
1316HAVE_FSYNC
1317HAVE_FDATASYNC
1318HAVE_FCHOWNAT
1319HAVE_FCHDIR
1320HAVE_FACCESSAT
1321HAVE_EUIDACCESS
1322HAVE_DUP3
1323HAVE_DUP2
1324HAVE_CHOWN
1325GNULIB_WRITE
1326GNULIB_USLEEP
1327GNULIB_UNLINKAT
1328GNULIB_UNLINK
1329GNULIB_UNISTD_H_SIGPIPE
1330GNULIB_UNISTD_H_NONBLOCKING
1331GNULIB_TTYNAME_R
1332GNULIB_SYMLINKAT
1333GNULIB_SYMLINK
1334GNULIB_SLEEP
1335GNULIB_SETHOSTNAME
1336GNULIB_RMDIR
1337GNULIB_READLINKAT
1338GNULIB_READLINK
1339GNULIB_READ
1340GNULIB_PWRITE
1341GNULIB_PREAD
1342GNULIB_PIPE2
1343GNULIB_PIPE
1344GNULIB_LSEEK
1345GNULIB_LINKAT
1346GNULIB_LINK
1347GNULIB_LCHOWN
1348GNULIB_ISATTY
1349GNULIB_GROUP_MEMBER
1350GNULIB_GETUSERSHELL
1351GNULIB_GETPAGESIZE
1352GNULIB_GETLOGIN_R
1353GNULIB_GETLOGIN
1354GNULIB_GETHOSTNAME
1355GNULIB_GETGROUPS
1356GNULIB_GETDTABLESIZE
1357GNULIB_GETDOMAINNAME
1358GNULIB_GETCWD
1359GNULIB_FTRUNCATE
1360GNULIB_FSYNC
1361GNULIB_FDATASYNC
1362GNULIB_FCHOWNAT
1363GNULIB_FCHDIR
1364GNULIB_FACCESSAT
1365GNULIB_EUIDACCESS
1366GNULIB_ENVIRON
1367GNULIB_DUP3
1368GNULIB_DUP2
1369GNULIB_DUP
1370GNULIB_CLOSE
1371GNULIB_CHOWN
1372GNULIB_CHDIR
8690e634
JK
1373pkglibexecdir
1374lispdir
98399780
YQ
1375REPLACE_WCTOMB
1376REPLACE_UNSETENV
1377REPLACE_STRTOD
1378REPLACE_SETENV
1379REPLACE_REALPATH
1380REPLACE_REALLOC
1381REPLACE_RANDOM_R
1382REPLACE_PUTENV
1383REPLACE_PTSNAME_R
1384REPLACE_PTSNAME
1385REPLACE_MKSTEMP
1386REPLACE_MBTOWC
1387REPLACE_MALLOC
1388REPLACE_CANONICALIZE_FILE_NAME
1389REPLACE_CALLOC
1390HAVE_DECL_UNSETENV
1391HAVE_UNLOCKPT
1392HAVE_SYS_LOADAVG_H
1393HAVE_STRUCT_RANDOM_DATA
1394HAVE_STRTOULL
1395HAVE_STRTOLL
1396HAVE_STRTOD
1397HAVE_DECL_SETENV
1398HAVE_SETENV
1399HAVE_RPMATCH
1400HAVE_REALPATH
1401HAVE_RANDOM_R
1402HAVE_RANDOM_H
1403HAVE_RANDOM
1404HAVE_PTSNAME_R
1405HAVE_PTSNAME
1406HAVE_POSIX_OPENPT
1407HAVE_MKSTEMPS
1408HAVE_MKSTEMP
1409HAVE_MKOSTEMPS
1410HAVE_MKOSTEMP
1411HAVE_MKDTEMP
1412HAVE_GRANTPT
1413HAVE_GETSUBOPT
1414HAVE_DECL_GETLOADAVG
1415HAVE_CANONICALIZE_FILE_NAME
1416HAVE_ATOLL
1417HAVE__EXIT
1418GNULIB_WCTOMB
1419GNULIB_UNSETENV
1420GNULIB_UNLOCKPT
1421GNULIB_SYSTEM_POSIX
1422GNULIB_STRTOULL
1423GNULIB_STRTOLL
1424GNULIB_STRTOD
1425GNULIB_SETENV
1426GNULIB_RPMATCH
1427GNULIB_REALPATH
1428GNULIB_REALLOC_POSIX
1429GNULIB_RANDOM_R
1430GNULIB_RANDOM
1431GNULIB_PUTENV
1432GNULIB_PTSNAME_R
1433GNULIB_PTSNAME
1434GNULIB_POSIX_OPENPT
1435GNULIB_MKSTEMPS
1436GNULIB_MKSTEMP
1437GNULIB_MKOSTEMPS
1438GNULIB_MKOSTEMP
1439GNULIB_MKDTEMP
1440GNULIB_MBTOWC
1441GNULIB_MALLOC_POSIX
1442GNULIB_GRANTPT
1443GNULIB_GETSUBOPT
1444GNULIB_GETLOADAVG
1445GNULIB_CANONICALIZE_FILE_NAME
1446GNULIB_CALLOC_POSIX
1447GNULIB_ATOLL
1448GNULIB__EXIT
8690e634
JK
1449GL_GENERATE_ALLOCA_H_FALSE
1450GL_GENERATE_ALLOCA_H_TRUE
1451ALLOCA_H
1452ALLOCA
c971b7fa
PA
1453GL_COND_LIBTOOL_FALSE
1454GL_COND_LIBTOOL_TRUE
1455target_os
1456target_vendor
1457target_cpu
1458target
1459RANLIB
1460ARFLAGS
1461AR
1462EGREP
1463GREP
1464CPP
1465host_os
1466host_vendor
1467host_cpu
1468host
1469build_os
1470build_vendor
1471build_cpu
1472build
1473OBJEXT
1474EXEEXT
1475ac_ct_CC
1476CPPFLAGS
1477LDFLAGS
1478CFLAGS
1479CC
1480MAINT
1481MAINTAINER_MODE_FALSE
1482MAINTAINER_MODE_TRUE
1483target_alias
1484host_alias
1485build_alias
1486LIBS
1487ECHO_T
1488ECHO_N
1489ECHO_C
1490DEFS
1491mandir
1492localedir
1493libdir
1494psdir
1495pdfdir
1496dvidir
1497htmldir
1498infodir
1499docdir
1500oldincludedir
1501includedir
1502localstatedir
1503sharedstatedir
1504sysconfdir
1505datadir
1506datarootdir
1507libexecdir
1508sbindir
1509bindir
1510program_transform_name
1511prefix
1512exec_prefix
1513PACKAGE_URL
1514PACKAGE_BUGREPORT
1515PACKAGE_STRING
1516PACKAGE_VERSION
1517PACKAGE_TARNAME
1518PACKAGE_NAME
1519PATH_SEPARATOR
1520SHELL'
1521ac_subst_files=''
1522ac_user_opts='
1523enable_option_checking
1524enable_maintainer_mode
2196f55f 1525enable_largefile
c971b7fa
PA
1526enable_dependency_tracking
1527'
1528 ac_precious_vars='build_alias
1529host_alias
1530target_alias
1531CC
1532CFLAGS
1533LDFLAGS
1534LIBS
1535CPPFLAGS
1536CPP'
1537
1538
1539# Initialize some variables set by options.
1540ac_init_help=
1541ac_init_version=false
1542ac_unrecognized_opts=
1543ac_unrecognized_sep=
1544# The variables have the same names as the options, with
1545# dashes changed to underlines.
1546cache_file=/dev/null
1547exec_prefix=NONE
1548no_create=
1549no_recursion=
1550prefix=NONE
1551program_prefix=NONE
1552program_suffix=NONE
1553program_transform_name=s,x,x,
1554silent=
1555site=
1556srcdir=
1557verbose=
1558x_includes=NONE
1559x_libraries=NONE
1560
1561# Installation directory options.
1562# These are left unexpanded so users can "make install exec_prefix=/foo"
1563# and all the variables that are supposed to be based on exec_prefix
1564# by default will actually change.
1565# Use braces instead of parens because sh, perl, etc. also accept them.
1566# (The list follows the same order as the GNU Coding Standards.)
1567bindir='${exec_prefix}/bin'
1568sbindir='${exec_prefix}/sbin'
1569libexecdir='${exec_prefix}/libexec'
1570datarootdir='${prefix}/share'
1571datadir='${datarootdir}'
1572sysconfdir='${prefix}/etc'
1573sharedstatedir='${prefix}/com'
1574localstatedir='${prefix}/var'
1575includedir='${prefix}/include'
1576oldincludedir='/usr/include'
1577docdir='${datarootdir}/doc/${PACKAGE}'
1578infodir='${datarootdir}/info'
1579htmldir='${docdir}'
1580dvidir='${docdir}'
1581pdfdir='${docdir}'
1582psdir='${docdir}'
1583libdir='${exec_prefix}/lib'
1584localedir='${datarootdir}/locale'
1585mandir='${datarootdir}/man'
1586
1587ac_prev=
1588ac_dashdash=
1589for ac_option
1590do
1591 # If the previous option needs an argument, assign it.
1592 if test -n "$ac_prev"; then
1593 eval $ac_prev=\$ac_option
1594 ac_prev=
1595 continue
1596 fi
1597
1598 case $ac_option in
1599 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1600 *) ac_optarg=yes ;;
1601 esac
1602
1603 # Accept the important Cygnus configure options, so we can diagnose typos.
1604
1605 case $ac_dashdash$ac_option in
1606 --)
1607 ac_dashdash=yes ;;
1608
1609 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1610 ac_prev=bindir ;;
1611 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1612 bindir=$ac_optarg ;;
1613
1614 -build | --build | --buil | --bui | --bu)
1615 ac_prev=build_alias ;;
1616 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1617 build_alias=$ac_optarg ;;
1618
1619 -cache-file | --cache-file | --cache-fil | --cache-fi \
1620 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1621 ac_prev=cache_file ;;
1622 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1623 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1624 cache_file=$ac_optarg ;;
1625
1626 --config-cache | -C)
1627 cache_file=config.cache ;;
1628
1629 -datadir | --datadir | --datadi | --datad)
1630 ac_prev=datadir ;;
1631 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1632 datadir=$ac_optarg ;;
1633
1634 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1635 | --dataroo | --dataro | --datar)
1636 ac_prev=datarootdir ;;
1637 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1638 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1639 datarootdir=$ac_optarg ;;
1640
1641 -disable-* | --disable-*)
1642 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1645 as_fn_error "invalid feature name: $ac_useropt"
1646 ac_useropt_orig=$ac_useropt
1647 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1649 *"
1650"enable_$ac_useropt"
1651"*) ;;
1652 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1653 ac_unrecognized_sep=', ';;
1654 esac
1655 eval enable_$ac_useropt=no ;;
1656
1657 -docdir | --docdir | --docdi | --doc | --do)
1658 ac_prev=docdir ;;
1659 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1660 docdir=$ac_optarg ;;
1661
1662 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1663 ac_prev=dvidir ;;
1664 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1665 dvidir=$ac_optarg ;;
1666
1667 -enable-* | --enable-*)
1668 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1669 # Reject names that are not valid shell variable names.
1670 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1671 as_fn_error "invalid feature name: $ac_useropt"
1672 ac_useropt_orig=$ac_useropt
1673 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1674 case $ac_user_opts in
1675 *"
1676"enable_$ac_useropt"
1677"*) ;;
1678 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1679 ac_unrecognized_sep=', ';;
1680 esac
1681 eval enable_$ac_useropt=\$ac_optarg ;;
1682
1683 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1684 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1685 | --exec | --exe | --ex)
1686 ac_prev=exec_prefix ;;
1687 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1688 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1689 | --exec=* | --exe=* | --ex=*)
1690 exec_prefix=$ac_optarg ;;
1691
1692 -gas | --gas | --ga | --g)
1693 # Obsolete; use --with-gas.
1694 with_gas=yes ;;
1695
1696 -help | --help | --hel | --he | -h)
1697 ac_init_help=long ;;
1698 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1699 ac_init_help=recursive ;;
1700 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1701 ac_init_help=short ;;
1702
1703 -host | --host | --hos | --ho)
1704 ac_prev=host_alias ;;
1705 -host=* | --host=* | --hos=* | --ho=*)
1706 host_alias=$ac_optarg ;;
1707
1708 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1709 ac_prev=htmldir ;;
1710 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1711 | --ht=*)
1712 htmldir=$ac_optarg ;;
1713
1714 -includedir | --includedir | --includedi | --included | --include \
1715 | --includ | --inclu | --incl | --inc)
1716 ac_prev=includedir ;;
1717 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1718 | --includ=* | --inclu=* | --incl=* | --inc=*)
1719 includedir=$ac_optarg ;;
1720
1721 -infodir | --infodir | --infodi | --infod | --info | --inf)
1722 ac_prev=infodir ;;
1723 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1724 infodir=$ac_optarg ;;
1725
1726 -libdir | --libdir | --libdi | --libd)
1727 ac_prev=libdir ;;
1728 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1729 libdir=$ac_optarg ;;
1730
1731 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1732 | --libexe | --libex | --libe)
1733 ac_prev=libexecdir ;;
1734 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1735 | --libexe=* | --libex=* | --libe=*)
1736 libexecdir=$ac_optarg ;;
1737
1738 -localedir | --localedir | --localedi | --localed | --locale)
1739 ac_prev=localedir ;;
1740 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1741 localedir=$ac_optarg ;;
1742
1743 -localstatedir | --localstatedir | --localstatedi | --localstated \
1744 | --localstate | --localstat | --localsta | --localst | --locals)
1745 ac_prev=localstatedir ;;
1746 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1747 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1748 localstatedir=$ac_optarg ;;
1749
1750 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1751 ac_prev=mandir ;;
1752 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1753 mandir=$ac_optarg ;;
1754
1755 -nfp | --nfp | --nf)
1756 # Obsolete; use --without-fp.
1757 with_fp=no ;;
1758
1759 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1760 | --no-cr | --no-c | -n)
1761 no_create=yes ;;
1762
1763 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1764 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1765 no_recursion=yes ;;
1766
1767 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1768 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1769 | --oldin | --oldi | --old | --ol | --o)
1770 ac_prev=oldincludedir ;;
1771 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1772 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1773 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1774 oldincludedir=$ac_optarg ;;
1775
1776 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1777 ac_prev=prefix ;;
1778 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1779 prefix=$ac_optarg ;;
1780
1781 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1782 | --program-pre | --program-pr | --program-p)
1783 ac_prev=program_prefix ;;
1784 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1785 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1786 program_prefix=$ac_optarg ;;
1787
1788 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1789 | --program-suf | --program-su | --program-s)
1790 ac_prev=program_suffix ;;
1791 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1792 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1793 program_suffix=$ac_optarg ;;
1794
1795 -program-transform-name | --program-transform-name \
1796 | --program-transform-nam | --program-transform-na \
1797 | --program-transform-n | --program-transform- \
1798 | --program-transform | --program-transfor \
1799 | --program-transfo | --program-transf \
1800 | --program-trans | --program-tran \
1801 | --progr-tra | --program-tr | --program-t)
1802 ac_prev=program_transform_name ;;
1803 -program-transform-name=* | --program-transform-name=* \
1804 | --program-transform-nam=* | --program-transform-na=* \
1805 | --program-transform-n=* | --program-transform-=* \
1806 | --program-transform=* | --program-transfor=* \
1807 | --program-transfo=* | --program-transf=* \
1808 | --program-trans=* | --program-tran=* \
1809 | --progr-tra=* | --program-tr=* | --program-t=*)
1810 program_transform_name=$ac_optarg ;;
1811
1812 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1813 ac_prev=pdfdir ;;
1814 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1815 pdfdir=$ac_optarg ;;
1816
1817 -psdir | --psdir | --psdi | --psd | --ps)
1818 ac_prev=psdir ;;
1819 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1820 psdir=$ac_optarg ;;
1821
1822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1823 | -silent | --silent | --silen | --sile | --sil)
1824 silent=yes ;;
1825
1826 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1827 ac_prev=sbindir ;;
1828 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1829 | --sbi=* | --sb=*)
1830 sbindir=$ac_optarg ;;
1831
1832 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1833 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1834 | --sharedst | --shareds | --shared | --share | --shar \
1835 | --sha | --sh)
1836 ac_prev=sharedstatedir ;;
1837 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1838 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1839 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1840 | --sha=* | --sh=*)
1841 sharedstatedir=$ac_optarg ;;
1842
1843 -site | --site | --sit)
1844 ac_prev=site ;;
1845 -site=* | --site=* | --sit=*)
1846 site=$ac_optarg ;;
1847
1848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1849 ac_prev=srcdir ;;
1850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1851 srcdir=$ac_optarg ;;
1852
1853 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1854 | --syscon | --sysco | --sysc | --sys | --sy)
1855 ac_prev=sysconfdir ;;
1856 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1857 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1858 sysconfdir=$ac_optarg ;;
1859
1860 -target | --target | --targe | --targ | --tar | --ta | --t)
1861 ac_prev=target_alias ;;
1862 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1863 target_alias=$ac_optarg ;;
1864
1865 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1866 verbose=yes ;;
1867
1868 -version | --version | --versio | --versi | --vers | -V)
1869 ac_init_version=: ;;
1870
1871 -with-* | --with-*)
1872 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1873 # Reject names that are not valid shell variable names.
1874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1875 as_fn_error "invalid package name: $ac_useropt"
1876 ac_useropt_orig=$ac_useropt
1877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1878 case $ac_user_opts in
1879 *"
1880"with_$ac_useropt"
1881"*) ;;
1882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1883 ac_unrecognized_sep=', ';;
1884 esac
1885 eval with_$ac_useropt=\$ac_optarg ;;
1886
1887 -without-* | --without-*)
1888 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1889 # Reject names that are not valid shell variable names.
1890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1891 as_fn_error "invalid package name: $ac_useropt"
1892 ac_useropt_orig=$ac_useropt
1893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1894 case $ac_user_opts in
1895 *"
1896"with_$ac_useropt"
1897"*) ;;
1898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1899 ac_unrecognized_sep=', ';;
1900 esac
1901 eval with_$ac_useropt=no ;;
1902
1903 --x)
1904 # Obsolete; use --with-x.
1905 with_x=yes ;;
1906
1907 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1908 | --x-incl | --x-inc | --x-in | --x-i)
1909 ac_prev=x_includes ;;
1910 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1911 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1912 x_includes=$ac_optarg ;;
1913
1914 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1915 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1916 ac_prev=x_libraries ;;
1917 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1918 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1919 x_libraries=$ac_optarg ;;
1920
1921 -*) as_fn_error "unrecognized option: \`$ac_option'
1922Try \`$0 --help' for more information."
1923 ;;
1924
1925 *=*)
1926 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1927 # Reject names that are not valid shell variable names.
1928 case $ac_envvar in #(
1929 '' | [0-9]* | *[!_$as_cr_alnum]* )
1930 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1931 esac
1932 eval $ac_envvar=\$ac_optarg
1933 export $ac_envvar ;;
1934
1935 *)
1936 # FIXME: should be removed in autoconf 3.0.
1937 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1938 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1939 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1940 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1941 ;;
1942
1943 esac
1944done
1945
1946if test -n "$ac_prev"; then
1947 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1948 as_fn_error "missing argument to $ac_option"
1949fi
1950
1951if test -n "$ac_unrecognized_opts"; then
1952 case $enable_option_checking in
1953 no) ;;
1954 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1955 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1956 esac
1957fi
1958
1959# Check all directory arguments for consistency.
1960for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1961 datadir sysconfdir sharedstatedir localstatedir includedir \
1962 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1963 libdir localedir mandir
1964do
1965 eval ac_val=\$$ac_var
1966 # Remove trailing slashes.
1967 case $ac_val in
1968 */ )
1969 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1970 eval $ac_var=\$ac_val;;
1971 esac
1972 # Be sure to have absolute directory names.
1973 case $ac_val in
1974 [\\/$]* | ?:[\\/]* ) continue;;
1975 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1976 esac
1977 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1978done
1979
1980# There might be people who depend on the old broken behavior: `$host'
1981# used to hold the argument of --host etc.
1982# FIXME: To remove some day.
1983build=$build_alias
1984host=$host_alias
1985target=$target_alias
1986
1987# FIXME: To remove some day.
1988if test "x$host_alias" != x; then
1989 if test "x$build_alias" = x; then
1990 cross_compiling=maybe
1991 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1992 If a cross compiler is detected then cross compile mode will be used." >&2
1993 elif test "x$build_alias" != "x$host_alias"; then
1994 cross_compiling=yes
1995 fi
1996fi
1997
1998ac_tool_prefix=
1999test -n "$host_alias" && ac_tool_prefix=$host_alias-
2000
2001test "$silent" = yes && exec 6>/dev/null
2002
2003
2004ac_pwd=`pwd` && test -n "$ac_pwd" &&
2005ac_ls_di=`ls -di .` &&
2006ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2007 as_fn_error "working directory cannot be determined"
2008test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2009 as_fn_error "pwd does not report name of working directory"
2010
2011
2012# Find the source files, if location was not specified.
2013if test -z "$srcdir"; then
2014 ac_srcdir_defaulted=yes
2015 # Try the directory containing this script, then the parent directory.
2016 ac_confdir=`$as_dirname -- "$as_myself" ||
2017$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2018 X"$as_myself" : 'X\(//\)[^/]' \| \
2019 X"$as_myself" : 'X\(//\)$' \| \
2020 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2021$as_echo X"$as_myself" |
2022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2023 s//\1/
2024 q
2025 }
2026 /^X\(\/\/\)[^/].*/{
2027 s//\1/
2028 q
2029 }
2030 /^X\(\/\/\)$/{
2031 s//\1/
2032 q
2033 }
2034 /^X\(\/\).*/{
2035 s//\1/
2036 q
2037 }
2038 s/.*/./; q'`
2039 srcdir=$ac_confdir
2040 if test ! -r "$srcdir/$ac_unique_file"; then
2041 srcdir=..
2042 fi
2043else
2044 ac_srcdir_defaulted=no
2045fi
2046if test ! -r "$srcdir/$ac_unique_file"; then
2047 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2048 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2049fi
2050ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2051ac_abs_confdir=`(
2052 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2053 pwd)`
2054# When building in place, set srcdir=.
2055if test "$ac_abs_confdir" = "$ac_pwd"; then
2056 srcdir=.
2057fi
2058# Remove unnecessary trailing slashes from srcdir.
2059# Double slashes in file names in object file debugging info
2060# mess up M-x gdb in Emacs.
2061case $srcdir in
2062*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2063esac
2064for ac_var in $ac_precious_vars; do
2065 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2066 eval ac_env_${ac_var}_value=\$${ac_var}
2067 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2068 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2069done
2070
2071#
2072# Report the --help message.
2073#
2074if test "$ac_init_help" = "long"; then
2075 # Omit some internal or obsolete options to make the list less imposing.
2076 # This message is too long to be a string in the A/UX 3.1 sh.
2077 cat <<_ACEOF
2078\`configure' configures this package to adapt to many kinds of systems.
2079
2080Usage: $0 [OPTION]... [VAR=VALUE]...
2081
2082To assign environment variables (e.g., CC, CFLAGS...), specify them as
2083VAR=VALUE. See below for descriptions of some of the useful variables.
2084
2085Defaults for the options are specified in brackets.
2086
2087Configuration:
2088 -h, --help display this help and exit
2089 --help=short display options specific to this package
2090 --help=recursive display the short help of all the included packages
2091 -V, --version display version information and exit
2092 -q, --quiet, --silent do not print \`checking...' messages
2093 --cache-file=FILE cache test results in FILE [disabled]
2094 -C, --config-cache alias for \`--cache-file=config.cache'
2095 -n, --no-create do not create output files
2096 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2097
2098Installation directories:
2099 --prefix=PREFIX install architecture-independent files in PREFIX
2100 [$ac_default_prefix]
2101 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2102 [PREFIX]
2103
2104By default, \`make install' will install all the files in
2105\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2106an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2107for instance \`--prefix=\$HOME'.
2108
2109For better control, use the options below.
2110
2111Fine tuning of the installation directories:
2112 --bindir=DIR user executables [EPREFIX/bin]
2113 --sbindir=DIR system admin executables [EPREFIX/sbin]
2114 --libexecdir=DIR program executables [EPREFIX/libexec]
2115 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2116 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2117 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2118 --libdir=DIR object code libraries [EPREFIX/lib]
2119 --includedir=DIR C header files [PREFIX/include]
2120 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2121 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2122 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2123 --infodir=DIR info documentation [DATAROOTDIR/info]
2124 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2125 --mandir=DIR man documentation [DATAROOTDIR/man]
2126 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2127 --htmldir=DIR html documentation [DOCDIR]
2128 --dvidir=DIR dvi documentation [DOCDIR]
2129 --pdfdir=DIR pdf documentation [DOCDIR]
2130 --psdir=DIR ps documentation [DOCDIR]
2131_ACEOF
2132
2133 cat <<\_ACEOF
2134
2135Program names:
2136 --program-prefix=PREFIX prepend PREFIX to installed program names
2137 --program-suffix=SUFFIX append SUFFIX to installed program names
2138 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2139
2140System types:
2141 --build=BUILD configure for building on BUILD [guessed]
2142 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2143 --target=TARGET configure for building compilers for TARGET [HOST]
2144_ACEOF
2145fi
2146
2147if test -n "$ac_init_help"; then
2148
2149 cat <<\_ACEOF
2150
2151Optional Features:
2152 --disable-option-checking ignore unrecognized --enable/--with options
2153 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2154 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2155 --enable-maintainer-mode enable make rules and dependencies not useful
2156 (and sometimes confusing) to the casual installer
2196f55f 2157 --disable-largefile omit support for large files
c971b7fa
PA
2158 --disable-dependency-tracking speeds up one-time build
2159 --enable-dependency-tracking do not reject slow dependency extractors
2160
2161Some influential environment variables:
2162 CC C compiler command
2163 CFLAGS C compiler flags
2164 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2165 nonstandard directory <lib dir>
2166 LIBS libraries to pass to the linker, e.g. -l<library>
2167 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2168 you have headers in a nonstandard directory <include dir>
2169 CPP C preprocessor
2170
2171Use these variables to override the choices made by `configure' or to help
2172it to find libraries and programs with nonstandard names/locations.
2173
2174Report bugs to the package provider.
2175_ACEOF
2176ac_status=$?
2177fi
2178
2179if test "$ac_init_help" = "recursive"; then
2180 # If there are subdirs, report their specific --help.
2181 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2182 test -d "$ac_dir" ||
2183 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2184 continue
2185 ac_builddir=.
2186
2187case "$ac_dir" in
2188.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2189*)
2190 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2191 # A ".." for each directory in $ac_dir_suffix.
2192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2193 case $ac_top_builddir_sub in
2194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2196 esac ;;
2197esac
2198ac_abs_top_builddir=$ac_pwd
2199ac_abs_builddir=$ac_pwd$ac_dir_suffix
2200# for backward compatibility:
2201ac_top_builddir=$ac_top_build_prefix
2202
2203case $srcdir in
2204 .) # We are building in place.
2205 ac_srcdir=.
2206 ac_top_srcdir=$ac_top_builddir_sub
2207 ac_abs_top_srcdir=$ac_pwd ;;
2208 [\\/]* | ?:[\\/]* ) # Absolute name.
2209 ac_srcdir=$srcdir$ac_dir_suffix;
2210 ac_top_srcdir=$srcdir
2211 ac_abs_top_srcdir=$srcdir ;;
2212 *) # Relative name.
2213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2214 ac_top_srcdir=$ac_top_build_prefix$srcdir
2215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2216esac
2217ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2218
2219 cd "$ac_dir" || { ac_status=$?; continue; }
2220 # Check for guested configure.
2221 if test -f "$ac_srcdir/configure.gnu"; then
2222 echo &&
2223 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2224 elif test -f "$ac_srcdir/configure"; then
2225 echo &&
2226 $SHELL "$ac_srcdir/configure" --help=recursive
2227 else
2228 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2229 fi || ac_status=$?
2230 cd "$ac_pwd" || { ac_status=$?; break; }
2231 done
2232fi
2233
2234test -n "$ac_init_help" && exit $ac_status
2235if $ac_init_version; then
2236 cat <<\_ACEOF
2237configure
2238generated by GNU Autoconf 2.64
2239
2240Copyright (C) 2009 Free Software Foundation, Inc.
2241This configure script is free software; the Free Software Foundation
2242gives unlimited permission to copy, distribute and modify it.
2243_ACEOF
2244 exit
2245fi
2246
2247## ------------------------ ##
2248## Autoconf initialization. ##
2249## ------------------------ ##
2250
2251# ac_fn_c_try_compile LINENO
2252# --------------------------
2253# Try to compile conftest.$ac_ext, and return whether this succeeded.
2254ac_fn_c_try_compile ()
2255{
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 rm -f conftest.$ac_objext
2258 if { { ac_try="$ac_compile"
2259case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262esac
2263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264$as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_compile") 2>conftest.err
2266 ac_status=$?
2267 if test -s conftest.err; then
2268 grep -v '^ *+' conftest.err >conftest.er1
2269 cat conftest.er1 >&5
2270 mv -f conftest.er1 conftest.err
2271 fi
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && {
2274 test -z "$ac_c_werror_flag" ||
2275 test ! -s conftest.err
2276 } && test -s conftest.$ac_objext; then :
2277 ac_retval=0
2278else
2279 $as_echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_retval=1
2283fi
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 return $ac_retval
2286
2287} # ac_fn_c_try_compile
2288
2289# ac_fn_c_try_cpp LINENO
2290# ----------------------
2291# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2292ac_fn_c_try_cpp ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if { { ac_try="$ac_cpp conftest.$ac_ext"
2296case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299esac
2300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301$as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2303 ac_status=$?
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2308 fi
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } >/dev/null && {
2311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2313 }; then :
2314 ac_retval=0
2315else
2316 $as_echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_retval=1
2320fi
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 return $ac_retval
2323
2324} # ac_fn_c_try_cpp
2325
2326# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2327# -------------------------------------------------------
2328# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2329# the include files in INCLUDES and setting the cache variable VAR
2330# accordingly.
2331ac_fn_c_check_header_mongrel ()
2332{
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336$as_echo_n "checking for $2... " >&6; }
2337if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339fi
2340eval ac_res=\$$3
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342$as_echo "$ac_res" >&6; }
2343else
2344 # Is the header compilable?
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2346$as_echo_n "checking $2 usability... " >&6; }
2347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$4
2350#include <$2>
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"; then :
2353 ac_header_compiler=yes
2354else
2355 ac_header_compiler=no
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2359$as_echo "$ac_header_compiler" >&6; }
2360
2361# Is the header present?
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2363$as_echo_n "checking $2 presence... " >&6; }
2364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365/* end confdefs.h. */
2366#include <$2>
2367_ACEOF
2368if ac_fn_c_try_cpp "$LINENO"; then :
2369 ac_header_preproc=yes
2370else
2371 ac_header_preproc=no
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2375$as_echo "$ac_header_preproc" >&6; }
2376
2377# So? What about this header?
2378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2379 yes:no: )
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2381$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2383$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2384 ;;
2385 no:yes:* )
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2387$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2389$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2391$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2393$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2396 ;;
2397esac
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399$as_echo_n "checking for $2... " >&6; }
2400if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2402else
2403 eval "$3=\$ac_header_compiler"
2404fi
2405eval ac_res=\$$3
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410
2411} # ac_fn_c_check_header_mongrel
2412
2413# ac_fn_c_try_run LINENO
2414# ----------------------
2415# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2416# that executables *can* be run.
2417ac_fn_c_try_run ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 if { { ac_try="$ac_link"
2421case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424esac
2425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426$as_echo "$ac_try_echo"; } >&5
2427 (eval "$ac_link") 2>&5
2428 ac_status=$?
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2431 { { case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434esac
2435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436$as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_try") 2>&5
2438 ac_status=$?
2439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440 test $ac_status = 0; }; }; then :
2441 ac_retval=0
2442else
2443 $as_echo "$as_me: program exited with status $ac_status" >&5
2444 $as_echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 ac_retval=$ac_status
2448fi
2449 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 return $ac_retval
2452
2453} # ac_fn_c_try_run
2454
2455# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2456# -------------------------------------------------------
2457# Tests whether HEADER exists and can be compiled using the include files in
2458# INCLUDES, setting the cache variable VAR accordingly.
2459ac_fn_c_check_header_compile ()
2460{
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
2466else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468/* end confdefs.h. */
2469$4
2470#include <$2>
2471_ACEOF
2472if ac_fn_c_try_compile "$LINENO"; then :
2473 eval "$3=yes"
2474else
2475 eval "$3=no"
2476fi
2477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481$as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483
2484} # ac_fn_c_check_header_compile
2485
2486# ac_fn_c_try_link LINENO
2487# -----------------------
2488# Try to link conftest.$ac_ext, and return whether this succeeded.
2489ac_fn_c_try_link ()
2490{
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 rm -f conftest.$ac_objext conftest$ac_exeext
2493 if { { ac_try="$ac_link"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499$as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_link") 2>conftest.err
2501 ac_status=$?
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2506 fi
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; } && {
2509 test -z "$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest$ac_exeext && {
2512 test "$cross_compiling" = yes ||
2513 $as_test_x conftest$ac_exeext
2514 }; then :
2515 ac_retval=0
2516else
2517 $as_echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_retval=1
2521fi
2522 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2523 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2524 # interfere with the next link command; also delete a directory that is
2525 # left behind by Apple's compiler. We do this before executing the actions.
2526 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 return $ac_retval
2529
2530} # ac_fn_c_try_link
2531
8690e634
JK
2532# ac_fn_c_check_func LINENO FUNC VAR
2533# ----------------------------------
2534# Tests whether FUNC exists, setting the cache variable VAR accordingly
2535ac_fn_c_check_func ()
2536{
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539$as_echo_n "checking for $2... " >&6; }
2540if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2541 $as_echo_n "(cached) " >&6
2542else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2547#define $2 innocuous_$2
2548
2549/* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $2 (); below.
2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2552 <limits.h> exists even on freestanding compilers. */
2553
2554#ifdef __STDC__
2555# include <limits.h>
2556#else
2557# include <assert.h>
2558#endif
2559
2560#undef $2
2561
2562/* Override any GCC internal prototype to avoid an error.
2563 Use char because int might match the return type of a GCC
2564 builtin and then its argument prototype would still apply. */
2565#ifdef __cplusplus
2566extern "C"
2567#endif
2568char $2 ();
2569/* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572#if defined __stub_$2 || defined __stub___$2
2573choke me
2574#endif
2575
2576int
2577main ()
2578{
2579return $2 ();
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584if ac_fn_c_try_link "$LINENO"; then :
2585 eval "$3=yes"
2586else
2587 eval "$3=no"
2588fi
2589rm -f core conftest.err conftest.$ac_objext \
2590 conftest$ac_exeext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596
2597} # ac_fn_c_check_func
2598
8986e351
TT
2599# ac_fn_c_check_decl LINENO SYMBOL VAR
2600# ------------------------------------
2601# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2602ac_fn_c_check_decl ()
2603{
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2606$as_echo_n "checking whether $2 is declared... " >&6; }
2607if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2609else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h. */
2612$4
2613int
2614main ()
2615{
2616#ifndef $2
2617 (void) $2;
2618#endif
2619
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$3=yes"
2626else
2627 eval "$3=no"
2628fi
2629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630fi
2631eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633$as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636} # ac_fn_c_check_decl
2637
c971b7fa
PA
2638# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2639# --------------------------------------------
2640# Tries to find the compile-time value of EXPR in a program that includes
2641# INCLUDES, setting VAR accordingly. Returns whether the value could be
2642# computed
2643ac_fn_c_compute_int ()
2644{
2645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646 if test "$cross_compiling" = yes; then
2647 # Depending upon the size, compute the lo and hi bounds.
2648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$4
2651int
2652main ()
2653{
2654static int test_array [1 - 2 * !(($2) >= 0)];
2655test_array [0] = 0
2656
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 ac_lo=0 ac_mid=0
2663 while :; do
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$4
2667int
2668main ()
2669{
2670static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2671test_array [0] = 0
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678 ac_hi=$ac_mid; break
2679else
2680 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2681 if test $ac_lo -le $ac_mid; then
2682 ac_lo= ac_hi=
2683 break
2684 fi
2685 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2686fi
2687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 done
2689else
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h. */
2692$4
2693int
2694main ()
2695{
2696static int test_array [1 - 2 * !(($2) < 0)];
2697test_array [0] = 0
2698
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703if ac_fn_c_try_compile "$LINENO"; then :
2704 ac_hi=-1 ac_mid=-1
2705 while :; do
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707/* end confdefs.h. */
2708$4
2709int
2710main ()
2711{
2712static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2713test_array [0] = 0
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_compile "$LINENO"; then :
2720 ac_lo=$ac_mid; break
2721else
2722 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2723 if test $ac_mid -le $ac_hi; then
2724 ac_lo= ac_hi=
2725 break
2726 fi
2727 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2728fi
2729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731else
2732 ac_lo= ac_hi=
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737# Binary search between lo and hi bounds.
2738while test "x$ac_lo" != "x$ac_hi"; do
2739 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
2742$4
2743int
2744main ()
2745{
2746static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2747test_array [0] = 0
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753if ac_fn_c_try_compile "$LINENO"; then :
2754 ac_hi=$ac_mid
2755else
2756 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2757fi
2758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759done
2760case $ac_lo in #((
2761?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2762'') ac_retval=1 ;;
2763esac
2764 else
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766/* end confdefs.h. */
2767$4
2768static long int longval () { return $2; }
2769static unsigned long int ulongval () { return $2; }
2770#include <stdio.h>
2771#include <stdlib.h>
2772int
2773main ()
2774{
2775
2776 FILE *f = fopen ("conftest.val", "w");
2777 if (! f)
2778 return 1;
2779 if (($2) < 0)
2780 {
2781 long int i = longval ();
2782 if (i != ($2))
2783 return 1;
2784 fprintf (f, "%ld", i);
2785 }
2786 else
2787 {
2788 unsigned long int i = ulongval ();
2789 if (i != ($2))
2790 return 1;
2791 fprintf (f, "%lu", i);
2792 }
2793 /* Do not output a trailing newline, as this causes \r\n confusion
2794 on some platforms. */
2795 return ferror (f) || fclose (f) != 0;
2796
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801if ac_fn_c_try_run "$LINENO"; then :
2802 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2803else
2804 ac_retval=1
2805fi
2806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2807 conftest.$ac_objext conftest.beam conftest.$ac_ext
2808rm -f conftest.val
2809
2810 fi
2811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2812 return $ac_retval
2813
2814} # ac_fn_c_compute_int
2815
8690e634
JK
2816# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2817# -------------------------------------------
2818# Tests whether TYPE exists after having included INCLUDES, setting cache
2819# variable VAR accordingly.
2820ac_fn_c_check_type ()
c971b7fa
PA
2821{
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824$as_echo_n "checking for $2... " >&6; }
2825if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2826 $as_echo_n "(cached) " >&6
2827else
8690e634 2828 eval "$3=no"
c971b7fa
PA
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830/* end confdefs.h. */
8690e634 2831$4
c971b7fa
PA
2832int
2833main ()
2834{
8690e634
JK
2835if (sizeof ($2))
2836 return 0;
c971b7fa
PA
2837 ;
2838 return 0;
2839}
2840_ACEOF
8690e634 2841if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h. */
2844$4
2845int
2846main ()
2847{
8690e634
JK
2848if (sizeof (($2)))
2849 return 0;
c971b7fa
PA
2850 ;
2851 return 0;
2852}
2853_ACEOF
2854if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2855
c971b7fa 2856else
8690e634
JK
2857 eval "$3=yes"
2858fi
2859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2860fi
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862fi
2863eval ac_res=\$$3
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2865$as_echo "$ac_res" >&6; }
2866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2867
8690e634 2868} # ac_fn_c_check_type
c971b7fa
PA
2869cat >config.log <<_ACEOF
2870This file contains any messages produced by compilers while
2871running configure, to aid debugging if configure makes a mistake.
2872
2873It was created by $as_me, which was
2874generated by GNU Autoconf 2.64. Invocation command line was
2875
2876 $ $0 $@
2877
2878_ACEOF
2879exec 5>>config.log
2880{
2881cat <<_ASUNAME
2882## --------- ##
2883## Platform. ##
2884## --------- ##
2885
2886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890uname -v = `(uname -v) 2>/dev/null || echo unknown`
2891
2892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2894
2895/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2902
2903_ASUNAME
2904
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 $as_echo "PATH: $as_dir"
2911 done
2912IFS=$as_save_IFS
2913
2914} >&5
2915
2916cat >&5 <<_ACEOF
2917
2918
2919## ----------- ##
2920## Core tests. ##
2921## ----------- ##
2922
2923_ACEOF
2924
2925
2926# Keep a trace of the command line.
2927# Strip out --no-create and --no-recursion so they do not pile up.
2928# Strip out --silent because we don't want to record it for future runs.
2929# Also quote any args containing shell meta-characters.
2930# Make two passes to allow for proper duplicate-argument suppression.
2931ac_configure_args=
2932ac_configure_args0=
2933ac_configure_args1=
2934ac_must_keep_next=false
2935for ac_pass in 1 2
2936do
2937 for ac_arg
2938 do
2939 case $ac_arg in
2940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2942 | -silent | --silent | --silen | --sile | --sil)
2943 continue ;;
2944 *\'*)
2945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2946 esac
2947 case $ac_pass in
2948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2949 2)
2950 as_fn_append ac_configure_args1 " '$ac_arg'"
2951 if test $ac_must_keep_next = true; then
2952 ac_must_keep_next=false # Got value, back to normal.
2953 else
2954 case $ac_arg in
2955 *=* | --config-cache | -C | -disable-* | --disable-* \
2956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2958 | -with-* | --with-* | -without-* | --without-* | --x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2961 esac
2962 ;;
2963 -* ) ac_must_keep_next=true ;;
2964 esac
2965 fi
2966 as_fn_append ac_configure_args " '$ac_arg'"
2967 ;;
2968 esac
2969 done
2970done
2971{ ac_configure_args0=; unset ac_configure_args0;}
2972{ ac_configure_args1=; unset ac_configure_args1;}
2973
2974# When interrupted or exit'd, cleanup temporary files, and complete
2975# config.log. We remove comments because anyway the quotes in there
2976# would cause problems or look ugly.
2977# WARNING: Use '\'' to represent an apostrophe within the trap.
2978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2981 {
2982 echo
2983
2984 cat <<\_ASBOX
2985## ---------------- ##
2986## Cache variables. ##
2987## ---------------- ##
2988_ASBOX
2989 echo
2990 # The following way of writing the cache mishandles newlines in values,
2991(
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2994 case $ac_val in #(
2995 *${as_nl}*)
2996 case $ac_var in #(
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2999 esac
3000 case $ac_var in #(
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3004 esac ;;
3005 esac
3006 done
3007 (set) 2>&1 |
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3010 sed -n \
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3013 ;; #(
3014 *)
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3016 ;;
3017 esac |
3018 sort
3019)
3020 echo
3021
3022 cat <<\_ASBOX
3023## ----------------- ##
3024## Output variables. ##
3025## ----------------- ##
3026_ASBOX
3027 echo
3028 for ac_var in $ac_subst_vars
3029 do
3030 eval ac_val=\$$ac_var
3031 case $ac_val in
3032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 esac
3034 $as_echo "$ac_var='\''$ac_val'\''"
3035 done | sort
3036 echo
3037
3038 if test -n "$ac_subst_files"; then
3039 cat <<\_ASBOX
3040## ------------------- ##
3041## File substitutions. ##
3042## ------------------- ##
3043_ASBOX
3044 echo
3045 for ac_var in $ac_subst_files
3046 do
3047 eval ac_val=\$$ac_var
3048 case $ac_val in
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 esac
3051 $as_echo "$ac_var='\''$ac_val'\''"
3052 done | sort
3053 echo
3054 fi
3055
3056 if test -s confdefs.h; then
3057 cat <<\_ASBOX
3058## ----------- ##
3059## confdefs.h. ##
3060## ----------- ##
3061_ASBOX
3062 echo
3063 cat confdefs.h
3064 echo
3065 fi
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3069 } >&5
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3072 exit $exit_status
3073' 0
3074for ac_signal in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3076done
3077ac_signal=0
3078
3079# confdefs.h avoids OS command line length limits that DEFS can exceed.
3080rm -f -r conftest* confdefs.h
3081
3082$as_echo "/* confdefs.h */" > confdefs.h
3083
3084# Predefined preprocessor variables.
3085
3086cat >>confdefs.h <<_ACEOF
3087#define PACKAGE_NAME "$PACKAGE_NAME"
3088_ACEOF
3089
3090cat >>confdefs.h <<_ACEOF
3091#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3092_ACEOF
3093
3094cat >>confdefs.h <<_ACEOF
3095#define PACKAGE_VERSION "$PACKAGE_VERSION"
3096_ACEOF
3097
3098cat >>confdefs.h <<_ACEOF
3099#define PACKAGE_STRING "$PACKAGE_STRING"
3100_ACEOF
3101
3102cat >>confdefs.h <<_ACEOF
3103#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3104_ACEOF
3105
3106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE_URL "$PACKAGE_URL"
3108_ACEOF
3109
3110
3111# Let the site file select an alternate cache file if it wants to.
3112# Prefer an explicitly selected file to automatically selected ones.
3113ac_site_file1=NONE
3114ac_site_file2=NONE
3115if test -n "$CONFIG_SITE"; then
3116 ac_site_file1=$CONFIG_SITE
3117elif test "x$prefix" != xNONE; then
3118 ac_site_file1=$prefix/share/config.site
3119 ac_site_file2=$prefix/etc/config.site
3120else
3121 ac_site_file1=$ac_default_prefix/share/config.site
3122 ac_site_file2=$ac_default_prefix/etc/config.site
3123fi
3124for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3125do
3126 test "x$ac_site_file" = xNONE && continue
3127 if test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3131 . "$ac_site_file"
3132 fi
3133done
3134
3135if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special
3137 # files actually), so we avoid doing that.
3138 if test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140$as_echo "$as_me: loading cache $cache_file" >&6;}
3141 case $cache_file in
3142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3143 *) . "./$cache_file";;
3144 esac
3145 fi
3146else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148$as_echo "$as_me: creating cache $cache_file" >&6;}
3149 >$cache_file
3150fi
3151
98399780
YQ
3152as_fn_append ac_func_list " canonicalize_file_name"
3153as_fn_append ac_func_list " getcwd"
3154as_fn_append ac_func_list " readlink"
3155as_fn_append ac_func_list " realpath"
3156as_fn_append ac_header_list " sys/param.h"
e26b6bb0 3157as_fn_append ac_header_list " dirent.h"
3574124b
PA
3158as_fn_append ac_func_list " btowc"
3159as_fn_append ac_func_list " isblank"
3160as_fn_append ac_func_list " iswctype"
3161as_fn_append ac_func_list " mbsrtowcs"
3162as_fn_append ac_func_list " mempcpy"
3163as_fn_append ac_func_list " wmemchr"
3164as_fn_append ac_func_list " wmemcpy"
3165as_fn_append ac_func_list " wmempcpy"
3166as_fn_append ac_header_list " wctype.h"
8690e634 3167gl_fnmatch_required=GNU
3574124b
PA
3168as_fn_append ac_func_list " alarm"
3169as_fn_append ac_header_list " wchar.h"
3170as_fn_append ac_header_list " stdint.h"
3171as_fn_append ac_header_list " inttypes.h"
3172as_fn_append ac_header_list " unistd.h"
3173as_fn_append ac_func_list " symlink"
f45c62c4 3174as_fn_append ac_func_list " lstat"
3574124b
PA
3175as_fn_append ac_header_list " math.h"
3176as_fn_append ac_func_list " mbsinit"
3177as_fn_append ac_func_list " mbrtowc"
3178as_fn_append ac_header_list " sys/mman.h"
3179as_fn_append ac_func_list " mprotect"
09607c9e
TT
3180as_fn_append ac_header_list " sys/stat.h"
3181as_fn_append ac_header_list " sys/time.h"
3574124b
PA
3182as_fn_append ac_header_list " features.h"
3183as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3184# Check that the precious variables saved in the cache have kept the same
3185# value.
3186ac_cache_corrupted=false
3187for ac_var in $ac_precious_vars; do
3188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3189 eval ac_new_set=\$ac_env_${ac_var}_set
3190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3191 eval ac_new_val=\$ac_env_${ac_var}_value
3192 case $ac_old_set,$ac_new_set in
3193 set,)
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3195$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3196 ac_cache_corrupted=: ;;
3197 ,set)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3200 ac_cache_corrupted=: ;;
3201 ,);;
3202 *)
3203 if test "x$ac_old_val" != "x$ac_new_val"; then
3204 # differences in whitespace do not lead to failure.
3205 ac_old_val_w=`echo x $ac_old_val`
3206 ac_new_val_w=`echo x $ac_new_val`
3207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3209$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3210 ac_cache_corrupted=:
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3213$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3214 eval $ac_var=\$ac_old_val
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3217$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3219$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3220 fi;;
3221 esac
3222 # Pass precious variables to config.status.
3223 if test "$ac_new_set" = set; then
3224 case $ac_new_val in
3225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 *) ac_arg=$ac_var=$ac_new_val ;;
3227 esac
3228 case " $ac_configure_args " in
3229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3231 esac
3232 fi
3233done
3234if $ac_cache_corrupted; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3238$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3239 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3240fi
3241## -------------------- ##
3242## Main body of script. ##
3243## -------------------- ##
3244
3245ac_ext=c
3246ac_cpp='$CPP $CPPFLAGS'
3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252ac_config_headers="$ac_config_headers config.h:config.in"
3253
3254
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257 # Check whether --enable-maintainer-mode was given.
3258if test "${enable_maintainer_mode+set}" = set; then :
3259 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3260else
3261 USE_MAINTAINER_MODE=no
3262fi
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3265$as_echo "$USE_MAINTAINER_MODE" >&6; }
3266 if test $USE_MAINTAINER_MODE = yes; then
3267 MAINTAINER_MODE_TRUE=
3268 MAINTAINER_MODE_FALSE='#'
3269else
3270 MAINTAINER_MODE_TRUE='#'
3271 MAINTAINER_MODE_FALSE=
3272fi
3273
3274 MAINT=$MAINTAINER_MODE_TRUE
3275
3276
3277
3278ac_ext=c
3279ac_cpp='$CPP $CPPFLAGS'
3280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3285set dummy ${ac_tool_prefix}gcc; ac_word=$2
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287$as_echo_n "checking for $ac_word... " >&6; }
3288if test "${ac_cv_prog_CC+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290else
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305done
3306 done
3307IFS=$as_save_IFS
3308
3309fi
3310fi
3311CC=$ac_cv_prog_CC
3312if test -n "$CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314$as_echo "$CC" >&6; }
3315else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317$as_echo "no" >&6; }
3318fi
3319
3320
3321fi
3322if test -z "$ac_cv_prog_CC"; then
3323 ac_ct_CC=$CC
3324 # Extract the first word of "gcc", so it can be a program name with args.
3325set dummy gcc; ac_word=$2
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327$as_echo_n "checking for $ac_word... " >&6; }
3328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330else
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_CC="gcc"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345done
3346 done
3347IFS=$as_save_IFS
3348
3349fi
3350fi
3351ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352if test -n "$ac_ct_CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354$as_echo "$ac_ct_CC" >&6; }
3355else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357$as_echo "no" >&6; }
3358fi
3359
3360 if test "x$ac_ct_CC" = x; then
3361 CC=""
3362 else
3363 case $cross_compiling:$ac_tool_warned in
3364yes:)
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367ac_tool_warned=yes ;;
3368esac
3369 CC=$ac_ct_CC
3370 fi
3371else
3372 CC="$ac_cv_prog_CC"
3373fi
3374
3375if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3378set dummy ${ac_tool_prefix}cc; ac_word=$2
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if test "${ac_cv_prog_CC+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383else
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC="$CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_CC="${ac_tool_prefix}cc"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398done
3399 done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407$as_echo "$CC" >&6; }
3408else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414 fi
3415fi
3416if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418set dummy cc; ac_word=$2
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420$as_echo_n "checking for $ac_word... " >&6; }
3421if test "${ac_cv_prog_CC+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3423else
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426else
3427 ac_prog_rejected=no
3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436 ac_prog_rejected=yes
3437 continue
3438 fi
3439 ac_cv_prog_CC="cc"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443done
3444 done
3445IFS=$as_save_IFS
3446
3447if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy $ac_cv_prog_CC
3450 shift
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3455 shift
3456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3457 fi
3458fi
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464$as_echo "$CC" >&6; }
3465else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470
3471fi
3472if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 for ac_prog in cl.exe
3475 do
3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479$as_echo_n "checking for $ac_word... " >&6; }
3480if test "${ac_cv_prog_CC+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3482else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497done
3498 done
3499IFS=$as_save_IFS
3500
3501fi
3502fi
3503CC=$ac_cv_prog_CC
3504if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506$as_echo "$CC" >&6; }
3507else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510fi
3511
3512
3513 test -n "$CC" && break
3514 done
3515fi
3516if test -z "$CC"; then
3517 ac_ct_CC=$CC
3518 for ac_prog in cl.exe
3519do
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521set dummy $ac_prog; ac_word=$2
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3526else
3527 if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_ac_ct_CC="$ac_prog"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541done
3542 done
3543IFS=$as_save_IFS
3544
3545fi
3546fi
3547ac_ct_CC=$ac_cv_prog_ac_ct_CC
3548if test -n "$ac_ct_CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3550$as_echo "$ac_ct_CC" >&6; }
3551else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
3554fi
3555
3556
3557 test -n "$ac_ct_CC" && break
3558done
3559
3560 if test "x$ac_ct_CC" = x; then
3561 CC=""
3562 else
3563 case $cross_compiling:$ac_tool_warned in
3564yes:)
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3567ac_tool_warned=yes ;;
3568esac
3569 CC=$ac_ct_CC
3570 fi
3571fi
3572
3573fi
3574
3575
3576test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578as_fn_error "no acceptable C compiler found in \$PATH
3579See \`config.log' for more details." "$LINENO" 5; }
3580
3581# Provide some information about the compiler.
3582$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3583set X $ac_compile
3584ac_compiler=$2
3585for ac_option in --version -v -V -qversion; do
3586 { { ac_try="$ac_compiler $ac_option >&5"
3587case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590esac
3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592$as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3594 ac_status=$?
3595 if test -s conftest.err; then
3596 sed '10a\
3597... rest of stderr output deleted ...
3598 10q' conftest.err >conftest.er1
3599 cat conftest.er1 >&5
3600 rm -f conftest.er1 conftest.err
3601 fi
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3604done
3605
3606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h. */
3608#include <stdio.h>
3609int
3610main ()
3611{
3612FILE *f = fopen ("conftest.out", "w");
3613 return ferror (f) || fclose (f) != 0;
3614
3615 ;
3616 return 0;
3617}
3618_ACEOF
3619ac_clean_files_save=$ac_clean_files
3620ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3621# Try to create an executable without -o first, disregard a.out.
3622# It will help us diagnose broken compilers, and finding out an intuition
3623# of exeext.
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3625$as_echo_n "checking for C compiler default output file name... " >&6; }
3626ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3627
3628# The possible output files:
3629ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3630
3631ac_rmfiles=
3632for ac_file in $ac_files
3633do
3634 case $ac_file in
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3637 esac
3638done
3639rm -f $ac_rmfiles
3640
3641if { { ac_try="$ac_link_default"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647$as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link_default") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3653# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3654# in a Makefile. We should not override ac_cv_exeext if it was cached,
3655# so that the user can short-circuit this test for compilers unknown to
3656# Autoconf.
3657for ac_file in $ac_files ''
3658do
3659 test -f "$ac_file" || continue
3660 case $ac_file in
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3662 ;;
3663 [ab].out )
3664 # We found the default executable, but exeext='' is most
3665 # certainly right.
3666 break;;
3667 *.* )
3668 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3669 then :; else
3670 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 fi
3672 # We set ac_cv_exeext here because the later test for it is not
3673 # safe: cross compilers may not add the suffix if given an `-o'
3674 # argument, so we may need to know it at that point already.
3675 # Even if this section looks crufty: it has the advantage of
3676 # actually working.
3677 break;;
3678 * )
3679 break;;
3680 esac
3681done
3682test "$ac_cv_exeext" = no && ac_cv_exeext=
3683
3684else
3685 ac_file=''
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3688$as_echo "$ac_file" >&6; }
3689if test -z "$ac_file"; then :
3690 $as_echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695{ as_fn_set_status 77
3696as_fn_error "C compiler cannot create executables
3697See \`config.log' for more details." "$LINENO" 5; }; }
3698fi
3699ac_exeext=$ac_cv_exeext
3700
3701# Check that the compiler produces executables we can run. If not, either
3702# the compiler is broken, or we cross compile.
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3704$as_echo_n "checking whether the C compiler works... " >&6; }
3705# If not cross compiling, check that we can run a simple program.
3706if test "$cross_compiling" != yes; then
3707 if { ac_try='./$ac_file'
3708 { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3718 cross_compiling=no
3719 else
3720 if test "$cross_compiling" = maybe; then
3721 cross_compiling=yes
3722 else
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725as_fn_error "cannot run C compiled programs.
3726If you meant to cross compile, use \`--host'.
3727See \`config.log' for more details." "$LINENO" 5; }
3728 fi
3729 fi
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732$as_echo "yes" >&6; }
3733
3734rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3735ac_clean_files=$ac_clean_files_save
3736# Check that the compiler produces executables we can run. If not, either
3737# the compiler is broken, or we cross compile.
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739$as_echo_n "checking whether we are cross compiling... " >&6; }
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741$as_echo "$cross_compiling" >&6; }
3742
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744$as_echo_n "checking for suffix of executables... " >&6; }
3745if { { ac_try="$ac_link"
3746case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3757# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3758# work properly (i.e., refer to `conftest.exe'), while it won't with
3759# `rm'.
3760for ac_file in conftest.exe conftest conftest.*; do
3761 test -f "$ac_file" || continue
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765 break;;
3766 * ) break;;
3767 esac
3768done
3769else
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772as_fn_error "cannot compute suffix of executables: cannot compile and link
3773See \`config.log' for more details." "$LINENO" 5; }
3774fi
3775rm -f conftest$ac_cv_exeext
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777$as_echo "$ac_cv_exeext" >&6; }
3778
3779rm -f conftest.$ac_ext
3780EXEEXT=$ac_cv_exeext
3781ac_exeext=$EXEEXT
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3783$as_echo_n "checking for suffix of object files... " >&6; }
3784if test "${ac_cv_objext+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786else
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798rm -f conftest.o conftest.obj
3799if { { ac_try="$ac_compile"
3800case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803esac
3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805$as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compile") 2>&5
3807 ac_status=$?
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; then :
3810 for ac_file in conftest.o conftest.obj conftest.*; do
3811 test -f "$ac_file" || continue;
3812 case $ac_file in
3813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3815 break;;
3816 esac
3817done
3818else
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;}
3824as_fn_error "cannot compute suffix of object files: cannot compile
3825See \`config.log' for more details." "$LINENO" 5; }
3826fi
3827rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3830$as_echo "$ac_cv_objext" >&6; }
3831OBJEXT=$ac_cv_objext
3832ac_objext=$OBJEXT
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3834$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3835if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837else
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h. */
3840
3841int
3842main ()
3843{
3844#ifndef __GNUC__
3845 choke me
3846#endif
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_compiler_gnu=yes
3854else
3855 ac_compiler_gnu=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3862$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3863if test $ac_compiler_gnu = yes; then
3864 GCC=yes
3865else
3866 GCC=
3867fi
3868ac_test_CFLAGS=${CFLAGS+set}
3869ac_save_CFLAGS=$CFLAGS
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3871$as_echo_n "checking whether $CC accepts -g... " >&6; }
3872if test "${ac_cv_prog_cc_g+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874else
3875 ac_save_c_werror_flag=$ac_c_werror_flag
3876 ac_c_werror_flag=yes
3877 ac_cv_prog_cc_g=no
3878 CFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h. */
3881
3882int
3883main ()
3884{
3885
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_g=yes
3892else
3893 CFLAGS=""
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h. */
3896
3897int
3898main ()
3899{
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906
3907else
3908 ac_c_werror_flag=$ac_save_c_werror_flag
3909 CFLAGS="-g"
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h. */
3912
3913int
3914main ()
3915{
3916
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_cv_prog_cc_g=yes
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3932$as_echo "$ac_cv_prog_cc_g" >&6; }
3933if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3937 CFLAGS="-g -O2"
3938 else
3939 CFLAGS="-g"
3940 fi
3941else
3942 if test "$GCC" = yes; then
3943 CFLAGS="-O2"
3944 else
3945 CFLAGS=
3946 fi
3947fi
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950if test "${ac_cv_prog_cc_c89+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952else
3953 ac_cv_prog_cc_c89=no
3954ac_save_CC=$CC
3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957#include <stdarg.h>
3958#include <stdio.h>
3959#include <sys/types.h>
3960#include <sys/stat.h>
3961/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3962struct buf { int x; };
3963FILE * (*rcsopen) (struct buf *, struct stat *, int);
3964static char *e (p, i)
3965 char **p;
3966 int i;
3967{
3968 return p[i];
3969}
3970static char *f (char * (*g) (char **, int), char **p, ...)
3971{
3972 char *s;
3973 va_list v;
3974 va_start (v,p);
3975 s = g (p, va_arg (v,int));
3976 va_end (v);
3977 return s;
3978}
3979
3980/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3981 function prototypes and stuff, but not '\xHH' hex character constants.
3982 These don't provoke an error unfortunately, instead are silently treated
3983 as 'x'. The following induces an error, until -std is added to get
3984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3985 array size at least. It's necessary to write '\x00'==0 to get something
3986 that's true only with -std. */
3987int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3988
3989/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3990 inside strings and character constants. */
3991#define FOO(x) 'x'
3992int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3993
3994int test (int i, double x);
3995struct s1 {int (*f) (int a);};
3996struct s2 {int (*f) (double a);};
3997int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3998int argc;
3999char **argv;
4000int
4001main ()
4002{
4003return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4004 ;
4005 return 0;
4006}
4007_ACEOF
4008for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4010do
4011 CC="$ac_save_CC $ac_arg"
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_prog_cc_c89=$ac_arg
4014fi
4015rm -f core conftest.err conftest.$ac_objext
4016 test "x$ac_cv_prog_cc_c89" != "xno" && break
4017done
4018rm -f conftest.$ac_ext
4019CC=$ac_save_CC
4020
4021fi
4022# AC_CACHE_VAL
4023case "x$ac_cv_prog_cc_c89" in
4024 x)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026$as_echo "none needed" >&6; } ;;
4027 xno)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4029$as_echo "unsupported" >&6; } ;;
4030 *)
4031 CC="$CC $ac_cv_prog_cc_c89"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4033$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4034esac
4035if test "x$ac_cv_prog_cc_c89" != xno; then :
4036
4037fi
4038
4039ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045ac_aux_dir=
4046for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4047 for ac_t in install-sh install.sh shtool; do
4048 if test -f "$ac_dir/$ac_t"; then
4049 ac_aux_dir=$ac_dir
4050 ac_install_sh="$ac_aux_dir/$ac_t -c"
4051 break 2
4052 fi
4053 done
4054done
4055if test -z "$ac_aux_dir"; then
4056 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4057fi
4058
4059# These three variables are undocumented and unsupported,
4060# and are intended to be withdrawn in a future Autoconf release.
4061# They can cause serious problems if a builder's source tree is in a directory
4062# whose full name contains unusual characters.
4063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4066
4067
4068# Make sure we can run config.sub.
4069$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4070 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4073$as_echo_n "checking build system type... " >&6; }
4074if test "${ac_cv_build+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 ac_build_alias=$build_alias
4078test "x$ac_build_alias" = x &&
4079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4080test "x$ac_build_alias" = x &&
4081 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4083 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4084
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4087$as_echo "$ac_cv_build" >&6; }
4088case $ac_cv_build in
4089*-*-*) ;;
4090*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4091esac
4092build=$ac_cv_build
4093ac_save_IFS=$IFS; IFS='-'
4094set x $ac_cv_build
4095shift
4096build_cpu=$1
4097build_vendor=$2
4098shift; shift
4099# Remember, the first character of IFS is used to create $*,
4100# except with old shells:
4101build_os=$*
4102IFS=$ac_save_IFS
4103case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4104
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4107$as_echo_n "checking host system type... " >&6; }
4108if test "${ac_cv_host+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110else
4111 if test "x$host_alias" = x; then
4112 ac_cv_host=$ac_cv_build
4113else
4114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4115 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4116fi
4117
4118fi
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4120$as_echo "$ac_cv_host" >&6; }
4121case $ac_cv_host in
4122*-*-*) ;;
4123*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4124esac
4125host=$ac_cv_host
4126ac_save_IFS=$IFS; IFS='-'
4127set x $ac_cv_host
4128shift
4129host_cpu=$1
4130host_vendor=$2
4131shift; shift
4132# Remember, the first character of IFS is used to create $*,
4133# except with old shells:
4134host_os=$*
4135IFS=$ac_save_IFS
4136case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4137
4138
4139
4140ac_ext=c
4141ac_cpp='$CPP $CPPFLAGS'
4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146$as_echo_n "checking how to run the C preprocessor... " >&6; }
4147# On Suns, sometimes $CPP names a directory.
4148if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4150fi
4151if test -z "$CPP"; then
4152 if test "${ac_cv_prog_CPP+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4157 do
4158 ac_preproc_ok=false
4159for ac_c_preproc_warn_flag in '' yes
4160do
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h. */
4169#ifdef __STDC__
4170# include <limits.h>
4171#else
4172# include <assert.h>
4173#endif
4174 Syntax error
4175_ACEOF
4176if ac_fn_c_try_cpp "$LINENO"; then :
4177
4178else
4179 # Broken: fails on valid input.
4180continue
4181fi
4182rm -f conftest.err conftest.$ac_ext
4183
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <ac_nonexistent.h>
4189_ACEOF
4190if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192continue
4193else
4194 # Passes both tests.
4195ac_preproc_ok=:
4196break
4197fi
4198rm -f conftest.err conftest.$ac_ext
4199
4200done
4201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202rm -f conftest.err conftest.$ac_ext
4203if $ac_preproc_ok; then :
4204 break
4205fi
4206
4207 done
4208 ac_cv_prog_CPP=$CPP
4209
4210fi
4211 CPP=$ac_cv_prog_CPP
4212else
4213 ac_cv_prog_CPP=$CPP
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216$as_echo "$CPP" >&6; }
4217ac_preproc_ok=false
4218for ac_c_preproc_warn_flag in '' yes
4219do
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227/* end confdefs.h. */
4228#ifdef __STDC__
4229# include <limits.h>
4230#else
4231# include <assert.h>
4232#endif
4233 Syntax error
4234_ACEOF
4235if ac_fn_c_try_cpp "$LINENO"; then :
4236
4237else
4238 # Broken: fails on valid input.
4239continue
4240fi
4241rm -f conftest.err conftest.$ac_ext
4242
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h. */
4247#include <ac_nonexistent.h>
4248_ACEOF
4249if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251continue
4252else
4253 # Passes both tests.
4254ac_preproc_ok=:
4255break
4256fi
4257rm -f conftest.err conftest.$ac_ext
4258
4259done
4260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261rm -f conftest.err conftest.$ac_ext
4262if $ac_preproc_ok; then :
4263
4264else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267as_fn_error "C preprocessor \"$CPP\" fails sanity check
4268See \`config.log' for more details." "$LINENO" 5; }
4269fi
4270
4271ac_ext=c
4272ac_cpp='$CPP $CPPFLAGS'
4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280if test "${ac_cv_path_GREP+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4282else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4295# Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297case `"$ac_path_GREP" --version 2>&1` in
4298*GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300*)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331else
4332 ac_cv_path_GREP=$GREP
4333fi
4334
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337$as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342$as_echo_n "checking for egrep... " >&6; }
4343if test "${ac_cv_path_EGREP+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361# Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363case `"$ac_path_EGREP" --version 2>&1` in
4364*GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366*)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 fi
4397else
4398 ac_cv_path_EGREP=$EGREP
4399fi
4400
4401 fi
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404$as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409$as_echo_n "checking for ANSI C header files... " >&6; }
4410if test "${ac_cv_header_stdc+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416#include <stdarg.h>
4417#include <string.h>
4418#include <float.h>
4419
4420int
4421main ()
4422{
4423
4424 ;
4425 return 0;
4426}
4427_ACEOF
4428if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
4430else
4431 ac_cv_header_stdc=no
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434
4435if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h. */
4439#include <string.h>
4440
4441_ACEOF
4442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4444
4445else
4446 ac_cv_header_stdc=no
4447fi
4448rm -f conftest*
4449
4450fi
4451
4452if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */
4456#include <stdlib.h>
4457
4458_ACEOF
4459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
4461
4462else
4463 ac_cv_header_stdc=no
4464fi
4465rm -f conftest*
4466
4467fi
4468
4469if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4472 :
4473else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h. */
4476#include <ctype.h>
4477#include <stdlib.h>
4478#if ((' ' & 0x0FF) == 0x020)
4479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481#else
4482# define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487#endif
4488
4489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4490int
4491main ()
4492{
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_run "$LINENO"; then :
4502
4503else
4504 ac_cv_header_stdc=no
4505fi
4506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4508fi
4509
4510fi
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513$as_echo "$ac_cv_header_stdc" >&6; }
4514if test $ac_cv_header_stdc = yes; then
4515
4516$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4517
4518fi
4519
4520# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4526"
4527eval as_val=\$$as_ac_Header
4528 if test "x$as_val" = x""yes; then :
4529 cat >>confdefs.h <<_ACEOF
4530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531_ACEOF
4532
4533fi
4534
4535done
4536
4537
4538
4539
4540
4541 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4542if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4543 MINIX=yes
4544else
4545 MINIX=
4546fi
4547
4548
4549 if test "$MINIX" = yes; then
4550
4551$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4552
4553
4554$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4555
4556
4557$as_echo "#define _MINIX 1" >>confdefs.h
4558
4559 fi
4560
4561 case "$host_os" in
4562 hpux*)
4563
4564$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4565
4566 ;;
4567 esac
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4571$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4572if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574else
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h. */
4577
4578# define __EXTENSIONS__ 1
4579 $ac_includes_default
4580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
4587_ACEOF
4588if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_safe_to_define___extensions__=yes
4590else
4591 ac_cv_safe_to_define___extensions__=no
4592fi
4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4596$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4597 test $ac_cv_safe_to_define___extensions__ = yes &&
4598 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4599
4600 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4601
4602 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4603
4604 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4605
4606 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4607
4608 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4609
4610
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4614$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4615if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
4621
4622#ifdef __ACK__
4623Amsterdam
4624#endif
4625
4626_ACEOF
4627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4629 gl_cv_c_amsterdam_compiler=yes
4630else
4631 gl_cv_c_amsterdam_compiler=no
4632fi
4633rm -f conftest*
4634
4635
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4638$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4639 if test -z "$AR"; then
4640 if test $gl_cv_c_amsterdam_compiler = yes; then
4641 AR='cc -c.a'
4642 if test -z "$ARFLAGS"; then
4643 ARFLAGS='-o'
4644 fi
4645 else
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4648set dummy ${ac_tool_prefix}ar; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if test "${ac_cv_prog_AR+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$AR"; then
4655 ac_cv_prog_AR="$AR" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_AR="${ac_tool_prefix}ar"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669 done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674AR=$ac_cv_prog_AR
4675if test -n "$AR"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4677$as_echo "$AR" >&6; }
4678else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684fi
4685if test -z "$ac_cv_prog_AR"; then
4686 ac_ct_AR=$AR
4687 # Extract the first word of "ar", so it can be a program name with args.
4688set dummy ar; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$ac_ct_AR"; then
4695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_AR="ar"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709 done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714ac_ct_AR=$ac_cv_prog_ac_ct_AR
4715if test -n "$ac_ct_AR"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4717$as_echo "$ac_ct_AR" >&6; }
4718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723 if test "x$ac_ct_AR" = x; then
4724 AR="ar"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727yes:)
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730ac_tool_warned=yes ;;
4731esac
4732 AR=$ac_ct_AR
4733 fi
4734else
4735 AR="$ac_cv_prog_AR"
4736fi
4737
4738 if test -z "$ARFLAGS"; then
4739 ARFLAGS='cru'
4740 fi
4741 fi
4742 else
4743 if test -z "$ARFLAGS"; then
4744 ARFLAGS='cru'
4745 fi
4746 fi
4747
4748
4749 if test -z "$RANLIB"; then
4750 if test $gl_cv_c_amsterdam_compiler = yes; then
4751 RANLIB=':'
4752 else
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4755set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
4758if test "${ac_cv_prog_RANLIB+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4760else
4761 if test -n "$RANLIB"; then
4762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775done
4776 done
4777IFS=$as_save_IFS
4778
4779fi
4780fi
4781RANLIB=$ac_cv_prog_RANLIB
4782if test -n "$RANLIB"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4784$as_echo "$RANLIB" >&6; }
4785else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787$as_echo "no" >&6; }
4788fi
4789
4790
4791fi
4792if test -z "$ac_cv_prog_RANLIB"; then
4793 ac_ct_RANLIB=$RANLIB
4794 # Extract the first word of "ranlib", so it can be a program name with args.
4795set dummy ranlib; ac_word=$2
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797$as_echo_n "checking for $ac_word... " >&6; }
4798if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800else
4801 if test -n "$ac_ct_RANLIB"; then
4802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4803else
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ac_ct_RANLIB="ranlib"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816 done
4817IFS=$as_save_IFS
4818
4819fi
4820fi
4821ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4822if test -n "$ac_ct_RANLIB"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4824$as_echo "$ac_ct_RANLIB" >&6; }
4825else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827$as_echo "no" >&6; }
4828fi
4829
4830 if test "x$ac_ct_RANLIB" = x; then
4831 RANLIB=":"
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834yes:)
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837ac_tool_warned=yes ;;
4838esac
4839 RANLIB=$ac_ct_RANLIB
4840 fi
4841else
4842 RANLIB="$ac_cv_prog_RANLIB"
4843fi
4844
4845 fi
4846 fi
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
88b48903
WN
4857
4858 # IEEE behaviour is the default on all CPUs except Alpha and SH
4859 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4860 # and the GCC 4.1.2 manual).
4861 case "$host_cpu" in
4862 alpha*)
4863 # On Alpha systems, a compiler option provides the behaviour.
4864 # See the ieee(3) manual page, also available at
4865 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4866 if test -n "$GCC"; then
4867 # GCC has the option -mieee.
4868 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4869 CPPFLAGS="$CPPFLAGS -mieee"
4870 else
4871 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4872 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4873 CPPFLAGS="$CPPFLAGS -ieee"
4874 fi
4875 ;;
4876 sh*)
4877 if test -n "$GCC"; then
4878 # GCC has the option -mieee.
4879 CPPFLAGS="$CPPFLAGS -mieee"
4880 fi
4881 ;;
4882 esac
4883
2196f55f
YQ
4884# Check whether --enable-largefile was given.
4885if test "${enable_largefile+set}" = set; then :
4886 enableval=$enable_largefile;
4887fi
4888
4889if test "$enable_largefile" != no; then
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4892$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4893if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895else
4896 ac_cv_sys_largefile_CC=no
4897 if test "$GCC" != yes; then
4898 ac_save_CC=$CC
4899 while :; do
4900 # IRIX 6.2 and later do not support large files by default,
4901 # so use the C compiler's -n32 option if that helps.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h. */
4904#include <sys/types.h>
4905 /* Check that off_t can represent 2**63 - 1 correctly.
4906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4907 since some C++ compilers masquerading as C compilers
4908 incorrectly reject 9223372036854775807. */
4909#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4911 && LARGE_OFF_T % 2147483647 == 1)
4912 ? 1 : -1];
4913int
4914main ()
4915{
4916
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922 break
4923fi
4924rm -f core conftest.err conftest.$ac_objext
4925 CC="$CC -n32"
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 ac_cv_sys_largefile_CC=' -n32'; break
4928fi
4929rm -f core conftest.err conftest.$ac_objext
4930 break
4931 done
4932 CC=$ac_save_CC
4933 rm -f conftest.$ac_ext
4934 fi
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4937$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4938 if test "$ac_cv_sys_largefile_CC" != no; then
4939 CC=$CC$ac_cv_sys_largefile_CC
4940 fi
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4943$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4944if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 while :; do
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h. */
4950#include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959int
4960main ()
4961{
4962
4963 ;
4964 return 0;
4965}
4966_ACEOF
4967if ac_fn_c_try_compile "$LINENO"; then :
4968 ac_cv_sys_file_offset_bits=no; break
4969fi
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h. */
4973#define _FILE_OFFSET_BITS 64
4974#include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4982 ? 1 : -1];
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_compile "$LINENO"; then :
4992 ac_cv_sys_file_offset_bits=64; break
4993fi
4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_cv_sys_file_offset_bits=unknown
4996 break
4997done
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5000$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5001case $ac_cv_sys_file_offset_bits in #(
5002 no | unknown) ;;
5003 *)
5004cat >>confdefs.h <<_ACEOF
5005#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5006_ACEOF
5007;;
5008esac
5009rm -rf conftest*
5010 if test $ac_cv_sys_file_offset_bits = unknown; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5012$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5013if test "${ac_cv_sys_large_files+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015else
5016 while :; do
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h. */
5019#include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5027 ? 1 : -1];
5028int
5029main ()
5030{
5031
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_sys_large_files=no; break
5038fi
5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h. */
5042#define _LARGE_FILES 1
5043#include <sys/types.h>
5044 /* Check that off_t can represent 2**63 - 1 correctly.
5045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5046 since some C++ compilers masquerading as C compilers
5047 incorrectly reject 9223372036854775807. */
5048#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5050 && LARGE_OFF_T % 2147483647 == 1)
5051 ? 1 : -1];
5052int
5053main ()
5054{
5055
5056 ;
5057 return 0;
5058}
5059_ACEOF
5060if ac_fn_c_try_compile "$LINENO"; then :
5061 ac_cv_sys_large_files=1; break
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 ac_cv_sys_large_files=unknown
5065 break
5066done
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5069$as_echo "$ac_cv_sys_large_files" >&6; }
5070case $ac_cv_sys_large_files in #(
5071 no | unknown) ;;
5072 *)
5073cat >>confdefs.h <<_ACEOF
5074#define _LARGE_FILES $ac_cv_sys_large_files
5075_ACEOF
5076;;
5077esac
5078rm -rf conftest*
5079 fi
5080
5081
5082fi
5083
88b48903
WN
5084
5085
8690e634
JK
5086 # Code from module alloca:
5087 # Code from module alloca-opt:
98399780 5088 # Code from module canonicalize-lgpl:
8690e634 5089 # Code from module configmake:
e26b6bb0 5090 # Code from module dirent:
18848e28 5091 # Code from module dirfd:
2196f55f 5092 # Code from module dosname:
18848e28 5093 # Code from module errno:
c971b7fa
PA
5094 # Code from module extensions:
5095
a512b375 5096 # Code from module extern-inline:
88b48903 5097 # Code from module float:
8690e634
JK
5098 # Code from module fnmatch:
5099 # Code from module fnmatch-gnu:
88b48903
WN
5100 # Code from module fpieee:
5101
5102 # Code from module fpucw:
5103 # Code from module frexp:
5104 # Code from module frexpl:
c971b7fa
PA
5105 # Code from module include_next:
5106 # Code from module inttypes:
5107 # Code from module inttypes-incomplete:
88b48903
WN
5108 # Code from module isnand-nolibm:
5109 # Code from module isnanl-nolibm:
2196f55f
YQ
5110 # Code from module largefile:
5111
8690e634 5112 # Code from module localcharset:
f45c62c4 5113 # Code from module lstat:
98399780 5114 # Code from module malloca:
88b48903 5115 # Code from module math:
8690e634
JK
5116 # Code from module mbrtowc:
5117 # Code from module mbsinit:
5118 # Code from module mbsrtowcs:
c971b7fa
PA
5119 # Code from module memchr:
5120 # Code from module memmem:
5121 # Code from module memmem-simple:
5122 # Code from module multiarch:
98399780 5123 # Code from module nocrash:
38ec2207 5124 # Code from module pathmax:
2196f55f 5125 # Code from module readlink:
98399780 5126 # Code from module snippet/_Noreturn:
c971b7fa
PA
5127 # Code from module snippet/arg-nonnull:
5128 # Code from module snippet/c++defs:
5129 # Code from module snippet/warn-on-use:
8839a007 5130 # Code from module ssize_t:
2196f55f 5131 # Code from module stat:
8690e634 5132 # Code from module stdbool:
c971b7fa
PA
5133 # Code from module stddef:
5134 # Code from module stdint:
98399780 5135 # Code from module stdlib:
8690e634 5136 # Code from module streq:
c971b7fa 5137 # Code from module string:
8690e634 5138 # Code from module strnlen1:
63ce7108
TT
5139 # Code from module strstr:
5140 # Code from module strstr-simple:
09607c9e 5141 # Code from module sys_stat:
8839a007 5142 # Code from module sys_types:
09607c9e 5143 # Code from module time:
8839a007 5144 # Code from module unistd:
c971b7fa 5145 # Code from module update-copyright:
8690e634
JK
5146 # Code from module verify:
5147 # Code from module wchar:
5148 # Code from module wctype-h:
c971b7fa
PA
5149
5150ac_ext=c
5151ac_cpp='$CPP $CPPFLAGS'
5152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5157set dummy ${ac_tool_prefix}gcc; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if test "${ac_cv_prog_CC+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162else
5163 if test -n "$CC"; then
5164 ac_cv_prog_CC="$CC" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178 done
5179IFS=$as_save_IFS
5180
5181fi
5182fi
5183CC=$ac_cv_prog_CC
5184if test -n "$CC"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5186$as_echo "$CC" >&6; }
5187else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190fi
5191
5192
5193fi
5194if test -z "$ac_cv_prog_CC"; then
5195 ac_ct_CC=$CC
5196 # Extract the first word of "gcc", so it can be a program name with args.
5197set dummy gcc; ac_word=$2
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199$as_echo_n "checking for $ac_word... " >&6; }
5200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 if test -n "$ac_ct_CC"; then
5204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_CC="gcc"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217done
5218 done
5219IFS=$as_save_IFS
5220
5221fi
5222fi
5223ac_ct_CC=$ac_cv_prog_ac_ct_CC
5224if test -n "$ac_ct_CC"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5226$as_echo "$ac_ct_CC" >&6; }
5227else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
5230fi
5231
5232 if test "x$ac_ct_CC" = x; then
5233 CC=""
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236yes:)
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239ac_tool_warned=yes ;;
5240esac
5241 CC=$ac_ct_CC
5242 fi
5243else
5244 CC="$ac_cv_prog_CC"
5245fi
5246
5247if test -z "$CC"; then
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5250set dummy ${ac_tool_prefix}cc; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if test "${ac_cv_prog_CC+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255else
5256 if test -n "$CC"; then
5257 ac_cv_prog_CC="$CC" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_CC="${ac_tool_prefix}cc"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271 done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276CC=$ac_cv_prog_CC
5277if test -n "$CC"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5279$as_echo "$CC" >&6; }
5280else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286 fi
5287fi
5288if test -z "$CC"; then
5289 # Extract the first word of "cc", so it can be a program name with args.
5290set dummy cc; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if test "${ac_cv_prog_CC+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 if test -n "$CC"; then
5297 ac_cv_prog_CC="$CC" # Let the user override the test.
5298else
5299 ac_prog_rejected=no
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5308 ac_prog_rejected=yes
5309 continue
5310 fi
5311 ac_cv_prog_CC="cc"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316 done
5317IFS=$as_save_IFS
5318
5319if test $ac_prog_rejected = yes; then
5320 # We found a bogon in the path, so make sure we never use it.
5321 set dummy $ac_cv_prog_CC
5322 shift
5323 if test $# != 0; then
5324 # We chose a different compiler from the bogus one.
5325 # However, it has the same basename, so the bogon will be chosen
5326 # first if we set CC to just the basename; use the full file name.
5327 shift
5328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5329 fi
5330fi
5331fi
5332fi
5333CC=$ac_cv_prog_CC
5334if test -n "$CC"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336$as_echo "$CC" >&6; }
5337else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
5340fi
5341
5342
5343fi
5344if test -z "$CC"; then
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog in cl.exe
5347 do
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
5352if test "${ac_cv_prog_CC+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354else
5355 if test -n "$CC"; then
5356 ac_cv_prog_CC="$CC" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370 done
5371IFS=$as_save_IFS
5372
5373fi
5374fi
5375CC=$ac_cv_prog_CC
5376if test -n "$CC"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5378$as_echo "$CC" >&6; }
5379else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384
5385 test -n "$CC" && break
5386 done
5387fi
5388if test -z "$CC"; then
5389 ac_ct_CC=$CC
5390 for ac_prog in cl.exe
5391do
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393set dummy $ac_prog; ac_word=$2
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
5396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398else
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_ac_ct_CC="$ac_prog"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414 done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420if test -n "$ac_ct_CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5422$as_echo "$ac_ct_CC" >&6; }
5423else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428
5429 test -n "$ac_ct_CC" && break
5430done
5431
5432 if test "x$ac_ct_CC" = x; then
5433 CC=""
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436yes:)
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439ac_tool_warned=yes ;;
5440esac
5441 CC=$ac_ct_CC
5442 fi
5443fi
5444
5445fi
5446
5447
5448test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450as_fn_error "no acceptable C compiler found in \$PATH
5451See \`config.log' for more details." "$LINENO" 5; }
5452
5453# Provide some information about the compiler.
5454$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5455set X $ac_compile
5456ac_compiler=$2
5457for ac_option in --version -v -V -qversion; do
5458 { { ac_try="$ac_compiler $ac_option >&5"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464$as_echo "$ac_try_echo"; } >&5
5465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5466 ac_status=$?
5467 if test -s conftest.err; then
5468 sed '10a\
5469... rest of stderr output deleted ...
5470 10q' conftest.err >conftest.er1
5471 cat conftest.er1 >&5
5472 rm -f conftest.er1 conftest.err
5473 fi
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; }
5476done
5477
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5479$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5480if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485
5486int
5487main ()
5488{
5489#ifndef __GNUC__
5490 choke me
5491#endif
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_compiler_gnu=yes
5499else
5500 ac_compiler_gnu=no
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503ac_cv_c_compiler_gnu=$ac_compiler_gnu
5504
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5507$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5508if test $ac_compiler_gnu = yes; then
5509 GCC=yes
5510else
5511 GCC=
5512fi
5513ac_test_CFLAGS=${CFLAGS+set}
5514ac_save_CFLAGS=$CFLAGS
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5516$as_echo_n "checking whether $CC accepts -g... " >&6; }
5517if test "${ac_cv_prog_cc_g+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519else
5520 ac_save_c_werror_flag=$ac_c_werror_flag
5521 ac_c_werror_flag=yes
5522 ac_cv_prog_cc_g=no
5523 CFLAGS="-g"
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h. */
5526
5527int
5528main ()
5529{
5530
5531 ;
5532 return 0;
5533}
5534_ACEOF
5535if ac_fn_c_try_compile "$LINENO"; then :
5536 ac_cv_prog_cc_g=yes
5537else
5538 CFLAGS=""
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h. */
5541
5542int
5543main ()
5544{
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
5550if ac_fn_c_try_compile "$LINENO"; then :
5551
5552else
5553 ac_c_werror_flag=$ac_save_c_werror_flag
5554 CFLAGS="-g"
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h. */
5557
5558int
5559main ()
5560{
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_prog_cc_g=yes
5568fi
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5575fi
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5577$as_echo "$ac_cv_prog_cc_g" >&6; }
5578if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5582 CFLAGS="-g -O2"
5583 else
5584 CFLAGS="-g"
5585 fi
5586else
5587 if test "$GCC" = yes; then
5588 CFLAGS="-O2"
5589 else
5590 CFLAGS=
5591 fi
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5594$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5595if test "${ac_cv_prog_cc_c89+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597else
5598 ac_cv_prog_cc_c89=no
5599ac_save_CC=$CC
5600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h. */
5602#include <stdarg.h>
5603#include <stdio.h>
5604#include <sys/types.h>
5605#include <sys/stat.h>
5606/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5607struct buf { int x; };
5608FILE * (*rcsopen) (struct buf *, struct stat *, int);
5609static char *e (p, i)
5610 char **p;
5611 int i;
5612{
5613 return p[i];
5614}
5615static char *f (char * (*g) (char **, int), char **p, ...)
5616{
5617 char *s;
5618 va_list v;
5619 va_start (v,p);
5620 s = g (p, va_arg (v,int));
5621 va_end (v);
5622 return s;
5623}
5624
5625/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5626 function prototypes and stuff, but not '\xHH' hex character constants.
5627 These don't provoke an error unfortunately, instead are silently treated
5628 as 'x'. The following induces an error, until -std is added to get
5629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5630 array size at least. It's necessary to write '\x00'==0 to get something
5631 that's true only with -std. */
5632int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5633
5634/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5635 inside strings and character constants. */
5636#define FOO(x) 'x'
5637int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5638
5639int test (int i, double x);
5640struct s1 {int (*f) (int a);};
5641struct s2 {int (*f) (double a);};
5642int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5643int argc;
5644char **argv;
5645int
5646main ()
5647{
5648return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5655do
5656 CC="$ac_save_CC $ac_arg"
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 ac_cv_prog_cc_c89=$ac_arg
5659fi
5660rm -f core conftest.err conftest.$ac_objext
5661 test "x$ac_cv_prog_cc_c89" != "xno" && break
5662done
5663rm -f conftest.$ac_ext
5664CC=$ac_save_CC
5665
5666fi
5667# AC_CACHE_VAL
5668case "x$ac_cv_prog_cc_c89" in
5669 x)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5671$as_echo "none needed" >&6; } ;;
5672 xno)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5674$as_echo "unsupported" >&6; } ;;
5675 *)
5676 CC="$CC $ac_cv_prog_cc_c89"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5678$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5679esac
5680if test "x$ac_cv_prog_cc_c89" != xno; then :
5681
5682fi
5683
5684ac_ext=c
5685ac_cpp='$CPP $CPPFLAGS'
5686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689
5690
5691am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5692
5693
5694ac_aux_dir=
5695for ac_dir in ../.. "$srcdir"/../..; do
5696 for ac_t in install-sh install.sh shtool; do
5697 if test -f "$ac_dir/$ac_t"; then
5698 ac_aux_dir=$ac_dir
5699 ac_install_sh="$ac_aux_dir/$ac_t -c"
5700 break 2
5701 fi
5702 done
5703done
5704if test -z "$ac_aux_dir"; then
5705 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5706fi
5707
5708# These three variables are undocumented and unsupported,
5709# and are intended to be withdrawn in a future Autoconf release.
5710# They can cause serious problems if a builder's source tree is in a directory
5711# whose full name contains unusual characters.
5712ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5713ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5714ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5718$as_echo_n "checking target system type... " >&6; }
5719if test "${ac_cv_target+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721else
5722 if test "x$target_alias" = x; then
5723 ac_cv_target=$ac_cv_host
5724else
5725 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5726 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5727fi
5728
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5731$as_echo "$ac_cv_target" >&6; }
5732case $ac_cv_target in
5733*-*-*) ;;
5734*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5735esac
5736target=$ac_cv_target
5737ac_save_IFS=$IFS; IFS='-'
5738set x $ac_cv_target
5739shift
5740target_cpu=$1
5741target_vendor=$2
5742shift; shift
5743# Remember, the first character of IFS is used to create $*,
5744# except with old shells:
5745target_os=$*
5746IFS=$ac_save_IFS
5747case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5748
5749
5750# The aliases save the names the user supplied, while $host etc.
5751# will get canonicalized.
5752test -n "$target_alias" &&
5753 test "$program_prefix$program_suffix$program_transform_name" = \
5754 NONENONEs,x,x, &&
5755 program_prefix=${target_alias}-
5756
5757
5758
5759
5760
5761
5762
5763 LIBC_FATAL_STDERR_=1
5764 export LIBC_FATAL_STDERR_
5765
8690e634
JK
5766# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5767# for constant arguments. Useless!
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5769$as_echo_n "checking for working alloca.h... " >&6; }
5770if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5771 $as_echo_n "(cached) " >&6
5772else
8690e634 5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5774/* end confdefs.h. */
8690e634 5775#include <alloca.h>
c971b7fa
PA
5776int
5777main ()
5778{
8690e634
JK
5779char *p = (char *) alloca (2 * sizeof (int));
5780 if (p) return 0;
c971b7fa
PA
5781 ;
5782 return 0;
5783}
c971b7fa
PA
5784_ACEOF
5785if ac_fn_c_try_link "$LINENO"; then :
8690e634 5786 ac_cv_working_alloca_h=yes
c971b7fa 5787else
8690e634 5788 ac_cv_working_alloca_h=no
c971b7fa
PA
5789fi
5790rm -f core conftest.err conftest.$ac_objext \
5791 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5792fi
8690e634
JK
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5794$as_echo "$ac_cv_working_alloca_h" >&6; }
5795if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5796
8690e634 5797$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5798
8690e634 5799fi
c971b7fa 5800
8690e634
JK
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5802$as_echo_n "checking for alloca... " >&6; }
5803if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5804 $as_echo_n "(cached) " >&6
c971b7fa
PA
5805else
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h. */
8690e634
JK
5808#ifdef __GNUC__
5809# define alloca __builtin_alloca
5810#else
5811# ifdef _MSC_VER
5812# include <malloc.h>
5813# define alloca _alloca
5814# else
5815# ifdef HAVE_ALLOCA_H
5816# include <alloca.h>
5817# else
5818# ifdef _AIX
5819 #pragma alloca
5820# else
5821# ifndef alloca /* predefined by HP cc +Olibcalls */
5822char *alloca ();
5823# endif
5824# endif
5825# endif
5826# endif
5827#endif
5828
c971b7fa
PA
5829int
5830main ()
5831{
8690e634
JK
5832char *p = (char *) alloca (1);
5833 if (p) return 0;
c971b7fa
PA
5834 ;
5835 return 0;
5836}
5837_ACEOF
8690e634
JK
5838if ac_fn_c_try_link "$LINENO"; then :
5839 ac_cv_func_alloca_works=yes
c971b7fa 5840else
8690e634 5841 ac_cv_func_alloca_works=no
c971b7fa 5842fi
8690e634
JK
5843rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5845fi
a143c6de
JB
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5847$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5848
a143c6de 5849if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5850
a143c6de 5851$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5852
a143c6de
JB
5853else
5854 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5855# that cause trouble. Some versions do not even contain alloca or
5856# contain a buggy version. If you still want to use their alloca,
5857# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5858
5859
5860
5861
5862
a143c6de 5863ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5864
a143c6de 5865$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5866
c971b7fa 5867
a143c6de
JB
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5869$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5870if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5871 $as_echo_n "(cached) " >&6
5872else
a143c6de 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5874/* end confdefs.h. */
a143c6de
JB
5875#if defined CRAY && ! defined CRAY2
5876webecray
5877#else
5878wenotbecray
8690e634 5879#endif
c971b7fa 5880
8690e634
JK
5881_ACEOF
5882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5883 $EGREP "webecray" >/dev/null 2>&1; then :
5884 ac_cv_os_cray=yes
8690e634 5885else
a143c6de 5886 ac_cv_os_cray=no
8690e634
JK
5887fi
5888rm -f conftest*
c971b7fa 5889
c0fc7f8b 5890fi
a143c6de
JB
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5892$as_echo "$ac_cv_os_cray" >&6; }
5893if test $ac_cv_os_cray = yes; then
5894 for ac_func in _getb67 GETB67 getb67; do
5895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5896ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5897eval as_val=\$$as_ac_var
5898 if test "x$as_val" = x""yes; then :
c0fc7f8b 5899
a143c6de
JB
5900cat >>confdefs.h <<_ACEOF
5901#define CRAY_STACKSEG_END $ac_func
5902_ACEOF
c971b7fa 5903
a143c6de 5904 break
8690e634 5905fi
c971b7fa 5906
a143c6de 5907 done
8690e634 5908fi
c0fc7f8b 5909
a143c6de
JB
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5911$as_echo_n "checking stack direction for C alloca... " >&6; }
5912if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5913 $as_echo_n "(cached) " >&6
5914else
a143c6de
JB
5915 if test "$cross_compiling" = yes; then :
5916 ac_cv_c_stack_direction=0
5917else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5919/* end confdefs.h. */
a143c6de
JB
5920$ac_includes_default
5921int
5922find_stack_direction (int *addr, int depth)
5923{
5924 int dir, dummy = 0;
5925 if (! addr)
5926 addr = &dummy;
5927 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5928 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5929 return dir + dummy;
5930}
8690e634 5931
a143c6de
JB
5932int
5933main (int argc, char **argv)
5934{
5935 return find_stack_direction (0, argc + !argv + 20) < 0;
5936}
c971b7fa 5937_ACEOF
a143c6de
JB
5938if ac_fn_c_try_run "$LINENO"; then :
5939 ac_cv_c_stack_direction=1
c971b7fa 5940else
a143c6de 5941 ac_cv_c_stack_direction=-1
8690e634 5942fi
a143c6de
JB
5943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5944 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5945fi
c971b7fa
PA
5946
5947fi
a143c6de
JB
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5949$as_echo "$ac_cv_c_stack_direction" >&6; }
5950cat >>confdefs.h <<_ACEOF
5951#define STACK_DIRECTION $ac_cv_c_stack_direction
5952_ACEOF
8690e634 5953
c971b7fa
PA
5954
5955fi
c971b7fa
PA
5956
5957
98399780
YQ
5958 GNULIB__EXIT=0;
5959 GNULIB_ATOLL=0;
5960 GNULIB_CALLOC_POSIX=0;
5961 GNULIB_CANONICALIZE_FILE_NAME=0;
5962 GNULIB_GETLOADAVG=0;
5963 GNULIB_GETSUBOPT=0;
5964 GNULIB_GRANTPT=0;
5965 GNULIB_MALLOC_POSIX=0;
5966 GNULIB_MBTOWC=0;
5967 GNULIB_MKDTEMP=0;
5968 GNULIB_MKOSTEMP=0;
5969 GNULIB_MKOSTEMPS=0;
5970 GNULIB_MKSTEMP=0;
5971 GNULIB_MKSTEMPS=0;
5972 GNULIB_POSIX_OPENPT=0;
5973 GNULIB_PTSNAME=0;
5974 GNULIB_PTSNAME_R=0;
5975 GNULIB_PUTENV=0;
5976 GNULIB_RANDOM=0;
5977 GNULIB_RANDOM_R=0;
5978 GNULIB_REALLOC_POSIX=0;
5979 GNULIB_REALPATH=0;
5980 GNULIB_RPMATCH=0;
5981 GNULIB_SETENV=0;
5982 GNULIB_STRTOD=0;
5983 GNULIB_STRTOLL=0;
5984 GNULIB_STRTOULL=0;
5985 GNULIB_SYSTEM_POSIX=0;
5986 GNULIB_UNLOCKPT=0;
5987 GNULIB_UNSETENV=0;
5988 GNULIB_WCTOMB=0;
5989 HAVE__EXIT=1;
5990 HAVE_ATOLL=1;
5991 HAVE_CANONICALIZE_FILE_NAME=1;
5992 HAVE_DECL_GETLOADAVG=1;
5993 HAVE_GETSUBOPT=1;
5994 HAVE_GRANTPT=1;
5995 HAVE_MKDTEMP=1;
5996 HAVE_MKOSTEMP=1;
5997 HAVE_MKOSTEMPS=1;
5998 HAVE_MKSTEMP=1;
5999 HAVE_MKSTEMPS=1;
6000 HAVE_POSIX_OPENPT=1;
6001 HAVE_PTSNAME=1;
6002 HAVE_PTSNAME_R=1;
6003 HAVE_RANDOM=1;
6004 HAVE_RANDOM_H=1;
6005 HAVE_RANDOM_R=1;
6006 HAVE_REALPATH=1;
6007 HAVE_RPMATCH=1;
6008 HAVE_SETENV=1;
6009 HAVE_DECL_SETENV=1;
6010 HAVE_STRTOD=1;
6011 HAVE_STRTOLL=1;
6012 HAVE_STRTOULL=1;
6013 HAVE_STRUCT_RANDOM_DATA=1;
6014 HAVE_SYS_LOADAVG_H=0;
6015 HAVE_UNLOCKPT=1;
6016 HAVE_DECL_UNSETENV=1;
6017 REPLACE_CALLOC=0;
6018 REPLACE_CANONICALIZE_FILE_NAME=0;
6019 REPLACE_MALLOC=0;
6020 REPLACE_MBTOWC=0;
6021 REPLACE_MKSTEMP=0;
6022 REPLACE_PTSNAME=0;
6023 REPLACE_PTSNAME_R=0;
6024 REPLACE_PUTENV=0;
6025 REPLACE_RANDOM_R=0;
6026 REPLACE_REALLOC=0;
6027 REPLACE_REALPATH=0;
6028 REPLACE_SETENV=0;
6029 REPLACE_STRTOD=0;
6030 REPLACE_UNSETENV=0;
6031 REPLACE_WCTOMB=0;
6032
6033
6034
6035
6036 for ac_func in $ac_func_list
6037do :
6038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6039ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6040eval as_val=\$$as_ac_var
6041 if test "x$as_val" = x""yes; then :
6042 cat >>confdefs.h <<_ACEOF
6043#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6044_ACEOF
6045
6046fi
6047done
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6058$as_echo_n "checking whether // is distinct from /... " >&6; }
6059if test "${gl_cv_double_slash_root+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test x"$cross_compiling" = xyes ; then
6063 # When cross-compiling, there is no way to tell whether // is special
6064 # short of a list of hosts. However, the only known hosts to date
6065 # that have a distinct // are Apollo DomainOS (too old to port to),
6066 # Cygwin, and z/OS. If anyone knows of another system for which // has
6067 # special semantics and is distinct from /, please report it to
6068 # <bug-gnulib@gnu.org>.
6069 case $host in
6070 *-cygwin | i370-ibm-openedition)
6071 gl_cv_double_slash_root=yes ;;
6072 *)
6073 # Be optimistic and assume that / and // are the same when we
6074 # don't know.
6075 gl_cv_double_slash_root='unknown, assuming no' ;;
6076 esac
6077 else
6078 set x `ls -di / // 2>/dev/null`
6079 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6080 gl_cv_double_slash_root=no
6081 else
6082 gl_cv_double_slash_root=yes
6083 fi
6084 fi
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6087$as_echo "$gl_cv_double_slash_root" >&6; }
6088 if test "$gl_cv_double_slash_root" = yes; then
6089
6090$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6091
6092 fi
6093
6094
6095
6096
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6099$as_echo_n "checking whether realpath works... " >&6; }
6100if test "${gl_cv_func_realpath_works+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6102else
6103
6104 touch conftest.a
6105 mkdir conftest.d
6106 if test "$cross_compiling" = yes; then :
6107 case "$host_os" in
6108 # Guess yes on glibc systems.
6109 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6110 # If we don't know, assume the worst.
6111 *) gl_cv_func_realpath_works="guessing no" ;;
6112 esac
6113
6114else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h. */
6117
6118
6119
6120#include <stdlib.h>
6121#if defined __MACH__ && defined __APPLE__
6122/* Avoid a crash on Mac OS X. */
6123#include <mach/mach.h>
6124#include <mach/mach_error.h>
6125#include <mach/thread_status.h>
6126#include <mach/exception.h>
6127#include <mach/task.h>
6128#include <pthread.h>
6129/* The exception port on which our thread listens. */
6130static mach_port_t our_exception_port;
6131/* The main function of the thread listening for exceptions of type
6132 EXC_BAD_ACCESS. */
6133static void *
6134mach_exception_thread (void *arg)
6135{
6136 /* Buffer for a message to be received. */
6137 struct {
6138 mach_msg_header_t head;
6139 mach_msg_body_t msgh_body;
6140 char data[1024];
6141 } msg;
6142 mach_msg_return_t retval;
6143 /* Wait for a message on the exception port. */
6144 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6145 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6146 if (retval != MACH_MSG_SUCCESS)
6147 abort ();
6148 exit (1);
6149}
6150static void
6151nocrash_init (void)
6152{
6153 mach_port_t self = mach_task_self ();
6154 /* Allocate a port on which the thread shall listen for exceptions. */
6155 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6156 == KERN_SUCCESS) {
6157 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6158 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6159 MACH_MSG_TYPE_MAKE_SEND)
6160 == KERN_SUCCESS) {
6161 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6162 for us. */
6163 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6164 /* Create the thread listening on the exception port. */
6165 pthread_attr_t attr;
6166 pthread_t thread;
6167 if (pthread_attr_init (&attr) == 0
6168 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6169 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6170 pthread_attr_destroy (&attr);
6171 /* Replace the exception port info for these exceptions with our own.
6172 Note that we replace the exception port for the entire task, not only
6173 for a particular thread. This has the effect that when our exception
6174 port gets the message, the thread specific exception port has already
6175 been asked, and we don't need to bother about it.
6176 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6177 task_set_exception_ports (self, mask, our_exception_port,
6178 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6179 }
6180 }
6181 }
6182}
6183#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6184/* Avoid a crash on native Windows. */
6185#define WIN32_LEAN_AND_MEAN
6186#include <windows.h>
6187#include <winerror.h>
6188static LONG WINAPI
6189exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6190{
6191 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6192 {
6193 case EXCEPTION_ACCESS_VIOLATION:
6194 case EXCEPTION_IN_PAGE_ERROR:
6195 case EXCEPTION_STACK_OVERFLOW:
6196 case EXCEPTION_GUARD_PAGE:
6197 case EXCEPTION_PRIV_INSTRUCTION:
6198 case EXCEPTION_ILLEGAL_INSTRUCTION:
6199 case EXCEPTION_DATATYPE_MISALIGNMENT:
6200 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6201 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6202 exit (1);
6203 }
6204 return EXCEPTION_CONTINUE_SEARCH;
6205}
6206static void
6207nocrash_init (void)
6208{
6209 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6210}
6211#else
6212/* Avoid a crash on POSIX systems. */
6213#include <signal.h>
6214/* A POSIX signal handler. */
6215static void
6216exception_handler (int sig)
6217{
6218 exit (1);
6219}
6220static void
6221nocrash_init (void)
6222{
6223#ifdef SIGSEGV
6224 signal (SIGSEGV, exception_handler);
6225#endif
6226#ifdef SIGBUS
6227 signal (SIGBUS, exception_handler);
6228#endif
6229}
6230#endif
6231
6232 #include <stdlib.h>
6233 #include <string.h>
6234
6235int
6236main ()
6237{
6238
6239 int result = 0;
6240 {
6241 char *name = realpath ("conftest.a", NULL);
6242 if (!(name && *name == '/'))
6243 result |= 1;
6244 }
6245 {
6246 char *name = realpath ("conftest.b/../conftest.a", NULL);
6247 if (name != NULL)
6248 result |= 2;
6249 }
6250 {
6251 char *name = realpath ("conftest.a/", NULL);
6252 if (name != NULL)
6253 result |= 4;
6254 }
6255 {
6256 char *name1 = realpath (".", NULL);
6257 char *name2 = realpath ("conftest.d//./..", NULL);
6258 if (strcmp (name1, name2) != 0)
6259 result |= 8;
6260 }
6261 return result;
6262
6263 ;
6264 return 0;
6265}
6266
6267_ACEOF
6268if ac_fn_c_try_run "$LINENO"; then :
6269 gl_cv_func_realpath_works=yes
6270else
6271 gl_cv_func_realpath_works=no
6272fi
6273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6274 conftest.$ac_objext conftest.beam conftest.$ac_ext
6275fi
6276
6277 rm -rf conftest.a conftest.d
6278
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6281$as_echo "$gl_cv_func_realpath_works" >&6; }
6282 case "$gl_cv_func_realpath_works" in
6283 *yes)
6284
6285$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6286
6287 ;;
6288 esac
6289
6290
6291
6292
6293 for ac_header in $ac_header_list
6294do :
6295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6297"
6298eval as_val=\$$as_ac_Header
6299 if test "x$as_val" = x""yes; then :
6300 cat >>confdefs.h <<_ACEOF
6301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6302_ACEOF
6303
6304fi
6305
6306done
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
e26b6bb0
TT
6318 GNULIB_CHDIR=0;
6319 GNULIB_CHOWN=0;
6320 GNULIB_CLOSE=0;
6321 GNULIB_DUP=0;
6322 GNULIB_DUP2=0;
6323 GNULIB_DUP3=0;
6324 GNULIB_ENVIRON=0;
6325 GNULIB_EUIDACCESS=0;
6326 GNULIB_FACCESSAT=0;
6327 GNULIB_FCHDIR=0;
6328 GNULIB_FCHOWNAT=0;
6329 GNULIB_FDATASYNC=0;
6330 GNULIB_FSYNC=0;
6331 GNULIB_FTRUNCATE=0;
6332 GNULIB_GETCWD=0;
6333 GNULIB_GETDOMAINNAME=0;
6334 GNULIB_GETDTABLESIZE=0;
6335 GNULIB_GETGROUPS=0;
6336 GNULIB_GETHOSTNAME=0;
6337 GNULIB_GETLOGIN=0;
6338 GNULIB_GETLOGIN_R=0;
6339 GNULIB_GETPAGESIZE=0;
6340 GNULIB_GETUSERSHELL=0;
6341 GNULIB_GROUP_MEMBER=0;
6342 GNULIB_ISATTY=0;
6343 GNULIB_LCHOWN=0;
6344 GNULIB_LINK=0;
6345 GNULIB_LINKAT=0;
6346 GNULIB_LSEEK=0;
6347 GNULIB_PIPE=0;
6348 GNULIB_PIPE2=0;
6349 GNULIB_PREAD=0;
6350 GNULIB_PWRITE=0;
6351 GNULIB_READ=0;
6352 GNULIB_READLINK=0;
6353 GNULIB_READLINKAT=0;
6354 GNULIB_RMDIR=0;
6355 GNULIB_SETHOSTNAME=0;
6356 GNULIB_SLEEP=0;
6357 GNULIB_SYMLINK=0;
6358 GNULIB_SYMLINKAT=0;
6359 GNULIB_TTYNAME_R=0;
6360 GNULIB_UNISTD_H_NONBLOCKING=0;
6361 GNULIB_UNISTD_H_SIGPIPE=0;
6362 GNULIB_UNLINK=0;
6363 GNULIB_UNLINKAT=0;
6364 GNULIB_USLEEP=0;
6365 GNULIB_WRITE=0;
6366 HAVE_CHOWN=1;
6367 HAVE_DUP2=1;
6368 HAVE_DUP3=1;
6369 HAVE_EUIDACCESS=1;
6370 HAVE_FACCESSAT=1;
6371 HAVE_FCHDIR=1;
6372 HAVE_FCHOWNAT=1;
6373 HAVE_FDATASYNC=1;
6374 HAVE_FSYNC=1;
6375 HAVE_FTRUNCATE=1;
6376 HAVE_GETDTABLESIZE=1;
6377 HAVE_GETGROUPS=1;
6378 HAVE_GETHOSTNAME=1;
6379 HAVE_GETLOGIN=1;
6380 HAVE_GETPAGESIZE=1;
6381 HAVE_GROUP_MEMBER=1;
6382 HAVE_LCHOWN=1;
6383 HAVE_LINK=1;
6384 HAVE_LINKAT=1;
6385 HAVE_PIPE=1;
6386 HAVE_PIPE2=1;
6387 HAVE_PREAD=1;
6388 HAVE_PWRITE=1;
6389 HAVE_READLINK=1;
6390 HAVE_READLINKAT=1;
6391 HAVE_SETHOSTNAME=1;
6392 HAVE_SLEEP=1;
6393 HAVE_SYMLINK=1;
6394 HAVE_SYMLINKAT=1;
6395 HAVE_UNLINKAT=1;
6396 HAVE_USLEEP=1;
6397 HAVE_DECL_ENVIRON=1;
6398 HAVE_DECL_FCHDIR=1;
6399 HAVE_DECL_FDATASYNC=1;
6400 HAVE_DECL_GETDOMAINNAME=1;
6401 HAVE_DECL_GETLOGIN_R=1;
6402 HAVE_DECL_GETPAGESIZE=1;
6403 HAVE_DECL_GETUSERSHELL=1;
6404 HAVE_DECL_SETHOSTNAME=1;
6405 HAVE_DECL_TTYNAME_R=1;
6406 HAVE_OS_H=0;
6407 HAVE_SYS_PARAM_H=0;
6408 REPLACE_CHOWN=0;
6409 REPLACE_CLOSE=0;
6410 REPLACE_DUP=0;
6411 REPLACE_DUP2=0;
6412 REPLACE_FCHOWNAT=0;
6413 REPLACE_FTRUNCATE=0;
6414 REPLACE_GETCWD=0;
6415 REPLACE_GETDOMAINNAME=0;
6416 REPLACE_GETLOGIN_R=0;
6417 REPLACE_GETGROUPS=0;
6418 REPLACE_GETPAGESIZE=0;
6419 REPLACE_ISATTY=0;
6420 REPLACE_LCHOWN=0;
6421 REPLACE_LINK=0;
6422 REPLACE_LINKAT=0;
6423 REPLACE_LSEEK=0;
6424 REPLACE_PREAD=0;
6425 REPLACE_PWRITE=0;
6426 REPLACE_READ=0;
6427 REPLACE_READLINK=0;
6428 REPLACE_RMDIR=0;
6429 REPLACE_SLEEP=0;
6430 REPLACE_SYMLINK=0;
6431 REPLACE_TTYNAME_R=0;
6432 REPLACE_UNLINK=0;
6433 REPLACE_UNLINKAT=0;
6434 REPLACE_USLEEP=0;
6435 REPLACE_WRITE=0;
6436 UNISTD_H_HAVE_WINSOCK2_H=0;
6437 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6438
6439
6440
6441 GNULIB_OPENDIR=0;
6442 GNULIB_READDIR=0;
6443 GNULIB_REWINDDIR=0;
6444 GNULIB_CLOSEDIR=0;
6445 GNULIB_DIRFD=0;
6446 GNULIB_FDOPENDIR=0;
6447 GNULIB_SCANDIR=0;
6448 GNULIB_ALPHASORT=0;
6449 HAVE_OPENDIR=1;
6450 HAVE_READDIR=1;
6451 HAVE_REWINDDIR=1;
6452 HAVE_CLOSEDIR=1;
6453 HAVE_DECL_DIRFD=1;
6454 HAVE_DECL_FDOPENDIR=1;
6455 HAVE_FDOPENDIR=1;
6456 HAVE_SCANDIR=1;
6457 HAVE_ALPHASORT=1;
6458 REPLACE_OPENDIR=0;
6459 REPLACE_CLOSEDIR=0;
6460 REPLACE_DIRFD=0;
6461 REPLACE_FDOPENDIR=0;
6462
6463
6464
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6466$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6467if test "${gl_cv_have_include_next+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469else
6470 rm -rf conftestd1a conftestd1b conftestd2
6471 mkdir conftestd1a conftestd1b conftestd2
6472 cat <<EOF > conftestd1a/conftest.h
6473#define DEFINED_IN_CONFTESTD1
6474#include_next <conftest.h>
6475#ifdef DEFINED_IN_CONFTESTD2
6476int foo;
6477#else
88b48903
WN
6478#error "include_next doesn't work"
6479#endif
6480EOF
6481 cat <<EOF > conftestd1b/conftest.h
6482#define DEFINED_IN_CONFTESTD1
6483#include <stdio.h>
6484#include_next <conftest.h>
6485#ifdef DEFINED_IN_CONFTESTD2
6486int foo;
6487#else
6488#error "include_next doesn't work"
6489#endif
6490EOF
6491 cat <<EOF > conftestd2/conftest.h
6492#ifndef DEFINED_IN_CONFTESTD1
6493#error "include_next test doesn't work"
6494#endif
6495#define DEFINED_IN_CONFTESTD2
6496EOF
6497 gl_save_CPPFLAGS="$CPPFLAGS"
6498 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h. */
6501#include <conftest.h>
6502_ACEOF
6503if ac_fn_c_try_compile "$LINENO"; then :
6504 gl_cv_have_include_next=yes
6505else
6506 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h. */
6509#include <conftest.h>
6510_ACEOF
6511if ac_fn_c_try_compile "$LINENO"; then :
6512 gl_cv_have_include_next=buggy
6513else
6514 gl_cv_have_include_next=no
6515fi
6516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517
6518fi
6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CPPFLAGS="$gl_save_CPPFLAGS"
6521 rm -rf conftestd1a conftestd1b conftestd2
6522
6523fi
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6525$as_echo "$gl_cv_have_include_next" >&6; }
6526 PRAGMA_SYSTEM_HEADER=
6527 if test $gl_cv_have_include_next = yes; then
6528 INCLUDE_NEXT=include_next
6529 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6530 if test -n "$GCC"; then
6531 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6532 fi
6533 else
6534 if test $gl_cv_have_include_next = buggy; then
6535 INCLUDE_NEXT=include
6536 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6537 else
6538 INCLUDE_NEXT=include
6539 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6540 fi
6541 fi
6542
6543
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6546$as_echo_n "checking whether system header files limit the line length... " >&6; }
6547if test "${gl_cv_pragma_columns+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549else
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h. */
6552
6553#ifdef __TANDEM
6554choke me
6555#endif
6556
6557_ACEOF
6558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "choke me" >/dev/null 2>&1; then :
6560 gl_cv_pragma_columns=yes
6561else
6562 gl_cv_pragma_columns=no
6563fi
6564rm -f conftest*
6565
6566
6567fi
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6569$as_echo "$gl_cv_pragma_columns" >&6; }
6570 if test $gl_cv_pragma_columns = yes; then
6571 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6572 else
6573 PRAGMA_COLUMNS=
6574 fi
6575
6576
6577
6578
e26b6bb0 6579
e26b6bb0 6580
18848e28
GF
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6582$as_echo_n "checking for complete errno.h... " >&6; }
6583if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585else
6586
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h. */
6589
6590#include <errno.h>
6591#if !defined ETXTBSY
6592booboo
6593#endif
6594#if !defined ENOMSG
6595booboo
6596#endif
6597#if !defined EIDRM
6598booboo
6599#endif
6600#if !defined ENOLINK
6601booboo
6602#endif
6603#if !defined EPROTO
6604booboo
6605#endif
6606#if !defined EMULTIHOP
6607booboo
6608#endif
6609#if !defined EBADMSG
6610booboo
6611#endif
6612#if !defined EOVERFLOW
6613booboo
6614#endif
6615#if !defined ENOTSUP
6616booboo
6617#endif
6618#if !defined ENETRESET
6619booboo
6620#endif
6621#if !defined ECONNABORTED
6622booboo
6623#endif
6624#if !defined ESTALE
6625booboo
6626#endif
6627#if !defined EDQUOT
6628booboo
6629#endif
6630#if !defined ECANCELED
6631booboo
6632#endif
6633#if !defined EOWNERDEAD
6634booboo
6635#endif
6636#if !defined ENOTRECOVERABLE
6637booboo
6638#endif
6639#if !defined EILSEQ
6640booboo
6641#endif
6642
6643_ACEOF
6644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "booboo" >/dev/null 2>&1; then :
6646 gl_cv_header_errno_h_complete=no
6647else
6648 gl_cv_header_errno_h_complete=yes
6649fi
6650rm -f conftest*
6651
6652
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6655$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6656 if test $gl_cv_header_errno_h_complete = yes; then
6657 ERRNO_H=''
6658 else
6659
6660
6661
6662
6663
6664
6665
6666
6667 if test $gl_cv_have_include_next = yes; then
6668 gl_cv_next_errno_h='<'errno.h'>'
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6671$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6672if test "${gl_cv_next_errno_h+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674else
6675
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678#include <errno.h>
6679
6680_ACEOF
6681 case "$host_os" in
6682 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6683 *) gl_absname_cpp="$ac_cpp" ;;
6684 esac
6685
6686 case "$host_os" in
6687 mingw*)
6688 gl_dirsep_regex='[/\\]'
6689 ;;
6690 *)
6691 gl_dirsep_regex='\/'
6692 ;;
6693 esac
6694 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6695
6696 gl_header_literal_regex=`echo 'errno.h' \
6697 | sed -e "$gl_make_literal_regex_sed"`
6698 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6700 s|^/[^/]|//&|
6701 p
6702 q
6703 }'
6704 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6705 sed -n "$gl_absolute_header_sed"`'"'
6706
6707
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6710$as_echo "$gl_cv_next_errno_h" >&6; }
6711 fi
6712 NEXT_ERRNO_H=$gl_cv_next_errno_h
6713
6714 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6716 gl_next_as_first_directive='<'errno.h'>'
6717 else
6718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6719 gl_next_as_first_directive=$gl_cv_next_errno_h
6720 fi
6721 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6722
6723
6724
6725
6726 ERRNO_H='errno.h'
6727 fi
6728
6729 if test -n "$ERRNO_H"; then
6730 GL_GENERATE_ERRNO_H_TRUE=
6731 GL_GENERATE_ERRNO_H_FALSE='#'
6732else
6733 GL_GENERATE_ERRNO_H_TRUE='#'
6734 GL_GENERATE_ERRNO_H_FALSE=
6735fi
6736
6737
6738 if test -n "$ERRNO_H"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6740$as_echo_n "checking for EMULTIHOP value... " >&6; }
6741if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743else
6744
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h. */
6747
6748#include <errno.h>
6749#ifdef EMULTIHOP
6750yes
6751#endif
6752
6753_ACEOF
6754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "yes" >/dev/null 2>&1; then :
6756 gl_cv_header_errno_h_EMULTIHOP=yes
6757else
6758 gl_cv_header_errno_h_EMULTIHOP=no
6759fi
6760rm -f conftest*
6761
6762 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h. */
6765
6766#define _XOPEN_SOURCE_EXTENDED 1
6767#include <errno.h>
6768#ifdef EMULTIHOP
6769yes
6770#endif
6771
6772_ACEOF
6773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "yes" >/dev/null 2>&1; then :
6775 gl_cv_header_errno_h_EMULTIHOP=hidden
6776fi
6777rm -f conftest*
6778
6779 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6780 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6781#define _XOPEN_SOURCE_EXTENDED 1
6782#include <errno.h>
6783/* The following two lines are a workaround against an autoconf-2.52 bug. */
6784#include <stdio.h>
6785#include <stdlib.h>
6786"; then :
6787
6788fi
6789
6790 fi
6791 fi
6792
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6795$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6796 case $gl_cv_header_errno_h_EMULTIHOP in
6797 yes | no)
6798 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6799 ;;
6800 *)
6801 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6802 ;;
6803 esac
6804
6805
6806 fi
6807
6808
6809 if test -n "$ERRNO_H"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6811$as_echo_n "checking for ENOLINK value... " >&6; }
6812if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814else
6815
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h. */
6818
6819#include <errno.h>
6820#ifdef ENOLINK
6821yes
6822#endif
6823
6824_ACEOF
6825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "yes" >/dev/null 2>&1; then :
6827 gl_cv_header_errno_h_ENOLINK=yes
6828else
6829 gl_cv_header_errno_h_ENOLINK=no
6830fi
6831rm -f conftest*
6832
6833 if test $gl_cv_header_errno_h_ENOLINK = no; then
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836
6837#define _XOPEN_SOURCE_EXTENDED 1
6838#include <errno.h>
6839#ifdef ENOLINK
6840yes
6841#endif
6842
6843_ACEOF
6844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845 $EGREP "yes" >/dev/null 2>&1; then :
6846 gl_cv_header_errno_h_ENOLINK=hidden
6847fi
6848rm -f conftest*
6849
6850 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6851 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6852#define _XOPEN_SOURCE_EXTENDED 1
6853#include <errno.h>
6854/* The following two lines are a workaround against an autoconf-2.52 bug. */
6855#include <stdio.h>
6856#include <stdlib.h>
6857"; then :
6858
6859fi
6860
6861 fi
6862 fi
6863
6864fi
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6866$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6867 case $gl_cv_header_errno_h_ENOLINK in
6868 yes | no)
6869 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6870 ;;
6871 *)
6872 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6873 ;;
6874 esac
6875
6876
6877 fi
6878
6879
6880 if test -n "$ERRNO_H"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6882$as_echo_n "checking for EOVERFLOW value... " >&6; }
6883if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885else
6886
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h. */
6889
6890#include <errno.h>
6891#ifdef EOVERFLOW
6892yes
6893#endif
6894
6895_ACEOF
6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "yes" >/dev/null 2>&1; then :
6898 gl_cv_header_errno_h_EOVERFLOW=yes
6899else
6900 gl_cv_header_errno_h_EOVERFLOW=no
6901fi
6902rm -f conftest*
6903
6904 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906/* end confdefs.h. */
6907
6908#define _XOPEN_SOURCE_EXTENDED 1
6909#include <errno.h>
6910#ifdef EOVERFLOW
6911yes
6912#endif
6913
6914_ACEOF
6915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916 $EGREP "yes" >/dev/null 2>&1; then :
6917 gl_cv_header_errno_h_EOVERFLOW=hidden
6918fi
6919rm -f conftest*
6920
6921 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6922 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6923#define _XOPEN_SOURCE_EXTENDED 1
6924#include <errno.h>
6925/* The following two lines are a workaround against an autoconf-2.52 bug. */
6926#include <stdio.h>
6927#include <stdlib.h>
6928"; then :
6929
6930fi
6931
6932 fi
6933 fi
6934
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6937$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6938 case $gl_cv_header_errno_h_EOVERFLOW in
6939 yes | no)
6940 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6941 ;;
6942 *)
6943 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6944 ;;
6945 esac
6946
6947
6948 fi
6949
6950
6951
6952
63ce7108
TT
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6957$as_echo_n "checking for mbstate_t... " >&6; }
6958if test "${ac_cv_type_mbstate_t+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h. */
6963$ac_includes_default
6964/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6965 <wchar.h>.
6966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6967 included before <wchar.h>. */
6968#include <stddef.h>
6969#include <stdio.h>
6970#include <time.h>
6971#include <wchar.h>
6972int
6973main ()
6974{
6975mbstate_t x; return sizeof x;
6976 ;
6977 return 0;
6978}
6979_ACEOF
6980if ac_fn_c_try_compile "$LINENO"; then :
6981 ac_cv_type_mbstate_t=yes
6982else
6983 ac_cv_type_mbstate_t=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986fi
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6988$as_echo "$ac_cv_type_mbstate_t" >&6; }
6989 if test $ac_cv_type_mbstate_t = yes; then
6990
6991$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6992
6993 else
6994
6995$as_echo "#define mbstate_t int" >>confdefs.h
6996
6997 fi
6998
6999
7000
7001
63ce7108
TT
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
63ce7108
TT
7018 GNULIB_ACOSF=0;
7019 GNULIB_ACOSL=0;
7020 GNULIB_ASINF=0;
7021 GNULIB_ASINL=0;
7022 GNULIB_ATANF=0;
7023 GNULIB_ATANL=0;
7024 GNULIB_ATAN2F=0;
7025 GNULIB_CBRT=0;
7026 GNULIB_CBRTF=0;
7027 GNULIB_CBRTL=0;
7028 GNULIB_CEIL=0;
7029 GNULIB_CEILF=0;
7030 GNULIB_CEILL=0;
7031 GNULIB_COPYSIGN=0;
7032 GNULIB_COPYSIGNF=0;
88b48903
WN
7033 GNULIB_COPYSIGNL=0;
7034 GNULIB_COSF=0;
7035 GNULIB_COSL=0;
7036 GNULIB_COSHF=0;
7037 GNULIB_EXPF=0;
7038 GNULIB_EXPL=0;
7039 GNULIB_EXP2=0;
7040 GNULIB_EXP2F=0;
7041 GNULIB_EXP2L=0;
7042 GNULIB_EXPM1=0;
7043 GNULIB_EXPM1F=0;
7044 GNULIB_EXPM1L=0;
7045 GNULIB_FABSF=0;
7046 GNULIB_FABSL=0;
7047 GNULIB_FLOOR=0;
7048 GNULIB_FLOORF=0;
7049 GNULIB_FLOORL=0;
7050 GNULIB_FMA=0;
7051 GNULIB_FMAF=0;
7052 GNULIB_FMAL=0;
7053 GNULIB_FMOD=0;
7054 GNULIB_FMODF=0;
7055 GNULIB_FMODL=0;
7056 GNULIB_FREXPF=0;
7057 GNULIB_FREXP=0;
7058 GNULIB_FREXPL=0;
7059 GNULIB_HYPOT=0;
7060 GNULIB_HYPOTF=0;
7061 GNULIB_HYPOTL=0;
7062 GNULIB_ILOGB=0;
7063 GNULIB_ILOGBF=0;
7064 GNULIB_ILOGBL=0;
7065 GNULIB_ISFINITE=0;
7066 GNULIB_ISINF=0;
7067 GNULIB_ISNAN=0;
7068 GNULIB_ISNANF=0;
7069 GNULIB_ISNAND=0;
7070 GNULIB_ISNANL=0;
7071 GNULIB_LDEXPF=0;
7072 GNULIB_LDEXPL=0;
7073 GNULIB_LOG=0;
7074 GNULIB_LOGF=0;
7075 GNULIB_LOGL=0;
7076 GNULIB_LOG10=0;
7077 GNULIB_LOG10F=0;
7078 GNULIB_LOG10L=0;
7079 GNULIB_LOG1P=0;
7080 GNULIB_LOG1PF=0;
7081 GNULIB_LOG1PL=0;
7082 GNULIB_LOG2=0;
7083 GNULIB_LOG2F=0;
7084 GNULIB_LOG2L=0;
7085 GNULIB_LOGB=0;
7086 GNULIB_LOGBF=0;
7087 GNULIB_LOGBL=0;
7088 GNULIB_MODF=0;
7089 GNULIB_MODFF=0;
7090 GNULIB_MODFL=0;
7091 GNULIB_POWF=0;
7092 GNULIB_REMAINDER=0;
7093 GNULIB_REMAINDERF=0;
7094 GNULIB_REMAINDERL=0;
7095 GNULIB_RINT=0;
7096 GNULIB_RINTF=0;
7097 GNULIB_RINTL=0;
7098 GNULIB_ROUND=0;
7099 GNULIB_ROUNDF=0;
7100 GNULIB_ROUNDL=0;
7101 GNULIB_SIGNBIT=0;
7102 GNULIB_SINF=0;
7103 GNULIB_SINL=0;
7104 GNULIB_SINHF=0;
7105 GNULIB_SQRTF=0;
7106 GNULIB_SQRTL=0;
7107 GNULIB_TANF=0;
7108 GNULIB_TANL=0;
7109 GNULIB_TANHF=0;
7110 GNULIB_TRUNC=0;
7111 GNULIB_TRUNCF=0;
7112 GNULIB_TRUNCL=0;
7113 HAVE_ACOSF=1;
7114 HAVE_ACOSL=1;
7115 HAVE_ASINF=1;
7116 HAVE_ASINL=1;
7117 HAVE_ATANF=1;
7118 HAVE_ATANL=1;
7119 HAVE_ATAN2F=1;
7120 HAVE_CBRT=1;
7121 HAVE_CBRTF=1;
7122 HAVE_CBRTL=1;
7123 HAVE_COPYSIGN=1;
7124 HAVE_COPYSIGNL=1;
7125 HAVE_COSF=1;
7126 HAVE_COSL=1;
7127 HAVE_COSHF=1;
7128 HAVE_EXPF=1;
7129 HAVE_EXPL=1;
7130 HAVE_EXPM1=1;
7131 HAVE_EXPM1F=1;
7132 HAVE_FABSF=1;
7133 HAVE_FABSL=1;
7134 HAVE_FMA=1;
7135 HAVE_FMAF=1;
7136 HAVE_FMAL=1;
7137 HAVE_FMODF=1;
7138 HAVE_FMODL=1;
7139 HAVE_FREXPF=1;
7140 HAVE_HYPOTF=1;
7141 HAVE_HYPOTL=1;
7142 HAVE_ILOGB=1;
7143 HAVE_ILOGBF=1;
7144 HAVE_ILOGBL=1;
7145 HAVE_ISNANF=1;
7146 HAVE_ISNAND=1;
7147 HAVE_ISNANL=1;
7148 HAVE_LDEXPF=1;
7149 HAVE_LOGF=1;
7150 HAVE_LOGL=1;
7151 HAVE_LOG10F=1;
7152 HAVE_LOG10L=1;
7153 HAVE_LOG1P=1;
7154 HAVE_LOG1PF=1;
7155 HAVE_LOG1PL=1;
7156 HAVE_LOGBF=1;
7157 HAVE_LOGBL=1;
7158 HAVE_MODFF=1;
7159 HAVE_MODFL=1;
7160 HAVE_POWF=1;
7161 HAVE_REMAINDER=1;
7162 HAVE_REMAINDERF=1;
7163 HAVE_RINT=1;
7164 HAVE_RINTL=1;
7165 HAVE_SINF=1;
7166 HAVE_SINL=1;
7167 HAVE_SINHF=1;
7168 HAVE_SQRTF=1;
7169 HAVE_SQRTL=1;
7170 HAVE_TANF=1;
7171 HAVE_TANL=1;
7172 HAVE_TANHF=1;
7173 HAVE_DECL_ACOSL=1;
7174 HAVE_DECL_ASINL=1;
7175 HAVE_DECL_ATANL=1;
7176 HAVE_DECL_CBRTF=1;
7177 HAVE_DECL_CBRTL=1;
7178 HAVE_DECL_CEILF=1;
7179 HAVE_DECL_CEILL=1;
7180 HAVE_DECL_COPYSIGNF=1;
7181 HAVE_DECL_COSL=1;
7182 HAVE_DECL_EXPL=1;
7183 HAVE_DECL_EXP2=1;
7184 HAVE_DECL_EXP2F=1;
7185 HAVE_DECL_EXP2L=1;
7186 HAVE_DECL_EXPM1L=1;
7187 HAVE_DECL_FLOORF=1;
7188 HAVE_DECL_FLOORL=1;
7189 HAVE_DECL_FREXPL=1;
7190 HAVE_DECL_LDEXPL=1;
7191 HAVE_DECL_LOGL=1;
7192 HAVE_DECL_LOG10L=1;
7193 HAVE_DECL_LOG2=1;
7194 HAVE_DECL_LOG2F=1;
7195 HAVE_DECL_LOG2L=1;
7196 HAVE_DECL_LOGB=1;
7197 HAVE_DECL_REMAINDER=1;
7198 HAVE_DECL_REMAINDERL=1;
7199 HAVE_DECL_RINTF=1;
7200 HAVE_DECL_ROUND=1;
7201 HAVE_DECL_ROUNDF=1;
7202 HAVE_DECL_ROUNDL=1;
7203 HAVE_DECL_SINL=1;
7204 HAVE_DECL_SQRTL=1;
7205 HAVE_DECL_TANL=1;
7206 HAVE_DECL_TRUNC=1;
7207 HAVE_DECL_TRUNCF=1;
7208 HAVE_DECL_TRUNCL=1;
7209 REPLACE_CBRTF=0;
7210 REPLACE_CBRTL=0;
7211 REPLACE_CEIL=0;
7212 REPLACE_CEILF=0;
7213 REPLACE_CEILL=0;
7214 REPLACE_EXPM1=0;
7215 REPLACE_EXPM1F=0;
7216 REPLACE_EXP2=0;
7217 REPLACE_EXP2L=0;
7218 REPLACE_FABSL=0;
7219 REPLACE_FLOOR=0;
7220 REPLACE_FLOORF=0;
7221 REPLACE_FLOORL=0;
7222 REPLACE_FMA=0;
7223 REPLACE_FMAF=0;
7224 REPLACE_FMAL=0;
7225 REPLACE_FMOD=0;
7226 REPLACE_FMODF=0;
7227 REPLACE_FMODL=0;
7228 REPLACE_FREXPF=0;
7229 REPLACE_FREXP=0;
7230 REPLACE_FREXPL=0;
7231 REPLACE_HUGE_VAL=0;
7232 REPLACE_HYPOT=0;
7233 REPLACE_HYPOTF=0;
7234 REPLACE_HYPOTL=0;
7235 REPLACE_ILOGB=0;
7236 REPLACE_ILOGBF=0;
7237 REPLACE_ISFINITE=0;
7238 REPLACE_ISINF=0;
7239 REPLACE_ISNAN=0;
7240 REPLACE_LDEXPL=0;
7241 REPLACE_LOG=0;
7242 REPLACE_LOGF=0;
7243 REPLACE_LOGL=0;
7244 REPLACE_LOG10=0;
7245 REPLACE_LOG10F=0;
7246 REPLACE_LOG10L=0;
7247 REPLACE_LOG1P=0;
7248 REPLACE_LOG1PF=0;
7249 REPLACE_LOG1PL=0;
7250 REPLACE_LOG2=0;
7251 REPLACE_LOG2F=0;
7252 REPLACE_LOG2L=0;
7253 REPLACE_LOGB=0;
7254 REPLACE_LOGBF=0;
7255 REPLACE_LOGBL=0;
7256 REPLACE_MODF=0;
7257 REPLACE_MODFF=0;
7258 REPLACE_MODFL=0;
7259 REPLACE_NAN=0;
7260 REPLACE_REMAINDER=0;
7261 REPLACE_REMAINDERF=0;
7262 REPLACE_REMAINDERL=0;
7263 REPLACE_ROUND=0;
7264 REPLACE_ROUNDF=0;
7265 REPLACE_ROUNDL=0;
7266 REPLACE_SIGNBIT=0;
7267 REPLACE_SIGNBIT_USING_GCC=0;
7268 REPLACE_SQRTL=0;
7269 REPLACE_TRUNC=0;
7270 REPLACE_TRUNCF=0;
7271 REPLACE_TRUNCL=0;
7272
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7275$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7276if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278else
7279
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h. */
7282#include <math.h>
7283 double x;
7284int
7285main ()
7286{
7287int e; return frexp (x, &e) > 0;
7288 ;
7289 return 0;
7290}
7291_ACEOF
7292if ac_fn_c_try_link "$LINENO"; then :
7293 gl_cv_func_frexp_no_libm=yes
7294else
7295 gl_cv_func_frexp_no_libm=no
7296fi
7297rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299
7300fi
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7302$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7303
7304
7305
7306
88b48903
WN
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7308$as_echo_n "checking whether long double and double are the same... " >&6; }
7309if test "${gl_cv_long_double_equals_double+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7311else
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h. */
7314#include <float.h>
7315int
7316main ()
7317{
7318typedef int check[sizeof (long double) == sizeof (double)
7319 && LDBL_MANT_DIG == DBL_MANT_DIG
7320 && LDBL_MAX_EXP == DBL_MAX_EXP
7321 && LDBL_MIN_EXP == DBL_MIN_EXP
7322 ? 1 : -1];
7323
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328if ac_fn_c_try_compile "$LINENO"; then :
7329 gl_cv_long_double_equals_double=yes
7330else
7331 gl_cv_long_double_equals_double=no
7332fi
7333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7337$as_echo "$gl_cv_long_double_equals_double" >&6; }
7338 if test $gl_cv_long_double_equals_double = yes; then
7339
7340$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7341
7342 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7343 else
7344 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7345 fi
7346
7347
7348
8690e634
JK
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7350$as_echo_n "checking for unsigned long long int... " >&6; }
7351if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353else
7354 ac_cv_type_unsigned_long_long_int=yes
7355 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h. */
7358
7359 /* For now, do not test the preprocessor; as of 2007 there are too many
7360 implementations with broken preprocessors. Perhaps this can
7361 be revisited in 2012. In the meantime, code should not expect
7362 #if to work with literals wider than 32 bits. */
7363 /* Test literals. */
7364 long long int ll = 9223372036854775807ll;
7365 long long int nll = -9223372036854775807LL;
7366 unsigned long long int ull = 18446744073709551615ULL;
7367 /* Test constant expressions. */
7368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7369 ? 1 : -1)];
7370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7371 ? 1 : -1)];
7372 int i = 63;
7373int
7374main ()
7375{
7376/* Test availability of runtime routines for shift and division. */
7377 long long int llmax = 9223372036854775807ll;
7378 unsigned long long int ullmax = 18446744073709551615ull;
7379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7380 | (llmax / ll) | (llmax % ll)
7381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7382 | (ullmax / ull) | (ullmax % ull));
7383 ;
7384 return 0;
7385}
7386
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"; then :
7389
7390else
7391 ac_cv_type_unsigned_long_long_int=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7395 fi
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7398$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7399 if test $ac_cv_type_unsigned_long_long_int = yes; then
7400
7401$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7402
7403 fi
7404
7405
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7408$as_echo_n "checking for long long int... " >&6; }
7409if test "${ac_cv_type_long_long_int+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411else
7412 ac_cv_type_long_long_int=yes
7413 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7414 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7415 if test $ac_cv_type_long_long_int = yes; then
7416 if test "$cross_compiling" = yes; then :
7417 :
7418else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h. */
7421#include <limits.h>
7422 #ifndef LLONG_MAX
7423 # define HALF \
7424 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7425 # define LLONG_MAX (HALF - 1 + HALF)
7426 #endif
7427int
7428main ()
7429{
7430long long int n = 1;
7431 int i;
7432 for (i = 0; ; i++)
7433 {
7434 long long int m = n << i;
7435 if (m >> i != n)
7436 return 1;
7437 if (LLONG_MAX / 2 < m)
7438 break;
7439 }
7440 return 0;
7441 ;
7442 return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_run "$LINENO"; then :
7446
7447else
7448 ac_cv_type_long_long_int=no
7449fi
7450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7451 conftest.$ac_objext conftest.beam conftest.$ac_ext
7452fi
7453
7454 fi
7455 fi
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7458$as_echo "$ac_cv_type_long_long_int" >&6; }
7459 if test $ac_cv_type_long_long_int = yes; then
7460
7461$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7462
7463 fi
7464
7465
7466
7467
7468
7469
88b48903
WN
7470 gl_cv_c_multiarch=no
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 7472/* end confdefs.h. */
88b48903
WN
7473#ifndef __APPLE_CC__
7474 not a universal capable compiler
7475 #endif
7476 typedef int dummy;
7477
8690e634
JK
7478_ACEOF
7479if ac_fn_c_try_compile "$LINENO"; then :
7480
7481 arch=
7482 prev=
7483 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7484 if test -n "$prev"; then
7485 case $word in
7486 i?86 | x86_64 | ppc | ppc64)
7487 if test -z "$arch" || test "$arch" = "$word"; then
7488 arch="$word"
7489 else
7490 gl_cv_c_multiarch=yes
7491 fi
7492 ;;
7493 esac
7494 prev=
7495 else
7496 if test "x$word" = "x-arch"; then
7497 prev=arch
7498 fi
7499 fi
7500 done
7501
7502fi
7503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 if test $gl_cv_c_multiarch = yes; then
7505 APPLE_UNIVERSAL_BUILD=1
7506 else
7507 APPLE_UNIVERSAL_BUILD=0
7508 fi
7509
7510
7511
7512
7513
7514 if test $ac_cv_type_long_long_int = yes; then
7515 HAVE_LONG_LONG_INT=1
7516 else
7517 HAVE_LONG_LONG_INT=0
7518 fi
7519
7520
7521 if test $ac_cv_type_unsigned_long_long_int = yes; then
7522 HAVE_UNSIGNED_LONG_LONG_INT=1
7523 else
7524 HAVE_UNSIGNED_LONG_LONG_INT=0
7525 fi
7526
7527
7528
8690e634
JK
7529 if test $ac_cv_header_wchar_h = yes; then
7530 HAVE_WCHAR_H=1
7531 else
7532 HAVE_WCHAR_H=0
7533 fi
7534
7535
7536 if test $ac_cv_header_inttypes_h = yes; then
7537 HAVE_INTTYPES_H=1
7538 else
7539 HAVE_INTTYPES_H=0
7540 fi
7541
7542
7543 if test $ac_cv_header_sys_types_h = yes; then
7544 HAVE_SYS_TYPES_H=1
7545 else
7546 HAVE_SYS_TYPES_H=0
7547 fi
7548
7549
7550
7551
7552
7553
7554
7555
8690e634
JK
7556
7557
7558
7559 if test $gl_cv_have_include_next = yes; then
7560 gl_cv_next_stdint_h='<'stdint.h'>'
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7563$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7564if test "${gl_cv_next_stdint_h+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566else
7567
7568 if test $ac_cv_header_stdint_h = yes; then
7569
7570
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h. */
7573#include <stdint.h>
7574
7575_ACEOF
7576 case "$host_os" in
7577 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7578 *) gl_absname_cpp="$ac_cpp" ;;
7579 esac
7580
7581 case "$host_os" in
7582 mingw*)
7583 gl_dirsep_regex='[/\\]'
7584 ;;
7585 *)
7586 gl_dirsep_regex='\/'
7587 ;;
7588 esac
7589 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7590
7591 gl_header_literal_regex=`echo 'stdint.h' \
7592 | sed -e "$gl_make_literal_regex_sed"`
7593 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7594 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7595 s|^/[^/]|//&|
7596 p
7597 q
7598 }'
7599 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7600 sed -n "$gl_absolute_header_sed"`'"'
7601 else
7602 gl_cv_next_stdint_h='<'stdint.h'>'
7603 fi
7604
7605
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7608$as_echo "$gl_cv_next_stdint_h" >&6; }
7609 fi
7610 NEXT_STDINT_H=$gl_cv_next_stdint_h
7611
7612 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7613 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7614 gl_next_as_first_directive='<'stdint.h'>'
7615 else
7616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7617 gl_next_as_first_directive=$gl_cv_next_stdint_h
7618 fi
7619 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7620
7621
7622
7623
7624 if test $ac_cv_header_stdint_h = yes; then
7625 HAVE_STDINT_H=1
7626 else
7627 HAVE_STDINT_H=0
7628 fi
7629
7630
7631 if test $ac_cv_header_stdint_h = yes; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7633$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7634if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636else
7637 gl_cv_header_working_stdint_h=no
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h. */
7640
7641
7642#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7643#include <stdint.h>
7644/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7645#if !(defined WCHAR_MIN && defined WCHAR_MAX)
7646#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7647#endif
7648
7649
7650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7651 included before <wchar.h>. */
7652 #include <stddef.h>
7653 #include <signal.h>
7654 #if HAVE_WCHAR_H
7655 # include <stdio.h>
7656 # include <time.h>
7657 # include <wchar.h>
7658 #endif
7659
7660
7661#ifdef INT8_MAX
7662int8_t a1 = INT8_MAX;
7663int8_t a1min = INT8_MIN;
7664#endif
7665#ifdef INT16_MAX
7666int16_t a2 = INT16_MAX;
7667int16_t a2min = INT16_MIN;
7668#endif
7669#ifdef INT32_MAX
7670int32_t a3 = INT32_MAX;
7671int32_t a3min = INT32_MIN;
7672#endif
7673#ifdef INT64_MAX
7674int64_t a4 = INT64_MAX;
7675int64_t a4min = INT64_MIN;
7676#endif
7677#ifdef UINT8_MAX
7678uint8_t b1 = UINT8_MAX;
7679#else
7680typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7681#endif
7682#ifdef UINT16_MAX
7683uint16_t b2 = UINT16_MAX;
7684#endif
7685#ifdef UINT32_MAX
7686uint32_t b3 = UINT32_MAX;
7687#endif
7688#ifdef UINT64_MAX
7689uint64_t b4 = UINT64_MAX;
7690#endif
7691int_least8_t c1 = INT8_C (0x7f);
7692int_least8_t c1max = INT_LEAST8_MAX;
7693int_least8_t c1min = INT_LEAST8_MIN;
7694int_least16_t c2 = INT16_C (0x7fff);
7695int_least16_t c2max = INT_LEAST16_MAX;
7696int_least16_t c2min = INT_LEAST16_MIN;
7697int_least32_t c3 = INT32_C (0x7fffffff);
7698int_least32_t c3max = INT_LEAST32_MAX;
7699int_least32_t c3min = INT_LEAST32_MIN;
7700int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7701int_least64_t c4max = INT_LEAST64_MAX;
7702int_least64_t c4min = INT_LEAST64_MIN;
7703uint_least8_t d1 = UINT8_C (0xff);
7704uint_least8_t d1max = UINT_LEAST8_MAX;
7705uint_least16_t d2 = UINT16_C (0xffff);
7706uint_least16_t d2max = UINT_LEAST16_MAX;
7707uint_least32_t d3 = UINT32_C (0xffffffff);
7708uint_least32_t d3max = UINT_LEAST32_MAX;
7709uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7710uint_least64_t d4max = UINT_LEAST64_MAX;
7711int_fast8_t e1 = INT_FAST8_MAX;
7712int_fast8_t e1min = INT_FAST8_MIN;
7713int_fast16_t e2 = INT_FAST16_MAX;
7714int_fast16_t e2min = INT_FAST16_MIN;
7715int_fast32_t e3 = INT_FAST32_MAX;
7716int_fast32_t e3min = INT_FAST32_MIN;
7717int_fast64_t e4 = INT_FAST64_MAX;
7718int_fast64_t e4min = INT_FAST64_MIN;
7719uint_fast8_t f1 = UINT_FAST8_MAX;
7720uint_fast16_t f2 = UINT_FAST16_MAX;
7721uint_fast32_t f3 = UINT_FAST32_MAX;
7722uint_fast64_t f4 = UINT_FAST64_MAX;
7723#ifdef INTPTR_MAX
7724intptr_t g = INTPTR_MAX;
7725intptr_t gmin = INTPTR_MIN;
7726#endif
7727#ifdef UINTPTR_MAX
7728uintptr_t h = UINTPTR_MAX;
7729#endif
7730intmax_t i = INTMAX_MAX;
7731uintmax_t j = UINTMAX_MAX;
7732
7733#include <limits.h> /* for CHAR_BIT */
7734#define TYPE_MINIMUM(t) \
7735 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7736#define TYPE_MAXIMUM(t) \
7737 ((t) ((t) 0 < (t) -1 \
7738 ? (t) -1 \
7739 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7740struct s {
7741 int check_PTRDIFF:
7742 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7743 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7744 ? 1 : -1;
7745 /* Detect bug in FreeBSD 6.0 / ia64. */
7746 int check_SIG_ATOMIC:
7747 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7748 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7749 ? 1 : -1;
7750 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7751 int check_WCHAR:
7752 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7753 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7754 ? 1 : -1;
7755 /* Detect bug in mingw. */
7756 int check_WINT:
7757 WINT_MIN == TYPE_MINIMUM (wint_t)
7758 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7759 ? 1 : -1;
7760
7761 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7762 int check_UINT8_C:
7763 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7764 int check_UINT16_C:
7765 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7766
7767 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7768#ifdef UINT8_MAX
7769 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7770#endif
7771#ifdef UINT16_MAX
7772 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7773#endif
7774#ifdef UINT32_MAX
7775 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7776#endif
7777#ifdef UINT64_MAX
7778 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7779#endif
7780 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7781 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7782 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7783 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7784 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7785 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7786 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7787 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7788 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7789 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7790 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7791};
7792
7793int
7794main ()
7795{
7796
7797 ;
7798 return 0;
7799}
7800_ACEOF
7801if ac_fn_c_try_compile "$LINENO"; then :
7802 if test "$cross_compiling" = yes; then :
7803 gl_cv_header_working_stdint_h=yes
7804
7805else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h. */
7808
7809
7810#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7811#include <stdint.h>
7812
7813
7814 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7815 included before <wchar.h>. */
7816 #include <stddef.h>
7817 #include <signal.h>
7818 #if HAVE_WCHAR_H
7819 # include <stdio.h>
7820 # include <time.h>
7821 # include <wchar.h>
7822 #endif
7823
7824
7825#include <stdio.h>
7826#include <string.h>
7827#define MVAL(macro) MVAL1(macro)
7828#define MVAL1(expression) #expression
7829static const char *macro_values[] =
7830 {
7831#ifdef INT8_MAX
7832 MVAL (INT8_MAX),
7833#endif
7834#ifdef INT16_MAX
7835 MVAL (INT16_MAX),
7836#endif
7837#ifdef INT32_MAX
7838 MVAL (INT32_MAX),
7839#endif
7840#ifdef INT64_MAX
7841 MVAL (INT64_MAX),
7842#endif
7843#ifdef UINT8_MAX
7844 MVAL (UINT8_MAX),
7845#endif
7846#ifdef UINT16_MAX
7847 MVAL (UINT16_MAX),
7848#endif
7849#ifdef UINT32_MAX
7850 MVAL (UINT32_MAX),
7851#endif
7852#ifdef UINT64_MAX
7853 MVAL (UINT64_MAX),
7854#endif
7855 NULL
7856 };
7857
7858int
7859main ()
7860{
7861
7862 const char **mv;
7863 for (mv = macro_values; *mv != NULL; mv++)
7864 {
7865 const char *value = *mv;
7866 /* Test whether it looks like a cast expression. */
7867 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7868 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7869 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7870 || strncmp (value, "((int)"/*)*/, 6) == 0
7871 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7872 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7873 return mv - macro_values + 1;
7874 }
7875 return 0;
7876
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_run "$LINENO"; then :
7882 gl_cv_header_working_stdint_h=yes
7883fi
7884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7885 conftest.$ac_objext conftest.beam conftest.$ac_ext
7886fi
7887
7888
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7894$as_echo "$gl_cv_header_working_stdint_h" >&6; }
7895 fi
7896 if test "$gl_cv_header_working_stdint_h" = yes; then
7897 STDINT_H=
7898 else
7899 for ac_header in sys/inttypes.h sys/bitypes.h
7900do :
7901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7902ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7903eval as_val=\$$as_ac_Header
7904 if test "x$as_val" = x""yes; then :
7905 cat >>confdefs.h <<_ACEOF
7906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907_ACEOF
7908
7909fi
7910
7911done
7912
7913 if test $ac_cv_header_sys_inttypes_h = yes; then
7914 HAVE_SYS_INTTYPES_H=1
7915 else
7916 HAVE_SYS_INTTYPES_H=0
7917 fi
7918
7919 if test $ac_cv_header_sys_bitypes_h = yes; then
7920 HAVE_SYS_BITYPES_H=1
7921 else
7922 HAVE_SYS_BITYPES_H=0
7923 fi
7924
7925
7926
7927
7928 if test $APPLE_UNIVERSAL_BUILD = 0; then
7929
7930
7931 for gltype in ptrdiff_t size_t ; do
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7933$as_echo_n "checking for bit size of $gltype... " >&6; }
7934if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7935 $as_echo_n "(cached) " >&6
7936else
7937 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7938 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7939 included before <wchar.h>. */
7940 #include <stddef.h>
7941 #include <signal.h>
7942 #if HAVE_WCHAR_H
7943 # include <stdio.h>
7944 # include <time.h>
7945 # include <wchar.h>
7946 #endif
7947
7948#include <limits.h>"; then :
7949
7950else
7951 result=unknown
7952fi
7953
7954 eval gl_cv_bitsizeof_${gltype}=\$result
7955
7956fi
7957eval ac_res=\$gl_cv_bitsizeof_${gltype}
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7959$as_echo "$ac_res" >&6; }
7960 eval result=\$gl_cv_bitsizeof_${gltype}
7961 if test $result = unknown; then
7962 result=0
7963 fi
7964 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7965 cat >>confdefs.h <<_ACEOF
7966#define BITSIZEOF_${GLTYPE} $result
7967_ACEOF
7968
7969 eval BITSIZEOF_${GLTYPE}=\$result
7970 done
7971
7972
7973 fi
7974
7975
7976 for gltype in sig_atomic_t wchar_t wint_t ; do
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7978$as_echo_n "checking for bit size of $gltype... " >&6; }
7979if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7980 $as_echo_n "(cached) " >&6
7981else
7982 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7983 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7984 included before <wchar.h>. */
7985 #include <stddef.h>
7986 #include <signal.h>
7987 #if HAVE_WCHAR_H
7988 # include <stdio.h>
7989 # include <time.h>
7990 # include <wchar.h>
7991 #endif
7992
7993#include <limits.h>"; then :
7994
7995else
7996 result=unknown
7997fi
7998
7999 eval gl_cv_bitsizeof_${gltype}=\$result
8000
8001fi
8002eval ac_res=\$gl_cv_bitsizeof_${gltype}
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8004$as_echo "$ac_res" >&6; }
8005 eval result=\$gl_cv_bitsizeof_${gltype}
8006 if test $result = unknown; then
8007 result=0
8008 fi
8009 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8010 cat >>confdefs.h <<_ACEOF
8011#define BITSIZEOF_${GLTYPE} $result
8012_ACEOF
8013
8014 eval BITSIZEOF_${GLTYPE}=\$result
8015 done
8016
8017
8018
8019
8020 for gltype in sig_atomic_t wchar_t wint_t ; do
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8022$as_echo_n "checking whether $gltype is signed... " >&6; }
8023if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8024 $as_echo_n "(cached) " >&6
8025else
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h. */
8028
8029 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8030 included before <wchar.h>. */
8031 #include <stddef.h>
8032 #include <signal.h>
8033 #if HAVE_WCHAR_H
8034 # include <stdio.h>
8035 # include <time.h>
8036 # include <wchar.h>
8037 #endif
8038
8039 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8040int
8041main ()
8042{
8043
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048if ac_fn_c_try_compile "$LINENO"; then :
8049 result=yes
8050else
8051 result=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 eval gl_cv_type_${gltype}_signed=\$result
8055
8056fi
8057eval ac_res=\$gl_cv_type_${gltype}_signed
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8059$as_echo "$ac_res" >&6; }
8060 eval result=\$gl_cv_type_${gltype}_signed
8061 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8062 if test "$result" = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064#define HAVE_SIGNED_${GLTYPE} 1
8065_ACEOF
8066
8067 eval HAVE_SIGNED_${GLTYPE}=1
8068 else
8069 eval HAVE_SIGNED_${GLTYPE}=0
8070 fi
8071 done
8072
8073
8074 gl_cv_type_ptrdiff_t_signed=yes
8075 gl_cv_type_size_t_signed=no
8076 if test $APPLE_UNIVERSAL_BUILD = 0; then
8077
8078
8079 for gltype in ptrdiff_t size_t ; do
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8081$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8082if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8083 $as_echo_n "(cached) " >&6
8084else
8085 eval gl_cv_type_${gltype}_suffix=no
8086 eval result=\$gl_cv_type_${gltype}_signed
8087 if test "$result" = yes; then
8088 glsufu=
8089 else
8090 glsufu=u
8091 fi
8092 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8093 case $glsuf in
8094 '') gltype1='int';;
8095 l) gltype1='long int';;
8096 ll) gltype1='long long int';;
8097 i64) gltype1='__int64';;
8098 u) gltype1='unsigned int';;
8099 ul) gltype1='unsigned long int';;
8100 ull) gltype1='unsigned long long int';;
8101 ui64)gltype1='unsigned __int64';;
8102 esac
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h. */
8105
8106 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8107 included before <wchar.h>. */
8108 #include <stddef.h>
8109 #include <signal.h>
8110 #if HAVE_WCHAR_H
8111 # include <stdio.h>
8112 # include <time.h>
8113 # include <wchar.h>
8114 #endif
8115
8116 extern $gltype foo;
8117 extern $gltype1 foo;
8118int
8119main ()
8120{
8121
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"; then :
8127 eval gl_cv_type_${gltype}_suffix=\$glsuf
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 eval result=\$gl_cv_type_${gltype}_suffix
8131 test "$result" != no && break
8132 done
8133fi
8134eval ac_res=\$gl_cv_type_${gltype}_suffix
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8136$as_echo "$ac_res" >&6; }
8137 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8138 eval result=\$gl_cv_type_${gltype}_suffix
8139 test "$result" = no && result=
8140 eval ${GLTYPE}_SUFFIX=\$result
8141 cat >>confdefs.h <<_ACEOF
8142#define ${GLTYPE}_SUFFIX $result
8143_ACEOF
8144
8145 done
8146
8147
8148 fi
8149
8150
8151 for gltype in sig_atomic_t wchar_t wint_t ; do
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8153$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8154if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8155 $as_echo_n "(cached) " >&6
8156else
8157 eval gl_cv_type_${gltype}_suffix=no
8158 eval result=\$gl_cv_type_${gltype}_signed
8159 if test "$result" = yes; then
8160 glsufu=
8161 else
8162 glsufu=u
8163 fi
8164 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8165 case $glsuf in
8166 '') gltype1='int';;
8167 l) gltype1='long int';;
8168 ll) gltype1='long long int';;
8169 i64) gltype1='__int64';;
8170 u) gltype1='unsigned int';;
8171 ul) gltype1='unsigned long int';;
8172 ull) gltype1='unsigned long long int';;
8173 ui64)gltype1='unsigned __int64';;
8174 esac
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h. */
8177
8178 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8179 included before <wchar.h>. */
8180 #include <stddef.h>
8181 #include <signal.h>
8182 #if HAVE_WCHAR_H
8183 # include <stdio.h>
8184 # include <time.h>
8185 # include <wchar.h>
8186 #endif
8187
8188 extern $gltype foo;
8189 extern $gltype1 foo;
8190int
8191main ()
8192{
8193
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"; then :
8199 eval gl_cv_type_${gltype}_suffix=\$glsuf
8200fi
8201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 eval result=\$gl_cv_type_${gltype}_suffix
8203 test "$result" != no && break
8204 done
8205fi
8206eval ac_res=\$gl_cv_type_${gltype}_suffix
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8208$as_echo "$ac_res" >&6; }
8209 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8210 eval result=\$gl_cv_type_${gltype}_suffix
8211 test "$result" = no && result=
8212 eval ${GLTYPE}_SUFFIX=\$result
8213 cat >>confdefs.h <<_ACEOF
8214#define ${GLTYPE}_SUFFIX $result
8215_ACEOF
8216
8217 done
8218
8219
8220
8221 if test $BITSIZEOF_WINT_T -lt 32; then
8222 BITSIZEOF_WINT_T=32
8223 fi
8224
8225 STDINT_H=stdint.h
8226 fi
8227
8228 if test -n "$STDINT_H"; then
8229 GL_GENERATE_STDINT_H_TRUE=
8230 GL_GENERATE_STDINT_H_FALSE='#'
8231else
8232 GL_GENERATE_STDINT_H_TRUE='#'
8233 GL_GENERATE_STDINT_H_FALSE=
8234fi
8235
8236
8237
8238
8239
8690e634
JK
8240 GNULIB_IMAXABS=0;
8241 GNULIB_IMAXDIV=0;
8242 GNULIB_STRTOIMAX=0;
8243 GNULIB_STRTOUMAX=0;
8244 HAVE_DECL_IMAXABS=1;
8245 HAVE_DECL_IMAXDIV=1;
8246 HAVE_DECL_STRTOIMAX=1;
8247 HAVE_DECL_STRTOUMAX=1;
8248 REPLACE_STRTOIMAX=0;
8249 INT32_MAX_LT_INTMAX_MAX=1;
8250 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8251 PRI_MACROS_BROKEN=0;
8252 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8253 UINT32_MAX_LT_UINTMAX_MAX=1;
8254 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8255
8256
8257
8258
8690e634
JK
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8690e634
JK
8270 if test $gl_cv_have_include_next = yes; then
8271 gl_cv_next_inttypes_h='<'inttypes.h'>'
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8274$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8275if test "${gl_cv_next_inttypes_h+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277else
8278
8279 if test $ac_cv_header_inttypes_h = yes; then
8280
8281
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h. */
8284#include <inttypes.h>
8285
8286_ACEOF
8287 case "$host_os" in
8288 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8289 *) gl_absname_cpp="$ac_cpp" ;;
8290 esac
8291
8292 case "$host_os" in
8293 mingw*)
8294 gl_dirsep_regex='[/\\]'
8295 ;;
8296 *)
8297 gl_dirsep_regex='\/'
8298 ;;
8299 esac
8300 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8301
8302 gl_header_literal_regex=`echo 'inttypes.h' \
8303 | sed -e "$gl_make_literal_regex_sed"`
8304 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8305 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8306 s|^/[^/]|//&|
8307 p
8308 q
8309 }'
8310 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8311 sed -n "$gl_absolute_header_sed"`'"'
8312 else
8313 gl_cv_next_inttypes_h='<'inttypes.h'>'
8314 fi
8315
8316
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8319$as_echo "$gl_cv_next_inttypes_h" >&6; }
8320 fi
8321 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8322
8323 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8325 gl_next_as_first_directive='<'inttypes.h'>'
8326 else
8327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8328 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8329 fi
8330 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8331
8332
8333
8334
8335
8336
8337
8338
8339 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8340 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8342$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8343if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8344 $as_echo_n "(cached) " >&6
8345else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h. */
8348#include <inttypes.h>
8349
8350int
8351main ()
8352{
8353#undef $gl_func
8354 (void) $gl_func;
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359if ac_fn_c_try_compile "$LINENO"; then :
8360 eval "$as_gl_Symbol=yes"
8361else
8362 eval "$as_gl_Symbol=no"
8363fi
8364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365fi
8366eval ac_res=\$$as_gl_Symbol
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8368$as_echo "$ac_res" >&6; }
8369 eval as_val=\$$as_gl_Symbol
8370 if test "x$as_val" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8373_ACEOF
8374
8375 eval ac_cv_have_decl_$gl_func=yes
8376fi
8377 done
8378
8379
8380
8381 for ac_header in inttypes.h
8382do :
8383 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8384if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8385 cat >>confdefs.h <<_ACEOF
8386#define HAVE_INTTYPES_H 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
8393 if test $ac_cv_header_inttypes_h = yes; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8395$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8396if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8398else
8399
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h. */
8402
8403#include <inttypes.h>
8404#ifdef PRId32
8405char *p = PRId32;
8406#endif
8407
8408int
8409main ()
8410{
8411
8412 ;
8413 return 0;
8414}
8415_ACEOF
8416if ac_fn_c_try_compile "$LINENO"; then :
8417 gt_cv_inttypes_pri_broken=no
8418else
8419 gt_cv_inttypes_pri_broken=yes
8420fi
8421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8425$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8426 fi
8427 if test "$gt_cv_inttypes_pri_broken" = yes; then
8428
8429cat >>confdefs.h <<_ACEOF
8430#define PRI_MACROS_BROKEN 1
8431_ACEOF
8432
8433 PRI_MACROS_BROKEN=1
8434 else
8435 PRI_MACROS_BROKEN=0
8436 fi
8437
8438
8439
88b48903
WN
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8441$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8442if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
8443 $as_echo_n "(cached) " >&6
8444else
88b48903
WN
8445
8446 if test "$cross_compiling" = yes; then :
8447
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 8449/* end confdefs.h. */
88b48903
WN
8450
8451#if defined arm || defined __arm || defined __arm__
8452 mixed_endianness
8453#endif
8454
8455_ACEOF
8456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8457 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8458 gl_cv_cc_double_expbit0="unknown"
8459else
8460
8461 :
8462if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464else
8465 ac_cv_c_bigendian=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h. */
8469#ifndef __APPLE_CC__
8470 not a universal capable compiler
8471 #endif
8472 typedef int dummy;
8473
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"; then :
8476
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8479 ac_arch=
8480 ac_prev=
8481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8483 case $ac_word in
8484 i?86 | x86_64 | ppc | ppc64)
8485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8486 ac_arch=$ac_word
8487 else
8488 ac_cv_c_bigendian=universal
8489 break
8490 fi
8491 ;;
8492 esac
8493 ac_prev=
8494 elif test "x$ac_word" = "x-arch"; then
8495 ac_prev=arch
8496 fi
8497 done
8498fi
8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h. */
8504#include <sys/types.h>
8505 #include <sys/param.h>
8506
8690e634
JK
8507int
8508main ()
8509{
88b48903
WN
8510#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8512 && LITTLE_ENDIAN)
8513 bogus endian macros
8514 #endif
8515
8690e634
JK
8516 ;
8517 return 0;
8518}
8519_ACEOF
88b48903
WN
8520if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h. */
8524#include <sys/types.h>
8525 #include <sys/param.h>
8526
8527int
8528main ()
8529{
8530#if BYTE_ORDER != BIG_ENDIAN
8531 not big endian
8532 #endif
8533
8534 ;
8535 return 0;
8536}
8537_ACEOF
8538if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_c_bigendian=yes
8690e634 8540else
88b48903 8541 ac_cv_c_bigendian=no
8690e634 8542fi
88b48903 8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 8544fi
88b48903
WN
8545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 if test $ac_cv_c_bigendian = unknown; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h. */
8551#include <limits.h>
8690e634 8552
88b48903
WN
8553int
8554main ()
8555{
8556#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8557 bogus endian macros
8558 #endif
8690e634 8559
88b48903
WN
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564if ac_fn_c_try_compile "$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h. */
8568#include <limits.h>
8690e634 8569
88b48903
WN
8570int
8571main ()
8572{
8573#ifndef _BIG_ENDIAN
8574 not big endian
8575 #endif
8690e634 8576
88b48903
WN
8577 ;
8578 return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582 ac_cv_c_bigendian=yes
8583else
8584 ac_cv_c_bigendian=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 if test $ac_cv_c_bigendian = unknown; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h. */
8596short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8602 }
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8609 }
8610 extern int foo;
8690e634 8611
88b48903
WN
8612int
8613main ()
8614{
8615return use_ascii (foo) == use_ebcdic (foo);
8616 ;
8617 return 0;
8618}
8619_ACEOF
8620if ac_fn_c_try_compile "$LINENO"; then :
8621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8622 ac_cv_c_bigendian=yes
8623 fi
8624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8625 if test "$ac_cv_c_bigendian" = unknown; then
8626 ac_cv_c_bigendian=no
8627 else
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian=unknown
8630 fi
8631 fi
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
8637$ac_includes_default
8638int
8639main ()
8640{
8690e634 8641
88b48903
WN
8642 /* Are we little or big endian? From Harbison&Steele. */
8643 union
8644 {
8645 long int l;
8646 char c[sizeof (long int)];
8647 } u;
8648 u.l = 1;
8649 return u.c[sizeof (long int) - 1] == 1;
8690e634 8650
88b48903
WN
8651 ;
8652 return 0;
8653}
8654_ACEOF
8655if ac_fn_c_try_run "$LINENO"; then :
8656 ac_cv_c_bigendian=no
8657else
8658 ac_cv_c_bigendian=yes
8659fi
8660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8661 conftest.$ac_objext conftest.beam conftest.$ac_ext
8662fi
8690e634 8663
88b48903
WN
8664 fi
8665fi
8666:
8667 case $ac_cv_c_bigendian in #(
8668 yes)
8669 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8670 no)
8671 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8672 universal)
8690e634 8673
88b48903 8674$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 8675
88b48903
WN
8676 ;; #(
8677 *)
8678 gl_cv_cc_double_expbit0="unknown" ;;
8679 esac
8690e634
JK
8680
8681
88b48903
WN
8682fi
8683rm -f conftest*
8690e634 8684
8690e634 8685
88b48903
WN
8686else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h. */
8690e634 8689
88b48903
WN
8690#include <float.h>
8691#include <stddef.h>
8692#include <stdio.h>
8693#include <string.h>
8694#define NWORDS \
8695 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8696typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8697static unsigned int ored_words[NWORDS];
8698static unsigned int anded_words[NWORDS];
8699static void add_to_ored_words (double x)
8700{
8701 memory_double m;
8702 size_t i;
8703 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8704 memset (&m, 0, sizeof (memory_double));
8705 m.value = x;
8706 for (i = 0; i < NWORDS; i++)
8707 {
8708 ored_words[i] |= m.word[i];
8709 anded_words[i] &= m.word[i];
8710 }
8711}
8712int main ()
8713{
8714 size_t j;
8715 FILE *fp = fopen ("conftest.out", "w");
8716 if (fp == NULL)
8717 return 1;
8718 for (j = 0; j < NWORDS; j++)
8719 anded_words[j] = ~ (unsigned int) 0;
8720 add_to_ored_words (0.25);
8721 add_to_ored_words (0.5);
8722 add_to_ored_words (1.0);
8723 add_to_ored_words (2.0);
8724 add_to_ored_words (4.0);
8725 /* Remove bits that are common (e.g. if representation of the first mantissa
8726 bit is explicit). */
8727 for (j = 0; j < NWORDS; j++)
8728 ored_words[j] &= ~anded_words[j];
8729 /* Now find the nonzero word. */
8730 for (j = 0; j < NWORDS; j++)
8731 if (ored_words[j] != 0)
8732 break;
8733 if (j < NWORDS)
8734 {
8735 size_t i;
8736 for (i = j + 1; i < NWORDS; i++)
8737 if (ored_words[i] != 0)
8738 {
8739 fprintf (fp, "unknown");
8740 return (fclose (fp) != 0);
8741 }
8742 for (i = 0; ; i++)
8743 if ((ored_words[j] >> i) & 1)
8744 {
8745 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8746 return (fclose (fp) != 0);
8747 }
8748 }
8749 fprintf (fp, "unknown");
8750 return (fclose (fp) != 0);
8751}
8690e634 8752
88b48903
WN
8753_ACEOF
8754if ac_fn_c_try_run "$LINENO"; then :
8755 gl_cv_cc_double_expbit0=`cat conftest.out`
8756else
8757 gl_cv_cc_double_expbit0="unknown"
8758fi
8759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760 conftest.$ac_objext conftest.beam conftest.$ac_ext
8761fi
8690e634 8762
88b48903 8763 rm -f conftest.out
8690e634 8764
88b48903
WN
8765fi
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8767$as_echo "$gl_cv_cc_double_expbit0" >&6; }
8768 case "$gl_cv_cc_double_expbit0" in
8769 word*bit*)
8770 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8771 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 8772
88b48903
WN
8773cat >>confdefs.h <<_ACEOF
8774#define DBL_EXPBIT0_WORD $word
8775_ACEOF
8690e634
JK
8776
8777
88b48903
WN
8778cat >>confdefs.h <<_ACEOF
8779#define DBL_EXPBIT0_BIT $bit
8780_ACEOF
8690e634 8781
88b48903
WN
8782 ;;
8783 esac
8690e634
JK
8784
8785
88b48903
WN
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8787$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8788if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
8789 $as_echo_n "(cached) " >&6
8790else
88b48903
WN
8791 ac_cv_c_bigendian=unknown
8792 # See if we're dealing with a universal compiler.
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794/* end confdefs.h. */
8795#ifndef __APPLE_CC__
8796 not a universal capable compiler
8797 #endif
8798 typedef int dummy;
8799
8800_ACEOF
8801if ac_fn_c_try_compile "$LINENO"; then :
8802
8803 # Check for potential -arch flags. It is not universal unless
8804 # there are at least two -arch flags with different values.
8805 ac_arch=
8806 ac_prev=
8807 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8808 if test -n "$ac_prev"; then
8809 case $ac_word in
8810 i?86 | x86_64 | ppc | ppc64)
8811 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8812 ac_arch=$ac_word
8813 else
8814 ac_cv_c_bigendian=universal
8815 break
8816 fi
8817 ;;
8818 esac
8819 ac_prev=
8820 elif test "x$ac_word" = "x-arch"; then
8821 ac_prev=arch
8822 fi
8823 done
8824fi
8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 if test $ac_cv_c_bigendian = unknown; then
8827 # See if sys/param.h defines the BYTE_ORDER macro.
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8829/* end confdefs.h. */
8830#include <sys/types.h>
88b48903
WN
8831 #include <sys/param.h>
8832
8833int
8834main ()
8835{
8836#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8838 && LITTLE_ENDIAN)
8839 bogus endian macros
8840 #endif
8841
8842 ;
8843 return 0;
8844}
8845_ACEOF
8846if ac_fn_c_try_compile "$LINENO"; then :
8847 # It does; now see whether it defined to BIG_ENDIAN or not.
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h. */
8850#include <sys/types.h>
8851 #include <sys/param.h>
8852
8853int
8854main ()
8855{
8856#if BYTE_ORDER != BIG_ENDIAN
8857 not big endian
8858 #endif
8859
8860 ;
8861 return 0;
8862}
8863_ACEOF
8864if ac_fn_c_try_compile "$LINENO"; then :
8865 ac_cv_c_bigendian=yes
8866else
8867 ac_cv_c_bigendian=no
8868fi
8869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870fi
8871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 if test $ac_cv_c_bigendian = unknown; then
8874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h. */
8877#include <limits.h>
8878
8879int
8880main ()
8881{
8882#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8883 bogus endian macros
8884 #endif
8885
8886 ;
8887 return 0;
8888}
8889_ACEOF
8890if ac_fn_c_try_compile "$LINENO"; then :
8891 # It does; now see whether it defined to _BIG_ENDIAN or not.
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h. */
8894#include <limits.h>
8895
8896int
8897main ()
8898{
8899#ifndef _BIG_ENDIAN
8900 not big endian
8901 #endif
8902
8903 ;
8904 return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_compile "$LINENO"; then :
8908 ac_cv_c_bigendian=yes
8909else
8910 ac_cv_c_bigendian=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913fi
8914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 if test $ac_cv_c_bigendian = unknown; then
8917 # Compile a test program.
8918 if test "$cross_compiling" = yes; then :
8919 # Try to guess by grepping values from an object file.
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h. */
8922short int ascii_mm[] =
8923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8924 short int ascii_ii[] =
8925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8926 int use_ascii (int i) {
8927 return ascii_mm[i] + ascii_ii[i];
8928 }
8929 short int ebcdic_ii[] =
8930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8931 short int ebcdic_mm[] =
8932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8933 int use_ebcdic (int i) {
8934 return ebcdic_mm[i] + ebcdic_ii[i];
8935 }
8936 extern int foo;
8937
8938int
8939main ()
8940{
8941return use_ascii (foo) == use_ebcdic (foo);
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8948 ac_cv_c_bigendian=yes
8949 fi
8950 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8951 if test "$ac_cv_c_bigendian" = unknown; then
8952 ac_cv_c_bigendian=no
8953 else
8954 # finding both strings is unlikely to happen, but who knows?
8955 ac_cv_c_bigendian=unknown
8956 fi
8957 fi
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960else
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h. */
8963$ac_includes_default
8964int
8965main ()
8966{
8967
8968 /* Are we little or big endian? From Harbison&Steele. */
8969 union
8970 {
8971 long int l;
8972 char c[sizeof (long int)];
8973 } u;
8974 u.l = 1;
8975 return u.c[sizeof (long int) - 1] == 1;
8976
8977 ;
8978 return 0;
8979}
8980_ACEOF
8981if ac_fn_c_try_run "$LINENO"; then :
8982 ac_cv_c_bigendian=no
8983else
8984 ac_cv_c_bigendian=yes
8985fi
8986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8987 conftest.$ac_objext conftest.beam conftest.$ac_ext
8988fi
8989
8990 fi
8991fi
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8993$as_echo "$ac_cv_c_bigendian" >&6; }
8994 case $ac_cv_c_bigendian in #(
8995 yes)
8996 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8997;; #(
8998 no)
8999 ;; #(
9000 universal)
9001
9002$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9003
9004 ;; #(
9005 *)
9006 as_fn_error "unknown endianness
9007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9008 esac
9009
9010
9011
2196f55f
YQ
9012
9013 case "$host_os" in
9014 mingw*)
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9016$as_echo_n "checking for 64-bit off_t... " >&6; }
9017if test "${gl_cv_type_off_t_64+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019else
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021/* end confdefs.h. */
9022#include <sys/types.h>
9023 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9024
9025int
9026main ()
9027{
9028
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033if ac_fn_c_try_compile "$LINENO"; then :
9034 gl_cv_type_off_t_64=yes
9035else
9036 gl_cv_type_off_t_64=no
9037fi
9038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9042$as_echo "$gl_cv_type_off_t_64" >&6; }
9043 if test $gl_cv_type_off_t_64 = no; then
9044 WINDOWS_64_BIT_OFF_T=1
9045 else
9046 WINDOWS_64_BIT_OFF_T=0
9047 fi
9048 WINDOWS_64_BIT_ST_SIZE=1
9049 ;;
9050 *)
9051 WINDOWS_64_BIT_OFF_T=0
9052 WINDOWS_64_BIT_ST_SIZE=0
9053 ;;
9054 esac
9055
9056
88b48903
WN
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9058$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9059if test "${am_cv_langinfo_codeset+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061else
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h. */
9064#include <langinfo.h>
9065int
9066main ()
9067{
9068char* cs = nl_langinfo(CODESET); return !cs;
9069 ;
9070 return 0;
9071}
9072_ACEOF
9073if ac_fn_c_try_link "$LINENO"; then :
9074 am_cv_langinfo_codeset=yes
9075else
9076 am_cv_langinfo_codeset=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9083$as_echo "$am_cv_langinfo_codeset" >&6; }
9084 if test $am_cv_langinfo_codeset = yes; then
9085
9086$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9087
9088 fi
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
88b48903
WN
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9100$as_echo_n "checking for working fcntl.h... " >&6; }
9101if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103else
9104 if test "$cross_compiling" = yes; then :
9105 gl_cv_header_working_fcntl_h=cross-compiling
9106else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h. */
9109#include <sys/types.h>
9110 #include <sys/stat.h>
9111 #if HAVE_UNISTD_H
9112 # include <unistd.h>
9113 #else /* on Windows with MSVC */
9114 # include <io.h>
9115 # include <stdlib.h>
8690e634
JK
9116 # defined sleep(n) _sleep ((n) * 1000)
9117 #endif
9118 #include <fcntl.h>
9119 #ifndef O_NOATIME
9120 #define O_NOATIME 0
9121 #endif
9122 #ifndef O_NOFOLLOW
9123 #define O_NOFOLLOW 0
9124 #endif
9125 static int const constants[] =
9126 {
9127 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9128 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9129 };
9130
9131int
9132main ()
9133{
9134
9135 int result = !constants;
9136 #if HAVE_SYMLINK
9137 {
9138 static char const sym[] = "conftest.sym";
a512b375
JB
9139 if (symlink ("/dev/null", sym) != 0)
9140 result |= 2;
9141 else
9142 {
9143 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9144 if (fd >= 0)
9145 {
9146 close (fd);
9147 result |= 4;
9148 }
9149 }
9150 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
9151 result |= 2;
9152 else
9153 {
9154 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9155 if (fd >= 0)
9156 {
9157 close (fd);
9158 result |= 4;
9159 }
9160 }
9161 unlink (sym);
9162 }
9163 #endif
9164 {
9165 static char const file[] = "confdefs.h";
9166 int fd = open (file, O_RDONLY | O_NOATIME);
9167 if (fd < 0)
9168 result |= 8;
9169 else
9170 {
9171 struct stat st0;
9172 if (fstat (fd, &st0) != 0)
9173 result |= 16;
9174 else
9175 {
9176 char c;
9177 sleep (1);
9178 if (read (fd, &c, 1) != 1)
9179 result |= 24;
9180 else
9181 {
9182 if (close (fd) != 0)
9183 result |= 32;
9184 else
9185 {
9186 struct stat st1;
9187 if (stat (file, &st1) != 0)
9188 result |= 40;
9189 else
9190 if (st0.st_atime != st1.st_atime)
9191 result |= 64;
9192 }
9193 }
9194 }
9195 }
9196 }
9197 return result;
9198 ;
9199 return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_run "$LINENO"; then :
9203 gl_cv_header_working_fcntl_h=yes
9204else
9205 case $? in #(
9206 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9207 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9208 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9209 *) gl_cv_header_working_fcntl_h='no';;
9210 esac
9211fi
9212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9214fi
9215
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9218$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9219
9220 case $gl_cv_header_working_fcntl_h in #(
9221 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9222 *) ac_val=1;;
9223 esac
9224
9225cat >>confdefs.h <<_ACEOF
9226#define HAVE_WORKING_O_NOATIME $ac_val
9227_ACEOF
9228
9229
9230 case $gl_cv_header_working_fcntl_h in #(
9231 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9232 *) ac_val=1;;
9233 esac
9234
9235cat >>confdefs.h <<_ACEOF
9236#define HAVE_WORKING_O_NOFOLLOW $ac_val
9237_ACEOF
9238
9239
3574124b 9240ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
9241if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9242 ac_have_decl=1
9243else
9244 ac_have_decl=0
9245fi
9246
9247cat >>confdefs.h <<_ACEOF
9248#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9249_ACEOF
9250
9251
8690e634
JK
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9253$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9254if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9256else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h. */
9259
9260#include <features.h>
9261#ifdef __GNU_LIBRARY__
9262 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9263 Lucky GNU user
9264 #endif
9265#endif
9266#ifdef __UCLIBC__
9267 Lucky user
9268#endif
9269
9270_ACEOF
9271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9272 $EGREP "Lucky" >/dev/null 2>&1; then :
9273 ac_cv_gnu_library_2_1=yes
9274else
9275 ac_cv_gnu_library_2_1=no
9276fi
9277rm -f conftest*
9278
9279
9280
9281fi
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9283$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9284
9285 GLIBC21="$ac_cv_gnu_library_2_1"
9286
9287
9288
f45c62c4
YQ
9289 GNULIB_FCHMODAT=0;
9290 GNULIB_FSTAT=0;
9291 GNULIB_FSTATAT=0;
9292 GNULIB_FUTIMENS=0;
9293 GNULIB_LCHMOD=0;
9294 GNULIB_LSTAT=0;
9295 GNULIB_MKDIRAT=0;
9296 GNULIB_MKFIFO=0;
9297 GNULIB_MKFIFOAT=0;
9298 GNULIB_MKNOD=0;
9299 GNULIB_MKNODAT=0;
9300 GNULIB_STAT=0;
9301 GNULIB_UTIMENSAT=0;
9302 HAVE_FCHMODAT=1;
9303 HAVE_FSTATAT=1;
9304 HAVE_FUTIMENS=1;
9305 HAVE_LCHMOD=1;
9306 HAVE_LSTAT=1;
9307 HAVE_MKDIRAT=1;
9308 HAVE_MKFIFO=1;
9309 HAVE_MKFIFOAT=1;
9310 HAVE_MKNOD=1;
9311 HAVE_MKNODAT=1;
9312 HAVE_UTIMENSAT=1;
9313 REPLACE_FSTAT=0;
9314 REPLACE_FSTATAT=0;
9315 REPLACE_FUTIMENS=0;
9316 REPLACE_LSTAT=0;
9317 REPLACE_MKDIR=0;
9318 REPLACE_MKFIFO=0;
9319 REPLACE_MKNOD=0;
9320 REPLACE_STAT=0;
9321 REPLACE_UTIMENSAT=0;
9322
9323
9324
9325
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9327$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9328if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9330else
9331 rm -f conftest.sym conftest.file
9332 echo >conftest.file
9333 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9334 if test "$cross_compiling" = yes; then :
9335 case "$host_os" in
9336 # Guess yes on glibc systems.
9337 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9338 # If we don't know, assume the worst.
9339 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9340 esac
9341
9342else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h. */
9345$ac_includes_default
9346int
9347main ()
9348{
9349struct stat sbuf;
9350 /* Linux will dereference the symlink and fail, as required by
9351 POSIX. That is better in the sense that it means we will not
9352 have to compile and use the lstat wrapper. */
9353 return lstat ("conftest.sym/", &sbuf) == 0;
9354
9355 ;
9356 return 0;
9357}
9358_ACEOF
9359if ac_fn_c_try_run "$LINENO"; then :
9360 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9361else
9362 gl_cv_func_lstat_dereferences_slashed_symlink=no
9363fi
9364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9365 conftest.$ac_objext conftest.beam conftest.$ac_ext
9366fi
9367
9368 else
9369 # If the 'ln -s' command failed, then we probably don't even
9370 # have an lstat function.
9371 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9372 fi
9373 rm -f conftest.sym conftest.file
9374
9375fi
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9377$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9378 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9379 *yes)
9380
9381cat >>confdefs.h <<_ACEOF
9382#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9383_ACEOF
9384
9385 ;;
9386 esac
9387
9388
98399780
YQ
9389 for ac_header in stdlib.h
9390do :
9391 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9392if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394#define HAVE_STDLIB_H 1
9395_ACEOF
9396
9397fi
9398
9399done
9400
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9402$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9403if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405else
9406 if test "$cross_compiling" = yes; then :
9407 ac_cv_func_malloc_0_nonnull=no
9408else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h. */
9411#if defined STDC_HEADERS || defined HAVE_STDLIB_H
9412# include <stdlib.h>
9413#else
9414char *malloc ();
9415#endif
9416
9417int
9418main ()
9419{
9420return ! malloc (0);
9421 ;
9422 return 0;
9423}
9424_ACEOF
9425if ac_fn_c_try_run "$LINENO"; then :
9426 ac_cv_func_malloc_0_nonnull=yes
9427else
9428 ac_cv_func_malloc_0_nonnull=no
9429fi
9430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9431 conftest.$ac_objext conftest.beam conftest.$ac_ext
9432fi
9433
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9436$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9437if test $ac_cv_func_malloc_0_nonnull = yes; then :
9438 gl_cv_func_malloc_0_nonnull=1
9439else
9440 gl_cv_func_malloc_0_nonnull=0
9441fi
9442
9443
9444cat >>confdefs.h <<_ACEOF
9445#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9446_ACEOF
9447
9448
9449
88b48903
WN
9450
9451
8690e634
JK
9452 GNULIB_BTOWC=0;
9453 GNULIB_WCTOB=0;
9454 GNULIB_MBSINIT=0;
9455 GNULIB_MBRTOWC=0;
9456 GNULIB_MBRLEN=0;
9457 GNULIB_MBSRTOWCS=0;
9458 GNULIB_MBSNRTOWCS=0;
9459 GNULIB_WCRTOMB=0;
9460 GNULIB_WCSRTOMBS=0;
9461 GNULIB_WCSNRTOMBS=0;
9462 GNULIB_WCWIDTH=0;
9463 GNULIB_WMEMCHR=0;
9464 GNULIB_WMEMCMP=0;
9465 GNULIB_WMEMCPY=0;
9466 GNULIB_WMEMMOVE=0;
9467 GNULIB_WMEMSET=0;
9468 GNULIB_WCSLEN=0;
9469 GNULIB_WCSNLEN=0;
9470 GNULIB_WCSCPY=0;
9471 GNULIB_WCPCPY=0;
9472 GNULIB_WCSNCPY=0;
9473 GNULIB_WCPNCPY=0;
9474 GNULIB_WCSCAT=0;
9475 GNULIB_WCSNCAT=0;
9476 GNULIB_WCSCMP=0;
9477 GNULIB_WCSNCMP=0;
9478 GNULIB_WCSCASECMP=0;
9479 GNULIB_WCSNCASECMP=0;
9480 GNULIB_WCSCOLL=0;
9481 GNULIB_WCSXFRM=0;
9482 GNULIB_WCSDUP=0;
9483 GNULIB_WCSCHR=0;
9484 GNULIB_WCSRCHR=0;
9485 GNULIB_WCSCSPN=0;
9486 GNULIB_WCSSPN=0;
9487 GNULIB_WCSPBRK=0;
9488 GNULIB_WCSSTR=0;
9489 GNULIB_WCSTOK=0;
9490 GNULIB_WCSWIDTH=0;
9491 HAVE_BTOWC=1;
9492 HAVE_MBSINIT=1;
9493 HAVE_MBRTOWC=1;
9494 HAVE_MBRLEN=1;
9495 HAVE_MBSRTOWCS=1;
9496 HAVE_MBSNRTOWCS=1;
9497 HAVE_WCRTOMB=1;
9498 HAVE_WCSRTOMBS=1;
9499 HAVE_WCSNRTOMBS=1;
9500 HAVE_WMEMCHR=1;
9501 HAVE_WMEMCMP=1;
9502 HAVE_WMEMCPY=1;
9503 HAVE_WMEMMOVE=1;
9504 HAVE_WMEMSET=1;
9505 HAVE_WCSLEN=1;
9506 HAVE_WCSNLEN=1;
9507 HAVE_WCSCPY=1;
9508 HAVE_WCPCPY=1;
9509 HAVE_WCSNCPY=1;
9510 HAVE_WCPNCPY=1;
9511 HAVE_WCSCAT=1;
9512 HAVE_WCSNCAT=1;
9513 HAVE_WCSCMP=1;
9514 HAVE_WCSNCMP=1;
9515 HAVE_WCSCASECMP=1;
9516 HAVE_WCSNCASECMP=1;
9517 HAVE_WCSCOLL=1;
9518 HAVE_WCSXFRM=1;
9519 HAVE_WCSDUP=1;
9520 HAVE_WCSCHR=1;
9521 HAVE_WCSRCHR=1;
9522 HAVE_WCSCSPN=1;
9523 HAVE_WCSSPN=1;
9524 HAVE_WCSPBRK=1;
9525 HAVE_WCSSTR=1;
9526 HAVE_WCSTOK=1;
9527 HAVE_WCSWIDTH=1;
9528 HAVE_DECL_WCTOB=1;
9529 HAVE_DECL_WCWIDTH=1;
9530 REPLACE_MBSTATE_T=0;
9531 REPLACE_BTOWC=0;
9532 REPLACE_WCTOB=0;
9533 REPLACE_MBSINIT=0;
9534 REPLACE_MBRTOWC=0;
9535 REPLACE_MBRLEN=0;
9536 REPLACE_MBSRTOWCS=0;
9537 REPLACE_MBSNRTOWCS=0;
9538 REPLACE_WCRTOMB=0;
9539 REPLACE_WCSRTOMBS=0;
9540 REPLACE_WCSNRTOMBS=0;
9541 REPLACE_WCWIDTH=0;
9542 REPLACE_WCSWIDTH=0;
9543
9544
9545
9546
9547
9548
9549
9550
8690e634
JK
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9552$as_echo_n "checking for a traditional japanese locale... " >&6; }
9553if test "${gt_cv_locale_ja+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555else
9556
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h. */
9559
9560#include <locale.h>
9561#include <time.h>
9562#if HAVE_LANGINFO_CODESET
9563# include <langinfo.h>
9564#endif
9565#include <stdlib.h>
9566#include <string.h>
9567struct tm t;
9568char buf[16];
9569int main ()
9570{
9571 const char *p;
9572 /* Check whether the given locale name is recognized by the system. */
9573#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9574 /* On native Windows, setlocale(category, "") looks at the system settings,
9575 not at the environment variables. Also, when an encoding suffix such
9576 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9577 category of the locale to "C". */
9578 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9579 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9580 return 1;
9581#else
9582 if (setlocale (LC_ALL, "") == NULL) return 1;
9583#endif
9584 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9585 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9586 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9587 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9588 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9589 some unit tests fail.
9590 On MirBSD 10, when an unsupported locale is specified, setlocale()
9591 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9592#if HAVE_LANGINFO_CODESET
9593 {
9594 const char *cs = nl_langinfo (CODESET);
9595 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9596 || strcmp (cs, "UTF-8") == 0)
9597 return 1;
9598 }
9599#endif
9600#ifdef __CYGWIN__
9601 /* On Cygwin, avoid locale names without encoding suffix, because the
9602 locale_charset() function relies on the encoding suffix. Note that
9603 LC_ALL is set on the command line. */
9604 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9605#endif
9606 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9607 on Cygwin 1.5.x. */
9608 if (MB_CUR_MAX == 1)
9609 return 1;
9610 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9611 This excludes the UTF-8 encoding (except on MirBSD). */
9612 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9613 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9614 for (p = buf; *p != '\0'; p++)
9615 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9616 return 1;
9617 return 0;
9618}
9619
9620_ACEOF
9621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9622 (eval $ac_link) 2>&5
9623 ac_status=$?
9624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9626 case "$host_os" in
9627 # Handle native Windows specially, because there setlocale() interprets
9628 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9629 # "fr" or "fra" as "French" or "French_France.1252",
9630 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9631 # "ja" as "Japanese" or "Japanese_Japan.932",
9632 # and similar.
9633 mingw*)
9634 # Note that on native Windows, the Japanese locale is
9635 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9636 # cannot use it here.
9637 gt_cv_locale_ja=none
9638 ;;
9639 *)
9640 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9641 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9642 # configure script would override the LC_ALL setting. Likewise for
9643 # LC_CTYPE, which is also set at the beginning of the configure script.
9644 # Test for the AIX locale name.
9645 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9646 gt_cv_locale_ja=ja_JP
9647 else
9648 # Test for the locale name with explicit encoding suffix.
9649 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9650 gt_cv_locale_ja=ja_JP.EUC-JP
9651 else
9652 # Test for the HP-UX, OSF/1, NetBSD locale name.
9653 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9654 gt_cv_locale_ja=ja_JP.eucJP
9655 else
9656 # Test for the IRIX, FreeBSD locale name.
9657 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9658 gt_cv_locale_ja=ja_JP.EUC
9659 else
9660 # Test for the Solaris 7 locale name.
9661 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9662 gt_cv_locale_ja=ja
9663 else
9664 # Special test for NetBSD 1.6.
9665 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9666 gt_cv_locale_ja=ja_JP.eucJP
9667 else
9668 # None found.
9669 gt_cv_locale_ja=none
9670 fi
9671 fi
9672 fi
9673 fi
9674 fi
9675 fi
9676 ;;
9677 esac
9678 fi
9679 rm -fr conftest*
9680
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9683$as_echo "$gt_cv_locale_ja" >&6; }
9684 LOCALE_JA=$gt_cv_locale_ja
9685
9686
9687
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9691$as_echo_n "checking for a transitional chinese locale... " >&6; }
9692if test "${gt_cv_locale_zh_CN+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
9694else
9695
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h. */
9698
9699#include <locale.h>
9700#include <stdlib.h>
9701#include <time.h>
9702#if HAVE_LANGINFO_CODESET
9703# include <langinfo.h>
9704#endif
9705#include <stdlib.h>
9706#include <string.h>
9707struct tm t;
9708char buf[16];
9709int main ()
9710{
9711 const char *p;
9712 /* Check whether the given locale name is recognized by the system. */
9713#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9714 /* On native Windows, setlocale(category, "") looks at the system settings,
9715 not at the environment variables. Also, when an encoding suffix such
9716 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9717 category of the locale to "C". */
9718 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9719 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9720 return 1;
9721#else
9722 if (setlocale (LC_ALL, "") == NULL) return 1;
9723#endif
9724 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9725 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9726 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9727 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9728 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9729 some unit tests fail.
9730 On MirBSD 10, when an unsupported locale is specified, setlocale()
9731 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9732#if HAVE_LANGINFO_CODESET
9733 {
9734 const char *cs = nl_langinfo (CODESET);
9735 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9736 || strcmp (cs, "UTF-8") == 0)
9737 return 1;
9738 }
9739#endif
9740#ifdef __CYGWIN__
9741 /* On Cygwin, avoid locale names without encoding suffix, because the
9742 locale_charset() function relies on the encoding suffix. Note that
9743 LC_ALL is set on the command line. */
9744 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9745#endif
9746 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9747 This excludes the UTF-8 encoding (except on MirBSD). */
9748 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9749 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9750 for (p = buf; *p != '\0'; p++)
9751 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9752 return 1;
9753 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9754 single wide character. This excludes the GB2312 and GBK encodings. */
9755 if (mblen ("\203\062\332\066", 5) != 4)
9756 return 1;
9757 return 0;
9758}
9759
9760_ACEOF
9761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9762 (eval $ac_link) 2>&5
9763 ac_status=$?
9764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9766 case "$host_os" in
9767 # Handle native Windows specially, because there setlocale() interprets
9768 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9769 # "fr" or "fra" as "French" or "French_France.1252",
9770 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9771 # "ja" as "Japanese" or "Japanese_Japan.932",
9772 # and similar.
9773 mingw*)
9774 # Test for the hypothetical native Windows locale name.
9775 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9776 gt_cv_locale_zh_CN=Chinese_China.54936
9777 else
9778 # None found.
9779 gt_cv_locale_zh_CN=none
9780 fi
9781 ;;
9782 solaris2.8)
9783 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9784 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9785 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9786 gt_cv_locale_zh_CN=none
9787 ;;
9788 *)
9789 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9790 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9791 # configure script would override the LC_ALL setting. Likewise for
9792 # LC_CTYPE, which is also set at the beginning of the configure script.
9793 # Test for the locale name without encoding suffix.
9794 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9795 gt_cv_locale_zh_CN=zh_CN
9796 else
9797 # Test for the locale name with explicit encoding suffix.
9798 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9799 gt_cv_locale_zh_CN=zh_CN.GB18030
9800 else
9801 # None found.
9802 gt_cv_locale_zh_CN=none
9803 fi
9804 fi
9805 ;;
9806 esac
9807 else
9808 # If there was a link error, due to mblen(), the system is so old that
9809 # it certainly doesn't have a chinese locale.
9810 gt_cv_locale_zh_CN=none
9811 fi
9812 rm -fr conftest*
9813
9814fi
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9816$as_echo "$gt_cv_locale_zh_CN" >&6; }
9817 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9818
9819
9820
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9823$as_echo_n "checking for a french Unicode locale... " >&6; }
9824if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9825 $as_echo_n "(cached) " >&6
9826else
9827
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829/* end confdefs.h. */
9830
9831#include <locale.h>
9832#include <time.h>
9833#if HAVE_LANGINFO_CODESET
9834# include <langinfo.h>
9835#endif
9836#include <stdlib.h>
9837#include <string.h>
9838struct tm t;
9839char buf[16];
9840int main () {
9841 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9842 imitates locale dependent behaviour by looking at the environment
9843 variables, and all locales use the UTF-8 encoding. */
9844#if !(defined __BEOS__ || defined __HAIKU__)
9845 /* Check whether the given locale name is recognized by the system. */
9846# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9847 /* On native Windows, setlocale(category, "") looks at the system settings,
9848 not at the environment variables. Also, when an encoding suffix such
9849 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9850 category of the locale to "C". */
9851 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9852 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9853 return 1;
9854# else
9855 if (setlocale (LC_ALL, "") == NULL) return 1;
9856# endif
9857 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9858 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9859 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9860 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9861 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9862 some unit tests fail. */
9863# if HAVE_LANGINFO_CODESET
9864 {
9865 const char *cs = nl_langinfo (CODESET);
9866 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9867 return 1;
9868 }
9869# endif
9870# ifdef __CYGWIN__
9871 /* On Cygwin, avoid locale names without encoding suffix, because the
9872 locale_charset() function relies on the encoding suffix. Note that
9873 LC_ALL is set on the command line. */
9874 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9875# endif
9876 /* Check whether in the abbreviation of the second month, the second
9877 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9878 two bytes long, with UTF-8 encoding. */
9879 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9880 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9881 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9882 return 1;
9883#endif
9884#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9885 /* Check whether the decimal separator is a comma.
9886 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9887 are nl_langinfo(RADIXCHAR) are both ".". */
9888 if (localeconv () ->decimal_point[0] != ',') return 1;
9889#endif
9890 return 0;
9891}
9892
9893_ACEOF
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9895 (eval $ac_link) 2>&5
9896 ac_status=$?
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9899 case "$host_os" in
9900 # Handle native Windows specially, because there setlocale() interprets
9901 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9902 # "fr" or "fra" as "French" or "French_France.1252",
9903 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9904 # "ja" as "Japanese" or "Japanese_Japan.932",
9905 # and similar.
9906 mingw*)
9907 # Test for the hypothetical native Windows locale name.
9908 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9909 gt_cv_locale_fr_utf8=French_France.65001
9910 else
9911 # None found.
9912 gt_cv_locale_fr_utf8=none
9913 fi
9914 ;;
9915 *)
9916 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9917 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9918 # configure script would override the LC_ALL setting. Likewise for
9919 # LC_CTYPE, which is also set at the beginning of the configure script.
9920 # Test for the usual locale name.
9921 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9922 gt_cv_locale_fr_utf8=fr_FR
9923 else
9924 # Test for the locale name with explicit encoding suffix.
9925 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9926 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9927 else
9928 # Test for the Solaris 7 locale name.
9929 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9930 gt_cv_locale_fr_utf8=fr.UTF-8
9931 else
9932 # None found.
9933 gt_cv_locale_fr_utf8=none
9934 fi
9935 fi
9936 fi
9937 ;;
9938 esac
9939 fi
9940 rm -fr conftest*
9941
9942fi
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9944$as_echo "$gt_cv_locale_fr_utf8" >&6; }
9945 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9946
9947
9948
9949
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9952$as_echo_n "checking for a traditional french locale... " >&6; }
9953if test "${gt_cv_locale_fr+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955else
9956
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h. */
9959
9960#include <locale.h>
9961#include <time.h>
9962#if HAVE_LANGINFO_CODESET
9963# include <langinfo.h>
9964#endif
9965#include <stdlib.h>
9966#include <string.h>
9967struct tm t;
9968char buf[16];
9969int main () {
9970 /* Check whether the given locale name is recognized by the system. */
9971#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9972 /* On native Windows, setlocale(category, "") looks at the system settings,
9973 not at the environment variables. Also, when an encoding suffix such
9974 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9975 category of the locale to "C". */
9976 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9977 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9978 return 1;
9979#else
9980 if (setlocale (LC_ALL, "") == NULL) return 1;
9981#endif
9982 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9983 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9984 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9985 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9986 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9987 some unit tests fail.
9988 On MirBSD 10, when an unsupported locale is specified, setlocale()
9989 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9990#if HAVE_LANGINFO_CODESET
9991 {
9992 const char *cs = nl_langinfo (CODESET);
9993 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9994 || strcmp (cs, "UTF-8") == 0)
9995 return 1;
9996 }
9997#endif
9998#ifdef __CYGWIN__
9999 /* On Cygwin, avoid locale names without encoding suffix, because the
10000 locale_charset() function relies on the encoding suffix. Note that
10001 LC_ALL is set on the command line. */
10002 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10003#endif
10004 /* Check whether in the abbreviation of the second month, the second
10005 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10006 one byte long. This excludes the UTF-8 encoding. */
10007 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10008 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10009#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10010 /* Check whether the decimal separator is a comma.
10011 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10012 are nl_langinfo(RADIXCHAR) are both ".". */
10013 if (localeconv () ->decimal_point[0] != ',') return 1;
10014#endif
10015 return 0;
10016}
10017
10018_ACEOF
10019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10020 (eval $ac_link) 2>&5
10021 ac_status=$?
10022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10023 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10024 case "$host_os" in
10025 # Handle native Windows specially, because there setlocale() interprets
10026 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10027 # "fr" or "fra" as "French" or "French_France.1252",
10028 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10029 # "ja" as "Japanese" or "Japanese_Japan.932",
10030 # and similar.
10031 mingw*)
10032 # Test for the native Windows locale name.
10033 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10034 gt_cv_locale_fr=French_France.1252
10035 else
10036 # None found.
10037 gt_cv_locale_fr=none
10038 fi
10039 ;;
10040 *)
10041 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10042 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10043 # configure script would override the LC_ALL setting. Likewise for
10044 # LC_CTYPE, which is also set at the beginning of the configure script.
10045 # Test for the usual locale name.
10046 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10047 gt_cv_locale_fr=fr_FR
10048 else
10049 # Test for the locale name with explicit encoding suffix.
10050 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10051 gt_cv_locale_fr=fr_FR.ISO-8859-1
10052 else
10053 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10054 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10055 gt_cv_locale_fr=fr_FR.ISO8859-1
10056 else
10057 # Test for the HP-UX locale name.
10058 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10059 gt_cv_locale_fr=fr_FR.iso88591
10060 else
10061 # Test for the Solaris 7 locale name.
10062 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10063 gt_cv_locale_fr=fr
10064 else
10065 # None found.
10066 gt_cv_locale_fr=none
10067 fi
10068 fi
10069 fi
10070 fi
10071 fi
10072 ;;
10073 esac
10074 fi
10075 rm -fr conftest*
10076
10077fi
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10079$as_echo "$gt_cv_locale_fr" >&6; }
10080 LOCALE_FR=$gt_cv_locale_fr
10081
10082
10083
10084
10085
10086
10087
8690e634
JK
10088 GNULIB_FFSL=0;
10089 GNULIB_FFSLL=0;
10090 GNULIB_MEMCHR=0;
10091 GNULIB_MEMMEM=0;
10092 GNULIB_MEMPCPY=0;
10093 GNULIB_MEMRCHR=0;
10094 GNULIB_RAWMEMCHR=0;
10095 GNULIB_STPCPY=0;
10096 GNULIB_STPNCPY=0;
10097 GNULIB_STRCHRNUL=0;
10098 GNULIB_STRDUP=0;
10099 GNULIB_STRNCAT=0;
10100 GNULIB_STRNDUP=0;
10101 GNULIB_STRNLEN=0;
10102 GNULIB_STRPBRK=0;
10103 GNULIB_STRSEP=0;
10104 GNULIB_STRSTR=0;
10105 GNULIB_STRCASESTR=0;
10106 GNULIB_STRTOK_R=0;
10107 GNULIB_MBSLEN=0;
10108 GNULIB_MBSNLEN=0;
10109 GNULIB_MBSCHR=0;
10110 GNULIB_MBSRCHR=0;
10111 GNULIB_MBSSTR=0;
10112 GNULIB_MBSCASECMP=0;
10113 GNULIB_MBSNCASECMP=0;
10114 GNULIB_MBSPCASECMP=0;
10115 GNULIB_MBSCASESTR=0;
10116 GNULIB_MBSCSPN=0;
10117 GNULIB_MBSPBRK=0;
10118 GNULIB_MBSSPN=0;
10119 GNULIB_MBSSEP=0;
10120 GNULIB_MBSTOK_R=0;
10121 GNULIB_STRERROR=0;
10122 GNULIB_STRERROR_R=0;
10123 GNULIB_STRSIGNAL=0;
10124 GNULIB_STRVERSCMP=0;
10125 HAVE_MBSLEN=0;
10126 HAVE_FFSL=1;
10127 HAVE_FFSLL=1;
10128 HAVE_MEMCHR=1;
10129 HAVE_DECL_MEMMEM=1;
10130 HAVE_MEMPCPY=1;
10131 HAVE_DECL_MEMRCHR=1;
10132 HAVE_RAWMEMCHR=1;
10133 HAVE_STPCPY=1;
10134 HAVE_STPNCPY=1;
10135 HAVE_STRCHRNUL=1;
10136 HAVE_DECL_STRDUP=1;
10137 HAVE_DECL_STRNDUP=1;
10138 HAVE_DECL_STRNLEN=1;
10139 HAVE_STRPBRK=1;
10140 HAVE_STRSEP=1;
10141 HAVE_STRCASESTR=1;
10142 HAVE_DECL_STRTOK_R=1;
10143 HAVE_DECL_STRERROR_R=1;
10144 HAVE_DECL_STRSIGNAL=1;
10145 HAVE_STRVERSCMP=1;
10146 REPLACE_MEMCHR=0;
10147 REPLACE_MEMMEM=0;
10148 REPLACE_STPNCPY=0;
10149 REPLACE_STRDUP=0;
10150 REPLACE_STRSTR=0;
10151 REPLACE_STRCASESTR=0;
10152 REPLACE_STRCHRNUL=0;
10153 REPLACE_STRERROR=0;
10154 REPLACE_STRERROR_R=0;
10155 REPLACE_STRNCAT=0;
10156 REPLACE_STRNDUP=0;
10157 REPLACE_STRNLEN=0;
10158 REPLACE_STRSIGNAL=0;
10159 REPLACE_STRTOK_R=0;
10160 UNDEFINE_STRTOK_R=0;
10161
10162
10163
10164
10165
10166 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10167 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10168 # irrelevant for anonymous mappings.
10169 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10170if test "x$ac_cv_func_mmap" = x""yes; then :
10171 gl_have_mmap=yes
10172else
10173 gl_have_mmap=no
10174fi
10175
10176
10177 # Try to allow MAP_ANONYMOUS.
10178 gl_have_mmap_anonymous=no
10179 if test $gl_have_mmap = yes; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10181$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h. */
10184
10185#include <sys/mman.h>
10186#ifdef MAP_ANONYMOUS
10187 I cannot identify this map
10188#endif
10189
10190_ACEOF
10191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10192 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10193 gl_have_mmap_anonymous=yes
10194fi
10195rm -f conftest*
10196
10197 if test $gl_have_mmap_anonymous != yes; then
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h. */
10200
10201#include <sys/mman.h>
10202#ifdef MAP_ANON
10203 I cannot identify this map
10204#endif
10205
10206_ACEOF
10207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10209
10210$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10211
10212 gl_have_mmap_anonymous=yes
10213fi
10214rm -f conftest*
10215
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10218$as_echo "$gl_have_mmap_anonymous" >&6; }
10219 if test $gl_have_mmap_anonymous = yes; then
10220
10221$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10222
10223 fi
10224 fi
10225
10226
8690e634
JK
10227
10228
10229
10230
10231 if test $HAVE_MEMCHR = 1; then
10232 # Detect platform-specific bugs in some versions of glibc:
10233 # memchr should not dereference anything with length 0
10234 # http://bugzilla.redhat.com/499689
10235 # memchr should not dereference overestimated length after a match
10236 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10237 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10238 # Assume that memchr works on platforms that lack mprotect.
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10240$as_echo_n "checking whether memchr works... " >&6; }
10241if test "${gl_cv_func_memchr_works+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243else
10244 if test "$cross_compiling" = yes; then :
10245 gl_cv_func_memchr_works="guessing no"
10246else
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h. */
10249
10250#include <string.h>
10251#if HAVE_SYS_MMAN_H
10252# include <fcntl.h>
10253# include <unistd.h>
10254# include <sys/types.h>
10255# include <sys/mman.h>
10256# ifndef MAP_FILE
10257# define MAP_FILE 0
10258# endif
10259#endif
10260
10261int
10262main ()
10263{
10264
10265 int result = 0;
10266 char *fence = NULL;
10267#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10268# if HAVE_MAP_ANONYMOUS
10269 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10270 const int fd = -1;
10271# else /* !HAVE_MAP_ANONYMOUS */
10272 const int flags = MAP_FILE | MAP_PRIVATE;
10273 int fd = open ("/dev/zero", O_RDONLY, 0666);
10274 if (fd >= 0)
10275# endif
10276 {
10277 int pagesize = getpagesize ();
10278 char *two_pages =
10279 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10280 flags, fd, 0);
10281 if (two_pages != (char *)(-1)
10282 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10283 fence = two_pages + pagesize;
10284 }
10285#endif
10286 if (fence)
10287 {
10288 if (memchr (fence, 0, 0))
10289 result |= 1;
10290 strcpy (fence - 9, "12345678");
10291 if (memchr (fence - 9, 0, 79) != fence - 1)
10292 result |= 2;
10293 if (memchr (fence - 1, 0, 3) != fence - 1)
10294 result |= 4;
10295 }
10296 return result;
10297
10298 ;
10299 return 0;
10300}
10301_ACEOF
10302if ac_fn_c_try_run "$LINENO"; then :
10303 gl_cv_func_memchr_works=yes
10304else
10305 gl_cv_func_memchr_works=no
10306fi
10307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10308 conftest.$ac_objext conftest.beam conftest.$ac_ext
10309fi
10310
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10313$as_echo "$gl_cv_func_memchr_works" >&6; }
10314 if test "$gl_cv_func_memchr_works" != yes; then
10315 REPLACE_MEMCHR=1
10316 fi
10317 fi
10318
3574124b 10319ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
10320if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10321 ac_have_decl=1
10322else
10323 ac_have_decl=0
10324fi
10325
10326cat >>confdefs.h <<_ACEOF
10327#define HAVE_DECL_MEMMEM $ac_have_decl
10328_ACEOF
10329
10330
10331
10332
10333
8690e634
JK
10334 for ac_func in memmem
10335do :
10336 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10337if test "x$ac_cv_func_memmem" = x""yes; then :
10338 cat >>confdefs.h <<_ACEOF
10339#define HAVE_MEMMEM 1
10340_ACEOF
10341
10342fi
10343done
10344
10345 if test $ac_cv_func_memmem = yes; then
10346 HAVE_MEMMEM=1
10347 else
10348 HAVE_MEMMEM=0
10349 fi
10350
8690e634
JK
10351 if test $ac_cv_have_decl_memmem = no; then
10352 HAVE_DECL_MEMMEM=0
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10355$as_echo_n "checking whether memmem works... " >&6; }
10356if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358else
10359 if test "$cross_compiling" = yes; then :
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h. */
10362
10363#ifdef __GNU_LIBRARY__
10364 #include <features.h>
10365 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10366 || __GLIBC_MINOR__ > 12)) \
10367 || (__GLIBC__ > 2)) \
10368 || defined __UCLIBC__
10369 Lucky user
10370 #endif
10371#elif defined __CYGWIN__
10372 #include <cygwin/version.h>
10373 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10374 Lucky user
10375 #endif
10376#else
10377 Lucky user
10378#endif
10379
10380_ACEOF
10381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10382 $EGREP "Lucky user" >/dev/null 2>&1; then :
10383 gl_cv_func_memmem_works_always="guessing yes"
10384else
10385 gl_cv_func_memmem_works_always="guessing no"
10386fi
10387rm -f conftest*
10388
10389
10390else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h. */
10393
10394#include <string.h> /* for memmem */
10395#define P "_EF_BF_BD"
10396#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10397#define NEEDLE P P P P P
10398
10399int
10400main ()
10401{
10402
10403 int result = 0;
10404 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10405 result |= 1;
10406 /* Check for empty needle behavior. */
10407 {
10408 const char *haystack = "AAA";
10409 if (memmem (haystack, 3, NULL, 0) != haystack)
10410 result |= 2;
10411 }
10412 return result;
10413
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418if ac_fn_c_try_run "$LINENO"; then :
10419 gl_cv_func_memmem_works_always=yes
10420else
10421 gl_cv_func_memmem_works_always=no
10422fi
10423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10424 conftest.$ac_objext conftest.beam conftest.$ac_ext
10425fi
10426
10427
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10430$as_echo "$gl_cv_func_memmem_works_always" >&6; }
10431 case "$gl_cv_func_memmem_works_always" in
10432 *yes) ;;
10433 *)
10434 REPLACE_MEMMEM=1
10435 ;;
10436 esac
10437 fi
10438 :
10439
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10441$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10442if test "${ac_cv_header_stdbool_h+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h. */
10447
10448 #include <stdbool.h>
10449 #ifndef bool
10450 "error: bool is not defined"
10451 #endif
10452 #ifndef false
10453 "error: false is not defined"
10454 #endif
10455 #if false
10456 "error: false is not 0"
10457 #endif
10458 #ifndef true
10459 "error: true is not defined"
10460 #endif
10461 #if true != 1
10462 "error: true is not 1"
10463 #endif
10464 #ifndef __bool_true_false_are_defined
10465 "error: __bool_true_false_are_defined is not defined"
10466 #endif
10467
10468 struct s { _Bool s: 1; _Bool t; } s;
10469
10470 char a[true == 1 ? 1 : -1];
10471 char b[false == 0 ? 1 : -1];
10472 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10473 char d[(bool) 0.5 == true ? 1 : -1];
10474 /* See body of main program for 'e'. */
10475 char f[(_Bool) 0.0 == false ? 1 : -1];
10476 char g[true];
10477 char h[sizeof (_Bool)];
10478 char i[sizeof s.t];
10479 enum { j = false, k = true, l = false * true, m = true * 256 };
10480 /* The following fails for
10481 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10482 _Bool n[m];
10483 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10484 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10485 /* Catch a bug in an HP-UX C compiler. See
10486 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10487 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10488 */
10489 _Bool q = true;
10490 _Bool *pq = &q;
10491
10492int
10493main ()
10494{
10495
10496 bool e = &s;
10497 *pq |= q;
10498 *pq |= ! q;
10499 /* Refer to every declared value, to avoid compiler optimizations. */
10500 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10501 + !m + !n + !o + !p + !q + !pq);
10502
10503 ;
10504 return 0;
10505}
10506_ACEOF
10507if ac_fn_c_try_compile "$LINENO"; then :
10508 ac_cv_header_stdbool_h=yes
10509else
10510 ac_cv_header_stdbool_h=no
10511fi
10512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10515$as_echo "$ac_cv_header_stdbool_h" >&6; }
10516 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10517if test "x$ac_cv_type__Bool" = x""yes; then :
10518
10519cat >>confdefs.h <<_ACEOF
10520#define HAVE__BOOL 1
10521_ACEOF
10522
10523
10524fi
10525
10526
10527
10528 REPLACE_NULL=0;
10529 HAVE_WCHAR_T=1;
10530
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10533$as_echo_n "checking for wchar_t... " >&6; }
10534if test "${gt_cv_c_wchar_t+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10536else
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h. */
10539#include <stddef.h>
10540 wchar_t foo = (wchar_t)'\0';
10541int
10542main ()
10543{
10544
10545 ;
10546 return 0;
10547}
10548_ACEOF
10549if ac_fn_c_try_compile "$LINENO"; then :
10550 gt_cv_c_wchar_t=yes
10551else
10552 gt_cv_c_wchar_t=no
10553fi
10554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555fi
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10557$as_echo "$gt_cv_c_wchar_t" >&6; }
10558 if test $gt_cv_c_wchar_t = yes; then
10559
10560$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10561
10562 fi
10563
63ce7108
TT
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10565$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10566if test "${ac_cv_c_restrict+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568else
10569 ac_cv_c_restrict=no
10570 # The order here caters to the fact that C++ does not require restrict.
10571 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573/* end confdefs.h. */
10574typedef int * int_ptr;
10575 int foo (int_ptr $ac_kw ip) {
10576 return ip[0];
10577 }
10578int
10579main ()
10580{
10581int s[1];
10582 int * $ac_kw t = s;
10583 t[0] = 0;
10584 return foo(t)
10585 ;
10586 return 0;
10587}
10588_ACEOF
10589if ac_fn_c_try_compile "$LINENO"; then :
10590 ac_cv_c_restrict=$ac_kw
10591fi
10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 test "$ac_cv_c_restrict" != no && break
10594 done
10595
10596fi
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10598$as_echo "$ac_cv_c_restrict" >&6; }
10599
10600 case $ac_cv_c_restrict in
10601 restrict) ;;
10602 no) $as_echo "#define restrict /**/" >>confdefs.h
10603 ;;
10604 *) cat >>confdefs.h <<_ACEOF
10605#define restrict $ac_cv_c_restrict
10606_ACEOF
10607 ;;
10608 esac
10609
10610
10611
10612
10613
8690e634
JK
10614
10615
10616
10617
10618
10619
10620
10621 if test $gl_cv_have_include_next = yes; then
10622 gl_cv_next_string_h='<'string.h'>'
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10625$as_echo_n "checking absolute name of <string.h>... " >&6; }
10626if test "${gl_cv_next_string_h+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10628else
10629
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631/* end confdefs.h. */
10632#include <string.h>
10633
10634_ACEOF
10635 case "$host_os" in
10636 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10637 *) gl_absname_cpp="$ac_cpp" ;;
10638 esac
10639
10640 case "$host_os" in
c971b7fa
PA
10641 mingw*)
10642 gl_dirsep_regex='[/\\]'
10643 ;;
10644 *)
10645 gl_dirsep_regex='\/'
10646 ;;
10647 esac
10648 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10649
8690e634
JK
10650 gl_header_literal_regex=`echo 'string.h' \
10651 | sed -e "$gl_make_literal_regex_sed"`
10652 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10653 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10654 s|^/[^/]|//&|
10655 p
10656 q
10657 }'
10658 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10659 sed -n "$gl_absolute_header_sed"`'"'
10660
10661
10662fi
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10664$as_echo "$gl_cv_next_string_h" >&6; }
10665 fi
10666 NEXT_STRING_H=$gl_cv_next_string_h
10667
10668 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10670 gl_next_as_first_directive='<'string.h'>'
10671 else
10672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10673 gl_next_as_first_directive=$gl_cv_next_string_h
10674 fi
10675 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10676
10677
10678
10679
10680
10681
10682 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
10683 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10685$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10686if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10687 $as_echo_n "(cached) " >&6
10688else
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h. */
10691#include <string.h>
10692
10693int
10694main ()
10695{
10696#undef $gl_func
10697 (void) $gl_func;
10698 ;
10699 return 0;
10700}
10701_ACEOF
10702if ac_fn_c_try_compile "$LINENO"; then :
10703 eval "$as_gl_Symbol=yes"
10704else
10705 eval "$as_gl_Symbol=no"
10706fi
10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708fi
10709eval ac_res=\$$as_gl_Symbol
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10711$as_echo "$ac_res" >&6; }
10712 eval as_val=\$$as_gl_Symbol
10713 if test "x$as_val" = x""yes; then :
10714 cat >>confdefs.h <<_ACEOF
10715#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10716_ACEOF
10717
10718 eval ac_cv_have_decl_$gl_func=yes
10719fi
10720 done
10721
10722
10723
8839a007 10724
63ce7108
TT
10725
10726 if test "$gl_cv_func_memchr_works" != yes; then
10727 REPLACE_STRSTR=1
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10730$as_echo_n "checking whether strstr works... " >&6; }
10731if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10733else
10734 if test "$cross_compiling" = yes; then :
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h. */
10737
10738#ifdef __GNU_LIBRARY__
10739 #include <features.h>
10740 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
10741 || defined __UCLIBC__
10742 Lucky user
10743 #endif
10744#elif defined __CYGWIN__
10745 #include <cygwin/version.h>
10746 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10747 Lucky user
10748 #endif
10749#else
10750 Lucky user
10751#endif
10752
10753_ACEOF
10754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 $EGREP "Lucky user" >/dev/null 2>&1; then :
10756 gl_cv_func_strstr_works_always="guessing yes"
10757else
10758 gl_cv_func_strstr_works_always="guessing no"
10759fi
10760rm -f conftest*
10761
10762
10763else
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765/* end confdefs.h. */
10766
10767#include <string.h> /* for strstr */
10768#define P "_EF_BF_BD"
10769#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10770#define NEEDLE P P P P P
10771
10772int
10773main ()
10774{
10775return !!strstr (HAYSTACK, NEEDLE);
10776
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781if ac_fn_c_try_run "$LINENO"; then :
10782 gl_cv_func_strstr_works_always=yes
10783else
10784 gl_cv_func_strstr_works_always=no
10785fi
10786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10787 conftest.$ac_objext conftest.beam conftest.$ac_ext
10788fi
10789
10790
10791fi
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10793$as_echo "$gl_cv_func_strstr_works_always" >&6; }
10794 case "$gl_cv_func_strstr_works_always" in
10795 *yes) ;;
10796 *)
10797 REPLACE_STRSTR=1
10798 ;;
10799 esac
10800 fi
10801
09607c9e
TT
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10803$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10804if test "${ac_cv_header_stat_broken+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806else
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h. */
10809#include <sys/types.h>
10810#include <sys/stat.h>
63ce7108 10811
09607c9e
TT
10812#if defined S_ISBLK && defined S_IFDIR
10813extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10814#endif
8839a007 10815
09607c9e
TT
10816#if defined S_ISBLK && defined S_IFCHR
10817extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10818#endif
10819
10820#if defined S_ISLNK && defined S_IFREG
10821extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10822#endif
10823
10824#if defined S_ISSOCK && defined S_IFREG
10825extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10826#endif
8839a007 10827
8839a007 10828_ACEOF
09607c9e
TT
10829if ac_fn_c_try_compile "$LINENO"; then :
10830 ac_cv_header_stat_broken=no
10831else
10832 ac_cv_header_stat_broken=yes
10833fi
10834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10837$as_echo "$ac_cv_header_stat_broken" >&6; }
10838if test $ac_cv_header_stat_broken = yes; then
10839
10840$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839a007
PA
10841
10842fi
10843
09607c9e
TT
10844
10845
8839a007
PA
10846ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10847if test "x$ac_cv_type_mode_t" = x""yes; then :
10848
10849else
10850
10851cat >>confdefs.h <<_ACEOF
10852#define mode_t int
10853_ACEOF
10854
10855fi
10856
8839a007
PA
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10858$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10859if test -z "$MKDIR_P"; then
10860 if test "${ac_cv_path_mkdir+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_prog in mkdir gmkdir; do
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10872 'mkdir (GNU coreutils) '* | \
10873 'mkdir (coreutils) '* | \
10874 'mkdir (fileutils) '4.1*)
10875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10876 break 3;;
10877 esac
10878 done
10879 done
10880 done
10881IFS=$as_save_IFS
10882
10883fi
10884
10885 if test "${ac_cv_path_mkdir+set}" = set; then
10886 MKDIR_P="$ac_cv_path_mkdir -p"
10887 else
10888 # As a last resort, use the slow shell script. Don't cache a
10889 # value for MKDIR_P within a source directory, because that will
10890 # break other packages using the cache if that directory is
10891 # removed, or if the value is a relative name.
10892 test -d ./--version && rmdir ./--version
10893 MKDIR_P="$ac_install_sh -d"
10894 fi
10895fi
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10897$as_echo "$MKDIR_P" >&6; }
10898
10899
09607c9e
TT
10900
10901ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10902if test "x$ac_cv_type_pid_t" = x""yes; then :
10903
10904else
10905
10906cat >>confdefs.h <<_ACEOF
10907#define pid_t int
10908_ACEOF
10909
10910fi
10911
10912
10913
2196f55f 10914
09607c9e
TT
10915
10916
10917
10918
10919 GNULIB_MKTIME=0;
10920 GNULIB_NANOSLEEP=0;
10921 GNULIB_STRPTIME=0;
10922 GNULIB_TIMEGM=0;
10923 GNULIB_TIME_R=0;
10924 HAVE_DECL_LOCALTIME_R=1;
10925 HAVE_NANOSLEEP=1;
10926 HAVE_STRPTIME=1;
10927 HAVE_TIMEGM=1;
10928 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10929 REPLACE_MKTIME=GNULIB_PORTCHECK;
10930 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10931 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10932
10933
10934
10935
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10938$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10939if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941else
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h. */
10944#include <time.h>
10945
10946int
10947main ()
10948{
10949static struct timespec x; x.tv_sec = x.tv_nsec;
10950 ;
10951 return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_compile "$LINENO"; then :
10955 gl_cv_sys_struct_timespec_in_time_h=yes
10956else
10957 gl_cv_sys_struct_timespec_in_time_h=no
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10962$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10963
10964 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10965 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10966 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10967 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10968 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10971$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10972if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974else
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976/* end confdefs.h. */
10977#include <sys/time.h>
10978
10979int
10980main ()
10981{
10982static struct timespec x; x.tv_sec = x.tv_nsec;
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987if ac_fn_c_try_compile "$LINENO"; then :
10988 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10989else
10990 gl_cv_sys_struct_timespec_in_sys_time_h=no
10991fi
10992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993fi
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10995$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10996 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10997 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11000$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11001if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005/* end confdefs.h. */
11006#include <pthread.h>
11007
11008int
11009main ()
11010{
11011static struct timespec x; x.tv_sec = x.tv_nsec;
11012 ;
11013 return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_compile "$LINENO"; then :
11017 gl_cv_sys_struct_timespec_in_pthread_h=yes
11018else
11019 gl_cv_sys_struct_timespec_in_pthread_h=no
11020fi
11021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022fi
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11024$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11025 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11026 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11027 fi
11028 fi
11029 fi
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045 if test $gl_cv_have_include_next = yes; then
11046 gl_cv_next_time_h='<'time.h'>'
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11049$as_echo_n "checking absolute name of <time.h>... " >&6; }
11050if test "${gl_cv_next_time_h+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11052else
11053
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055/* end confdefs.h. */
11056#include <time.h>
11057
11058_ACEOF
11059 case "$host_os" in
11060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11061 *) gl_absname_cpp="$ac_cpp" ;;
11062 esac
11063
11064 case "$host_os" in
11065 mingw*)
11066 gl_dirsep_regex='[/\\]'
11067 ;;
11068 *)
11069 gl_dirsep_regex='\/'
11070 ;;
11071 esac
11072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11073
11074 gl_header_literal_regex=`echo 'time.h' \
11075 | sed -e "$gl_make_literal_regex_sed"`
11076 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11077 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11078 s|^/[^/]|//&|
11079 p
11080 q
11081 }'
11082 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11083 sed -n "$gl_absolute_header_sed"`'"'
11084
11085
11086fi
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11088$as_echo "$gl_cv_next_time_h" >&6; }
11089 fi
11090 NEXT_TIME_H=$gl_cv_next_time_h
11091
11092 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11094 gl_next_as_first_directive='<'time.h'>'
11095 else
11096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11097 gl_next_as_first_directive=$gl_cv_next_time_h
11098 fi
11099 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11100
11101
11102
11103
11104
11105
11106
8690e634
JK
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11108$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11109if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111else
11112 gl_cv_header_wchar_h_correct_inline=yes
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h. */
11115
11116 #define wcstod renamed_wcstod
11117/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11118 <wchar.h>.
11119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11120 included before <wchar.h>. */
11121#include <stddef.h>
11122#include <stdio.h>
11123#include <time.h>
11124#include <wchar.h>
11125extern int zero (void);
11126int main () { return zero(); }
11127
11128_ACEOF
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; }; then
11134 mv conftest.$ac_objext conftest1.$ac_objext
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136/* end confdefs.h. */
11137
11138 #define wcstod renamed_wcstod
11139/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11140 <wchar.h>.
11141 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11142 included before <wchar.h>. */
11143#include <stddef.h>
11144#include <stdio.h>
11145#include <time.h>
11146#include <wchar.h>
11147int zero (void) { return 0; }
11148
11149_ACEOF
11150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11151 (eval $ac_compile) 2>&5
11152 ac_status=$?
11153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154 test $ac_status = 0; }; then
11155 mv conftest.$ac_objext conftest2.$ac_objext
11156 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11157 :
11158 else
11159 gl_cv_header_wchar_h_correct_inline=no
11160 fi
11161 fi
11162 fi
11163 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11164
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11167$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11168 if test $gl_cv_header_wchar_h_correct_inline = no; then
11169 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11170This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11171C99 mode. You have four options:
11172 - Add the flag -fgnu89-inline to CC and reconfigure, or
11173 - Fix your include files, using parts of
11174 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11175 - Use a gcc version older than 4.3, or
11176 - Don't use the flags -std=c99 or -std=gnu99.
11177Configuration aborted." "$LINENO" 5
11178 fi
11179
11180
11181
11182
11183
8690e634
JK
11184 if test $ac_cv_header_features_h = yes; then
11185 HAVE_FEATURES_H=1
11186 else
11187 HAVE_FEATURES_H=0
11188 fi
11189
11190
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11193$as_echo_n "checking for wint_t... " >&6; }
11194if test "${gt_cv_c_wint_t+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196else
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h. */
11199
11200/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11201 <wchar.h>.
11202 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11203 before <wchar.h>. */
11204#include <stddef.h>
11205#include <stdio.h>
11206#include <time.h>
11207#include <wchar.h>
11208 wint_t foo = (wchar_t)'\0';
11209int
11210main ()
11211{
11212
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217if ac_fn_c_try_compile "$LINENO"; then :
11218 gt_cv_c_wint_t=yes
11219else
11220 gt_cv_c_wint_t=no
11221fi
11222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223fi
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11225$as_echo "$gt_cv_c_wint_t" >&6; }
11226 if test $gt_cv_c_wint_t = yes; then
11227
11228$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11229
11230 fi
11231
11232
11233 GNULIB_ISWBLANK=0;
11234 GNULIB_WCTYPE=0;
11235 GNULIB_ISWCTYPE=0;
11236 GNULIB_WCTRANS=0;
11237 GNULIB_TOWCTRANS=0;
11238 HAVE_ISWBLANK=1;
11239 HAVE_WCTYPE_T=1;
11240 HAVE_WCTRANS_T=1;
11241 REPLACE_ISWBLANK=0;
11242
11243
11244
11245
8690e634
JK
11246 if false; then
11247 GL_COND_LIBTOOL_TRUE=
11248 GL_COND_LIBTOOL_FALSE='#'
11249else
11250 GL_COND_LIBTOOL_TRUE='#'
11251 GL_COND_LIBTOOL_FALSE=
11252fi
11253
11254 gl_cond_libtool=false
11255 gl_libdeps=
11256 gl_ltlibdeps=
11257 gl_m4_base='import/m4'
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267 gl_source_base='import'
11268
11269
11270 if test $ac_cv_func_alloca_works = no; then
11271 :
11272 fi
11273
11274 # Define an additional variable used in the Makefile substitution.
11275 if test $ac_cv_working_alloca_h = yes; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11277$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11278if test "${gl_cv_rpl_alloca+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280else
11281
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283/* end confdefs.h. */
11284
11285#if defined __GNUC__ || defined _AIX || defined _MSC_VER
11286 Need own alloca
11287#endif
11288
11289_ACEOF
11290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11291 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11292 gl_cv_rpl_alloca=yes
11293else
11294 gl_cv_rpl_alloca=no
11295fi
11296rm -f conftest*
11297
11298
11299fi
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11301$as_echo "$gl_cv_rpl_alloca" >&6; }
11302 if test $gl_cv_rpl_alloca = yes; then
11303
11304$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11305
11306 ALLOCA_H=alloca.h
11307 else
11308 ALLOCA_H=
11309 fi
11310 else
11311 ALLOCA_H=alloca.h
11312 fi
11313
11314 if test -n "$ALLOCA_H"; then
11315 GL_GENERATE_ALLOCA_H_TRUE=
11316 GL_GENERATE_ALLOCA_H_FALSE='#'
11317else
11318 GL_GENERATE_ALLOCA_H_TRUE='#'
11319 GL_GENERATE_ALLOCA_H_FALSE=
11320fi
11321
11322
11323
98399780
YQ
11324
11325
11326 if test $ac_cv_func_canonicalize_file_name = no; then
11327 HAVE_CANONICALIZE_FILE_NAME=0
11328 if test $ac_cv_func_realpath = no; then
11329 HAVE_REALPATH=0
11330 else
11331 case "$gl_cv_func_realpath_works" in
11332 *yes) ;;
11333 *) REPLACE_REALPATH=1 ;;
11334 esac
11335 fi
11336 else
11337 case "$gl_cv_func_realpath_works" in
11338 *yes)
11339 ;;
11340 *)
11341 REPLACE_CANONICALIZE_FILE_NAME=1
11342 REPLACE_REALPATH=1
11343 ;;
11344 esac
11345 fi
11346
11347 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11348
11349
11350
11351
11352
11353
11354
11355
11356 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11357
11358 fi
11359
11360
11361cat >>confdefs.h <<_ACEOF
11362#define GNULIB_CANONICALIZE_LGPL 1
11363_ACEOF
11364
11365
11366
11367
11368
11369
11370
11371 GNULIB_CANONICALIZE_FILE_NAME=1
11372
11373
11374
11375
11376
11377$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11378
11379
11380
11381
11382
11383
11384
11385
11386 GNULIB_REALPATH=1
11387
11388
11389
11390
11391
11392$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11393
11394
11395
11396
8690e634
JK
11397 if test "x$datarootdir" = x; then
11398 datarootdir='${datadir}'
11399
11400 fi
11401 if test "x$docdir" = x; then
11402 docdir='${datarootdir}/doc/${PACKAGE}'
11403
11404 fi
11405 if test "x$htmldir" = x; then
11406 htmldir='${docdir}'
11407
11408 fi
11409 if test "x$dvidir" = x; then
11410 dvidir='${docdir}'
11411
11412 fi
11413 if test "x$pdfdir" = x; then
11414 pdfdir='${docdir}'
11415
11416 fi
11417 if test "x$psdir" = x; then
11418 psdir='${docdir}'
11419
11420 fi
11421 if test "x$lispdir" = x; then
11422 lispdir='${datarootdir}/emacs/site-lisp'
11423
11424 fi
11425 if test "x$localedir" = x; then
11426 localedir='${datarootdir}/locale'
11427
11428 fi
11429
11430 pkglibexecdir='${libexecdir}/${PACKAGE}'
11431
11432
11433
11434
11435
11436
63ce7108 11437
e26b6bb0
TT
11438
11439
11440
11441
11442
11443
11444
11445 if test $gl_cv_have_include_next = yes; then
11446 gl_cv_next_dirent_h='<'dirent.h'>'
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11449$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11450if test "${gl_cv_next_dirent_h+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
11452else
11453
11454 if test $ac_cv_header_dirent_h = yes; then
11455
11456
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458/* end confdefs.h. */
11459#include <dirent.h>
11460
11461_ACEOF
11462 case "$host_os" in
11463 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11464 *) gl_absname_cpp="$ac_cpp" ;;
11465 esac
11466
11467 case "$host_os" in
11468 mingw*)
11469 gl_dirsep_regex='[/\\]'
11470 ;;
11471 *)
11472 gl_dirsep_regex='\/'
11473 ;;
11474 esac
11475 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11476
11477 gl_header_literal_regex=`echo 'dirent.h' \
11478 | sed -e "$gl_make_literal_regex_sed"`
11479 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11480 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11481 s|^/[^/]|//&|
11482 p
11483 q
11484 }'
11485 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11486 sed -n "$gl_absolute_header_sed"`'"'
11487 else
11488 gl_cv_next_dirent_h='<'dirent.h'>'
11489 fi
11490
11491
11492fi
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11494$as_echo "$gl_cv_next_dirent_h" >&6; }
11495 fi
11496 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11497
11498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11500 gl_next_as_first_directive='<'dirent.h'>'
11501 else
11502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11503 gl_next_as_first_directive=$gl_cv_next_dirent_h
11504 fi
11505 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11506
11507
11508
11509
11510 if test $ac_cv_header_dirent_h = yes; then
11511 HAVE_DIRENT_H=1
11512 else
11513 HAVE_DIRENT_H=0
11514 fi
11515
11516
11517
11518 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11519 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11521$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11522if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11523 $as_echo_n "(cached) " >&6
11524else
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526/* end confdefs.h. */
11527#include <dirent.h>
11528
11529int
11530main ()
11531{
11532#undef $gl_func
11533 (void) $gl_func;
11534 ;
11535 return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_compile "$LINENO"; then :
11539 eval "$as_gl_Symbol=yes"
11540else
11541 eval "$as_gl_Symbol=no"
11542fi
11543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544fi
11545eval ac_res=\$$as_gl_Symbol
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11547$as_echo "$ac_res" >&6; }
11548 eval as_val=\$$as_gl_Symbol
11549 if test "x$as_val" = x""yes; then :
11550 cat >>confdefs.h <<_ACEOF
11551#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11552_ACEOF
11553
11554 eval ac_cv_have_decl_$gl_func=yes
11555fi
11556 done
11557
11558
11559
11560
11561
11562
18848e28
GF
11563
11564 for ac_func in dirfd
11565do :
11566 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11567if test "x$ac_cv_func_dirfd" = x""yes; then :
11568 cat >>confdefs.h <<_ACEOF
11569#define HAVE_DIRFD 1
11570_ACEOF
11571
11572fi
11573done
11574
11575 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11576 #include <dirent.h>
11577"
11578if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11579 ac_have_decl=1
11580else
11581 ac_have_decl=0
11582fi
11583
11584cat >>confdefs.h <<_ACEOF
11585#define HAVE_DECL_DIRFD $ac_have_decl
11586_ACEOF
11587
11588 if test $ac_cv_have_decl_dirfd = no; then
11589 HAVE_DECL_DIRFD=0
11590 fi
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11593$as_echo_n "checking whether dirfd is a macro... " >&6; }
11594if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11596else
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598/* end confdefs.h. */
11599
11600#include <sys/types.h>
11601#include <dirent.h>
11602#ifdef dirfd
11603 dirent_header_defines_dirfd
11604#endif
11605_ACEOF
11606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11607 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11608 gl_cv_func_dirfd_macro=yes
11609else
11610 gl_cv_func_dirfd_macro=no
11611fi
11612rm -f conftest*
11613
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11616$as_echo "$gl_cv_func_dirfd_macro" >&6; }
11617
11618 # Use the replacement only if we have no function or macro with that name.
11619 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11620 if test $ac_cv_have_decl_dirfd = yes; then
11621 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11622 REPLACE_DIRFD=1
11623 fi
11624 fi
11625
11626 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11627
11628
11629
11630
11631
11632
11633
11634
11635 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11636
11637
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11639$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11640if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11642else
11643
11644 dirfd_save_CFLAGS=$CFLAGS
11645 for ac_expr in d_fd dd_fd; do
11646
11647 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649/* end confdefs.h. */
11650
11651 #include <sys/types.h>
11652 #include <dirent.h>
11653int
11654main ()
11655{
11656DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_compile "$LINENO"; then :
11662 dir_fd_found=yes
11663
11664fi
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 CFLAGS=$dirfd_save_CFLAGS
11667 test "$dir_fd_found" = yes && break
11668 done
11669 test "$dir_fd_found" = yes || ac_expr=no_such_member
11670
11671 gl_cv_sys_dir_fd_member_name=$ac_expr
11672
11673
11674fi
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11676$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11677 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11678
11679cat >>confdefs.h <<_ACEOF
11680#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11681_ACEOF
11682
11683 fi
11684
11685
11686 fi
11687
11688
11689
11690
11691
11692 GNULIB_DIRFD=1
11693
11694
11695
11696
11697
11698$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11699
11700
11701
11702
11703
11704
11705
11706
88b48903
WN
11707 FLOAT_H=
11708 REPLACE_FLOAT_LDBL=0
11709 case "$host_os" in
11710 aix* | beos* | openbsd* | mirbsd* | irix*)
11711 FLOAT_H=float.h
11712 ;;
11713 freebsd*)
11714 case "$host_cpu" in
11715 i[34567]86 )
11716 FLOAT_H=float.h
11717 ;;
11718 x86_64 )
11719 # On x86_64 systems, the C compiler may still be generating
11720 # 32-bit code.
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722/* end confdefs.h. */
11723#if defined __LP64__ || defined __x86_64__ || defined __amd64__
11724 yes
11725 #endif
11726_ACEOF
11727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728 $EGREP "yes" >/dev/null 2>&1; then :
11729
11730else
11731 FLOAT_H=float.h
11732fi
11733rm -f conftest*
8690e634 11734
88b48903
WN
11735 ;;
11736 esac
11737 ;;
11738 linux*)
11739 case "$host_cpu" in
11740 powerpc*)
11741 FLOAT_H=float.h
11742 ;;
11743 esac
11744 ;;
11745 esac
11746 case "$host_os" in
11747 aix* | freebsd* | linux*)
11748 if test -n "$FLOAT_H"; then
11749 REPLACE_FLOAT_LDBL=1
11750 fi
11751 ;;
11752 esac
a512b375 11753
88b48903
WN
11754 REPLACE_ITOLD=0
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
11756$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
11757if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
11758 $as_echo_n "(cached) " >&6
11759else
88b48903
WN
11760
11761 if test "$cross_compiling" = yes; then :
11762 case "$host" in
11763 sparc*-*-linux*)
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h. */
11766#if defined __LP64__ || defined __arch64__
11767 yes
11768 #endif
11769_ACEOF
11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 $EGREP "yes" >/dev/null 2>&1; then :
11772 gl_cv_func_itold_works="guessing no"
11773else
11774 gl_cv_func_itold_works="guessing yes"
11775fi
11776rm -f conftest*
11777
11778 ;;
11779 *) gl_cv_func_itold_works="guessing yes" ;;
11780 esac
11781
8690e634
JK
11782else
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784/* end confdefs.h. */
8690e634 11785
88b48903
WN
11786int i = -1;
11787volatile long double ld;
11788int main ()
8690e634 11789{
88b48903
WN
11790 ld += i * 1.0L;
11791 if (ld > 0)
11792 return 1;
11793 return 0;
11794}
11795_ACEOF
11796if ac_fn_c_try_run "$LINENO"; then :
11797 gl_cv_func_itold_works=yes
11798else
11799 gl_cv_func_itold_works=no
11800fi
11801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11802 conftest.$ac_objext conftest.beam conftest.$ac_ext
11803fi
11804
11805
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
11808$as_echo "$gl_cv_func_itold_works" >&6; }
11809 case "$gl_cv_func_itold_works" in
11810 *no)
11811 REPLACE_ITOLD=1
11812 FLOAT_H=float.h
11813 ;;
11814 esac
11815
11816 if test -n "$FLOAT_H"; then
11817
11818
11819
11820
11821
11822
11823
11824
11825 if test $gl_cv_have_include_next = yes; then
11826 gl_cv_next_float_h='<'float.h'>'
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
11829$as_echo_n "checking absolute name of <float.h>... " >&6; }
11830if test "${gl_cv_next_float_h+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11832else
11833
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835/* end confdefs.h. */
11836#include <float.h>
11837
11838_ACEOF
11839 case "$host_os" in
11840 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11841 *) gl_absname_cpp="$ac_cpp" ;;
11842 esac
11843
11844 case "$host_os" in
11845 mingw*)
11846 gl_dirsep_regex='[/\\]'
11847 ;;
11848 *)
11849 gl_dirsep_regex='\/'
11850 ;;
11851 esac
11852 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11853
11854 gl_header_literal_regex=`echo 'float.h' \
11855 | sed -e "$gl_make_literal_regex_sed"`
11856 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11857 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11858 s|^/[^/]|//&|
11859 p
11860 q
11861 }'
11862 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11863 sed -n "$gl_absolute_header_sed"`'"'
11864
11865
11866fi
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11868$as_echo "$gl_cv_next_float_h" >&6; }
11869 fi
11870 NEXT_FLOAT_H=$gl_cv_next_float_h
11871
11872 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11873 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11874 gl_next_as_first_directive='<'float.h'>'
11875 else
11876 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11877 gl_next_as_first_directive=$gl_cv_next_float_h
11878 fi
11879 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11880
11881
11882
11883
11884 fi
11885
11886 if test -n "$FLOAT_H"; then
11887 GL_GENERATE_FLOAT_H_TRUE=
11888 GL_GENERATE_FLOAT_H_FALSE='#'
11889else
11890 GL_GENERATE_FLOAT_H_TRUE='#'
11891 GL_GENERATE_FLOAT_H_FALSE=
11892fi
11893
11894
11895
11896 if test $REPLACE_FLOAT_LDBL = 1; then
11897
11898
11899
11900
11901
11902
11903
11904
11905 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11906
11907 fi
11908 if test $REPLACE_ITOLD = 1; then
11909
11910
11911
11912
11913
11914
11915
11916
11917 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11918
11919 fi
11920
11921
11922
11923
11924
11925 FNMATCH_H=
11926 gl_fnmatch_required_lowercase=`
11927 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
11928 `
11929 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11931$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11932if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11933 $as_echo_n "(cached) " >&6
11934else
11935 if test $gl_fnmatch_required = GNU; then
11936 gl_fnmatch_gnu_start=
11937 gl_fnmatch_gnu_end=
11938 else
11939 gl_fnmatch_gnu_start='#if 0'
11940 gl_fnmatch_gnu_end='#endif'
11941 fi
11942 if test "$cross_compiling" = yes; then :
11943 eval "$gl_fnmatch_cache_var=\"guessing no\""
11944else
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h. */
11947#include <fnmatch.h>
11948 static int
11949 y (char const *pattern, char const *string, int flags)
11950 {
11951 return fnmatch (pattern, string, flags) == 0;
11952 }
11953 static int
11954 n (char const *pattern, char const *string, int flags)
11955 {
11956 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11957 }
11958
11959int
11960main ()
11961{
11962char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11963 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11964 static char const A_1[] = { 'A' - 1, 0 };
11965 static char const A01[] = { 'A' + 1, 0 };
11966 static char const a_1[] = { 'a' - 1, 0 };
11967 static char const a01[] = { 'a' + 1, 0 };
11968 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
11969 static char const bs01[] = { '\\\\' + 1, 0 };
11970 int result = 0;
11971 if (!n ("a*", "", 0))
11972 return 1;
11973 if (!y ("a*", "abc", 0))
11974 return 1;
11975 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11976 return 1;
11977 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11978 return 2;
11979 if (!y ("a\\\\bc", "abc", 0))
11980 return 3;
11981 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11982 return 3;
11983 if (!y ("*x", ".x", 0))
11984 return 4;
11985 if (!n ("*x", ".x", FNM_PERIOD))
11986 return 4;
11987 if (!y (Apat, "\\\\", 0))
11988 return 5;
11989 if (!y (Apat, "A", 0))
11990 return 5;
11991 if (!y (apat, "\\\\", 0))
11992 return 5;
11993 if (!y (apat, "a", 0))
11994 return 5;
11995 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11996 return 5;
11997 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11998 return 5;
11999 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12000 return 5;
12001 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12002 return 5;
12003 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12004 return 5;
12005 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12006 return 5;
12007 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12008 return 5;
12009 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12010 return 5;
12011 $gl_fnmatch_gnu_start
12012 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12013 result |= 8;
12014 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12015 result |= 16;
12016 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12017 result |= 32;
12018 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12019 result |= 64;
12020 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12021 result |= 64;
12022 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12023 result |= 64;
12024 $gl_fnmatch_gnu_end
12025 return result;
12026
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_run "$LINENO"; then :
12032 eval "$gl_fnmatch_cache_var=yes"
12033else
12034 eval "$gl_fnmatch_cache_var=no"
12035fi
12036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12037 conftest.$ac_objext conftest.beam conftest.$ac_ext
12038fi
12039
12040
12041fi
12042eval ac_res=\$$gl_fnmatch_cache_var
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12044$as_echo "$ac_res" >&6; }
12045 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12046 if test "$gl_fnmatch_result" = yes; then
12047 rm -f "$gl_source_base/fnmatch.h"
12048 else
12049 FNMATCH_H=fnmatch.h
12050 fi
12051
12052 if test -n "$FNMATCH_H"; then
12053 GL_GENERATE_FNMATCH_H_TRUE=
12054 GL_GENERATE_FNMATCH_H_FALSE='#'
12055else
12056 GL_GENERATE_FNMATCH_H_TRUE='#'
12057 GL_GENERATE_FNMATCH_H_FALSE=
12058fi
12059
12060
a512b375 12061 if test -n "$FNMATCH_H"; then
8690e634
JK
12062
12063
12064
12065
12066
12067
12068
12069
12070 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12071
12072
12073
12074cat >>confdefs.h <<_ACEOF
12075#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12076_ACEOF
12077
12078
12079 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12080"
12081if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12082 ac_have_decl=1
12083else
12084 ac_have_decl=0
12085fi
12086
12087cat >>confdefs.h <<_ACEOF
12088#define HAVE_DECL_ISBLANK $ac_have_decl
12089_ACEOF
12090
12091
c971b7fa 12092
c971b7fa 12093
a512b375 12094 fi
c971b7fa 12095
c971b7fa 12096
c971b7fa 12097
c971b7fa 12098
c971b7fa 12099
a512b375 12100 if test -n "$FNMATCH_H"; then
c971b7fa 12101
c971b7fa 12102
c971b7fa
PA
12103
12104
c971b7fa
PA
12105
12106
c971b7fa
PA
12107
12108
8690e634 12109 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 12110
c971b7fa 12111
c971b7fa 12112
8690e634
JK
12113cat >>confdefs.h <<_ACEOF
12114#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12115_ACEOF
c971b7fa
PA
12116
12117
8690e634
JK
12118 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12119"
12120if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12121 ac_have_decl=1
12122else
12123 ac_have_decl=0
c971b7fa 12124fi
c971b7fa 12125
8690e634
JK
12126cat >>confdefs.h <<_ACEOF
12127#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
12128_ACEOF
12129
c971b7fa 12130
8690e634 12131
c971b7fa 12132
88b48903
WN
12133 fi
12134
12135
12136
12137 FREXP_LIBM=
12138 if test $gl_cv_func_frexp_no_libm = no; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12140$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12141if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143else
12144
12145 save_LIBS="$LIBS"
12146 LIBS="$LIBS -lm"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148/* end confdefs.h. */
12149#include <math.h>
12150 double x;
12151int
12152main ()
12153{
12154int e; return frexp (x, &e) > 0;
12155 ;
12156 return 0;
12157}
12158_ACEOF
12159if ac_fn_c_try_link "$LINENO"; then :
12160 gl_cv_func_frexp_in_libm=yes
12161else
12162 gl_cv_func_frexp_in_libm=no
12163fi
12164rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS="$save_LIBS"
12167
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12170$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12171 if test $gl_cv_func_frexp_in_libm = yes; then
12172 FREXP_LIBM=-lm
12173 fi
12174 fi
12175 if test $gl_cv_func_frexp_no_libm = yes \
12176 || test $gl_cv_func_frexp_in_libm = yes; then
12177 save_LIBS="$LIBS"
12178 LIBS="$LIBS $FREXP_LIBM"
12179
12180
12181
88b48903
WN
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12183$as_echo_n "checking whether frexp works... " >&6; }
12184if test "${gl_cv_func_frexp_works+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186else
12187
12188 if test "$cross_compiling" = yes; then :
12189 case "$host_os" in
12190 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12191 *) gl_cv_func_frexp_works="guessing yes";;
12192 esac
12193
12194else
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196/* end confdefs.h. */
12197
12198#include <float.h>
12199#include <math.h>
12200#include <string.h>
12201#if HAVE_ALARM
12202# include <unistd.h>
12203#endif
12204/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12205 ICC 10.0 has a bug when optimizing the expression -zero.
12206 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12207 to PowerPC on Mac OS X 10.5. */
12208#if defined __hpux || defined __sgi || defined __ICC
12209static double
12210compute_minus_zero (void)
12211{
12212 return -DBL_MIN * DBL_MIN;
12213}
12214# define minus_zero compute_minus_zero ()
12215#else
12216double minus_zero = -0.0;
12217#endif
12218int main()
12219{
12220 int result = 0;
12221 int i;
12222 volatile double x;
12223 double zero = 0.0;
12224#if HAVE_ALARM
12225 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12226 number. Let the test fail in this case. */
12227 alarm (5);
12228#endif
12229 /* Test on denormalized numbers. */
12230 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12231 ;
12232 if (x > 0.0)
12233 {
12234 int exp;
12235 double y = frexp (x, &exp);
12236 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12237 On NetBSD: y = 0.75. Correct: y = 0.5. */
12238 if (y != 0.5)
12239 result |= 1;
12240 }
12241 /* Test on infinite numbers. */
12242 x = 1.0 / zero;
12243 {
12244 int exp;
12245 double y = frexp (x, &exp);
12246 if (y != x)
12247 result |= 2;
12248 }
12249 /* Test on negative zero. */
12250 x = minus_zero;
12251 {
12252 int exp;
12253 double y = frexp (x, &exp);
12254 if (memcmp (&y, &x, sizeof x))
12255 result |= 4;
12256 }
12257 return result;
12258}
12259_ACEOF
12260if ac_fn_c_try_run "$LINENO"; then :
12261 gl_cv_func_frexp_works=yes
12262else
12263 gl_cv_func_frexp_works=no
12264fi
12265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266 conftest.$ac_objext conftest.beam conftest.$ac_ext
12267fi
12268
12269
12270fi
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12272$as_echo "$gl_cv_func_frexp_works" >&6; }
12273
12274 LIBS="$save_LIBS"
12275 case "$gl_cv_func_frexp_works" in
12276 *yes) gl_func_frexp=yes ;;
12277 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12278 esac
12279 else
12280 gl_func_frexp=no
12281 fi
12282 if test $gl_func_frexp = yes; then
12283
12284$as_echo "#define HAVE_FREXP 1" >>confdefs.h
12285
12286 fi
12287
12288
12289 if test $gl_func_frexp != yes; then
12290
12291
12292
12293
12294
12295
12296
12297
12298 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12299
12300 fi
12301
12302
12303
12304
12305
12306 GNULIB_FREXP=1
12307
12308
12309
12310
12311
12312$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12323"
12324if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12325
12326else
12327 HAVE_DECL_FREXPL=0
12328fi
12329
12330
12331 FREXPL_LIBM=
12332 if test $HAVE_DECL_FREXPL = 1; then
12333
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12335$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12336if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338else
12339
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341/* end confdefs.h. */
12342#include <math.h>
12343 long double x;
12344int
12345main ()
12346{
12347int e; return frexpl (x, &e) > 0;
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352if ac_fn_c_try_link "$LINENO"; then :
12353 gl_cv_func_frexpl_no_libm=yes
12354else
12355 gl_cv_func_frexpl_no_libm=no
12356fi
12357rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359
12360fi
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12362$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12363
12364 if test $gl_cv_func_frexpl_no_libm = no; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12366$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12367if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369else
12370
12371 save_LIBS="$LIBS"
12372 LIBS="$LIBS -lm"
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374/* end confdefs.h. */
12375#include <math.h>
12376 long double x;
12377int
12378main ()
12379{
12380int e; return frexpl (x, &e) > 0;
12381 ;
12382 return 0;
12383}
12384_ACEOF
12385if ac_fn_c_try_link "$LINENO"; then :
12386 gl_cv_func_frexpl_in_libm=yes
12387else
12388 gl_cv_func_frexpl_in_libm=no
12389fi
12390rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS="$save_LIBS"
12393
12394fi
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12396$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12397 if test $gl_cv_func_frexpl_in_libm = yes; then
12398 FREXPL_LIBM=-lm
12399 fi
12400 fi
12401 if test $gl_cv_func_frexpl_no_libm = yes \
12402 || test $gl_cv_func_frexpl_in_libm = yes; then
12403 save_LIBS="$LIBS"
12404 LIBS="$LIBS $FREXPL_LIBM"
12405
12406
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12408$as_echo_n "checking whether frexpl works... " >&6; }
12409if test "${gl_cv_func_frexpl_works+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411else
12412
12413 if test "$cross_compiling" = yes; then :
12414
12415 case "$host_os" in
12416 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12417 gl_cv_func_frexpl_works="guessing no";;
12418 *) gl_cv_func_frexpl_works="guessing yes";;
12419 esac
12420
12421else
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423/* end confdefs.h. */
12424
12425#include <float.h>
12426#include <math.h>
12427/* Override the values of <float.h>, like done in float.in.h. */
12428#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12429# undef LDBL_MIN_EXP
12430# define LDBL_MIN_EXP (-16381)
12431#endif
12432#if defined __i386__ && defined __FreeBSD__
12433# undef LDBL_MIN_EXP
12434# define LDBL_MIN_EXP (-16381)
12435#endif
12436#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12437# undef LDBL_MIN_EXP
12438# define LDBL_MIN_EXP DBL_MIN_EXP
12439#endif
12440#if defined __sgi && (LDBL_MANT_DIG >= 106)
12441# if defined __GNUC__
12442# undef LDBL_MIN_EXP
12443# define LDBL_MIN_EXP DBL_MIN_EXP
12444# endif
12445#endif
12446extern
12447#ifdef __cplusplus
12448"C"
12449#endif
12450long double frexpl (long double, int *);
12451int main()
12452{
12453 int result = 0;
12454 volatile long double x;
12455 /* Test on finite numbers that fails on AIX 5.1. */
12456 x = 16.0L;
12457 {
12458 int exp = -9999;
12459 frexpl (x, &exp);
12460 if (exp != 5)
12461 result |= 1;
12462 }
12463 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12464 function returns an invalid (incorrectly normalized) value: it returns
12465 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12466 but the correct result is
12467 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12468 x = 1.01L;
12469 {
12470 int exp = -9999;
12471 long double y = frexpl (x, &exp);
12472 if (!(exp == 1 && y == 0.505L))
12473 result |= 2;
12474 }
12475 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12476 LDBL_MAX_EXP = 16384.
12477 In the loop end test, we test x against Infinity, rather than comparing
12478 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12479 {
12480 int i;
12481 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12482 {
12483 int exp = -9999;
12484 frexpl (x, &exp);
12485 if (exp != i)
12486 {
12487 result |= 4;
12488 break;
12489 }
12490 }
12491 }
12492 /* Test on denormalized numbers. */
12493 {
12494 int i;
12495 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12496 ;
12497 if (x > 0.0L)
12498 {
12499 int exp;
12500 long double y = frexpl (x, &exp);
12501 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12502 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12503 if (exp != LDBL_MIN_EXP - 1)
12504 result |= 8;
12505 }
12506 }
12507 /* Test on infinite numbers. */
12508 x = 1.0L / 0.0L;
12509 {
12510 int exp;
12511 long double y = frexpl (x, &exp);
12512 if (y != x)
12513 result |= 16;
12514 }
12515 return result;
12516}
12517_ACEOF
12518if ac_fn_c_try_run "$LINENO"; then :
12519 gl_cv_func_frexpl_works=yes
12520else
12521 gl_cv_func_frexpl_works=no
12522fi
12523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12524 conftest.$ac_objext conftest.beam conftest.$ac_ext
12525fi
12526
12527
12528fi
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12530$as_echo "$gl_cv_func_frexpl_works" >&6; }
12531
12532 LIBS="$save_LIBS"
12533 case "$gl_cv_func_frexpl_works" in
12534 *yes) gl_func_frexpl=yes ;;
12535 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12536 esac
12537 else
12538 gl_func_frexpl=no
12539 fi
12540 if test $gl_func_frexpl = yes; then
12541
12542$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12543
12544 fi
12545 fi
12546 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12547 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12548
12549 FREXPL_LIBM="$FREXP_LIBM"
12550 else
12551 FREXPL_LIBM=
12552 fi
12553 fi
12554
12555
12556 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12557
12558
12559
12560
12561
12562
12563
12564
12565 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12566
12567 fi
12568
12569
12570
12571
12572
12573 GNULIB_FREXPL=1
12574
12575
12576
12577
12578
12579$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12580
12581
12582
12583
12584
12585
12586
12587
12588 PRIPTR_PREFIX=
12589 if test -n "$STDINT_H"; then
12590 PRIPTR_PREFIX='"l"'
12591 else
12592 for glpfx in '' l ll I64; do
12593 case $glpfx in
12594 '') gltype1='int';;
12595 l) gltype1='long int';;
12596 ll) gltype1='long long int';;
12597 I64) gltype1='__int64';;
12598 esac
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600/* end confdefs.h. */
12601#include <stdint.h>
12602 extern intptr_t foo;
12603 extern $gltype1 foo;
12604int
12605main ()
12606{
12607
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612if ac_fn_c_try_compile "$LINENO"; then :
12613 PRIPTR_PREFIX='"'$glpfx'"'
12614fi
12615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 test -n "$PRIPTR_PREFIX" && break
12617 done
12618 fi
12619
12620
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12623$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12624if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12626else
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h. */
12629/* Work also in C++ mode. */
12630 #define __STDC_LIMIT_MACROS 1
12631
12632 /* Work if build is not clean. */
12633 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12634
12635 #include <limits.h>
12636 #if HAVE_STDINT_H
12637 #include <stdint.h>
12638 #endif
12639
12640 #if defined INT32_MAX && defined INTMAX_MAX
12641 #define CONDITION (INT32_MAX < INTMAX_MAX)
12642 #elif HAVE_LONG_LONG_INT
12643 #define CONDITION (sizeof (int) < sizeof (long long int))
12644 #else
12645 #define CONDITION 0
12646 #endif
12647 int test[CONDITION ? 1 : -1];
12648int
12649main ()
12650{
12651
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656if ac_fn_c_try_compile "$LINENO"; then :
12657 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12658else
12659 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12660fi
12661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662fi
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12664$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12665 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12666 INT32_MAX_LT_INTMAX_MAX=1;
12667 else
12668 INT32_MAX_LT_INTMAX_MAX=0;
12669 fi
12670
12671
12672 if test $APPLE_UNIVERSAL_BUILD = 0; then
12673
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
12675$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
12676if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12678else
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680/* end confdefs.h. */
12681/* Work also in C++ mode. */
12682 #define __STDC_LIMIT_MACROS 1
12683
12684 /* Work if build is not clean. */
12685 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12686
12687 #include <limits.h>
12688 #if HAVE_STDINT_H
12689 #include <stdint.h>
12690 #endif
12691
12692 #if defined INT64_MAX
12693 #define CONDITION (INT64_MAX == LONG_MAX)
12694 #elif HAVE_LONG_LONG_INT
12695 #define CONDITION (sizeof (long long int) == sizeof (long int))
12696 #else
12697 #define CONDITION 0
12698 #endif
12699 int test[CONDITION ? 1 : -1];
12700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708if ac_fn_c_try_compile "$LINENO"; then :
12709 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
12710else
12711 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
12712fi
12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
12716$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
12717 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
12718 INT64_MAX_EQ_LONG_MAX=1;
12719 else
12720 INT64_MAX_EQ_LONG_MAX=0;
12721 fi
12722
12723
12724 else
12725 INT64_MAX_EQ_LONG_MAX=-1
12726 fi
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
12729$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
12730if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12732else
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h. */
12735/* Work also in C++ mode. */
12736 #define __STDC_LIMIT_MACROS 1
12737
12738 /* Work if build is not clean. */
12739 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12740
12741 #include <limits.h>
12742 #if HAVE_STDINT_H
12743 #include <stdint.h>
12744 #endif
12745
12746 #if defined UINT32_MAX && defined UINTMAX_MAX
12747 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
12748 #elif HAVE_LONG_LONG_INT
12749 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
12750 #else
12751 #define CONDITION 0
12752 #endif
12753 int test[CONDITION ? 1 : -1];
12754int
12755main ()
12756{
12757
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762if ac_fn_c_try_compile "$LINENO"; then :
12763 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
12764else
12765 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
12766fi
12767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768fi
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
12770$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
12771 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
12772 UINT32_MAX_LT_UINTMAX_MAX=1;
12773 else
12774 UINT32_MAX_LT_UINTMAX_MAX=0;
12775 fi
12776
12777
12778 if test $APPLE_UNIVERSAL_BUILD = 0; then
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
12781$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
12782if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784else
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786/* end confdefs.h. */
12787/* Work also in C++ mode. */
12788 #define __STDC_LIMIT_MACROS 1
12789
12790 /* Work if build is not clean. */
12791 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12792
12793 #include <limits.h>
12794 #if HAVE_STDINT_H
12795 #include <stdint.h>
12796 #endif
12797
12798 #if defined UINT64_MAX
12799 #define CONDITION (UINT64_MAX == ULONG_MAX)
12800 #elif HAVE_LONG_LONG_INT
12801 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
12802 #else
12803 #define CONDITION 0
12804 #endif
12805 int test[CONDITION ? 1 : -1];
12806int
12807main ()
12808{
12809
12810 ;
12811 return 0;
12812}
12813_ACEOF
12814if ac_fn_c_try_compile "$LINENO"; then :
12815 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
12816else
12817 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
12822$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
12823 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
12824 UINT64_MAX_EQ_ULONG_MAX=1;
12825 else
12826 UINT64_MAX_EQ_ULONG_MAX=0;
12827 fi
12828
12829
12830 else
12831 UINT64_MAX_EQ_ULONG_MAX=-1
12832 fi
12833
12834
12835
12836
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
12839$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
12840if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12842else
12843
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h. */
12846#include <math.h>
12847 #if __GNUC__ >= 4
12848 # undef isnand
12849 # define isnand(x) __builtin_isnan ((double)(x))
12850 #else
12851 # undef isnand
12852 # define isnand(x) isnan ((double)(x))
12853 #endif
12854 double x;
12855int
12856main ()
12857{
12858return isnand (x);
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_link "$LINENO"; then :
12864 gl_cv_func_isnand_no_libm=yes
12865else
12866 gl_cv_func_isnand_no_libm=no
12867fi
12868rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870
12871fi
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12873$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12874
12875 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12876 if test $gl_cv_func_isnand_no_libm = yes; then
12877
12878$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12879
12880 fi
12881
12882 if test $gl_func_isnand_no_libm != yes; then
12883
12884
12885
12886
12887
12888
12889
12890
12891 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12892
12893
12894
12895
12896 fi
12897
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12900$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12901if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903else
12904
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h. */
12907#include <math.h>
12908 #if __GNUC__ >= 4
12909 # undef isnanl
12910 # define isnanl(x) __builtin_isnanl ((long double)(x))
12911 #elif defined isnan
12912 # undef isnanl
12913 # define isnanl(x) isnan ((long double)(x))
12914 #endif
12915 long double x;
12916int
12917main ()
12918{
12919return isnanl (x);
12920 ;
12921 return 0;
12922}
12923_ACEOF
12924if ac_fn_c_try_link "$LINENO"; then :
12925 gl_cv_func_isnanl_no_libm=yes
12926else
12927 gl_cv_func_isnanl_no_libm=no
12928fi
12929rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12934$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12935
12936 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12937 if test $gl_func_isnanl_no_libm = yes; then
12938
12939
12940
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12943$as_echo_n "checking whether isnanl works... " >&6; }
12944if test "${gl_cv_func_isnanl_works+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946else
12947
12948 if test "$cross_compiling" = yes; then :
12949 case "$host_cpu" in
12950 # Guess no on ia64, x86_64, i386.
12951 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12952 *)
12953 case "$host_os" in
12954 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12955 *) gl_cv_func_isnanl_works="guessing yes";;
12956 esac
12957 ;;
12958 esac
12959
12960else
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h. */
12963
12964#include <float.h>
12965#include <limits.h>
12966#include <math.h>
12967#if __GNUC__ >= 4
12968# undef isnanl
12969# define isnanl(x) __builtin_isnanl ((long double)(x))
12970#elif defined isnan
12971# undef isnanl
12972# define isnanl(x) isnan ((long double)(x))
12973#endif
12974#define NWORDS \
12975 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12976typedef union { unsigned int word[NWORDS]; long double value; }
12977 memory_long_double;
12978/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12979 runtime type conversion. */
12980#ifdef __sgi
12981static long double NaNl ()
12982{
12983 double zero = 0.0;
12984 return zero / zero;
12985}
12986#else
12987# define NaNl() (0.0L / 0.0L)
12988#endif
12989int main ()
12990{
12991 int result = 0;
12992
12993 if (!isnanl (NaNl ()))
12994 result |= 1;
12995
12996 {
12997 memory_long_double m;
12998 unsigned int i;
12999
13000 /* The isnanl function should be immune against changes in the sign bit and
13001 in the mantissa bits. The xor operation twiddles a bit that can only be
13002 a sign bit or a mantissa bit (since the exponent never extends to
13003 bit 31). */
13004 m.value = NaNl ();
13005 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13006 for (i = 0; i < NWORDS; i++)
13007 m.word[i] |= 1;
13008 if (!isnanl (m.value))
13009 result |= 1;
13010 }
13011
13012#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
13013/* Representation of an 80-bit 'long double' as an initializer for a sequence
13014 of 'unsigned int' words. */
13015# ifdef WORDS_BIGENDIAN
13016# define LDBL80_WORDS(exponent,manthi,mantlo) \
13017 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13018 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13019 (unsigned int) (mantlo) << 16 \
13020 }
13021# else
13022# define LDBL80_WORDS(exponent,manthi,mantlo) \
13023 { mantlo, manthi, exponent }
13024# endif
13025 { /* Quiet NaN. */
13026 static memory_long_double x =
13027 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13028 if (!isnanl (x.value))
13029 result |= 2;
13030 }
13031 {
13032 /* Signalling NaN. */
13033 static memory_long_double x =
13034 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13035 if (!isnanl (x.value))
13036 result |= 2;
13037 }
13038 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13039 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13040 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13041 Application Architecture.
13042 Table 5-2 "Floating-Point Register Encodings"
13043 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13044 */
13045 { /* Pseudo-NaN. */
13046 static memory_long_double x =
13047 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13048 if (!isnanl (x.value))
13049 result |= 4;
13050 }
13051 { /* Pseudo-Infinity. */
13052 static memory_long_double x =
13053 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13054 if (!isnanl (x.value))
13055 result |= 8;
13056 }
13057 { /* Pseudo-Zero. */
13058 static memory_long_double x =
13059 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13060 if (!isnanl (x.value))
13061 result |= 16;
13062 }
13063 { /* Unnormalized number. */
13064 static memory_long_double x =
13065 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13066 if (!isnanl (x.value))
13067 result |= 32;
13068 }
13069 { /* Pseudo-Denormal. */
13070 static memory_long_double x =
13071 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13072 if (!isnanl (x.value))
13073 result |= 64;
13074 }
13075#endif
13076
13077 return result;
13078}
13079_ACEOF
13080if ac_fn_c_try_run "$LINENO"; then :
13081 gl_cv_func_isnanl_works=yes
13082else
13083 gl_cv_func_isnanl_works=no
13084fi
13085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13086 conftest.$ac_objext conftest.beam conftest.$ac_ext
13087fi
13088
13089
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13092$as_echo "$gl_cv_func_isnanl_works" >&6; }
13093
13094 case "$gl_cv_func_isnanl_works" in
13095 *yes) ;;
13096 *) gl_func_isnanl_no_libm=no ;;
13097 esac
13098 fi
13099 if test $gl_func_isnanl_no_libm = yes; then
13100
13101$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13102
13103 fi
13104
13105 if test $gl_func_isnanl_no_libm != yes; then
13106
13107
13108
13109
13110
13111
13112
13113
13114 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13115
13116
13117
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13120$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13121if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123else
13124
13125 if test "$cross_compiling" = yes; then :
13126
13127 gl_cv_cc_long_double_expbit0="unknown"
13128
13129else
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h. */
13132
13133#include <float.h>
13134#include <stddef.h>
13135#include <stdio.h>
13136#include <string.h>
13137#define NWORDS \
13138 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13139typedef union { long double value; unsigned int word[NWORDS]; }
13140 memory_long_double;
13141static unsigned int ored_words[NWORDS];
13142static unsigned int anded_words[NWORDS];
13143static void add_to_ored_words (long double x)
13144{
13145 memory_long_double m;
13146 size_t i;
13147 /* Clear it first, in case
13148 sizeof (long double) < sizeof (memory_long_double). */
13149 memset (&m, 0, sizeof (memory_long_double));
13150 m.value = x;
13151 for (i = 0; i < NWORDS; i++)
13152 {
13153 ored_words[i] |= m.word[i];
13154 anded_words[i] &= m.word[i];
13155 }
13156}
13157int main ()
13158{
13159 size_t j;
13160 FILE *fp = fopen ("conftest.out", "w");
13161 if (fp == NULL)
13162 return 1;
13163 for (j = 0; j < NWORDS; j++)
13164 anded_words[j] = ~ (unsigned int) 0;
13165 add_to_ored_words (0.25L);
13166 add_to_ored_words (0.5L);
13167 add_to_ored_words (1.0L);
13168 add_to_ored_words (2.0L);
13169 add_to_ored_words (4.0L);
13170 /* Remove bits that are common (e.g. if representation of the first mantissa
13171 bit is explicit). */
13172 for (j = 0; j < NWORDS; j++)
13173 ored_words[j] &= ~anded_words[j];
13174 /* Now find the nonzero word. */
13175 for (j = 0; j < NWORDS; j++)
13176 if (ored_words[j] != 0)
13177 break;
13178 if (j < NWORDS)
13179 {
13180 size_t i;
13181 for (i = j + 1; i < NWORDS; i++)
13182 if (ored_words[i] != 0)
13183 {
13184 fprintf (fp, "unknown");
13185 return (fclose (fp) != 0);
13186 }
13187 for (i = 0; ; i++)
13188 if ((ored_words[j] >> i) & 1)
13189 {
13190 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13191 return (fclose (fp) != 0);
13192 }
13193 }
13194 fprintf (fp, "unknown");
13195 return (fclose (fp) != 0);
13196}
13197
13198_ACEOF
13199if ac_fn_c_try_run "$LINENO"; then :
13200 gl_cv_cc_long_double_expbit0=`cat conftest.out`
13201else
13202 gl_cv_cc_long_double_expbit0="unknown"
13203fi
13204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13205 conftest.$ac_objext conftest.beam conftest.$ac_ext
13206fi
13207
13208 rm -f conftest.out
13209
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13212$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13213 case "$gl_cv_cc_long_double_expbit0" in
13214 word*bit*)
13215 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13216 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
13217
13218cat >>confdefs.h <<_ACEOF
13219#define LDBL_EXPBIT0_WORD $word
13220_ACEOF
13221
13222
13223cat >>confdefs.h <<_ACEOF
13224#define LDBL_EXPBIT0_BIT $bit
13225_ACEOF
13226
13227 ;;
13228 esac
13229
13230
13231
13232 fi
13233
13234
13235
13236
88b48903
WN
13237
13238
13239
13240
2196f55f 13241
88b48903
WN
13242 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13243
13244
13245
13246
f45c62c4
YQ
13247 if test $ac_cv_func_lstat = yes; then
13248
13249 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13250 *no)
13251 REPLACE_LSTAT=1
13252 ;;
13253 esac
13254 else
13255 HAVE_LSTAT=0
13256 fi
13257
13258 if test $REPLACE_LSTAT = 1; then
13259
13260
13261
13262
13263
13264
13265
13266
13267 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13268
13269 :
13270 fi
13271
13272
13273
13274
13275
13276 GNULIB_LSTAT=1
13277
13278
13279
13280
13281
13282$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13283
13284
13285
13286
13287
13288
88b48903
WN
13289
13290
13291
13292
13293
88b48903 13294
c971b7fa 13295
c971b7fa 13296
98399780
YQ
13297
13298
13299
13300
88b48903
WN
13301 if test $gl_cv_have_include_next = yes; then
13302 gl_cv_next_math_h='<'math.h'>'
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13305$as_echo_n "checking absolute name of <math.h>... " >&6; }
13306if test "${gl_cv_next_math_h+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308else
c971b7fa 13309
88b48903 13310 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
13311
13312
88b48903 13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 13314/* end confdefs.h. */
88b48903 13315#include <math.h>
8690e634 13316
8690e634 13317_ACEOF
88b48903
WN
13318 case "$host_os" in
13319 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13320 *) gl_absname_cpp="$ac_cpp" ;;
13321 esac
8690e634 13322
88b48903
WN
13323 case "$host_os" in
13324 mingw*)
13325 gl_dirsep_regex='[/\\]'
13326 ;;
13327 *)
13328 gl_dirsep_regex='\/'
13329 ;;
13330 esac
13331 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 13332
88b48903
WN
13333 gl_header_literal_regex=`echo 'math.h' \
13334 | sed -e "$gl_make_literal_regex_sed"`
13335 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13336 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13337 s|^/[^/]|//&|
13338 p
13339 q
13340 }'
13341 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13342 sed -n "$gl_absolute_header_sed"`'"'
13343 else
13344 gl_cv_next_math_h='<'math.h'>'
13345 fi
8690e634 13346
c971b7fa 13347
88b48903
WN
13348fi
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13350$as_echo "$gl_cv_next_math_h" >&6; }
13351 fi
13352 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 13353
88b48903
WN
13354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13356 gl_next_as_first_directive='<'math.h'>'
13357 else
13358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13359 gl_next_as_first_directive=$gl_cv_next_math_h
13360 fi
13361 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 13362
c971b7fa 13363
c971b7fa
PA
13364
13365
c971b7fa 13366
88b48903
WN
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13368$as_echo_n "checking whether NAN macro works... " >&6; }
13369if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
13370 $as_echo_n "(cached) " >&6
13371else
8690e634
JK
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h. */
88b48903 13374#include <math.h>
c971b7fa
PA
13375int
13376main ()
13377{
88b48903
WN
13378/* Solaris 10 has a broken definition of NAN. Other platforms
13379 fail to provide NAN, or provide it only in C99 mode; this
13380 test only needs to fail when NAN is provided but wrong. */
13381 float f = 1.0f;
13382#ifdef NAN
13383 f = NAN;
13384#endif
13385 return f == 0;
c971b7fa
PA
13386 ;
13387 return 0;
13388}
13389_ACEOF
13390if ac_fn_c_try_compile "$LINENO"; then :
88b48903 13391 gl_cv_header_math_nan_works=yes
8690e634 13392else
88b48903 13393 gl_cv_header_math_nan_works=no
c971b7fa
PA
13394fi
13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13396fi
88b48903
WN
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13398$as_echo "$gl_cv_header_math_nan_works" >&6; }
13399 if test $gl_cv_header_math_nan_works = no; then
13400 REPLACE_NAN=1
c971b7fa 13401 fi
88b48903
WN
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13403$as_echo_n "checking whether HUGE_VAL works... " >&6; }
13404if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
13405 $as_echo_n "(cached) " >&6
13406else
8690e634 13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 13408/* end confdefs.h. */
88b48903 13409#include <math.h>
c971b7fa
PA
13410int
13411main ()
13412{
88b48903
WN
13413/* Solaris 10 has a broken definition of HUGE_VAL. */
13414 double d = HUGE_VAL;
13415 return d == 0;
c971b7fa
PA
13416 ;
13417 return 0;
13418}
13419_ACEOF
13420if ac_fn_c_try_compile "$LINENO"; then :
88b48903 13421 gl_cv_header_math_huge_val_works=yes
8690e634 13422else
88b48903 13423 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
13424fi
13425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13426fi
88b48903
WN
13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13428$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13429 if test $gl_cv_header_math_huge_val_works = no; then
13430 REPLACE_HUGE_VAL=1
8690e634 13431 fi
c971b7fa 13432
c971b7fa 13433
88b48903
WN
13434 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
13435 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13437$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13438if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
13439 $as_echo_n "(cached) " >&6
13440else
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442/* end confdefs.h. */
88b48903 13443#include <math.h>
8690e634
JK
13444int
13445main ()
13446{
88b48903
WN
13447#undef $gl_func
13448 (void) $gl_func;
8690e634
JK
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453if ac_fn_c_try_compile "$LINENO"; then :
88b48903 13454 eval "$as_gl_Symbol=yes"
c971b7fa 13455else
88b48903 13456 eval "$as_gl_Symbol=no"
c971b7fa 13457fi
8690e634
JK
13458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459fi
88b48903
WN
13460eval ac_res=\$$as_gl_Symbol
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13462$as_echo "$ac_res" >&6; }
13463 eval as_val=\$$as_gl_Symbol
13464 if test "x$as_val" = x""yes; then :
13465 cat >>confdefs.h <<_ACEOF
13466#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13467_ACEOF
c971b7fa 13468
88b48903
WN
13469 eval ac_cv_have_decl_$gl_func=yes
13470fi
13471 done
c971b7fa
PA
13472
13473
13474
13475
13476
c971b7fa 13477
c971b7fa 13478
c971b7fa 13479
c971b7fa
PA
13480
13481
c971b7fa 13482
8690e634
JK
13483
13484 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13485
13486
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13489$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13490if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
13491 $as_echo_n "(cached) " >&6
13492else
8690e634
JK
13493
13494 case "$host_os" in
13495 # Guess no on AIX and OSF/1.
13496 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13497 # Guess yes otherwise.
13498 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13499 esac
13500 if test $LOCALE_JA != none; then
13501 if test "$cross_compiling" = yes; then :
13502 :
13503else
c971b7fa
PA
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h. */
c971b7fa 13506
8690e634
JK
13507#include <locale.h>
13508#include <string.h>
13509/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13510 <wchar.h>.
13511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13512 included before <wchar.h>. */
13513#include <stddef.h>
13514#include <stdio.h>
13515#include <time.h>
13516#include <wchar.h>
13517int main ()
c971b7fa 13518{
8690e634
JK
13519 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13520 {
13521 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13522 mbstate_t state;
13523 wchar_t wc;
13524
13525 memset (&state, '\0', sizeof (mbstate_t));
13526 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13527 if (mbsinit (&state))
13528 return 1;
13529 }
c971b7fa
PA
13530 return 0;
13531}
13532_ACEOF
8690e634
JK
13533if ac_fn_c_try_run "$LINENO"; then :
13534 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 13535else
8690e634 13536 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 13537fi
8690e634
JK
13538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13539 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13540fi
c971b7fa 13541
8690e634 13542 fi
c971b7fa 13543
8690e634
JK
13544fi
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13546$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 13547
c971b7fa 13548
c971b7fa 13549
c971b7fa 13550
8690e634
JK
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13552$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13553if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
13554 $as_echo_n "(cached) " >&6
13555else
13556
8690e634
JK
13557 case "$host_os" in
13558 # Guess no on Solaris 8.
13559 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13560 # Guess yes otherwise.
13561 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13562 esac
13563 if test $LOCALE_ZH_CN != none; then
13564 if test "$cross_compiling" = yes; then :
13565 :
13566else
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
13568/* end confdefs.h. */
13569
8690e634
JK
13570#include <locale.h>
13571#include <stdlib.h>
13572#include <string.h>
13573/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13574 <wchar.h>.
13575 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13576 included before <wchar.h>. */
13577#include <stddef.h>
13578#include <stdio.h>
13579#include <time.h>
13580#include <wchar.h>
13581int main ()
c971b7fa 13582{
8690e634
JK
13583 /* This fails on Solaris 8:
13584 mbrtowc returns 2, and sets wc to 0x00F0.
13585 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13586 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13587 {
13588 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13589 mbstate_t state;
13590 wchar_t wc;
13591
13592 memset (&state, '\0', sizeof (mbstate_t));
13593 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13594 && mbtowc (&wc, input + 3, 6) == 4)
13595 return 1;
13596 }
c971b7fa
PA
13597 return 0;
13598}
13599_ACEOF
8690e634
JK
13600if ac_fn_c_try_run "$LINENO"; then :
13601 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 13602else
8690e634 13603 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 13604fi
8690e634
JK
13605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13606 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13607fi
c971b7fa 13608
8690e634 13609 fi
c971b7fa 13610
8690e634
JK
13611fi
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13613$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13614
13615 REPLACE_MBSTATE_T=0
13616 case "$gl_cv_func_mbrtowc_incomplete_state" in
13617 *yes) ;;
13618 *) REPLACE_MBSTATE_T=1 ;;
13619 esac
13620 case "$gl_cv_func_mbrtowc_sanitycheck" in
13621 *yes) ;;
13622 *) REPLACE_MBSTATE_T=1 ;;
13623 esac
c971b7fa 13624 else
8690e634 13625 REPLACE_MBSTATE_T=1
c971b7fa
PA
13626 fi
13627
13628
13629
8690e634
JK
13630 if test $ac_cv_func_mbrtowc = no; then
13631 HAVE_MBRTOWC=0
13632 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
13633/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13634 <wchar.h>.
13635 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13636 included before <wchar.h>. */
13637#include <stddef.h>
13638#include <stdio.h>
13639#include <time.h>
13640#include <wchar.h>
c971b7fa 13641
8690e634
JK
13642"
13643if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
13644 ac_have_decl=1
13645else
13646 ac_have_decl=0
c971b7fa 13647fi
c971b7fa 13648
8690e634
JK
13649cat >>confdefs.h <<_ACEOF
13650#define HAVE_DECL_MBRTOWC $ac_have_decl
13651_ACEOF
c971b7fa 13652
8690e634
JK
13653 if test $ac_cv_have_decl_mbrtowc = yes; then
13654 REPLACE_MBRTOWC=1
13655 fi
13656 else
13657 if test $REPLACE_MBSTATE_T = 1; then
13658 REPLACE_MBRTOWC=1
13659 else
c971b7fa
PA
13660
13661
13662
8690e634
JK
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
13664$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
13665if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
c971b7fa 13667else
c971b7fa 13668
8690e634
JK
13669 case "$host_os" in
13670 # Guess no on Solaris.
13671 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
13672 # Guess yes otherwise.
13673 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
13674 esac
13675 if test $LOCALE_FR_UTF8 != none; then
13676 if test "$cross_compiling" = yes; then :
13677 :
13678else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
13680/* end confdefs.h. */
13681
8690e634
JK
13682#include <locale.h>
13683#include <stdlib.h>
13684#include <string.h>
13685/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13686 <wchar.h>.
13687 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13688 included before <wchar.h>. */
13689#include <stddef.h>
13690#include <stdio.h>
13691#include <time.h>
13692#include <wchar.h>
13693int main ()
13694{
13695 int result = 0;
13696
13697 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13698 {
13699 char input[] = "\303\237er";
13700 mbstate_t state;
13701 wchar_t wc;
13702 size_t ret;
13703
13704 memset (&state, '\0', sizeof (mbstate_t));
13705 wc = (wchar_t) 0xBADFACE;
13706 ret = mbrtowc (&wc, input, 5, &state);
13707 if (ret != 2)
13708 result |= 1;
13709 if (!mbsinit (&state))
13710 result |= 2;
c971b7fa 13711
8690e634
JK
13712 memset (&state, '\0', sizeof (mbstate_t));
13713 ret = mbrtowc (NULL, input, 5, &state);
13714 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
13715 result |= 4;
13716 if (!mbsinit (&state))
13717 result |= 8;
13718 }
13719 return result;
13720}
c971b7fa 13721_ACEOF
8690e634
JK
13722if ac_fn_c_try_run "$LINENO"; then :
13723 gl_cv_func_mbrtowc_null_arg1=yes
13724else
13725 gl_cv_func_mbrtowc_null_arg1=no
13726fi
13727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13729fi
c971b7fa 13730
8690e634 13731 fi
c971b7fa 13732
c971b7fa 13733fi
8690e634
JK
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
13735$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 13736
c971b7fa 13737
c971b7fa 13738
c971b7fa 13739
8690e634
JK
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
13741$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
13742if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744else
c971b7fa 13745
8690e634
JK
13746 case "$host_os" in
13747 # Guess no on OSF/1.
13748 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
13749 # Guess yes otherwise.
13750 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
13751 esac
13752 if test $LOCALE_FR_UTF8 != none; then
13753 if test "$cross_compiling" = yes; then :
c971b7fa 13754 :
8690e634
JK
13755else
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757/* end confdefs.h. */
13758
13759#include <locale.h>
13760#include <string.h>
13761/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13762 <wchar.h>.
13763 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13764 included before <wchar.h>. */
13765#include <stddef.h>
13766#include <stdio.h>
13767#include <time.h>
13768#include <wchar.h>
13769int main ()
13770{
13771 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13772 {
13773 mbstate_t state;
13774 wchar_t wc;
13775 int ret;
13776
13777 memset (&state, '\0', sizeof (mbstate_t));
13778 wc = (wchar_t) 0xBADFACE;
13779 mbrtowc (&wc, NULL, 5, &state);
13780 /* Check that wc was not modified. */
13781 if (wc != (wchar_t) 0xBADFACE)
13782 return 1;
13783 }
13784 return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_run "$LINENO"; then :
13788 gl_cv_func_mbrtowc_null_arg2=yes
13789else
13790 gl_cv_func_mbrtowc_null_arg2=no
13791fi
13792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13793 conftest.$ac_objext conftest.beam conftest.$ac_ext
13794fi
13795
13796 fi
13797
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
13800$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
13801
13802
13803
13804
13805
13806
8690e634
JK
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
13808$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
13809if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13811else
13812
13813 case "$host_os" in
13814 # Guess no on HP-UX, Solaris, native Windows.
13815 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
13816 # Guess yes otherwise.
13817 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
13818 esac
13819 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
13820 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
13821 if test "$cross_compiling" = yes; then :
c971b7fa 13822 :
8690e634
JK
13823else
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825/* end confdefs.h. */
c971b7fa 13826
8690e634
JK
13827#include <locale.h>
13828#include <string.h>
13829/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13830 <wchar.h>.
13831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13832 included before <wchar.h>. */
13833#include <stddef.h>
13834#include <stdio.h>
13835#include <time.h>
13836#include <wchar.h>
13837int main ()
13838{
13839 int result = 0;
13840 int found_some_locale = 0;
13841 /* This fails on Solaris. */
13842 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13843 {
13844 char input[] = "B\303\274\303\237er"; /* "Büßer" */
13845 mbstate_t state;
13846 wchar_t wc;
13847
13848 memset (&state, '\0', sizeof (mbstate_t));
13849 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13850 {
13851 input[1] = '\0';
13852 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
13853 result |= 1;
13854 }
13855 found_some_locale = 1;
13856 }
13857 /* This fails on HP-UX 11.11. */
13858 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13859 {
13860 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13861 mbstate_t state;
13862 wchar_t wc;
13863
13864 memset (&state, '\0', sizeof (mbstate_t));
13865 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13866 {
13867 input[1] = '\0';
13868 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
13869 result |= 2;
13870 }
13871 found_some_locale = 1;
13872 }
13873 /* This fails on native Windows. */
13874 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
13875 {
13876 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
13877 mbstate_t state;
13878 wchar_t wc;
13879
13880 memset (&state, '\0', sizeof (mbstate_t));
13881 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13882 {
13883 input[3] = '\0';
13884 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13885 result |= 4;
13886 }
13887 found_some_locale = 1;
13888 }
13889 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
13890 {
13891 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
13892 mbstate_t state;
13893 wchar_t wc;
13894
13895 memset (&state, '\0', sizeof (mbstate_t));
13896 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13897 {
13898 input[3] = '\0';
13899 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13900 result |= 8;
13901 }
13902 found_some_locale = 1;
13903 }
13904 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
13905 {
13906 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
13907 mbstate_t state;
13908 wchar_t wc;
13909
13910 memset (&state, '\0', sizeof (mbstate_t));
13911 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13912 {
13913 input[3] = '\0';
13914 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13915 result |= 16;
13916 }
13917 found_some_locale = 1;
13918 }
13919 return (found_some_locale ? result : 77);
13920}
13921_ACEOF
13922if ac_fn_c_try_run "$LINENO"; then :
13923 gl_cv_func_mbrtowc_retval=yes
13924else
13925 if test $? != 77; then
13926 gl_cv_func_mbrtowc_retval=no
13927 fi
c971b7fa 13928
8690e634
JK
13929fi
13930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13931 conftest.$ac_objext conftest.beam conftest.$ac_ext
13932fi
c971b7fa 13933
8690e634 13934 fi
c971b7fa 13935
8690e634
JK
13936fi
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13938$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
13939
13940
13941
13942
8690e634
JK
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13944$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13945if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
13946 $as_echo_n "(cached) " >&6
13947else
8690e634
JK
13948
13949 case "$host_os" in
13950 # Guess no on Solaris 8 and 9.
13951 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13952 # Guess yes otherwise.
13953 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13954 esac
13955 if test $LOCALE_ZH_CN != none; then
13956 if test "$cross_compiling" = yes; then :
13957 :
c971b7fa
PA
13958else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h. */
13961
8690e634 13962#include <locale.h>
c971b7fa 13963#include <string.h>
8690e634
JK
13964/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13965 <wchar.h>.
13966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13967 included before <wchar.h>. */
13968#include <stddef.h>
13969#include <stdio.h>
13970#include <time.h>
13971#include <wchar.h>
13972int main ()
c971b7fa 13973{
8690e634
JK
13974 /* This fails on Solaris 8 and 9. */
13975 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 13976 {
8690e634
JK
13977 mbstate_t state;
13978 wchar_t wc;
c971b7fa 13979
8690e634
JK
13980 memset (&state, '\0', sizeof (mbstate_t));
13981 if (mbrtowc (&wc, "", 1, &state) != 0)
13982 return 1;
13983 }
c971b7fa
PA
13984 return 0;
13985}
13986_ACEOF
13987if ac_fn_c_try_run "$LINENO"; then :
8690e634 13988 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 13989else
8690e634 13990 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
13991fi
13992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13993 conftest.$ac_objext conftest.beam conftest.$ac_ext
13994fi
13995
8690e634
JK
13996 fi
13997
c971b7fa 13998fi
8690e634
JK
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14000$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14001
14002 case "$gl_cv_func_mbrtowc_null_arg1" in
14003 *yes) ;;
14004 *)
14005$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14006
14007 REPLACE_MBRTOWC=1
14008 ;;
14009 esac
14010 case "$gl_cv_func_mbrtowc_null_arg2" in
14011 *yes) ;;
14012 *)
14013$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14014
14015 REPLACE_MBRTOWC=1
14016 ;;
14017 esac
14018 case "$gl_cv_func_mbrtowc_retval" in
14019 *yes) ;;
14020 *)
14021$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14022
14023 REPLACE_MBRTOWC=1
14024 ;;
14025 esac
14026 case "$gl_cv_func_mbrtowc_nul_retval" in
14027 *yes) ;;
14028 *)
14029$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14030
14031 REPLACE_MBRTOWC=1
14032 ;;
14033 esac
c971b7fa
PA
14034 fi
14035 fi
14036
a512b375 14037 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 14038
c971b7fa 14039
c971b7fa
PA
14040
14041
14042
14043
14044
14045
8690e634
JK
14046 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14047
14048
14049 :
c971b7fa 14050
a512b375 14051 fi
c971b7fa 14052
8690e634
JK
14053
14054
14055
14056
14057 GNULIB_MBRTOWC=1
14058
14059
14060
14061
14062
14063$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
c971b7fa 14076
c971b7fa 14077
8690e634 14078 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 14079
8690e634
JK
14080
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14083$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14084if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14086else
14087
14088 case "$host_os" in
14089 # Guess no on AIX and OSF/1.
14090 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14091 # Guess yes otherwise.
14092 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14093 esac
14094 if test $LOCALE_JA != none; then
14095 if test "$cross_compiling" = yes; then :
14096 :
c971b7fa
PA
14097else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099/* end confdefs.h. */
14100
8690e634
JK
14101#include <locale.h>
14102#include <string.h>
14103/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14104 <wchar.h>.
14105 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14106 included before <wchar.h>. */
14107#include <stddef.h>
14108#include <stdio.h>
14109#include <time.h>
14110#include <wchar.h>
14111int main ()
c971b7fa 14112{
8690e634 14113 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 14114 {
8690e634
JK
14115 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14116 mbstate_t state;
14117 wchar_t wc;
14118
14119 memset (&state, '\0', sizeof (mbstate_t));
14120 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14121 if (mbsinit (&state))
14122 return 1;
c971b7fa 14123 }
c971b7fa
PA
14124 return 0;
14125}
14126_ACEOF
14127if ac_fn_c_try_run "$LINENO"; then :
8690e634 14128 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 14129else
8690e634 14130 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
14131fi
14132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14134fi
14135
8690e634 14136 fi
c971b7fa
PA
14137
14138fi
8690e634
JK
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14140$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
14141
14142
c971b7fa
PA
14143
14144
8690e634
JK
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14146$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14147if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
14148 $as_echo_n "(cached) " >&6
14149else
8690e634
JK
14150
14151 case "$host_os" in
14152 # Guess no on Solaris 8.
14153 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14154 # Guess yes otherwise.
14155 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14156 esac
14157 if test $LOCALE_ZH_CN != none; then
14158 if test "$cross_compiling" = yes; then :
14159 :
14160else
c971b7fa
PA
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162/* end confdefs.h. */
8690e634
JK
14163
14164#include <locale.h>
14165#include <stdlib.h>
14166#include <string.h>
14167/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14168 <wchar.h>.
14169 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14170 included before <wchar.h>. */
c971b7fa 14171#include <stddef.h>
8690e634
JK
14172#include <stdio.h>
14173#include <time.h>
14174#include <wchar.h>
14175int main ()
c971b7fa 14176{
8690e634
JK
14177 /* This fails on Solaris 8:
14178 mbrtowc returns 2, and sets wc to 0x00F0.
14179 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14180 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14181 {
14182 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14183 mbstate_t state;
14184 wchar_t wc;
14185
14186 memset (&state, '\0', sizeof (mbstate_t));
14187 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14188 && mbtowc (&wc, input + 3, 6) == 4)
14189 return 1;
14190 }
c971b7fa
PA
14191 return 0;
14192}
14193_ACEOF
8690e634
JK
14194if ac_fn_c_try_run "$LINENO"; then :
14195 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 14196else
8690e634 14197 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 14198fi
8690e634
JK
14199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14200 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14201fi
c971b7fa 14202
8690e634
JK
14203 fi
14204
14205fi
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14207$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 14208
8690e634
JK
14209 REPLACE_MBSTATE_T=0
14210 case "$gl_cv_func_mbrtowc_incomplete_state" in
14211 *yes) ;;
14212 *) REPLACE_MBSTATE_T=1 ;;
14213 esac
14214 case "$gl_cv_func_mbrtowc_sanitycheck" in
14215 *yes) ;;
14216 *) REPLACE_MBSTATE_T=1 ;;
14217 esac
14218 else
14219 REPLACE_MBSTATE_T=1
c971b7fa
PA
14220 fi
14221
c971b7fa 14222
8690e634 14223
8690e634
JK
14224 if test $ac_cv_func_mbsinit = no; then
14225 HAVE_MBSINIT=0
14226 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14227/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14228 <wchar.h>.
14229 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14230 included before <wchar.h>. */
14231#include <stddef.h>
14232#include <stdio.h>
14233#include <time.h>
14234#include <wchar.h>
14235
14236"
14237if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14238 ac_have_decl=1
14239else
14240 ac_have_decl=0
c971b7fa 14241fi
c971b7fa 14242
8690e634
JK
14243cat >>confdefs.h <<_ACEOF
14244#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 14245_ACEOF
c971b7fa 14246
8690e634
JK
14247 if test $ac_cv_have_decl_mbsinit = yes; then
14248 REPLACE_MBSINIT=1
14249 fi
14250 else
14251 if test $REPLACE_MBSTATE_T = 1; then
14252 REPLACE_MBSINIT=1
14253 else
14254 case "$host_os" in
14255 mingw*) REPLACE_MBSINIT=1 ;;
14256 esac
14257 fi
14258 fi
c971b7fa 14259
a512b375 14260 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
14261
14262
14263
14264
14265
14266
14267
14268
8690e634 14269 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
14270
14271
8690e634 14272 :
c971b7fa 14273
a512b375 14274 fi
c971b7fa 14275
c971b7fa 14276
c971b7fa 14277
c971b7fa
PA
14278
14279
8690e634 14280 GNULIB_MBSINIT=1
c971b7fa 14281
c971b7fa
PA
14282
14283
14284
14285
8690e634 14286$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
14287
14288
c971b7fa 14289
c971b7fa 14290
c971b7fa
PA
14291
14292
14293
c971b7fa 14294
c971b7fa
PA
14295
14296
14297
14298
8690e634
JK
14299
14300 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
14301
14302
14303
8690e634
JK
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14305$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14306if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14308else
c971b7fa 14309
8690e634
JK
14310 case "$host_os" in
14311 # Guess no on AIX and OSF/1.
14312 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14313 # Guess yes otherwise.
14314 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 14315 esac
8690e634
JK
14316 if test $LOCALE_JA != none; then
14317 if test "$cross_compiling" = yes; then :
14318 :
14319else
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 14321/* end confdefs.h. */
c971b7fa 14322
8690e634
JK
14323#include <locale.h>
14324#include <string.h>
14325/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14326 <wchar.h>.
14327 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14328 included before <wchar.h>. */
14329#include <stddef.h>
14330#include <stdio.h>
14331#include <time.h>
14332#include <wchar.h>
14333int main ()
14334{
14335 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14336 {
14337 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14338 mbstate_t state;
14339 wchar_t wc;
14340
14341 memset (&state, '\0', sizeof (mbstate_t));
14342 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14343 if (mbsinit (&state))
14344 return 1;
14345 }
c971b7fa
PA
14346 return 0;
14347}
14348_ACEOF
8690e634
JK
14349if ac_fn_c_try_run "$LINENO"; then :
14350 gl_cv_func_mbrtowc_incomplete_state=yes
14351else
14352 gl_cv_func_mbrtowc_incomplete_state=no
14353fi
14354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14356fi
c971b7fa 14357
8690e634 14358 fi
c971b7fa 14359
8690e634
JK
14360fi
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14362$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 14363
8690e634
JK
14364
14365
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14368$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14369if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
14370 $as_echo_n "(cached) " >&6
14371else
8690e634
JK
14372
14373 case "$host_os" in
14374 # Guess no on Solaris 8.
14375 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14376 # Guess yes otherwise.
14377 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14378 esac
14379 if test $LOCALE_ZH_CN != none; then
14380 if test "$cross_compiling" = yes; then :
14381 :
14382else
c971b7fa
PA
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384/* end confdefs.h. */
c971b7fa 14385
8690e634
JK
14386#include <locale.h>
14387#include <stdlib.h>
14388#include <string.h>
14389/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14390 <wchar.h>.
14391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14392 included before <wchar.h>. */
14393#include <stddef.h>
14394#include <stdio.h>
14395#include <time.h>
14396#include <wchar.h>
14397int main ()
c971b7fa 14398{
8690e634
JK
14399 /* This fails on Solaris 8:
14400 mbrtowc returns 2, and sets wc to 0x00F0.
14401 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14402 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14403 {
14404 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14405 mbstate_t state;
14406 wchar_t wc;
14407
14408 memset (&state, '\0', sizeof (mbstate_t));
14409 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14410 && mbtowc (&wc, input + 3, 6) == 4)
14411 return 1;
14412 }
c971b7fa
PA
14413 return 0;
14414}
14415_ACEOF
8690e634
JK
14416if ac_fn_c_try_run "$LINENO"; then :
14417 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 14418else
8690e634 14419 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 14420fi
8690e634
JK
14421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14422 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14423fi
8690e634
JK
14424
14425 fi
14426
14427fi
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14429$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14430
14431 REPLACE_MBSTATE_T=0
14432 case "$gl_cv_func_mbrtowc_incomplete_state" in
14433 *yes) ;;
14434 *) REPLACE_MBSTATE_T=1 ;;
14435 esac
14436 case "$gl_cv_func_mbrtowc_sanitycheck" in
14437 *yes) ;;
14438 *) REPLACE_MBSTATE_T=1 ;;
14439 esac
c971b7fa 14440 else
8690e634 14441 REPLACE_MBSTATE_T=1
c971b7fa
PA
14442 fi
14443
14444
c971b7fa 14445
8690e634
JK
14446 if test $ac_cv_func_mbsrtowcs = no; then
14447 HAVE_MBSRTOWCS=0
14448 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14449/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14450 <wchar.h>.
14451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14452 included before <wchar.h>. */
14453#include <stddef.h>
14454#include <stdio.h>
14455#include <time.h>
14456#include <wchar.h>
14457
14458"
14459if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14460 ac_have_decl=1
c971b7fa 14461else
8690e634 14462 ac_have_decl=0
c971b7fa 14463fi
c971b7fa 14464
8690e634
JK
14465cat >>confdefs.h <<_ACEOF
14466#define HAVE_DECL_MBSRTOWCS $ac_have_decl
14467_ACEOF
c971b7fa 14468
8690e634
JK
14469 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14470 REPLACE_MBSRTOWCS=1
14471 fi
c971b7fa 14472 else
8690e634
JK
14473 if test $REPLACE_MBSTATE_T = 1; then
14474 REPLACE_MBSRTOWCS=1
14475 else
c971b7fa 14476
8690e634
JK
14477
14478
14479
14480
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14483$as_echo_n "checking whether mbsrtowcs works... " >&6; }
14484if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
14485 $as_echo_n "(cached) " >&6
14486else
8690e634
JK
14487
14488 case "$host_os" in
14489 # Guess no on HP-UX, Solaris, mingw.
14490 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14491 # Guess yes otherwise.
14492 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14493 esac
14494 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14495 if test "$cross_compiling" = yes; then :
14496 :
14497else
c971b7fa
PA
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499/* end confdefs.h. */
c971b7fa 14500
8690e634
JK
14501#include <locale.h>
14502#include <string.h>
14503/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14504 <wchar.h>.
14505 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14506 included before <wchar.h>. */
14507#include <stddef.h>
14508#include <stdio.h>
14509#include <time.h>
14510#include <wchar.h>
14511int main ()
c971b7fa 14512{
8690e634
JK
14513 int result = 0;
14514 /* Test whether the function supports a NULL destination argument.
14515 This fails on native Windows. */
14516 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14517 {
14518 const char input[] = "\337er";
14519 const char *src = input;
14520 mbstate_t state;
c971b7fa 14521
8690e634
JK
14522 memset (&state, '\0', sizeof (mbstate_t));
14523 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14524 || src != input)
14525 result |= 1;
14526 }
14527 /* Test whether the function works when started with a conversion state
14528 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14529 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14530 {
14531 const char input[] = "B\303\274\303\237er";
14532 mbstate_t state;
14533
14534 memset (&state, '\0', sizeof (mbstate_t));
14535 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14536 if (!mbsinit (&state))
14537 {
14538 const char *src = input + 2;
14539 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14540 result |= 2;
14541 }
14542 }
14543 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14544 {
14545 const char input[] = "<\306\374\313\334\270\354>";
14546 mbstate_t state;
14547
14548 memset (&state, '\0', sizeof (mbstate_t));
14549 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14550 if (!mbsinit (&state))
14551 {
14552 const char *src = input + 4;
14553 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14554 result |= 4;
14555 }
14556 }
14557 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14558 {
14559 const char input[] = "B\250\271\201\060\211\070er";
14560 mbstate_t state;
14561
14562 memset (&state, '\0', sizeof (mbstate_t));
14563 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14564 if (!mbsinit (&state))
14565 {
14566 const char *src = input + 2;
14567 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14568 result |= 8;
14569 }
14570 }
14571 return result;
c971b7fa
PA
14572}
14573_ACEOF
8690e634
JK
14574if ac_fn_c_try_run "$LINENO"; then :
14575 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 14576else
8690e634 14577 gl_cv_func_mbsrtowcs_works=no
c971b7fa 14578fi
8690e634
JK
14579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14580 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14581fi
8690e634
JK
14582
14583 fi
14584
14585fi
14586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14587$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14588
14589 case "$gl_cv_func_mbsrtowcs_works" in
14590 *yes) ;;
14591 *) REPLACE_MBSRTOWCS=1 ;;
14592 esac
14593 fi
c971b7fa
PA
14594 fi
14595
a512b375 14596 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 14597
c971b7fa 14598
c971b7fa 14599
c971b7fa 14600
c971b7fa 14601
c971b7fa 14602
c971b7fa
PA
14603
14604
8690e634
JK
14605 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14616
14617
14618 :
14619
a512b375 14620 fi
8690e634
JK
14621
14622
14623
14624
14625
14626 GNULIB_MBSRTOWCS=1
14627
14628
14629
14630
14631
14632$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
14633
14634
14635
14636
a512b375 14637 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
14638
14639
14640
14641
14642
14643
14644
14645
14646 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
14647
14648
14649 for ac_header in bp-sym.h
14650do :
14651 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
14652if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
14653 cat >>confdefs.h <<_ACEOF
14654#define HAVE_BP_SYM_H 1
14655_ACEOF
14656
14657fi
14658
14659done
14660
14661
a512b375 14662 fi
c971b7fa
PA
14663
14664
14665
14666
14667
14668 GNULIB_MEMCHR=1
14669
14670
14671
14672
14673
14674$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
14675
14676
14677
14678
14679
14680 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
14682$as_echo_n "checking whether memmem works in linear time... " >&6; }
14683if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14685else
14686 if test "$cross_compiling" = yes; then :
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688/* end confdefs.h. */
14689
14690#include <features.h>
14691#ifdef __GNU_LIBRARY__
14692 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
14693 && !defined __UCLIBC__
14694 Lucky user
14695 #endif
14696#endif
14697#ifdef __CYGWIN__
14698 #include <cygwin/version.h>
14699 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
14700 Lucky user
14701 #endif
14702#endif
14703
14704_ACEOF
14705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14706 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
14707 gl_cv_func_memmem_works_fast="guessing yes"
14708else
14709 gl_cv_func_memmem_works_fast="guessing no"
14710fi
14711rm -f conftest*
14712
14713
14714else
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716/* end confdefs.h. */
14717
14718#include <signal.h> /* for signal */
14719#include <string.h> /* for memmem */
14720#include <stdlib.h> /* for malloc */
14721#include <unistd.h> /* for alarm */
14722static void quit (int sig) { exit (sig + 128); }
14723
14724int
14725main ()
14726{
14727
14728 int result = 0;
14729 size_t m = 1000000;
14730 char *haystack = (char *) malloc (2 * m + 1);
14731 char *needle = (char *) malloc (m + 1);
14732 /* Failure to compile this test due to missing alarm is okay,
14733 since all such platforms (mingw) also lack memmem. */
14734 signal (SIGALRM, quit);
14735 alarm (5);
14736 /* Check for quadratic performance. */
14737 if (haystack && needle)
14738 {
14739 memset (haystack, 'A', 2 * m);
14740 haystack[2 * m] = 'B';
14741 memset (needle, 'A', m);
14742 needle[m] = 'B';
14743 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
14744 result |= 1;
14745 }
14746 return result;
14747
14748 ;
14749 return 0;
14750}
14751_ACEOF
14752if ac_fn_c_try_run "$LINENO"; then :
14753 gl_cv_func_memmem_works_fast=yes
14754else
14755 gl_cv_func_memmem_works_fast=no
14756fi
14757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14758 conftest.$ac_objext conftest.beam conftest.$ac_ext
14759fi
14760
14761
14762fi
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
14764$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
14765 case "$gl_cv_func_memmem_works_fast" in
14766 *yes) ;;
14767 *)
14768 REPLACE_MEMMEM=1
14769 ;;
14770 esac
14771 fi
14772
14773 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14774
14775
14776
14777
14778
14779
14780
14781
14782 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14783
14784 fi
14785
14786
14787
14788
14789 for ac_func in memmem
14790do :
14791 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
14792if test "x$ac_cv_func_memmem" = x""yes; then :
14793 cat >>confdefs.h <<_ACEOF
14794#define HAVE_MEMMEM 1
14795_ACEOF
14796
14797fi
14798done
14799
14800 if test $ac_cv_func_memmem = yes; then
14801 HAVE_MEMMEM=1
14802 else
14803 HAVE_MEMMEM=0
14804 fi
14805
14806 if test $ac_cv_have_decl_memmem = no; then
14807 HAVE_DECL_MEMMEM=0
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14810$as_echo_n "checking whether memmem works... " >&6; }
14811if test "${gl_cv_func_memmem_works_always+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14813else
14814 if test "$cross_compiling" = yes; then :
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h. */
14817
14818#ifdef __GNU_LIBRARY__
14819 #include <features.h>
14820 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14821 || __GLIBC_MINOR__ > 12)) \
14822 || (__GLIBC__ > 2)) \
14823 || defined __UCLIBC__
14824 Lucky user
14825 #endif
14826#elif defined __CYGWIN__
14827 #include <cygwin/version.h>
14828 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14829 Lucky user
14830 #endif
14831#else
14832 Lucky user
14833#endif
14834
14835_ACEOF
14836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "Lucky user" >/dev/null 2>&1; then :
14838 gl_cv_func_memmem_works_always="guessing yes"
14839else
14840 gl_cv_func_memmem_works_always="guessing no"
14841fi
14842rm -f conftest*
14843
14844
14845else
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847/* end confdefs.h. */
14848
14849#include <string.h> /* for memmem */
14850#define P "_EF_BF_BD"
14851#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14852#define NEEDLE P P P P P
14853
14854int
14855main ()
14856{
14857
14858 int result = 0;
14859 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14860 result |= 1;
14861 /* Check for empty needle behavior. */
14862 {
14863 const char *haystack = "AAA";
14864 if (memmem (haystack, 3, NULL, 0) != haystack)
14865 result |= 2;
14866 }
14867 return result;
14868
14869 ;
14870 return 0;
14871}
14872_ACEOF
14873if ac_fn_c_try_run "$LINENO"; then :
14874 gl_cv_func_memmem_works_always=yes
14875else
14876 gl_cv_func_memmem_works_always=no
14877fi
14878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14879 conftest.$ac_objext conftest.beam conftest.$ac_ext
14880fi
14881
14882
14883fi
14884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14885$as_echo "$gl_cv_func_memmem_works_always" >&6; }
14886 case "$gl_cv_func_memmem_works_always" in
14887 *yes) ;;
14888 *)
14889 REPLACE_MEMMEM=1
14890 ;;
14891 esac
14892 fi
14893 :
14894
14895 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14896
14897
14898
14899
14900
14901
14902
14903
14904 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14905
14906 fi
14907
14908
14909
14910
14911
14912 GNULIB_MEMMEM=1
14913
14914
14915
14916
14917
14918$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14919
14920
14921
14922
14923
14924
14925
14926
2196f55f
YQ
14927
14928
14929 if test $ac_cv_func_readlink = no; then
14930 HAVE_READLINK=0
14931 else
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14933$as_echo_n "checking whether readlink signature is correct... " >&6; }
14934if test "${gl_cv_decl_readlink_works+set}" = set; then :
14935 $as_echo_n "(cached) " >&6
14936else
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h. */
14939#include <unistd.h>
14940 /* Cause compilation failure if original declaration has wrong type. */
14941 ssize_t readlink (const char *, char *, size_t);
14942int
14943main ()
14944{
14945
14946 ;
14947 return 0;
14948}
14949_ACEOF
14950if ac_fn_c_try_compile "$LINENO"; then :
14951 gl_cv_decl_readlink_works=yes
14952else
14953 gl_cv_decl_readlink_works=no
14954fi
14955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956fi
14957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14958$as_echo "$gl_cv_decl_readlink_works" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14960$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14961if test "${gl_cv_func_readlink_works+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14963else
14964 # We have readlink, so assume ln -s works.
14965 ln -s conftest.no-such conftest.link
14966 ln -s conftest.link conftest.lnk2
14967 if test "$cross_compiling" = yes; then :
14968 case "$host_os" in
14969 # Guess yes on glibc systems.
14970 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14971 # If we don't know, assume the worst.
14972 *) gl_cv_func_readlink_works="guessing no" ;;
14973 esac
14974
14975else
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977/* end confdefs.h. */
14978#include <unistd.h>
14979
14980int
14981main ()
14982{
14983char buf[20];
14984 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14985 ;
14986 return 0;
14987}
14988_ACEOF
14989if ac_fn_c_try_run "$LINENO"; then :
14990 gl_cv_func_readlink_works=yes
14991else
14992 gl_cv_func_readlink_works=no
14993fi
14994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14995 conftest.$ac_objext conftest.beam conftest.$ac_ext
14996fi
14997
14998 rm -f conftest.link conftest.lnk2
14999fi
15000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15001$as_echo "$gl_cv_func_readlink_works" >&6; }
15002 case "$gl_cv_func_readlink_works" in
15003 *yes)
15004 if test "$gl_cv_decl_readlink_works" != yes; then
15005 REPLACE_READLINK=1
15006 fi
15007 ;;
15008 *)
15009
15010$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15011
15012 REPLACE_READLINK=1
15013 ;;
15014 esac
15015 fi
15016
15017 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15018
15019
15020
15021
15022
15023
15024
15025
15026 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15027
15028
15029 :
15030
15031 fi
15032
15033
15034
15035
15036
15037 GNULIB_READLINK=1
15038
15039
15040
15041
15042
15043$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15044
15045
15046
15047
63ce7108
TT
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15049$as_echo_n "checking for ssize_t... " >&6; }
15050if test "${gt_cv_ssize_t+set}" = set; then :
15051 $as_echo_n "(cached) " >&6
15052else
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054/* end confdefs.h. */
15055#include <sys/types.h>
15056int
15057main ()
15058{
15059int x = sizeof (ssize_t *) + sizeof (ssize_t);
15060 return !x;
15061 ;
15062 return 0;
15063}
15064_ACEOF
15065if ac_fn_c_try_compile "$LINENO"; then :
15066 gt_cv_ssize_t=yes
15067else
15068 gt_cv_ssize_t=no
15069fi
15070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071fi
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15073$as_echo "$gt_cv_ssize_t" >&6; }
15074 if test $gt_cv_ssize_t = no; then
15075
15076$as_echo "#define ssize_t int" >>confdefs.h
15077
15078 fi
15079
15080
15081
15082
2196f55f
YQ
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15084$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15085if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15086 $as_echo_n "(cached) " >&6
15087else
15088 if test "$cross_compiling" = yes; then :
15089 case $host_os in
15090 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15091 *) gl_cv_func_stat_dir_slash="guessing yes";;
15092 esac
15093else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095/* end confdefs.h. */
15096#include <sys/stat.h>
15097
15098int
15099main ()
15100{
15101struct stat st; return stat (".", &st) != stat ("./", &st);
15102 ;
15103 return 0;
15104}
15105_ACEOF
15106if ac_fn_c_try_run "$LINENO"; then :
15107 gl_cv_func_stat_dir_slash=yes
15108else
15109 gl_cv_func_stat_dir_slash=no
15110fi
15111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15113fi
15114
15115fi
15116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15117$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15119$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15120if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15121 $as_echo_n "(cached) " >&6
15122else
15123 touch conftest.tmp
15124 # Assume that if we have lstat, we can also check symlinks.
15125 if test $ac_cv_func_lstat = yes; then
15126 ln -s conftest.tmp conftest.lnk
15127 fi
15128 if test "$cross_compiling" = yes; then :
15129 case "$host_os" in
15130 # Guess yes on glibc systems.
15131 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15132 # If we don't know, assume the worst.
15133 *) gl_cv_func_stat_file_slash="guessing no" ;;
15134 esac
15135
15136else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h. */
15139#include <sys/stat.h>
15140
15141int
15142main ()
15143{
15144int result = 0;
15145 struct stat st;
15146 if (!stat ("conftest.tmp/", &st))
15147 result |= 1;
15148#if HAVE_LSTAT
15149 if (!stat ("conftest.lnk/", &st))
15150 result |= 2;
15151#endif
15152 return result;
15153
15154 ;
15155 return 0;
15156}
15157_ACEOF
15158if ac_fn_c_try_run "$LINENO"; then :
15159 gl_cv_func_stat_file_slash=yes
15160else
15161 gl_cv_func_stat_file_slash=no
15162fi
15163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15164 conftest.$ac_objext conftest.beam conftest.$ac_ext
15165fi
15166
15167 rm -f conftest.tmp conftest.lnk
15168fi
15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15170$as_echo "$gl_cv_func_stat_file_slash" >&6; }
15171 case $gl_cv_func_stat_dir_slash in
15172 *no) REPLACE_STAT=1
15173
15174$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15175;;
15176 esac
15177 case $gl_cv_func_stat_file_slash in
15178 *no) REPLACE_STAT=1
15179
15180$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15181;;
15182 esac
15183
15184 if test $REPLACE_STAT = 1; then
15185
15186
15187
15188
15189
15190
15191
15192
15193 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15194
15195 :
15196 fi
15197
15198
15199
15200
15201
15202 GNULIB_STAT=1
15203
15204
15205
15206
15207
15208$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15209
15210
15211
15212
15213
15214
63ce7108
TT
15215 # Define two additional variables used in the Makefile substitution.
15216
15217 if test "$ac_cv_header_stdbool_h" = yes; then
15218 STDBOOL_H=''
15219 else
15220 STDBOOL_H='stdbool.h'
15221 fi
15222
15223 if test -n "$STDBOOL_H"; then
15224 GL_GENERATE_STDBOOL_H_TRUE=
15225 GL_GENERATE_STDBOOL_H_FALSE='#'
15226else
15227 GL_GENERATE_STDBOOL_H_TRUE='#'
15228 GL_GENERATE_STDBOOL_H_FALSE=
15229fi
15230
15231
15232 if test "$ac_cv_type__Bool" = yes; then
15233 HAVE__BOOL=1
15234 else
15235 HAVE__BOOL=0
15236 fi
15237
15238
15239
15240
15241
15242 STDDEF_H=
15243 if test $gt_cv_c_wchar_t = no; then
15244 HAVE_WCHAR_T=0
15245 STDDEF_H=stddef.h
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15248$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15249if test "${gl_cv_decl_null_works+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15251else
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253/* end confdefs.h. */
15254#include <stddef.h>
15255 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15256
15257int
15258main ()
15259{
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265if ac_fn_c_try_compile "$LINENO"; then :
15266 gl_cv_decl_null_works=yes
15267else
15268 gl_cv_decl_null_works=no
15269fi
15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271fi
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15273$as_echo "$gl_cv_decl_null_works" >&6; }
15274 if test $gl_cv_decl_null_works = no; then
15275 REPLACE_NULL=1
15276 STDDEF_H=stddef.h
15277 fi
15278
15279 if test -n "$STDDEF_H"; then
15280 GL_GENERATE_STDDEF_H_TRUE=
15281 GL_GENERATE_STDDEF_H_FALSE='#'
15282else
15283 GL_GENERATE_STDDEF_H_TRUE='#'
15284 GL_GENERATE_STDDEF_H_FALSE=
15285fi
15286
15287 if test -n "$STDDEF_H"; then
15288
15289
15290
15291
15292
15293
15294
15295
15296 if test $gl_cv_have_include_next = yes; then
15297 gl_cv_next_stddef_h='<'stddef.h'>'
15298 else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15300$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15301if test "${gl_cv_next_stddef_h+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
15303else
15304
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h. */
15307#include <stddef.h>
15308
15309_ACEOF
15310 case "$host_os" in
15311 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15312 *) gl_absname_cpp="$ac_cpp" ;;
15313 esac
15314
15315 case "$host_os" in
15316 mingw*)
15317 gl_dirsep_regex='[/\\]'
15318 ;;
15319 *)
15320 gl_dirsep_regex='\/'
15321 ;;
15322 esac
15323 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15324
15325 gl_header_literal_regex=`echo 'stddef.h' \
15326 | sed -e "$gl_make_literal_regex_sed"`
15327 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15328 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15329 s|^/[^/]|//&|
15330 p
15331 q
15332 }'
15333 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15334 sed -n "$gl_absolute_header_sed"`'"'
15335
15336
15337fi
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15339$as_echo "$gl_cv_next_stddef_h" >&6; }
15340 fi
15341 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15342
15343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15345 gl_next_as_first_directive='<'stddef.h'>'
15346 else
15347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15348 gl_next_as_first_directive=$gl_cv_next_stddef_h
15349 fi
15350 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15351
15352
15353
15354
15355 fi
15356
15357
15358
15359
15360
15361
15362
98399780
YQ
15363
15364
15365
15366
15367
15368 if test $gl_cv_have_include_next = yes; then
15369 gl_cv_next_stdlib_h='<'stdlib.h'>'
15370 else
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15372$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15373if test "${gl_cv_next_stdlib_h+set}" = set; then :
15374 $as_echo_n "(cached) " >&6
15375else
15376
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378/* end confdefs.h. */
15379#include <stdlib.h>
15380
15381_ACEOF
15382 case "$host_os" in
15383 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15384 *) gl_absname_cpp="$ac_cpp" ;;
15385 esac
15386
15387 case "$host_os" in
15388 mingw*)
15389 gl_dirsep_regex='[/\\]'
15390 ;;
15391 *)
15392 gl_dirsep_regex='\/'
15393 ;;
15394 esac
15395 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15396
15397 gl_header_literal_regex=`echo 'stdlib.h' \
15398 | sed -e "$gl_make_literal_regex_sed"`
15399 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15400 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15401 s|^/[^/]|//&|
15402 p
15403 q
15404 }'
15405 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15406 sed -n "$gl_absolute_header_sed"`'"'
15407
15408
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15411$as_echo "$gl_cv_next_stdlib_h" >&6; }
15412 fi
15413 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15414
15415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15417 gl_next_as_first_directive='<'stdlib.h'>'
15418 else
15419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15420 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15421 fi
15422 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15423
15424
15425
15426
15427
15428
15429 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 setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
15430 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15432$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15433if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15434 $as_echo_n "(cached) " >&6
15435else
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437/* end confdefs.h. */
15438#include <stdlib.h>
15439#if HAVE_SYS_LOADAVG_H
15440# include <sys/loadavg.h>
15441#endif
15442#if HAVE_RANDOM_H
15443# include <random.h>
15444#endif
15445
15446int
15447main ()
15448{
15449#undef $gl_func
15450 (void) $gl_func;
15451 ;
15452 return 0;
15453}
15454_ACEOF
15455if ac_fn_c_try_compile "$LINENO"; then :
15456 eval "$as_gl_Symbol=yes"
15457else
15458 eval "$as_gl_Symbol=no"
15459fi
15460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461fi
15462eval ac_res=\$$as_gl_Symbol
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15464$as_echo "$ac_res" >&6; }
15465 eval as_val=\$$as_gl_Symbol
15466 if test "x$as_val" = x""yes; then :
15467 cat >>confdefs.h <<_ACEOF
15468#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15469_ACEOF
15470
15471 eval ac_cv_have_decl_$gl_func=yes
15472fi
15473 done
15474
15475
15476
15477
15478
15479
15480
63ce7108
TT
15481 if test $REPLACE_STRSTR = 0; then
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
15483$as_echo_n "checking whether strstr works in linear time... " >&6; }
15484if test "${gl_cv_func_strstr_linear+set}" = set; then :
15485 $as_echo_n "(cached) " >&6
15486else
15487 if test "$cross_compiling" = yes; then :
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489/* end confdefs.h. */
15490
15491#include <features.h>
15492#ifdef __GNU_LIBRARY__
15493 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15494 && !(defined __i386__ || defined __x86_64__) \
15495 && !defined __UCLIBC__
15496 Lucky user
15497 #endif
15498#endif
15499#ifdef __CYGWIN__
15500 #include <cygwin/version.h>
15501 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15502 Lucky user
15503 #endif
15504#endif
15505
15506_ACEOF
15507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15508 $EGREP "Lucky user" >/dev/null 2>&1; then :
15509 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 15510else
63ce7108 15511 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
15512fi
15513rm -f conftest*
15514
15515
15516else
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h. */
15519
15520#include <signal.h> /* for signal */
63ce7108 15521#include <string.h> /* for strstr */
c971b7fa
PA
15522#include <stdlib.h> /* for malloc */
15523#include <unistd.h> /* for alarm */
15524static void quit (int sig) { exit (sig + 128); }
15525
15526int
15527main ()
15528{
15529
15530 int result = 0;
15531 size_t m = 1000000;
63ce7108
TT
15532 char *haystack = (char *) malloc (2 * m + 2);
15533 char *needle = (char *) malloc (m + 2);
c971b7fa 15534 /* Failure to compile this test due to missing alarm is okay,
63ce7108 15535 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
15536 signal (SIGALRM, quit);
15537 alarm (5);
15538 /* Check for quadratic performance. */
15539 if (haystack && needle)
15540 {
15541 memset (haystack, 'A', 2 * m);
15542 haystack[2 * m] = 'B';
63ce7108 15543 haystack[2 * m + 1] = 0;
c971b7fa
PA
15544 memset (needle, 'A', m);
15545 needle[m] = 'B';
63ce7108
TT
15546 needle[m + 1] = 0;
15547 if (!strstr (haystack, needle))
c971b7fa
PA
15548 result |= 1;
15549 }
15550 return result;
15551
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556if ac_fn_c_try_run "$LINENO"; then :
63ce7108 15557 gl_cv_func_strstr_linear=yes
c971b7fa 15558else
63ce7108 15559 gl_cv_func_strstr_linear=no
c971b7fa
PA
15560fi
15561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15562 conftest.$ac_objext conftest.beam conftest.$ac_ext
15563fi
15564
15565
15566fi
63ce7108
TT
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
15568$as_echo "$gl_cv_func_strstr_linear" >&6; }
15569 case "$gl_cv_func_strstr_linear" in
40a73391
JK
15570 *yes) ;;
15571 *)
63ce7108 15572 REPLACE_STRSTR=1
40a73391
JK
15573 ;;
15574 esac
c971b7fa
PA
15575 fi
15576
63ce7108 15577 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
15578
15579
15580
15581
15582
15583
15584
15585
63ce7108 15586 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 15587
a512b375 15588 fi
c971b7fa
PA
15589
15590
15591
63ce7108
TT
15592 if test "$gl_cv_func_memchr_works" != yes; then
15593 REPLACE_STRSTR=1
c971b7fa 15594 else
63ce7108
TT
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15596$as_echo_n "checking whether strstr works... " >&6; }
15597if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
15598 $as_echo_n "(cached) " >&6
15599else
15600 if test "$cross_compiling" = yes; then :
63ce7108 15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
15602/* end confdefs.h. */
15603
15604#ifdef __GNU_LIBRARY__
15605 #include <features.h>
63ce7108 15606 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
15607 || defined __UCLIBC__
15608 Lucky user
15609 #endif
15610#elif defined __CYGWIN__
15611 #include <cygwin/version.h>
15612 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15613 Lucky user
15614 #endif
15615#else
15616 Lucky user
15617#endif
15618
15619_ACEOF
15620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15621 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 15622 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 15623else
63ce7108 15624 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
15625fi
15626rm -f conftest*
15627
15628
15629else
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631/* end confdefs.h. */
15632
63ce7108 15633#include <string.h> /* for strstr */
c971b7fa
PA
15634#define P "_EF_BF_BD"
15635#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15636#define NEEDLE P P P P P
15637
15638int
15639main ()
15640{
63ce7108 15641return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
15642
15643 ;
15644 return 0;
15645}
15646_ACEOF
15647if ac_fn_c_try_run "$LINENO"; then :
63ce7108 15648 gl_cv_func_strstr_works_always=yes
c971b7fa 15649else
63ce7108 15650 gl_cv_func_strstr_works_always=no
c971b7fa
PA
15651fi
15652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15653 conftest.$ac_objext conftest.beam conftest.$ac_ext
15654fi
15655
15656
15657fi
63ce7108
TT
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15659$as_echo "$gl_cv_func_strstr_works_always" >&6; }
15660 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
15661 *yes) ;;
15662 *)
63ce7108 15663 REPLACE_STRSTR=1
40a73391
JK
15664 ;;
15665 esac
c971b7fa 15666 fi
8839a007 15667
63ce7108 15668 if test $REPLACE_STRSTR = 1; then
8839a007 15669
8690e634
JK
15670
15671
8690e634
JK
15672
15673
15674
15675
15676
63ce7108 15677 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 15678
8690e634
JK
15679 fi
15680
8690e634
JK
15681
15682
8690e634 15683
8690e634 15684
63ce7108 15685 GNULIB_STRSTR=1
8690e634
JK
15686
15687
15688
8690e634
JK
15689
15690
63ce7108 15691$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
8690e634 15704
09607c9e
TT
15705
15706
15707
15708
15709 if test $gl_cv_have_include_next = yes; then
15710 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15711 else
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15713$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15714if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15716else
15717
15718 if test $ac_cv_header_sys_stat_h = yes; then
15719
15720
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722/* end confdefs.h. */
15723#include <sys/stat.h>
15724
15725_ACEOF
15726 case "$host_os" in
15727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15728 *) gl_absname_cpp="$ac_cpp" ;;
15729 esac
15730
15731 case "$host_os" in
15732 mingw*)
15733 gl_dirsep_regex='[/\\]'
15734 ;;
15735 *)
15736 gl_dirsep_regex='\/'
15737 ;;
15738 esac
15739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15740
15741 gl_header_literal_regex=`echo 'sys/stat.h' \
15742 | sed -e "$gl_make_literal_regex_sed"`
15743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15745 s|^/[^/]|//&|
15746 p
15747 q
15748 }'
15749 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15750 sed -n "$gl_absolute_header_sed"`'"'
15751 else
15752 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15753 fi
15754
15755
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15758$as_echo "$gl_cv_next_sys_stat_h" >&6; }
15759 fi
15760 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15761
15762 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15764 gl_next_as_first_directive='<'sys/stat.h'>'
15765 else
15766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15767 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15768 fi
15769 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15770
15771
15772
15773
15774
15775
15776
15777
2196f55f 15778
09607c9e
TT
15779
15780
15781 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15782
15783$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15784
15785 fi
15786
15787 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15788 #include <sys/stat.h>
15789"
15790if test "x$ac_cv_type_nlink_t" = x""yes; then :
15791
15792else
15793
15794$as_echo "#define nlink_t int" >>confdefs.h
15795
15796fi
15797
15798
15799
15800 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
15801 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15803$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15804if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15805 $as_echo_n "(cached) " >&6
15806else
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808/* end confdefs.h. */
15809#include <sys/stat.h>
15810
15811int
15812main ()
15813{
15814#undef $gl_func
15815 (void) $gl_func;
15816 ;
15817 return 0;
15818}
15819_ACEOF
15820if ac_fn_c_try_compile "$LINENO"; then :
15821 eval "$as_gl_Symbol=yes"
15822else
15823 eval "$as_gl_Symbol=no"
15824fi
15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826fi
15827eval ac_res=\$$as_gl_Symbol
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15829$as_echo "$ac_res" >&6; }
15830 eval as_val=\$$as_gl_Symbol
15831 if test "x$as_val" = x""yes; then :
15832 cat >>confdefs.h <<_ACEOF
15833#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15834_ACEOF
15835
15836 eval ac_cv_have_decl_$gl_func=yes
15837fi
15838 done
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
8839a007
PA
15853 if test $gl_cv_have_include_next = yes; then
15854 gl_cv_next_sys_types_h='<'sys/types.h'>'
15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15857$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15858if test "${gl_cv_next_sys_types_h+set}" = set; then :
15859 $as_echo_n "(cached) " >&6
15860else
15861
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863/* end confdefs.h. */
15864#include <sys/types.h>
15865
15866_ACEOF
15867 case "$host_os" in
15868 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15869 *) gl_absname_cpp="$ac_cpp" ;;
15870 esac
15871
15872 case "$host_os" in
15873 mingw*)
15874 gl_dirsep_regex='[/\\]'
15875 ;;
15876 *)
15877 gl_dirsep_regex='\/'
15878 ;;
15879 esac
15880 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15881
15882 gl_header_literal_regex=`echo 'sys/types.h' \
15883 | sed -e "$gl_make_literal_regex_sed"`
15884 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15885 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15886 s|^/[^/]|//&|
15887 p
15888 q
15889 }'
15890 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15891 sed -n "$gl_absolute_header_sed"`'"'
15892
15893
15894fi
15895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15896$as_echo "$gl_cv_next_sys_types_h" >&6; }
15897 fi
15898 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
15899
15900 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15902 gl_next_as_first_directive='<'sys/types.h'>'
15903 else
15904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15905 gl_next_as_first_directive=$gl_cv_next_sys_types_h
15906 fi
15907 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
09607c9e
TT
15929
15930
8839a007
PA
15931
15932
15933
15934
15935 if test $gl_cv_have_include_next = yes; then
15936 gl_cv_next_unistd_h='<'unistd.h'>'
15937 else
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15939$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15940if test "${gl_cv_next_unistd_h+set}" = set; then :
15941 $as_echo_n "(cached) " >&6
15942else
15943
15944 if test $ac_cv_header_unistd_h = yes; then
15945
15946
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948/* end confdefs.h. */
15949#include <unistd.h>
15950
15951_ACEOF
15952 case "$host_os" in
15953 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15954 *) gl_absname_cpp="$ac_cpp" ;;
15955 esac
15956
15957 case "$host_os" in
15958 mingw*)
15959 gl_dirsep_regex='[/\\]'
15960 ;;
15961 *)
15962 gl_dirsep_regex='\/'
15963 ;;
15964 esac
15965 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15966
15967 gl_header_literal_regex=`echo 'unistd.h' \
15968 | sed -e "$gl_make_literal_regex_sed"`
15969 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15970 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15971 s|^/[^/]|//&|
15972 p
15973 q
15974 }'
15975 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15976 sed -n "$gl_absolute_header_sed"`'"'
15977 else
15978 gl_cv_next_unistd_h='<'unistd.h'>'
15979 fi
15980
15981
15982fi
15983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15984$as_echo "$gl_cv_next_unistd_h" >&6; }
15985 fi
15986 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15987
15988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15990 gl_next_as_first_directive='<'unistd.h'>'
15991 else
15992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15993 gl_next_as_first_directive=$gl_cv_next_unistd_h
15994 fi
15995 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15996
15997
15998
15999
16000 if test $ac_cv_header_unistd_h = yes; then
16001 HAVE_UNISTD_H=1
16002 else
16003 HAVE_UNISTD_H=0
16004 fi
16005
16006
16007
16008
16009
16010
16011
16012 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
16013 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16015$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16016if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16017 $as_echo_n "(cached) " >&6
16018else
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020/* end confdefs.h. */
16021
16022#if HAVE_UNISTD_H
16023# include <unistd.h>
16024#endif
16025/* Some systems declare various items in the wrong headers. */
16026#if !(defined __GLIBC__ && !defined __UCLIBC__)
16027# include <fcntl.h>
16028# include <stdio.h>
16029# include <stdlib.h>
16030# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16031# include <io.h>
16032# endif
16033#endif
16034
16035int
16036main ()
16037{
16038#undef $gl_func
16039 (void) $gl_func;
16040 ;
16041 return 0;
16042}
16043_ACEOF
16044if ac_fn_c_try_compile "$LINENO"; then :
16045 eval "$as_gl_Symbol=yes"
16046else
16047 eval "$as_gl_Symbol=no"
16048fi
16049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050fi
16051eval ac_res=\$$as_gl_Symbol
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16053$as_echo "$ac_res" >&6; }
16054 eval as_val=\$$as_gl_Symbol
16055 if test "x$as_val" = x""yes; then :
16056 cat >>confdefs.h <<_ACEOF
16057#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16058_ACEOF
16059
16060 eval ac_cv_have_decl_$gl_func=yes
16061fi
16062 done
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
8690e634
JK
16075
16076
16077 if test $gl_cv_have_include_next = yes; then
16078 gl_cv_next_wchar_h='<'wchar.h'>'
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
16081$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
16082if test "${gl_cv_next_wchar_h+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16084else
16085
16086 if test $ac_cv_header_wchar_h = yes; then
16087
16088
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h. */
16091#include <wchar.h>
16092
16093_ACEOF
16094 case "$host_os" in
16095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16096 *) gl_absname_cpp="$ac_cpp" ;;
16097 esac
16098
16099 case "$host_os" in
16100 mingw*)
16101 gl_dirsep_regex='[/\\]'
16102 ;;
16103 *)
16104 gl_dirsep_regex='\/'
16105 ;;
16106 esac
16107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16108
16109 gl_header_literal_regex=`echo 'wchar.h' \
16110 | sed -e "$gl_make_literal_regex_sed"`
16111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16113 s|^/[^/]|//&|
16114 p
16115 q
16116 }'
16117 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16118 sed -n "$gl_absolute_header_sed"`'"'
16119 else
16120 gl_cv_next_wchar_h='<'wchar.h'>'
16121 fi
16122
16123
16124fi
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
16126$as_echo "$gl_cv_next_wchar_h" >&6; }
16127 fi
16128 NEXT_WCHAR_H=$gl_cv_next_wchar_h
16129
16130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16132 gl_next_as_first_directive='<'wchar.h'>'
16133 else
16134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16135 gl_next_as_first_directive=$gl_cv_next_wchar_h
16136 fi
16137 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
16138
16139
16140
16141
16142 if test $ac_cv_header_wchar_h = yes; then
16143 HAVE_WCHAR_H=1
16144 else
16145 HAVE_WCHAR_H=0
16146 fi
16147
c971b7fa
PA
16148
16149
16150
16151
8690e634
JK
16152 if test $gt_cv_c_wint_t = yes; then
16153 HAVE_WINT_T=1
16154 else
16155 HAVE_WINT_T=0
16156 fi
c971b7fa
PA
16157
16158
16159
8690e634
JK
16160 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
16161 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16163$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16164if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
16165 $as_echo_n "(cached) " >&6
16166else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h. */
8690e634
JK
16169
16170/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16171 <wchar.h>.
16172 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16173 included before <wchar.h>. */
16174#if !(defined __GLIBC__ && !defined __UCLIBC__)
16175# include <stddef.h>
16176# include <stdio.h>
16177# include <time.h>
16178#endif
16179#include <wchar.h>
c971b7fa
PA
16180
16181int
16182main ()
16183{
8690e634
JK
16184#undef $gl_func
16185 (void) $gl_func;
c971b7fa
PA
16186 ;
16187 return 0;
16188}
16189_ACEOF
16190if ac_fn_c_try_compile "$LINENO"; then :
8690e634 16191 eval "$as_gl_Symbol=yes"
c971b7fa 16192else
8690e634 16193 eval "$as_gl_Symbol=no"
c971b7fa
PA
16194fi
16195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196fi
8690e634
JK
16197eval ac_res=\$$as_gl_Symbol
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16199$as_echo "$ac_res" >&6; }
16200 eval as_val=\$$as_gl_Symbol
16201 if test "x$as_val" = x""yes; then :
16202 cat >>confdefs.h <<_ACEOF
16203#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16204_ACEOF
c971b7fa 16205
8690e634 16206 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 16207fi
8690e634
JK
16208 done
16209
16210
16211
16212
16213
16214
16215
8690e634
JK
16216 if test $ac_cv_func_iswcntrl = yes; then
16217 HAVE_ISWCNTRL=1
16218 else
16219 HAVE_ISWCNTRL=0
16220 fi
16221
16222
16223
8690e634
JK
16224 if test $gt_cv_c_wint_t = yes; then
16225 HAVE_WINT_T=1
16226 else
16227 HAVE_WINT_T=0
16228 fi
16229
16230
16231
16232
16233
16234
c971b7fa 16235
8690e634 16236
c971b7fa
PA
16237
16238
16239
16240 if test $gl_cv_have_include_next = yes; then
8690e634 16241 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 16242 else
8690e634
JK
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
16244$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
16245if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
16246 $as_echo_n "(cached) " >&6
16247else
16248
8690e634
JK
16249 if test $ac_cv_header_wctype_h = yes; then
16250
16251
c971b7fa
PA
16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253/* end confdefs.h. */
8690e634 16254#include <wctype.h>
c971b7fa
PA
16255
16256_ACEOF
16257 case "$host_os" in
16258 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16259 *) gl_absname_cpp="$ac_cpp" ;;
16260 esac
16261
16262 case "$host_os" in
16263 mingw*)
16264 gl_dirsep_regex='[/\\]'
16265 ;;
16266 *)
16267 gl_dirsep_regex='\/'
16268 ;;
16269 esac
16270 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16271
8690e634 16272 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
16273 | sed -e "$gl_make_literal_regex_sed"`
16274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16276 s|^/[^/]|//&|
16277 p
16278 q
16279 }'
8690e634 16280 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 16281 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
16282 else
16283 gl_cv_next_wctype_h='<'wctype.h'>'
16284 fi
c971b7fa
PA
16285
16286
16287fi
8690e634
JK
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
16289$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 16290 fi
8690e634 16291 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
16292
16293 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 16295 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
16296 else
16297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 16298 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 16299 fi
8690e634
JK
16300 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
16301
16302
16303
16304
16305 if test $ac_cv_header_wctype_h = yes; then
16306 if test $ac_cv_func_iswcntrl = yes; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
16308$as_echo_n "checking whether iswcntrl works... " >&6; }
16309if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16311else
16312
16313 if test "$cross_compiling" = yes; then :
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h. */
16316#include <stdlib.h>
16317 #if __GNU_LIBRARY__ == 1
16318 Linux libc5 i18n is broken.
16319 #endif
16320int
16321main ()
16322{
16323
16324 ;
16325 return 0;
16326}
16327_ACEOF
16328if ac_fn_c_try_compile "$LINENO"; then :
16329 gl_cv_func_iswcntrl_works="guessing yes"
16330else
16331 gl_cv_func_iswcntrl_works="guessing no"
16332fi
16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334
16335else
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h. */
16338
16339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16340 included before <wchar.h>.
16341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16342 must be included before <wchar.h>. */
16343 #include <stddef.h>
16344 #include <stdio.h>
16345 #include <time.h>
16346 #include <wchar.h>
16347 #include <wctype.h>
16348 int main () { return iswprint ('x') == 0; }
16349
16350_ACEOF
16351if ac_fn_c_try_run "$LINENO"; then :
16352 gl_cv_func_iswcntrl_works=yes
16353else
16354 gl_cv_func_iswcntrl_works=no
16355fi
16356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16357 conftest.$ac_objext conftest.beam conftest.$ac_ext
16358fi
16359
16360
16361fi
16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
16363$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
16364 fi
16365 HAVE_WCTYPE_H=1
16366 else
16367 HAVE_WCTYPE_H=0
16368 fi
16369
16370
16371 case "$gl_cv_func_iswcntrl_works" in
16372 *yes) REPLACE_ISWCNTRL=0 ;;
16373 *) REPLACE_ISWCNTRL=1 ;;
16374 esac
16375
16376
16377 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
16378 :
16379 fi
16380
16381 if test $REPLACE_ISWCNTRL = 1; then
16382 REPLACE_TOWLOWER=1
16383 else
16384 for ac_func in towlower
16385do :
16386 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
16387if test "x$ac_cv_func_towlower" = x""yes; then :
16388 cat >>confdefs.h <<_ACEOF
16389#define HAVE_TOWLOWER 1
16390_ACEOF
16391
16392fi
16393done
16394
16395 if test $ac_cv_func_towlower = yes; then
16396 REPLACE_TOWLOWER=0
16397 else
16398 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16399 included before <wchar.h>.
16400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16401 must be included before <wchar.h>. */
16402 #include <stddef.h>
16403 #include <stdio.h>
16404 #include <time.h>
16405 #include <wchar.h>
16406 #if HAVE_WCTYPE_H
16407 # include <wctype.h>
16408 #endif
16409
16410"
16411if test "x$ac_cv_have_decl_towlower" = x""yes; then :
16412 ac_have_decl=1
16413else
16414 ac_have_decl=0
16415fi
16416
16417cat >>confdefs.h <<_ACEOF
16418#define HAVE_DECL_TOWLOWER $ac_have_decl
16419_ACEOF
16420
16421 if test $ac_cv_have_decl_towlower = yes; then
16422 REPLACE_TOWLOWER=1
16423 else
16424 REPLACE_TOWLOWER=0
16425 fi
16426 fi
16427 fi
16428
16429
16430 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
16431 :
16432 fi
16433
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
16435$as_echo_n "checking for wctype_t... " >&6; }
16436if test "${gl_cv_type_wctype_t+set}" = set; then :
16437 $as_echo_n "(cached) " >&6
16438else
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440/* end confdefs.h. */
16441/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16442 included before <wchar.h>.
16443 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16444 must be included before <wchar.h>. */
16445 #include <stddef.h>
16446 #include <stdio.h>
16447 #include <time.h>
16448 #include <wchar.h>
16449 #if HAVE_WCTYPE_H
16450 # include <wctype.h>
16451 #endif
16452 wctype_t a;
16453
16454int
16455main ()
16456{
16457
16458 ;
16459 return 0;
16460}
16461_ACEOF
16462if ac_fn_c_try_compile "$LINENO"; then :
16463 gl_cv_type_wctype_t=yes
16464else
16465 gl_cv_type_wctype_t=no
16466fi
16467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 16468
8690e634
JK
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
16471$as_echo "$gl_cv_type_wctype_t" >&6; }
16472 if test $gl_cv_type_wctype_t = no; then
16473 HAVE_WCTYPE_T=0
16474 fi
16475
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
16477$as_echo_n "checking for wctrans_t... " >&6; }
16478if test "${gl_cv_type_wctrans_t+set}" = set; then :
16479 $as_echo_n "(cached) " >&6
16480else
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482/* end confdefs.h. */
16483/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16484 included before <wchar.h>.
16485 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16486 must be included before <wchar.h>. */
16487 #include <stddef.h>
16488 #include <stdio.h>
16489 #include <time.h>
16490 #include <wchar.h>
16491 #include <wctype.h>
16492 wctrans_t a;
c971b7fa 16493
8690e634
JK
16494int
16495main ()
16496{
c971b7fa 16497
8690e634
JK
16498 ;
16499 return 0;
16500}
16501_ACEOF
16502if ac_fn_c_try_compile "$LINENO"; then :
16503 gl_cv_type_wctrans_t=yes
16504else
16505 gl_cv_type_wctrans_t=no
16506fi
16507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 16508
8690e634
JK
16509fi
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
16511$as_echo "$gl_cv_type_wctrans_t" >&6; }
16512 if test $gl_cv_type_wctrans_t = no; then
16513 HAVE_WCTRANS_T=0
c971b7fa
PA
16514 fi
16515
16516
8690e634
JK
16517 for gl_func in wctype iswctype wctrans towctrans ; do
16518 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16520$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16521if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16522 $as_echo_n "(cached) " >&6
16523else
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525/* end confdefs.h. */
16526
16527/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16528 <wchar.h>.
16529 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16530 included before <wchar.h>. */
16531#if !(defined __GLIBC__ && !defined __UCLIBC__)
16532# include <stddef.h>
16533# include <stdio.h>
16534# include <time.h>
16535# include <wchar.h>
16536#endif
16537#include <wctype.h>
16538
16539int
16540main ()
16541{
16542#undef $gl_func
16543 (void) $gl_func;
16544 ;
16545 return 0;
16546}
16547_ACEOF
16548if ac_fn_c_try_compile "$LINENO"; then :
16549 eval "$as_gl_Symbol=yes"
16550else
16551 eval "$as_gl_Symbol=no"
16552fi
16553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554fi
16555eval ac_res=\$$as_gl_Symbol
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16557$as_echo "$ac_res" >&6; }
16558 eval as_val=\$$as_gl_Symbol
16559 if test "x$as_val" = x""yes; then :
16560 cat >>confdefs.h <<_ACEOF
16561#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16562_ACEOF
c971b7fa 16563
8690e634
JK
16564 eval ac_cv_have_decl_$gl_func=yes
16565fi
16566 done
c971b7fa
PA
16567
16568
16569 # End of code from modules
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579 gltests_libdeps=
16580 gltests_ltlibdeps=
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590 gl_source_base='tests'
16591 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
16592
16593 gl_module_indicator_condition=$gltests_WITNESS
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603 LIBGNU_LIBDEPS="$gl_libdeps"
16604
16605 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16606
16607
16608
16609# We don't use automake, but gnulib does. This line lets us generate
16610# its Makefile.in.
16611am__api_version='1.11'
16612
16613# Find a good install program. We prefer a C program (faster),
16614# so one script is as good as another. But avoid the broken or
16615# incompatible versions:
16616# SysV /etc/install, /usr/sbin/install
16617# SunOS /usr/etc/install
16618# IRIX /sbin/install
16619# AIX /bin/install
16620# AmigaOS /C/install, which installs bootblocks on floppy discs
16621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
16623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16624# OS/2's system install, which has a completely different semantic
16625# ./install, which can be erroneously created by make from ./install.sh.
16626# Reject install programs that cannot install multiple files.
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
16628$as_echo_n "checking for a BSD-compatible install... " >&6; }
16629if test -z "$INSTALL"; then
16630if test "${ac_cv_path_install+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16632else
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634for as_dir in $PATH
16635do
16636 IFS=$as_save_IFS
16637 test -z "$as_dir" && as_dir=.
16638 # Account for people who put trailing slashes in PATH elements.
16639case $as_dir/ in #((
16640 ./ | .// | /[cC]/* | \
16641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
16643 /usr/ucb/* ) ;;
16644 *)
16645 # OSF1 and SCO ODT 3.0 have their own names for install.
16646 # Don't use installbsd from OSF since it installs stuff as root
16647 # by default.
16648 for ac_prog in ginstall scoinst install; do
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16651 if test $ac_prog = install &&
16652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16653 # AIX install. It has an incompatible calling convention.
16654 :
16655 elif test $ac_prog = install &&
16656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16657 # program-specific install script used by HP pwplus--don't use.
16658 :
16659 else
16660 rm -rf conftest.one conftest.two conftest.dir
16661 echo one > conftest.one
16662 echo two > conftest.two
16663 mkdir conftest.dir
16664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16665 test -s conftest.one && test -s conftest.two &&
16666 test -s conftest.dir/conftest.one &&
16667 test -s conftest.dir/conftest.two
16668 then
16669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16670 break 3
16671 fi
16672 fi
16673 fi
16674 done
16675 done
16676 ;;
16677esac
16678
16679 done
16680IFS=$as_save_IFS
16681
16682rm -rf conftest.one conftest.two conftest.dir
16683
16684fi
16685 if test "${ac_cv_path_install+set}" = set; then
16686 INSTALL=$ac_cv_path_install
16687 else
16688 # As a last resort, use the slow shell script. Don't cache a
16689 # value for INSTALL within a source directory, because that will
16690 # break other packages using the cache if that directory is
16691 # removed, or if the value is a relative name.
16692 INSTALL=$ac_install_sh
16693 fi
16694fi
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16696$as_echo "$INSTALL" >&6; }
16697
16698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16699# It thinks the first close brace ends the variable substitution.
16700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16701
16702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16703
16704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16705
16706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16707$as_echo_n "checking whether build environment is sane... " >&6; }
16708# Just in case
16709sleep 1
16710echo timestamp > conftest.file
16711# Reject unsafe characters in $srcdir or the absolute working directory
16712# name. Accept space and tab only in the latter.
16713am_lf='
16714'
16715case `pwd` in
16716 *[\\\"\#\$\&\'\`$am_lf]*)
16717 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
16718esac
16719case $srcdir in
16720 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
16721 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
16722esac
16723
16724# Do `set' in a subshell so we don't clobber the current shell's
16725# arguments. Must try -L first in case configure is actually a
16726# symlink; some systems play weird games with the mod time of symlinks
16727# (eg FreeBSD returns the mod time of the symlink's containing
16728# directory).
16729if (
16730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16731 if test "$*" = "X"; then
16732 # -L didn't work.
16733 set X `ls -t "$srcdir/configure" conftest.file`
16734 fi
16735 rm -f conftest.file
16736 if test "$*" != "X $srcdir/configure conftest.file" \
16737 && test "$*" != "X conftest.file $srcdir/configure"; then
16738
16739 # If neither matched, then we have a broken ls. This can happen
16740 # if, for instance, CONFIG_SHELL is bash and it inherits a
16741 # broken ls alias from the environment. This has actually
16742 # happened. Such a system could not be considered "sane".
16743 as_fn_error "ls -t appears to fail. Make sure there is not a broken
16744alias in your environment" "$LINENO" 5
16745 fi
16746
16747 test "$2" = conftest.file
16748 )
16749then
16750 # Ok.
16751 :
16752else
16753 as_fn_error "newly created file is older than distributed files!
16754Check your system clock" "$LINENO" 5
16755fi
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757$as_echo "yes" >&6; }
16758test "$program_prefix" != NONE &&
16759 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16760# Use a double $ so make ignores it.
16761test "$program_suffix" != NONE &&
16762 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
16763# Double any \ or $.
16764# By default was `s,x,x', remove it if useless.
16765ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16766program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16767
16768# expand $ac_aux_dir to an absolute path
16769am_aux_dir=`cd $ac_aux_dir && pwd`
16770
16771if test x"${MISSING+set}" != xset; then
16772 case $am_aux_dir in
16773 *\ * | *\ *)
16774 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16775 *)
16776 MISSING="\${SHELL} $am_aux_dir/missing" ;;
16777 esac
16778fi
16779# Use eval to expand $SHELL
16780if eval "$MISSING --run true"; then
16781 am_missing_run="$MISSING --run "
16782else
16783 am_missing_run=
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
16785$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16786fi
16787
16788if test x"${install_sh}" != xset; then
16789 case $am_aux_dir in
16790 *\ * | *\ *)
16791 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16792 *)
16793 install_sh="\${SHELL} $am_aux_dir/install-sh"
16794 esac
16795fi
16796
16797# Installed binaries are usually stripped using `strip' when the user
16798# run `make install-strip'. However `strip' might not be the right
16799# tool to use in cross-compilation environments, therefore Automake
16800# will honor the `STRIP' environment variable to overrule this program.
16801if test "$cross_compiling" != no; then
16802 if test -n "$ac_tool_prefix"; then
16803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16804set dummy ${ac_tool_prefix}strip; ac_word=$2
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16806$as_echo_n "checking for $ac_word... " >&6; }
16807if test "${ac_cv_prog_STRIP+set}" = set; then :
16808 $as_echo_n "(cached) " >&6
16809else
16810 if test -n "$STRIP"; then
16811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16812else
16813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16814for as_dir in $PATH
16815do
16816 IFS=$as_save_IFS
16817 test -z "$as_dir" && as_dir=.
16818 for ac_exec_ext in '' $ac_executable_extensions; do
16819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16822 break 2
16823 fi
16824done
16825 done
16826IFS=$as_save_IFS
16827
16828fi
16829fi
16830STRIP=$ac_cv_prog_STRIP
16831if test -n "$STRIP"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16833$as_echo "$STRIP" >&6; }
16834else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836$as_echo "no" >&6; }
16837fi
16838
16839
16840fi
16841if test -z "$ac_cv_prog_STRIP"; then
16842 ac_ct_STRIP=$STRIP
16843 # Extract the first word of "strip", so it can be a program name with args.
16844set dummy strip; ac_word=$2
16845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16846$as_echo_n "checking for $ac_word... " >&6; }
16847if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
16848 $as_echo_n "(cached) " >&6
16849else
16850 if test -n "$ac_ct_STRIP"; then
16851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16852else
16853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16854for as_dir in $PATH
16855do
16856 IFS=$as_save_IFS
16857 test -z "$as_dir" && as_dir=.
16858 for ac_exec_ext in '' $ac_executable_extensions; do
16859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16860 ac_cv_prog_ac_ct_STRIP="strip"
16861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16862 break 2
16863 fi
16864done
16865 done
16866IFS=$as_save_IFS
16867
16868fi
16869fi
16870ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16871if test -n "$ac_ct_STRIP"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16873$as_echo "$ac_ct_STRIP" >&6; }
16874else
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876$as_echo "no" >&6; }
16877fi
16878
16879 if test "x$ac_ct_STRIP" = x; then
16880 STRIP=":"
16881 else
16882 case $cross_compiling:$ac_tool_warned in
16883yes:)
16884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16886ac_tool_warned=yes ;;
16887esac
16888 STRIP=$ac_ct_STRIP
16889 fi
16890else
16891 STRIP="$ac_cv_prog_STRIP"
16892fi
16893
16894fi
16895INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16896
c971b7fa
PA
16897mkdir_p="$MKDIR_P"
16898case $mkdir_p in
16899 [\\/$]* | ?:[\\/]*) ;;
16900 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
16901esac
16902
16903for ac_prog in gawk mawk nawk awk
16904do
16905 # Extract the first word of "$ac_prog", so it can be a program name with args.
16906set dummy $ac_prog; ac_word=$2
16907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16908$as_echo_n "checking for $ac_word... " >&6; }
16909if test "${ac_cv_prog_AWK+set}" = set; then :
16910 $as_echo_n "(cached) " >&6
16911else
16912 if test -n "$AWK"; then
16913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16914else
16915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916for as_dir in $PATH
16917do
16918 IFS=$as_save_IFS
16919 test -z "$as_dir" && as_dir=.
16920 for ac_exec_ext in '' $ac_executable_extensions; do
16921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16922 ac_cv_prog_AWK="$ac_prog"
16923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924 break 2
16925 fi
16926done
16927 done
16928IFS=$as_save_IFS
16929
16930fi
16931fi
16932AWK=$ac_cv_prog_AWK
16933if test -n "$AWK"; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16935$as_echo "$AWK" >&6; }
16936else
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938$as_echo "no" >&6; }
16939fi
16940
16941
16942 test -n "$AWK" && break
16943done
16944
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16946$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16947set x ${MAKE-make}
16948ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16949if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16950 $as_echo_n "(cached) " >&6
16951else
16952 cat >conftest.make <<\_ACEOF
16953SHELL = /bin/sh
16954all:
16955 @echo '@@@%%%=$(MAKE)=@@@%%%'
16956_ACEOF
16957# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16958case `${MAKE-make} -f conftest.make 2>/dev/null` in
16959 *@@@%%%=?*=@@@%%%*)
16960 eval ac_cv_prog_make_${ac_make}_set=yes;;
16961 *)
16962 eval ac_cv_prog_make_${ac_make}_set=no;;
16963esac
16964rm -f conftest.make
16965fi
16966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968$as_echo "yes" >&6; }
16969 SET_MAKE=
16970else
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972$as_echo "no" >&6; }
16973 SET_MAKE="MAKE=${MAKE-make}"
16974fi
16975
16976rm -rf .tst 2>/dev/null
16977mkdir .tst 2>/dev/null
16978if test -d .tst; then
16979 am__leading_dot=.
16980else
16981 am__leading_dot=_
16982fi
16983rmdir .tst 2>/dev/null
16984
16985DEPDIR="${am__leading_dot}deps"
16986
16987ac_config_commands="$ac_config_commands depfiles"
16988
16989
16990am_make=${MAKE-make}
16991cat > confinc << 'END'
16992am__doit:
16993 @echo this is the am__doit target
16994.PHONY: am__doit
16995END
16996# If we don't find an include directive, just comment out the code.
16997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16998$as_echo_n "checking for style of include used by $am_make... " >&6; }
16999am__include="#"
17000am__quote=
17001_am_result=none
17002# First try GNU make style include.
17003echo "include confinc" > confmf
17004# Ignore all kinds of additional output from `make'.
17005case `$am_make -s -f confmf 2> /dev/null` in #(
17006*the\ am__doit\ target*)
17007 am__include=include
17008 am__quote=
17009 _am_result=GNU
17010 ;;
17011esac
17012# Now try BSD make style include.
17013if test "$am__include" = "#"; then
17014 echo '.include "confinc"' > confmf
17015 case `$am_make -s -f confmf 2> /dev/null` in #(
17016 *the\ am__doit\ target*)
17017 am__include=.include
17018 am__quote="\""
17019 _am_result=BSD
17020 ;;
17021 esac
17022fi
17023
17024
17025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
17026$as_echo "$_am_result" >&6; }
17027rm -f confinc confmf
17028
17029# Check whether --enable-dependency-tracking was given.
17030if test "${enable_dependency_tracking+set}" = set; then :
17031 enableval=$enable_dependency_tracking;
17032fi
17033
17034if test "x$enable_dependency_tracking" != xno; then
17035 am_depcomp="$ac_aux_dir/depcomp"
17036 AMDEPBACKSLASH='\'
17037fi
17038 if test "x$enable_dependency_tracking" != xno; then
17039 AMDEP_TRUE=
17040 AMDEP_FALSE='#'
17041else
17042 AMDEP_TRUE='#'
17043 AMDEP_FALSE=
17044fi
17045
17046
17047if test "`cd $srcdir && pwd`" != "`pwd`"; then
17048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
17049 # is not polluted with repeated "-I."
17050 am__isrc=' -I$(srcdir)'
17051 # test to see if srcdir already configured
17052 if test -f $srcdir/config.status; then
17053 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
17054 fi
17055fi
17056
17057# test whether we have cygpath
17058if test -z "$CYGPATH_W"; then
17059 if (cygpath --version) >/dev/null 2>/dev/null; then
17060 CYGPATH_W='cygpath -w'
17061 else
17062 CYGPATH_W=echo
17063 fi
17064fi
17065
17066
17067# Define the identity of the package.
17068 PACKAGE=libgnu
17069 VERSION=UNUSED-VERSION
17070
17071
17072# Some tools Automake needs.
17073
17074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
17075
17076
17077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
17078
17079
17080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
17081
17082
17083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
17084
17085
17086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
17087
17088# We need awk for the "check" target. The system "awk" is bad on
17089# some platforms.
17090# Always define AMTAR for backward compatibility.
17091
17092AMTAR=${AMTAR-"${am_missing_run}tar"}
17093
17094am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
17095
17096
17097
17098
17099depcc="$CC" am_compiler_list=
17100
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17102$as_echo_n "checking dependency style of $depcc... " >&6; }
17103if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
17104 $as_echo_n "(cached) " >&6
17105else
17106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17107 # We make a subdir and do the tests there. Otherwise we can end up
17108 # making bogus files that we don't know about and never remove. For
17109 # instance it was reported that on HP-UX the gcc test will end up
17110 # making a dummy file named `D' -- because `-MD' means `put the output
17111 # in D'.
17112 mkdir conftest.dir
17113 # Copy depcomp to subdir because otherwise we won't find it if we're
17114 # using a relative directory.
17115 cp "$am_depcomp" conftest.dir
17116 cd conftest.dir
17117 # We will build objects and dependencies in a subdirectory because
17118 # it helps to detect inapplicable dependency modes. For instance
17119 # both Tru64's cc and ICC support -MD to output dependencies as a
17120 # side effect of compilation, but ICC will put the dependencies in
17121 # the current directory while Tru64 will put them in the object
17122 # directory.
17123 mkdir sub
17124
17125 am_cv_CC_dependencies_compiler_type=none
17126 if test "$am_compiler_list" = ""; then
17127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17128 fi
17129 am__universal=false
17130 case " $depcc " in #(
17131 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17132 esac
17133
17134 for depmode in $am_compiler_list; do
17135 # Setup a source with many dependencies, because some compilers
17136 # like to wrap large dependency lists on column 80 (with \), and
17137 # we should not choose a depcomp mode which is confused by this.
17138 #
17139 # We need to recreate these files for each test, as the compiler may
17140 # overwrite some of them when testing with obscure command lines.
17141 # This happens at least with the AIX C compiler.
17142 : > sub/conftest.c
17143 for i in 1 2 3 4 5 6; do
17144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17146 # Solaris 8's {/usr,}/bin/sh.
17147 touch sub/conftst$i.h
17148 done
17149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17150
17151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17152 # mode. It turns out that the SunPro C++ compiler does not properly
17153 # handle `-M -o', and we need to detect this. Also, some Intel
17154 # versions had trouble with output in subdirs
17155 am__obj=sub/conftest.${OBJEXT-o}
17156 am__minus_obj="-o $am__obj"
17157 case $depmode in
17158 gcc)
17159 # This depmode causes a compiler race in universal mode.
17160 test "$am__universal" = false || continue
17161 ;;
17162 nosideeffect)
17163 # after this tag, mechanisms are not by side-effect, so they'll
17164 # only be used when explicitly requested
17165 if test "x$enable_dependency_tracking" = xyes; then
17166 continue
17167 else
17168 break
17169 fi
17170 ;;
17171 msvisualcpp | msvcmsys)
17172 # This compiler won't grok `-c -o', but also, the minuso test has
17173 # not run yet. These depmodes are late enough in the game, and
17174 # so weak that their functioning should not be impacted.
17175 am__obj=conftest.${OBJEXT-o}
17176 am__minus_obj=
17177 ;;
17178 none) break ;;
17179 esac
17180 if depmode=$depmode \
17181 source=sub/conftest.c object=$am__obj \
17182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17184 >/dev/null 2>conftest.err &&
17185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17189 # icc doesn't choke on unknown options, it will just issue warnings
17190 # or remarks (even with -Werror). So we grep stderr for any message
17191 # that says an option was ignored or not supported.
17192 # When given -MP, icc 7.0 and 7.1 complain thusly:
17193 # icc: Command line warning: ignoring option '-M'; no argument required
17194 # The diagnosis changed in icc 8.0:
17195 # icc: Command line remark: option '-MP' not supported
17196 if (grep 'ignoring option' conftest.err ||
17197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17198 am_cv_CC_dependencies_compiler_type=$depmode
17199 break
17200 fi
17201 fi
17202 done
17203
17204 cd ..
17205 rm -rf conftest.dir
17206else
17207 am_cv_CC_dependencies_compiler_type=none
17208fi
17209
17210fi
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17212$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17213CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17214
17215 if
17216 test "x$enable_dependency_tracking" != xno \
17217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17218 am__fastdepCC_TRUE=
17219 am__fastdepCC_FALSE='#'
17220else
17221 am__fastdepCC_TRUE='#'
17222 am__fastdepCC_FALSE=
17223fi
17224
17225
17226
17227
17228# --------------------- #
17229# Checks for programs. #
17230# --------------------- #
17231
17232
17233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17234$as_echo_n "checking whether ln -s works... " >&6; }
17235LN_S=$as_ln_s
17236if test "$LN_S" = "ln -s"; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238$as_echo "yes" >&6; }
17239else
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17241$as_echo "no, using $LN_S" >&6; }
17242fi
17243
17244if test -n "$ac_tool_prefix"; then
17245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248$as_echo_n "checking for $ac_word... " >&6; }
17249if test "${ac_cv_prog_RANLIB+set}" = set; then :
17250 $as_echo_n "(cached) " >&6
17251else
17252 if test -n "$RANLIB"; then
17253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17254else
17255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256for as_dir in $PATH
17257do
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17264 break 2
17265 fi
17266done
17267 done
17268IFS=$as_save_IFS
17269
17270fi
17271fi
17272RANLIB=$ac_cv_prog_RANLIB
17273if test -n "$RANLIB"; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17275$as_echo "$RANLIB" >&6; }
17276else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278$as_echo "no" >&6; }
17279fi
17280
17281
17282fi
17283if test -z "$ac_cv_prog_RANLIB"; then
17284 ac_ct_RANLIB=$RANLIB
17285 # Extract the first word of "ranlib", so it can be a program name with args.
17286set dummy ranlib; ac_word=$2
17287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288$as_echo_n "checking for $ac_word... " >&6; }
17289if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17291else
17292 if test -n "$ac_ct_RANLIB"; then
17293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17294else
17295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17296for as_dir in $PATH
17297do
17298 IFS=$as_save_IFS
17299 test -z "$as_dir" && as_dir=.
17300 for ac_exec_ext in '' $ac_executable_extensions; do
17301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17302 ac_cv_prog_ac_ct_RANLIB="ranlib"
17303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17304 break 2
17305 fi
17306done
17307 done
17308IFS=$as_save_IFS
17309
17310fi
17311fi
17312ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17313if test -n "$ac_ct_RANLIB"; then
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17315$as_echo "$ac_ct_RANLIB" >&6; }
17316else
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17318$as_echo "no" >&6; }
17319fi
17320
17321 if test "x$ac_ct_RANLIB" = x; then
17322 RANLIB=":"
17323 else
17324 case $cross_compiling:$ac_tool_warned in
17325yes:)
17326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17328ac_tool_warned=yes ;;
17329esac
17330 RANLIB=$ac_ct_RANLIB
17331 fi
17332else
17333 RANLIB="$ac_cv_prog_RANLIB"
17334fi
17335
17336
17337if test -n "$ac_tool_prefix"; then
17338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17339set dummy ${ac_tool_prefix}ar; ac_word=$2
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17341$as_echo_n "checking for $ac_word... " >&6; }
17342if test "${ac_cv_prog_AR+set}" = set; then :
17343 $as_echo_n "(cached) " >&6
17344else
17345 if test -n "$AR"; then
17346 ac_cv_prog_AR="$AR" # Let the user override the test.
17347else
17348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349for as_dir in $PATH
17350do
17351 IFS=$as_save_IFS
17352 test -z "$as_dir" && as_dir=.
17353 for ac_exec_ext in '' $ac_executable_extensions; do
17354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17355 ac_cv_prog_AR="${ac_tool_prefix}ar"
17356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17357 break 2
17358 fi
17359done
17360 done
17361IFS=$as_save_IFS
17362
17363fi
17364fi
17365AR=$ac_cv_prog_AR
17366if test -n "$AR"; then
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17368$as_echo "$AR" >&6; }
17369else
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17371$as_echo "no" >&6; }
17372fi
17373
17374
17375fi
17376if test -z "$ac_cv_prog_AR"; then
17377 ac_ct_AR=$AR
17378 # Extract the first word of "ar", so it can be a program name with args.
17379set dummy ar; ac_word=$2
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381$as_echo_n "checking for $ac_word... " >&6; }
17382if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17384else
17385 if test -n "$ac_ct_AR"; then
17386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17387else
17388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389for as_dir in $PATH
17390do
17391 IFS=$as_save_IFS
17392 test -z "$as_dir" && as_dir=.
17393 for ac_exec_ext in '' $ac_executable_extensions; do
17394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17395 ac_cv_prog_ac_ct_AR="ar"
17396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17397 break 2
17398 fi
17399done
17400 done
17401IFS=$as_save_IFS
17402
17403fi
17404fi
17405ac_ct_AR=$ac_cv_prog_ac_ct_AR
17406if test -n "$ac_ct_AR"; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17408$as_echo "$ac_ct_AR" >&6; }
17409else
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17411$as_echo "no" >&6; }
17412fi
17413
17414 if test "x$ac_ct_AR" = x; then
17415 AR=""
17416 else
17417 case $cross_compiling:$ac_tool_warned in
17418yes:)
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17421ac_tool_warned=yes ;;
17422esac
17423 AR=$ac_ct_AR
17424 fi
17425else
17426 AR="$ac_cv_prog_AR"
17427fi
17428
17429
17430# ---------------------- #
17431# Checks for libraries. #
17432# ---------------------- #
17433
17434ac_config_files="$ac_config_files Makefile import/Makefile"
17435
17436ac_config_commands="$ac_config_commands default"
17437
17438cat >confcache <<\_ACEOF
17439# This file is a shell script that caches the results of configure
17440# tests run on this system so they can be shared between configure
17441# scripts and configure runs, see configure's option --config-cache.
17442# It is not useful on other systems. If it contains results you don't
17443# want to keep, you may remove or edit it.
17444#
17445# config.status only pays attention to the cache file if you give it
17446# the --recheck option to rerun configure.
17447#
17448# `ac_cv_env_foo' variables (set or unset) will be overridden when
17449# loading this file, other *unset* `ac_cv_foo' will be assigned the
17450# following values.
17451
17452_ACEOF
17453
17454# The following way of writing the cache mishandles newlines in values,
17455# but we know of no workaround that is simple, portable, and efficient.
17456# So, we kill variables containing newlines.
17457# Ultrix sh set writes to stderr and can't be redirected directly,
17458# and sets the high bit in the cache file unless we assign to the vars.
17459(
17460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17461 eval ac_val=\$$ac_var
17462 case $ac_val in #(
17463 *${as_nl}*)
17464 case $ac_var in #(
17465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17466$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17467 esac
17468 case $ac_var in #(
17469 _ | IFS | as_nl) ;; #(
17470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17471 *) { eval $ac_var=; unset $ac_var;} ;;
17472 esac ;;
17473 esac
17474 done
17475
17476 (set) 2>&1 |
17477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17478 *${as_nl}ac_space=\ *)
17479 # `set' does not quote correctly, so add quotes: double-quote
17480 # substitution turns \\\\ into \\, and sed turns \\ into \.
17481 sed -n \
17482 "s/'/'\\\\''/g;
17483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17484 ;; #(
17485 *)
17486 # `set' quotes correctly as required by POSIX, so do not add quotes.
17487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17488 ;;
17489 esac |
17490 sort
17491) |
17492 sed '
17493 /^ac_cv_env_/b end
17494 t clear
17495 :clear
17496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17497 t end
17498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17499 :end' >>confcache
17500if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17501 if test -w "$cache_file"; then
17502 test "x$cache_file" != "x/dev/null" &&
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17504$as_echo "$as_me: updating cache $cache_file" >&6;}
17505 cat confcache >$cache_file
17506 else
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17508$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17509 fi
17510fi
17511rm -f confcache
17512
17513test "x$prefix" = xNONE && prefix=$ac_default_prefix
17514# Let make expand exec_prefix.
17515test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17516
17517DEFS=-DHAVE_CONFIG_H
17518
17519ac_libobjs=
17520ac_ltlibobjs=
17521for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17522 # 1. Remove the extension, and $U if already installed.
17523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17526 # will be set to the directory where LIBOBJS objects are built.
17527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17529done
17530LIBOBJS=$ac_libobjs
17531
17532LTLIBOBJS=$ac_ltlibobjs
17533
17534
17535if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17536 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17537Usually this means the macro was only invoked conditionally." "$LINENO" 5
17538fi
17539if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17540 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
17541Usually this means the macro was only invoked conditionally." "$LINENO" 5
17542fi
8690e634
JK
17543if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
17544 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
17545Usually this means the macro was only invoked conditionally." "$LINENO" 5
17546fi
18848e28
GF
17547if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
17548 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
17549Usually this means the macro was only invoked conditionally." "$LINENO" 5
17550fi
88b48903
WN
17551if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
17552 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
17553Usually this means the macro was only invoked conditionally." "$LINENO" 5
17554fi
8690e634
JK
17555if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
17556 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
17557Usually this means the macro was only invoked conditionally." "$LINENO" 5
17558fi
c971b7fa
PA
17559if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
17560 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
17561Usually this means the macro was only invoked conditionally." "$LINENO" 5
17562fi
88b48903
WN
17563
17564
8690e634
JK
17565if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
17566 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
17567Usually this means the macro was only invoked conditionally." "$LINENO" 5
17568fi
c971b7fa
PA
17569if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
17570 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
17571Usually this means the macro was only invoked conditionally." "$LINENO" 5
17572fi
17573
17574 gl_libobjs=
17575 gl_ltlibobjs=
17576 if test -n "$gl_LIBOBJS"; then
17577 # Remove the extension.
17578 sed_drop_objext='s/\.o$//;s/\.obj$//'
17579 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17580 gl_libobjs="$gl_libobjs $i.$ac_objext"
17581 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17582 done
17583 fi
17584 gl_LIBOBJS=$gl_libobjs
17585
17586 gl_LTLIBOBJS=$gl_ltlibobjs
17587
17588
17589
17590 gltests_libobjs=
17591 gltests_ltlibobjs=
17592 if test -n "$gltests_LIBOBJS"; then
17593 # Remove the extension.
17594 sed_drop_objext='s/\.o$//;s/\.obj$//'
17595 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17596 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17597 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17598 done
17599 fi
17600 gltests_LIBOBJS=$gltests_libobjs
17601
17602 gltests_LTLIBOBJS=$gltests_ltlibobjs
17603
17604
17605if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17606 as_fn_error "conditional \"AMDEP\" was never defined.
17607Usually this means the macro was only invoked conditionally." "$LINENO" 5
17608fi
17609if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17610 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17611Usually this means the macro was only invoked conditionally." "$LINENO" 5
17612fi
17613 if test -n "$EXEEXT"; then
17614 am__EXEEXT_TRUE=
17615 am__EXEEXT_FALSE='#'
17616else
17617 am__EXEEXT_TRUE='#'
17618 am__EXEEXT_FALSE=
17619fi
17620
17621
17622: ${CONFIG_STATUS=./config.status}
17623ac_write_fail=0
17624ac_clean_files_save=$ac_clean_files
17625ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17626{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17627$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17628as_write_fail=0
17629cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17630#! $SHELL
17631# Generated by $as_me.
17632# Run this file to recreate the current configuration.
17633# Compiler output produced by configure, useful for debugging
17634# configure, is in config.log if it exists.
17635
17636debug=false
17637ac_cs_recheck=false
17638ac_cs_silent=false
17639
17640SHELL=\${CONFIG_SHELL-$SHELL}
17641export SHELL
17642_ASEOF
17643cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17644## -------------------- ##
17645## M4sh Initialization. ##
17646## -------------------- ##
17647
17648# Be more Bourne compatible
17649DUALCASE=1; export DUALCASE # for MKS sh
17650if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17651 emulate sh
17652 NULLCMD=:
17653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17654 # is contrary to our usage. Disable this feature.
17655 alias -g '${1+"$@"}'='"$@"'
17656 setopt NO_GLOB_SUBST
17657else
17658 case `(set -o) 2>/dev/null` in #(
17659 *posix*) :
17660 set -o posix ;; #(
17661 *) :
17662 ;;
17663esac
17664fi
17665
17666
17667as_nl='
17668'
17669export as_nl
17670# Printing a long string crashes Solaris 7 /usr/bin/printf.
17671as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17672as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17673as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17674# Prefer a ksh shell builtin over an external printf program on Solaris,
17675# but without wasting forks for bash or zsh.
17676if test -z "$BASH_VERSION$ZSH_VERSION" \
17677 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17678 as_echo='print -r --'
17679 as_echo_n='print -rn --'
17680elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17681 as_echo='printf %s\n'
17682 as_echo_n='printf %s'
17683else
17684 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17685 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17686 as_echo_n='/usr/ucb/echo -n'
17687 else
17688 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17689 as_echo_n_body='eval
17690 arg=$1;
17691 case $arg in #(
17692 *"$as_nl"*)
17693 expr "X$arg" : "X\\(.*\\)$as_nl";
17694 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17695 esac;
17696 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17697 '
17698 export as_echo_n_body
17699 as_echo_n='sh -c $as_echo_n_body as_echo'
17700 fi
17701 export as_echo_body
17702 as_echo='sh -c $as_echo_body as_echo'
17703fi
17704
17705# The user is always right.
17706if test "${PATH_SEPARATOR+set}" != set; then
17707 PATH_SEPARATOR=:
17708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17710 PATH_SEPARATOR=';'
17711 }
17712fi
17713
17714
17715# IFS
17716# We need space, tab and new line, in precisely that order. Quoting is
17717# there to prevent editors from complaining about space-tab.
17718# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17719# splitting by setting IFS to empty value.)
17720IFS=" "" $as_nl"
17721
17722# Find who we are. Look in the path if we contain no directory separator.
17723case $0 in #((
17724 *[\\/]* ) as_myself=$0 ;;
17725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17726for as_dir in $PATH
17727do
17728 IFS=$as_save_IFS
17729 test -z "$as_dir" && as_dir=.
17730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17731 done
17732IFS=$as_save_IFS
17733
17734 ;;
17735esac
17736# We did not find ourselves, most probably we were run as `sh COMMAND'
17737# in which case we are not to be found in the path.
17738if test "x$as_myself" = x; then
17739 as_myself=$0
17740fi
17741if test ! -f "$as_myself"; then
17742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17743 exit 1
17744fi
17745
17746# Unset variables that we do not need and which cause bugs (e.g. in
17747# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17748# suppresses any "Segmentation fault" message there. '((' could
17749# trigger a bug in pdksh 5.2.14.
17750for as_var in BASH_ENV ENV MAIL MAILPATH
17751do eval test x\${$as_var+set} = xset \
17752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17753done
17754PS1='$ '
17755PS2='> '
17756PS4='+ '
17757
17758# NLS nuisances.
17759LC_ALL=C
17760export LC_ALL
17761LANGUAGE=C
17762export LANGUAGE
17763
17764# CDPATH.
17765(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17766
17767
17768# as_fn_error ERROR [LINENO LOG_FD]
17769# ---------------------------------
17770# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17771# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17772# script with status $?, using 1 if that was 0.
17773as_fn_error ()
17774{
17775 as_status=$?; test $as_status -eq 0 && as_status=1
17776 if test "$3"; then
17777 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17779 fi
17780 $as_echo "$as_me: error: $1" >&2
17781 as_fn_exit $as_status
17782} # as_fn_error
17783
17784
17785# as_fn_set_status STATUS
17786# -----------------------
17787# Set $? to STATUS, without forking.
17788as_fn_set_status ()
17789{
17790 return $1
17791} # as_fn_set_status
17792
17793# as_fn_exit STATUS
17794# -----------------
17795# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17796as_fn_exit ()
17797{
17798 set +e
17799 as_fn_set_status $1
17800 exit $1
17801} # as_fn_exit
17802
17803# as_fn_unset VAR
17804# ---------------
17805# Portably unset VAR.
17806as_fn_unset ()
17807{
17808 { eval $1=; unset $1;}
17809}
17810as_unset=as_fn_unset
17811# as_fn_append VAR VALUE
17812# ----------------------
17813# Append the text in VALUE to the end of the definition contained in VAR. Take
17814# advantage of any shell optimizations that allow amortized linear growth over
17815# repeated appends, instead of the typical quadratic growth present in naive
17816# implementations.
17817if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17818 eval 'as_fn_append ()
17819 {
17820 eval $1+=\$2
17821 }'
17822else
17823 as_fn_append ()
17824 {
17825 eval $1=\$$1\$2
17826 }
17827fi # as_fn_append
17828
17829# as_fn_arith ARG...
17830# ------------------
17831# Perform arithmetic evaluation on the ARGs, and store the result in the
17832# global $as_val. Take advantage of shells that can avoid forks. The arguments
17833# must be portable across $(()) and expr.
17834if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17835 eval 'as_fn_arith ()
17836 {
17837 as_val=$(( $* ))
17838 }'
17839else
17840 as_fn_arith ()
17841 {
17842 as_val=`expr "$@" || test $? -eq 1`
17843 }
17844fi # as_fn_arith
17845
17846
17847if expr a : '\(a\)' >/dev/null 2>&1 &&
17848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17849 as_expr=expr
17850else
17851 as_expr=false
17852fi
17853
17854if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17855 as_basename=basename
17856else
17857 as_basename=false
17858fi
17859
17860if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17861 as_dirname=dirname
17862else
17863 as_dirname=false
17864fi
17865
17866as_me=`$as_basename -- "$0" ||
17867$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17868 X"$0" : 'X\(//\)$' \| \
17869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17870$as_echo X/"$0" |
17871 sed '/^.*\/\([^/][^/]*\)\/*$/{
17872 s//\1/
17873 q
17874 }
17875 /^X\/\(\/\/\)$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\/\(\/\).*/{
17880 s//\1/
17881 q
17882 }
17883 s/.*/./; q'`
17884
17885# Avoid depending upon Character Ranges.
17886as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17887as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17888as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17889as_cr_digits='0123456789'
17890as_cr_alnum=$as_cr_Letters$as_cr_digits
17891
17892ECHO_C= ECHO_N= ECHO_T=
17893case `echo -n x` in #(((((
17894-n*)
17895 case `echo 'xy\c'` in
17896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17897 xy) ECHO_C='\c';;
17898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17899 ECHO_T=' ';;
17900 esac;;
17901*)
17902 ECHO_N='-n';;
17903esac
17904
17905rm -f conf$$ conf$$.exe conf$$.file
17906if test -d conf$$.dir; then
17907 rm -f conf$$.dir/conf$$.file
17908else
17909 rm -f conf$$.dir
17910 mkdir conf$$.dir 2>/dev/null
17911fi
17912if (echo >conf$$.file) 2>/dev/null; then
17913 if ln -s conf$$.file conf$$ 2>/dev/null; then
17914 as_ln_s='ln -s'
17915 # ... but there are two gotchas:
17916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17918 # In both cases, we have to default to `cp -p'.
17919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17920 as_ln_s='cp -p'
17921 elif ln conf$$.file conf$$ 2>/dev/null; then
17922 as_ln_s=ln
17923 else
17924 as_ln_s='cp -p'
17925 fi
17926else
17927 as_ln_s='cp -p'
17928fi
17929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17930rmdir conf$$.dir 2>/dev/null
17931
17932
17933# as_fn_mkdir_p
17934# -------------
17935# Create "$as_dir" as a directory, including parents if necessary.
17936as_fn_mkdir_p ()
17937{
17938
17939 case $as_dir in #(
17940 -*) as_dir=./$as_dir;;
17941 esac
17942 test -d "$as_dir" || eval $as_mkdir_p || {
17943 as_dirs=
17944 while :; do
17945 case $as_dir in #(
17946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17947 *) as_qdir=$as_dir;;
17948 esac
17949 as_dirs="'$as_qdir' $as_dirs"
17950 as_dir=`$as_dirname -- "$as_dir" ||
17951$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17952 X"$as_dir" : 'X\(//\)[^/]' \| \
17953 X"$as_dir" : 'X\(//\)$' \| \
17954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17955$as_echo X"$as_dir" |
17956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17957 s//\1/
17958 q
17959 }
17960 /^X\(\/\/\)[^/].*/{
17961 s//\1/
17962 q
17963 }
17964 /^X\(\/\/\)$/{
17965 s//\1/
17966 q
17967 }
17968 /^X\(\/\).*/{
17969 s//\1/
17970 q
17971 }
17972 s/.*/./; q'`
17973 test -d "$as_dir" && break
17974 done
17975 test -z "$as_dirs" || eval "mkdir $as_dirs"
17976 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17977
17978
17979} # as_fn_mkdir_p
17980if mkdir -p . 2>/dev/null; then
17981 as_mkdir_p='mkdir -p "$as_dir"'
17982else
17983 test -d ./-p && rmdir ./-p
17984 as_mkdir_p=false
17985fi
17986
17987if test -x / >/dev/null 2>&1; then
17988 as_test_x='test -x'
17989else
17990 if ls -dL / >/dev/null 2>&1; then
17991 as_ls_L_option=L
17992 else
17993 as_ls_L_option=
17994 fi
17995 as_test_x='
17996 eval sh -c '\''
17997 if test -d "$1"; then
17998 test -d "$1/.";
17999 else
18000 case $1 in #(
18001 -*)set "./$1";;
18002 esac;
18003 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18004 ???[sx]*):;;*)false;;esac;fi
18005 '\'' sh
18006 '
18007fi
18008as_executable_p=$as_test_x
18009
18010# Sed expression to map a string onto a valid CPP name.
18011as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18012
18013# Sed expression to map a string onto a valid variable name.
18014as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18015
18016
18017exec 6>&1
18018## ----------------------------------- ##
18019## Main body of $CONFIG_STATUS script. ##
18020## ----------------------------------- ##
18021_ASEOF
18022test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18023
18024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18025# Save the log message, to keep $0 and so on meaningful, and to
18026# report actual input values of CONFIG_FILES etc. instead of their
18027# values after options handling.
18028ac_log="
18029This file was extended by $as_me, which was
18030generated by GNU Autoconf 2.64. Invocation command line was
18031
18032 CONFIG_FILES = $CONFIG_FILES
18033 CONFIG_HEADERS = $CONFIG_HEADERS
18034 CONFIG_LINKS = $CONFIG_LINKS
18035 CONFIG_COMMANDS = $CONFIG_COMMANDS
18036 $ $0 $@
18037
18038on `(hostname || uname -n) 2>/dev/null | sed 1q`
18039"
18040
18041_ACEOF
18042
18043case $ac_config_files in *"
18044"*) set x $ac_config_files; shift; ac_config_files=$*;;
18045esac
18046
18047case $ac_config_headers in *"
18048"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18049esac
18050
18051
18052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053# Files that config.status was made for.
18054config_files="$ac_config_files"
18055config_headers="$ac_config_headers"
18056config_commands="$ac_config_commands"
18057
18058_ACEOF
18059
18060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18061ac_cs_usage="\
18062\`$as_me' instantiates files and other configuration actions
18063from templates according to the current configuration. Unless the files
18064and actions are specified as TAGs, all are instantiated by default.
18065
18066Usage: $0 [OPTION]... [TAG]...
18067
18068 -h, --help print this help, then exit
18069 -V, --version print version number and configuration settings, then exit
18070 -q, --quiet, --silent
18071 do not print progress messages
18072 -d, --debug don't remove temporary files
18073 --recheck update $as_me by reconfiguring in the same conditions
18074 --file=FILE[:TEMPLATE]
18075 instantiate the configuration file FILE
18076 --header=FILE[:TEMPLATE]
18077 instantiate the configuration header FILE
18078
18079Configuration files:
18080$config_files
18081
18082Configuration headers:
18083$config_headers
18084
18085Configuration commands:
18086$config_commands
18087
18088Report bugs to the package provider."
18089
18090_ACEOF
18091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092ac_cs_version="\\
18093config.status
18094configured by $0, generated by GNU Autoconf 2.64,
18095 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18096
18097Copyright (C) 2009 Free Software Foundation, Inc.
18098This config.status script is free software; the Free Software Foundation
18099gives unlimited permission to copy, distribute and modify it."
18100
18101ac_pwd='$ac_pwd'
18102srcdir='$srcdir'
18103INSTALL='$INSTALL'
18104MKDIR_P='$MKDIR_P'
18105AWK='$AWK'
18106test -n "\$AWK" || AWK=awk
18107_ACEOF
18108
18109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110# The default lists apply if the user does not specify any file.
18111ac_need_defaults=:
18112while test $# != 0
18113do
18114 case $1 in
18115 --*=*)
18116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18118 ac_shift=:
18119 ;;
18120 *)
18121 ac_option=$1
18122 ac_optarg=$2
18123 ac_shift=shift
18124 ;;
18125 esac
18126
18127 case $ac_option in
18128 # Handling of the options.
18129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18130 ac_cs_recheck=: ;;
18131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18132 $as_echo "$ac_cs_version"; exit ;;
18133 --debug | --debu | --deb | --de | --d | -d )
18134 debug=: ;;
18135 --file | --fil | --fi | --f )
18136 $ac_shift
18137 case $ac_optarg in
18138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18139 esac
18140 as_fn_append CONFIG_FILES " '$ac_optarg'"
18141 ac_need_defaults=false;;
18142 --header | --heade | --head | --hea )
18143 $ac_shift
18144 case $ac_optarg in
18145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18146 esac
18147 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18148 ac_need_defaults=false;;
18149 --he | --h)
18150 # Conflict between --help and --header
18151 as_fn_error "ambiguous option: \`$1'
18152Try \`$0 --help' for more information.";;
18153 --help | --hel | -h )
18154 $as_echo "$ac_cs_usage"; exit ;;
18155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18157 ac_cs_silent=: ;;
18158
18159 # This is an error.
18160 -*) as_fn_error "unrecognized option: \`$1'
18161Try \`$0 --help' for more information." ;;
18162
18163 *) as_fn_append ac_config_targets " $1"
18164 ac_need_defaults=false ;;
18165
18166 esac
18167 shift
18168done
18169
18170ac_configure_extra_args=
18171
18172if $ac_cs_silent; then
18173 exec 6>/dev/null
18174 ac_configure_extra_args="$ac_configure_extra_args --silent"
18175fi
18176
18177_ACEOF
18178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18179if \$ac_cs_recheck; then
18180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18181 shift
18182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18183 CONFIG_SHELL='$SHELL'
18184 export CONFIG_SHELL
18185 exec "\$@"
18186fi
18187
18188_ACEOF
18189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18190exec 5>>config.log
18191{
18192 echo
18193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18194## Running $as_me. ##
18195_ASBOX
18196 $as_echo "$ac_log"
18197} >&5
18198
18199_ACEOF
18200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18201#
18202# INIT-COMMANDS
18203#
18204AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18205
18206_ACEOF
18207
18208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18209
18210# Handling of arguments.
18211for ac_config_target in $ac_config_targets
18212do
18213 case $ac_config_target in
18214 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18217 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
18218 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18219
18220 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18221 esac
18222done
18223
18224
18225# If the user did not use the arguments to specify the items to instantiate,
18226# then the envvar interface is used. Set only those that are not.
18227# We use the long form for the default assignment because of an extremely
18228# bizarre bug on SunOS 4.1.3.
18229if $ac_need_defaults; then
18230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18233fi
18234
18235# Have a temporary directory for convenience. Make it in the build tree
18236# simply because there is no reason against having it here, and in addition,
18237# creating and moving files from /tmp can sometimes cause problems.
18238# Hook for its removal unless debugging.
18239# Note that there is a small window in which the directory will not be cleaned:
18240# after its creation but before its name has been assigned to `$tmp'.
18241$debug ||
18242{
18243 tmp=
18244 trap 'exit_status=$?
18245 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18246' 0
18247 trap 'as_fn_exit 1' 1 2 13 15
18248}
18249# Create a (secure) tmp directory for tmp files.
18250
18251{
18252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18253 test -n "$tmp" && test -d "$tmp"
18254} ||
18255{
18256 tmp=./conf$$-$RANDOM
18257 (umask 077 && mkdir "$tmp")
18258} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18259
18260# Set up the scripts for CONFIG_FILES section.
18261# No need to generate them if there are no CONFIG_FILES.
18262# This happens for instance with `./config.status config.h'.
18263if test -n "$CONFIG_FILES"; then
18264
18265
18266ac_cr=`echo X | tr X '\015'`
18267# On cygwin, bash can eat \r inside `` if the user requested igncr.
18268# But we know of no other shell where ac_cr would be empty at this
18269# point, so we can use a bashism as a fallback.
18270if test "x$ac_cr" = x; then
18271 eval ac_cr=\$\'\\r\'
18272fi
18273ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18274if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18275 ac_cs_awk_cr='\r'
18276else
18277 ac_cs_awk_cr=$ac_cr
18278fi
18279
18280echo 'BEGIN {' >"$tmp/subs1.awk" &&
18281_ACEOF
18282
18283
18284{
18285 echo "cat >conf$$subs.awk <<_ACEOF" &&
18286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18287 echo "_ACEOF"
18288} >conf$$subs.sh ||
18289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18290ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18291ac_delim='%!_!# '
18292for ac_last_try in false false false false false :; do
18293 . ./conf$$subs.sh ||
18294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18295
18296 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18297 if test $ac_delim_n = $ac_delim_num; then
18298 break
18299 elif $ac_last_try; then
18300 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18301 else
18302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18303 fi
18304done
18305rm -f conf$$subs.sh
18306
18307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18309_ACEOF
18310sed -n '
18311h
18312s/^/S["/; s/!.*/"]=/
18313p
18314g
18315s/^[^!]*!//
18316:repl
18317t repl
18318s/'"$ac_delim"'$//
18319t delim
18320:nl
18321h
18322s/\(.\{148\}\).*/\1/
18323t more1
18324s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18325p
18326n
18327b repl
18328:more1
18329s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18330p
18331g
18332s/.\{148\}//
18333t nl
18334:delim
18335h
18336s/\(.\{148\}\).*/\1/
18337t more2
18338s/["\\]/\\&/g; s/^/"/; s/$/"/
18339p
18340b
18341:more2
18342s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18343p
18344g
18345s/.\{148\}//
18346t delim
18347' <conf$$subs.awk | sed '
18348/^[^""]/{
18349 N
18350 s/\n//
18351}
18352' >>$CONFIG_STATUS || ac_write_fail=1
18353rm -f conf$$subs.awk
18354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18355_ACAWK
18356cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18357 for (key in S) S_is_set[key] = 1
18358 FS = "\a"
18359
18360}
18361{
18362 line = $ 0
18363 nfields = split(line, field, "@")
18364 substed = 0
18365 len = length(field[1])
18366 for (i = 2; i < nfields; i++) {
18367 key = field[i]
18368 keylen = length(key)
18369 if (S_is_set[key]) {
18370 value = S[key]
18371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18372 len += length(value) + length(field[++i])
18373 substed = 1
18374 } else
18375 len += 1 + keylen
18376 }
18377
18378 print line
18379}
18380
18381_ACAWK
18382_ACEOF
18383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18386else
18387 cat
18388fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18389 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18390_ACEOF
18391
18392# VPATH may cause trouble with some makes, so we remove $(srcdir),
18393# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18394# trailing colons and then remove the whole line if VPATH becomes empty
18395# (actually we leave an empty line to preserve line numbers).
18396if test "x$srcdir" = x.; then
18397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18398s/:*\$(srcdir):*/:/
18399s/:*\${srcdir}:*/:/
18400s/:*@srcdir@:*/:/
18401s/^\([^=]*=[ ]*\):*/\1/
18402s/:*$//
18403s/^[^=]*=[ ]*$//
18404}'
18405fi
18406
18407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18408fi # test -n "$CONFIG_FILES"
18409
18410# Set up the scripts for CONFIG_HEADERS section.
18411# No need to generate them if there are no CONFIG_HEADERS.
18412# This happens for instance with `./config.status Makefile'.
18413if test -n "$CONFIG_HEADERS"; then
18414cat >"$tmp/defines.awk" <<\_ACAWK ||
18415BEGIN {
18416_ACEOF
18417
18418# Transform confdefs.h into an awk script `defines.awk', embedded as
18419# here-document in config.status, that substitutes the proper values into
18420# config.h.in to produce config.h.
18421
18422# Create a delimiter string that does not exist in confdefs.h, to ease
18423# handling of long lines.
18424ac_delim='%!_!# '
18425for ac_last_try in false false :; do
18426 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18427 if test -z "$ac_t"; then
18428 break
18429 elif $ac_last_try; then
18430 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18431 else
18432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18433 fi
18434done
18435
18436# For the awk script, D is an array of macro values keyed by name,
18437# likewise P contains macro parameters if any. Preserve backslash
18438# newline sequences.
18439
18440ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18441sed -n '
18442s/.\{148\}/&'"$ac_delim"'/g
18443t rset
18444:rset
18445s/^[ ]*#[ ]*define[ ][ ]*/ /
18446t def
18447d
18448:def
18449s/\\$//
18450t bsnl
18451s/["\\]/\\&/g
18452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18453D["\1"]=" \3"/p
18454s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18455d
18456:bsnl
18457s/["\\]/\\&/g
18458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18459D["\1"]=" \3\\\\\\n"\\/p
18460t cont
18461s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18462t cont
18463d
18464:cont
18465n
18466s/.\{148\}/&'"$ac_delim"'/g
18467t clear
18468:clear
18469s/\\$//
18470t bsnlc
18471s/["\\]/\\&/g; s/^/"/; s/$/"/p
18472d
18473:bsnlc
18474s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18475b cont
18476' <confdefs.h | sed '
18477s/'"$ac_delim"'/"\\\
18478"/g' >>$CONFIG_STATUS || ac_write_fail=1
18479
18480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481 for (key in D) D_is_set[key] = 1
18482 FS = "\a"
18483}
18484/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18485 line = \$ 0
18486 split(line, arg, " ")
18487 if (arg[1] == "#") {
18488 defundef = arg[2]
18489 mac1 = arg[3]
18490 } else {
18491 defundef = substr(arg[1], 2)
18492 mac1 = arg[2]
18493 }
18494 split(mac1, mac2, "(") #)
18495 macro = mac2[1]
18496 prefix = substr(line, 1, index(line, defundef) - 1)
18497 if (D_is_set[macro]) {
18498 # Preserve the white space surrounding the "#".
18499 print prefix "define", macro P[macro] D[macro]
18500 next
18501 } else {
18502 # Replace #undef with comments. This is necessary, for example,
18503 # in the case of _POSIX_SOURCE, which is predefined and required
18504 # on some systems where configure will not decide to define it.
18505 if (defundef == "undef") {
18506 print "/*", prefix defundef, macro, "*/"
18507 next
18508 }
18509 }
18510}
18511{ print }
18512_ACAWK
18513_ACEOF
18514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18516fi # test -n "$CONFIG_HEADERS"
18517
18518
18519eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18520shift
18521for ac_tag
18522do
18523 case $ac_tag in
18524 :[FHLC]) ac_mode=$ac_tag; continue;;
18525 esac
18526 case $ac_mode$ac_tag in
18527 :[FHL]*:*);;
18528 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18529 :[FH]-) ac_tag=-:-;;
18530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18531 esac
18532 ac_save_IFS=$IFS
18533 IFS=:
18534 set x $ac_tag
18535 IFS=$ac_save_IFS
18536 shift
18537 ac_file=$1
18538 shift
18539
18540 case $ac_mode in
18541 :L) ac_source=$1;;
18542 :[FH])
18543 ac_file_inputs=
18544 for ac_f
18545 do
18546 case $ac_f in
18547 -) ac_f="$tmp/stdin";;
18548 *) # Look for the file first in the build tree, then in the source tree
18549 # (if the path is not absolute). The absolute path cannot be DOS-style,
18550 # because $ac_f cannot contain `:'.
18551 test -f "$ac_f" ||
18552 case $ac_f in
18553 [\\/$]*) false;;
18554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18555 esac ||
18556 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18557 esac
18558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18559 as_fn_append ac_file_inputs " '$ac_f'"
18560 done
18561
18562 # Let's still pretend it is `configure' which instantiates (i.e., don't
18563 # use $as_me), people would be surprised to read:
18564 # /* config.h. Generated by config.status. */
18565 configure_input='Generated from '`
18566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18567 `' by configure.'
18568 if test x"$ac_file" != x-; then
18569 configure_input="$ac_file. $configure_input"
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18571$as_echo "$as_me: creating $ac_file" >&6;}
18572 fi
18573 # Neutralize special characters interpreted by sed in replacement strings.
18574 case $configure_input in #(
18575 *\&* | *\|* | *\\* )
18576 ac_sed_conf_input=`$as_echo "$configure_input" |
18577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18578 *) ac_sed_conf_input=$configure_input;;
18579 esac
18580
18581 case $ac_tag in
18582 *:-:* | *:-) cat >"$tmp/stdin" \
18583 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18584 esac
18585 ;;
18586 esac
18587
18588 ac_dir=`$as_dirname -- "$ac_file" ||
18589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18590 X"$ac_file" : 'X\(//\)[^/]' \| \
18591 X"$ac_file" : 'X\(//\)$' \| \
18592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18593$as_echo X"$ac_file" |
18594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18595 s//\1/
18596 q
18597 }
18598 /^X\(\/\/\)[^/].*/{
18599 s//\1/
18600 q
18601 }
18602 /^X\(\/\/\)$/{
18603 s//\1/
18604 q
18605 }
18606 /^X\(\/\).*/{
18607 s//\1/
18608 q
18609 }
18610 s/.*/./; q'`
18611 as_dir="$ac_dir"; as_fn_mkdir_p
18612 ac_builddir=.
18613
18614case "$ac_dir" in
18615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18616*)
18617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18618 # A ".." for each directory in $ac_dir_suffix.
18619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18620 case $ac_top_builddir_sub in
18621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18623 esac ;;
18624esac
18625ac_abs_top_builddir=$ac_pwd
18626ac_abs_builddir=$ac_pwd$ac_dir_suffix
18627# for backward compatibility:
18628ac_top_builddir=$ac_top_build_prefix
18629
18630case $srcdir in
18631 .) # We are building in place.
18632 ac_srcdir=.
18633 ac_top_srcdir=$ac_top_builddir_sub
18634 ac_abs_top_srcdir=$ac_pwd ;;
18635 [\\/]* | ?:[\\/]* ) # Absolute name.
18636 ac_srcdir=$srcdir$ac_dir_suffix;
18637 ac_top_srcdir=$srcdir
18638 ac_abs_top_srcdir=$srcdir ;;
18639 *) # Relative name.
18640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18641 ac_top_srcdir=$ac_top_build_prefix$srcdir
18642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18643esac
18644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18645
18646
18647 case $ac_mode in
18648 :F)
18649 #
18650 # CONFIG_FILE
18651 #
18652
18653 case $INSTALL in
18654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18656 esac
18657 ac_MKDIR_P=$MKDIR_P
18658 case $MKDIR_P in
18659 [\\/$]* | ?:[\\/]* ) ;;
18660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18661 esac
18662_ACEOF
18663
18664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18665# If the template does not know about datarootdir, expand it.
18666# FIXME: This hack should be removed a few years after 2.60.
18667ac_datarootdir_hack=; ac_datarootdir_seen=
18668ac_sed_dataroot='
18669/datarootdir/ {
18670 p
18671 q
18672}
18673/@datadir@/p
18674/@docdir@/p
18675/@infodir@/p
18676/@localedir@/p
18677/@mandir@/p'
18678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18679*datarootdir*) ac_datarootdir_seen=yes;;
18680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18682$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18683_ACEOF
18684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685 ac_datarootdir_hack='
18686 s&@datadir@&$datadir&g
18687 s&@docdir@&$docdir&g
18688 s&@infodir@&$infodir&g
18689 s&@localedir@&$localedir&g
18690 s&@mandir@&$mandir&g
18691 s&\\\${datarootdir}&$datarootdir&g' ;;
18692esac
18693_ACEOF
18694
18695# Neutralize VPATH when `$srcdir' = `.'.
18696# Shell code in configure.ac might set extrasub.
18697# FIXME: do we really want to maintain this feature?
18698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18699ac_sed_extra="$ac_vpsub
18700$extrasub
18701_ACEOF
18702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18703:t
18704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18705s|@configure_input@|$ac_sed_conf_input|;t t
18706s&@top_builddir@&$ac_top_builddir_sub&;t t
18707s&@top_build_prefix@&$ac_top_build_prefix&;t t
18708s&@srcdir@&$ac_srcdir&;t t
18709s&@abs_srcdir@&$ac_abs_srcdir&;t t
18710s&@top_srcdir@&$ac_top_srcdir&;t t
18711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18712s&@builddir@&$ac_builddir&;t t
18713s&@abs_builddir@&$ac_abs_builddir&;t t
18714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18715s&@INSTALL@&$ac_INSTALL&;t t
18716s&@MKDIR_P@&$ac_MKDIR_P&;t t
18717$ac_datarootdir_hack
18718"
18719eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18720 || as_fn_error "could not create $ac_file" "$LINENO" 5
18721
18722test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18723 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18726which seems to be undefined. Please make sure it is defined." >&5
18727$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18728which seems to be undefined. Please make sure it is defined." >&2;}
18729
18730 rm -f "$tmp/stdin"
18731 case $ac_file in
18732 -) cat "$tmp/out" && rm -f "$tmp/out";;
18733 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18734 esac \
18735 || as_fn_error "could not create $ac_file" "$LINENO" 5
18736 ;;
18737 :H)
18738 #
18739 # CONFIG_HEADER
18740 #
18741 if test x"$ac_file" != x-; then
18742 {
18743 $as_echo "/* $configure_input */" \
18744 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18745 } >"$tmp/config.h" \
18746 || as_fn_error "could not create $ac_file" "$LINENO" 5
18747 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18749$as_echo "$as_me: $ac_file is unchanged" >&6;}
18750 else
18751 rm -f "$ac_file"
18752 mv "$tmp/config.h" "$ac_file" \
18753 || as_fn_error "could not create $ac_file" "$LINENO" 5
18754 fi
18755 else
18756 $as_echo "/* $configure_input */" \
18757 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18758 || as_fn_error "could not create -" "$LINENO" 5
18759 fi
18760# Compute "$ac_file"'s index in $config_headers.
18761_am_arg="$ac_file"
18762_am_stamp_count=1
18763for _am_header in $config_headers :; do
18764 case $_am_header in
18765 $_am_arg | $_am_arg:* )
18766 break ;;
18767 * )
18768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18769 esac
18770done
18771echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18772$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18773 X"$_am_arg" : 'X\(//\)[^/]' \| \
18774 X"$_am_arg" : 'X\(//\)$' \| \
18775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18776$as_echo X"$_am_arg" |
18777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18778 s//\1/
18779 q
18780 }
18781 /^X\(\/\/\)[^/].*/{
18782 s//\1/
18783 q
18784 }
18785 /^X\(\/\/\)$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\).*/{
18790 s//\1/
18791 q
18792 }
18793 s/.*/./; q'`/stamp-h$_am_stamp_count
18794 ;;
18795
18796 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18797$as_echo "$as_me: executing $ac_file commands" >&6;}
18798 ;;
18799 esac
18800
18801
18802 case $ac_file$ac_mode in
18803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18805 # are listed without --file. Let's play safe and only enable the eval
18806 # if we detect the quoting.
18807 case $CONFIG_FILES in
18808 *\'*) eval set x "$CONFIG_FILES" ;;
18809 *) set x $CONFIG_FILES ;;
18810 esac
18811 shift
18812 for mf
18813 do
18814 # Strip MF so we end up with the name of the file.
18815 mf=`echo "$mf" | sed -e 's/:.*$//'`
18816 # Check whether this is an Automake generated Makefile or not.
18817 # We used to match only the files named `Makefile.in', but
18818 # some people rename them; so instead we look at the file content.
18819 # Grep'ing the first line is not enough: some people post-process
18820 # each Makefile.in and add a new line on top of each file to say so.
18821 # Grep'ing the whole file is not good either: AIX grep has a line
18822 # limit of 2048, but all sed's we know have understand at least 4000.
18823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18824 dirpart=`$as_dirname -- "$mf" ||
18825$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18826 X"$mf" : 'X\(//\)[^/]' \| \
18827 X"$mf" : 'X\(//\)$' \| \
18828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18829$as_echo X"$mf" |
18830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18831 s//\1/
18832 q
18833 }
18834 /^X\(\/\/\)[^/].*/{
18835 s//\1/
18836 q
18837 }
18838 /^X\(\/\/\)$/{
18839 s//\1/
18840 q
18841 }
18842 /^X\(\/\).*/{
18843 s//\1/
18844 q
18845 }
18846 s/.*/./; q'`
18847 else
18848 continue
18849 fi
18850 # Extract the definition of DEPDIR, am__include, and am__quote
18851 # from the Makefile without running `make'.
18852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18853 test -z "$DEPDIR" && continue
18854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18855 test -z "am__include" && continue
18856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18857 # When using ansi2knr, U may be empty or an underscore; expand it
18858 U=`sed -n 's/^U = //p' < "$mf"`
18859 # Find all dependency output files, they are included files with
18860 # $(DEPDIR) in their names. We invoke sed twice because it is the
18861 # simplest approach to changing $(DEPDIR) to its actual value in the
18862 # expansion.
18863 for file in `sed -n "
18864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18866 # Make sure the directory exists.
18867 test -f "$dirpart/$file" && continue
18868 fdir=`$as_dirname -- "$file" ||
18869$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18870 X"$file" : 'X\(//\)[^/]' \| \
18871 X"$file" : 'X\(//\)$' \| \
18872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18873$as_echo X"$file" |
18874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18875 s//\1/
18876 q
18877 }
18878 /^X\(\/\/\)[^/].*/{
18879 s//\1/
18880 q
18881 }
18882 /^X\(\/\/\)$/{
18883 s//\1/
18884 q
18885 }
18886 /^X\(\/\).*/{
18887 s//\1/
18888 q
18889 }
18890 s/.*/./; q'`
18891 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18892 # echo "creating $dirpart/$file"
18893 echo '# dummy' > "$dirpart/$file"
18894 done
18895 done
18896}
18897 ;;
18898 "default":C)
18899case x$CONFIG_HEADERS in
18900xconfig.h:config.in)
18901echo > stamp-h ;;
18902esac
18903 ;;
18904
18905 esac
18906done # for ac_tag
18907
18908
18909as_fn_exit 0
18910_ACEOF
18911ac_clean_files=$ac_clean_files_save
18912
18913test $ac_write_fail = 0 ||
18914 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18915
18916
18917# configure is writing to config.log, and then calls config.status.
18918# config.status does its own redirection, appending to config.log.
18919# Unfortunately, on DOS this fails, as config.log is still kept open
18920# by configure, so config.status won't be able to write to it; its
18921# output is simply discarded. So we exec the FD to /dev/null,
18922# effectively closing config.log, so it can be properly (re)opened and
18923# appended to by config.status. When coming back to configure, we
18924# need to make the FD available again.
18925if test "$no_create" != yes; then
18926 ac_cs_success=:
18927 ac_config_status_args=
18928 test "$silent" = yes &&
18929 ac_config_status_args="$ac_config_status_args --quiet"
18930 exec 5>/dev/null
18931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18932 exec 5>>config.log
18933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18934 # would make configure fail if this is the last instruction.
18935 $ac_cs_success || as_fn_exit $?
18936fi
18937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18940fi
18941
18942
18943exit 0
This page took 1.856615 seconds and 4 git commands to generate.