]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gnulib/configure
gdb/
[thirdparty/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
8690e634 591gl_fnmatch_required=POSIX
c971b7fa 592gl_func_list=
8690e634 593gl_header_list=
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
619MKDIR_P
620INSTALL_STRIP_PROGRAM
621STRIP
622install_sh
623MAKEINFO
624AUTOHEADER
625AUTOMAKE
626AUTOCONF
627ACLOCAL
628VERSION
629PACKAGE
630CYGPATH_W
631am__isrc
632INSTALL_DATA
633INSTALL_SCRIPT
634INSTALL_PROGRAM
635LIBGNU_LTLIBDEPS
636LIBGNU_LIBDEPS
637gltests_WITNESS
8690e634
JK
638REPLACE_TOWLOWER
639REPLACE_ISWCNTRL
640HAVE_WCTYPE_H
641NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
642NEXT_WCTYPE_H
643HAVE_ISWCNTRL
644REPLACE_ISWBLANK
645HAVE_WCTRANS_T
646HAVE_WCTYPE_T
647HAVE_ISWBLANK
648GNULIB_TOWCTRANS
649GNULIB_WCTRANS
650GNULIB_ISWCTYPE
651GNULIB_WCTYPE
652GNULIB_ISWBLANK
653HAVE_WINT_T
654HAVE_FEATURES_H
655NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
656NEXT_WCHAR_H
c971b7fa
PA
657NEXT_AS_FIRST_DIRECTIVE_STRING_H
658NEXT_STRING_H
659NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
660NEXT_STDDEF_H
661GL_GENERATE_STDDEF_H_FALSE
662GL_GENERATE_STDDEF_H_TRUE
663STDDEF_H
664HAVE_WCHAR_T
665REPLACE_NULL
8690e634
JK
666HAVE__BOOL
667GL_GENERATE_STDBOOL_H_FALSE
668GL_GENERATE_STDBOOL_H_TRUE
669STDBOOL_H
c971b7fa
PA
670UNDEFINE_STRTOK_R
671REPLACE_STRTOK_R
672REPLACE_STRSIGNAL
673REPLACE_STRNLEN
674REPLACE_STRNDUP
675REPLACE_STRNCAT
676REPLACE_STRERROR_R
677REPLACE_STRERROR
678REPLACE_STRCHRNUL
679REPLACE_STRCASESTR
680REPLACE_STRSTR
681REPLACE_STRDUP
682REPLACE_STPNCPY
683REPLACE_MEMMEM
684REPLACE_MEMCHR
685HAVE_STRVERSCMP
686HAVE_DECL_STRSIGNAL
687HAVE_DECL_STRERROR_R
688HAVE_DECL_STRTOK_R
689HAVE_STRCASESTR
690HAVE_STRSEP
691HAVE_STRPBRK
692HAVE_DECL_STRNLEN
693HAVE_DECL_STRNDUP
694HAVE_DECL_STRDUP
695HAVE_STRCHRNUL
696HAVE_STPNCPY
697HAVE_STPCPY
698HAVE_RAWMEMCHR
699HAVE_DECL_MEMRCHR
700HAVE_MEMPCPY
701HAVE_DECL_MEMMEM
702HAVE_MEMCHR
703HAVE_FFSLL
704HAVE_FFSL
705HAVE_MBSLEN
706GNULIB_STRVERSCMP
707GNULIB_STRSIGNAL
708GNULIB_STRERROR_R
709GNULIB_STRERROR
710GNULIB_MBSTOK_R
711GNULIB_MBSSEP
712GNULIB_MBSSPN
713GNULIB_MBSPBRK
714GNULIB_MBSCSPN
715GNULIB_MBSCASESTR
716GNULIB_MBSPCASECMP
717GNULIB_MBSNCASECMP
718GNULIB_MBSCASECMP
719GNULIB_MBSSTR
720GNULIB_MBSRCHR
721GNULIB_MBSCHR
722GNULIB_MBSNLEN
723GNULIB_MBSLEN
724GNULIB_STRTOK_R
725GNULIB_STRCASESTR
726GNULIB_STRSTR
727GNULIB_STRSEP
728GNULIB_STRPBRK
729GNULIB_STRNLEN
730GNULIB_STRNDUP
731GNULIB_STRNCAT
732GNULIB_STRDUP
733GNULIB_STRCHRNUL
734GNULIB_STPNCPY
735GNULIB_STPCPY
736GNULIB_RAWMEMCHR
737GNULIB_MEMRCHR
738GNULIB_MEMPCPY
739GNULIB_MEMMEM
740GNULIB_MEMCHR
741GNULIB_FFSLL
742GNULIB_FFSL
8690e634
JK
743LOCALE_FR
744LOCALE_FR_UTF8
745LOCALE_ZH_CN
746LOCALE_JA
747REPLACE_WCSWIDTH
748REPLACE_WCWIDTH
749REPLACE_WCSNRTOMBS
750REPLACE_WCSRTOMBS
751REPLACE_WCRTOMB
752REPLACE_MBSNRTOWCS
753REPLACE_MBSRTOWCS
754REPLACE_MBRLEN
755REPLACE_MBRTOWC
756REPLACE_MBSINIT
757REPLACE_WCTOB
758REPLACE_BTOWC
759REPLACE_MBSTATE_T
760HAVE_DECL_WCWIDTH
761HAVE_DECL_WCTOB
762HAVE_WCSWIDTH
763HAVE_WCSTOK
764HAVE_WCSSTR
765HAVE_WCSPBRK
766HAVE_WCSSPN
767HAVE_WCSCSPN
768HAVE_WCSRCHR
769HAVE_WCSCHR
770HAVE_WCSDUP
771HAVE_WCSXFRM
772HAVE_WCSCOLL
773HAVE_WCSNCASECMP
774HAVE_WCSCASECMP
775HAVE_WCSNCMP
776HAVE_WCSCMP
777HAVE_WCSNCAT
778HAVE_WCSCAT
779HAVE_WCPNCPY
780HAVE_WCSNCPY
781HAVE_WCPCPY
782HAVE_WCSCPY
783HAVE_WCSNLEN
784HAVE_WCSLEN
785HAVE_WMEMSET
786HAVE_WMEMMOVE
787HAVE_WMEMCPY
788HAVE_WMEMCMP
789HAVE_WMEMCHR
790HAVE_WCSNRTOMBS
791HAVE_WCSRTOMBS
792HAVE_WCRTOMB
793HAVE_MBSNRTOWCS
794HAVE_MBSRTOWCS
795HAVE_MBRLEN
796HAVE_MBRTOWC
797HAVE_MBSINIT
798HAVE_BTOWC
799GNULIB_WCSWIDTH
800GNULIB_WCSTOK
801GNULIB_WCSSTR
802GNULIB_WCSPBRK
803GNULIB_WCSSPN
804GNULIB_WCSCSPN
805GNULIB_WCSRCHR
806GNULIB_WCSCHR
807GNULIB_WCSDUP
808GNULIB_WCSXFRM
809GNULIB_WCSCOLL
810GNULIB_WCSNCASECMP
811GNULIB_WCSCASECMP
812GNULIB_WCSNCMP
813GNULIB_WCSCMP
814GNULIB_WCSNCAT
815GNULIB_WCSCAT
816GNULIB_WCPNCPY
817GNULIB_WCSNCPY
818GNULIB_WCPCPY
819GNULIB_WCSCPY
820GNULIB_WCSNLEN
821GNULIB_WCSLEN
822GNULIB_WMEMSET
823GNULIB_WMEMMOVE
824GNULIB_WMEMCPY
825GNULIB_WMEMCMP
826GNULIB_WMEMCHR
827GNULIB_WCWIDTH
828GNULIB_WCSNRTOMBS
829GNULIB_WCSRTOMBS
830GNULIB_WCRTOMB
831GNULIB_MBSNRTOWCS
832GNULIB_MBSRTOWCS
833GNULIB_MBRLEN
834GNULIB_MBRTOWC
835GNULIB_MBSINIT
836GNULIB_WCTOB
837GNULIB_BTOWC
838LOCALCHARSET_TESTS_ENVIRONMENT
839GLIBC21
c971b7fa
PA
840NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841NEXT_INTTYPES_H
842UINT64_MAX_EQ_ULONG_MAX
843UINT32_MAX_LT_UINTMAX_MAX
844PRIPTR_PREFIX
845PRI_MACROS_BROKEN
846INT64_MAX_EQ_LONG_MAX
847INT32_MAX_LT_INTMAX_MAX
848REPLACE_STRTOIMAX
849HAVE_DECL_STRTOUMAX
850HAVE_DECL_STRTOIMAX
851HAVE_DECL_IMAXDIV
852HAVE_DECL_IMAXABS
853GNULIB_STRTOUMAX
854GNULIB_STRTOIMAX
855GNULIB_IMAXDIV
856GNULIB_IMAXABS
857GL_GENERATE_STDINT_H_FALSE
858GL_GENERATE_STDINT_H_TRUE
859STDINT_H
860WINT_T_SUFFIX
861WCHAR_T_SUFFIX
862SIG_ATOMIC_T_SUFFIX
863SIZE_T_SUFFIX
864PTRDIFF_T_SUFFIX
865HAVE_SIGNED_WINT_T
866HAVE_SIGNED_WCHAR_T
867HAVE_SIGNED_SIG_ATOMIC_T
868BITSIZEOF_WINT_T
869BITSIZEOF_WCHAR_T
870BITSIZEOF_SIG_ATOMIC_T
871BITSIZEOF_SIZE_T
872BITSIZEOF_PTRDIFF_T
873APPLE_UNIVERSAL_BUILD
874HAVE_SYS_BITYPES_H
875HAVE_SYS_INTTYPES_H
876HAVE_STDINT_H
877NEXT_AS_FIRST_DIRECTIVE_STDINT_H
878NEXT_STDINT_H
a143c6de
JB
879PRAGMA_COLUMNS
880PRAGMA_SYSTEM_HEADER
881INCLUDE_NEXT_AS_FIRST_DIRECTIVE
882INCLUDE_NEXT
c971b7fa
PA
883HAVE_SYS_TYPES_H
884HAVE_INTTYPES_H
885HAVE_WCHAR_H
886HAVE_UNSIGNED_LONG_LONG_INT
887HAVE_LONG_LONG_INT
8690e634
JK
888GL_GENERATE_FNMATCH_H_FALSE
889GL_GENERATE_FNMATCH_H_TRUE
890FNMATCH_H
891pkglibexecdir
892lispdir
893GL_GENERATE_ALLOCA_H_FALSE
894GL_GENERATE_ALLOCA_H_TRUE
895ALLOCA_H
896ALLOCA
c971b7fa
PA
897GL_COND_LIBTOOL_FALSE
898GL_COND_LIBTOOL_TRUE
899target_os
900target_vendor
901target_cpu
902target
903RANLIB
904ARFLAGS
905AR
906EGREP
907GREP
908CPP
909host_os
910host_vendor
911host_cpu
912host
913build_os
914build_vendor
915build_cpu
916build
917OBJEXT
918EXEEXT
919ac_ct_CC
920CPPFLAGS
921LDFLAGS
922CFLAGS
923CC
924MAINT
925MAINTAINER_MODE_FALSE
926MAINTAINER_MODE_TRUE
927target_alias
928host_alias
929build_alias
930LIBS
931ECHO_T
932ECHO_N
933ECHO_C
934DEFS
935mandir
936localedir
937libdir
938psdir
939pdfdir
940dvidir
941htmldir
942infodir
943docdir
944oldincludedir
945includedir
946localstatedir
947sharedstatedir
948sysconfdir
949datadir
950datarootdir
951libexecdir
952sbindir
953bindir
954program_transform_name
955prefix
956exec_prefix
957PACKAGE_URL
958PACKAGE_BUGREPORT
959PACKAGE_STRING
960PACKAGE_VERSION
961PACKAGE_TARNAME
962PACKAGE_NAME
963PATH_SEPARATOR
964SHELL'
965ac_subst_files=''
966ac_user_opts='
967enable_option_checking
968enable_maintainer_mode
969enable_dependency_tracking
970'
971 ac_precious_vars='build_alias
972host_alias
973target_alias
974CC
975CFLAGS
976LDFLAGS
977LIBS
978CPPFLAGS
979CPP'
980
981
982# Initialize some variables set by options.
983ac_init_help=
984ac_init_version=false
985ac_unrecognized_opts=
986ac_unrecognized_sep=
987# The variables have the same names as the options, with
988# dashes changed to underlines.
989cache_file=/dev/null
990exec_prefix=NONE
991no_create=
992no_recursion=
993prefix=NONE
994program_prefix=NONE
995program_suffix=NONE
996program_transform_name=s,x,x,
997silent=
998site=
999srcdir=
1000verbose=
1001x_includes=NONE
1002x_libraries=NONE
1003
1004# Installation directory options.
1005# These are left unexpanded so users can "make install exec_prefix=/foo"
1006# and all the variables that are supposed to be based on exec_prefix
1007# by default will actually change.
1008# Use braces instead of parens because sh, perl, etc. also accept them.
1009# (The list follows the same order as the GNU Coding Standards.)
1010bindir='${exec_prefix}/bin'
1011sbindir='${exec_prefix}/sbin'
1012libexecdir='${exec_prefix}/libexec'
1013datarootdir='${prefix}/share'
1014datadir='${datarootdir}'
1015sysconfdir='${prefix}/etc'
1016sharedstatedir='${prefix}/com'
1017localstatedir='${prefix}/var'
1018includedir='${prefix}/include'
1019oldincludedir='/usr/include'
1020docdir='${datarootdir}/doc/${PACKAGE}'
1021infodir='${datarootdir}/info'
1022htmldir='${docdir}'
1023dvidir='${docdir}'
1024pdfdir='${docdir}'
1025psdir='${docdir}'
1026libdir='${exec_prefix}/lib'
1027localedir='${datarootdir}/locale'
1028mandir='${datarootdir}/man'
1029
1030ac_prev=
1031ac_dashdash=
1032for ac_option
1033do
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\$ac_option
1037 ac_prev=
1038 continue
1039 fi
1040
1041 case $ac_option in
1042 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 *) ac_optarg=yes ;;
1044 esac
1045
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048 case $ac_dashdash$ac_option in
1049 --)
1050 ac_dashdash=yes ;;
1051
1052 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053 ac_prev=bindir ;;
1054 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055 bindir=$ac_optarg ;;
1056
1057 -build | --build | --buil | --bui | --bu)
1058 ac_prev=build_alias ;;
1059 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060 build_alias=$ac_optarg ;;
1061
1062 -cache-file | --cache-file | --cache-fil | --cache-fi \
1063 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064 ac_prev=cache_file ;;
1065 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067 cache_file=$ac_optarg ;;
1068
1069 --config-cache | -C)
1070 cache_file=config.cache ;;
1071
1072 -datadir | --datadir | --datadi | --datad)
1073 ac_prev=datadir ;;
1074 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075 datadir=$ac_optarg ;;
1076
1077 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078 | --dataroo | --dataro | --datar)
1079 ac_prev=datarootdir ;;
1080 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082 datarootdir=$ac_optarg ;;
1083
1084 -disable-* | --disable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093"enable_$ac_useropt"
1094"*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=no ;;
1099
1100 -docdir | --docdir | --docdi | --doc | --do)
1101 ac_prev=docdir ;;
1102 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103 docdir=$ac_optarg ;;
1104
1105 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106 ac_prev=dvidir ;;
1107 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108 dvidir=$ac_optarg ;;
1109
1110 -enable-* | --enable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid feature name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"enable_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval enable_$ac_useropt=\$ac_optarg ;;
1125
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1134
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1137 with_gas=yes ;;
1138
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1145
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1150
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 ac_prev=htmldir ;;
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 | --ht=*)
1155 htmldir=$ac_optarg ;;
1156
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1163
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 ac_prev=infodir ;;
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1168
1169 -libdir | --libdir | --libdi | --libd)
1170 ac_prev=libdir ;;
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1173
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1180
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1185
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1192
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 ac_prev=mandir ;;
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1197
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1200 with_fp=no ;;
1201
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1204 no_create=yes ;;
1205
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 no_recursion=yes ;;
1209
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1218
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 ac_prev=prefix ;;
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1223
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1230
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1237
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
1246 -program-transform-name=* | --program-transform-name=* \
1247 | --program-transform-nam=* | --program-transform-na=* \
1248 | --program-transform-n=* | --program-transform-=* \
1249 | --program-transform=* | --program-transfor=* \
1250 | --program-transfo=* | --program-transf=* \
1251 | --program-trans=* | --program-tran=* \
1252 | --progr-tra=* | --program-tr=* | --program-t=*)
1253 program_transform_name=$ac_optarg ;;
1254
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 ac_prev=pdfdir ;;
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1259
1260 -psdir | --psdir | --psdi | --psd | --ps)
1261 ac_prev=psdir ;;
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 psdir=$ac_optarg ;;
1264
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 silent=yes ;;
1268
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 ac_prev=sbindir ;;
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 | --sbi=* | --sb=*)
1273 sbindir=$ac_optarg ;;
1274
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1278 | --sha | --sh)
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 | --sha=* | --sh=*)
1284 sharedstatedir=$ac_optarg ;;
1285
1286 -site | --site | --sit)
1287 ac_prev=site ;;
1288 -site=* | --site=* | --sit=*)
1289 site=$ac_optarg ;;
1290
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 ac_prev=srcdir ;;
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1295
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1302
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1307
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 verbose=yes ;;
1310
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1313
1314 -with-* | --with-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error "invalid package name: $ac_useropt"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323"with_$ac_useropt"
1324"*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=\$ac_optarg ;;
1329
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339"with_$ac_useropt"
1340"*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval with_$ac_useropt=no ;;
1345
1346 --x)
1347 # Obsolete; use --with-x.
1348 with_x=yes ;;
1349
1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351 | --x-incl | --x-inc | --x-in | --x-i)
1352 ac_prev=x_includes ;;
1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355 x_includes=$ac_optarg ;;
1356
1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359 ac_prev=x_libraries ;;
1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362 x_libraries=$ac_optarg ;;
1363
1364 -*) as_fn_error "unrecognized option: \`$ac_option'
1365Try \`$0 --help' for more information."
1366 ;;
1367
1368 *=*)
1369 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' | [0-9]* | *[!_$as_cr_alnum]* )
1373 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1374 esac
1375 eval $ac_envvar=\$ac_optarg
1376 export $ac_envvar ;;
1377
1378 *)
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 ;;
1385
1386 esac
1387done
1388
1389if test -n "$ac_prev"; then
1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error "missing argument to $ac_option"
1392fi
1393
1394if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1396 no) ;;
1397 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399 esac
1400fi
1401
1402# Check all directory arguments for consistency.
1403for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1407do
1408 eval ac_val=\$$ac_var
1409 # Remove trailing slashes.
1410 case $ac_val in
1411 */ )
1412 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\$ac_val;;
1414 esac
1415 # Be sure to have absolute directory names.
1416 case $ac_val in
1417 [\\/$]* | ?:[\\/]* ) continue;;
1418 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419 esac
1420 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1421done
1422
1423# There might be people who depend on the old broken behavior: `$host'
1424# used to hold the argument of --host etc.
1425# FIXME: To remove some day.
1426build=$build_alias
1427host=$host_alias
1428target=$target_alias
1429
1430# FIXME: To remove some day.
1431if test "x$host_alias" != x; then
1432 if test "x$build_alias" = x; then
1433 cross_compiling=maybe
1434 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1435 If a cross compiler is detected then cross compile mode will be used." >&2
1436 elif test "x$build_alias" != "x$host_alias"; then
1437 cross_compiling=yes
1438 fi
1439fi
1440
1441ac_tool_prefix=
1442test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443
1444test "$silent" = yes && exec 6>/dev/null
1445
1446
1447ac_pwd=`pwd` && test -n "$ac_pwd" &&
1448ac_ls_di=`ls -di .` &&
1449ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error "working directory cannot be determined"
1451test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error "pwd does not report name of working directory"
1453
1454
1455# Find the source files, if location was not specified.
1456if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464$as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\/\)$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\).*/{
1478 s//\1/
1479 q
1480 }
1481 s/.*/./; q'`
1482 srcdir=$ac_confdir
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 srcdir=..
1485 fi
1486else
1487 ac_srcdir_defaulted=no
1488fi
1489if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1492fi
1493ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494ac_abs_confdir=`(
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1496 pwd)`
1497# When building in place, set srcdir=.
1498if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 srcdir=.
1500fi
1501# Remove unnecessary trailing slashes from srcdir.
1502# Double slashes in file names in object file debugging info
1503# mess up M-x gdb in Emacs.
1504case $srcdir in
1505*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506esac
1507for ac_var in $ac_precious_vars; do
1508 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_${ac_var}_value=\$${ac_var}
1510 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1512done
1513
1514#
1515# Report the --help message.
1516#
1517if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1520 cat <<_ACEOF
1521\`configure' configures this package to adapt to many kinds of systems.
1522
1523Usage: $0 [OPTION]... [VAR=VALUE]...
1524
1525To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526VAR=VALUE. See below for descriptions of some of the useful variables.
1527
1528Defaults for the options are specified in brackets.
1529
1530Configuration:
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540
1541Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 [PREFIX]
1546
1547By default, \`make install' will install all the files in
1548\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550for instance \`--prefix=\$HOME'.
1551
1552For better control, use the options below.
1553
1554Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --libdir=DIR object code libraries [EPREFIX/lib]
1562 --includedir=DIR C header files [PREFIX/include]
1563 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1566 --infodir=DIR info documentation [DATAROOTDIR/info]
1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1568 --mandir=DIR man documentation [DATAROOTDIR/man]
1569 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1570 --htmldir=DIR html documentation [DOCDIR]
1571 --dvidir=DIR dvi documentation [DOCDIR]
1572 --pdfdir=DIR pdf documentation [DOCDIR]
1573 --psdir=DIR ps documentation [DOCDIR]
1574_ACEOF
1575
1576 cat <<\_ACEOF
1577
1578Program names:
1579 --program-prefix=PREFIX prepend PREFIX to installed program names
1580 --program-suffix=SUFFIX append SUFFIX to installed program names
1581 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1582
1583System types:
1584 --build=BUILD configure for building on BUILD [guessed]
1585 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1586 --target=TARGET configure for building compilers for TARGET [HOST]
1587_ACEOF
1588fi
1589
1590if test -n "$ac_init_help"; then
1591
1592 cat <<\_ACEOF
1593
1594Optional Features:
1595 --disable-option-checking ignore unrecognized --enable/--with options
1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1598 --enable-maintainer-mode enable make rules and dependencies not useful
1599 (and sometimes confusing) to the casual installer
1600 --disable-dependency-tracking speeds up one-time build
1601 --enable-dependency-tracking do not reject slow dependency extractors
1602
1603Some influential environment variables:
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 LIBS libraries to pass to the linker, e.g. -l<library>
1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1611 CPP C preprocessor
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
1616Report bugs to the package provider.
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
1644
1645case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658esac
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674fi
1675
1676test -n "$ac_init_help" && exit $ac_status
1677if $ac_init_version; then
1678 cat <<\_ACEOF
1679configure
1680generated by GNU Autoconf 2.64
1681
1682Copyright (C) 2009 Free Software Foundation, Inc.
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
1686 exit
1687fi
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_c_try_cpp LINENO
1732# ----------------------
1733# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_cpp ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } >/dev/null && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 }; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766} # ac_fn_c_try_cpp
1767
1768# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771# the include files in INCLUDES and setting the cache variable VAR
1772# accordingly.
1773ac_fn_c_check_header_mongrel ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785else
1786 # Is the header compilable?
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788$as_echo_n "checking $2 usability... " >&6; }
1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796else
1797 ac_header_compiler=no
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801$as_echo "$ac_header_compiler" >&6; }
1802
1803# Is the header present?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805$as_echo_n "checking $2 presence... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808#include <$2>
1809_ACEOF
1810if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812else
1813 ac_header_preproc=no
1814fi
1815rm -f conftest.err conftest.$ac_ext
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817$as_echo "$ac_header_preproc" >&6; }
1818
1819# So? What about this header?
1820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ;;
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ;;
1839esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 $as_echo_n "(cached) " >&6
1844else
1845 eval "$3=\$ac_header_compiler"
1846fi
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850fi
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853} # ac_fn_c_check_header_mongrel
1854
1855# ac_fn_c_try_run LINENO
1856# ----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858# that executables *can* be run.
1859ac_fn_c_try_run ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 return $ac_retval
1894
1895} # ac_fn_c_try_run
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916else
1917 eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_try_link LINENO
1929# -----------------------
1930# Try to link conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_c_try_link ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958else
1959 $as_echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1
1963fi
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
1971
1972} # ac_fn_c_try_link
1973
8690e634
JK
1974# ac_fn_c_check_func LINENO FUNC VAR
1975# ----------------------------------
1976# Tests whether FUNC exists, setting the cache variable VAR accordingly
1977ac_fn_c_check_func ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
1982if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989#define $2 innocuous_$2
1990
1991/* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1995
1996#ifdef __STDC__
1997# include <limits.h>
1998#else
1999# include <assert.h>
2000#endif
2001
2002#undef $2
2003
2004/* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2007#ifdef __cplusplus
2008extern "C"
2009#endif
2010char $2 ();
2011/* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014#if defined __stub_$2 || defined __stub___$2
2015choke me
2016#endif
2017
2018int
2019main ()
2020{
2021return $2 ();
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_link "$LINENO"; then :
2027 eval "$3=yes"
2028else
2029 eval "$3=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2033fi
2034eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038
2039} # ac_fn_c_check_func
2040
a143c6de
JB
2041# ac_fn_c_check_decl LINENO SYMBOL VAR
2042# ------------------------------------
2043# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2044ac_fn_c_check_decl ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2048$as_echo_n "checking whether $2 is declared... " >&6; }
2049if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058#ifndef $2
2059 (void) $2;
2060#endif
2061
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$3=yes"
2068else
2069 eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077
2078} # ac_fn_c_check_decl
2079
c971b7fa
PA
2080# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081# --------------------------------------------
2082# Tries to find the compile-time value of EXPR in a program that includes
2083# INCLUDES, setting VAR accordingly. Returns whether the value could be
2084# computed
2085ac_fn_c_compute_int ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= 0)];
2097test_array [0] = 0
2098
2099 ;
2100 return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113test_array [0] = 0
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2121else
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2124 ac_lo= ac_hi=
2125 break
2126 fi
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 done
2131else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) < 0)];
2139test_array [0] = 0
2140
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=-1 ac_mid=-1
2147 while :; do
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155test_array [0] = 0
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2163else
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2166 ac_lo= ac_hi=
2167 break
2168 fi
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173else
2174 ac_lo= ac_hi=
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179# Binary search between lo and hi bounds.
2180while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h. */
2184$4
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189test_array [0] = 0
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid
2197else
2198 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201done
2202case $ac_lo in #((
2203?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204'') ac_retval=1 ;;
2205esac
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210static long int longval () { return $2; }
2211static unsigned long int ulongval () { return $2; }
2212#include <stdio.h>
2213#include <stdlib.h>
2214int
2215main ()
2216{
2217
2218 FILE *f = fopen ("conftest.val", "w");
2219 if (! f)
2220 return 1;
2221 if (($2) < 0)
2222 {
2223 long int i = longval ();
2224 if (i != ($2))
2225 return 1;
2226 fprintf (f, "%ld", i);
2227 }
2228 else
2229 {
2230 unsigned long int i = ulongval ();
2231 if (i != ($2))
2232 return 1;
2233 fprintf (f, "%lu", i);
2234 }
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2238
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_run "$LINENO"; then :
2244 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245else
2246 ac_retval=1
2247fi
2248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249 conftest.$ac_objext conftest.beam conftest.$ac_ext
2250rm -f conftest.val
2251
2252 fi
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 return $ac_retval
2255
2256} # ac_fn_c_compute_int
2257
8690e634
JK
2258# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259# -------------------------------------------
2260# Tests whether TYPE exists after having included INCLUDES, setting cache
2261# variable VAR accordingly.
2262ac_fn_c_check_type ()
c971b7fa
PA
2263{
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266$as_echo_n "checking for $2... " >&6; }
2267if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2269else
8690e634 2270 eval "$3=no"
c971b7fa
PA
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272/* end confdefs.h. */
8690e634 2273$4
c971b7fa
PA
2274int
2275main ()
2276{
8690e634
JK
2277if (sizeof ($2))
2278 return 0;
c971b7fa
PA
2279 ;
2280 return 0;
2281}
2282_ACEOF
8690e634 2283if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285/* end confdefs.h. */
2286$4
2287int
2288main ()
2289{
8690e634
JK
2290if (sizeof (($2)))
2291 return 0;
c971b7fa
PA
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2297
c971b7fa 2298else
8690e634
JK
2299 eval "$3=yes"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304fi
2305eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307$as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309
8690e634 2310} # ac_fn_c_check_type
c971b7fa
PA
2311cat >config.log <<_ACEOF
2312This file contains any messages produced by compilers while
2313running configure, to aid debugging if configure makes a mistake.
2314
2315It was created by $as_me, which was
2316generated by GNU Autoconf 2.64. Invocation command line was
2317
2318 $ $0 $@
2319
2320_ACEOF
2321exec 5>>config.log
2322{
2323cat <<_ASUNAME
2324## --------- ##
2325## Platform. ##
2326## --------- ##
2327
2328hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333
2334/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2336
2337/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2344
2345_ASUNAME
2346
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354IFS=$as_save_IFS
2355
2356} >&5
2357
2358cat >&5 <<_ACEOF
2359
2360
2361## ----------- ##
2362## Core tests. ##
2363## ----------- ##
2364
2365_ACEOF
2366
2367
2368# Keep a trace of the command line.
2369# Strip out --no-create and --no-recursion so they do not pile up.
2370# Strip out --silent because we don't want to record it for future runs.
2371# Also quote any args containing shell meta-characters.
2372# Make two passes to allow for proper duplicate-argument suppression.
2373ac_configure_args=
2374ac_configure_args0=
2375ac_configure_args1=
2376ac_must_keep_next=false
2377for ac_pass in 1 2
2378do
2379 for ac_arg
2380 do
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 2)
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2404 ;;
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2407 fi
2408 as_fn_append ac_configure_args " '$ac_arg'"
2409 ;;
2410 esac
2411 done
2412done
2413{ ac_configure_args0=; unset ac_configure_args0;}
2414{ ac_configure_args1=; unset ac_configure_args1;}
2415
2416# When interrupted or exit'd, cleanup temporary files, and complete
2417# config.log. We remove comments because anyway the quotes in there
2418# would cause problems or look ugly.
2419# WARNING: Use '\'' to represent an apostrophe within the trap.
2420# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2423 {
2424 echo
2425
2426 cat <<\_ASBOX
2427## ---------------- ##
2428## Cache variables. ##
2429## ---------------- ##
2430_ASBOX
2431 echo
2432 # The following way of writing the cache mishandles newlines in values,
2433(
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in #(
2437 *${as_nl}*)
2438 case $ac_var in #(
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 esac
2442 case $ac_var in #(
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2446 esac ;;
2447 esac
2448 done
2449 (set) 2>&1 |
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2452 sed -n \
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 ;; #(
2456 *)
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458 ;;
2459 esac |
2460 sort
2461)
2462 echo
2463
2464 cat <<\_ASBOX
2465## ----------------- ##
2466## Output variables. ##
2467## ----------------- ##
2468_ASBOX
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
2481 cat <<\_ASBOX
2482## ------------------- ##
2483## File substitutions. ##
2484## ------------------- ##
2485_ASBOX
2486 echo
2487 for ac_var in $ac_subst_files
2488 do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
2496 fi
2497
2498 if test -s confdefs.h; then
2499 cat <<\_ASBOX
2500## ----------- ##
2501## confdefs.h. ##
2502## ----------- ##
2503_ASBOX
2504 echo
2505 cat confdefs.h
2506 echo
2507 fi
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2511 } >&5
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 exit $exit_status
2515' 0
2516for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518done
2519ac_signal=0
2520
2521# confdefs.h avoids OS command line length limits that DEFS can exceed.
2522rm -f -r conftest* confdefs.h
2523
2524$as_echo "/* confdefs.h */" > confdefs.h
2525
2526# Predefined preprocessor variables.
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_NAME "$PACKAGE_NAME"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_VERSION "$PACKAGE_VERSION"
2538_ACEOF
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_STRING "$PACKAGE_STRING"
2542_ACEOF
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546_ACEOF
2547
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_URL "$PACKAGE_URL"
2550_ACEOF
2551
2552
2553# Let the site file select an alternate cache file if it wants to.
2554# Prefer an explicitly selected file to automatically selected ones.
2555ac_site_file1=NONE
2556ac_site_file2=NONE
2557if test -n "$CONFIG_SITE"; then
2558 ac_site_file1=$CONFIG_SITE
2559elif test "x$prefix" != xNONE; then
2560 ac_site_file1=$prefix/share/config.site
2561 ac_site_file2=$prefix/etc/config.site
2562else
2563 ac_site_file1=$ac_default_prefix/share/config.site
2564 ac_site_file2=$ac_default_prefix/etc/config.site
2565fi
2566for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567do
2568 test "x$ac_site_file" = xNONE && continue
2569 if test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2573 . "$ac_site_file"
2574 fi
2575done
2576
2577if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special
2579 # files actually), so we avoid doing that.
2580 if test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582$as_echo "$as_me: loading cache $cache_file" >&6;}
2583 case $cache_file in
2584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
2586 esac
2587 fi
2588else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590$as_echo "$as_me: creating cache $cache_file" >&6;}
2591 >$cache_file
2592fi
2593
8690e634
JK
2594gl_func_list="$gl_func_list btowc"
2595gl_func_list="$gl_func_list isblank"
2596gl_func_list="$gl_func_list iswctype"
2597gl_func_list="$gl_func_list mbsrtowcs"
2598gl_func_list="$gl_func_list mempcpy"
2599gl_func_list="$gl_func_list wmemchr"
2600gl_func_list="$gl_func_list wmemcpy"
2601gl_func_list="$gl_func_list wmempcpy"
2602gl_header_list="$gl_header_list wctype.h"
2603gl_fnmatch_required=GNU
c971b7fa
PA
2604gl_header_list="$gl_header_list wchar.h"
2605gl_header_list="$gl_header_list stdint.h"
2606gl_header_list="$gl_header_list inttypes.h"
8690e634
JK
2607gl_header_list="$gl_header_list unistd.h"
2608gl_func_list="$gl_func_list symlink"
2609gl_func_list="$gl_func_list mbsinit"
2610gl_func_list="$gl_func_list mbrtowc"
c971b7fa
PA
2611gl_header_list="$gl_header_list sys/mman.h"
2612gl_func_list="$gl_func_list mprotect"
8690e634
JK
2613gl_header_list="$gl_header_list features.h"
2614gl_func_list="$gl_func_list iswcntrl"
c971b7fa
PA
2615# Check that the precious variables saved in the cache have kept the same
2616# value.
2617ac_cache_corrupted=false
2618for ac_var in $ac_precious_vars; do
2619 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2620 eval ac_new_set=\$ac_env_${ac_var}_set
2621 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2622 eval ac_new_val=\$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2624 set,)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2626$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2628 ,set)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2630$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,);;
2633 *)
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w=`echo x $ac_old_val`
2637 ac_new_val_w=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2640$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted=:
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2644$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\$ac_old_val
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2648$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2650$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2651 fi;;
2652 esac
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2655 case $ac_new_val in
2656 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg=$ac_var=$ac_new_val ;;
2658 esac
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2662 esac
2663 fi
2664done
2665if $ac_cache_corrupted; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2671fi
2672## -------------------- ##
2673## Main body of script. ##
2674## -------------------- ##
2675
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
2682
2683ac_config_headers="$ac_config_headers config.h:config.in"
2684
2685
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688 # Check whether --enable-maintainer-mode was given.
2689if test "${enable_maintainer_mode+set}" = set; then :
2690 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691else
2692 USE_MAINTAINER_MODE=no
2693fi
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2696$as_echo "$USE_MAINTAINER_MODE" >&6; }
2697 if test $USE_MAINTAINER_MODE = yes; then
2698 MAINTAINER_MODE_TRUE=
2699 MAINTAINER_MODE_FALSE='#'
2700else
2701 MAINTAINER_MODE_TRUE='#'
2702 MAINTAINER_MODE_FALSE=
2703fi
2704
2705 MAINT=$MAINTAINER_MODE_TRUE
2706
2707
2708
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716set dummy ${ac_tool_prefix}gcc; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if test "${ac_cv_prog_CC+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736done
2737 done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742CC=$ac_cv_prog_CC
2743if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745$as_echo "$CC" >&6; }
2746else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751
2752fi
2753if test -z "$ac_cv_prog_CC"; then
2754 ac_ct_CC=$CC
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756set dummy gcc; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC="gcc"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776done
2777 done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782ac_ct_CC=$ac_cv_prog_ac_ct_CC
2783if test -n "$ac_ct_CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2785$as_echo "$ac_ct_CC" >&6; }
2786else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795yes:)
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798ac_tool_warned=yes ;;
2799esac
2800 CC=$ac_ct_CC
2801 fi
2802else
2803 CC="$ac_cv_prog_CC"
2804fi
2805
2806if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809set dummy ${ac_tool_prefix}cc; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
2832
2833fi
2834fi
2835CC=$ac_cv_prog_CC
2836if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838$as_echo "$CC" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844
2845 fi
2846fi
2847if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849set dummy cc; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
2858 ac_prog_rejected=no
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected=yes
2868 continue
2869 fi
2870 ac_cv_prog_CC="cc"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874done
2875 done
2876IFS=$as_save_IFS
2877
2878if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy $ac_cv_prog_CC
2881 shift
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2886 shift
2887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2888 fi
2889fi
2890fi
2891fi
2892CC=$ac_cv_prog_CC
2893if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895$as_echo "$CC" >&6; }
2896else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899fi
2900
2901
2902fi
2903if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog in cl.exe
2906 do
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929 done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934CC=$ac_cv_prog_CC
2935if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937$as_echo "$CC" >&6; }
2938else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943
2944 test -n "$CC" && break
2945 done
2946fi
2947if test -z "$CC"; then
2948 ac_ct_CC=$CC
2949 for ac_prog in cl.exe
2950do
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952set dummy $ac_prog; ac_word=$2
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954$as_echo_n "checking for $ac_word... " >&6; }
2955if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC="$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972done
2973 done
2974IFS=$as_save_IFS
2975
2976fi
2977fi
2978ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981$as_echo "$ac_ct_CC" >&6; }
2982else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987
2988 test -n "$ac_ct_CC" && break
2989done
2990
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995yes:)
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998ac_tool_warned=yes ;;
2999esac
3000 CC=$ac_ct_CC
3001 fi
3002fi
3003
3004fi
3005
3006
3007test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009as_fn_error "no acceptable C compiler found in \$PATH
3010See \`config.log' for more details." "$LINENO" 5; }
3011
3012# Provide some information about the compiler.
3013$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3014set X $ac_compile
3015ac_compiler=$2
3016for ac_option in --version -v -V -qversion; do
3017 { { ac_try="$ac_compiler $ac_option >&5"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023$as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3025 ac_status=$?
3026 if test -s conftest.err; then
3027 sed '10a\
3028... rest of stderr output deleted ...
3029 10q' conftest.err >conftest.er1
3030 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3032 fi
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3035done
3036
3037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039#include <stdio.h>
3040int
3041main ()
3042{
3043FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050ac_clean_files_save=$ac_clean_files
3051ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3052# Try to create an executable without -o first, disregard a.out.
3053# It will help us diagnose broken compilers, and finding out an intuition
3054# of exeext.
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3056$as_echo_n "checking for C compiler default output file name... " >&6; }
3057ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058
3059# The possible output files:
3060ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3061
3062ac_rmfiles=
3063for ac_file in $ac_files
3064do
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068 esac
3069done
3070rm -f $ac_rmfiles
3071
3072if { { ac_try="$ac_link_default"
3073case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
3077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078$as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_link_default") 2>&5
3080 ac_status=$?
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3084# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3085# in a Makefile. We should not override ac_cv_exeext if it was cached,
3086# so that the user can short-circuit this test for compilers unknown to
3087# Autoconf.
3088for ac_file in $ac_files ''
3089do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3093 ;;
3094 [ab].out )
3095 # We found the default executable, but exeext='' is most
3096 # certainly right.
3097 break;;
3098 *.* )
3099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3100 then :; else
3101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 fi
3103 # We set ac_cv_exeext here because the later test for it is not
3104 # safe: cross compilers may not add the suffix if given an `-o'
3105 # argument, so we may need to know it at that point already.
3106 # Even if this section looks crufty: it has the advantage of
3107 # actually working.
3108 break;;
3109 * )
3110 break;;
3111 esac
3112done
3113test "$ac_cv_exeext" = no && ac_cv_exeext=
3114
3115else
3116 ac_file=''
3117fi
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119$as_echo "$ac_file" >&6; }
3120if test -z "$ac_file"; then :
3121 $as_echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126{ as_fn_set_status 77
3127as_fn_error "C compiler cannot create executables
3128See \`config.log' for more details." "$LINENO" 5; }; }
3129fi
3130ac_exeext=$ac_cv_exeext
3131
3132# Check that the compiler produces executables we can run. If not, either
3133# the compiler is broken, or we cross compile.
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135$as_echo_n "checking whether the C compiler works... " >&6; }
3136# If not cross compiling, check that we can run a simple program.
3137if test "$cross_compiling" != yes; then
3138 if { ac_try='./$ac_file'
3139 { { case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156as_fn_error "cannot run C compiled programs.
3157If you meant to cross compile, use \`--host'.
3158See \`config.log' for more details." "$LINENO" 5; }
3159 fi
3160 fi
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163$as_echo "yes" >&6; }
3164
3165rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3166ac_clean_files=$ac_clean_files_save
3167# Check that the compiler produces executables we can run. If not, either
3168# the compiler is broken, or we cross compile.
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3170$as_echo_n "checking whether we are cross compiling... " >&6; }
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3172$as_echo "$cross_compiling" >&6; }
3173
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175$as_echo_n "checking for suffix of executables... " >&6; }
3176if { { ac_try="$ac_link"
3177case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3188# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3189# work properly (i.e., refer to `conftest.exe'), while it won't with
3190# `rm'.
3191for ac_file in conftest.exe conftest conftest.*; do
3192 test -f "$ac_file" || continue
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 break;;
3197 * ) break;;
3198 esac
3199done
3200else
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error "cannot compute suffix of executables: cannot compile and link
3204See \`config.log' for more details." "$LINENO" 5; }
3205fi
3206rm -f conftest$ac_cv_exeext
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208$as_echo "$ac_cv_exeext" >&6; }
3209
3210rm -f conftest.$ac_ext
3211EXEEXT=$ac_cv_exeext
3212ac_exeext=$EXEEXT
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3214$as_echo_n "checking for suffix of object files... " >&6; }
3215if test "${ac_cv_objext+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217else
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.o conftest.obj
3230if { { ac_try="$ac_compile"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236$as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compile") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 for ac_file in conftest.o conftest.obj conftest.*; do
3242 test -f "$ac_file" || continue;
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3246 break;;
3247 esac
3248done
3249else
3250 $as_echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255as_fn_error "cannot compute suffix of object files: cannot compile
3256See \`config.log' for more details." "$LINENO" 5; }
3257fi
3258rm -f conftest.$ac_cv_objext conftest.$ac_ext
3259fi
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3261$as_echo "$ac_cv_objext" >&6; }
3262OBJEXT=$ac_cv_objext
3263ac_objext=$OBJEXT
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3265$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3266if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268else
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h. */
3271
3272int
3273main ()
3274{
3275#ifndef __GNUC__
3276 choke me
3277#endif
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_compiler_gnu=yes
3285else
3286 ac_compiler_gnu=no
3287fi
3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289ac_cv_c_compiler_gnu=$ac_compiler_gnu
3290
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3293$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3294if test $ac_compiler_gnu = yes; then
3295 GCC=yes
3296else
3297 GCC=
3298fi
3299ac_test_CFLAGS=${CFLAGS+set}
3300ac_save_CFLAGS=$CFLAGS
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3302$as_echo_n "checking whether $CC accepts -g... " >&6; }
3303if test "${ac_cv_prog_cc_g+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3305else
3306 ac_save_c_werror_flag=$ac_c_werror_flag
3307 ac_c_werror_flag=yes
3308 ac_cv_prog_cc_g=no
3309 CFLAGS="-g"
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h. */
3312
3313int
3314main ()
3315{
3316
3317 ;
3318 return 0;
3319}
3320_ACEOF
3321if ac_fn_c_try_compile "$LINENO"; then :
3322 ac_cv_prog_cc_g=yes
3323else
3324 CFLAGS=""
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336if ac_fn_c_try_compile "$LINENO"; then :
3337
3338else
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 CFLAGS="-g"
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h. */
3343
3344int
3345main ()
3346{
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_cv_prog_cc_g=yes
3354fi
3355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356fi
3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358fi
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3363$as_echo "$ac_cv_prog_cc_g" >&6; }
3364if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3368 CFLAGS="-g -O2"
3369 else
3370 CFLAGS="-g"
3371 fi
3372else
3373 if test "$GCC" = yes; then
3374 CFLAGS="-O2"
3375 else
3376 CFLAGS=
3377 fi
3378fi
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3380$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3381if test "${ac_cv_prog_cc_c89+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383else
3384 ac_cv_prog_cc_c89=no
3385ac_save_CC=$CC
3386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h. */
3388#include <stdarg.h>
3389#include <stdio.h>
3390#include <sys/types.h>
3391#include <sys/stat.h>
3392/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393struct buf { int x; };
3394FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395static char *e (p, i)
3396 char **p;
3397 int i;
3398{
3399 return p[i];
3400}
3401static char *f (char * (*g) (char **, int), char **p, ...)
3402{
3403 char *s;
3404 va_list v;
3405 va_start (v,p);
3406 s = g (p, va_arg (v,int));
3407 va_end (v);
3408 return s;
3409}
3410
3411/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419
3420/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3422#define FOO(x) 'x'
3423int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424
3425int test (int i, double x);
3426struct s1 {int (*f) (int a);};
3427struct s2 {int (*f) (double a);};
3428int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429int argc;
3430char **argv;
3431int
3432main ()
3433{
3434return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441do
3442 CC="$ac_save_CC $ac_arg"
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_c89=$ac_arg
3445fi
3446rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
3448done
3449rm -f conftest.$ac_ext
3450CC=$ac_save_CC
3451
3452fi
3453# AC_CACHE_VAL
3454case "x$ac_cv_prog_cc_c89" in
3455 x)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3457$as_echo "none needed" >&6; } ;;
3458 xno)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3460$as_echo "unsupported" >&6; } ;;
3461 *)
3462 CC="$CC $ac_cv_prog_cc_c89"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3464$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465esac
3466if test "x$ac_cv_prog_cc_c89" != xno; then :
3467
3468fi
3469
3470ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476ac_aux_dir=
3477for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3478 for ac_t in install-sh install.sh shtool; do
3479 if test -f "$ac_dir/$ac_t"; then
3480 ac_aux_dir=$ac_dir
3481 ac_install_sh="$ac_aux_dir/$ac_t -c"
3482 break 2
3483 fi
3484 done
3485done
3486if test -z "$ac_aux_dir"; then
3487 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3488fi
3489
3490# These three variables are undocumented and unsupported,
3491# and are intended to be withdrawn in a future Autoconf release.
3492# They can cause serious problems if a builder's source tree is in a directory
3493# whose full name contains unusual characters.
3494ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3495ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3496ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3497
3498
3499# Make sure we can run config.sub.
3500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3502
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3504$as_echo_n "checking build system type... " >&6; }
3505if test "${ac_cv_build+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3507else
3508 ac_build_alias=$build_alias
3509test "x$ac_build_alias" = x &&
3510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511test "x$ac_build_alias" = x &&
3512 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3515
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3518$as_echo "$ac_cv_build" >&6; }
3519case $ac_cv_build in
3520*-*-*) ;;
3521*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3522esac
3523build=$ac_cv_build
3524ac_save_IFS=$IFS; IFS='-'
3525set x $ac_cv_build
3526shift
3527build_cpu=$1
3528build_vendor=$2
3529shift; shift
3530# Remember, the first character of IFS is used to create $*,
3531# except with old shells:
3532build_os=$*
3533IFS=$ac_save_IFS
3534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535
3536
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3538$as_echo_n "checking host system type... " >&6; }
3539if test "${ac_cv_host+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541else
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3544else
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3547fi
3548
3549fi
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3551$as_echo "$ac_cv_host" >&6; }
3552case $ac_cv_host in
3553*-*-*) ;;
3554*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3555esac
3556host=$ac_cv_host
3557ac_save_IFS=$IFS; IFS='-'
3558set x $ac_cv_host
3559shift
3560host_cpu=$1
3561host_vendor=$2
3562shift; shift
3563# Remember, the first character of IFS is used to create $*,
3564# except with old shells:
3565host_os=$*
3566IFS=$ac_save_IFS
3567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3568
3569
3570
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3577$as_echo_n "checking how to run the C preprocessor... " >&6; }
3578# On Suns, sometimes $CPP names a directory.
3579if test -n "$CPP" && test -d "$CPP"; then
3580 CPP=
3581fi
3582if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585else
3586 # Double quotes because CPP needs to be expanded
3587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588 do
3589 ac_preproc_ok=false
3590for ac_c_preproc_warn_flag in '' yes
3591do
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h. */
3600#ifdef __STDC__
3601# include <limits.h>
3602#else
3603# include <assert.h>
3604#endif
3605 Syntax error
3606_ACEOF
3607if ac_fn_c_try_cpp "$LINENO"; then :
3608
3609else
3610 # Broken: fails on valid input.
3611continue
3612fi
3613rm -f conftest.err conftest.$ac_ext
3614
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h. */
3619#include <ac_nonexistent.h>
3620_ACEOF
3621if ac_fn_c_try_cpp "$LINENO"; then :
3622 # Broken: success on invalid input.
3623continue
3624else
3625 # Passes both tests.
3626ac_preproc_ok=:
3627break
3628fi
3629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
3634if $ac_preproc_ok; then :
3635 break
3636fi
3637
3638 done
3639 ac_cv_prog_CPP=$CPP
3640
3641fi
3642 CPP=$ac_cv_prog_CPP
3643else
3644 ac_cv_prog_CPP=$CPP
3645fi
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3647$as_echo "$CPP" >&6; }
3648ac_preproc_ok=false
3649for ac_c_preproc_warn_flag in '' yes
3650do
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h. */
3659#ifdef __STDC__
3660# include <limits.h>
3661#else
3662# include <assert.h>
3663#endif
3664 Syntax error
3665_ACEOF
3666if ac_fn_c_try_cpp "$LINENO"; then :
3667
3668else
3669 # Broken: fails on valid input.
3670continue
3671fi
3672rm -f conftest.err conftest.$ac_ext
3673
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678#include <ac_nonexistent.h>
3679_ACEOF
3680if ac_fn_c_try_cpp "$LINENO"; then :
3681 # Broken: success on invalid input.
3682continue
3683else
3684 # Passes both tests.
3685ac_preproc_ok=:
3686break
3687fi
3688rm -f conftest.err conftest.$ac_ext
3689
3690done
3691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692rm -f conftest.err conftest.$ac_ext
3693if $ac_preproc_ok; then :
3694
3695else
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698as_fn_error "C preprocessor \"$CPP\" fails sanity check
3699See \`config.log' for more details." "$LINENO" 5; }
3700fi
3701
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3710$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3711if test "${ac_cv_path_GREP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713else
3714 if test -z "$GREP"; then
3715 ac_path_GREP_found=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3719do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_prog in grep ggrep; do
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3725 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3726# Check for GNU ac_path_GREP and select it if it is found.
3727 # Check for GNU $ac_path_GREP
3728case `"$ac_path_GREP" --version 2>&1` in
3729*GNU*)
3730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3731*)
3732 ac_count=0
3733 $as_echo_n 0123456789 >"conftest.in"
3734 while :
3735 do
3736 cat "conftest.in" "conftest.in" >"conftest.tmp"
3737 mv "conftest.tmp" "conftest.in"
3738 cp "conftest.in" "conftest.nl"
3739 $as_echo 'GREP' >> "conftest.nl"
3740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3742 as_fn_arith $ac_count + 1 && ac_count=$as_val
3743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_GREP="$ac_path_GREP"
3746 ac_path_GREP_max=$ac_count
3747 fi
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3750 done
3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3752esac
3753
3754 $ac_path_GREP_found && break 3
3755 done
3756 done
3757 done
3758IFS=$as_save_IFS
3759 if test -z "$ac_cv_path_GREP"; then
3760 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3761 fi
3762else
3763 ac_cv_path_GREP=$GREP
3764fi
3765
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3768$as_echo "$ac_cv_path_GREP" >&6; }
3769 GREP="$ac_cv_path_GREP"
3770
3771
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3773$as_echo_n "checking for egrep... " >&6; }
3774if test "${ac_cv_path_EGREP+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776else
3777 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3778 then ac_cv_path_EGREP="$GREP -E"
3779 else
3780 if test -z "$EGREP"; then
3781 ac_path_EGREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in egrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3792# Check for GNU ac_path_EGREP and select it if it is found.
3793 # Check for GNU $ac_path_EGREP
3794case `"$ac_path_EGREP" --version 2>&1` in
3795*GNU*)
3796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3797*)
3798 ac_count=0
3799 $as_echo_n 0123456789 >"conftest.in"
3800 while :
3801 do
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'EGREP' >> "conftest.nl"
3806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_EGREP="$ac_path_EGREP"
3812 ac_path_EGREP_max=$ac_count
3813 fi
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3816 done
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818esac
3819
3820 $ac_path_EGREP_found && break 3
3821 done
3822 done
3823 done
3824IFS=$as_save_IFS
3825 if test -z "$ac_cv_path_EGREP"; then
3826 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3827 fi
3828else
3829 ac_cv_path_EGREP=$EGREP
3830fi
3831
3832 fi
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3835$as_echo "$ac_cv_path_EGREP" >&6; }
3836 EGREP="$ac_cv_path_EGREP"
3837
3838
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3840$as_echo_n "checking for ANSI C header files... " >&6; }
3841if test "${ac_cv_header_stdc+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3843else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h. */
3846#include <stdlib.h>
3847#include <stdarg.h>
3848#include <string.h>
3849#include <float.h>
3850
3851int
3852main ()
3853{
3854
3855 ;
3856 return 0;
3857}
3858_ACEOF
3859if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_header_stdc=yes
3861else
3862 ac_cv_header_stdc=no
3863fi
3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865
3866if test $ac_cv_header_stdc = yes; then
3867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h. */
3870#include <string.h>
3871
3872_ACEOF
3873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 $EGREP "memchr" >/dev/null 2>&1; then :
3875
3876else
3877 ac_cv_header_stdc=no
3878fi
3879rm -f conftest*
3880
3881fi
3882
3883if test $ac_cv_header_stdc = yes; then
3884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886/* end confdefs.h. */
3887#include <stdlib.h>
3888
3889_ACEOF
3890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "free" >/dev/null 2>&1; then :
3892
3893else
3894 ac_cv_header_stdc=no
3895fi
3896rm -f conftest*
3897
3898fi
3899
3900if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then :
3903 :
3904else
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h. */
3907#include <ctype.h>
3908#include <stdlib.h>
3909#if ((' ' & 0x0FF) == 0x020)
3910# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3911# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3912#else
3913# define ISLOWER(c) \
3914 (('a' <= (c) && (c) <= 'i') \
3915 || ('j' <= (c) && (c) <= 'r') \
3916 || ('s' <= (c) && (c) <= 'z'))
3917# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3918#endif
3919
3920#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3921int
3922main ()
3923{
3924 int i;
3925 for (i = 0; i < 256; i++)
3926 if (XOR (islower (i), ISLOWER (i))
3927 || toupper (i) != TOUPPER (i))
3928 return 2;
3929 return 0;
3930}
3931_ACEOF
3932if ac_fn_c_try_run "$LINENO"; then :
3933
3934else
3935 ac_cv_header_stdc=no
3936fi
3937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3938 conftest.$ac_objext conftest.beam conftest.$ac_ext
3939fi
3940
3941fi
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3944$as_echo "$ac_cv_header_stdc" >&6; }
3945if test $ac_cv_header_stdc = yes; then
3946
3947$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3948
3949fi
3950
3951# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3953 inttypes.h stdint.h unistd.h
3954do :
3955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3957"
3958eval as_val=\$$as_ac_Header
3959 if test "x$as_val" = x""yes; then :
3960 cat >>confdefs.h <<_ACEOF
3961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3962_ACEOF
3963
3964fi
3965
3966done
3967
3968
3969
3970
3971
3972 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3973if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3974 MINIX=yes
3975else
3976 MINIX=
3977fi
3978
3979
3980 if test "$MINIX" = yes; then
3981
3982$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3983
3984
3985$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3986
3987
3988$as_echo "#define _MINIX 1" >>confdefs.h
3989
3990 fi
3991
3992 case "$host_os" in
3993 hpux*)
3994
3995$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3996
3997 ;;
3998 esac
3999
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4002$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4003if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h. */
4008
4009# define __EXTENSIONS__ 1
4010 $ac_includes_default
4011int
4012main ()
4013{
4014
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_safe_to_define___extensions__=yes
4021else
4022 ac_cv_safe_to_define___extensions__=no
4023fi
4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4027$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4028 test $ac_cv_safe_to_define___extensions__ = yes &&
4029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4030
4031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4032
4033 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4034
4035 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4036
4037 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4038
4039 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4040
4041
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4045$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4046if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048else
4049
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h. */
4052
4053#ifdef __ACK__
4054Amsterdam
4055#endif
4056
4057_ACEOF
4058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4060 gl_cv_c_amsterdam_compiler=yes
4061else
4062 gl_cv_c_amsterdam_compiler=no
4063fi
4064rm -f conftest*
4065
4066
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4069$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4070 if test -z "$AR"; then
4071 if test $gl_cv_c_amsterdam_compiler = yes; then
4072 AR='cc -c.a'
4073 if test -z "$ARFLAGS"; then
4074 ARFLAGS='-o'
4075 fi
4076 else
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4079set dummy ${ac_tool_prefix}ar; ac_word=$2
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081$as_echo_n "checking for $ac_word... " >&6; }
4082if test "${ac_cv_prog_AR+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084else
4085 if test -n "$AR"; then
4086 ac_cv_prog_AR="$AR" # Let the user override the test.
4087else
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_AR="${ac_tool_prefix}ar"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099done
4100 done
4101IFS=$as_save_IFS
4102
4103fi
4104fi
4105AR=$ac_cv_prog_AR
4106if test -n "$AR"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4108$as_echo "$AR" >&6; }
4109else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
4112fi
4113
4114
4115fi
4116if test -z "$ac_cv_prog_AR"; then
4117 ac_ct_AR=$AR
4118 # Extract the first word of "ar", so it can be a program name with args.
4119set dummy ar; ac_word=$2
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121$as_echo_n "checking for $ac_word... " >&6; }
4122if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124else
4125 if test -n "$ac_ct_AR"; then
4126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_AR="ar"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
4140 done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145ac_ct_AR=$ac_cv_prog_ac_ct_AR
4146if test -n "$ac_ct_AR"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4148$as_echo "$ac_ct_AR" >&6; }
4149else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154 if test "x$ac_ct_AR" = x; then
4155 AR="ar"
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158yes:)
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161ac_tool_warned=yes ;;
4162esac
4163 AR=$ac_ct_AR
4164 fi
4165else
4166 AR="$ac_cv_prog_AR"
4167fi
4168
4169 if test -z "$ARFLAGS"; then
4170 ARFLAGS='cru'
4171 fi
4172 fi
4173 else
4174 if test -z "$ARFLAGS"; then
4175 ARFLAGS='cru'
4176 fi
4177 fi
4178
4179
4180 if test -z "$RANLIB"; then
4181 if test $gl_cv_c_amsterdam_compiler = yes; then
4182 RANLIB=':'
4183 else
4184 if test -n "$ac_tool_prefix"; then
4185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4186set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188$as_echo_n "checking for $ac_word... " >&6; }
4189if test "${ac_cv_prog_RANLIB+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 if test -n "$RANLIB"; then
4193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4194else
4195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206done
4207 done
4208IFS=$as_save_IFS
4209
4210fi
4211fi
4212RANLIB=$ac_cv_prog_RANLIB
4213if test -n "$RANLIB"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4215$as_echo "$RANLIB" >&6; }
4216else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218$as_echo "no" >&6; }
4219fi
4220
4221
4222fi
4223if test -z "$ac_cv_prog_RANLIB"; then
4224 ac_ct_RANLIB=$RANLIB
4225 # Extract the first word of "ranlib", so it can be a program name with args.
4226set dummy ranlib; ac_word=$2
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228$as_echo_n "checking for $ac_word... " >&6; }
4229if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231else
4232 if test -n "$ac_ct_RANLIB"; then
4233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_RANLIB="ranlib"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247 done
4248IFS=$as_save_IFS
4249
4250fi
4251fi
4252ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4253if test -n "$ac_ct_RANLIB"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4255$as_echo "$ac_ct_RANLIB" >&6; }
4256else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
4260
4261 if test "x$ac_ct_RANLIB" = x; then
4262 RANLIB=":"
4263 else
4264 case $cross_compiling:$ac_tool_warned in
4265yes:)
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268ac_tool_warned=yes ;;
4269esac
4270 RANLIB=$ac_ct_RANLIB
4271 fi
4272else
4273 RANLIB="$ac_cv_prog_RANLIB"
4274fi
4275
4276 fi
4277 fi
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
8690e634
JK
4288 # Code from module alloca:
4289 # Code from module alloca-opt:
4290 # Code from module configmake:
c971b7fa
PA
4291 # Code from module extensions:
4292
a512b375 4293 # Code from module extern-inline:
8690e634
JK
4294 # Code from module fnmatch:
4295 # Code from module fnmatch-gnu:
c971b7fa
PA
4296 # Code from module include_next:
4297 # Code from module inttypes:
4298 # Code from module inttypes-incomplete:
8690e634
JK
4299 # Code from module localcharset:
4300 # Code from module mbrtowc:
4301 # Code from module mbsinit:
4302 # Code from module mbsrtowcs:
c971b7fa
PA
4303 # Code from module memchr:
4304 # Code from module memmem:
4305 # Code from module memmem-simple:
4306 # Code from module multiarch:
4307 # Code from module snippet/arg-nonnull:
4308 # Code from module snippet/c++defs:
4309 # Code from module snippet/warn-on-use:
8690e634 4310 # Code from module stdbool:
c971b7fa
PA
4311 # Code from module stddef:
4312 # Code from module stdint:
8690e634 4313 # Code from module streq:
c971b7fa 4314 # Code from module string:
8690e634 4315 # Code from module strnlen1:
c971b7fa 4316 # Code from module update-copyright:
8690e634
JK
4317 # Code from module verify:
4318 # Code from module wchar:
4319 # Code from module wctype-h:
c971b7fa
PA
4320
4321ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4328set dummy ${ac_tool_prefix}gcc; ac_word=$2
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330$as_echo_n "checking for $ac_word... " >&6; }
4331if test "${ac_cv_prog_CC+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333else
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4336else
4337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH
4339do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348done
4349 done
4350IFS=$as_save_IFS
4351
4352fi
4353fi
4354CC=$ac_cv_prog_CC
4355if test -n "$CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357$as_echo "$CC" >&6; }
4358else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361fi
4362
4363
4364fi
4365if test -z "$ac_cv_prog_CC"; then
4366 ac_ct_CC=$CC
4367 # Extract the first word of "gcc", so it can be a program name with args.
4368set dummy gcc; ac_word=$2
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370$as_echo_n "checking for $ac_word... " >&6; }
4371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373else
4374 if test -n "$ac_ct_CC"; then
4375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4376else
4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_ac_ct_CC="gcc"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388done
4389 done
4390IFS=$as_save_IFS
4391
4392fi
4393fi
4394ac_ct_CC=$ac_cv_prog_ac_ct_CC
4395if test -n "$ac_ct_CC"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4397$as_echo "$ac_ct_CC" >&6; }
4398else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400$as_echo "no" >&6; }
4401fi
4402
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407yes:)
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410ac_tool_warned=yes ;;
4411esac
4412 CC=$ac_ct_CC
4413 fi
4414else
4415 CC="$ac_cv_prog_CC"
4416fi
4417
4418if test -z "$CC"; then
4419 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4421set dummy ${ac_tool_prefix}cc; ac_word=$2
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if test "${ac_cv_prog_CC+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426else
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_CC="${ac_tool_prefix}cc"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442 done
4443IFS=$as_save_IFS
4444
4445fi
4446fi
4447CC=$ac_cv_prog_CC
4448if test -n "$CC"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4450$as_echo "$CC" >&6; }
4451else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453$as_echo "no" >&6; }
4454fi
4455
4456
4457 fi
4458fi
4459if test -z "$CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461set dummy cc; ac_word=$2
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463$as_echo_n "checking for $ac_word... " >&6; }
4464if test "${ac_cv_prog_CC+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466else
4467 if test -n "$CC"; then
4468 ac_cv_prog_CC="$CC" # Let the user override the test.
4469else
4470 ac_prog_rejected=no
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_CC="cc"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487 done
4488IFS=$as_save_IFS
4489
4490if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4500 fi
4501fi
4502fi
4503fi
4504CC=$ac_cv_prog_CC
4505if test -n "$CC"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4507$as_echo "$CC" >&6; }
4508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511fi
4512
4513
4514fi
4515if test -z "$CC"; then
4516 if test -n "$ac_tool_prefix"; then
4517 for ac_prog in cl.exe
4518 do
4519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522$as_echo_n "checking for $ac_word... " >&6; }
4523if test "${ac_cv_prog_CC+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525else
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540done
4541 done
4542IFS=$as_save_IFS
4543
4544fi
4545fi
4546CC=$ac_cv_prog_CC
4547if test -n "$CC"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4549$as_echo "$CC" >&6; }
4550else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552$as_echo "no" >&6; }
4553fi
4554
4555
4556 test -n "$CC" && break
4557 done
4558fi
4559if test -z "$CC"; then
4560 ac_ct_CC=$CC
4561 for ac_prog in cl.exe
4562do
4563 # Extract the first word of "$ac_prog", so it can be a program name with args.
4564set dummy $ac_prog; ac_word=$2
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566$as_echo_n "checking for $ac_word... " >&6; }
4567if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 if test -n "$ac_ct_CC"; then
4571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572else
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_ac_ct_CC="$ac_prog"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584done
4585 done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590ac_ct_CC=$ac_cv_prog_ac_ct_CC
4591if test -n "$ac_ct_CC"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4593$as_echo "$ac_ct_CC" >&6; }
4594else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596$as_echo "no" >&6; }
4597fi
4598
4599
4600 test -n "$ac_ct_CC" && break
4601done
4602
4603 if test "x$ac_ct_CC" = x; then
4604 CC=""
4605 else
4606 case $cross_compiling:$ac_tool_warned in
4607yes:)
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610ac_tool_warned=yes ;;
4611esac
4612 CC=$ac_ct_CC
4613 fi
4614fi
4615
4616fi
4617
4618
4619test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621as_fn_error "no acceptable C compiler found in \$PATH
4622See \`config.log' for more details." "$LINENO" 5; }
4623
4624# Provide some information about the compiler.
4625$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4626set X $ac_compile
4627ac_compiler=$2
4628for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635$as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4644 fi
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647done
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4650$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4651if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h. */
4656
4657int
4658main ()
4659{
4660#ifndef __GNUC__
4661 choke me
4662#endif
4663
4664 ;
4665 return 0;
4666}
4667_ACEOF
4668if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_compiler_gnu=yes
4670else
4671 ac_compiler_gnu=no
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674ac_cv_c_compiler_gnu=$ac_compiler_gnu
4675
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4678$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4679if test $ac_compiler_gnu = yes; then
4680 GCC=yes
4681else
4682 GCC=
4683fi
4684ac_test_CFLAGS=${CFLAGS+set}
4685ac_save_CFLAGS=$CFLAGS
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4687$as_echo_n "checking whether $CC accepts -g... " >&6; }
4688if test "${ac_cv_prog_cc_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690else
4691 ac_save_c_werror_flag=$ac_c_werror_flag
4692 ac_c_werror_flag=yes
4693 ac_cv_prog_cc_g=no
4694 CFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697
4698int
4699main ()
4700{
4701
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_prog_cc_g=yes
4708else
4709 CFLAGS=""
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h. */
4712
4713int
4714main ()
4715{
4716
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721if ac_fn_c_try_compile "$LINENO"; then :
4722
4723else
4724 ac_c_werror_flag=$ac_save_c_werror_flag
4725 CFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h. */
4728
4729int
4730main ()
4731{
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_prog_cc_g=yes
4739fi
4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741fi
4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_c_werror_flag=$ac_save_c_werror_flag
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4748$as_echo "$ac_cv_prog_cc_g" >&6; }
4749if test "$ac_test_CFLAGS" = set; then
4750 CFLAGS=$ac_save_CFLAGS
4751elif test $ac_cv_prog_cc_g = yes; then
4752 if test "$GCC" = yes; then
4753 CFLAGS="-g -O2"
4754 else
4755 CFLAGS="-g"
4756 fi
4757else
4758 if test "$GCC" = yes; then
4759 CFLAGS="-O2"
4760 else
4761 CFLAGS=
4762 fi
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4765$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4766if test "${ac_cv_prog_cc_c89+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768else
4769 ac_cv_prog_cc_c89=no
4770ac_save_CC=$CC
4771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773#include <stdarg.h>
4774#include <stdio.h>
4775#include <sys/types.h>
4776#include <sys/stat.h>
4777/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4778struct buf { int x; };
4779FILE * (*rcsopen) (struct buf *, struct stat *, int);
4780static char *e (p, i)
4781 char **p;
4782 int i;
4783{
4784 return p[i];
4785}
4786static char *f (char * (*g) (char **, int), char **p, ...)
4787{
4788 char *s;
4789 va_list v;
4790 va_start (v,p);
4791 s = g (p, va_arg (v,int));
4792 va_end (v);
4793 return s;
4794}
4795
4796/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4797 function prototypes and stuff, but not '\xHH' hex character constants.
4798 These don't provoke an error unfortunately, instead are silently treated
4799 as 'x'. The following induces an error, until -std is added to get
4800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4801 array size at least. It's necessary to write '\x00'==0 to get something
4802 that's true only with -std. */
4803int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4804
4805/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4806 inside strings and character constants. */
4807#define FOO(x) 'x'
4808int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4809
4810int test (int i, double x);
4811struct s1 {int (*f) (int a);};
4812struct s2 {int (*f) (double a);};
4813int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4814int argc;
4815char **argv;
4816int
4817main ()
4818{
4819return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4820 ;
4821 return 0;
4822}
4823_ACEOF
4824for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4826do
4827 CC="$ac_save_CC $ac_arg"
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_c89=$ac_arg
4830fi
4831rm -f core conftest.err conftest.$ac_objext
4832 test "x$ac_cv_prog_cc_c89" != "xno" && break
4833done
4834rm -f conftest.$ac_ext
4835CC=$ac_save_CC
4836
4837fi
4838# AC_CACHE_VAL
4839case "x$ac_cv_prog_cc_c89" in
4840 x)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4842$as_echo "none needed" >&6; } ;;
4843 xno)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4845$as_echo "unsupported" >&6; } ;;
4846 *)
4847 CC="$CC $ac_cv_prog_cc_c89"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4849$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4850esac
4851if test "x$ac_cv_prog_cc_c89" != xno; then :
4852
4853fi
4854
4855ac_ext=c
4856ac_cpp='$CPP $CPPFLAGS'
4857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860
4861
4862am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4863
4864
4865ac_aux_dir=
4866for ac_dir in ../.. "$srcdir"/../..; do
4867 for ac_t in install-sh install.sh shtool; do
4868 if test -f "$ac_dir/$ac_t"; then
4869 ac_aux_dir=$ac_dir
4870 ac_install_sh="$ac_aux_dir/$ac_t -c"
4871 break 2
4872 fi
4873 done
4874done
4875if test -z "$ac_aux_dir"; then
4876 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4877fi
4878
4879# These three variables are undocumented and unsupported,
4880# and are intended to be withdrawn in a future Autoconf release.
4881# They can cause serious problems if a builder's source tree is in a directory
4882# whose full name contains unusual characters.
4883ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4884ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4885ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4886
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4889$as_echo_n "checking target system type... " >&6; }
4890if test "${ac_cv_target+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892else
4893 if test "x$target_alias" = x; then
4894 ac_cv_target=$ac_cv_host
4895else
4896 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4897 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4898fi
4899
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4902$as_echo "$ac_cv_target" >&6; }
4903case $ac_cv_target in
4904*-*-*) ;;
4905*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4906esac
4907target=$ac_cv_target
4908ac_save_IFS=$IFS; IFS='-'
4909set x $ac_cv_target
4910shift
4911target_cpu=$1
4912target_vendor=$2
4913shift; shift
4914# Remember, the first character of IFS is used to create $*,
4915# except with old shells:
4916target_os=$*
4917IFS=$ac_save_IFS
4918case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4919
4920
4921# The aliases save the names the user supplied, while $host etc.
4922# will get canonicalized.
4923test -n "$target_alias" &&
4924 test "$program_prefix$program_suffix$program_transform_name" = \
4925 NONENONEs,x,x, &&
4926 program_prefix=${target_alias}-
4927
4928
4929
4930
4931
4932
4933
4934 LIBC_FATAL_STDERR_=1
4935 export LIBC_FATAL_STDERR_
4936
8690e634
JK
4937# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4938# for constant arguments. Useless!
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4940$as_echo_n "checking for working alloca.h... " >&6; }
4941if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
4942 $as_echo_n "(cached) " >&6
4943else
8690e634 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 4945/* end confdefs.h. */
8690e634 4946#include <alloca.h>
c971b7fa
PA
4947int
4948main ()
4949{
8690e634
JK
4950char *p = (char *) alloca (2 * sizeof (int));
4951 if (p) return 0;
c971b7fa
PA
4952 ;
4953 return 0;
4954}
c971b7fa
PA
4955_ACEOF
4956if ac_fn_c_try_link "$LINENO"; then :
8690e634 4957 ac_cv_working_alloca_h=yes
c971b7fa 4958else
8690e634 4959 ac_cv_working_alloca_h=no
c971b7fa
PA
4960fi
4961rm -f core conftest.err conftest.$ac_objext \
4962 conftest$ac_exeext conftest.$ac_ext
c971b7fa 4963fi
8690e634
JK
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4965$as_echo "$ac_cv_working_alloca_h" >&6; }
4966if test $ac_cv_working_alloca_h = yes; then
c971b7fa 4967
8690e634 4968$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 4969
8690e634 4970fi
c971b7fa 4971
8690e634
JK
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4973$as_echo_n "checking for alloca... " >&6; }
4974if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 4975 $as_echo_n "(cached) " >&6
c971b7fa
PA
4976else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h. */
8690e634
JK
4979#ifdef __GNUC__
4980# define alloca __builtin_alloca
4981#else
4982# ifdef _MSC_VER
4983# include <malloc.h>
4984# define alloca _alloca
4985# else
4986# ifdef HAVE_ALLOCA_H
4987# include <alloca.h>
4988# else
4989# ifdef _AIX
4990 #pragma alloca
4991# else
4992# ifndef alloca /* predefined by HP cc +Olibcalls */
4993char *alloca ();
4994# endif
4995# endif
4996# endif
4997# endif
4998#endif
4999
c971b7fa
PA
5000int
5001main ()
5002{
8690e634
JK
5003char *p = (char *) alloca (1);
5004 if (p) return 0;
c971b7fa
PA
5005 ;
5006 return 0;
5007}
5008_ACEOF
8690e634
JK
5009if ac_fn_c_try_link "$LINENO"; then :
5010 ac_cv_func_alloca_works=yes
c971b7fa 5011else
8690e634 5012 ac_cv_func_alloca_works=no
c971b7fa 5013fi
8690e634
JK
5014rm -f core conftest.err conftest.$ac_objext \
5015 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5016fi
a143c6de
JB
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5018$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5019
a143c6de 5020if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5021
a143c6de 5022$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5023
a143c6de
JB
5024else
5025 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5026# that cause trouble. Some versions do not even contain alloca or
5027# contain a buggy version. If you still want to use their alloca,
5028# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5029
5030
5031
5032
5033
a143c6de 5034ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5035
a143c6de 5036$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5037
c971b7fa 5038
a143c6de
JB
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5040$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5041if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5042 $as_echo_n "(cached) " >&6
5043else
a143c6de 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5045/* end confdefs.h. */
a143c6de
JB
5046#if defined CRAY && ! defined CRAY2
5047webecray
5048#else
5049wenotbecray
8690e634 5050#endif
c971b7fa 5051
8690e634
JK
5052_ACEOF
5053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5054 $EGREP "webecray" >/dev/null 2>&1; then :
5055 ac_cv_os_cray=yes
8690e634 5056else
a143c6de 5057 ac_cv_os_cray=no
8690e634
JK
5058fi
5059rm -f conftest*
c971b7fa 5060
c0fc7f8b 5061fi
a143c6de
JB
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5063$as_echo "$ac_cv_os_cray" >&6; }
5064if test $ac_cv_os_cray = yes; then
5065 for ac_func in _getb67 GETB67 getb67; do
5066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5068eval as_val=\$$as_ac_var
5069 if test "x$as_val" = x""yes; then :
c0fc7f8b 5070
a143c6de
JB
5071cat >>confdefs.h <<_ACEOF
5072#define CRAY_STACKSEG_END $ac_func
5073_ACEOF
c971b7fa 5074
a143c6de 5075 break
8690e634 5076fi
c971b7fa 5077
a143c6de 5078 done
8690e634 5079fi
c0fc7f8b 5080
a143c6de
JB
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5082$as_echo_n "checking stack direction for C alloca... " >&6; }
5083if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5084 $as_echo_n "(cached) " >&6
5085else
a143c6de
JB
5086 if test "$cross_compiling" = yes; then :
5087 ac_cv_c_stack_direction=0
5088else
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5090/* end confdefs.h. */
a143c6de
JB
5091$ac_includes_default
5092int
5093find_stack_direction (int *addr, int depth)
5094{
5095 int dir, dummy = 0;
5096 if (! addr)
5097 addr = &dummy;
5098 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5099 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5100 return dir + dummy;
5101}
8690e634 5102
a143c6de
JB
5103int
5104main (int argc, char **argv)
5105{
5106 return find_stack_direction (0, argc + !argv + 20) < 0;
5107}
c971b7fa 5108_ACEOF
a143c6de
JB
5109if ac_fn_c_try_run "$LINENO"; then :
5110 ac_cv_c_stack_direction=1
c971b7fa 5111else
a143c6de 5112 ac_cv_c_stack_direction=-1
8690e634 5113fi
a143c6de
JB
5114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5115 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5116fi
c971b7fa
PA
5117
5118fi
a143c6de
JB
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5120$as_echo "$ac_cv_c_stack_direction" >&6; }
5121cat >>confdefs.h <<_ACEOF
5122#define STACK_DIRECTION $ac_cv_c_stack_direction
5123_ACEOF
8690e634 5124
c971b7fa
PA
5125
5126fi
c971b7fa
PA
5127
5128
5129
a512b375
JB
5130
5131
5132
8690e634
JK
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5134$as_echo_n "checking for mbstate_t... " >&6; }
5135if test "${ac_cv_type_mbstate_t+set}" = set; then :
c971b7fa
PA
5136 $as_echo_n "(cached) " >&6
5137else
8690e634 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5139/* end confdefs.h. */
8690e634
JK
5140$ac_includes_default
5141/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5142 <wchar.h>.
5143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5144 included before <wchar.h>. */
5145#include <stddef.h>
5146#include <stdio.h>
5147#include <time.h>
5148#include <wchar.h>
5149int
5150main ()
5151{
5152mbstate_t x; return sizeof x;
5153 ;
5154 return 0;
5155}
c971b7fa 5156_ACEOF
8690e634
JK
5157if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_type_mbstate_t=yes
c971b7fa 5159else
8690e634 5160 ac_cv_type_mbstate_t=no
c971b7fa 5161fi
8690e634 5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 5163fi
8690e634
JK
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5165$as_echo "$ac_cv_type_mbstate_t" >&6; }
5166 if test $ac_cv_type_mbstate_t = yes; then
c971b7fa 5167
8690e634 5168$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
c971b7fa 5169
8690e634 5170 else
c971b7fa 5171
8690e634 5172$as_echo "#define mbstate_t int" >>confdefs.h
c971b7fa 5173
8690e634 5174 fi
c971b7fa
PA
5175
5176
5177
5178
c971b7fa 5179
8690e634
JK
5180 for ac_func in $gl_func_list
5181do :
5182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5184eval as_val=\$$as_ac_var
5185 if test "x$as_val" = x""yes; then :
5186 cat >>confdefs.h <<_ACEOF
5187#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
c971b7fa 5188_ACEOF
c971b7fa
PA
5189
5190fi
8690e634 5191done
c971b7fa
PA
5192
5193
5194
5195
5196
c971b7fa
PA
5197
5198
c971b7fa
PA
5199
5200
5201
c971b7fa
PA
5202
5203
5204
5205
5206
c971b7fa
PA
5207
5208
c971b7fa
PA
5209
5210
c971b7fa
PA
5211
5212
5213
5214
5215
5216
5217
5218
c971b7fa
PA
5219
5220
5221
5222
5223
5224
5225
5226
c971b7fa 5227
c971b7fa
PA
5228
5229
c971b7fa 5230
c971b7fa 5231
8690e634
JK
5232
5233
5234
5235
5236 for ac_header in $gl_header_list
5237do :
5238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5240eval as_val=\$$as_ac_Header
5241 if test "x$as_val" = x""yes; then :
5242 cat >>confdefs.h <<_ACEOF
5243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244_ACEOF
5245
5246fi
5247
5248done
5249
5250
5251
5252
5253
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5256$as_echo_n "checking for unsigned long long int... " >&6; }
5257if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259else
5260 ac_cv_type_unsigned_long_long_int=yes
5261 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h. */
5264
5265 /* For now, do not test the preprocessor; as of 2007 there are too many
5266 implementations with broken preprocessors. Perhaps this can
5267 be revisited in 2012. In the meantime, code should not expect
5268 #if to work with literals wider than 32 bits. */
5269 /* Test literals. */
5270 long long int ll = 9223372036854775807ll;
5271 long long int nll = -9223372036854775807LL;
5272 unsigned long long int ull = 18446744073709551615ULL;
5273 /* Test constant expressions. */
5274 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5275 ? 1 : -1)];
5276 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5277 ? 1 : -1)];
5278 int i = 63;
5279int
5280main ()
5281{
5282/* Test availability of runtime routines for shift and division. */
5283 long long int llmax = 9223372036854775807ll;
5284 unsigned long long int ullmax = 18446744073709551615ull;
5285 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5286 | (llmax / ll) | (llmax % ll)
5287 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5288 | (ullmax / ull) | (ullmax % ull));
5289 ;
5290 return 0;
5291}
5292
5293_ACEOF
5294if ac_fn_c_try_link "$LINENO"; then :
5295
5296else
5297 ac_cv_type_unsigned_long_long_int=no
5298fi
5299rm -f core conftest.err conftest.$ac_objext \
5300 conftest$ac_exeext conftest.$ac_ext
5301 fi
5302fi
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5304$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306
5307$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5308
5309 fi
5310
5311
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5314$as_echo_n "checking for long long int... " >&6; }
5315if test "${ac_cv_type_long_long_int+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317else
5318 ac_cv_type_long_long_int=yes
5319 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5320 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5321 if test $ac_cv_type_long_long_int = yes; then
5322 if test "$cross_compiling" = yes; then :
5323 :
5324else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <limits.h>
5328 #ifndef LLONG_MAX
5329 # define HALF \
5330 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5331 # define LLONG_MAX (HALF - 1 + HALF)
5332 #endif
5333int
5334main ()
5335{
5336long long int n = 1;
5337 int i;
5338 for (i = 0; ; i++)
5339 {
5340 long long int m = n << i;
5341 if (m >> i != n)
5342 return 1;
5343 if (LLONG_MAX / 2 < m)
5344 break;
5345 }
5346 return 0;
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351if ac_fn_c_try_run "$LINENO"; then :
5352
5353else
5354 ac_cv_type_long_long_int=no
5355fi
5356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5357 conftest.$ac_objext conftest.beam conftest.$ac_ext
5358fi
5359
5360 fi
5361 fi
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5364$as_echo "$ac_cv_type_long_long_int" >&6; }
5365 if test $ac_cv_type_long_long_int = yes; then
5366
5367$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5368
5369 fi
5370
5371
5372
5373
5374
5375
5376
5377
a143c6de
JB
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5379$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5380if test "${gl_cv_have_include_next+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382else
5383 rm -rf conftestd1a conftestd1b conftestd2
5384 mkdir conftestd1a conftestd1b conftestd2
5385 cat <<EOF > conftestd1a/conftest.h
5386#define DEFINED_IN_CONFTESTD1
5387#include_next <conftest.h>
5388#ifdef DEFINED_IN_CONFTESTD2
5389int foo;
5390#else
5391#error "include_next doesn't work"
5392#endif
5393EOF
5394 cat <<EOF > conftestd1b/conftest.h
5395#define DEFINED_IN_CONFTESTD1
5396#include <stdio.h>
5397#include_next <conftest.h>
5398#ifdef DEFINED_IN_CONFTESTD2
5399int foo;
5400#else
5401#error "include_next doesn't work"
5402#endif
5403EOF
5404 cat <<EOF > conftestd2/conftest.h
5405#ifndef DEFINED_IN_CONFTESTD1
5406#error "include_next test doesn't work"
5407#endif
5408#define DEFINED_IN_CONFTESTD2
5409EOF
5410 gl_save_CPPFLAGS="$CPPFLAGS"
5411 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h. */
5414#include <conftest.h>
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417 gl_cv_have_include_next=yes
5418else
5419 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h. */
5422#include <conftest.h>
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"; then :
5425 gl_cv_have_include_next=buggy
5426else
5427 gl_cv_have_include_next=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 CPPFLAGS="$gl_save_CPPFLAGS"
5434 rm -rf conftestd1a conftestd1b conftestd2
5435
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5438$as_echo "$gl_cv_have_include_next" >&6; }
5439 PRAGMA_SYSTEM_HEADER=
5440 if test $gl_cv_have_include_next = yes; then
5441 INCLUDE_NEXT=include_next
5442 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5443 if test -n "$GCC"; then
5444 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5445 fi
5446 else
5447 if test $gl_cv_have_include_next = buggy; then
5448 INCLUDE_NEXT=include
5449 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5450 else
5451 INCLUDE_NEXT=include
5452 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5453 fi
5454 fi
5455
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5459$as_echo_n "checking whether system header files limit the line length... " >&6; }
5460if test "${gl_cv_pragma_columns+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462else
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h. */
5465
5466#ifdef __TANDEM
5467choke me
5468#endif
5469
5470_ACEOF
5471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472 $EGREP "choke me" >/dev/null 2>&1; then :
5473 gl_cv_pragma_columns=yes
5474else
5475 gl_cv_pragma_columns=no
5476fi
5477rm -f conftest*
5478
5479
5480fi
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5482$as_echo "$gl_cv_pragma_columns" >&6; }
5483 if test $gl_cv_pragma_columns = yes; then
5484 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5485 else
5486 PRAGMA_COLUMNS=
5487 fi
5488
5489
5490
5491
8690e634
JK
5492
5493
5494
5495
5496 gl_cv_c_multiarch=no
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h. */
5499#ifndef __APPLE_CC__
5500 not a universal capable compiler
5501 #endif
5502 typedef int dummy;
5503
5504_ACEOF
5505if ac_fn_c_try_compile "$LINENO"; then :
5506
5507 arch=
5508 prev=
5509 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5510 if test -n "$prev"; then
5511 case $word in
5512 i?86 | x86_64 | ppc | ppc64)
5513 if test -z "$arch" || test "$arch" = "$word"; then
5514 arch="$word"
5515 else
5516 gl_cv_c_multiarch=yes
5517 fi
5518 ;;
5519 esac
5520 prev=
5521 else
5522 if test "x$word" = "x-arch"; then
5523 prev=arch
5524 fi
5525 fi
5526 done
5527
5528fi
5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 if test $gl_cv_c_multiarch = yes; then
5531 APPLE_UNIVERSAL_BUILD=1
5532 else
5533 APPLE_UNIVERSAL_BUILD=0
5534 fi
5535
5536
5537
5538
5539
5540 if test $ac_cv_type_long_long_int = yes; then
5541 HAVE_LONG_LONG_INT=1
5542 else
5543 HAVE_LONG_LONG_INT=0
5544 fi
5545
5546
5547 if test $ac_cv_type_unsigned_long_long_int = yes; then
5548 HAVE_UNSIGNED_LONG_LONG_INT=1
5549 else
5550 HAVE_UNSIGNED_LONG_LONG_INT=0
5551 fi
5552
5553
5554
5555 :
5556
5557
5558
5559
5560
5561 if test $ac_cv_header_wchar_h = yes; then
5562 HAVE_WCHAR_H=1
5563 else
5564 HAVE_WCHAR_H=0
5565 fi
5566
5567
5568 if test $ac_cv_header_inttypes_h = yes; then
5569 HAVE_INTTYPES_H=1
5570 else
5571 HAVE_INTTYPES_H=0
5572 fi
5573
5574
5575 if test $ac_cv_header_sys_types_h = yes; then
5576 HAVE_SYS_TYPES_H=1
5577 else
5578 HAVE_SYS_TYPES_H=0
5579 fi
5580
5581
5582
5583
5584
5585
5586
5587
5588 :
5589
5590
5591
5592
5593
5594
5595
5596
5597 if test $gl_cv_have_include_next = yes; then
5598 gl_cv_next_stdint_h='<'stdint.h'>'
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5601$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5602if test "${gl_cv_next_stdint_h+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605
5606 if test $ac_cv_header_stdint_h = yes; then
5607
5608
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611#include <stdint.h>
5612
5613_ACEOF
5614 case "$host_os" in
5615 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5616 *) gl_absname_cpp="$ac_cpp" ;;
5617 esac
5618
5619 case "$host_os" in
5620 mingw*)
5621 gl_dirsep_regex='[/\\]'
5622 ;;
5623 *)
5624 gl_dirsep_regex='\/'
5625 ;;
5626 esac
5627 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5628
5629 gl_header_literal_regex=`echo 'stdint.h' \
5630 | sed -e "$gl_make_literal_regex_sed"`
5631 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5632 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5633 s|^/[^/]|//&|
5634 p
5635 q
5636 }'
5637 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5638 sed -n "$gl_absolute_header_sed"`'"'
5639 else
5640 gl_cv_next_stdint_h='<'stdint.h'>'
5641 fi
5642
5643
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5646$as_echo "$gl_cv_next_stdint_h" >&6; }
5647 fi
5648 NEXT_STDINT_H=$gl_cv_next_stdint_h
5649
5650 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5652 gl_next_as_first_directive='<'stdint.h'>'
5653 else
5654 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5655 gl_next_as_first_directive=$gl_cv_next_stdint_h
5656 fi
5657 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5658
5659
5660
5661
5662 if test $ac_cv_header_stdint_h = yes; then
5663 HAVE_STDINT_H=1
5664 else
5665 HAVE_STDINT_H=0
5666 fi
5667
5668
5669 if test $ac_cv_header_stdint_h = yes; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5671$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5672if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674else
5675 gl_cv_header_working_stdint_h=no
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678
5679
5680#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5681#include <stdint.h>
5682/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5683#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5684#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5685#endif
5686
5687
5688 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5689 included before <wchar.h>. */
5690 #include <stddef.h>
5691 #include <signal.h>
5692 #if HAVE_WCHAR_H
5693 # include <stdio.h>
5694 # include <time.h>
5695 # include <wchar.h>
5696 #endif
5697
5698
5699#ifdef INT8_MAX
5700int8_t a1 = INT8_MAX;
5701int8_t a1min = INT8_MIN;
5702#endif
5703#ifdef INT16_MAX
5704int16_t a2 = INT16_MAX;
5705int16_t a2min = INT16_MIN;
5706#endif
5707#ifdef INT32_MAX
5708int32_t a3 = INT32_MAX;
5709int32_t a3min = INT32_MIN;
5710#endif
5711#ifdef INT64_MAX
5712int64_t a4 = INT64_MAX;
5713int64_t a4min = INT64_MIN;
5714#endif
5715#ifdef UINT8_MAX
5716uint8_t b1 = UINT8_MAX;
5717#else
5718typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5719#endif
5720#ifdef UINT16_MAX
5721uint16_t b2 = UINT16_MAX;
5722#endif
5723#ifdef UINT32_MAX
5724uint32_t b3 = UINT32_MAX;
5725#endif
5726#ifdef UINT64_MAX
5727uint64_t b4 = UINT64_MAX;
5728#endif
5729int_least8_t c1 = INT8_C (0x7f);
5730int_least8_t c1max = INT_LEAST8_MAX;
5731int_least8_t c1min = INT_LEAST8_MIN;
5732int_least16_t c2 = INT16_C (0x7fff);
5733int_least16_t c2max = INT_LEAST16_MAX;
5734int_least16_t c2min = INT_LEAST16_MIN;
5735int_least32_t c3 = INT32_C (0x7fffffff);
5736int_least32_t c3max = INT_LEAST32_MAX;
5737int_least32_t c3min = INT_LEAST32_MIN;
5738int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5739int_least64_t c4max = INT_LEAST64_MAX;
5740int_least64_t c4min = INT_LEAST64_MIN;
5741uint_least8_t d1 = UINT8_C (0xff);
5742uint_least8_t d1max = UINT_LEAST8_MAX;
5743uint_least16_t d2 = UINT16_C (0xffff);
5744uint_least16_t d2max = UINT_LEAST16_MAX;
5745uint_least32_t d3 = UINT32_C (0xffffffff);
5746uint_least32_t d3max = UINT_LEAST32_MAX;
5747uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5748uint_least64_t d4max = UINT_LEAST64_MAX;
5749int_fast8_t e1 = INT_FAST8_MAX;
5750int_fast8_t e1min = INT_FAST8_MIN;
5751int_fast16_t e2 = INT_FAST16_MAX;
5752int_fast16_t e2min = INT_FAST16_MIN;
5753int_fast32_t e3 = INT_FAST32_MAX;
5754int_fast32_t e3min = INT_FAST32_MIN;
5755int_fast64_t e4 = INT_FAST64_MAX;
5756int_fast64_t e4min = INT_FAST64_MIN;
5757uint_fast8_t f1 = UINT_FAST8_MAX;
5758uint_fast16_t f2 = UINT_FAST16_MAX;
5759uint_fast32_t f3 = UINT_FAST32_MAX;
5760uint_fast64_t f4 = UINT_FAST64_MAX;
5761#ifdef INTPTR_MAX
5762intptr_t g = INTPTR_MAX;
5763intptr_t gmin = INTPTR_MIN;
5764#endif
5765#ifdef UINTPTR_MAX
5766uintptr_t h = UINTPTR_MAX;
5767#endif
5768intmax_t i = INTMAX_MAX;
5769uintmax_t j = UINTMAX_MAX;
5770
5771#include <limits.h> /* for CHAR_BIT */
5772#define TYPE_MINIMUM(t) \
5773 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5774#define TYPE_MAXIMUM(t) \
5775 ((t) ((t) 0 < (t) -1 \
5776 ? (t) -1 \
5777 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5778struct s {
5779 int check_PTRDIFF:
5780 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5781 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5782 ? 1 : -1;
5783 /* Detect bug in FreeBSD 6.0 / ia64. */
5784 int check_SIG_ATOMIC:
5785 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5786 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5787 ? 1 : -1;
5788 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5789 int check_WCHAR:
5790 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5791 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5792 ? 1 : -1;
5793 /* Detect bug in mingw. */
5794 int check_WINT:
5795 WINT_MIN == TYPE_MINIMUM (wint_t)
5796 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5797 ? 1 : -1;
5798
5799 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5800 int check_UINT8_C:
5801 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5802 int check_UINT16_C:
5803 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5804
5805 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5806#ifdef UINT8_MAX
5807 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5808#endif
5809#ifdef UINT16_MAX
5810 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5811#endif
5812#ifdef UINT32_MAX
5813 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5814#endif
5815#ifdef UINT64_MAX
5816 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5817#endif
5818 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5819 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5820 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5821 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5822 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5823 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5824 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5825 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5826 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5827 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5828 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5829};
5830
5831int
5832main ()
5833{
5834
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839if ac_fn_c_try_compile "$LINENO"; then :
5840 if test "$cross_compiling" = yes; then :
5841 gl_cv_header_working_stdint_h=yes
5842
5843else
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h. */
5846
5847
5848#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5849#include <stdint.h>
5850
5851
5852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5853 included before <wchar.h>. */
5854 #include <stddef.h>
5855 #include <signal.h>
5856 #if HAVE_WCHAR_H
5857 # include <stdio.h>
5858 # include <time.h>
5859 # include <wchar.h>
5860 #endif
5861
5862
5863#include <stdio.h>
5864#include <string.h>
5865#define MVAL(macro) MVAL1(macro)
5866#define MVAL1(expression) #expression
5867static const char *macro_values[] =
5868 {
5869#ifdef INT8_MAX
5870 MVAL (INT8_MAX),
5871#endif
5872#ifdef INT16_MAX
5873 MVAL (INT16_MAX),
5874#endif
5875#ifdef INT32_MAX
5876 MVAL (INT32_MAX),
5877#endif
5878#ifdef INT64_MAX
5879 MVAL (INT64_MAX),
5880#endif
5881#ifdef UINT8_MAX
5882 MVAL (UINT8_MAX),
5883#endif
5884#ifdef UINT16_MAX
5885 MVAL (UINT16_MAX),
5886#endif
5887#ifdef UINT32_MAX
5888 MVAL (UINT32_MAX),
5889#endif
5890#ifdef UINT64_MAX
5891 MVAL (UINT64_MAX),
5892#endif
5893 NULL
5894 };
5895
5896int
5897main ()
5898{
5899
5900 const char **mv;
5901 for (mv = macro_values; *mv != NULL; mv++)
5902 {
5903 const char *value = *mv;
5904 /* Test whether it looks like a cast expression. */
5905 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5906 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5907 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5908 || strncmp (value, "((int)"/*)*/, 6) == 0
5909 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5910 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5911 return mv - macro_values + 1;
5912 }
5913 return 0;
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_run "$LINENO"; then :
5920 gl_cv_header_working_stdint_h=yes
5921fi
5922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5923 conftest.$ac_objext conftest.beam conftest.$ac_ext
5924fi
5925
5926
5927fi
5928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5932$as_echo "$gl_cv_header_working_stdint_h" >&6; }
5933 fi
5934 if test "$gl_cv_header_working_stdint_h" = yes; then
5935 STDINT_H=
5936 else
5937 for ac_header in sys/inttypes.h sys/bitypes.h
5938do :
5939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5941eval as_val=\$$as_ac_Header
5942 if test "x$as_val" = x""yes; then :
5943 cat >>confdefs.h <<_ACEOF
5944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5945_ACEOF
5946
5947fi
5948
5949done
5950
5951 if test $ac_cv_header_sys_inttypes_h = yes; then
5952 HAVE_SYS_INTTYPES_H=1
5953 else
5954 HAVE_SYS_INTTYPES_H=0
5955 fi
5956
5957 if test $ac_cv_header_sys_bitypes_h = yes; then
5958 HAVE_SYS_BITYPES_H=1
5959 else
5960 HAVE_SYS_BITYPES_H=0
5961 fi
5962
5963
5964
5965
5966 if test $APPLE_UNIVERSAL_BUILD = 0; then
5967
5968
5969 for gltype in ptrdiff_t size_t ; do
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5971$as_echo_n "checking for bit size of $gltype... " >&6; }
5972if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5973 $as_echo_n "(cached) " >&6
5974else
5975 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5976 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5977 included before <wchar.h>. */
5978 #include <stddef.h>
5979 #include <signal.h>
5980 #if HAVE_WCHAR_H
5981 # include <stdio.h>
5982 # include <time.h>
5983 # include <wchar.h>
5984 #endif
5985
5986#include <limits.h>"; then :
5987
5988else
5989 result=unknown
5990fi
5991
5992 eval gl_cv_bitsizeof_${gltype}=\$result
5993
5994fi
5995eval ac_res=\$gl_cv_bitsizeof_${gltype}
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5997$as_echo "$ac_res" >&6; }
5998 eval result=\$gl_cv_bitsizeof_${gltype}
5999 if test $result = unknown; then
6000 result=0
6001 fi
6002 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6003 cat >>confdefs.h <<_ACEOF
6004#define BITSIZEOF_${GLTYPE} $result
6005_ACEOF
6006
6007 eval BITSIZEOF_${GLTYPE}=\$result
6008 done
6009
6010
6011 fi
6012
6013
6014 for gltype in sig_atomic_t wchar_t wint_t ; do
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6016$as_echo_n "checking for bit size of $gltype... " >&6; }
6017if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6018 $as_echo_n "(cached) " >&6
6019else
6020 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6021 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6022 included before <wchar.h>. */
6023 #include <stddef.h>
6024 #include <signal.h>
6025 #if HAVE_WCHAR_H
6026 # include <stdio.h>
6027 # include <time.h>
6028 # include <wchar.h>
6029 #endif
6030
6031#include <limits.h>"; then :
6032
6033else
6034 result=unknown
6035fi
6036
6037 eval gl_cv_bitsizeof_${gltype}=\$result
6038
6039fi
6040eval ac_res=\$gl_cv_bitsizeof_${gltype}
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6042$as_echo "$ac_res" >&6; }
6043 eval result=\$gl_cv_bitsizeof_${gltype}
6044 if test $result = unknown; then
6045 result=0
6046 fi
6047 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6048 cat >>confdefs.h <<_ACEOF
6049#define BITSIZEOF_${GLTYPE} $result
6050_ACEOF
6051
6052 eval BITSIZEOF_${GLTYPE}=\$result
6053 done
6054
6055
6056
6057
6058 for gltype in sig_atomic_t wchar_t wint_t ; do
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6060$as_echo_n "checking whether $gltype is signed... " >&6; }
6061if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6062 $as_echo_n "(cached) " >&6
6063else
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h. */
6066
6067 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6068 included before <wchar.h>. */
6069 #include <stddef.h>
6070 #include <signal.h>
6071 #if HAVE_WCHAR_H
6072 # include <stdio.h>
6073 # include <time.h>
6074 # include <wchar.h>
6075 #endif
6076
6077 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6078int
6079main ()
6080{
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087 result=yes
6088else
6089 result=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 eval gl_cv_type_${gltype}_signed=\$result
6093
6094fi
6095eval ac_res=\$gl_cv_type_${gltype}_signed
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6097$as_echo "$ac_res" >&6; }
6098 eval result=\$gl_cv_type_${gltype}_signed
6099 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6100 if test "$result" = yes; then
6101 cat >>confdefs.h <<_ACEOF
6102#define HAVE_SIGNED_${GLTYPE} 1
6103_ACEOF
6104
6105 eval HAVE_SIGNED_${GLTYPE}=1
6106 else
6107 eval HAVE_SIGNED_${GLTYPE}=0
6108 fi
6109 done
6110
6111
6112 gl_cv_type_ptrdiff_t_signed=yes
6113 gl_cv_type_size_t_signed=no
6114 if test $APPLE_UNIVERSAL_BUILD = 0; then
6115
6116
6117 for gltype in ptrdiff_t size_t ; do
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6119$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6120if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 eval gl_cv_type_${gltype}_suffix=no
6124 eval result=\$gl_cv_type_${gltype}_signed
6125 if test "$result" = yes; then
6126 glsufu=
6127 else
6128 glsufu=u
6129 fi
6130 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6131 case $glsuf in
6132 '') gltype1='int';;
6133 l) gltype1='long int';;
6134 ll) gltype1='long long int';;
6135 i64) gltype1='__int64';;
6136 u) gltype1='unsigned int';;
6137 ul) gltype1='unsigned long int';;
6138 ull) gltype1='unsigned long long int';;
6139 ui64)gltype1='unsigned __int64';;
6140 esac
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h. */
6143
6144 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6145 included before <wchar.h>. */
6146 #include <stddef.h>
6147 #include <signal.h>
6148 #if HAVE_WCHAR_H
6149 # include <stdio.h>
6150 # include <time.h>
6151 # include <wchar.h>
6152 #endif
6153
6154 extern $gltype foo;
6155 extern $gltype1 foo;
6156int
6157main ()
6158{
6159
6160 ;
6161 return 0;
6162}
6163_ACEOF
6164if ac_fn_c_try_compile "$LINENO"; then :
6165 eval gl_cv_type_${gltype}_suffix=\$glsuf
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 eval result=\$gl_cv_type_${gltype}_suffix
6169 test "$result" != no && break
6170 done
6171fi
6172eval ac_res=\$gl_cv_type_${gltype}_suffix
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6174$as_echo "$ac_res" >&6; }
6175 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6176 eval result=\$gl_cv_type_${gltype}_suffix
6177 test "$result" = no && result=
6178 eval ${GLTYPE}_SUFFIX=\$result
6179 cat >>confdefs.h <<_ACEOF
6180#define ${GLTYPE}_SUFFIX $result
6181_ACEOF
6182
6183 done
6184
6185
6186 fi
6187
6188
6189 for gltype in sig_atomic_t wchar_t wint_t ; do
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6191$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6192if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6193 $as_echo_n "(cached) " >&6
6194else
6195 eval gl_cv_type_${gltype}_suffix=no
6196 eval result=\$gl_cv_type_${gltype}_signed
6197 if test "$result" = yes; then
6198 glsufu=
6199 else
6200 glsufu=u
6201 fi
6202 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6203 case $glsuf in
6204 '') gltype1='int';;
6205 l) gltype1='long int';;
6206 ll) gltype1='long long int';;
6207 i64) gltype1='__int64';;
6208 u) gltype1='unsigned int';;
6209 ul) gltype1='unsigned long int';;
6210 ull) gltype1='unsigned long long int';;
6211 ui64)gltype1='unsigned __int64';;
6212 esac
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215
6216 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6217 included before <wchar.h>. */
6218 #include <stddef.h>
6219 #include <signal.h>
6220 #if HAVE_WCHAR_H
6221 # include <stdio.h>
6222 # include <time.h>
6223 # include <wchar.h>
6224 #endif
6225
6226 extern $gltype foo;
6227 extern $gltype1 foo;
6228int
6229main ()
6230{
6231
6232 ;
6233 return 0;
6234}
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"; then :
6237 eval gl_cv_type_${gltype}_suffix=\$glsuf
6238fi
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 eval result=\$gl_cv_type_${gltype}_suffix
6241 test "$result" != no && break
6242 done
6243fi
6244eval ac_res=\$gl_cv_type_${gltype}_suffix
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6246$as_echo "$ac_res" >&6; }
6247 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6248 eval result=\$gl_cv_type_${gltype}_suffix
6249 test "$result" = no && result=
6250 eval ${GLTYPE}_SUFFIX=\$result
6251 cat >>confdefs.h <<_ACEOF
6252#define ${GLTYPE}_SUFFIX $result
6253_ACEOF
6254
6255 done
6256
6257
6258
6259 if test $BITSIZEOF_WINT_T -lt 32; then
6260 BITSIZEOF_WINT_T=32
6261 fi
6262
6263 STDINT_H=stdint.h
6264 fi
6265
6266 if test -n "$STDINT_H"; then
6267 GL_GENERATE_STDINT_H_TRUE=
6268 GL_GENERATE_STDINT_H_FALSE='#'
6269else
6270 GL_GENERATE_STDINT_H_TRUE='#'
6271 GL_GENERATE_STDINT_H_FALSE=
6272fi
6273
6274
6275
6276
6277
6278
6279
6280
6281 GNULIB_IMAXABS=0;
6282 GNULIB_IMAXDIV=0;
6283 GNULIB_STRTOIMAX=0;
6284 GNULIB_STRTOUMAX=0;
6285 HAVE_DECL_IMAXABS=1;
6286 HAVE_DECL_IMAXDIV=1;
6287 HAVE_DECL_STRTOIMAX=1;
6288 HAVE_DECL_STRTOUMAX=1;
6289 REPLACE_STRTOIMAX=0;
6290 INT32_MAX_LT_INTMAX_MAX=1;
6291 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6292 PRI_MACROS_BROKEN=0;
6293 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6294 UINT32_MAX_LT_UINTMAX_MAX=1;
6295 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6296
6297
6298
6299
6300 :
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 :
6315
6316
6317
6318
6319
6320
6321
6322
6323 if test $gl_cv_have_include_next = yes; then
6324 gl_cv_next_inttypes_h='<'inttypes.h'>'
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6327$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6328if test "${gl_cv_next_inttypes_h+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6330else
6331
6332 if test $ac_cv_header_inttypes_h = yes; then
6333
6334
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h. */
6337#include <inttypes.h>
6338
6339_ACEOF
6340 case "$host_os" in
6341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6342 *) gl_absname_cpp="$ac_cpp" ;;
6343 esac
6344
6345 case "$host_os" in
6346 mingw*)
6347 gl_dirsep_regex='[/\\]'
6348 ;;
6349 *)
6350 gl_dirsep_regex='\/'
6351 ;;
6352 esac
6353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6354
6355 gl_header_literal_regex=`echo 'inttypes.h' \
6356 | sed -e "$gl_make_literal_regex_sed"`
6357 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6359 s|^/[^/]|//&|
6360 p
6361 q
6362 }'
6363 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6364 sed -n "$gl_absolute_header_sed"`'"'
6365 else
6366 gl_cv_next_inttypes_h='<'inttypes.h'>'
6367 fi
6368
6369
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6372$as_echo "$gl_cv_next_inttypes_h" >&6; }
6373 fi
6374 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6375
6376 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6378 gl_next_as_first_directive='<'inttypes.h'>'
6379 else
6380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6381 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6382 fi
6383 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6384
6385
6386
6387
6388
6389
6390
6391
6392 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6393 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6395$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6396if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6397 $as_echo_n "(cached) " >&6
6398else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h. */
6401#include <inttypes.h>
6402
6403int
6404main ()
6405{
6406#undef $gl_func
6407 (void) $gl_func;
6408 ;
6409 return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_compile "$LINENO"; then :
6413 eval "$as_gl_Symbol=yes"
6414else
6415 eval "$as_gl_Symbol=no"
6416fi
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418fi
6419eval ac_res=\$$as_gl_Symbol
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6421$as_echo "$ac_res" >&6; }
6422 eval as_val=\$$as_gl_Symbol
6423 if test "x$as_val" = x""yes; then :
6424 cat >>confdefs.h <<_ACEOF
6425#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6426_ACEOF
6427
6428 eval ac_cv_have_decl_$gl_func=yes
6429fi
6430 done
6431
6432
6433
6434 for ac_header in inttypes.h
6435do :
6436 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6437if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6438 cat >>confdefs.h <<_ACEOF
6439#define HAVE_INTTYPES_H 1
6440_ACEOF
6441
6442fi
6443
6444done
6445
6446 if test $ac_cv_header_inttypes_h = yes; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6448$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6449if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451else
6452
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h. */
6455
6456#include <inttypes.h>
6457#ifdef PRId32
6458char *p = PRId32;
6459#endif
6460
6461int
6462main ()
6463{
6464
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_compile "$LINENO"; then :
6470 gt_cv_inttypes_pri_broken=no
6471else
6472 gt_cv_inttypes_pri_broken=yes
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475
6476fi
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6478$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6479 fi
6480 if test "$gt_cv_inttypes_pri_broken" = yes; then
6481
6482cat >>confdefs.h <<_ACEOF
6483#define PRI_MACROS_BROKEN 1
6484_ACEOF
6485
6486 PRI_MACROS_BROKEN=1
6487 else
6488 PRI_MACROS_BROKEN=0
6489 fi
6490
6491
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6494$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6495if test "${am_cv_langinfo_codeset+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6497else
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499/* end confdefs.h. */
6500#include <langinfo.h>
6501int
6502main ()
6503{
6504char* cs = nl_langinfo(CODESET); return !cs;
6505 ;
6506 return 0;
6507}
6508_ACEOF
6509if ac_fn_c_try_link "$LINENO"; then :
6510 am_cv_langinfo_codeset=yes
6511else
6512 am_cv_langinfo_codeset=no
6513fi
6514rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6516
6517fi
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6519$as_echo "$am_cv_langinfo_codeset" >&6; }
6520 if test $am_cv_langinfo_codeset = yes; then
6521
6522$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6523
6524 fi
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 :
6541
6542
6543
6544
6545
6546
6547 :
6548
6549
6550
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6554$as_echo_n "checking for working fcntl.h... " >&6; }
6555if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557else
6558 if test "$cross_compiling" = yes; then :
6559 gl_cv_header_working_fcntl_h=cross-compiling
6560else
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h. */
6563#include <sys/types.h>
6564 #include <sys/stat.h>
6565 #if HAVE_UNISTD_H
6566 # include <unistd.h>
6567 #else /* on Windows with MSVC */
6568 # include <io.h>
6569 # include <stdlib.h>
6570 # defined sleep(n) _sleep ((n) * 1000)
6571 #endif
6572 #include <fcntl.h>
6573 #ifndef O_NOATIME
6574 #define O_NOATIME 0
6575 #endif
6576 #ifndef O_NOFOLLOW
6577 #define O_NOFOLLOW 0
6578 #endif
6579 static int const constants[] =
6580 {
6581 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6582 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6583 };
6584
6585int
6586main ()
6587{
6588
6589 int result = !constants;
6590 #if HAVE_SYMLINK
6591 {
6592 static char const sym[] = "conftest.sym";
a512b375
JB
6593 if (symlink ("/dev/null", sym) != 0)
6594 result |= 2;
6595 else
6596 {
6597 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
6598 if (fd >= 0)
6599 {
6600 close (fd);
6601 result |= 4;
6602 }
6603 }
6604 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
6605 result |= 2;
6606 else
6607 {
6608 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6609 if (fd >= 0)
6610 {
6611 close (fd);
6612 result |= 4;
6613 }
6614 }
6615 unlink (sym);
6616 }
6617 #endif
6618 {
6619 static char const file[] = "confdefs.h";
6620 int fd = open (file, O_RDONLY | O_NOATIME);
6621 if (fd < 0)
6622 result |= 8;
6623 else
6624 {
6625 struct stat st0;
6626 if (fstat (fd, &st0) != 0)
6627 result |= 16;
6628 else
6629 {
6630 char c;
6631 sleep (1);
6632 if (read (fd, &c, 1) != 1)
6633 result |= 24;
6634 else
6635 {
6636 if (close (fd) != 0)
6637 result |= 32;
6638 else
6639 {
6640 struct stat st1;
6641 if (stat (file, &st1) != 0)
6642 result |= 40;
6643 else
6644 if (st0.st_atime != st1.st_atime)
6645 result |= 64;
6646 }
6647 }
6648 }
6649 }
6650 }
6651 return result;
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_run "$LINENO"; then :
6657 gl_cv_header_working_fcntl_h=yes
6658else
6659 case $? in #(
6660 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6661 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6662 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6663 *) gl_cv_header_working_fcntl_h='no';;
6664 esac
6665fi
6666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6667 conftest.$ac_objext conftest.beam conftest.$ac_ext
6668fi
6669
6670fi
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6672$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6673
6674 case $gl_cv_header_working_fcntl_h in #(
6675 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6676 *) ac_val=1;;
6677 esac
6678
6679cat >>confdefs.h <<_ACEOF
6680#define HAVE_WORKING_O_NOATIME $ac_val
6681_ACEOF
6682
6683
6684 case $gl_cv_header_working_fcntl_h in #(
6685 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6686 *) ac_val=1;;
6687 esac
6688
6689cat >>confdefs.h <<_ACEOF
6690#define HAVE_WORKING_O_NOFOLLOW $ac_val
6691_ACEOF
6692
6693
6694
6695 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6696if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
6697 ac_have_decl=1
6698else
6699 ac_have_decl=0
6700fi
6701
6702cat >>confdefs.h <<_ACEOF
6703#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6704_ACEOF
6705
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6709$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6710if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h. */
6715
6716#include <features.h>
6717#ifdef __GNU_LIBRARY__
6718 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6719 Lucky GNU user
6720 #endif
6721#endif
6722#ifdef __UCLIBC__
6723 Lucky user
6724#endif
6725
6726_ACEOF
6727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728 $EGREP "Lucky" >/dev/null 2>&1; then :
6729 ac_cv_gnu_library_2_1=yes
6730else
6731 ac_cv_gnu_library_2_1=no
6732fi
6733rm -f conftest*
6734
6735
6736
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6739$as_echo "$ac_cv_gnu_library_2_1" >&6; }
6740
6741 GLIBC21="$ac_cv_gnu_library_2_1"
6742
6743
6744
6745 GNULIB_BTOWC=0;
6746 GNULIB_WCTOB=0;
6747 GNULIB_MBSINIT=0;
6748 GNULIB_MBRTOWC=0;
6749 GNULIB_MBRLEN=0;
6750 GNULIB_MBSRTOWCS=0;
6751 GNULIB_MBSNRTOWCS=0;
6752 GNULIB_WCRTOMB=0;
6753 GNULIB_WCSRTOMBS=0;
6754 GNULIB_WCSNRTOMBS=0;
6755 GNULIB_WCWIDTH=0;
6756 GNULIB_WMEMCHR=0;
6757 GNULIB_WMEMCMP=0;
6758 GNULIB_WMEMCPY=0;
6759 GNULIB_WMEMMOVE=0;
6760 GNULIB_WMEMSET=0;
6761 GNULIB_WCSLEN=0;
6762 GNULIB_WCSNLEN=0;
6763 GNULIB_WCSCPY=0;
6764 GNULIB_WCPCPY=0;
6765 GNULIB_WCSNCPY=0;
6766 GNULIB_WCPNCPY=0;
6767 GNULIB_WCSCAT=0;
6768 GNULIB_WCSNCAT=0;
6769 GNULIB_WCSCMP=0;
6770 GNULIB_WCSNCMP=0;
6771 GNULIB_WCSCASECMP=0;
6772 GNULIB_WCSNCASECMP=0;
6773 GNULIB_WCSCOLL=0;
6774 GNULIB_WCSXFRM=0;
6775 GNULIB_WCSDUP=0;
6776 GNULIB_WCSCHR=0;
6777 GNULIB_WCSRCHR=0;
6778 GNULIB_WCSCSPN=0;
6779 GNULIB_WCSSPN=0;
6780 GNULIB_WCSPBRK=0;
6781 GNULIB_WCSSTR=0;
6782 GNULIB_WCSTOK=0;
6783 GNULIB_WCSWIDTH=0;
6784 HAVE_BTOWC=1;
6785 HAVE_MBSINIT=1;
6786 HAVE_MBRTOWC=1;
6787 HAVE_MBRLEN=1;
6788 HAVE_MBSRTOWCS=1;
6789 HAVE_MBSNRTOWCS=1;
6790 HAVE_WCRTOMB=1;
6791 HAVE_WCSRTOMBS=1;
6792 HAVE_WCSNRTOMBS=1;
6793 HAVE_WMEMCHR=1;
6794 HAVE_WMEMCMP=1;
6795 HAVE_WMEMCPY=1;
6796 HAVE_WMEMMOVE=1;
6797 HAVE_WMEMSET=1;
6798 HAVE_WCSLEN=1;
6799 HAVE_WCSNLEN=1;
6800 HAVE_WCSCPY=1;
6801 HAVE_WCPCPY=1;
6802 HAVE_WCSNCPY=1;
6803 HAVE_WCPNCPY=1;
6804 HAVE_WCSCAT=1;
6805 HAVE_WCSNCAT=1;
6806 HAVE_WCSCMP=1;
6807 HAVE_WCSNCMP=1;
6808 HAVE_WCSCASECMP=1;
6809 HAVE_WCSNCASECMP=1;
6810 HAVE_WCSCOLL=1;
6811 HAVE_WCSXFRM=1;
6812 HAVE_WCSDUP=1;
6813 HAVE_WCSCHR=1;
6814 HAVE_WCSRCHR=1;
6815 HAVE_WCSCSPN=1;
6816 HAVE_WCSSPN=1;
6817 HAVE_WCSPBRK=1;
6818 HAVE_WCSSTR=1;
6819 HAVE_WCSTOK=1;
6820 HAVE_WCSWIDTH=1;
6821 HAVE_DECL_WCTOB=1;
6822 HAVE_DECL_WCWIDTH=1;
6823 REPLACE_MBSTATE_T=0;
6824 REPLACE_BTOWC=0;
6825 REPLACE_WCTOB=0;
6826 REPLACE_MBSINIT=0;
6827 REPLACE_MBRTOWC=0;
6828 REPLACE_MBRLEN=0;
6829 REPLACE_MBSRTOWCS=0;
6830 REPLACE_MBSNRTOWCS=0;
6831 REPLACE_WCRTOMB=0;
6832 REPLACE_WCSRTOMBS=0;
6833 REPLACE_WCSNRTOMBS=0;
6834 REPLACE_WCWIDTH=0;
6835 REPLACE_WCSWIDTH=0;
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6851$as_echo_n "checking for a traditional japanese locale... " >&6; }
6852if test "${gt_cv_locale_ja+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854else
6855
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h. */
6858
6859#include <locale.h>
6860#include <time.h>
6861#if HAVE_LANGINFO_CODESET
6862# include <langinfo.h>
6863#endif
6864#include <stdlib.h>
6865#include <string.h>
6866struct tm t;
6867char buf[16];
6868int main ()
6869{
6870 const char *p;
6871 /* Check whether the given locale name is recognized by the system. */
6872#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6873 /* On native Windows, setlocale(category, "") looks at the system settings,
6874 not at the environment variables. Also, when an encoding suffix such
6875 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6876 category of the locale to "C". */
6877 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6878 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6879 return 1;
6880#else
6881 if (setlocale (LC_ALL, "") == NULL) return 1;
6882#endif
6883 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6884 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6885 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6886 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6887 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6888 some unit tests fail.
6889 On MirBSD 10, when an unsupported locale is specified, setlocale()
6890 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
6891#if HAVE_LANGINFO_CODESET
6892 {
6893 const char *cs = nl_langinfo (CODESET);
6894 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6895 || strcmp (cs, "UTF-8") == 0)
6896 return 1;
6897 }
6898#endif
6899#ifdef __CYGWIN__
6900 /* On Cygwin, avoid locale names without encoding suffix, because the
6901 locale_charset() function relies on the encoding suffix. Note that
6902 LC_ALL is set on the command line. */
6903 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6904#endif
6905 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
6906 on Cygwin 1.5.x. */
6907 if (MB_CUR_MAX == 1)
6908 return 1;
6909 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
6910 This excludes the UTF-8 encoding (except on MirBSD). */
6911 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6912 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
6913 for (p = buf; *p != '\0'; p++)
6914 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
6915 return 1;
6916 return 0;
6917}
6918
6919_ACEOF
6920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6921 (eval $ac_link) 2>&5
6922 ac_status=$?
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6925 case "$host_os" in
6926 # Handle native Windows specially, because there setlocale() interprets
6927 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
6928 # "fr" or "fra" as "French" or "French_France.1252",
6929 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
6930 # "ja" as "Japanese" or "Japanese_Japan.932",
6931 # and similar.
6932 mingw*)
6933 # Note that on native Windows, the Japanese locale is
6934 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
6935 # cannot use it here.
6936 gt_cv_locale_ja=none
6937 ;;
6938 *)
6939 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6940 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
6941 # configure script would override the LC_ALL setting. Likewise for
6942 # LC_CTYPE, which is also set at the beginning of the configure script.
6943 # Test for the AIX locale name.
6944 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6945 gt_cv_locale_ja=ja_JP
6946 else
6947 # Test for the locale name with explicit encoding suffix.
6948 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6949 gt_cv_locale_ja=ja_JP.EUC-JP
6950 else
6951 # Test for the HP-UX, OSF/1, NetBSD locale name.
6952 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6953 gt_cv_locale_ja=ja_JP.eucJP
6954 else
6955 # Test for the IRIX, FreeBSD locale name.
6956 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6957 gt_cv_locale_ja=ja_JP.EUC
6958 else
6959 # Test for the Solaris 7 locale name.
6960 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6961 gt_cv_locale_ja=ja
6962 else
6963 # Special test for NetBSD 1.6.
6964 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
6965 gt_cv_locale_ja=ja_JP.eucJP
6966 else
6967 # None found.
6968 gt_cv_locale_ja=none
6969 fi
6970 fi
6971 fi
6972 fi
6973 fi
6974 fi
6975 ;;
6976 esac
6977 fi
6978 rm -fr conftest*
6979
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
6982$as_echo "$gt_cv_locale_ja" >&6; }
6983 LOCALE_JA=$gt_cv_locale_ja
6984
6985
6986
6987
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
6990$as_echo_n "checking for a transitional chinese locale... " >&6; }
6991if test "${gt_cv_locale_zh_CN+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6993else
6994
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h. */
6997
6998#include <locale.h>
6999#include <stdlib.h>
7000#include <time.h>
7001#if HAVE_LANGINFO_CODESET
7002# include <langinfo.h>
7003#endif
7004#include <stdlib.h>
7005#include <string.h>
7006struct tm t;
7007char buf[16];
7008int main ()
7009{
7010 const char *p;
7011 /* Check whether the given locale name is recognized by the system. */
7012#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7013 /* On native Windows, setlocale(category, "") looks at the system settings,
7014 not at the environment variables. Also, when an encoding suffix such
7015 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7016 category of the locale to "C". */
7017 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7018 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7019 return 1;
7020#else
7021 if (setlocale (LC_ALL, "") == NULL) return 1;
7022#endif
7023 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7024 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7025 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7026 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7027 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7028 some unit tests fail.
7029 On MirBSD 10, when an unsupported locale is specified, setlocale()
7030 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7031#if HAVE_LANGINFO_CODESET
7032 {
7033 const char *cs = nl_langinfo (CODESET);
7034 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7035 || strcmp (cs, "UTF-8") == 0)
7036 return 1;
7037 }
7038#endif
7039#ifdef __CYGWIN__
7040 /* On Cygwin, avoid locale names without encoding suffix, because the
7041 locale_charset() function relies on the encoding suffix. Note that
7042 LC_ALL is set on the command line. */
7043 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7044#endif
7045 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7046 This excludes the UTF-8 encoding (except on MirBSD). */
7047 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7048 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7049 for (p = buf; *p != '\0'; p++)
7050 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7051 return 1;
7052 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7053 single wide character. This excludes the GB2312 and GBK encodings. */
7054 if (mblen ("\203\062\332\066", 5) != 4)
7055 return 1;
7056 return 0;
7057}
7058
7059_ACEOF
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7061 (eval $ac_link) 2>&5
7062 ac_status=$?
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7065 case "$host_os" in
7066 # Handle native Windows specially, because there setlocale() interprets
7067 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7068 # "fr" or "fra" as "French" or "French_France.1252",
7069 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7070 # "ja" as "Japanese" or "Japanese_Japan.932",
7071 # and similar.
7072 mingw*)
7073 # Test for the hypothetical native Windows locale name.
7074 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7075 gt_cv_locale_zh_CN=Chinese_China.54936
7076 else
7077 # None found.
7078 gt_cv_locale_zh_CN=none
7079 fi
7080 ;;
7081 solaris2.8)
7082 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7083 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7084 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7085 gt_cv_locale_zh_CN=none
7086 ;;
7087 *)
7088 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7089 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7090 # configure script would override the LC_ALL setting. Likewise for
7091 # LC_CTYPE, which is also set at the beginning of the configure script.
7092 # Test for the locale name without encoding suffix.
7093 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7094 gt_cv_locale_zh_CN=zh_CN
7095 else
7096 # Test for the locale name with explicit encoding suffix.
7097 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7098 gt_cv_locale_zh_CN=zh_CN.GB18030
7099 else
7100 # None found.
7101 gt_cv_locale_zh_CN=none
7102 fi
7103 fi
7104 ;;
7105 esac
7106 else
7107 # If there was a link error, due to mblen(), the system is so old that
7108 # it certainly doesn't have a chinese locale.
7109 gt_cv_locale_zh_CN=none
7110 fi
7111 rm -fr conftest*
7112
7113fi
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7115$as_echo "$gt_cv_locale_zh_CN" >&6; }
7116 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7117
7118
7119
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7122$as_echo_n "checking for a french Unicode locale... " >&6; }
7123if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125else
7126
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h. */
7129
7130#include <locale.h>
7131#include <time.h>
7132#if HAVE_LANGINFO_CODESET
7133# include <langinfo.h>
7134#endif
7135#include <stdlib.h>
7136#include <string.h>
7137struct tm t;
7138char buf[16];
7139int main () {
7140 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7141 imitates locale dependent behaviour by looking at the environment
7142 variables, and all locales use the UTF-8 encoding. */
7143#if !(defined __BEOS__ || defined __HAIKU__)
7144 /* Check whether the given locale name is recognized by the system. */
7145# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7146 /* On native Windows, setlocale(category, "") looks at the system settings,
7147 not at the environment variables. Also, when an encoding suffix such
7148 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7149 category of the locale to "C". */
7150 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7151 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7152 return 1;
7153# else
7154 if (setlocale (LC_ALL, "") == NULL) return 1;
7155# endif
7156 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7157 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7158 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7159 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7160 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7161 some unit tests fail. */
7162# if HAVE_LANGINFO_CODESET
7163 {
7164 const char *cs = nl_langinfo (CODESET);
7165 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7166 return 1;
7167 }
7168# endif
7169# ifdef __CYGWIN__
7170 /* On Cygwin, avoid locale names without encoding suffix, because the
7171 locale_charset() function relies on the encoding suffix. Note that
7172 LC_ALL is set on the command line. */
7173 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7174# endif
7175 /* Check whether in the abbreviation of the second month, the second
7176 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7177 two bytes long, with UTF-8 encoding. */
7178 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7179 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7180 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7181 return 1;
7182#endif
7183#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7184 /* Check whether the decimal separator is a comma.
7185 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7186 are nl_langinfo(RADIXCHAR) are both ".". */
7187 if (localeconv () ->decimal_point[0] != ',') return 1;
7188#endif
7189 return 0;
7190}
7191
7192_ACEOF
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7194 (eval $ac_link) 2>&5
7195 ac_status=$?
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7198 case "$host_os" in
7199 # Handle native Windows specially, because there setlocale() interprets
7200 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7201 # "fr" or "fra" as "French" or "French_France.1252",
7202 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7203 # "ja" as "Japanese" or "Japanese_Japan.932",
7204 # and similar.
7205 mingw*)
7206 # Test for the hypothetical native Windows locale name.
7207 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7208 gt_cv_locale_fr_utf8=French_France.65001
7209 else
7210 # None found.
7211 gt_cv_locale_fr_utf8=none
7212 fi
7213 ;;
7214 *)
7215 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7216 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7217 # configure script would override the LC_ALL setting. Likewise for
7218 # LC_CTYPE, which is also set at the beginning of the configure script.
7219 # Test for the usual locale name.
7220 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7221 gt_cv_locale_fr_utf8=fr_FR
7222 else
7223 # Test for the locale name with explicit encoding suffix.
7224 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7225 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7226 else
7227 # Test for the Solaris 7 locale name.
7228 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7229 gt_cv_locale_fr_utf8=fr.UTF-8
7230 else
7231 # None found.
7232 gt_cv_locale_fr_utf8=none
7233 fi
7234 fi
7235 fi
7236 ;;
7237 esac
7238 fi
7239 rm -fr conftest*
7240
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7243$as_echo "$gt_cv_locale_fr_utf8" >&6; }
7244 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7245
7246
7247
7248
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7251$as_echo_n "checking for a traditional french locale... " >&6; }
7252if test "${gt_cv_locale_fr+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254else
7255
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257/* end confdefs.h. */
7258
7259#include <locale.h>
7260#include <time.h>
7261#if HAVE_LANGINFO_CODESET
7262# include <langinfo.h>
7263#endif
7264#include <stdlib.h>
7265#include <string.h>
7266struct tm t;
7267char buf[16];
7268int main () {
7269 /* Check whether the given locale name is recognized by the system. */
7270#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7271 /* On native Windows, setlocale(category, "") looks at the system settings,
7272 not at the environment variables. Also, when an encoding suffix such
7273 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7274 category of the locale to "C". */
7275 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7276 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7277 return 1;
7278#else
7279 if (setlocale (LC_ALL, "") == NULL) return 1;
7280#endif
7281 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7282 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7283 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7284 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7285 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7286 some unit tests fail.
7287 On MirBSD 10, when an unsupported locale is specified, setlocale()
7288 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7289#if HAVE_LANGINFO_CODESET
7290 {
7291 const char *cs = nl_langinfo (CODESET);
7292 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7293 || strcmp (cs, "UTF-8") == 0)
7294 return 1;
7295 }
7296#endif
7297#ifdef __CYGWIN__
7298 /* On Cygwin, avoid locale names without encoding suffix, because the
7299 locale_charset() function relies on the encoding suffix. Note that
7300 LC_ALL is set on the command line. */
7301 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7302#endif
7303 /* Check whether in the abbreviation of the second month, the second
7304 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7305 one byte long. This excludes the UTF-8 encoding. */
7306 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7307 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7308#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7309 /* Check whether the decimal separator is a comma.
7310 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7311 are nl_langinfo(RADIXCHAR) are both ".". */
7312 if (localeconv () ->decimal_point[0] != ',') return 1;
7313#endif
7314 return 0;
7315}
7316
7317_ACEOF
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7319 (eval $ac_link) 2>&5
7320 ac_status=$?
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7323 case "$host_os" in
7324 # Handle native Windows specially, because there setlocale() interprets
7325 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7326 # "fr" or "fra" as "French" or "French_France.1252",
7327 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7328 # "ja" as "Japanese" or "Japanese_Japan.932",
7329 # and similar.
7330 mingw*)
7331 # Test for the native Windows locale name.
7332 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7333 gt_cv_locale_fr=French_France.1252
7334 else
7335 # None found.
7336 gt_cv_locale_fr=none
7337 fi
7338 ;;
7339 *)
7340 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7341 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7342 # configure script would override the LC_ALL setting. Likewise for
7343 # LC_CTYPE, which is also set at the beginning of the configure script.
7344 # Test for the usual locale name.
7345 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7346 gt_cv_locale_fr=fr_FR
7347 else
7348 # Test for the locale name with explicit encoding suffix.
7349 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7350 gt_cv_locale_fr=fr_FR.ISO-8859-1
7351 else
7352 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7353 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7354 gt_cv_locale_fr=fr_FR.ISO8859-1
7355 else
7356 # Test for the HP-UX locale name.
7357 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7358 gt_cv_locale_fr=fr_FR.iso88591
7359 else
7360 # Test for the Solaris 7 locale name.
7361 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7362 gt_cv_locale_fr=fr
7363 else
7364 # None found.
7365 gt_cv_locale_fr=none
7366 fi
7367 fi
7368 fi
7369 fi
7370 fi
7371 ;;
7372 esac
7373 fi
7374 rm -fr conftest*
7375
7376fi
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7378$as_echo "$gt_cv_locale_fr" >&6; }
7379 LOCALE_FR=$gt_cv_locale_fr
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393 GNULIB_FFSL=0;
7394 GNULIB_FFSLL=0;
7395 GNULIB_MEMCHR=0;
7396 GNULIB_MEMMEM=0;
7397 GNULIB_MEMPCPY=0;
7398 GNULIB_MEMRCHR=0;
7399 GNULIB_RAWMEMCHR=0;
7400 GNULIB_STPCPY=0;
7401 GNULIB_STPNCPY=0;
7402 GNULIB_STRCHRNUL=0;
7403 GNULIB_STRDUP=0;
7404 GNULIB_STRNCAT=0;
7405 GNULIB_STRNDUP=0;
7406 GNULIB_STRNLEN=0;
7407 GNULIB_STRPBRK=0;
7408 GNULIB_STRSEP=0;
7409 GNULIB_STRSTR=0;
7410 GNULIB_STRCASESTR=0;
7411 GNULIB_STRTOK_R=0;
7412 GNULIB_MBSLEN=0;
7413 GNULIB_MBSNLEN=0;
7414 GNULIB_MBSCHR=0;
7415 GNULIB_MBSRCHR=0;
7416 GNULIB_MBSSTR=0;
7417 GNULIB_MBSCASECMP=0;
7418 GNULIB_MBSNCASECMP=0;
7419 GNULIB_MBSPCASECMP=0;
7420 GNULIB_MBSCASESTR=0;
7421 GNULIB_MBSCSPN=0;
7422 GNULIB_MBSPBRK=0;
7423 GNULIB_MBSSPN=0;
7424 GNULIB_MBSSEP=0;
7425 GNULIB_MBSTOK_R=0;
7426 GNULIB_STRERROR=0;
7427 GNULIB_STRERROR_R=0;
7428 GNULIB_STRSIGNAL=0;
7429 GNULIB_STRVERSCMP=0;
7430 HAVE_MBSLEN=0;
7431 HAVE_FFSL=1;
7432 HAVE_FFSLL=1;
7433 HAVE_MEMCHR=1;
7434 HAVE_DECL_MEMMEM=1;
7435 HAVE_MEMPCPY=1;
7436 HAVE_DECL_MEMRCHR=1;
7437 HAVE_RAWMEMCHR=1;
7438 HAVE_STPCPY=1;
7439 HAVE_STPNCPY=1;
7440 HAVE_STRCHRNUL=1;
7441 HAVE_DECL_STRDUP=1;
7442 HAVE_DECL_STRNDUP=1;
7443 HAVE_DECL_STRNLEN=1;
7444 HAVE_STRPBRK=1;
7445 HAVE_STRSEP=1;
7446 HAVE_STRCASESTR=1;
7447 HAVE_DECL_STRTOK_R=1;
7448 HAVE_DECL_STRERROR_R=1;
7449 HAVE_DECL_STRSIGNAL=1;
7450 HAVE_STRVERSCMP=1;
7451 REPLACE_MEMCHR=0;
7452 REPLACE_MEMMEM=0;
7453 REPLACE_STPNCPY=0;
7454 REPLACE_STRDUP=0;
7455 REPLACE_STRSTR=0;
7456 REPLACE_STRCASESTR=0;
7457 REPLACE_STRCHRNUL=0;
7458 REPLACE_STRERROR=0;
7459 REPLACE_STRERROR_R=0;
7460 REPLACE_STRNCAT=0;
7461 REPLACE_STRNDUP=0;
7462 REPLACE_STRNLEN=0;
7463 REPLACE_STRSIGNAL=0;
7464 REPLACE_STRTOK_R=0;
7465 UNDEFINE_STRTOK_R=0;
7466
7467
7468
7469
7470
7471 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7472 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7473 # irrelevant for anonymous mappings.
7474 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7475if test "x$ac_cv_func_mmap" = x""yes; then :
7476 gl_have_mmap=yes
7477else
7478 gl_have_mmap=no
7479fi
7480
7481
7482 # Try to allow MAP_ANONYMOUS.
7483 gl_have_mmap_anonymous=no
7484 if test $gl_have_mmap = yes; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7486$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h. */
7489
7490#include <sys/mman.h>
7491#ifdef MAP_ANONYMOUS
7492 I cannot identify this map
7493#endif
7494
7495_ACEOF
7496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7497 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7498 gl_have_mmap_anonymous=yes
7499fi
7500rm -f conftest*
7501
7502 if test $gl_have_mmap_anonymous != yes; then
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h. */
7505
7506#include <sys/mman.h>
7507#ifdef MAP_ANON
7508 I cannot identify this map
7509#endif
7510
7511_ACEOF
7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7514
7515$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7516
7517 gl_have_mmap_anonymous=yes
7518fi
7519rm -f conftest*
7520
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7523$as_echo "$gl_have_mmap_anonymous" >&6; }
7524 if test $gl_have_mmap_anonymous = yes; then
7525
7526$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7527
7528 fi
7529 fi
7530
7531
7532 :
7533
7534
7535
7536
7537
7538
7539 :
7540
7541
7542
7543
7544
7545
7546
7547
7548 if test $HAVE_MEMCHR = 1; then
7549 # Detect platform-specific bugs in some versions of glibc:
7550 # memchr should not dereference anything with length 0
7551 # http://bugzilla.redhat.com/499689
7552 # memchr should not dereference overestimated length after a match
7553 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7554 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7555 # Assume that memchr works on platforms that lack mprotect.
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7557$as_echo_n "checking whether memchr works... " >&6; }
7558if test "${gl_cv_func_memchr_works+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560else
7561 if test "$cross_compiling" = yes; then :
7562 gl_cv_func_memchr_works="guessing no"
7563else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h. */
7566
7567#include <string.h>
7568#if HAVE_SYS_MMAN_H
7569# include <fcntl.h>
7570# include <unistd.h>
7571# include <sys/types.h>
7572# include <sys/mman.h>
7573# ifndef MAP_FILE
7574# define MAP_FILE 0
7575# endif
7576#endif
7577
7578int
7579main ()
7580{
7581
7582 int result = 0;
7583 char *fence = NULL;
7584#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7585# if HAVE_MAP_ANONYMOUS
7586 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7587 const int fd = -1;
7588# else /* !HAVE_MAP_ANONYMOUS */
7589 const int flags = MAP_FILE | MAP_PRIVATE;
7590 int fd = open ("/dev/zero", O_RDONLY, 0666);
7591 if (fd >= 0)
7592# endif
7593 {
7594 int pagesize = getpagesize ();
7595 char *two_pages =
7596 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7597 flags, fd, 0);
7598 if (two_pages != (char *)(-1)
7599 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7600 fence = two_pages + pagesize;
7601 }
7602#endif
7603 if (fence)
7604 {
7605 if (memchr (fence, 0, 0))
7606 result |= 1;
7607 strcpy (fence - 9, "12345678");
7608 if (memchr (fence - 9, 0, 79) != fence - 1)
7609 result |= 2;
7610 if (memchr (fence - 1, 0, 3) != fence - 1)
7611 result |= 4;
7612 }
7613 return result;
7614
7615 ;
7616 return 0;
7617}
7618_ACEOF
7619if ac_fn_c_try_run "$LINENO"; then :
7620 gl_cv_func_memchr_works=yes
7621else
7622 gl_cv_func_memchr_works=no
7623fi
7624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625 conftest.$ac_objext conftest.beam conftest.$ac_ext
7626fi
7627
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
7630$as_echo "$gl_cv_func_memchr_works" >&6; }
7631 if test "$gl_cv_func_memchr_works" != yes; then
7632 REPLACE_MEMCHR=1
7633 fi
7634 fi
7635
7636
7637 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7638if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7639 ac_have_decl=1
7640else
7641 ac_have_decl=0
7642fi
7643
7644cat >>confdefs.h <<_ACEOF
7645#define HAVE_DECL_MEMMEM $ac_have_decl
7646_ACEOF
7647
7648
7649
7650
7651
7652
7653 for ac_func in memmem
7654do :
7655 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7656if test "x$ac_cv_func_memmem" = x""yes; then :
7657 cat >>confdefs.h <<_ACEOF
7658#define HAVE_MEMMEM 1
7659_ACEOF
7660
7661fi
7662done
7663
7664 if test $ac_cv_func_memmem = yes; then
7665 HAVE_MEMMEM=1
7666 else
7667 HAVE_MEMMEM=0
7668 fi
7669
7670 :
7671
7672
7673
7674
7675
7676 if test $ac_cv_have_decl_memmem = no; then
7677 HAVE_DECL_MEMMEM=0
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7680$as_echo_n "checking whether memmem works... " >&6; }
7681if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7683else
7684 if test "$cross_compiling" = yes; then :
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686/* end confdefs.h. */
7687
7688#ifdef __GNU_LIBRARY__
7689 #include <features.h>
7690 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7691 || __GLIBC_MINOR__ > 12)) \
7692 || (__GLIBC__ > 2)) \
7693 || defined __UCLIBC__
7694 Lucky user
7695 #endif
7696#elif defined __CYGWIN__
7697 #include <cygwin/version.h>
7698 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7699 Lucky user
7700 #endif
7701#else
7702 Lucky user
7703#endif
7704
7705_ACEOF
7706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "Lucky user" >/dev/null 2>&1; then :
7708 gl_cv_func_memmem_works_always="guessing yes"
7709else
7710 gl_cv_func_memmem_works_always="guessing no"
7711fi
7712rm -f conftest*
7713
7714
7715else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h. */
7718
7719#include <string.h> /* for memmem */
7720#define P "_EF_BF_BD"
7721#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7722#define NEEDLE P P P P P
7723
7724int
7725main ()
7726{
7727
7728 int result = 0;
7729 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7730 result |= 1;
7731 /* Check for empty needle behavior. */
7732 {
7733 const char *haystack = "AAA";
7734 if (memmem (haystack, 3, NULL, 0) != haystack)
7735 result |= 2;
7736 }
7737 return result;
7738
7739 ;
7740 return 0;
7741}
7742_ACEOF
7743if ac_fn_c_try_run "$LINENO"; then :
7744 gl_cv_func_memmem_works_always=yes
7745else
7746 gl_cv_func_memmem_works_always=no
7747fi
7748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749 conftest.$ac_objext conftest.beam conftest.$ac_ext
7750fi
7751
7752
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7755$as_echo "$gl_cv_func_memmem_works_always" >&6; }
7756 case "$gl_cv_func_memmem_works_always" in
7757 *yes) ;;
7758 *)
7759 REPLACE_MEMMEM=1
7760 ;;
7761 esac
7762 fi
7763 :
7764
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7766$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7767if test "${ac_cv_header_stdbool_h+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h. */
7772
7773 #include <stdbool.h>
7774 #ifndef bool
7775 "error: bool is not defined"
7776 #endif
7777 #ifndef false
7778 "error: false is not defined"
7779 #endif
7780 #if false
7781 "error: false is not 0"
7782 #endif
7783 #ifndef true
7784 "error: true is not defined"
7785 #endif
7786 #if true != 1
7787 "error: true is not 1"
7788 #endif
7789 #ifndef __bool_true_false_are_defined
7790 "error: __bool_true_false_are_defined is not defined"
7791 #endif
7792
7793 struct s { _Bool s: 1; _Bool t; } s;
7794
7795 char a[true == 1 ? 1 : -1];
7796 char b[false == 0 ? 1 : -1];
7797 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7798 char d[(bool) 0.5 == true ? 1 : -1];
7799 /* See body of main program for 'e'. */
7800 char f[(_Bool) 0.0 == false ? 1 : -1];
7801 char g[true];
7802 char h[sizeof (_Bool)];
7803 char i[sizeof s.t];
7804 enum { j = false, k = true, l = false * true, m = true * 256 };
7805 /* The following fails for
7806 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7807 _Bool n[m];
7808 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7809 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7810 /* Catch a bug in an HP-UX C compiler. See
7811 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7812 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7813 */
7814 _Bool q = true;
7815 _Bool *pq = &q;
7816
7817int
7818main ()
7819{
7820
7821 bool e = &s;
7822 *pq |= q;
7823 *pq |= ! q;
7824 /* Refer to every declared value, to avoid compiler optimizations. */
7825 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7826 + !m + !n + !o + !p + !q + !pq);
7827
7828 ;
7829 return 0;
7830}
7831_ACEOF
7832if ac_fn_c_try_compile "$LINENO"; then :
7833 ac_cv_header_stdbool_h=yes
7834else
7835 ac_cv_header_stdbool_h=no
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7840$as_echo "$ac_cv_header_stdbool_h" >&6; }
7841 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7842if test "x$ac_cv_type__Bool" = x""yes; then :
7843
7844cat >>confdefs.h <<_ACEOF
7845#define HAVE__BOOL 1
7846_ACEOF
7847
7848
7849fi
7850
7851
7852
7853 REPLACE_NULL=0;
7854 HAVE_WCHAR_T=1;
7855
7856
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7858$as_echo_n "checking for wchar_t... " >&6; }
7859if test "${gt_cv_c_wchar_t+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h. */
7864#include <stddef.h>
7865 wchar_t foo = (wchar_t)'\0';
7866int
7867main ()
7868{
7869
7870 ;
7871 return 0;
7872}
7873_ACEOF
7874if ac_fn_c_try_compile "$LINENO"; then :
7875 gt_cv_c_wchar_t=yes
7876else
7877 gt_cv_c_wchar_t=no
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7882$as_echo "$gt_cv_c_wchar_t" >&6; }
7883 if test $gt_cv_c_wchar_t = yes; then
7884
7885$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7886
7887 fi
7888
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7890$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7891if test "${ac_cv_c_restrict+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893else
7894 ac_cv_c_restrict=no
7895 # The order here caters to the fact that C++ does not require restrict.
7896 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899typedef int * int_ptr;
7900 int foo (int_ptr $ac_kw ip) {
7901 return ip[0];
7902 }
7903int
7904main ()
7905{
7906int s[1];
7907 int * $ac_kw t = s;
7908 t[0] = 0;
7909 return foo(t)
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 ac_cv_c_restrict=$ac_kw
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 test "$ac_cv_c_restrict" != no && break
7919 done
7920
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7923$as_echo "$ac_cv_c_restrict" >&6; }
7924
7925 case $ac_cv_c_restrict in
7926 restrict) ;;
7927 no) $as_echo "#define restrict /**/" >>confdefs.h
7928 ;;
7929 *) cat >>confdefs.h <<_ACEOF
7930#define restrict $ac_cv_c_restrict
7931_ACEOF
7932 ;;
7933 esac
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946 if test $gl_cv_have_include_next = yes; then
7947 gl_cv_next_string_h='<'string.h'>'
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7950$as_echo_n "checking absolute name of <string.h>... " >&6; }
7951if test "${gl_cv_next_string_h+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953else
7954
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h. */
7957#include <string.h>
7958
7959_ACEOF
7960 case "$host_os" in
7961 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7962 *) gl_absname_cpp="$ac_cpp" ;;
7963 esac
7964
7965 case "$host_os" in
c971b7fa
PA
7966 mingw*)
7967 gl_dirsep_regex='[/\\]'
7968 ;;
7969 *)
7970 gl_dirsep_regex='\/'
7971 ;;
7972 esac
7973 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7974
8690e634
JK
7975 gl_header_literal_regex=`echo 'string.h' \
7976 | sed -e "$gl_make_literal_regex_sed"`
7977 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7979 s|^/[^/]|//&|
7980 p
7981 q
7982 }'
7983 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7984 sed -n "$gl_absolute_header_sed"`'"'
7985
7986
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7989$as_echo "$gl_cv_next_string_h" >&6; }
7990 fi
7991 NEXT_STRING_H=$gl_cv_next_string_h
7992
7993 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7995 gl_next_as_first_directive='<'string.h'>'
7996 else
7997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7998 gl_next_as_first_directive=$gl_cv_next_string_h
7999 fi
8000 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
8001
8002
8003
8004
8005
8006
8007 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
8008 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8010$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8011if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8012 $as_echo_n "(cached) " >&6
8013else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h. */
8016#include <string.h>
8017
8018int
8019main ()
8020{
8021#undef $gl_func
8022 (void) $gl_func;
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027if ac_fn_c_try_compile "$LINENO"; then :
8028 eval "$as_gl_Symbol=yes"
8029else
8030 eval "$as_gl_Symbol=no"
8031fi
8032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033fi
8034eval ac_res=\$$as_gl_Symbol
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8036$as_echo "$ac_res" >&6; }
8037 eval as_val=\$$as_gl_Symbol
8038 if test "x$as_val" = x""yes; then :
8039 cat >>confdefs.h <<_ACEOF
8040#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8041_ACEOF
8042
8043 eval ac_cv_have_decl_$gl_func=yes
8044fi
8045 done
8046
8047
8048
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8050$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8051if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053else
8054 gl_cv_header_wchar_h_correct_inline=yes
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h. */
8057
8058 #define wcstod renamed_wcstod
8059/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8060 <wchar.h>.
8061 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8062 included before <wchar.h>. */
8063#include <stddef.h>
8064#include <stdio.h>
8065#include <time.h>
8066#include <wchar.h>
8067extern int zero (void);
8068int main () { return zero(); }
8069
8070_ACEOF
8071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8072 (eval $ac_compile) 2>&5
8073 ac_status=$?
8074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075 test $ac_status = 0; }; then
8076 mv conftest.$ac_objext conftest1.$ac_objext
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080 #define wcstod renamed_wcstod
8081/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8082 <wchar.h>.
8083 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8084 included before <wchar.h>. */
8085#include <stddef.h>
8086#include <stdio.h>
8087#include <time.h>
8088#include <wchar.h>
8089int zero (void) { return 0; }
8090
8091_ACEOF
8092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8093 (eval $ac_compile) 2>&5
8094 ac_status=$?
8095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8096 test $ac_status = 0; }; then
8097 mv conftest.$ac_objext conftest2.$ac_objext
8098 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8099 :
8100 else
8101 gl_cv_header_wchar_h_correct_inline=no
8102 fi
8103 fi
8104 fi
8105 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8106
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8109$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8110 if test $gl_cv_header_wchar_h_correct_inline = no; then
8111 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8112This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8113C99 mode. You have four options:
8114 - Add the flag -fgnu89-inline to CC and reconfigure, or
8115 - Fix your include files, using parts of
8116 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8117 - Use a gcc version older than 4.3, or
8118 - Don't use the flags -std=c99 or -std=gnu99.
8119Configuration aborted." "$LINENO" 5
8120 fi
8121
8122
8123
8124
8125
8126
8127
8128
8129 :
8130
8131
8132
8133
8134
8135 if test $ac_cv_header_features_h = yes; then
8136 HAVE_FEATURES_H=1
8137 else
8138 HAVE_FEATURES_H=0
8139 fi
8140
8141
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8144$as_echo_n "checking for wint_t... " >&6; }
8145if test "${gt_cv_c_wint_t+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h. */
8150
8151/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8152 <wchar.h>.
8153 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8154 before <wchar.h>. */
8155#include <stddef.h>
8156#include <stdio.h>
8157#include <time.h>
8158#include <wchar.h>
8159 wint_t foo = (wchar_t)'\0';
8160int
8161main ()
8162{
8163
8164 ;
8165 return 0;
8166}
8167_ACEOF
8168if ac_fn_c_try_compile "$LINENO"; then :
8169 gt_cv_c_wint_t=yes
8170else
8171 gt_cv_c_wint_t=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174fi
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8176$as_echo "$gt_cv_c_wint_t" >&6; }
8177 if test $gt_cv_c_wint_t = yes; then
8178
8179$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8180
8181 fi
8182
8183
8184 GNULIB_ISWBLANK=0;
8185 GNULIB_WCTYPE=0;
8186 GNULIB_ISWCTYPE=0;
8187 GNULIB_WCTRANS=0;
8188 GNULIB_TOWCTRANS=0;
8189 HAVE_ISWBLANK=1;
8190 HAVE_WCTYPE_T=1;
8191 HAVE_WCTRANS_T=1;
8192 REPLACE_ISWBLANK=0;
8193
8194
8195
8196
8197
8198
8690e634
JK
8199
8200 if false; then
8201 GL_COND_LIBTOOL_TRUE=
8202 GL_COND_LIBTOOL_FALSE='#'
8203else
8204 GL_COND_LIBTOOL_TRUE='#'
8205 GL_COND_LIBTOOL_FALSE=
8206fi
8207
8208 gl_cond_libtool=false
8209 gl_libdeps=
8210 gl_ltlibdeps=
8211 gl_m4_base='import/m4'
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 gl_source_base='import'
8222
8223
8224 if test $ac_cv_func_alloca_works = no; then
8225 :
8226 fi
8227
8228 # Define an additional variable used in the Makefile substitution.
8229 if test $ac_cv_working_alloca_h = yes; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8231$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8232if test "${gl_cv_rpl_alloca+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234else
8235
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h. */
8238
8239#if defined __GNUC__ || defined _AIX || defined _MSC_VER
8240 Need own alloca
8241#endif
8242
8243_ACEOF
8244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8246 gl_cv_rpl_alloca=yes
8247else
8248 gl_cv_rpl_alloca=no
8249fi
8250rm -f conftest*
8251
8252
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8255$as_echo "$gl_cv_rpl_alloca" >&6; }
8256 if test $gl_cv_rpl_alloca = yes; then
8257
8258$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8259
8260 ALLOCA_H=alloca.h
8261 else
8262 ALLOCA_H=
8263 fi
8264 else
8265 ALLOCA_H=alloca.h
8266 fi
8267
8268 if test -n "$ALLOCA_H"; then
8269 GL_GENERATE_ALLOCA_H_TRUE=
8270 GL_GENERATE_ALLOCA_H_FALSE='#'
8271else
8272 GL_GENERATE_ALLOCA_H_TRUE='#'
8273 GL_GENERATE_ALLOCA_H_FALSE=
8274fi
8275
8276
8277
8278 if test "x$datarootdir" = x; then
8279 datarootdir='${datadir}'
8280
8281 fi
8282 if test "x$docdir" = x; then
8283 docdir='${datarootdir}/doc/${PACKAGE}'
8284
8285 fi
8286 if test "x$htmldir" = x; then
8287 htmldir='${docdir}'
8288
8289 fi
8290 if test "x$dvidir" = x; then
8291 dvidir='${docdir}'
8292
8293 fi
8294 if test "x$pdfdir" = x; then
8295 pdfdir='${docdir}'
8296
8297 fi
8298 if test "x$psdir" = x; then
8299 psdir='${docdir}'
8300
8301 fi
8302 if test "x$lispdir" = x; then
8303 lispdir='${datarootdir}/emacs/site-lisp'
8304
8305 fi
8306 if test "x$localedir" = x; then
8307 localedir='${datarootdir}/locale'
8308
8309 fi
8310
8311 pkglibexecdir='${libexecdir}/${PACKAGE}'
8312
8313
8314
8315
8316
8317
8318
a512b375 8319
8690e634
JK
8320 FNMATCH_H=
8321 gl_fnmatch_required_lowercase=`
8322 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
8323 `
8324 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8326$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8327if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8328 $as_echo_n "(cached) " >&6
8329else
8330 if test $gl_fnmatch_required = GNU; then
8331 gl_fnmatch_gnu_start=
8332 gl_fnmatch_gnu_end=
8333 else
8334 gl_fnmatch_gnu_start='#if 0'
8335 gl_fnmatch_gnu_end='#endif'
8336 fi
8337 if test "$cross_compiling" = yes; then :
8338 eval "$gl_fnmatch_cache_var=\"guessing no\""
8339else
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h. */
8342#include <fnmatch.h>
8343 static int
8344 y (char const *pattern, char const *string, int flags)
8345 {
8346 return fnmatch (pattern, string, flags) == 0;
8347 }
8348 static int
8349 n (char const *pattern, char const *string, int flags)
8350 {
8351 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8352 }
8353
8354int
8355main ()
8356{
8357char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8358 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8359 static char const A_1[] = { 'A' - 1, 0 };
8360 static char const A01[] = { 'A' + 1, 0 };
8361 static char const a_1[] = { 'a' - 1, 0 };
8362 static char const a01[] = { 'a' + 1, 0 };
8363 static char const bs_1[] = { '\\\\' - 1, 0 };
8364 static char const bs01[] = { '\\\\' + 1, 0 };
8365 int result = 0;
8366 if (!n ("a*", "", 0))
8367 return 1;
8368 if (!y ("a*", "abc", 0))
8369 return 1;
8370 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8371 return 1;
8372 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8373 return 2;
8374 if (!y ("a\\\\bc", "abc", 0))
8375 return 3;
8376 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8377 return 3;
8378 if (!y ("*x", ".x", 0))
8379 return 4;
8380 if (!n ("*x", ".x", FNM_PERIOD))
8381 return 4;
8382 if (!y (Apat, "\\\\", 0))
8383 return 5;
8384 if (!y (Apat, "A", 0))
8385 return 5;
8386 if (!y (apat, "\\\\", 0))
8387 return 5;
8388 if (!y (apat, "a", 0))
8389 return 5;
8390 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8391 return 5;
8392 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8393 return 5;
8394 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8395 return 5;
8396 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8397 return 5;
8398 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8399 return 5;
8400 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8401 return 5;
8402 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8403 return 5;
8404 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8405 return 5;
8406 $gl_fnmatch_gnu_start
8407 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8408 result |= 8;
8409 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8410 result |= 16;
8411 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8412 result |= 32;
8413 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8414 result |= 64;
8415 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8416 result |= 64;
8417 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8418 result |= 64;
8419 $gl_fnmatch_gnu_end
8420 return result;
8421
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426if ac_fn_c_try_run "$LINENO"; then :
8427 eval "$gl_fnmatch_cache_var=yes"
8428else
8429 eval "$gl_fnmatch_cache_var=no"
8430fi
8431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8432 conftest.$ac_objext conftest.beam conftest.$ac_ext
8433fi
8434
8435
8436fi
8437eval ac_res=\$$gl_fnmatch_cache_var
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8439$as_echo "$ac_res" >&6; }
8440 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8441 if test "$gl_fnmatch_result" = yes; then
8442 rm -f "$gl_source_base/fnmatch.h"
8443 else
8444 FNMATCH_H=fnmatch.h
8445 fi
8446
8447 if test -n "$FNMATCH_H"; then
8448 GL_GENERATE_FNMATCH_H_TRUE=
8449 GL_GENERATE_FNMATCH_H_FALSE='#'
8450else
8451 GL_GENERATE_FNMATCH_H_TRUE='#'
8452 GL_GENERATE_FNMATCH_H_FALSE=
8453fi
8454
8455
a512b375 8456 if test -n "$FNMATCH_H"; then
8690e634
JK
8457
8458
8459
8460
8461
8462
8463
8464
8465 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8466
8467
8468
8469cat >>confdefs.h <<_ACEOF
8470#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8471_ACEOF
8472
8473
8474 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8475"
8476if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8477 ac_have_decl=1
8478else
8479 ac_have_decl=0
8480fi
8481
8482cat >>confdefs.h <<_ACEOF
8483#define HAVE_DECL_ISBLANK $ac_have_decl
8484_ACEOF
8485
8486
8487 :
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
c971b7fa
PA
8507
8508
c971b7fa 8509
c971b7fa
PA
8510
8511
8512
8513
c971b7fa 8514
8690e634 8515 :
c971b7fa 8516
c971b7fa
PA
8517
8518
c971b7fa
PA
8519
8520
c971b7fa 8521
a512b375 8522 fi
c971b7fa 8523
c971b7fa 8524
c971b7fa 8525
c971b7fa 8526
c971b7fa 8527
a512b375 8528 if test -n "$FNMATCH_H"; then
c971b7fa 8529
c971b7fa 8530
c971b7fa
PA
8531
8532
c971b7fa
PA
8533
8534
c971b7fa
PA
8535
8536
8690e634 8537 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 8538
c971b7fa 8539
c971b7fa 8540
8690e634
JK
8541cat >>confdefs.h <<_ACEOF
8542#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8543_ACEOF
c971b7fa
PA
8544
8545
8690e634
JK
8546 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8547"
8548if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8549 ac_have_decl=1
8550else
8551 ac_have_decl=0
c971b7fa 8552fi
c971b7fa 8553
8690e634
JK
8554cat >>confdefs.h <<_ACEOF
8555#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
8556_ACEOF
8557
c971b7fa 8558
8690e634
JK
8559 :
8560
8561
8562
c971b7fa 8563
c971b7fa 8564
c971b7fa
PA
8565
8566
8567
8568
c971b7fa
PA
8569
8570
c971b7fa 8571
c971b7fa 8572
c971b7fa 8573
c971b7fa 8574
c971b7fa 8575
c971b7fa
PA
8576
8577
c971b7fa
PA
8578
8579
c971b7fa 8580
c971b7fa 8581
c971b7fa 8582
8690e634
JK
8583
8584
8585
8586
8587 :
8588
8589
8590
8591
8592
c971b7fa 8593
a512b375 8594 fi
c971b7fa 8595
c971b7fa
PA
8596
8597
8598
8599
8690e634
JK
8600 PRIPTR_PREFIX=
8601 if test -n "$STDINT_H"; then
8602 PRIPTR_PREFIX='"l"'
8603 else
8604 for glpfx in '' l ll I64; do
8605 case $glpfx in
8606 '') gltype1='int';;
8607 l) gltype1='long int';;
8608 ll) gltype1='long long int';;
8609 I64) gltype1='__int64';;
8610 esac
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h. */
8613#include <stdint.h>
8614 extern intptr_t foo;
8615 extern $gltype1 foo;
8616int
8617main ()
8618{
8619
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_compile "$LINENO"; then :
8625 PRIPTR_PREFIX='"'$glpfx'"'
8626fi
8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 test -n "$PRIPTR_PREFIX" && break
8629 done
8630 fi
8631
8632
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
8635$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
8636if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
c971b7fa
PA
8637 $as_echo_n "(cached) " >&6
8638else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h. */
8690e634
JK
8641/* Work also in C++ mode. */
8642 #define __STDC_LIMIT_MACROS 1
c971b7fa 8643
8690e634
JK
8644 /* Work if build is not clean. */
8645 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c971b7fa 8646
8690e634
JK
8647 #include <limits.h>
8648 #if HAVE_STDINT_H
8649 #include <stdint.h>
8650 #endif
8651
8652 #if defined INT32_MAX && defined INTMAX_MAX
8653 #define CONDITION (INT32_MAX < INTMAX_MAX)
8654 #elif HAVE_LONG_LONG_INT
8655 #define CONDITION (sizeof (int) < sizeof (long long int))
8656 #else
8657 #define CONDITION 0
8658 #endif
8659 int test[CONDITION ? 1 : -1];
c971b7fa
PA
8660int
8661main ()
8662{
8663
8664 ;
8665 return 0;
8666}
8667_ACEOF
8668if ac_fn_c_try_compile "$LINENO"; then :
8690e634 8669 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
c971b7fa 8670else
8690e634 8671 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
c971b7fa
PA
8672fi
8673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 8674fi
8690e634
JK
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
8676$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
8677 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
8678 INT32_MAX_LT_INTMAX_MAX=1;
8679 else
8680 INT32_MAX_LT_INTMAX_MAX=0;
8681 fi
c971b7fa
PA
8682
8683
c971b7fa
PA
8684 if test $APPLE_UNIVERSAL_BUILD = 0; then
8685
8690e634
JK
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
8687$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
8688if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
c971b7fa
PA
8689 $as_echo_n "(cached) " >&6
8690else
8690e634
JK
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692/* end confdefs.h. */
8693/* Work also in C++ mode. */
8694 #define __STDC_LIMIT_MACROS 1
c971b7fa 8695
8690e634
JK
8696 /* Work if build is not clean. */
8697 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8698
8699 #include <limits.h>
8700 #if HAVE_STDINT_H
8701 #include <stdint.h>
8702 #endif
8703
8704 #if defined INT64_MAX
8705 #define CONDITION (INT64_MAX == LONG_MAX)
8706 #elif HAVE_LONG_LONG_INT
8707 #define CONDITION (sizeof (long long int) == sizeof (long int))
8708 #else
8709 #define CONDITION 0
8710 #endif
8711 int test[CONDITION ? 1 : -1];
c971b7fa
PA
8712int
8713main ()
8714{
8715
8716 ;
8717 return 0;
8718}
8719_ACEOF
8720if ac_fn_c_try_compile "$LINENO"; then :
8690e634
JK
8721 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
8722else
8723 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
c971b7fa
PA
8724fi
8725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 8726fi
8690e634
JK
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
8728$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
8729 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
8730 INT64_MAX_EQ_LONG_MAX=1;
8731 else
8732 INT64_MAX_EQ_LONG_MAX=0;
8733 fi
c971b7fa
PA
8734
8735
8690e634
JK
8736 else
8737 INT64_MAX_EQ_LONG_MAX=-1
c971b7fa
PA
8738 fi
8739
8690e634
JK
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
8741$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
8742if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
c971b7fa
PA
8743 $as_echo_n "(cached) " >&6
8744else
8690e634 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 8746/* end confdefs.h. */
8690e634
JK
8747/* Work also in C++ mode. */
8748 #define __STDC_LIMIT_MACROS 1
c971b7fa 8749
8690e634
JK
8750 /* Work if build is not clean. */
8751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c971b7fa 8752
8690e634
JK
8753 #include <limits.h>
8754 #if HAVE_STDINT_H
8755 #include <stdint.h>
8756 #endif
8757
8758 #if defined UINT32_MAX && defined UINTMAX_MAX
8759 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
8760 #elif HAVE_LONG_LONG_INT
8761 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
8762 #else
8763 #define CONDITION 0
8764 #endif
8765 int test[CONDITION ? 1 : -1];
c971b7fa
PA
8766int
8767main ()
8768{
8769
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"; then :
8690e634
JK
8775 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
8776else
8777 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
c971b7fa
PA
8778fi
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 8780fi
8690e634
JK
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
8782$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
8783 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
8784 UINT32_MAX_LT_UINTMAX_MAX=1;
8785 else
8786 UINT32_MAX_LT_UINTMAX_MAX=0;
8787 fi
c971b7fa 8788
c971b7fa 8789
8690e634 8790 if test $APPLE_UNIVERSAL_BUILD = 0; then
c971b7fa 8791
8690e634
JK
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
8793$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
8794if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h. */
8799/* Work also in C++ mode. */
8800 #define __STDC_LIMIT_MACROS 1
c971b7fa 8801
8690e634
JK
8802 /* Work if build is not clean. */
8803 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c971b7fa 8804
8690e634
JK
8805 #include <limits.h>
8806 #if HAVE_STDINT_H
8807 #include <stdint.h>
8808 #endif
c971b7fa 8809
8690e634
JK
8810 #if defined UINT64_MAX
8811 #define CONDITION (UINT64_MAX == ULONG_MAX)
8812 #elif HAVE_LONG_LONG_INT
8813 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
8814 #else
8815 #define CONDITION 0
8816 #endif
8817 int test[CONDITION ? 1 : -1];
8818int
8819main ()
8820{
8821
8822 ;
8823 return 0;
8824}
8825_ACEOF
8826if ac_fn_c_try_compile "$LINENO"; then :
8827 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
c971b7fa 8828else
8690e634 8829 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
c971b7fa 8830fi
8690e634
JK
8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832fi
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
8834$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
8835 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
8836 UINT64_MAX_EQ_ULONG_MAX=1;
8837 else
8838 UINT64_MAX_EQ_ULONG_MAX=0;
8839 fi
c971b7fa
PA
8840
8841
8690e634
JK
8842 else
8843 UINT64_MAX_EQ_ULONG_MAX=-1
8844 fi
c971b7fa
PA
8845
8846
8847
8848
8849
8850
c971b7fa
PA
8851
8852 :
8853
8854
8855
8856
8857
8858
8859
8860
8861
a512b375 8862 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
c971b7fa
PA
8863
8864
8865
8866
c971b7fa 8867
c971b7fa 8868
c971b7fa 8869
c971b7fa
PA
8870
8871
c971b7fa 8872
8690e634 8873 :
c971b7fa
PA
8874
8875
8876
8877
8878
8879
8690e634 8880 :
c971b7fa
PA
8881
8882
8690e634
JK
8883
8884
8885
8886 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8887
8888
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8891$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8892if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
8893 $as_echo_n "(cached) " >&6
8894else
8690e634
JK
8895
8896 case "$host_os" in
8897 # Guess no on AIX and OSF/1.
8898 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8899 # Guess yes otherwise.
8900 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8901 esac
8902 if test $LOCALE_JA != none; then
8903 if test "$cross_compiling" = yes; then :
8904 :
8905else
c971b7fa
PA
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h. */
c971b7fa 8908
8690e634
JK
8909#include <locale.h>
8910#include <string.h>
8911/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8912 <wchar.h>.
8913 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8914 included before <wchar.h>. */
8915#include <stddef.h>
8916#include <stdio.h>
8917#include <time.h>
8918#include <wchar.h>
8919int main ()
c971b7fa 8920{
8690e634
JK
8921 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8922 {
8923 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8924 mbstate_t state;
8925 wchar_t wc;
8926
8927 memset (&state, '\0', sizeof (mbstate_t));
8928 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8929 if (mbsinit (&state))
8930 return 1;
8931 }
c971b7fa
PA
8932 return 0;
8933}
8934_ACEOF
8690e634
JK
8935if ac_fn_c_try_run "$LINENO"; then :
8936 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 8937else
8690e634 8938 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 8939fi
8690e634
JK
8940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8941 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 8942fi
c971b7fa 8943
8690e634 8944 fi
c971b7fa 8945
8690e634
JK
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8948$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 8949
c971b7fa 8950
c971b7fa 8951
c971b7fa 8952
8690e634
JK
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8954$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8955if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
8956 $as_echo_n "(cached) " >&6
8957else
8958
8690e634
JK
8959 case "$host_os" in
8960 # Guess no on Solaris 8.
8961 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8962 # Guess yes otherwise.
8963 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8964 esac
8965 if test $LOCALE_ZH_CN != none; then
8966 if test "$cross_compiling" = yes; then :
8967 :
8968else
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
8970/* end confdefs.h. */
8971
8690e634
JK
8972#include <locale.h>
8973#include <stdlib.h>
8974#include <string.h>
8975/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8976 <wchar.h>.
8977 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8978 included before <wchar.h>. */
8979#include <stddef.h>
8980#include <stdio.h>
8981#include <time.h>
8982#include <wchar.h>
8983int main ()
c971b7fa 8984{
8690e634
JK
8985 /* This fails on Solaris 8:
8986 mbrtowc returns 2, and sets wc to 0x00F0.
8987 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
8988 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
8989 {
8990 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
8991 mbstate_t state;
8992 wchar_t wc;
8993
8994 memset (&state, '\0', sizeof (mbstate_t));
8995 if (mbrtowc (&wc, input + 3, 6, &state) != 4
8996 && mbtowc (&wc, input + 3, 6) == 4)
8997 return 1;
8998 }
c971b7fa
PA
8999 return 0;
9000}
9001_ACEOF
8690e634
JK
9002if ac_fn_c_try_run "$LINENO"; then :
9003 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 9004else
8690e634 9005 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 9006fi
8690e634
JK
9007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9008 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9009fi
c971b7fa 9010
8690e634 9011 fi
c971b7fa 9012
8690e634
JK
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9015$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9016
9017 REPLACE_MBSTATE_T=0
9018 case "$gl_cv_func_mbrtowc_incomplete_state" in
9019 *yes) ;;
9020 *) REPLACE_MBSTATE_T=1 ;;
9021 esac
9022 case "$gl_cv_func_mbrtowc_sanitycheck" in
9023 *yes) ;;
9024 *) REPLACE_MBSTATE_T=1 ;;
9025 esac
c971b7fa 9026 else
8690e634 9027 REPLACE_MBSTATE_T=1
c971b7fa
PA
9028 fi
9029
9030
9031
8690e634 9032 :
c971b7fa
PA
9033
9034
9035
9036
9037
8690e634
JK
9038 if test $ac_cv_func_mbrtowc = no; then
9039 HAVE_MBRTOWC=0
9040 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9041/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9042 <wchar.h>.
9043 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9044 included before <wchar.h>. */
9045#include <stddef.h>
9046#include <stdio.h>
9047#include <time.h>
9048#include <wchar.h>
c971b7fa 9049
8690e634
JK
9050"
9051if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9052 ac_have_decl=1
9053else
9054 ac_have_decl=0
c971b7fa 9055fi
c971b7fa 9056
8690e634
JK
9057cat >>confdefs.h <<_ACEOF
9058#define HAVE_DECL_MBRTOWC $ac_have_decl
9059_ACEOF
c971b7fa 9060
8690e634
JK
9061 if test $ac_cv_have_decl_mbrtowc = yes; then
9062 REPLACE_MBRTOWC=1
9063 fi
9064 else
9065 if test $REPLACE_MBSTATE_T = 1; then
9066 REPLACE_MBRTOWC=1
9067 else
c971b7fa
PA
9068
9069
9070
8690e634
JK
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9072$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9073if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
c971b7fa 9075else
c971b7fa 9076
8690e634
JK
9077 case "$host_os" in
9078 # Guess no on Solaris.
9079 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9080 # Guess yes otherwise.
9081 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9082 esac
9083 if test $LOCALE_FR_UTF8 != none; then
9084 if test "$cross_compiling" = yes; then :
9085 :
9086else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
9088/* end confdefs.h. */
9089
8690e634
JK
9090#include <locale.h>
9091#include <stdlib.h>
9092#include <string.h>
9093/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9094 <wchar.h>.
9095 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9096 included before <wchar.h>. */
9097#include <stddef.h>
9098#include <stdio.h>
9099#include <time.h>
9100#include <wchar.h>
9101int main ()
9102{
9103 int result = 0;
9104
9105 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9106 {
9107 char input[] = "\303\237er";
9108 mbstate_t state;
9109 wchar_t wc;
9110 size_t ret;
9111
9112 memset (&state, '\0', sizeof (mbstate_t));
9113 wc = (wchar_t) 0xBADFACE;
9114 ret = mbrtowc (&wc, input, 5, &state);
9115 if (ret != 2)
9116 result |= 1;
9117 if (!mbsinit (&state))
9118 result |= 2;
c971b7fa 9119
8690e634
JK
9120 memset (&state, '\0', sizeof (mbstate_t));
9121 ret = mbrtowc (NULL, input, 5, &state);
9122 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9123 result |= 4;
9124 if (!mbsinit (&state))
9125 result |= 8;
9126 }
9127 return result;
9128}
c971b7fa 9129_ACEOF
8690e634
JK
9130if ac_fn_c_try_run "$LINENO"; then :
9131 gl_cv_func_mbrtowc_null_arg1=yes
9132else
9133 gl_cv_func_mbrtowc_null_arg1=no
9134fi
9135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136 conftest.$ac_objext conftest.beam conftest.$ac_ext
9137fi
c971b7fa 9138
8690e634 9139 fi
c971b7fa 9140
c971b7fa 9141fi
8690e634
JK
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9143$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 9144
c971b7fa 9145
c971b7fa 9146
c971b7fa 9147
8690e634
JK
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9149$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9150if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152else
c971b7fa 9153
8690e634
JK
9154 case "$host_os" in
9155 # Guess no on OSF/1.
9156 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9157 # Guess yes otherwise.
9158 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9159 esac
9160 if test $LOCALE_FR_UTF8 != none; then
9161 if test "$cross_compiling" = yes; then :
c971b7fa 9162 :
8690e634
JK
9163else
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h. */
9166
9167#include <locale.h>
9168#include <string.h>
9169/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9170 <wchar.h>.
9171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9172 included before <wchar.h>. */
9173#include <stddef.h>
9174#include <stdio.h>
9175#include <time.h>
9176#include <wchar.h>
9177int main ()
9178{
9179 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9180 {
9181 mbstate_t state;
9182 wchar_t wc;
9183 int ret;
9184
9185 memset (&state, '\0', sizeof (mbstate_t));
9186 wc = (wchar_t) 0xBADFACE;
9187 mbrtowc (&wc, NULL, 5, &state);
9188 /* Check that wc was not modified. */
9189 if (wc != (wchar_t) 0xBADFACE)
9190 return 1;
9191 }
9192 return 0;
9193}
9194_ACEOF
9195if ac_fn_c_try_run "$LINENO"; then :
9196 gl_cv_func_mbrtowc_null_arg2=yes
9197else
9198 gl_cv_func_mbrtowc_null_arg2=no
9199fi
9200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9201 conftest.$ac_objext conftest.beam conftest.$ac_ext
9202fi
9203
9204 fi
9205
9206fi
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9208$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
9209
9210
9211
9212
9213
9214
8690e634
JK
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9216$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9217if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219else
9220
9221 case "$host_os" in
9222 # Guess no on HP-UX, Solaris, native Windows.
9223 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9224 # Guess yes otherwise.
9225 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9226 esac
9227 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9228 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9229 if test "$cross_compiling" = yes; then :
c971b7fa 9230 :
8690e634
JK
9231else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h. */
c971b7fa 9234
8690e634
JK
9235#include <locale.h>
9236#include <string.h>
9237/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9238 <wchar.h>.
9239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9240 included before <wchar.h>. */
9241#include <stddef.h>
9242#include <stdio.h>
9243#include <time.h>
9244#include <wchar.h>
9245int main ()
9246{
9247 int result = 0;
9248 int found_some_locale = 0;
9249 /* This fails on Solaris. */
9250 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9251 {
9252 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9253 mbstate_t state;
9254 wchar_t wc;
9255
9256 memset (&state, '\0', sizeof (mbstate_t));
9257 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9258 {
9259 input[1] = '\0';
9260 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9261 result |= 1;
9262 }
9263 found_some_locale = 1;
9264 }
9265 /* This fails on HP-UX 11.11. */
9266 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9267 {
9268 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9269 mbstate_t state;
9270 wchar_t wc;
9271
9272 memset (&state, '\0', sizeof (mbstate_t));
9273 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9274 {
9275 input[1] = '\0';
9276 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9277 result |= 2;
9278 }
9279 found_some_locale = 1;
9280 }
9281 /* This fails on native Windows. */
9282 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9283 {
9284 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9285 mbstate_t state;
9286 wchar_t wc;
9287
9288 memset (&state, '\0', sizeof (mbstate_t));
9289 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9290 {
9291 input[3] = '\0';
9292 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9293 result |= 4;
9294 }
9295 found_some_locale = 1;
9296 }
9297 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9298 {
9299 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9300 mbstate_t state;
9301 wchar_t wc;
9302
9303 memset (&state, '\0', sizeof (mbstate_t));
9304 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9305 {
9306 input[3] = '\0';
9307 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9308 result |= 8;
9309 }
9310 found_some_locale = 1;
9311 }
9312 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9313 {
9314 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9315 mbstate_t state;
9316 wchar_t wc;
9317
9318 memset (&state, '\0', sizeof (mbstate_t));
9319 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9320 {
9321 input[3] = '\0';
9322 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9323 result |= 16;
9324 }
9325 found_some_locale = 1;
9326 }
9327 return (found_some_locale ? result : 77);
9328}
9329_ACEOF
9330if ac_fn_c_try_run "$LINENO"; then :
9331 gl_cv_func_mbrtowc_retval=yes
9332else
9333 if test $? != 77; then
9334 gl_cv_func_mbrtowc_retval=no
9335 fi
c971b7fa 9336
8690e634
JK
9337fi
9338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9339 conftest.$ac_objext conftest.beam conftest.$ac_ext
9340fi
c971b7fa 9341
8690e634 9342 fi
c971b7fa 9343
8690e634
JK
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9346$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
9347
9348
9349
9350
8690e634
JK
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9352$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9353if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
9354 $as_echo_n "(cached) " >&6
9355else
8690e634
JK
9356
9357 case "$host_os" in
9358 # Guess no on Solaris 8 and 9.
9359 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9360 # Guess yes otherwise.
9361 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9362 esac
9363 if test $LOCALE_ZH_CN != none; then
9364 if test "$cross_compiling" = yes; then :
9365 :
c971b7fa
PA
9366else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h. */
9369
8690e634 9370#include <locale.h>
c971b7fa 9371#include <string.h>
8690e634
JK
9372/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9373 <wchar.h>.
9374 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9375 included before <wchar.h>. */
9376#include <stddef.h>
9377#include <stdio.h>
9378#include <time.h>
9379#include <wchar.h>
9380int main ()
c971b7fa 9381{
8690e634
JK
9382 /* This fails on Solaris 8 and 9. */
9383 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 9384 {
8690e634
JK
9385 mbstate_t state;
9386 wchar_t wc;
c971b7fa 9387
8690e634
JK
9388 memset (&state, '\0', sizeof (mbstate_t));
9389 if (mbrtowc (&wc, "", 1, &state) != 0)
9390 return 1;
9391 }
c971b7fa
PA
9392 return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_run "$LINENO"; then :
8690e634 9396 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 9397else
8690e634 9398 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
9399fi
9400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9401 conftest.$ac_objext conftest.beam conftest.$ac_ext
9402fi
9403
8690e634
JK
9404 fi
9405
c971b7fa 9406fi
8690e634
JK
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9408$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9409
9410 case "$gl_cv_func_mbrtowc_null_arg1" in
9411 *yes) ;;
9412 *)
9413$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9414
9415 REPLACE_MBRTOWC=1
9416 ;;
9417 esac
9418 case "$gl_cv_func_mbrtowc_null_arg2" in
9419 *yes) ;;
9420 *)
9421$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9422
9423 REPLACE_MBRTOWC=1
9424 ;;
9425 esac
9426 case "$gl_cv_func_mbrtowc_retval" in
9427 *yes) ;;
9428 *)
9429$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9430
9431 REPLACE_MBRTOWC=1
9432 ;;
9433 esac
9434 case "$gl_cv_func_mbrtowc_nul_retval" in
9435 *yes) ;;
9436 *)
9437$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9438
9439 REPLACE_MBRTOWC=1
9440 ;;
9441 esac
c971b7fa
PA
9442 fi
9443 fi
9444
a512b375 9445 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 9446
c971b7fa 9447
c971b7fa
PA
9448
9449
9450
9451
9452
9453
8690e634
JK
9454 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9455
9456
9457 :
c971b7fa 9458
a512b375 9459 fi
c971b7fa 9460
8690e634
JK
9461
9462
9463
9464
9465 GNULIB_MBRTOWC=1
9466
9467
9468
9469
9470
9471$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
c971b7fa
PA
9484
9485 :
9486
9487
9488
9489
9490
c971b7fa 9491
8690e634
JK
9492 :
9493
9494
9495
c971b7fa 9496
c971b7fa 9497
8690e634 9498 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 9499
8690e634
JK
9500
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9503$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9504if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506else
9507
9508 case "$host_os" in
9509 # Guess no on AIX and OSF/1.
9510 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9511 # Guess yes otherwise.
9512 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9513 esac
9514 if test $LOCALE_JA != none; then
9515 if test "$cross_compiling" = yes; then :
9516 :
c971b7fa
PA
9517else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h. */
9520
8690e634
JK
9521#include <locale.h>
9522#include <string.h>
9523/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9524 <wchar.h>.
9525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9526 included before <wchar.h>. */
9527#include <stddef.h>
9528#include <stdio.h>
9529#include <time.h>
9530#include <wchar.h>
9531int main ()
c971b7fa 9532{
8690e634 9533 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 9534 {
8690e634
JK
9535 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9536 mbstate_t state;
9537 wchar_t wc;
9538
9539 memset (&state, '\0', sizeof (mbstate_t));
9540 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9541 if (mbsinit (&state))
9542 return 1;
c971b7fa 9543 }
c971b7fa
PA
9544 return 0;
9545}
9546_ACEOF
9547if ac_fn_c_try_run "$LINENO"; then :
8690e634 9548 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 9549else
8690e634 9550 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
9551fi
9552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9553 conftest.$ac_objext conftest.beam conftest.$ac_ext
9554fi
9555
8690e634 9556 fi
c971b7fa
PA
9557
9558fi
8690e634
JK
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9560$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
9561
9562
c971b7fa
PA
9563
9564
8690e634
JK
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9566$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9567if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
9568 $as_echo_n "(cached) " >&6
9569else
8690e634
JK
9570
9571 case "$host_os" in
9572 # Guess no on Solaris 8.
9573 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9574 # Guess yes otherwise.
9575 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9576 esac
9577 if test $LOCALE_ZH_CN != none; then
9578 if test "$cross_compiling" = yes; then :
9579 :
9580else
c971b7fa
PA
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h. */
8690e634
JK
9583
9584#include <locale.h>
9585#include <stdlib.h>
9586#include <string.h>
9587/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9588 <wchar.h>.
9589 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9590 included before <wchar.h>. */
c971b7fa 9591#include <stddef.h>
8690e634
JK
9592#include <stdio.h>
9593#include <time.h>
9594#include <wchar.h>
9595int main ()
c971b7fa 9596{
8690e634
JK
9597 /* This fails on Solaris 8:
9598 mbrtowc returns 2, and sets wc to 0x00F0.
9599 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9600 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9601 {
9602 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9603 mbstate_t state;
9604 wchar_t wc;
9605
9606 memset (&state, '\0', sizeof (mbstate_t));
9607 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9608 && mbtowc (&wc, input + 3, 6) == 4)
9609 return 1;
9610 }
c971b7fa
PA
9611 return 0;
9612}
9613_ACEOF
8690e634
JK
9614if ac_fn_c_try_run "$LINENO"; then :
9615 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 9616else
8690e634 9617 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 9618fi
8690e634
JK
9619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9620 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9621fi
c971b7fa 9622
8690e634
JK
9623 fi
9624
9625fi
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9627$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 9628
8690e634
JK
9629 REPLACE_MBSTATE_T=0
9630 case "$gl_cv_func_mbrtowc_incomplete_state" in
9631 *yes) ;;
9632 *) REPLACE_MBSTATE_T=1 ;;
9633 esac
9634 case "$gl_cv_func_mbrtowc_sanitycheck" in
9635 *yes) ;;
9636 *) REPLACE_MBSTATE_T=1 ;;
9637 esac
9638 else
9639 REPLACE_MBSTATE_T=1
c971b7fa
PA
9640 fi
9641
c971b7fa 9642
8690e634
JK
9643
9644 :
9645
9646
9647
9648
9649
9650 if test $ac_cv_func_mbsinit = no; then
9651 HAVE_MBSINIT=0
9652 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9653/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9654 <wchar.h>.
9655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9656 included before <wchar.h>. */
9657#include <stddef.h>
9658#include <stdio.h>
9659#include <time.h>
9660#include <wchar.h>
9661
9662"
9663if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
9664 ac_have_decl=1
9665else
9666 ac_have_decl=0
c971b7fa 9667fi
c971b7fa 9668
8690e634
JK
9669cat >>confdefs.h <<_ACEOF
9670#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 9671_ACEOF
c971b7fa 9672
8690e634
JK
9673 if test $ac_cv_have_decl_mbsinit = yes; then
9674 REPLACE_MBSINIT=1
9675 fi
9676 else
9677 if test $REPLACE_MBSTATE_T = 1; then
9678 REPLACE_MBSINIT=1
9679 else
9680 case "$host_os" in
9681 mingw*) REPLACE_MBSINIT=1 ;;
9682 esac
9683 fi
9684 fi
c971b7fa 9685
a512b375 9686 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
9687
9688
9689
9690
9691
9692
9693
9694
8690e634 9695 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
9696
9697
8690e634 9698 :
c971b7fa 9699
a512b375 9700 fi
c971b7fa 9701
c971b7fa 9702
c971b7fa 9703
c971b7fa
PA
9704
9705
8690e634 9706 GNULIB_MBSINIT=1
c971b7fa 9707
c971b7fa
PA
9708
9709
9710
9711
8690e634 9712$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
9713
9714
c971b7fa 9715
c971b7fa 9716
c971b7fa
PA
9717
9718
9719
c971b7fa 9720
c971b7fa
PA
9721
9722
9723
9724
8690e634 9725 :
c971b7fa
PA
9726
9727
9728
9729
9730
c971b7fa 9731
8690e634
JK
9732 :
9733
9734
9735
9736
9737
9738 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
9739
9740
9741
8690e634
JK
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9743$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9744if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746else
c971b7fa 9747
8690e634
JK
9748 case "$host_os" in
9749 # Guess no on AIX and OSF/1.
9750 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9751 # Guess yes otherwise.
9752 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 9753 esac
8690e634
JK
9754 if test $LOCALE_JA != none; then
9755 if test "$cross_compiling" = yes; then :
9756 :
9757else
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 9759/* end confdefs.h. */
c971b7fa 9760
8690e634
JK
9761#include <locale.h>
9762#include <string.h>
9763/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9764 <wchar.h>.
9765 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9766 included before <wchar.h>. */
9767#include <stddef.h>
9768#include <stdio.h>
9769#include <time.h>
9770#include <wchar.h>
9771int main ()
9772{
9773 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9774 {
9775 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9776 mbstate_t state;
9777 wchar_t wc;
9778
9779 memset (&state, '\0', sizeof (mbstate_t));
9780 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9781 if (mbsinit (&state))
9782 return 1;
9783 }
c971b7fa
PA
9784 return 0;
9785}
9786_ACEOF
8690e634
JK
9787if ac_fn_c_try_run "$LINENO"; then :
9788 gl_cv_func_mbrtowc_incomplete_state=yes
9789else
9790 gl_cv_func_mbrtowc_incomplete_state=no
9791fi
9792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9793 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9794fi
c971b7fa 9795
8690e634 9796 fi
c971b7fa 9797
8690e634
JK
9798fi
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9800$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 9801
8690e634
JK
9802
9803
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9806$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9807if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
9808 $as_echo_n "(cached) " >&6
9809else
8690e634
JK
9810
9811 case "$host_os" in
9812 # Guess no on Solaris 8.
9813 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9814 # Guess yes otherwise.
9815 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9816 esac
9817 if test $LOCALE_ZH_CN != none; then
9818 if test "$cross_compiling" = yes; then :
9819 :
9820else
c971b7fa
PA
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h. */
c971b7fa 9823
8690e634
JK
9824#include <locale.h>
9825#include <stdlib.h>
9826#include <string.h>
9827/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9828 <wchar.h>.
9829 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9830 included before <wchar.h>. */
9831#include <stddef.h>
9832#include <stdio.h>
9833#include <time.h>
9834#include <wchar.h>
9835int main ()
c971b7fa 9836{
8690e634
JK
9837 /* This fails on Solaris 8:
9838 mbrtowc returns 2, and sets wc to 0x00F0.
9839 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9840 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9841 {
9842 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9843 mbstate_t state;
9844 wchar_t wc;
9845
9846 memset (&state, '\0', sizeof (mbstate_t));
9847 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9848 && mbtowc (&wc, input + 3, 6) == 4)
9849 return 1;
9850 }
c971b7fa
PA
9851 return 0;
9852}
9853_ACEOF
8690e634
JK
9854if ac_fn_c_try_run "$LINENO"; then :
9855 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 9856else
8690e634 9857 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 9858fi
8690e634
JK
9859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9860 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9861fi
8690e634
JK
9862
9863 fi
9864
9865fi
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9867$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9868
9869 REPLACE_MBSTATE_T=0
9870 case "$gl_cv_func_mbrtowc_incomplete_state" in
9871 *yes) ;;
9872 *) REPLACE_MBSTATE_T=1 ;;
9873 esac
9874 case "$gl_cv_func_mbrtowc_sanitycheck" in
9875 *yes) ;;
9876 *) REPLACE_MBSTATE_T=1 ;;
9877 esac
c971b7fa 9878 else
8690e634 9879 REPLACE_MBSTATE_T=1
c971b7fa
PA
9880 fi
9881
9882
c971b7fa 9883
8690e634 9884 :
c971b7fa 9885
c971b7fa 9886
c971b7fa 9887
c971b7fa 9888
8690e634
JK
9889
9890 if test $ac_cv_func_mbsrtowcs = no; then
9891 HAVE_MBSRTOWCS=0
9892 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
9893/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9894 <wchar.h>.
9895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9896 included before <wchar.h>. */
9897#include <stddef.h>
9898#include <stdio.h>
9899#include <time.h>
9900#include <wchar.h>
9901
9902"
9903if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
9904 ac_have_decl=1
c971b7fa 9905else
8690e634 9906 ac_have_decl=0
c971b7fa 9907fi
c971b7fa 9908
8690e634
JK
9909cat >>confdefs.h <<_ACEOF
9910#define HAVE_DECL_MBSRTOWCS $ac_have_decl
9911_ACEOF
c971b7fa 9912
8690e634
JK
9913 if test $ac_cv_have_decl_mbsrtowcs = yes; then
9914 REPLACE_MBSRTOWCS=1
9915 fi
c971b7fa 9916 else
8690e634
JK
9917 if test $REPLACE_MBSTATE_T = 1; then
9918 REPLACE_MBSRTOWCS=1
9919 else
c971b7fa 9920
8690e634
JK
9921
9922
9923
9924
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
9927$as_echo_n "checking whether mbsrtowcs works... " >&6; }
9928if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
9929 $as_echo_n "(cached) " >&6
9930else
8690e634
JK
9931
9932 case "$host_os" in
9933 # Guess no on HP-UX, Solaris, mingw.
9934 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
9935 # Guess yes otherwise.
9936 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
9937 esac
9938 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
9939 if test "$cross_compiling" = yes; then :
9940 :
9941else
c971b7fa
PA
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h. */
c971b7fa 9944
8690e634
JK
9945#include <locale.h>
9946#include <string.h>
9947/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9948 <wchar.h>.
9949 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9950 included before <wchar.h>. */
9951#include <stddef.h>
9952#include <stdio.h>
9953#include <time.h>
9954#include <wchar.h>
9955int main ()
c971b7fa 9956{
8690e634
JK
9957 int result = 0;
9958 /* Test whether the function supports a NULL destination argument.
9959 This fails on native Windows. */
9960 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
9961 {
9962 const char input[] = "\337er";
9963 const char *src = input;
9964 mbstate_t state;
c971b7fa 9965
8690e634
JK
9966 memset (&state, '\0', sizeof (mbstate_t));
9967 if (mbsrtowcs (NULL, &src, 1, &state) != 3
9968 || src != input)
9969 result |= 1;
9970 }
9971 /* Test whether the function works when started with a conversion state
9972 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
9973 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9974 {
9975 const char input[] = "B\303\274\303\237er";
9976 mbstate_t state;
9977
9978 memset (&state, '\0', sizeof (mbstate_t));
9979 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
9980 if (!mbsinit (&state))
9981 {
9982 const char *src = input + 2;
9983 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
9984 result |= 2;
9985 }
9986 }
9987 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9988 {
9989 const char input[] = "<\306\374\313\334\270\354>";
9990 mbstate_t state;
9991
9992 memset (&state, '\0', sizeof (mbstate_t));
9993 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
9994 if (!mbsinit (&state))
9995 {
9996 const char *src = input + 4;
9997 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
9998 result |= 4;
9999 }
10000 }
10001 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10002 {
10003 const char input[] = "B\250\271\201\060\211\070er";
10004 mbstate_t state;
10005
10006 memset (&state, '\0', sizeof (mbstate_t));
10007 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10008 if (!mbsinit (&state))
10009 {
10010 const char *src = input + 2;
10011 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10012 result |= 8;
10013 }
10014 }
10015 return result;
c971b7fa
PA
10016}
10017_ACEOF
8690e634
JK
10018if ac_fn_c_try_run "$LINENO"; then :
10019 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 10020else
8690e634 10021 gl_cv_func_mbsrtowcs_works=no
c971b7fa 10022fi
8690e634
JK
10023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10024 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 10025fi
8690e634
JK
10026
10027 fi
10028
10029fi
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10031$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10032
10033 case "$gl_cv_func_mbsrtowcs_works" in
10034 *yes) ;;
10035 *) REPLACE_MBSRTOWCS=1 ;;
10036 esac
10037 fi
c971b7fa
PA
10038 fi
10039
a512b375 10040 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 10041
c971b7fa 10042
c971b7fa 10043
c971b7fa 10044
c971b7fa 10045
c971b7fa 10046
c971b7fa
PA
10047
10048
8690e634
JK
10049 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10060
10061
10062 :
10063
a512b375 10064 fi
8690e634
JK
10065
10066
10067
10068
10069
10070 GNULIB_MBSRTOWCS=1
10071
10072
10073
10074
10075
10076$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
10077
10078
10079
10080
a512b375 10081 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
10082
10083
10084
10085
10086
10087
10088
10089
10090 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10091
10092
10093 for ac_header in bp-sym.h
10094do :
10095 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10096if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10097 cat >>confdefs.h <<_ACEOF
10098#define HAVE_BP_SYM_H 1
10099_ACEOF
10100
10101fi
10102
10103done
10104
10105
a512b375 10106 fi
c971b7fa
PA
10107
10108
10109
10110
10111
10112 GNULIB_MEMCHR=1
10113
10114
10115
10116
10117
10118$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10119
10120
10121
10122
10123
10124 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10126$as_echo_n "checking whether memmem works in linear time... " >&6; }
10127if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10129else
10130 if test "$cross_compiling" = yes; then :
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h. */
10133
10134#include <features.h>
10135#ifdef __GNU_LIBRARY__
10136 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10137 && !defined __UCLIBC__
10138 Lucky user
10139 #endif
10140#endif
10141#ifdef __CYGWIN__
10142 #include <cygwin/version.h>
10143 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10144 Lucky user
10145 #endif
10146#endif
10147
10148_ACEOF
10149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10150 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 10151 gl_cv_func_memmem_works_fast="guessing yes"
c971b7fa
PA
10152else
10153 gl_cv_func_memmem_works_fast="guessing no"
10154fi
10155rm -f conftest*
10156
10157
10158else
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h. */
10161
10162#include <signal.h> /* for signal */
10163#include <string.h> /* for memmem */
10164#include <stdlib.h> /* for malloc */
10165#include <unistd.h> /* for alarm */
10166static void quit (int sig) { exit (sig + 128); }
10167
10168int
10169main ()
10170{
10171
10172 int result = 0;
10173 size_t m = 1000000;
10174 char *haystack = (char *) malloc (2 * m + 1);
10175 char *needle = (char *) malloc (m + 1);
10176 /* Failure to compile this test due to missing alarm is okay,
10177 since all such platforms (mingw) also lack memmem. */
10178 signal (SIGALRM, quit);
10179 alarm (5);
10180 /* Check for quadratic performance. */
10181 if (haystack && needle)
10182 {
10183 memset (haystack, 'A', 2 * m);
10184 haystack[2 * m] = 'B';
10185 memset (needle, 'A', m);
10186 needle[m] = 'B';
10187 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10188 result |= 1;
10189 }
10190 return result;
10191
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_run "$LINENO"; then :
10197 gl_cv_func_memmem_works_fast=yes
10198else
10199 gl_cv_func_memmem_works_fast=no
10200fi
10201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10202 conftest.$ac_objext conftest.beam conftest.$ac_ext
10203fi
10204
10205
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10208$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
40a73391
JK
10209 case "$gl_cv_func_memmem_works_fast" in
10210 *yes) ;;
10211 *)
10212 REPLACE_MEMMEM=1
10213 ;;
10214 esac
c971b7fa
PA
10215 fi
10216
a512b375 10217 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
10218
10219
10220
10221
10222
10223
10224
10225
10226 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10227
a512b375 10228 fi
c971b7fa
PA
10229
10230
10231
10232
10233 for ac_func in memmem
10234do :
10235 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10236if test "x$ac_cv_func_memmem" = x""yes; then :
10237 cat >>confdefs.h <<_ACEOF
10238#define HAVE_MEMMEM 1
10239_ACEOF
10240
10241fi
10242done
10243
10244 if test $ac_cv_func_memmem = yes; then
10245 HAVE_MEMMEM=1
10246 else
10247 HAVE_MEMMEM=0
10248 fi
10249
10250 :
10251
10252
10253
10254
10255
10256 if test $ac_cv_have_decl_memmem = no; then
10257 HAVE_DECL_MEMMEM=0
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10260$as_echo_n "checking whether memmem works... " >&6; }
10261if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 if test "$cross_compiling" = yes; then :
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h. */
10267
10268#ifdef __GNU_LIBRARY__
10269 #include <features.h>
10270 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10271 || __GLIBC_MINOR__ > 12)) \
10272 || (__GLIBC__ > 2)) \
10273 || defined __UCLIBC__
10274 Lucky user
10275 #endif
10276#elif defined __CYGWIN__
10277 #include <cygwin/version.h>
10278 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10279 Lucky user
10280 #endif
10281#else
10282 Lucky user
10283#endif
10284
10285_ACEOF
10286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10287 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 10288 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
10289else
10290 gl_cv_func_memmem_works_always="guessing no"
10291fi
10292rm -f conftest*
10293
10294
10295else
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h. */
10298
10299#include <string.h> /* for memmem */
10300#define P "_EF_BF_BD"
10301#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10302#define NEEDLE P P P P P
10303
10304int
10305main ()
10306{
10307
10308 int result = 0;
10309 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10310 result |= 1;
10311 /* Check for empty needle behavior. */
10312 {
10313 const char *haystack = "AAA";
10314 if (memmem (haystack, 3, NULL, 0) != haystack)
10315 result |= 2;
10316 }
10317 return result;
10318
10319 ;
10320 return 0;
10321}
10322_ACEOF
10323if ac_fn_c_try_run "$LINENO"; then :
10324 gl_cv_func_memmem_works_always=yes
10325else
10326 gl_cv_func_memmem_works_always=no
10327fi
10328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10329 conftest.$ac_objext conftest.beam conftest.$ac_ext
10330fi
10331
10332
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10335$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
10336 case "$gl_cv_func_memmem_works_always" in
10337 *yes) ;;
10338 *)
10339 REPLACE_MEMMEM=1
10340 ;;
10341 esac
c971b7fa
PA
10342 fi
10343 :
10344
a512b375 10345 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
10346
10347
10348
10349
10350
10351
10352
10353
10354 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10355
a512b375 10356 fi
c971b7fa
PA
10357
10358
10359
10360
10361
10362 GNULIB_MEMMEM=1
10363
10364
10365
10366
10367
8690e634
JK
10368$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10369
10370
10371
10372
10373
10374
10375
10376 # Define two additional variables used in the Makefile substitution.
10377
10378 if test "$ac_cv_header_stdbool_h" = yes; then
10379 STDBOOL_H=''
10380 else
10381 STDBOOL_H='stdbool.h'
10382 fi
10383
10384 if test -n "$STDBOOL_H"; then
10385 GL_GENERATE_STDBOOL_H_TRUE=
10386 GL_GENERATE_STDBOOL_H_FALSE='#'
10387else
10388 GL_GENERATE_STDBOOL_H_TRUE='#'
10389 GL_GENERATE_STDBOOL_H_FALSE=
10390fi
10391
10392
10393 if test "$ac_cv_type__Bool" = yes; then
10394 HAVE__BOOL=1
10395 else
10396 HAVE__BOOL=0
10397 fi
10398
10399
10400
10401
10402
10403 STDDEF_H=
10404 if test $gt_cv_c_wchar_t = no; then
10405 HAVE_WCHAR_T=0
10406 STDDEF_H=stddef.h
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10409$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10410if test "${gl_cv_decl_null_works+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412else
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h. */
10415#include <stddef.h>
10416 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10417
10418int
10419main ()
10420{
10421
10422 ;
10423 return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_compile "$LINENO"; then :
10427 gl_cv_decl_null_works=yes
10428else
10429 gl_cv_decl_null_works=no
10430fi
10431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10434$as_echo "$gl_cv_decl_null_works" >&6; }
10435 if test $gl_cv_decl_null_works = no; then
10436 REPLACE_NULL=1
10437 STDDEF_H=stddef.h
10438 fi
10439
10440 if test -n "$STDDEF_H"; then
10441 GL_GENERATE_STDDEF_H_TRUE=
10442 GL_GENERATE_STDDEF_H_FALSE='#'
10443else
10444 GL_GENERATE_STDDEF_H_TRUE='#'
10445 GL_GENERATE_STDDEF_H_FALSE=
10446fi
10447
10448 if test -n "$STDDEF_H"; then
10449
10450
10451
10452
10453
10454
10455
10456
10457 if test $gl_cv_have_include_next = yes; then
10458 gl_cv_next_stddef_h='<'stddef.h'>'
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10461$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10462if test "${gl_cv_next_stddef_h+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464else
10465
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467/* end confdefs.h. */
10468#include <stddef.h>
10469
10470_ACEOF
10471 case "$host_os" in
10472 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10473 *) gl_absname_cpp="$ac_cpp" ;;
10474 esac
10475
10476 case "$host_os" in
10477 mingw*)
10478 gl_dirsep_regex='[/\\]'
10479 ;;
10480 *)
10481 gl_dirsep_regex='\/'
10482 ;;
10483 esac
10484 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10485
10486 gl_header_literal_regex=`echo 'stddef.h' \
10487 | sed -e "$gl_make_literal_regex_sed"`
10488 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10489 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10490 s|^/[^/]|//&|
10491 p
10492 q
10493 }'
10494 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10495 sed -n "$gl_absolute_header_sed"`'"'
10496
10497
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10500$as_echo "$gl_cv_next_stddef_h" >&6; }
10501 fi
10502 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10503
10504 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10506 gl_next_as_first_directive='<'stddef.h'>'
10507 else
10508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10509 gl_next_as_first_directive=$gl_cv_next_stddef_h
10510 fi
10511 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10512
10513
10514
10515
10516 fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 :
10532
10533
10534
10535
10536
10537
10538
10539
10540 if test $gl_cv_have_include_next = yes; then
10541 gl_cv_next_wchar_h='<'wchar.h'>'
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10544$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10545if test "${gl_cv_next_wchar_h+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10547else
10548
10549 if test $ac_cv_header_wchar_h = yes; then
10550
10551
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h. */
10554#include <wchar.h>
10555
10556_ACEOF
10557 case "$host_os" in
10558 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10559 *) gl_absname_cpp="$ac_cpp" ;;
10560 esac
10561
10562 case "$host_os" in
10563 mingw*)
10564 gl_dirsep_regex='[/\\]'
10565 ;;
10566 *)
10567 gl_dirsep_regex='\/'
10568 ;;
10569 esac
10570 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10571
10572 gl_header_literal_regex=`echo 'wchar.h' \
10573 | sed -e "$gl_make_literal_regex_sed"`
10574 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10575 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10576 s|^/[^/]|//&|
10577 p
10578 q
10579 }'
10580 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10581 sed -n "$gl_absolute_header_sed"`'"'
10582 else
10583 gl_cv_next_wchar_h='<'wchar.h'>'
10584 fi
10585
10586
10587fi
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10589$as_echo "$gl_cv_next_wchar_h" >&6; }
10590 fi
10591 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10592
10593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10595 gl_next_as_first_directive='<'wchar.h'>'
10596 else
10597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10598 gl_next_as_first_directive=$gl_cv_next_wchar_h
10599 fi
10600 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10601
10602
10603
10604
10605 if test $ac_cv_header_wchar_h = yes; then
10606 HAVE_WCHAR_H=1
10607 else
10608 HAVE_WCHAR_H=0
10609 fi
10610
c971b7fa
PA
10611
10612
10613
10614
8690e634
JK
10615 if test $gt_cv_c_wint_t = yes; then
10616 HAVE_WINT_T=1
10617 else
10618 HAVE_WINT_T=0
10619 fi
c971b7fa
PA
10620
10621
10622
8690e634
JK
10623 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
10624 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10626$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10627if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
10628 $as_echo_n "(cached) " >&6
10629else
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631/* end confdefs.h. */
8690e634
JK
10632
10633/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10634 <wchar.h>.
10635 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10636 included before <wchar.h>. */
10637#if !(defined __GLIBC__ && !defined __UCLIBC__)
10638# include <stddef.h>
10639# include <stdio.h>
10640# include <time.h>
10641#endif
10642#include <wchar.h>
c971b7fa
PA
10643
10644int
10645main ()
10646{
8690e634
JK
10647#undef $gl_func
10648 (void) $gl_func;
c971b7fa
PA
10649 ;
10650 return 0;
10651}
10652_ACEOF
10653if ac_fn_c_try_compile "$LINENO"; then :
8690e634 10654 eval "$as_gl_Symbol=yes"
c971b7fa 10655else
8690e634 10656 eval "$as_gl_Symbol=no"
c971b7fa
PA
10657fi
10658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659fi
8690e634
JK
10660eval ac_res=\$$as_gl_Symbol
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10662$as_echo "$ac_res" >&6; }
10663 eval as_val=\$$as_gl_Symbol
10664 if test "x$as_val" = x""yes; then :
10665 cat >>confdefs.h <<_ACEOF
10666#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10667_ACEOF
c971b7fa 10668
8690e634 10669 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 10670fi
8690e634
JK
10671 done
10672
10673
10674
10675
10676
10677
10678
10679 :
10680
10681
10682
10683
10684
10685 if test $ac_cv_func_iswcntrl = yes; then
10686 HAVE_ISWCNTRL=1
10687 else
10688 HAVE_ISWCNTRL=0
10689 fi
10690
10691
10692
8690e634
JK
10693 if test $gt_cv_c_wint_t = yes; then
10694 HAVE_WINT_T=1
10695 else
10696 HAVE_WINT_T=0
10697 fi
10698
10699
10700
10701
10702
10703
c971b7fa 10704
8690e634
JK
10705
10706 :
c971b7fa
PA
10707
10708
10709
10710
10711
10712
10713
10714
10715 if test $gl_cv_have_include_next = yes; then
8690e634 10716 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 10717 else
8690e634
JK
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10719$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10720if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
10721 $as_echo_n "(cached) " >&6
10722else
10723
8690e634
JK
10724 if test $ac_cv_header_wctype_h = yes; then
10725
10726
c971b7fa
PA
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728/* end confdefs.h. */
8690e634 10729#include <wctype.h>
c971b7fa
PA
10730
10731_ACEOF
10732 case "$host_os" in
10733 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10734 *) gl_absname_cpp="$ac_cpp" ;;
10735 esac
10736
10737 case "$host_os" in
10738 mingw*)
10739 gl_dirsep_regex='[/\\]'
10740 ;;
10741 *)
10742 gl_dirsep_regex='\/'
10743 ;;
10744 esac
10745 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10746
8690e634 10747 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
10748 | sed -e "$gl_make_literal_regex_sed"`
10749 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10750 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10751 s|^/[^/]|//&|
10752 p
10753 q
10754 }'
8690e634 10755 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 10756 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
10757 else
10758 gl_cv_next_wctype_h='<'wctype.h'>'
10759 fi
c971b7fa
PA
10760
10761
10762fi
8690e634
JK
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10764$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 10765 fi
8690e634 10766 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
10767
10768 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 10770 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
10771 else
10772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 10773 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 10774 fi
8690e634
JK
10775 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10776
10777
10778
10779
10780 if test $ac_cv_header_wctype_h = yes; then
10781 if test $ac_cv_func_iswcntrl = yes; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10783$as_echo_n "checking whether iswcntrl works... " >&6; }
10784if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10786else
10787
10788 if test "$cross_compiling" = yes; then :
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h. */
10791#include <stdlib.h>
10792 #if __GNU_LIBRARY__ == 1
10793 Linux libc5 i18n is broken.
10794 #endif
10795int
10796main ()
10797{
10798
10799 ;
10800 return 0;
10801}
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"; then :
10804 gl_cv_func_iswcntrl_works="guessing yes"
10805else
10806 gl_cv_func_iswcntrl_works="guessing no"
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809
10810else
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812/* end confdefs.h. */
10813
10814 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10815 included before <wchar.h>.
10816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10817 must be included before <wchar.h>. */
10818 #include <stddef.h>
10819 #include <stdio.h>
10820 #include <time.h>
10821 #include <wchar.h>
10822 #include <wctype.h>
10823 int main () { return iswprint ('x') == 0; }
10824
10825_ACEOF
10826if ac_fn_c_try_run "$LINENO"; then :
10827 gl_cv_func_iswcntrl_works=yes
10828else
10829 gl_cv_func_iswcntrl_works=no
10830fi
10831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10832 conftest.$ac_objext conftest.beam conftest.$ac_ext
10833fi
10834
10835
10836fi
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10838$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10839 fi
10840 HAVE_WCTYPE_H=1
10841 else
10842 HAVE_WCTYPE_H=0
10843 fi
10844
10845
10846 case "$gl_cv_func_iswcntrl_works" in
10847 *yes) REPLACE_ISWCNTRL=0 ;;
10848 *) REPLACE_ISWCNTRL=1 ;;
10849 esac
10850
10851
10852 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10853 :
10854 fi
10855
10856 if test $REPLACE_ISWCNTRL = 1; then
10857 REPLACE_TOWLOWER=1
10858 else
10859 for ac_func in towlower
10860do :
10861 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10862if test "x$ac_cv_func_towlower" = x""yes; then :
10863 cat >>confdefs.h <<_ACEOF
10864#define HAVE_TOWLOWER 1
10865_ACEOF
10866
10867fi
10868done
10869
10870 if test $ac_cv_func_towlower = yes; then
10871 REPLACE_TOWLOWER=0
10872 else
10873 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10874 included before <wchar.h>.
10875 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10876 must be included before <wchar.h>. */
10877 #include <stddef.h>
10878 #include <stdio.h>
10879 #include <time.h>
10880 #include <wchar.h>
10881 #if HAVE_WCTYPE_H
10882 # include <wctype.h>
10883 #endif
10884
10885"
10886if test "x$ac_cv_have_decl_towlower" = x""yes; then :
10887 ac_have_decl=1
10888else
10889 ac_have_decl=0
10890fi
10891
10892cat >>confdefs.h <<_ACEOF
10893#define HAVE_DECL_TOWLOWER $ac_have_decl
10894_ACEOF
10895
10896 if test $ac_cv_have_decl_towlower = yes; then
10897 REPLACE_TOWLOWER=1
10898 else
10899 REPLACE_TOWLOWER=0
10900 fi
10901 fi
10902 fi
10903
10904
10905 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10906 :
10907 fi
10908
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10910$as_echo_n "checking for wctype_t... " >&6; }
10911if test "${gl_cv_type_wctype_t+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913else
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h. */
10916/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10917 included before <wchar.h>.
10918 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10919 must be included before <wchar.h>. */
10920 #include <stddef.h>
10921 #include <stdio.h>
10922 #include <time.h>
10923 #include <wchar.h>
10924 #if HAVE_WCTYPE_H
10925 # include <wctype.h>
10926 #endif
10927 wctype_t a;
10928
10929int
10930main ()
10931{
10932
10933 ;
10934 return 0;
10935}
10936_ACEOF
10937if ac_fn_c_try_compile "$LINENO"; then :
10938 gl_cv_type_wctype_t=yes
10939else
10940 gl_cv_type_wctype_t=no
10941fi
10942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 10943
8690e634
JK
10944fi
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10946$as_echo "$gl_cv_type_wctype_t" >&6; }
10947 if test $gl_cv_type_wctype_t = no; then
10948 HAVE_WCTYPE_T=0
10949 fi
10950
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10952$as_echo_n "checking for wctrans_t... " >&6; }
10953if test "${gl_cv_type_wctrans_t+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10955else
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h. */
10958/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10959 included before <wchar.h>.
10960 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10961 must be included before <wchar.h>. */
10962 #include <stddef.h>
10963 #include <stdio.h>
10964 #include <time.h>
10965 #include <wchar.h>
10966 #include <wctype.h>
10967 wctrans_t a;
c971b7fa 10968
8690e634
JK
10969int
10970main ()
10971{
c971b7fa 10972
8690e634
JK
10973 ;
10974 return 0;
10975}
10976_ACEOF
10977if ac_fn_c_try_compile "$LINENO"; then :
10978 gl_cv_type_wctrans_t=yes
10979else
10980 gl_cv_type_wctrans_t=no
10981fi
10982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 10983
8690e634
JK
10984fi
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
10986$as_echo "$gl_cv_type_wctrans_t" >&6; }
10987 if test $gl_cv_type_wctrans_t = no; then
10988 HAVE_WCTRANS_T=0
c971b7fa
PA
10989 fi
10990
10991
8690e634
JK
10992 for gl_func in wctype iswctype wctrans towctrans ; do
10993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10995$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10996if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10997 $as_echo_n "(cached) " >&6
10998else
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000/* end confdefs.h. */
11001
11002/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11003 <wchar.h>.
11004 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11005 included before <wchar.h>. */
11006#if !(defined __GLIBC__ && !defined __UCLIBC__)
11007# include <stddef.h>
11008# include <stdio.h>
11009# include <time.h>
11010# include <wchar.h>
11011#endif
11012#include <wctype.h>
11013
11014int
11015main ()
11016{
11017#undef $gl_func
11018 (void) $gl_func;
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_compile "$LINENO"; then :
11024 eval "$as_gl_Symbol=yes"
11025else
11026 eval "$as_gl_Symbol=no"
11027fi
11028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029fi
11030eval ac_res=\$$as_gl_Symbol
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11032$as_echo "$ac_res" >&6; }
11033 eval as_val=\$$as_gl_Symbol
11034 if test "x$as_val" = x""yes; then :
11035 cat >>confdefs.h <<_ACEOF
11036#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11037_ACEOF
c971b7fa 11038
8690e634
JK
11039 eval ac_cv_have_decl_$gl_func=yes
11040fi
11041 done
c971b7fa
PA
11042
11043
11044 # End of code from modules
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 gltests_libdeps=
11055 gltests_ltlibdeps=
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 gl_source_base='tests'
11066 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
11067
11068 gl_module_indicator_condition=$gltests_WITNESS
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 LIBGNU_LIBDEPS="$gl_libdeps"
11079
11080 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11081
11082
11083
11084# We don't use automake, but gnulib does. This line lets us generate
11085# its Makefile.in.
11086am__api_version='1.11'
11087
11088# Find a good install program. We prefer a C program (faster),
11089# so one script is as good as another. But avoid the broken or
11090# incompatible versions:
11091# SysV /etc/install, /usr/sbin/install
11092# SunOS /usr/etc/install
11093# IRIX /sbin/install
11094# AIX /bin/install
11095# AmigaOS /C/install, which installs bootblocks on floppy discs
11096# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11097# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11098# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11099# OS/2's system install, which has a completely different semantic
11100# ./install, which can be erroneously created by make from ./install.sh.
11101# Reject install programs that cannot install multiple files.
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11103$as_echo_n "checking for a BSD-compatible install... " >&6; }
11104if test -z "$INSTALL"; then
11105if test "${ac_cv_path_install+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107else
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109for as_dir in $PATH
11110do
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 # Account for people who put trailing slashes in PATH elements.
11114case $as_dir/ in #((
11115 ./ | .// | /[cC]/* | \
11116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11117 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11118 /usr/ucb/* ) ;;
11119 *)
11120 # OSF1 and SCO ODT 3.0 have their own names for install.
11121 # Don't use installbsd from OSF since it installs stuff as root
11122 # by default.
11123 for ac_prog in ginstall scoinst install; do
11124 for ac_exec_ext in '' $ac_executable_extensions; do
11125 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11126 if test $ac_prog = install &&
11127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11128 # AIX install. It has an incompatible calling convention.
11129 :
11130 elif test $ac_prog = install &&
11131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11132 # program-specific install script used by HP pwplus--don't use.
11133 :
11134 else
11135 rm -rf conftest.one conftest.two conftest.dir
11136 echo one > conftest.one
11137 echo two > conftest.two
11138 mkdir conftest.dir
11139 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11140 test -s conftest.one && test -s conftest.two &&
11141 test -s conftest.dir/conftest.one &&
11142 test -s conftest.dir/conftest.two
11143 then
11144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11145 break 3
11146 fi
11147 fi
11148 fi
11149 done
11150 done
11151 ;;
11152esac
11153
11154 done
11155IFS=$as_save_IFS
11156
11157rm -rf conftest.one conftest.two conftest.dir
11158
11159fi
11160 if test "${ac_cv_path_install+set}" = set; then
11161 INSTALL=$ac_cv_path_install
11162 else
11163 # As a last resort, use the slow shell script. Don't cache a
11164 # value for INSTALL within a source directory, because that will
11165 # break other packages using the cache if that directory is
11166 # removed, or if the value is a relative name.
11167 INSTALL=$ac_install_sh
11168 fi
11169fi
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11171$as_echo "$INSTALL" >&6; }
11172
11173# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11174# It thinks the first close brace ends the variable substitution.
11175test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11176
11177test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11178
11179test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11180
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11182$as_echo_n "checking whether build environment is sane... " >&6; }
11183# Just in case
11184sleep 1
11185echo timestamp > conftest.file
11186# Reject unsafe characters in $srcdir or the absolute working directory
11187# name. Accept space and tab only in the latter.
11188am_lf='
11189'
11190case `pwd` in
11191 *[\\\"\#\$\&\'\`$am_lf]*)
11192 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
11193esac
11194case $srcdir in
11195 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11196 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11197esac
11198
11199# Do `set' in a subshell so we don't clobber the current shell's
11200# arguments. Must try -L first in case configure is actually a
11201# symlink; some systems play weird games with the mod time of symlinks
11202# (eg FreeBSD returns the mod time of the symlink's containing
11203# directory).
11204if (
11205 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11206 if test "$*" = "X"; then
11207 # -L didn't work.
11208 set X `ls -t "$srcdir/configure" conftest.file`
11209 fi
11210 rm -f conftest.file
11211 if test "$*" != "X $srcdir/configure conftest.file" \
11212 && test "$*" != "X conftest.file $srcdir/configure"; then
11213
11214 # If neither matched, then we have a broken ls. This can happen
11215 # if, for instance, CONFIG_SHELL is bash and it inherits a
11216 # broken ls alias from the environment. This has actually
11217 # happened. Such a system could not be considered "sane".
11218 as_fn_error "ls -t appears to fail. Make sure there is not a broken
11219alias in your environment" "$LINENO" 5
11220 fi
11221
11222 test "$2" = conftest.file
11223 )
11224then
11225 # Ok.
11226 :
11227else
11228 as_fn_error "newly created file is older than distributed files!
11229Check your system clock" "$LINENO" 5
11230fi
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11232$as_echo "yes" >&6; }
11233test "$program_prefix" != NONE &&
11234 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11235# Use a double $ so make ignores it.
11236test "$program_suffix" != NONE &&
11237 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11238# Double any \ or $.
11239# By default was `s,x,x', remove it if useless.
11240ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11241program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11242
11243# expand $ac_aux_dir to an absolute path
11244am_aux_dir=`cd $ac_aux_dir && pwd`
11245
11246if test x"${MISSING+set}" != xset; then
11247 case $am_aux_dir in
11248 *\ * | *\ *)
11249 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11250 *)
11251 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11252 esac
11253fi
11254# Use eval to expand $SHELL
11255if eval "$MISSING --run true"; then
11256 am_missing_run="$MISSING --run "
11257else
11258 am_missing_run=
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11260$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11261fi
11262
11263if test x"${install_sh}" != xset; then
11264 case $am_aux_dir in
11265 *\ * | *\ *)
11266 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11267 *)
11268 install_sh="\${SHELL} $am_aux_dir/install-sh"
11269 esac
11270fi
11271
11272# Installed binaries are usually stripped using `strip' when the user
11273# run `make install-strip'. However `strip' might not be the right
11274# tool to use in cross-compilation environments, therefore Automake
11275# will honor the `STRIP' environment variable to overrule this program.
11276if test "$cross_compiling" != no; then
11277 if test -n "$ac_tool_prefix"; then
11278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11279set dummy ${ac_tool_prefix}strip; ac_word=$2
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281$as_echo_n "checking for $ac_word... " >&6; }
11282if test "${ac_cv_prog_STRIP+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284else
11285 if test -n "$STRIP"; then
11286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11287else
11288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289for as_dir in $PATH
11290do
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 break 2
11298 fi
11299done
11300 done
11301IFS=$as_save_IFS
11302
11303fi
11304fi
11305STRIP=$ac_cv_prog_STRIP
11306if test -n "$STRIP"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11308$as_echo "$STRIP" >&6; }
11309else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311$as_echo "no" >&6; }
11312fi
11313
11314
11315fi
11316if test -z "$ac_cv_prog_STRIP"; then
11317 ac_ct_STRIP=$STRIP
11318 # Extract the first word of "strip", so it can be a program name with args.
11319set dummy strip; ac_word=$2
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325 if test -n "$ac_ct_STRIP"; then
11326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335 ac_cv_prog_ac_ct_STRIP="strip"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340 done
11341IFS=$as_save_IFS
11342
11343fi
11344fi
11345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11346if test -n "$ac_ct_STRIP"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11348$as_echo "$ac_ct_STRIP" >&6; }
11349else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
11352fi
11353
11354 if test "x$ac_ct_STRIP" = x; then
11355 STRIP=":"
11356 else
11357 case $cross_compiling:$ac_tool_warned in
11358yes:)
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361ac_tool_warned=yes ;;
11362esac
11363 STRIP=$ac_ct_STRIP
11364 fi
11365else
11366 STRIP="$ac_cv_prog_STRIP"
11367fi
11368
11369fi
11370INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11371
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11373$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11374if test -z "$MKDIR_P"; then
11375 if test "${ac_cv_path_mkdir+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377else
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_prog in mkdir gmkdir; do
11384 for ac_exec_ext in '' $ac_executable_extensions; do
11385 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11386 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11387 'mkdir (GNU coreutils) '* | \
11388 'mkdir (coreutils) '* | \
11389 'mkdir (fileutils) '4.1*)
11390 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11391 break 3;;
11392 esac
11393 done
11394 done
11395 done
11396IFS=$as_save_IFS
11397
11398fi
11399
11400 if test "${ac_cv_path_mkdir+set}" = set; then
11401 MKDIR_P="$ac_cv_path_mkdir -p"
11402 else
11403 # As a last resort, use the slow shell script. Don't cache a
11404 # value for MKDIR_P within a source directory, because that will
11405 # break other packages using the cache if that directory is
11406 # removed, or if the value is a relative name.
11407 test -d ./--version && rmdir ./--version
11408 MKDIR_P="$ac_install_sh -d"
11409 fi
11410fi
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11412$as_echo "$MKDIR_P" >&6; }
11413
11414
11415mkdir_p="$MKDIR_P"
11416case $mkdir_p in
11417 [\\/$]* | ?:[\\/]*) ;;
11418 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11419esac
11420
11421for ac_prog in gawk mawk nawk awk
11422do
11423 # Extract the first word of "$ac_prog", so it can be a program name with args.
11424set dummy $ac_prog; ac_word=$2
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
11427if test "${ac_cv_prog_AWK+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11429else
11430 if test -n "$AWK"; then
11431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_AWK="$ac_prog"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445 done
11446IFS=$as_save_IFS
11447
11448fi
11449fi
11450AWK=$ac_cv_prog_AWK
11451if test -n "$AWK"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11453$as_echo "$AWK" >&6; }
11454else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457fi
11458
11459
11460 test -n "$AWK" && break
11461done
11462
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11464$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11465set x ${MAKE-make}
11466ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11467if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11468 $as_echo_n "(cached) " >&6
11469else
11470 cat >conftest.make <<\_ACEOF
11471SHELL = /bin/sh
11472all:
11473 @echo '@@@%%%=$(MAKE)=@@@%%%'
11474_ACEOF
11475# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11476case `${MAKE-make} -f conftest.make 2>/dev/null` in
11477 *@@@%%%=?*=@@@%%%*)
11478 eval ac_cv_prog_make_${ac_make}_set=yes;;
11479 *)
11480 eval ac_cv_prog_make_${ac_make}_set=no;;
11481esac
11482rm -f conftest.make
11483fi
11484if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486$as_echo "yes" >&6; }
11487 SET_MAKE=
11488else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
11491 SET_MAKE="MAKE=${MAKE-make}"
11492fi
11493
11494rm -rf .tst 2>/dev/null
11495mkdir .tst 2>/dev/null
11496if test -d .tst; then
11497 am__leading_dot=.
11498else
11499 am__leading_dot=_
11500fi
11501rmdir .tst 2>/dev/null
11502
11503DEPDIR="${am__leading_dot}deps"
11504
11505ac_config_commands="$ac_config_commands depfiles"
11506
11507
11508am_make=${MAKE-make}
11509cat > confinc << 'END'
11510am__doit:
11511 @echo this is the am__doit target
11512.PHONY: am__doit
11513END
11514# If we don't find an include directive, just comment out the code.
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11516$as_echo_n "checking for style of include used by $am_make... " >&6; }
11517am__include="#"
11518am__quote=
11519_am_result=none
11520# First try GNU make style include.
11521echo "include confinc" > confmf
11522# Ignore all kinds of additional output from `make'.
11523case `$am_make -s -f confmf 2> /dev/null` in #(
11524*the\ am__doit\ target*)
11525 am__include=include
11526 am__quote=
11527 _am_result=GNU
11528 ;;
11529esac
11530# Now try BSD make style include.
11531if test "$am__include" = "#"; then
11532 echo '.include "confinc"' > confmf
11533 case `$am_make -s -f confmf 2> /dev/null` in #(
11534 *the\ am__doit\ target*)
11535 am__include=.include
11536 am__quote="\""
11537 _am_result=BSD
11538 ;;
11539 esac
11540fi
11541
11542
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11544$as_echo "$_am_result" >&6; }
11545rm -f confinc confmf
11546
11547# Check whether --enable-dependency-tracking was given.
11548if test "${enable_dependency_tracking+set}" = set; then :
11549 enableval=$enable_dependency_tracking;
11550fi
11551
11552if test "x$enable_dependency_tracking" != xno; then
11553 am_depcomp="$ac_aux_dir/depcomp"
11554 AMDEPBACKSLASH='\'
11555fi
11556 if test "x$enable_dependency_tracking" != xno; then
11557 AMDEP_TRUE=
11558 AMDEP_FALSE='#'
11559else
11560 AMDEP_TRUE='#'
11561 AMDEP_FALSE=
11562fi
11563
11564
11565if test "`cd $srcdir && pwd`" != "`pwd`"; then
11566 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11567 # is not polluted with repeated "-I."
11568 am__isrc=' -I$(srcdir)'
11569 # test to see if srcdir already configured
11570 if test -f $srcdir/config.status; then
11571 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11572 fi
11573fi
11574
11575# test whether we have cygpath
11576if test -z "$CYGPATH_W"; then
11577 if (cygpath --version) >/dev/null 2>/dev/null; then
11578 CYGPATH_W='cygpath -w'
11579 else
11580 CYGPATH_W=echo
11581 fi
11582fi
11583
11584
11585# Define the identity of the package.
11586 PACKAGE=libgnu
11587 VERSION=UNUSED-VERSION
11588
11589
11590# Some tools Automake needs.
11591
11592ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11593
11594
11595AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11596
11597
11598AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11599
11600
11601AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11602
11603
11604MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11605
11606# We need awk for the "check" target. The system "awk" is bad on
11607# some platforms.
11608# Always define AMTAR for backward compatibility.
11609
11610AMTAR=${AMTAR-"${am_missing_run}tar"}
11611
11612am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11613
11614
11615
11616
11617depcc="$CC" am_compiler_list=
11618
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11620$as_echo_n "checking dependency style of $depcc... " >&6; }
11621if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
11623else
11624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11625 # We make a subdir and do the tests there. Otherwise we can end up
11626 # making bogus files that we don't know about and never remove. For
11627 # instance it was reported that on HP-UX the gcc test will end up
11628 # making a dummy file named `D' -- because `-MD' means `put the output
11629 # in D'.
11630 mkdir conftest.dir
11631 # Copy depcomp to subdir because otherwise we won't find it if we're
11632 # using a relative directory.
11633 cp "$am_depcomp" conftest.dir
11634 cd conftest.dir
11635 # We will build objects and dependencies in a subdirectory because
11636 # it helps to detect inapplicable dependency modes. For instance
11637 # both Tru64's cc and ICC support -MD to output dependencies as a
11638 # side effect of compilation, but ICC will put the dependencies in
11639 # the current directory while Tru64 will put them in the object
11640 # directory.
11641 mkdir sub
11642
11643 am_cv_CC_dependencies_compiler_type=none
11644 if test "$am_compiler_list" = ""; then
11645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11646 fi
11647 am__universal=false
11648 case " $depcc " in #(
11649 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11650 esac
11651
11652 for depmode in $am_compiler_list; do
11653 # Setup a source with many dependencies, because some compilers
11654 # like to wrap large dependency lists on column 80 (with \), and
11655 # we should not choose a depcomp mode which is confused by this.
11656 #
11657 # We need to recreate these files for each test, as the compiler may
11658 # overwrite some of them when testing with obscure command lines.
11659 # This happens at least with the AIX C compiler.
11660 : > sub/conftest.c
11661 for i in 1 2 3 4 5 6; do
11662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11663 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11664 # Solaris 8's {/usr,}/bin/sh.
11665 touch sub/conftst$i.h
11666 done
11667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11668
11669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11670 # mode. It turns out that the SunPro C++ compiler does not properly
11671 # handle `-M -o', and we need to detect this. Also, some Intel
11672 # versions had trouble with output in subdirs
11673 am__obj=sub/conftest.${OBJEXT-o}
11674 am__minus_obj="-o $am__obj"
11675 case $depmode in
11676 gcc)
11677 # This depmode causes a compiler race in universal mode.
11678 test "$am__universal" = false || continue
11679 ;;
11680 nosideeffect)
11681 # after this tag, mechanisms are not by side-effect, so they'll
11682 # only be used when explicitly requested
11683 if test "x$enable_dependency_tracking" = xyes; then
11684 continue
11685 else
11686 break
11687 fi
11688 ;;
11689 msvisualcpp | msvcmsys)
11690 # This compiler won't grok `-c -o', but also, the minuso test has
11691 # not run yet. These depmodes are late enough in the game, and
11692 # so weak that their functioning should not be impacted.
11693 am__obj=conftest.${OBJEXT-o}
11694 am__minus_obj=
11695 ;;
11696 none) break ;;
11697 esac
11698 if depmode=$depmode \
11699 source=sub/conftest.c object=$am__obj \
11700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11701 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11702 >/dev/null 2>conftest.err &&
11703 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11705 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11707 # icc doesn't choke on unknown options, it will just issue warnings
11708 # or remarks (even with -Werror). So we grep stderr for any message
11709 # that says an option was ignored or not supported.
11710 # When given -MP, icc 7.0 and 7.1 complain thusly:
11711 # icc: Command line warning: ignoring option '-M'; no argument required
11712 # The diagnosis changed in icc 8.0:
11713 # icc: Command line remark: option '-MP' not supported
11714 if (grep 'ignoring option' conftest.err ||
11715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11716 am_cv_CC_dependencies_compiler_type=$depmode
11717 break
11718 fi
11719 fi
11720 done
11721
11722 cd ..
11723 rm -rf conftest.dir
11724else
11725 am_cv_CC_dependencies_compiler_type=none
11726fi
11727
11728fi
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11730$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11731CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11732
11733 if
11734 test "x$enable_dependency_tracking" != xno \
11735 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11736 am__fastdepCC_TRUE=
11737 am__fastdepCC_FALSE='#'
11738else
11739 am__fastdepCC_TRUE='#'
11740 am__fastdepCC_FALSE=
11741fi
11742
11743
11744
11745
11746# --------------------- #
11747# Checks for programs. #
11748# --------------------- #
11749
11750
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11752$as_echo_n "checking whether ln -s works... " >&6; }
11753LN_S=$as_ln_s
11754if test "$LN_S" = "ln -s"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756$as_echo "yes" >&6; }
11757else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11759$as_echo "no, using $LN_S" >&6; }
11760fi
11761
11762if test -n "$ac_tool_prefix"; then
11763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11764set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766$as_echo_n "checking for $ac_word... " >&6; }
11767if test "${ac_cv_prog_RANLIB+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11769else
11770 if test -n "$RANLIB"; then
11771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11772else
11773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11783 fi
11784done
11785 done
11786IFS=$as_save_IFS
11787
11788fi
11789fi
11790RANLIB=$ac_cv_prog_RANLIB
11791if test -n "$RANLIB"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11793$as_echo "$RANLIB" >&6; }
11794else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
11797fi
11798
11799
11800fi
11801if test -z "$ac_cv_prog_RANLIB"; then
11802 ac_ct_RANLIB=$RANLIB
11803 # Extract the first word of "ranlib", so it can be a program name with args.
11804set dummy ranlib; ac_word=$2
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806$as_echo_n "checking for $ac_word... " >&6; }
11807if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809else
11810 if test -n "$ac_ct_RANLIB"; then
11811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11812else
11813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814for as_dir in $PATH
11815do
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11820 ac_cv_prog_ac_ct_RANLIB="ranlib"
11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 break 2
11823 fi
11824done
11825 done
11826IFS=$as_save_IFS
11827
11828fi
11829fi
11830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11831if test -n "$ac_ct_RANLIB"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11833$as_echo "$ac_ct_RANLIB" >&6; }
11834else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
11837fi
11838
11839 if test "x$ac_ct_RANLIB" = x; then
11840 RANLIB=":"
11841 else
11842 case $cross_compiling:$ac_tool_warned in
11843yes:)
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11846ac_tool_warned=yes ;;
11847esac
11848 RANLIB=$ac_ct_RANLIB
11849 fi
11850else
11851 RANLIB="$ac_cv_prog_RANLIB"
11852fi
11853
11854
11855if test -n "$ac_tool_prefix"; then
11856 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11857set dummy ${ac_tool_prefix}ar; ac_word=$2
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859$as_echo_n "checking for $ac_word... " >&6; }
11860if test "${ac_cv_prog_AR+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862else
11863 if test -n "$AR"; then
11864 ac_cv_prog_AR="$AR" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_prog_AR="${ac_tool_prefix}ar"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877done
11878 done
11879IFS=$as_save_IFS
11880
11881fi
11882fi
11883AR=$ac_cv_prog_AR
11884if test -n "$AR"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11886$as_echo "$AR" >&6; }
11887else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
11893fi
11894if test -z "$ac_cv_prog_AR"; then
11895 ac_ct_AR=$AR
11896 # Extract the first word of "ar", so it can be a program name with args.
11897set dummy ar; ac_word=$2
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902else
11903 if test -n "$ac_ct_AR"; then
11904 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_prog_ac_ct_AR="ar"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917done
11918 done
11919IFS=$as_save_IFS
11920
11921fi
11922fi
11923ac_ct_AR=$ac_cv_prog_ac_ct_AR
11924if test -n "$ac_ct_AR"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11926$as_echo "$ac_ct_AR" >&6; }
11927else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929$as_echo "no" >&6; }
11930fi
11931
11932 if test "x$ac_ct_AR" = x; then
11933 AR=""
11934 else
11935 case $cross_compiling:$ac_tool_warned in
11936yes:)
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939ac_tool_warned=yes ;;
11940esac
11941 AR=$ac_ct_AR
11942 fi
11943else
11944 AR="$ac_cv_prog_AR"
11945fi
11946
11947
11948# ---------------------- #
11949# Checks for libraries. #
11950# ---------------------- #
11951
11952ac_config_files="$ac_config_files Makefile import/Makefile"
11953
11954ac_config_commands="$ac_config_commands default"
11955
11956cat >confcache <<\_ACEOF
11957# This file is a shell script that caches the results of configure
11958# tests run on this system so they can be shared between configure
11959# scripts and configure runs, see configure's option --config-cache.
11960# It is not useful on other systems. If it contains results you don't
11961# want to keep, you may remove or edit it.
11962#
11963# config.status only pays attention to the cache file if you give it
11964# the --recheck option to rerun configure.
11965#
11966# `ac_cv_env_foo' variables (set or unset) will be overridden when
11967# loading this file, other *unset* `ac_cv_foo' will be assigned the
11968# following values.
11969
11970_ACEOF
11971
11972# The following way of writing the cache mishandles newlines in values,
11973# but we know of no workaround that is simple, portable, and efficient.
11974# So, we kill variables containing newlines.
11975# Ultrix sh set writes to stderr and can't be redirected directly,
11976# and sets the high bit in the cache file unless we assign to the vars.
11977(
11978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11979 eval ac_val=\$$ac_var
11980 case $ac_val in #(
11981 *${as_nl}*)
11982 case $ac_var in #(
11983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11984$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11985 esac
11986 case $ac_var in #(
11987 _ | IFS | as_nl) ;; #(
11988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11989 *) { eval $ac_var=; unset $ac_var;} ;;
11990 esac ;;
11991 esac
11992 done
11993
11994 (set) 2>&1 |
11995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11996 *${as_nl}ac_space=\ *)
11997 # `set' does not quote correctly, so add quotes: double-quote
11998 # substitution turns \\\\ into \\, and sed turns \\ into \.
11999 sed -n \
12000 "s/'/'\\\\''/g;
12001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12002 ;; #(
12003 *)
12004 # `set' quotes correctly as required by POSIX, so do not add quotes.
12005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12006 ;;
12007 esac |
12008 sort
12009) |
12010 sed '
12011 /^ac_cv_env_/b end
12012 t clear
12013 :clear
12014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12015 t end
12016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12017 :end' >>confcache
12018if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12019 if test -w "$cache_file"; then
12020 test "x$cache_file" != "x/dev/null" &&
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12022$as_echo "$as_me: updating cache $cache_file" >&6;}
12023 cat confcache >$cache_file
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12026$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12027 fi
12028fi
12029rm -f confcache
12030
12031test "x$prefix" = xNONE && prefix=$ac_default_prefix
12032# Let make expand exec_prefix.
12033test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12034
12035DEFS=-DHAVE_CONFIG_H
12036
12037ac_libobjs=
12038ac_ltlibobjs=
12039for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12040 # 1. Remove the extension, and $U if already installed.
12041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12042 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12044 # will be set to the directory where LIBOBJS objects are built.
12045 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12046 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12047done
12048LIBOBJS=$ac_libobjs
12049
12050LTLIBOBJS=$ac_ltlibobjs
12051
12052
12053if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12054 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12055Usually this means the macro was only invoked conditionally." "$LINENO" 5
12056fi
12057if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12058 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
12059Usually this means the macro was only invoked conditionally." "$LINENO" 5
12060fi
8690e634
JK
12061if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12062 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12063Usually this means the macro was only invoked conditionally." "$LINENO" 5
12064fi
12065if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12066 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12067Usually this means the macro was only invoked conditionally." "$LINENO" 5
12068fi
c971b7fa
PA
12069if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12070 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
12071Usually this means the macro was only invoked conditionally." "$LINENO" 5
12072fi
8690e634
JK
12073if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12074 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12075Usually this means the macro was only invoked conditionally." "$LINENO" 5
12076fi
c971b7fa
PA
12077if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12078 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12079Usually this means the macro was only invoked conditionally." "$LINENO" 5
12080fi
12081
12082 gl_libobjs=
12083 gl_ltlibobjs=
12084 if test -n "$gl_LIBOBJS"; then
12085 # Remove the extension.
12086 sed_drop_objext='s/\.o$//;s/\.obj$//'
12087 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12088 gl_libobjs="$gl_libobjs $i.$ac_objext"
12089 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12090 done
12091 fi
12092 gl_LIBOBJS=$gl_libobjs
12093
12094 gl_LTLIBOBJS=$gl_ltlibobjs
12095
12096
12097
12098 gltests_libobjs=
12099 gltests_ltlibobjs=
12100 if test -n "$gltests_LIBOBJS"; then
12101 # Remove the extension.
12102 sed_drop_objext='s/\.o$//;s/\.obj$//'
12103 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12104 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
12105 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
12106 done
12107 fi
12108 gltests_LIBOBJS=$gltests_libobjs
12109
12110 gltests_LTLIBOBJS=$gltests_ltlibobjs
12111
12112
12113if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12114 as_fn_error "conditional \"AMDEP\" was never defined.
12115Usually this means the macro was only invoked conditionally." "$LINENO" 5
12116fi
12117if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12118 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12119Usually this means the macro was only invoked conditionally." "$LINENO" 5
12120fi
12121 if test -n "$EXEEXT"; then
12122 am__EXEEXT_TRUE=
12123 am__EXEEXT_FALSE='#'
12124else
12125 am__EXEEXT_TRUE='#'
12126 am__EXEEXT_FALSE=
12127fi
12128
12129
12130: ${CONFIG_STATUS=./config.status}
12131ac_write_fail=0
12132ac_clean_files_save=$ac_clean_files
12133ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12135$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12136as_write_fail=0
12137cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12138#! $SHELL
12139# Generated by $as_me.
12140# Run this file to recreate the current configuration.
12141# Compiler output produced by configure, useful for debugging
12142# configure, is in config.log if it exists.
12143
12144debug=false
12145ac_cs_recheck=false
12146ac_cs_silent=false
12147
12148SHELL=\${CONFIG_SHELL-$SHELL}
12149export SHELL
12150_ASEOF
12151cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12152## -------------------- ##
12153## M4sh Initialization. ##
12154## -------------------- ##
12155
12156# Be more Bourne compatible
12157DUALCASE=1; export DUALCASE # for MKS sh
12158if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12159 emulate sh
12160 NULLCMD=:
12161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12162 # is contrary to our usage. Disable this feature.
12163 alias -g '${1+"$@"}'='"$@"'
12164 setopt NO_GLOB_SUBST
12165else
12166 case `(set -o) 2>/dev/null` in #(
12167 *posix*) :
12168 set -o posix ;; #(
12169 *) :
12170 ;;
12171esac
12172fi
12173
12174
12175as_nl='
12176'
12177export as_nl
12178# Printing a long string crashes Solaris 7 /usr/bin/printf.
12179as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12180as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12181as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12182# Prefer a ksh shell builtin over an external printf program on Solaris,
12183# but without wasting forks for bash or zsh.
12184if test -z "$BASH_VERSION$ZSH_VERSION" \
12185 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12186 as_echo='print -r --'
12187 as_echo_n='print -rn --'
12188elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12189 as_echo='printf %s\n'
12190 as_echo_n='printf %s'
12191else
12192 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12193 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12194 as_echo_n='/usr/ucb/echo -n'
12195 else
12196 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12197 as_echo_n_body='eval
12198 arg=$1;
12199 case $arg in #(
12200 *"$as_nl"*)
12201 expr "X$arg" : "X\\(.*\\)$as_nl";
12202 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12203 esac;
12204 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12205 '
12206 export as_echo_n_body
12207 as_echo_n='sh -c $as_echo_n_body as_echo'
12208 fi
12209 export as_echo_body
12210 as_echo='sh -c $as_echo_body as_echo'
12211fi
12212
12213# The user is always right.
12214if test "${PATH_SEPARATOR+set}" != set; then
12215 PATH_SEPARATOR=:
12216 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12217 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12218 PATH_SEPARATOR=';'
12219 }
12220fi
12221
12222
12223# IFS
12224# We need space, tab and new line, in precisely that order. Quoting is
12225# there to prevent editors from complaining about space-tab.
12226# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12227# splitting by setting IFS to empty value.)
12228IFS=" "" $as_nl"
12229
12230# Find who we are. Look in the path if we contain no directory separator.
12231case $0 in #((
12232 *[\\/]* ) as_myself=$0 ;;
12233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12239 done
12240IFS=$as_save_IFS
12241
12242 ;;
12243esac
12244# We did not find ourselves, most probably we were run as `sh COMMAND'
12245# in which case we are not to be found in the path.
12246if test "x$as_myself" = x; then
12247 as_myself=$0
12248fi
12249if test ! -f "$as_myself"; then
12250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12251 exit 1
12252fi
12253
12254# Unset variables that we do not need and which cause bugs (e.g. in
12255# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12256# suppresses any "Segmentation fault" message there. '((' could
12257# trigger a bug in pdksh 5.2.14.
12258for as_var in BASH_ENV ENV MAIL MAILPATH
12259do eval test x\${$as_var+set} = xset \
12260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12261done
12262PS1='$ '
12263PS2='> '
12264PS4='+ '
12265
12266# NLS nuisances.
12267LC_ALL=C
12268export LC_ALL
12269LANGUAGE=C
12270export LANGUAGE
12271
12272# CDPATH.
12273(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12274
12275
12276# as_fn_error ERROR [LINENO LOG_FD]
12277# ---------------------------------
12278# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12279# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12280# script with status $?, using 1 if that was 0.
12281as_fn_error ()
12282{
12283 as_status=$?; test $as_status -eq 0 && as_status=1
12284 if test "$3"; then
12285 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12287 fi
12288 $as_echo "$as_me: error: $1" >&2
12289 as_fn_exit $as_status
12290} # as_fn_error
12291
12292
12293# as_fn_set_status STATUS
12294# -----------------------
12295# Set $? to STATUS, without forking.
12296as_fn_set_status ()
12297{
12298 return $1
12299} # as_fn_set_status
12300
12301# as_fn_exit STATUS
12302# -----------------
12303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12304as_fn_exit ()
12305{
12306 set +e
12307 as_fn_set_status $1
12308 exit $1
12309} # as_fn_exit
12310
12311# as_fn_unset VAR
12312# ---------------
12313# Portably unset VAR.
12314as_fn_unset ()
12315{
12316 { eval $1=; unset $1;}
12317}
12318as_unset=as_fn_unset
12319# as_fn_append VAR VALUE
12320# ----------------------
12321# Append the text in VALUE to the end of the definition contained in VAR. Take
12322# advantage of any shell optimizations that allow amortized linear growth over
12323# repeated appends, instead of the typical quadratic growth present in naive
12324# implementations.
12325if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12326 eval 'as_fn_append ()
12327 {
12328 eval $1+=\$2
12329 }'
12330else
12331 as_fn_append ()
12332 {
12333 eval $1=\$$1\$2
12334 }
12335fi # as_fn_append
12336
12337# as_fn_arith ARG...
12338# ------------------
12339# Perform arithmetic evaluation on the ARGs, and store the result in the
12340# global $as_val. Take advantage of shells that can avoid forks. The arguments
12341# must be portable across $(()) and expr.
12342if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12343 eval 'as_fn_arith ()
12344 {
12345 as_val=$(( $* ))
12346 }'
12347else
12348 as_fn_arith ()
12349 {
12350 as_val=`expr "$@" || test $? -eq 1`
12351 }
12352fi # as_fn_arith
12353
12354
12355if expr a : '\(a\)' >/dev/null 2>&1 &&
12356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12357 as_expr=expr
12358else
12359 as_expr=false
12360fi
12361
12362if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12363 as_basename=basename
12364else
12365 as_basename=false
12366fi
12367
12368if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12369 as_dirname=dirname
12370else
12371 as_dirname=false
12372fi
12373
12374as_me=`$as_basename -- "$0" ||
12375$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12376 X"$0" : 'X\(//\)$' \| \
12377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12378$as_echo X/"$0" |
12379 sed '/^.*\/\([^/][^/]*\)\/*$/{
12380 s//\1/
12381 q
12382 }
12383 /^X\/\(\/\/\)$/{
12384 s//\1/
12385 q
12386 }
12387 /^X\/\(\/\).*/{
12388 s//\1/
12389 q
12390 }
12391 s/.*/./; q'`
12392
12393# Avoid depending upon Character Ranges.
12394as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12395as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12396as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12397as_cr_digits='0123456789'
12398as_cr_alnum=$as_cr_Letters$as_cr_digits
12399
12400ECHO_C= ECHO_N= ECHO_T=
12401case `echo -n x` in #(((((
12402-n*)
12403 case `echo 'xy\c'` in
12404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12405 xy) ECHO_C='\c';;
12406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12407 ECHO_T=' ';;
12408 esac;;
12409*)
12410 ECHO_N='-n';;
12411esac
12412
12413rm -f conf$$ conf$$.exe conf$$.file
12414if test -d conf$$.dir; then
12415 rm -f conf$$.dir/conf$$.file
12416else
12417 rm -f conf$$.dir
12418 mkdir conf$$.dir 2>/dev/null
12419fi
12420if (echo >conf$$.file) 2>/dev/null; then
12421 if ln -s conf$$.file conf$$ 2>/dev/null; then
12422 as_ln_s='ln -s'
12423 # ... but there are two gotchas:
12424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12426 # In both cases, we have to default to `cp -p'.
12427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12428 as_ln_s='cp -p'
12429 elif ln conf$$.file conf$$ 2>/dev/null; then
12430 as_ln_s=ln
12431 else
12432 as_ln_s='cp -p'
12433 fi
12434else
12435 as_ln_s='cp -p'
12436fi
12437rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12438rmdir conf$$.dir 2>/dev/null
12439
12440
12441# as_fn_mkdir_p
12442# -------------
12443# Create "$as_dir" as a directory, including parents if necessary.
12444as_fn_mkdir_p ()
12445{
12446
12447 case $as_dir in #(
12448 -*) as_dir=./$as_dir;;
12449 esac
12450 test -d "$as_dir" || eval $as_mkdir_p || {
12451 as_dirs=
12452 while :; do
12453 case $as_dir in #(
12454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12455 *) as_qdir=$as_dir;;
12456 esac
12457 as_dirs="'$as_qdir' $as_dirs"
12458 as_dir=`$as_dirname -- "$as_dir" ||
12459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460 X"$as_dir" : 'X\(//\)[^/]' \| \
12461 X"$as_dir" : 'X\(//\)$' \| \
12462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12463$as_echo X"$as_dir" |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465 s//\1/
12466 q
12467 }
12468 /^X\(\/\/\)[^/].*/{
12469 s//\1/
12470 q
12471 }
12472 /^X\(\/\/\)$/{
12473 s//\1/
12474 q
12475 }
12476 /^X\(\/\).*/{
12477 s//\1/
12478 q
12479 }
12480 s/.*/./; q'`
12481 test -d "$as_dir" && break
12482 done
12483 test -z "$as_dirs" || eval "mkdir $as_dirs"
12484 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12485
12486
12487} # as_fn_mkdir_p
12488if mkdir -p . 2>/dev/null; then
12489 as_mkdir_p='mkdir -p "$as_dir"'
12490else
12491 test -d ./-p && rmdir ./-p
12492 as_mkdir_p=false
12493fi
12494
12495if test -x / >/dev/null 2>&1; then
12496 as_test_x='test -x'
12497else
12498 if ls -dL / >/dev/null 2>&1; then
12499 as_ls_L_option=L
12500 else
12501 as_ls_L_option=
12502 fi
12503 as_test_x='
12504 eval sh -c '\''
12505 if test -d "$1"; then
12506 test -d "$1/.";
12507 else
12508 case $1 in #(
12509 -*)set "./$1";;
12510 esac;
12511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12512 ???[sx]*):;;*)false;;esac;fi
12513 '\'' sh
12514 '
12515fi
12516as_executable_p=$as_test_x
12517
12518# Sed expression to map a string onto a valid CPP name.
12519as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12520
12521# Sed expression to map a string onto a valid variable name.
12522as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12523
12524
12525exec 6>&1
12526## ----------------------------------- ##
12527## Main body of $CONFIG_STATUS script. ##
12528## ----------------------------------- ##
12529_ASEOF
12530test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12531
12532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533# Save the log message, to keep $0 and so on meaningful, and to
12534# report actual input values of CONFIG_FILES etc. instead of their
12535# values after options handling.
12536ac_log="
12537This file was extended by $as_me, which was
12538generated by GNU Autoconf 2.64. Invocation command line was
12539
12540 CONFIG_FILES = $CONFIG_FILES
12541 CONFIG_HEADERS = $CONFIG_HEADERS
12542 CONFIG_LINKS = $CONFIG_LINKS
12543 CONFIG_COMMANDS = $CONFIG_COMMANDS
12544 $ $0 $@
12545
12546on `(hostname || uname -n) 2>/dev/null | sed 1q`
12547"
12548
12549_ACEOF
12550
12551case $ac_config_files in *"
12552"*) set x $ac_config_files; shift; ac_config_files=$*;;
12553esac
12554
12555case $ac_config_headers in *"
12556"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12557esac
12558
12559
12560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12561# Files that config.status was made for.
12562config_files="$ac_config_files"
12563config_headers="$ac_config_headers"
12564config_commands="$ac_config_commands"
12565
12566_ACEOF
12567
12568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12569ac_cs_usage="\
12570\`$as_me' instantiates files and other configuration actions
12571from templates according to the current configuration. Unless the files
12572and actions are specified as TAGs, all are instantiated by default.
12573
12574Usage: $0 [OPTION]... [TAG]...
12575
12576 -h, --help print this help, then exit
12577 -V, --version print version number and configuration settings, then exit
12578 -q, --quiet, --silent
12579 do not print progress messages
12580 -d, --debug don't remove temporary files
12581 --recheck update $as_me by reconfiguring in the same conditions
12582 --file=FILE[:TEMPLATE]
12583 instantiate the configuration file FILE
12584 --header=FILE[:TEMPLATE]
12585 instantiate the configuration header FILE
12586
12587Configuration files:
12588$config_files
12589
12590Configuration headers:
12591$config_headers
12592
12593Configuration commands:
12594$config_commands
12595
12596Report bugs to the package provider."
12597
12598_ACEOF
12599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12600ac_cs_version="\\
12601config.status
12602configured by $0, generated by GNU Autoconf 2.64,
12603 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12604
12605Copyright (C) 2009 Free Software Foundation, Inc.
12606This config.status script is free software; the Free Software Foundation
12607gives unlimited permission to copy, distribute and modify it."
12608
12609ac_pwd='$ac_pwd'
12610srcdir='$srcdir'
12611INSTALL='$INSTALL'
12612MKDIR_P='$MKDIR_P'
12613AWK='$AWK'
12614test -n "\$AWK" || AWK=awk
12615_ACEOF
12616
12617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12618# The default lists apply if the user does not specify any file.
12619ac_need_defaults=:
12620while test $# != 0
12621do
12622 case $1 in
12623 --*=*)
12624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12626 ac_shift=:
12627 ;;
12628 *)
12629 ac_option=$1
12630 ac_optarg=$2
12631 ac_shift=shift
12632 ;;
12633 esac
12634
12635 case $ac_option in
12636 # Handling of the options.
12637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12638 ac_cs_recheck=: ;;
12639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12640 $as_echo "$ac_cs_version"; exit ;;
12641 --debug | --debu | --deb | --de | --d | -d )
12642 debug=: ;;
12643 --file | --fil | --fi | --f )
12644 $ac_shift
12645 case $ac_optarg in
12646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12647 esac
12648 as_fn_append CONFIG_FILES " '$ac_optarg'"
12649 ac_need_defaults=false;;
12650 --header | --heade | --head | --hea )
12651 $ac_shift
12652 case $ac_optarg in
12653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12654 esac
12655 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12656 ac_need_defaults=false;;
12657 --he | --h)
12658 # Conflict between --help and --header
12659 as_fn_error "ambiguous option: \`$1'
12660Try \`$0 --help' for more information.";;
12661 --help | --hel | -h )
12662 $as_echo "$ac_cs_usage"; exit ;;
12663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12664 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12665 ac_cs_silent=: ;;
12666
12667 # This is an error.
12668 -*) as_fn_error "unrecognized option: \`$1'
12669Try \`$0 --help' for more information." ;;
12670
12671 *) as_fn_append ac_config_targets " $1"
12672 ac_need_defaults=false ;;
12673
12674 esac
12675 shift
12676done
12677
12678ac_configure_extra_args=
12679
12680if $ac_cs_silent; then
12681 exec 6>/dev/null
12682 ac_configure_extra_args="$ac_configure_extra_args --silent"
12683fi
12684
12685_ACEOF
12686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12687if \$ac_cs_recheck; then
12688 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12689 shift
12690 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12691 CONFIG_SHELL='$SHELL'
12692 export CONFIG_SHELL
12693 exec "\$@"
12694fi
12695
12696_ACEOF
12697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12698exec 5>>config.log
12699{
12700 echo
12701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12702## Running $as_me. ##
12703_ASBOX
12704 $as_echo "$ac_log"
12705} >&5
12706
12707_ACEOF
12708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12709#
12710# INIT-COMMANDS
12711#
12712AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12713
12714_ACEOF
12715
12716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12717
12718# Handling of arguments.
12719for ac_config_target in $ac_config_targets
12720do
12721 case $ac_config_target in
12722 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12723 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12724 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12725 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
12726 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12727
12728 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12729 esac
12730done
12731
12732
12733# If the user did not use the arguments to specify the items to instantiate,
12734# then the envvar interface is used. Set only those that are not.
12735# We use the long form for the default assignment because of an extremely
12736# bizarre bug on SunOS 4.1.3.
12737if $ac_need_defaults; then
12738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12741fi
12742
12743# Have a temporary directory for convenience. Make it in the build tree
12744# simply because there is no reason against having it here, and in addition,
12745# creating and moving files from /tmp can sometimes cause problems.
12746# Hook for its removal unless debugging.
12747# Note that there is a small window in which the directory will not be cleaned:
12748# after its creation but before its name has been assigned to `$tmp'.
12749$debug ||
12750{
12751 tmp=
12752 trap 'exit_status=$?
12753 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12754' 0
12755 trap 'as_fn_exit 1' 1 2 13 15
12756}
12757# Create a (secure) tmp directory for tmp files.
12758
12759{
12760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12761 test -n "$tmp" && test -d "$tmp"
12762} ||
12763{
12764 tmp=./conf$$-$RANDOM
12765 (umask 077 && mkdir "$tmp")
12766} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12767
12768# Set up the scripts for CONFIG_FILES section.
12769# No need to generate them if there are no CONFIG_FILES.
12770# This happens for instance with `./config.status config.h'.
12771if test -n "$CONFIG_FILES"; then
12772
12773
12774ac_cr=`echo X | tr X '\015'`
12775# On cygwin, bash can eat \r inside `` if the user requested igncr.
12776# But we know of no other shell where ac_cr would be empty at this
12777# point, so we can use a bashism as a fallback.
12778if test "x$ac_cr" = x; then
12779 eval ac_cr=\$\'\\r\'
12780fi
12781ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12782if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12783 ac_cs_awk_cr='\r'
12784else
12785 ac_cs_awk_cr=$ac_cr
12786fi
12787
12788echo 'BEGIN {' >"$tmp/subs1.awk" &&
12789_ACEOF
12790
12791
12792{
12793 echo "cat >conf$$subs.awk <<_ACEOF" &&
12794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12795 echo "_ACEOF"
12796} >conf$$subs.sh ||
12797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12798ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12799ac_delim='%!_!# '
12800for ac_last_try in false false false false false :; do
12801 . ./conf$$subs.sh ||
12802 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12803
12804 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12805 if test $ac_delim_n = $ac_delim_num; then
12806 break
12807 elif $ac_last_try; then
12808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12809 else
12810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12811 fi
12812done
12813rm -f conf$$subs.sh
12814
12815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12816cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12817_ACEOF
12818sed -n '
12819h
12820s/^/S["/; s/!.*/"]=/
12821p
12822g
12823s/^[^!]*!//
12824:repl
12825t repl
12826s/'"$ac_delim"'$//
12827t delim
12828:nl
12829h
12830s/\(.\{148\}\).*/\1/
12831t more1
12832s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12833p
12834n
12835b repl
12836:more1
12837s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12838p
12839g
12840s/.\{148\}//
12841t nl
12842:delim
12843h
12844s/\(.\{148\}\).*/\1/
12845t more2
12846s/["\\]/\\&/g; s/^/"/; s/$/"/
12847p
12848b
12849:more2
12850s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12851p
12852g
12853s/.\{148\}//
12854t delim
12855' <conf$$subs.awk | sed '
12856/^[^""]/{
12857 N
12858 s/\n//
12859}
12860' >>$CONFIG_STATUS || ac_write_fail=1
12861rm -f conf$$subs.awk
12862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12863_ACAWK
12864cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12865 for (key in S) S_is_set[key] = 1
12866 FS = "\a"
12867
12868}
12869{
12870 line = $ 0
12871 nfields = split(line, field, "@")
12872 substed = 0
12873 len = length(field[1])
12874 for (i = 2; i < nfields; i++) {
12875 key = field[i]
12876 keylen = length(key)
12877 if (S_is_set[key]) {
12878 value = S[key]
12879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12880 len += length(value) + length(field[++i])
12881 substed = 1
12882 } else
12883 len += 1 + keylen
12884 }
12885
12886 print line
12887}
12888
12889_ACAWK
12890_ACEOF
12891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12893 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12894else
12895 cat
12896fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12897 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12898_ACEOF
12899
12900# VPATH may cause trouble with some makes, so we remove $(srcdir),
12901# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12902# trailing colons and then remove the whole line if VPATH becomes empty
12903# (actually we leave an empty line to preserve line numbers).
12904if test "x$srcdir" = x.; then
12905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12906s/:*\$(srcdir):*/:/
12907s/:*\${srcdir}:*/:/
12908s/:*@srcdir@:*/:/
12909s/^\([^=]*=[ ]*\):*/\1/
12910s/:*$//
12911s/^[^=]*=[ ]*$//
12912}'
12913fi
12914
12915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916fi # test -n "$CONFIG_FILES"
12917
12918# Set up the scripts for CONFIG_HEADERS section.
12919# No need to generate them if there are no CONFIG_HEADERS.
12920# This happens for instance with `./config.status Makefile'.
12921if test -n "$CONFIG_HEADERS"; then
12922cat >"$tmp/defines.awk" <<\_ACAWK ||
12923BEGIN {
12924_ACEOF
12925
12926# Transform confdefs.h into an awk script `defines.awk', embedded as
12927# here-document in config.status, that substitutes the proper values into
12928# config.h.in to produce config.h.
12929
12930# Create a delimiter string that does not exist in confdefs.h, to ease
12931# handling of long lines.
12932ac_delim='%!_!# '
12933for ac_last_try in false false :; do
12934 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12935 if test -z "$ac_t"; then
12936 break
12937 elif $ac_last_try; then
12938 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12939 else
12940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12941 fi
12942done
12943
12944# For the awk script, D is an array of macro values keyed by name,
12945# likewise P contains macro parameters if any. Preserve backslash
12946# newline sequences.
12947
12948ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12949sed -n '
12950s/.\{148\}/&'"$ac_delim"'/g
12951t rset
12952:rset
12953s/^[ ]*#[ ]*define[ ][ ]*/ /
12954t def
12955d
12956:def
12957s/\\$//
12958t bsnl
12959s/["\\]/\\&/g
12960s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12961D["\1"]=" \3"/p
12962s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12963d
12964:bsnl
12965s/["\\]/\\&/g
12966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12967D["\1"]=" \3\\\\\\n"\\/p
12968t cont
12969s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12970t cont
12971d
12972:cont
12973n
12974s/.\{148\}/&'"$ac_delim"'/g
12975t clear
12976:clear
12977s/\\$//
12978t bsnlc
12979s/["\\]/\\&/g; s/^/"/; s/$/"/p
12980d
12981:bsnlc
12982s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12983b cont
12984' <confdefs.h | sed '
12985s/'"$ac_delim"'/"\\\
12986"/g' >>$CONFIG_STATUS || ac_write_fail=1
12987
12988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12989 for (key in D) D_is_set[key] = 1
12990 FS = "\a"
12991}
12992/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12993 line = \$ 0
12994 split(line, arg, " ")
12995 if (arg[1] == "#") {
12996 defundef = arg[2]
12997 mac1 = arg[3]
12998 } else {
12999 defundef = substr(arg[1], 2)
13000 mac1 = arg[2]
13001 }
13002 split(mac1, mac2, "(") #)
13003 macro = mac2[1]
13004 prefix = substr(line, 1, index(line, defundef) - 1)
13005 if (D_is_set[macro]) {
13006 # Preserve the white space surrounding the "#".
13007 print prefix "define", macro P[macro] D[macro]
13008 next
13009 } else {
13010 # Replace #undef with comments. This is necessary, for example,
13011 # in the case of _POSIX_SOURCE, which is predefined and required
13012 # on some systems where configure will not decide to define it.
13013 if (defundef == "undef") {
13014 print "/*", prefix defundef, macro, "*/"
13015 next
13016 }
13017 }
13018}
13019{ print }
13020_ACAWK
13021_ACEOF
13022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13023 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13024fi # test -n "$CONFIG_HEADERS"
13025
13026
13027eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13028shift
13029for ac_tag
13030do
13031 case $ac_tag in
13032 :[FHLC]) ac_mode=$ac_tag; continue;;
13033 esac
13034 case $ac_mode$ac_tag in
13035 :[FHL]*:*);;
13036 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13037 :[FH]-) ac_tag=-:-;;
13038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13039 esac
13040 ac_save_IFS=$IFS
13041 IFS=:
13042 set x $ac_tag
13043 IFS=$ac_save_IFS
13044 shift
13045 ac_file=$1
13046 shift
13047
13048 case $ac_mode in
13049 :L) ac_source=$1;;
13050 :[FH])
13051 ac_file_inputs=
13052 for ac_f
13053 do
13054 case $ac_f in
13055 -) ac_f="$tmp/stdin";;
13056 *) # Look for the file first in the build tree, then in the source tree
13057 # (if the path is not absolute). The absolute path cannot be DOS-style,
13058 # because $ac_f cannot contain `:'.
13059 test -f "$ac_f" ||
13060 case $ac_f in
13061 [\\/$]*) false;;
13062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13063 esac ||
13064 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13065 esac
13066 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13067 as_fn_append ac_file_inputs " '$ac_f'"
13068 done
13069
13070 # Let's still pretend it is `configure' which instantiates (i.e., don't
13071 # use $as_me), people would be surprised to read:
13072 # /* config.h. Generated by config.status. */
13073 configure_input='Generated from '`
13074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13075 `' by configure.'
13076 if test x"$ac_file" != x-; then
13077 configure_input="$ac_file. $configure_input"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13079$as_echo "$as_me: creating $ac_file" >&6;}
13080 fi
13081 # Neutralize special characters interpreted by sed in replacement strings.
13082 case $configure_input in #(
13083 *\&* | *\|* | *\\* )
13084 ac_sed_conf_input=`$as_echo "$configure_input" |
13085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13086 *) ac_sed_conf_input=$configure_input;;
13087 esac
13088
13089 case $ac_tag in
13090 *:-:* | *:-) cat >"$tmp/stdin" \
13091 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13092 esac
13093 ;;
13094 esac
13095
13096 ac_dir=`$as_dirname -- "$ac_file" ||
13097$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13098 X"$ac_file" : 'X\(//\)[^/]' \| \
13099 X"$ac_file" : 'X\(//\)$' \| \
13100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13101$as_echo X"$ac_file" |
13102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13103 s//\1/
13104 q
13105 }
13106 /^X\(\/\/\)[^/].*/{
13107 s//\1/
13108 q
13109 }
13110 /^X\(\/\/\)$/{
13111 s//\1/
13112 q
13113 }
13114 /^X\(\/\).*/{
13115 s//\1/
13116 q
13117 }
13118 s/.*/./; q'`
13119 as_dir="$ac_dir"; as_fn_mkdir_p
13120 ac_builddir=.
13121
13122case "$ac_dir" in
13123.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13124*)
13125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13126 # A ".." for each directory in $ac_dir_suffix.
13127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13128 case $ac_top_builddir_sub in
13129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13131 esac ;;
13132esac
13133ac_abs_top_builddir=$ac_pwd
13134ac_abs_builddir=$ac_pwd$ac_dir_suffix
13135# for backward compatibility:
13136ac_top_builddir=$ac_top_build_prefix
13137
13138case $srcdir in
13139 .) # We are building in place.
13140 ac_srcdir=.
13141 ac_top_srcdir=$ac_top_builddir_sub
13142 ac_abs_top_srcdir=$ac_pwd ;;
13143 [\\/]* | ?:[\\/]* ) # Absolute name.
13144 ac_srcdir=$srcdir$ac_dir_suffix;
13145 ac_top_srcdir=$srcdir
13146 ac_abs_top_srcdir=$srcdir ;;
13147 *) # Relative name.
13148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13149 ac_top_srcdir=$ac_top_build_prefix$srcdir
13150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13151esac
13152ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13153
13154
13155 case $ac_mode in
13156 :F)
13157 #
13158 # CONFIG_FILE
13159 #
13160
13161 case $INSTALL in
13162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13164 esac
13165 ac_MKDIR_P=$MKDIR_P
13166 case $MKDIR_P in
13167 [\\/$]* | ?:[\\/]* ) ;;
13168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13169 esac
13170_ACEOF
13171
13172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13173# If the template does not know about datarootdir, expand it.
13174# FIXME: This hack should be removed a few years after 2.60.
13175ac_datarootdir_hack=; ac_datarootdir_seen=
13176ac_sed_dataroot='
13177/datarootdir/ {
13178 p
13179 q
13180}
13181/@datadir@/p
13182/@docdir@/p
13183/@infodir@/p
13184/@localedir@/p
13185/@mandir@/p'
13186case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13187*datarootdir*) ac_datarootdir_seen=yes;;
13188*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13190$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13191_ACEOF
13192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 ac_datarootdir_hack='
13194 s&@datadir@&$datadir&g
13195 s&@docdir@&$docdir&g
13196 s&@infodir@&$infodir&g
13197 s&@localedir@&$localedir&g
13198 s&@mandir@&$mandir&g
13199 s&\\\${datarootdir}&$datarootdir&g' ;;
13200esac
13201_ACEOF
13202
13203# Neutralize VPATH when `$srcdir' = `.'.
13204# Shell code in configure.ac might set extrasub.
13205# FIXME: do we really want to maintain this feature?
13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207ac_sed_extra="$ac_vpsub
13208$extrasub
13209_ACEOF
13210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211:t
13212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13213s|@configure_input@|$ac_sed_conf_input|;t t
13214s&@top_builddir@&$ac_top_builddir_sub&;t t
13215s&@top_build_prefix@&$ac_top_build_prefix&;t t
13216s&@srcdir@&$ac_srcdir&;t t
13217s&@abs_srcdir@&$ac_abs_srcdir&;t t
13218s&@top_srcdir@&$ac_top_srcdir&;t t
13219s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13220s&@builddir@&$ac_builddir&;t t
13221s&@abs_builddir@&$ac_abs_builddir&;t t
13222s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13223s&@INSTALL@&$ac_INSTALL&;t t
13224s&@MKDIR_P@&$ac_MKDIR_P&;t t
13225$ac_datarootdir_hack
13226"
13227eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13228 || as_fn_error "could not create $ac_file" "$LINENO" 5
13229
13230test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13234which seems to be undefined. Please make sure it is defined." >&5
13235$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13236which seems to be undefined. Please make sure it is defined." >&2;}
13237
13238 rm -f "$tmp/stdin"
13239 case $ac_file in
13240 -) cat "$tmp/out" && rm -f "$tmp/out";;
13241 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13242 esac \
13243 || as_fn_error "could not create $ac_file" "$LINENO" 5
13244 ;;
13245 :H)
13246 #
13247 # CONFIG_HEADER
13248 #
13249 if test x"$ac_file" != x-; then
13250 {
13251 $as_echo "/* $configure_input */" \
13252 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13253 } >"$tmp/config.h" \
13254 || as_fn_error "could not create $ac_file" "$LINENO" 5
13255 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13257$as_echo "$as_me: $ac_file is unchanged" >&6;}
13258 else
13259 rm -f "$ac_file"
13260 mv "$tmp/config.h" "$ac_file" \
13261 || as_fn_error "could not create $ac_file" "$LINENO" 5
13262 fi
13263 else
13264 $as_echo "/* $configure_input */" \
13265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13266 || as_fn_error "could not create -" "$LINENO" 5
13267 fi
13268# Compute "$ac_file"'s index in $config_headers.
13269_am_arg="$ac_file"
13270_am_stamp_count=1
13271for _am_header in $config_headers :; do
13272 case $_am_header in
13273 $_am_arg | $_am_arg:* )
13274 break ;;
13275 * )
13276 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13277 esac
13278done
13279echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13280$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13281 X"$_am_arg" : 'X\(//\)[^/]' \| \
13282 X"$_am_arg" : 'X\(//\)$' \| \
13283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13284$as_echo X"$_am_arg" |
13285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13286 s//\1/
13287 q
13288 }
13289 /^X\(\/\/\)[^/].*/{
13290 s//\1/
13291 q
13292 }
13293 /^X\(\/\/\)$/{
13294 s//\1/
13295 q
13296 }
13297 /^X\(\/\).*/{
13298 s//\1/
13299 q
13300 }
13301 s/.*/./; q'`/stamp-h$_am_stamp_count
13302 ;;
13303
13304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13305$as_echo "$as_me: executing $ac_file commands" >&6;}
13306 ;;
13307 esac
13308
13309
13310 case $ac_file$ac_mode in
13311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13312 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13313 # are listed without --file. Let's play safe and only enable the eval
13314 # if we detect the quoting.
13315 case $CONFIG_FILES in
13316 *\'*) eval set x "$CONFIG_FILES" ;;
13317 *) set x $CONFIG_FILES ;;
13318 esac
13319 shift
13320 for mf
13321 do
13322 # Strip MF so we end up with the name of the file.
13323 mf=`echo "$mf" | sed -e 's/:.*$//'`
13324 # Check whether this is an Automake generated Makefile or not.
13325 # We used to match only the files named `Makefile.in', but
13326 # some people rename them; so instead we look at the file content.
13327 # Grep'ing the first line is not enough: some people post-process
13328 # each Makefile.in and add a new line on top of each file to say so.
13329 # Grep'ing the whole file is not good either: AIX grep has a line
13330 # limit of 2048, but all sed's we know have understand at least 4000.
13331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13332 dirpart=`$as_dirname -- "$mf" ||
13333$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13334 X"$mf" : 'X\(//\)[^/]' \| \
13335 X"$mf" : 'X\(//\)$' \| \
13336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13337$as_echo X"$mf" |
13338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13339 s//\1/
13340 q
13341 }
13342 /^X\(\/\/\)[^/].*/{
13343 s//\1/
13344 q
13345 }
13346 /^X\(\/\/\)$/{
13347 s//\1/
13348 q
13349 }
13350 /^X\(\/\).*/{
13351 s//\1/
13352 q
13353 }
13354 s/.*/./; q'`
13355 else
13356 continue
13357 fi
13358 # Extract the definition of DEPDIR, am__include, and am__quote
13359 # from the Makefile without running `make'.
13360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13361 test -z "$DEPDIR" && continue
13362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13363 test -z "am__include" && continue
13364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13365 # When using ansi2knr, U may be empty or an underscore; expand it
13366 U=`sed -n 's/^U = //p' < "$mf"`
13367 # Find all dependency output files, they are included files with
13368 # $(DEPDIR) in their names. We invoke sed twice because it is the
13369 # simplest approach to changing $(DEPDIR) to its actual value in the
13370 # expansion.
13371 for file in `sed -n "
13372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13374 # Make sure the directory exists.
13375 test -f "$dirpart/$file" && continue
13376 fdir=`$as_dirname -- "$file" ||
13377$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$file" : 'X\(//\)[^/]' \| \
13379 X"$file" : 'X\(//\)$' \| \
13380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13381$as_echo X"$file" |
13382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13383 s//\1/
13384 q
13385 }
13386 /^X\(\/\/\)[^/].*/{
13387 s//\1/
13388 q
13389 }
13390 /^X\(\/\/\)$/{
13391 s//\1/
13392 q
13393 }
13394 /^X\(\/\).*/{
13395 s//\1/
13396 q
13397 }
13398 s/.*/./; q'`
13399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13400 # echo "creating $dirpart/$file"
13401 echo '# dummy' > "$dirpart/$file"
13402 done
13403 done
13404}
13405 ;;
13406 "default":C)
13407case x$CONFIG_HEADERS in
13408xconfig.h:config.in)
13409echo > stamp-h ;;
13410esac
13411 ;;
13412
13413 esac
13414done # for ac_tag
13415
13416
13417as_fn_exit 0
13418_ACEOF
13419ac_clean_files=$ac_clean_files_save
13420
13421test $ac_write_fail = 0 ||
13422 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13423
13424
13425# configure is writing to config.log, and then calls config.status.
13426# config.status does its own redirection, appending to config.log.
13427# Unfortunately, on DOS this fails, as config.log is still kept open
13428# by configure, so config.status won't be able to write to it; its
13429# output is simply discarded. So we exec the FD to /dev/null,
13430# effectively closing config.log, so it can be properly (re)opened and
13431# appended to by config.status. When coming back to configure, we
13432# need to make the FD available again.
13433if test "$no_create" != yes; then
13434 ac_cs_success=:
13435 ac_config_status_args=
13436 test "$silent" = yes &&
13437 ac_config_status_args="$ac_config_status_args --quiet"
13438 exec 5>/dev/null
13439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13440 exec 5>>config.log
13441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13442 # would make configure fail if this is the last instruction.
13443 $ac_cs_success || as_fn_exit $?
13444fi
13445if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13447$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13448fi
13449
13450
13451exit 0