gdb/
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
8690e634 554ac_unique_file="import/memmem.c"
c971b7fa
PA
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
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
879PRAGMA_COLUMNS
880PRAGMA_SYSTEM_HEADER
881INCLUDE_NEXT_AS_FIRST_DIRECTIVE
882INCLUDE_NEXT
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
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
8690e634
JK
4293 # Code from module fnmatch:
4294 # Code from module fnmatch-gnu:
c971b7fa
PA
4295 # Code from module include_next:
4296 # Code from module inttypes:
4297 # Code from module inttypes-incomplete:
8690e634
JK
4298 # Code from module localcharset:
4299 # Code from module mbrtowc:
4300 # Code from module mbsinit:
4301 # Code from module mbsrtowcs:
c971b7fa
PA
4302 # Code from module memchr:
4303 # Code from module memmem:
4304 # Code from module memmem-simple:
4305 # Code from module multiarch:
4306 # Code from module snippet/arg-nonnull:
4307 # Code from module snippet/c++defs:
4308 # Code from module snippet/warn-on-use:
8690e634 4309 # Code from module stdbool:
c971b7fa
PA
4310 # Code from module stddef:
4311 # Code from module stdint:
8690e634 4312 # Code from module streq:
c971b7fa 4313 # Code from module string:
8690e634 4314 # Code from module strnlen1:
c971b7fa 4315 # Code from module update-copyright:
8690e634
JK
4316 # Code from module verify:
4317 # Code from module wchar:
4318 # Code from module wctype-h:
c971b7fa
PA
4319
4320ac_ext=c
4321ac_cpp='$CPP $CPPFLAGS'
4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4327set dummy ${ac_tool_prefix}gcc; ac_word=$2
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329$as_echo_n "checking for $ac_word... " >&6; }
4330if test "${ac_cv_prog_CC+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332else
4333 if test -n "$CC"; then
4334 ac_cv_prog_CC="$CC" # Let the user override the test.
4335else
4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4346 fi
4347done
4348 done
4349IFS=$as_save_IFS
4350
4351fi
4352fi
4353CC=$ac_cv_prog_CC
4354if test -n "$CC"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4356$as_echo "$CC" >&6; }
4357else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
4360fi
4361
4362
4363fi
4364if test -z "$ac_cv_prog_CC"; then
4365 ac_ct_CC=$CC
4366 # Extract the first word of "gcc", so it can be a program name with args.
4367set dummy gcc; ac_word=$2
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
4370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_CC="gcc"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388 done
4389IFS=$as_save_IFS
4390
4391fi
4392fi
4393ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394if test -n "$ac_ct_CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396$as_echo "$ac_ct_CC" >&6; }
4397else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
4400fi
4401
4402 if test "x$ac_ct_CC" = x; then
4403 CC=""
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406yes:)
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409ac_tool_warned=yes ;;
4410esac
4411 CC=$ac_ct_CC
4412 fi
4413else
4414 CC="$ac_cv_prog_CC"
4415fi
4416
4417if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4420set dummy ${ac_tool_prefix}cc; ac_word=$2
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422$as_echo_n "checking for $ac_word... " >&6; }
4423if test "${ac_cv_prog_CC+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425else
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC="$CC" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_CC="${ac_tool_prefix}cc"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440done
4441 done
4442IFS=$as_save_IFS
4443
4444fi
4445fi
4446CC=$ac_cv_prog_CC
4447if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449$as_echo "$CC" >&6; }
4450else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452$as_echo "no" >&6; }
4453fi
4454
4455
4456 fi
4457fi
4458if test -z "$CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460set dummy cc; ac_word=$2
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462$as_echo_n "checking for $ac_word... " >&6; }
4463if test "${ac_cv_prog_CC+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -n "$CC"; then
4467 ac_cv_prog_CC="$CC" # Let the user override the test.
4468else
4469 ac_prog_rejected=no
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_CC="cc"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485done
4486 done
4487IFS=$as_save_IFS
4488
4489if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500fi
4501fi
4502fi
4503CC=$ac_cv_prog_CC
4504if test -n "$CC"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506$as_echo "$CC" >&6; }
4507else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509$as_echo "no" >&6; }
4510fi
4511
4512
4513fi
4514if test -z "$CC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in cl.exe
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521$as_echo_n "checking for $ac_word... " >&6; }
4522if test "${ac_cv_prog_CC+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524else
4525 if test -n "$CC"; then
4526 ac_cv_prog_CC="$CC" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539done
4540 done
4541IFS=$as_save_IFS
4542
4543fi
4544fi
4545CC=$ac_cv_prog_CC
4546if test -n "$CC"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548$as_echo "$CC" >&6; }
4549else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553
4554
4555 test -n "$CC" && break
4556 done
4557fi
4558if test -z "$CC"; then
4559 ac_ct_CC=$CC
4560 for ac_prog in cl.exe
4561do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563set dummy $ac_prog; ac_word=$2
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
4566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583done
4584 done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590if test -n "$ac_ct_CC"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592$as_echo "$ac_ct_CC" >&6; }
4593else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595$as_echo "no" >&6; }
4596fi
4597
4598
4599 test -n "$ac_ct_CC" && break
4600done
4601
4602 if test "x$ac_ct_CC" = x; then
4603 CC=""
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606yes:)
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609ac_tool_warned=yes ;;
4610esac
4611 CC=$ac_ct_CC
4612 fi
4613fi
4614
4615fi
4616
4617
4618test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620as_fn_error "no acceptable C compiler found in \$PATH
4621See \`config.log' for more details." "$LINENO" 5; }
4622
4623# Provide some information about the compiler.
4624$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4625set X $ac_compile
4626ac_compiler=$2
4627for ac_option in --version -v -V -qversion; do
4628 { { ac_try="$ac_compiler $ac_option >&5"
4629case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634$as_echo "$ac_try_echo"; } >&5
4635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4636 ac_status=$?
4637 if test -s conftest.err; then
4638 sed '10a\
4639... rest of stderr output deleted ...
4640 10q' conftest.err >conftest.er1
4641 cat conftest.er1 >&5
4642 rm -f conftest.er1 conftest.err
4643 fi
4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }
4646done
4647
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4649$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4650if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659#ifndef __GNUC__
4660 choke me
4661#endif
4662
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_compiler_gnu=yes
4669else
4670 ac_compiler_gnu=no
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673ac_cv_c_compiler_gnu=$ac_compiler_gnu
4674
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4677$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4678if test $ac_compiler_gnu = yes; then
4679 GCC=yes
4680else
4681 GCC=
4682fi
4683ac_test_CFLAGS=${CFLAGS+set}
4684ac_save_CFLAGS=$CFLAGS
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686$as_echo_n "checking whether $CC accepts -g... " >&6; }
4687if test "${ac_cv_prog_cc_g+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 ac_save_c_werror_flag=$ac_c_werror_flag
4691 ac_c_werror_flag=yes
4692 ac_cv_prog_cc_g=no
4693 CFLAGS="-g"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h. */
4696
4697int
4698main ()
4699{
4700
4701 ;
4702 return 0;
4703}
4704_ACEOF
4705if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_prog_cc_g=yes
4707else
4708 CFLAGS=""
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h. */
4711
4712int
4713main ()
4714{
4715
4716 ;
4717 return 0;
4718}
4719_ACEOF
4720if ac_fn_c_try_compile "$LINENO"; then :
4721
4722else
4723 ac_c_werror_flag=$ac_save_c_werror_flag
4724 CFLAGS="-g"
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h. */
4727
4728int
4729main ()
4730{
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_prog_cc_g=yes
4738fi
4739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740fi
4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742fi
4743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_c_werror_flag=$ac_save_c_werror_flag
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4747$as_echo "$ac_cv_prog_cc_g" >&6; }
4748if test "$ac_test_CFLAGS" = set; then
4749 CFLAGS=$ac_save_CFLAGS
4750elif test $ac_cv_prog_cc_g = yes; then
4751 if test "$GCC" = yes; then
4752 CFLAGS="-g -O2"
4753 else
4754 CFLAGS="-g"
4755 fi
4756else
4757 if test "$GCC" = yes; then
4758 CFLAGS="-O2"
4759 else
4760 CFLAGS=
4761 fi
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4764$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4765if test "${ac_cv_prog_cc_c89+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767else
4768 ac_cv_prog_cc_c89=no
4769ac_save_CC=$CC
4770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772#include <stdarg.h>
4773#include <stdio.h>
4774#include <sys/types.h>
4775#include <sys/stat.h>
4776/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4777struct buf { int x; };
4778FILE * (*rcsopen) (struct buf *, struct stat *, int);
4779static char *e (p, i)
4780 char **p;
4781 int i;
4782{
4783 return p[i];
4784}
4785static char *f (char * (*g) (char **, int), char **p, ...)
4786{
4787 char *s;
4788 va_list v;
4789 va_start (v,p);
4790 s = g (p, va_arg (v,int));
4791 va_end (v);
4792 return s;
4793}
4794
4795/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4796 function prototypes and stuff, but not '\xHH' hex character constants.
4797 These don't provoke an error unfortunately, instead are silently treated
4798 as 'x'. The following induces an error, until -std is added to get
4799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4800 array size at least. It's necessary to write '\x00'==0 to get something
4801 that's true only with -std. */
4802int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4803
4804/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4805 inside strings and character constants. */
4806#define FOO(x) 'x'
4807int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4808
4809int test (int i, double x);
4810struct s1 {int (*f) (int a);};
4811struct s2 {int (*f) (double a);};
4812int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4813int argc;
4814char **argv;
4815int
4816main ()
4817{
4818return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4819 ;
4820 return 0;
4821}
4822_ACEOF
4823for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4825do
4826 CC="$ac_save_CC $ac_arg"
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 ac_cv_prog_cc_c89=$ac_arg
4829fi
4830rm -f core conftest.err conftest.$ac_objext
4831 test "x$ac_cv_prog_cc_c89" != "xno" && break
4832done
4833rm -f conftest.$ac_ext
4834CC=$ac_save_CC
4835
4836fi
4837# AC_CACHE_VAL
4838case "x$ac_cv_prog_cc_c89" in
4839 x)
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4841$as_echo "none needed" >&6; } ;;
4842 xno)
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4844$as_echo "unsupported" >&6; } ;;
4845 *)
4846 CC="$CC $ac_cv_prog_cc_c89"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4848$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4849esac
4850if test "x$ac_cv_prog_cc_c89" != xno; then :
4851
4852fi
4853
4854ac_ext=c
4855ac_cpp='$CPP $CPPFLAGS'
4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860
4861am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4862
4863
4864ac_aux_dir=
4865for ac_dir in ../.. "$srcdir"/../..; do
4866 for ac_t in install-sh install.sh shtool; do
4867 if test -f "$ac_dir/$ac_t"; then
4868 ac_aux_dir=$ac_dir
4869 ac_install_sh="$ac_aux_dir/$ac_t -c"
4870 break 2
4871 fi
4872 done
4873done
4874if test -z "$ac_aux_dir"; then
4875 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4876fi
4877
4878# These three variables are undocumented and unsupported,
4879# and are intended to be withdrawn in a future Autoconf release.
4880# They can cause serious problems if a builder's source tree is in a directory
4881# whose full name contains unusual characters.
4882ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4883ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4884ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4885
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4888$as_echo_n "checking target system type... " >&6; }
4889if test "${ac_cv_target+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891else
4892 if test "x$target_alias" = x; then
4893 ac_cv_target=$ac_cv_host
4894else
4895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4896 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4897fi
4898
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4901$as_echo "$ac_cv_target" >&6; }
4902case $ac_cv_target in
4903*-*-*) ;;
4904*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4905esac
4906target=$ac_cv_target
4907ac_save_IFS=$IFS; IFS='-'
4908set x $ac_cv_target
4909shift
4910target_cpu=$1
4911target_vendor=$2
4912shift; shift
4913# Remember, the first character of IFS is used to create $*,
4914# except with old shells:
4915target_os=$*
4916IFS=$ac_save_IFS
4917case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4918
4919
4920# The aliases save the names the user supplied, while $host etc.
4921# will get canonicalized.
4922test -n "$target_alias" &&
4923 test "$program_prefix$program_suffix$program_transform_name" = \
4924 NONENONEs,x,x, &&
4925 program_prefix=${target_alias}-
4926
4927
4928
4929
4930
4931
4932
4933 LIBC_FATAL_STDERR_=1
4934 export LIBC_FATAL_STDERR_
4935
8690e634
JK
4936# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4937# for constant arguments. Useless!
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4939$as_echo_n "checking for working alloca.h... " >&6; }
4940if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
4941 $as_echo_n "(cached) " >&6
4942else
8690e634 4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 4944/* end confdefs.h. */
8690e634 4945#include <alloca.h>
c971b7fa
PA
4946int
4947main ()
4948{
8690e634
JK
4949char *p = (char *) alloca (2 * sizeof (int));
4950 if (p) return 0;
c971b7fa
PA
4951 ;
4952 return 0;
4953}
c971b7fa
PA
4954_ACEOF
4955if ac_fn_c_try_link "$LINENO"; then :
8690e634 4956 ac_cv_working_alloca_h=yes
c971b7fa 4957else
8690e634 4958 ac_cv_working_alloca_h=no
c971b7fa
PA
4959fi
4960rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
c971b7fa 4962fi
8690e634
JK
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4964$as_echo "$ac_cv_working_alloca_h" >&6; }
4965if test $ac_cv_working_alloca_h = yes; then
c971b7fa 4966
8690e634 4967$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 4968
8690e634 4969fi
c971b7fa 4970
8690e634
JK
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4972$as_echo_n "checking for alloca... " >&6; }
4973if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 4974 $as_echo_n "(cached) " >&6
c971b7fa
PA
4975else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h. */
8690e634
JK
4978#ifdef __GNUC__
4979# define alloca __builtin_alloca
4980#else
4981# ifdef _MSC_VER
4982# include <malloc.h>
4983# define alloca _alloca
4984# else
4985# ifdef HAVE_ALLOCA_H
4986# include <alloca.h>
4987# else
4988# ifdef _AIX
4989 #pragma alloca
4990# else
4991# ifndef alloca /* predefined by HP cc +Olibcalls */
4992char *alloca ();
4993# endif
4994# endif
4995# endif
4996# endif
4997#endif
4998
c971b7fa
PA
4999int
5000main ()
5001{
8690e634
JK
5002char *p = (char *) alloca (1);
5003 if (p) return 0;
c971b7fa
PA
5004 ;
5005 return 0;
5006}
5007_ACEOF
8690e634
JK
5008if ac_fn_c_try_link "$LINENO"; then :
5009 ac_cv_func_alloca_works=yes
c971b7fa 5010else
8690e634 5011 ac_cv_func_alloca_works=no
c971b7fa 5012fi
8690e634
JK
5013rm -f core conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5015fi
8690e634
JK
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5017$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5018
8690e634 5019if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5020
8690e634 5021$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5022
8690e634
JK
5023else
5024 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5025# that cause trouble. Some versions do not even contain alloca or
5026# contain a buggy version. If you still want to use their alloca,
5027# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5028
5029
5030
5031
5032
8690e634 5033ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5034
8690e634 5035$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5036
c971b7fa 5037
8690e634
JK
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5039$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5040if test "${ac_cv_os_cray+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045#if defined CRAY && ! defined CRAY2
5046webecray
5047#else
5048wenotbecray
5049#endif
c971b7fa 5050
8690e634
JK
5051_ACEOF
5052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 $EGREP "webecray" >/dev/null 2>&1; then :
5054 ac_cv_os_cray=yes
5055else
5056 ac_cv_os_cray=no
5057fi
5058rm -f conftest*
c971b7fa 5059
8690e634
JK
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5062$as_echo "$ac_cv_os_cray" >&6; }
5063if test $ac_cv_os_cray = yes; then
5064 for ac_func in _getb67 GETB67 getb67; do
5065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5067eval as_val=\$$as_ac_var
5068 if test "x$as_val" = x""yes; then :
c971b7fa 5069
8690e634
JK
5070cat >>confdefs.h <<_ACEOF
5071#define CRAY_STACKSEG_END $ac_func
5072_ACEOF
c971b7fa 5073
8690e634
JK
5074 break
5075fi
c971b7fa 5076
8690e634
JK
5077 done
5078fi
c971b7fa 5079
8690e634
JK
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5081$as_echo_n "checking stack direction for C alloca... " >&6; }
5082if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5083 $as_echo_n "(cached) " >&6
5084else
8690e634
JK
5085 if test "$cross_compiling" = yes; then :
5086 ac_cv_c_stack_direction=0
c971b7fa 5087else
8690e634 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5089/* end confdefs.h. */
8690e634
JK
5090$ac_includes_default
5091int
5092find_stack_direction (int *addr, int depth)
5093{
5094 int dir, dummy = 0;
5095 if (! addr)
5096 addr = &dummy;
5097 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5098 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5099 return dir + dummy;
5100}
5101
5102int
5103main (int argc, char **argv)
5104{
5105 return find_stack_direction (0, argc + !argv + 20) < 0;
5106}
c971b7fa 5107_ACEOF
8690e634
JK
5108if ac_fn_c_try_run "$LINENO"; then :
5109 ac_cv_c_stack_direction=1
c971b7fa 5110else
8690e634
JK
5111 ac_cv_c_stack_direction=-1
5112fi
5113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5114 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5115fi
c971b7fa
PA
5116
5117fi
8690e634
JK
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5119$as_echo "$ac_cv_c_stack_direction" >&6; }
5120cat >>confdefs.h <<_ACEOF
5121#define STACK_DIRECTION $ac_cv_c_stack_direction
5122_ACEOF
5123
c971b7fa
PA
5124
5125fi
c971b7fa
PA
5126
5127
5128
8690e634
JK
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5130$as_echo_n "checking for mbstate_t... " >&6; }
5131if test "${ac_cv_type_mbstate_t+set}" = set; then :
c971b7fa
PA
5132 $as_echo_n "(cached) " >&6
5133else
8690e634 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5135/* end confdefs.h. */
8690e634
JK
5136$ac_includes_default
5137/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5138 <wchar.h>.
5139 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5140 included before <wchar.h>. */
5141#include <stddef.h>
5142#include <stdio.h>
5143#include <time.h>
5144#include <wchar.h>
5145int
5146main ()
5147{
5148mbstate_t x; return sizeof x;
5149 ;
5150 return 0;
5151}
c971b7fa 5152_ACEOF
8690e634
JK
5153if ac_fn_c_try_compile "$LINENO"; then :
5154 ac_cv_type_mbstate_t=yes
c971b7fa 5155else
8690e634 5156 ac_cv_type_mbstate_t=no
c971b7fa 5157fi
8690e634 5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 5159fi
8690e634
JK
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5161$as_echo "$ac_cv_type_mbstate_t" >&6; }
5162 if test $ac_cv_type_mbstate_t = yes; then
c971b7fa 5163
8690e634 5164$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
c971b7fa 5165
8690e634 5166 else
c971b7fa 5167
8690e634 5168$as_echo "#define mbstate_t int" >>confdefs.h
c971b7fa 5169
8690e634 5170 fi
c971b7fa
PA
5171
5172
5173
5174
c971b7fa 5175
8690e634
JK
5176 for ac_func in $gl_func_list
5177do :
5178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5180eval as_val=\$$as_ac_var
5181 if test "x$as_val" = x""yes; then :
5182 cat >>confdefs.h <<_ACEOF
5183#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
c971b7fa 5184_ACEOF
c971b7fa
PA
5185
5186fi
8690e634 5187done
c971b7fa
PA
5188
5189
5190
5191
5192
c971b7fa
PA
5193
5194
c971b7fa
PA
5195
5196
5197
c971b7fa
PA
5198
5199
5200
5201
5202
c971b7fa
PA
5203
5204
c971b7fa
PA
5205
5206
c971b7fa
PA
5207
5208
5209
5210
5211
5212
5213
5214
c971b7fa
PA
5215
5216
5217
5218
5219
5220
5221
5222
c971b7fa 5223
c971b7fa
PA
5224
5225
c971b7fa 5226
c971b7fa 5227
8690e634
JK
5228
5229
5230
5231
5232 for ac_header in $gl_header_list
5233do :
5234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5235ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5236eval as_val=\$$as_ac_Header
5237 if test "x$as_val" = x""yes; then :
5238 cat >>confdefs.h <<_ACEOF
5239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240_ACEOF
5241
5242fi
5243
5244done
5245
5246
5247
5248
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5252$as_echo_n "checking for unsigned long long int... " >&6; }
5253if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255else
5256 ac_cv_type_unsigned_long_long_int=yes
5257 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h. */
5260
5261 /* For now, do not test the preprocessor; as of 2007 there are too many
5262 implementations with broken preprocessors. Perhaps this can
5263 be revisited in 2012. In the meantime, code should not expect
5264 #if to work with literals wider than 32 bits. */
5265 /* Test literals. */
5266 long long int ll = 9223372036854775807ll;
5267 long long int nll = -9223372036854775807LL;
5268 unsigned long long int ull = 18446744073709551615ULL;
5269 /* Test constant expressions. */
5270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5271 ? 1 : -1)];
5272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5273 ? 1 : -1)];
5274 int i = 63;
5275int
5276main ()
5277{
5278/* Test availability of runtime routines for shift and division. */
5279 long long int llmax = 9223372036854775807ll;
5280 unsigned long long int ullmax = 18446744073709551615ull;
5281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5282 | (llmax / ll) | (llmax % ll)
5283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5284 | (ullmax / ull) | (ullmax % ull));
5285 ;
5286 return 0;
5287}
5288
5289_ACEOF
5290if ac_fn_c_try_link "$LINENO"; then :
5291
5292else
5293 ac_cv_type_unsigned_long_long_int=no
5294fi
5295rm -f core conftest.err conftest.$ac_objext \
5296 conftest$ac_exeext conftest.$ac_ext
5297 fi
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5300$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5301 if test $ac_cv_type_unsigned_long_long_int = yes; then
5302
5303$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5304
5305 fi
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5310$as_echo_n "checking for long long int... " >&6; }
5311if test "${ac_cv_type_long_long_int+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313else
5314 ac_cv_type_long_long_int=yes
5315 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5316 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5317 if test $ac_cv_type_long_long_int = yes; then
5318 if test "$cross_compiling" = yes; then :
5319 :
5320else
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h. */
5323#include <limits.h>
5324 #ifndef LLONG_MAX
5325 # define HALF \
5326 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5327 # define LLONG_MAX (HALF - 1 + HALF)
5328 #endif
5329int
5330main ()
5331{
5332long long int n = 1;
5333 int i;
5334 for (i = 0; ; i++)
5335 {
5336 long long int m = n << i;
5337 if (m >> i != n)
5338 return 1;
5339 if (LLONG_MAX / 2 < m)
5340 break;
5341 }
5342 return 0;
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347if ac_fn_c_try_run "$LINENO"; then :
5348
5349else
5350 ac_cv_type_long_long_int=no
5351fi
5352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5353 conftest.$ac_objext conftest.beam conftest.$ac_ext
5354fi
5355
5356 fi
5357 fi
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5360$as_echo "$ac_cv_type_long_long_int" >&6; }
5361 if test $ac_cv_type_long_long_int = yes; then
5362
5363$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5364
5365 fi
5366
5367
5368
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5375$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5376if test "${gl_cv_have_include_next+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378else
5379 rm -rf conftestd1a conftestd1b conftestd2
5380 mkdir conftestd1a conftestd1b conftestd2
5381 cat <<EOF > conftestd1a/conftest.h
5382#define DEFINED_IN_CONFTESTD1
5383#include_next <conftest.h>
5384#ifdef DEFINED_IN_CONFTESTD2
5385int foo;
5386#else
5387#error "include_next doesn't work"
5388#endif
5389EOF
5390 cat <<EOF > conftestd1b/conftest.h
5391#define DEFINED_IN_CONFTESTD1
5392#include <stdio.h>
5393#include_next <conftest.h>
5394#ifdef DEFINED_IN_CONFTESTD2
5395int foo;
5396#else
5397#error "include_next doesn't work"
5398#endif
5399EOF
5400 cat <<EOF > conftestd2/conftest.h
5401#ifndef DEFINED_IN_CONFTESTD1
5402#error "include_next test doesn't work"
5403#endif
5404#define DEFINED_IN_CONFTESTD2
5405EOF
5406 gl_save_CPPFLAGS="$CPPFLAGS"
5407 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h. */
5410#include <conftest.h>
5411_ACEOF
5412if ac_fn_c_try_compile "$LINENO"; then :
5413 gl_cv_have_include_next=yes
5414else
5415 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h. */
5418#include <conftest.h>
5419_ACEOF
5420if ac_fn_c_try_compile "$LINENO"; then :
5421 gl_cv_have_include_next=buggy
5422else
5423 gl_cv_have_include_next=no
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 CPPFLAGS="$gl_save_CPPFLAGS"
5430 rm -rf conftestd1a conftestd1b conftestd2
5431
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5434$as_echo "$gl_cv_have_include_next" >&6; }
5435 PRAGMA_SYSTEM_HEADER=
5436 if test $gl_cv_have_include_next = yes; then
5437 INCLUDE_NEXT=include_next
5438 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5439 if test -n "$GCC"; then
5440 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5441 fi
5442 else
5443 if test $gl_cv_have_include_next = buggy; then
5444 INCLUDE_NEXT=include
5445 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5446 else
5447 INCLUDE_NEXT=include
5448 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5449 fi
5450 fi
5451
5452
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5455$as_echo_n "checking whether system header files limit the line length... " >&6; }
5456if test "${gl_cv_pragma_columns+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h. */
5461
5462#ifdef __TANDEM
5463choke me
5464#endif
5465
5466_ACEOF
5467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5468 $EGREP "choke me" >/dev/null 2>&1; then :
5469 gl_cv_pragma_columns=yes
5470else
5471 gl_cv_pragma_columns=no
5472fi
5473rm -f conftest*
5474
5475
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5478$as_echo "$gl_cv_pragma_columns" >&6; }
5479 if test $gl_cv_pragma_columns = yes; then
5480 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5481 else
5482 PRAGMA_COLUMNS=
5483 fi
5484
5485
5486
5487
5488
5489
5490
5491
5492 gl_cv_c_multiarch=no
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#ifndef __APPLE_CC__
5496 not a universal capable compiler
5497 #endif
5498 typedef int dummy;
5499
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502
5503 arch=
5504 prev=
5505 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5506 if test -n "$prev"; then
5507 case $word in
5508 i?86 | x86_64 | ppc | ppc64)
5509 if test -z "$arch" || test "$arch" = "$word"; then
5510 arch="$word"
5511 else
5512 gl_cv_c_multiarch=yes
5513 fi
5514 ;;
5515 esac
5516 prev=
5517 else
5518 if test "x$word" = "x-arch"; then
5519 prev=arch
5520 fi
5521 fi
5522 done
5523
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 if test $gl_cv_c_multiarch = yes; then
5527 APPLE_UNIVERSAL_BUILD=1
5528 else
5529 APPLE_UNIVERSAL_BUILD=0
5530 fi
5531
5532
5533
5534
5535
5536 if test $ac_cv_type_long_long_int = yes; then
5537 HAVE_LONG_LONG_INT=1
5538 else
5539 HAVE_LONG_LONG_INT=0
5540 fi
5541
5542
5543 if test $ac_cv_type_unsigned_long_long_int = yes; then
5544 HAVE_UNSIGNED_LONG_LONG_INT=1
5545 else
5546 HAVE_UNSIGNED_LONG_LONG_INT=0
5547 fi
5548
5549
5550
5551 :
5552
5553
5554
5555
5556
5557 if test $ac_cv_header_wchar_h = yes; then
5558 HAVE_WCHAR_H=1
5559 else
5560 HAVE_WCHAR_H=0
5561 fi
5562
5563
5564 if test $ac_cv_header_inttypes_h = yes; then
5565 HAVE_INTTYPES_H=1
5566 else
5567 HAVE_INTTYPES_H=0
5568 fi
5569
5570
5571 if test $ac_cv_header_sys_types_h = yes; then
5572 HAVE_SYS_TYPES_H=1
5573 else
5574 HAVE_SYS_TYPES_H=0
5575 fi
5576
5577
5578
5579
5580
5581
5582
5583
5584 :
5585
5586
5587
5588
5589
5590
5591
5592
5593 if test $gl_cv_have_include_next = yes; then
5594 gl_cv_next_stdint_h='<'stdint.h'>'
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5597$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5598if test "${gl_cv_next_stdint_h+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601
5602 if test $ac_cv_header_stdint_h = yes; then
5603
5604
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h. */
5607#include <stdint.h>
5608
5609_ACEOF
5610 case "$host_os" in
5611 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5612 *) gl_absname_cpp="$ac_cpp" ;;
5613 esac
5614
5615 case "$host_os" in
5616 mingw*)
5617 gl_dirsep_regex='[/\\]'
5618 ;;
5619 *)
5620 gl_dirsep_regex='\/'
5621 ;;
5622 esac
5623 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5624
5625 gl_header_literal_regex=`echo 'stdint.h' \
5626 | sed -e "$gl_make_literal_regex_sed"`
5627 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5629 s|^/[^/]|//&|
5630 p
5631 q
5632 }'
5633 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5634 sed -n "$gl_absolute_header_sed"`'"'
5635 else
5636 gl_cv_next_stdint_h='<'stdint.h'>'
5637 fi
5638
5639
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5642$as_echo "$gl_cv_next_stdint_h" >&6; }
5643 fi
5644 NEXT_STDINT_H=$gl_cv_next_stdint_h
5645
5646 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5648 gl_next_as_first_directive='<'stdint.h'>'
5649 else
5650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5651 gl_next_as_first_directive=$gl_cv_next_stdint_h
5652 fi
5653 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5654
5655
5656
5657
5658 if test $ac_cv_header_stdint_h = yes; then
5659 HAVE_STDINT_H=1
5660 else
5661 HAVE_STDINT_H=0
5662 fi
5663
5664
5665 if test $ac_cv_header_stdint_h = yes; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5667$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5668if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670else
5671 gl_cv_header_working_stdint_h=no
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673/* end confdefs.h. */
5674
5675
5676#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5677#include <stdint.h>
5678/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5679#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5680#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5681#endif
5682
5683
5684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5685 included before <wchar.h>. */
5686 #include <stddef.h>
5687 #include <signal.h>
5688 #if HAVE_WCHAR_H
5689 # include <stdio.h>
5690 # include <time.h>
5691 # include <wchar.h>
5692 #endif
5693
5694
5695#ifdef INT8_MAX
5696int8_t a1 = INT8_MAX;
5697int8_t a1min = INT8_MIN;
5698#endif
5699#ifdef INT16_MAX
5700int16_t a2 = INT16_MAX;
5701int16_t a2min = INT16_MIN;
5702#endif
5703#ifdef INT32_MAX
5704int32_t a3 = INT32_MAX;
5705int32_t a3min = INT32_MIN;
5706#endif
5707#ifdef INT64_MAX
5708int64_t a4 = INT64_MAX;
5709int64_t a4min = INT64_MIN;
5710#endif
5711#ifdef UINT8_MAX
5712uint8_t b1 = UINT8_MAX;
5713#else
5714typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5715#endif
5716#ifdef UINT16_MAX
5717uint16_t b2 = UINT16_MAX;
5718#endif
5719#ifdef UINT32_MAX
5720uint32_t b3 = UINT32_MAX;
5721#endif
5722#ifdef UINT64_MAX
5723uint64_t b4 = UINT64_MAX;
5724#endif
5725int_least8_t c1 = INT8_C (0x7f);
5726int_least8_t c1max = INT_LEAST8_MAX;
5727int_least8_t c1min = INT_LEAST8_MIN;
5728int_least16_t c2 = INT16_C (0x7fff);
5729int_least16_t c2max = INT_LEAST16_MAX;
5730int_least16_t c2min = INT_LEAST16_MIN;
5731int_least32_t c3 = INT32_C (0x7fffffff);
5732int_least32_t c3max = INT_LEAST32_MAX;
5733int_least32_t c3min = INT_LEAST32_MIN;
5734int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5735int_least64_t c4max = INT_LEAST64_MAX;
5736int_least64_t c4min = INT_LEAST64_MIN;
5737uint_least8_t d1 = UINT8_C (0xff);
5738uint_least8_t d1max = UINT_LEAST8_MAX;
5739uint_least16_t d2 = UINT16_C (0xffff);
5740uint_least16_t d2max = UINT_LEAST16_MAX;
5741uint_least32_t d3 = UINT32_C (0xffffffff);
5742uint_least32_t d3max = UINT_LEAST32_MAX;
5743uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5744uint_least64_t d4max = UINT_LEAST64_MAX;
5745int_fast8_t e1 = INT_FAST8_MAX;
5746int_fast8_t e1min = INT_FAST8_MIN;
5747int_fast16_t e2 = INT_FAST16_MAX;
5748int_fast16_t e2min = INT_FAST16_MIN;
5749int_fast32_t e3 = INT_FAST32_MAX;
5750int_fast32_t e3min = INT_FAST32_MIN;
5751int_fast64_t e4 = INT_FAST64_MAX;
5752int_fast64_t e4min = INT_FAST64_MIN;
5753uint_fast8_t f1 = UINT_FAST8_MAX;
5754uint_fast16_t f2 = UINT_FAST16_MAX;
5755uint_fast32_t f3 = UINT_FAST32_MAX;
5756uint_fast64_t f4 = UINT_FAST64_MAX;
5757#ifdef INTPTR_MAX
5758intptr_t g = INTPTR_MAX;
5759intptr_t gmin = INTPTR_MIN;
5760#endif
5761#ifdef UINTPTR_MAX
5762uintptr_t h = UINTPTR_MAX;
5763#endif
5764intmax_t i = INTMAX_MAX;
5765uintmax_t j = UINTMAX_MAX;
5766
5767#include <limits.h> /* for CHAR_BIT */
5768#define TYPE_MINIMUM(t) \
5769 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5770#define TYPE_MAXIMUM(t) \
5771 ((t) ((t) 0 < (t) -1 \
5772 ? (t) -1 \
5773 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5774struct s {
5775 int check_PTRDIFF:
5776 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5777 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5778 ? 1 : -1;
5779 /* Detect bug in FreeBSD 6.0 / ia64. */
5780 int check_SIG_ATOMIC:
5781 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5782 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5783 ? 1 : -1;
5784 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5785 int check_WCHAR:
5786 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5787 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5788 ? 1 : -1;
5789 /* Detect bug in mingw. */
5790 int check_WINT:
5791 WINT_MIN == TYPE_MINIMUM (wint_t)
5792 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5793 ? 1 : -1;
5794
5795 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5796 int check_UINT8_C:
5797 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5798 int check_UINT16_C:
5799 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5800
5801 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5802#ifdef UINT8_MAX
5803 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5804#endif
5805#ifdef UINT16_MAX
5806 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5807#endif
5808#ifdef UINT32_MAX
5809 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5810#endif
5811#ifdef UINT64_MAX
5812 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5813#endif
5814 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5815 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5816 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5817 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5818 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5819 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5820 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5821 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5822 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5823 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5824 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5825};
5826
5827int
5828main ()
5829{
5830
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836 if test "$cross_compiling" = yes; then :
5837 gl_cv_header_working_stdint_h=yes
5838
5839else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
5842
5843
5844#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5845#include <stdint.h>
5846
5847
5848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5849 included before <wchar.h>. */
5850 #include <stddef.h>
5851 #include <signal.h>
5852 #if HAVE_WCHAR_H
5853 # include <stdio.h>
5854 # include <time.h>
5855 # include <wchar.h>
5856 #endif
5857
5858
5859#include <stdio.h>
5860#include <string.h>
5861#define MVAL(macro) MVAL1(macro)
5862#define MVAL1(expression) #expression
5863static const char *macro_values[] =
5864 {
5865#ifdef INT8_MAX
5866 MVAL (INT8_MAX),
5867#endif
5868#ifdef INT16_MAX
5869 MVAL (INT16_MAX),
5870#endif
5871#ifdef INT32_MAX
5872 MVAL (INT32_MAX),
5873#endif
5874#ifdef INT64_MAX
5875 MVAL (INT64_MAX),
5876#endif
5877#ifdef UINT8_MAX
5878 MVAL (UINT8_MAX),
5879#endif
5880#ifdef UINT16_MAX
5881 MVAL (UINT16_MAX),
5882#endif
5883#ifdef UINT32_MAX
5884 MVAL (UINT32_MAX),
5885#endif
5886#ifdef UINT64_MAX
5887 MVAL (UINT64_MAX),
5888#endif
5889 NULL
5890 };
5891
5892int
5893main ()
5894{
5895
5896 const char **mv;
5897 for (mv = macro_values; *mv != NULL; mv++)
5898 {
5899 const char *value = *mv;
5900 /* Test whether it looks like a cast expression. */
5901 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5902 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5903 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5904 || strncmp (value, "((int)"/*)*/, 6) == 0
5905 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5906 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5907 return mv - macro_values + 1;
5908 }
5909 return 0;
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
5915if ac_fn_c_try_run "$LINENO"; then :
5916 gl_cv_header_working_stdint_h=yes
5917fi
5918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5919 conftest.$ac_objext conftest.beam conftest.$ac_ext
5920fi
5921
5922
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5928$as_echo "$gl_cv_header_working_stdint_h" >&6; }
5929 fi
5930 if test "$gl_cv_header_working_stdint_h" = yes; then
5931 STDINT_H=
5932 else
5933 for ac_header in sys/inttypes.h sys/bitypes.h
5934do :
5935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5937eval as_val=\$$as_ac_Header
5938 if test "x$as_val" = x""yes; then :
5939 cat >>confdefs.h <<_ACEOF
5940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941_ACEOF
5942
5943fi
5944
5945done
5946
5947 if test $ac_cv_header_sys_inttypes_h = yes; then
5948 HAVE_SYS_INTTYPES_H=1
5949 else
5950 HAVE_SYS_INTTYPES_H=0
5951 fi
5952
5953 if test $ac_cv_header_sys_bitypes_h = yes; then
5954 HAVE_SYS_BITYPES_H=1
5955 else
5956 HAVE_SYS_BITYPES_H=0
5957 fi
5958
5959
5960
5961
5962 if test $APPLE_UNIVERSAL_BUILD = 0; then
5963
5964
5965 for gltype in ptrdiff_t size_t ; do
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5967$as_echo_n "checking for bit size of $gltype... " >&6; }
5968if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5969 $as_echo_n "(cached) " >&6
5970else
5971 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5973 included before <wchar.h>. */
5974 #include <stddef.h>
5975 #include <signal.h>
5976 #if HAVE_WCHAR_H
5977 # include <stdio.h>
5978 # include <time.h>
5979 # include <wchar.h>
5980 #endif
5981
5982#include <limits.h>"; then :
5983
5984else
5985 result=unknown
5986fi
5987
5988 eval gl_cv_bitsizeof_${gltype}=\$result
5989
5990fi
5991eval ac_res=\$gl_cv_bitsizeof_${gltype}
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5993$as_echo "$ac_res" >&6; }
5994 eval result=\$gl_cv_bitsizeof_${gltype}
5995 if test $result = unknown; then
5996 result=0
5997 fi
5998 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5999 cat >>confdefs.h <<_ACEOF
6000#define BITSIZEOF_${GLTYPE} $result
6001_ACEOF
6002
6003 eval BITSIZEOF_${GLTYPE}=\$result
6004 done
6005
6006
6007 fi
6008
6009
6010 for gltype in sig_atomic_t wchar_t wint_t ; do
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6012$as_echo_n "checking for bit size of $gltype... " >&6; }
6013if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6014 $as_echo_n "(cached) " >&6
6015else
6016 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6018 included before <wchar.h>. */
6019 #include <stddef.h>
6020 #include <signal.h>
6021 #if HAVE_WCHAR_H
6022 # include <stdio.h>
6023 # include <time.h>
6024 # include <wchar.h>
6025 #endif
6026
6027#include <limits.h>"; then :
6028
6029else
6030 result=unknown
6031fi
6032
6033 eval gl_cv_bitsizeof_${gltype}=\$result
6034
6035fi
6036eval ac_res=\$gl_cv_bitsizeof_${gltype}
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6038$as_echo "$ac_res" >&6; }
6039 eval result=\$gl_cv_bitsizeof_${gltype}
6040 if test $result = unknown; then
6041 result=0
6042 fi
6043 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6044 cat >>confdefs.h <<_ACEOF
6045#define BITSIZEOF_${GLTYPE} $result
6046_ACEOF
6047
6048 eval BITSIZEOF_${GLTYPE}=\$result
6049 done
6050
6051
6052
6053
6054 for gltype in sig_atomic_t wchar_t wint_t ; do
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6056$as_echo_n "checking whether $gltype is signed... " >&6; }
6057if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6058 $as_echo_n "(cached) " >&6
6059else
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h. */
6062
6063 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6064 included before <wchar.h>. */
6065 #include <stddef.h>
6066 #include <signal.h>
6067 #if HAVE_WCHAR_H
6068 # include <stdio.h>
6069 # include <time.h>
6070 # include <wchar.h>
6071 #endif
6072
6073 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6074int
6075main ()
6076{
6077
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"; then :
6083 result=yes
6084else
6085 result=no
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 eval gl_cv_type_${gltype}_signed=\$result
6089
6090fi
6091eval ac_res=\$gl_cv_type_${gltype}_signed
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6093$as_echo "$ac_res" >&6; }
6094 eval result=\$gl_cv_type_${gltype}_signed
6095 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6096 if test "$result" = yes; then
6097 cat >>confdefs.h <<_ACEOF
6098#define HAVE_SIGNED_${GLTYPE} 1
6099_ACEOF
6100
6101 eval HAVE_SIGNED_${GLTYPE}=1
6102 else
6103 eval HAVE_SIGNED_${GLTYPE}=0
6104 fi
6105 done
6106
6107
6108 gl_cv_type_ptrdiff_t_signed=yes
6109 gl_cv_type_size_t_signed=no
6110 if test $APPLE_UNIVERSAL_BUILD = 0; then
6111
6112
6113 for gltype in ptrdiff_t size_t ; do
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6115$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6116if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 eval gl_cv_type_${gltype}_suffix=no
6120 eval result=\$gl_cv_type_${gltype}_signed
6121 if test "$result" = yes; then
6122 glsufu=
6123 else
6124 glsufu=u
6125 fi
6126 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6127 case $glsuf in
6128 '') gltype1='int';;
6129 l) gltype1='long int';;
6130 ll) gltype1='long long int';;
6131 i64) gltype1='__int64';;
6132 u) gltype1='unsigned int';;
6133 ul) gltype1='unsigned long int';;
6134 ull) gltype1='unsigned long long int';;
6135 ui64)gltype1='unsigned __int64';;
6136 esac
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h. */
6139
6140 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6141 included before <wchar.h>. */
6142 #include <stddef.h>
6143 #include <signal.h>
6144 #if HAVE_WCHAR_H
6145 # include <stdio.h>
6146 # include <time.h>
6147 # include <wchar.h>
6148 #endif
6149
6150 extern $gltype foo;
6151 extern $gltype1 foo;
6152int
6153main ()
6154{
6155
6156 ;
6157 return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_compile "$LINENO"; then :
6161 eval gl_cv_type_${gltype}_suffix=\$glsuf
6162fi
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 eval result=\$gl_cv_type_${gltype}_suffix
6165 test "$result" != no && break
6166 done
6167fi
6168eval ac_res=\$gl_cv_type_${gltype}_suffix
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6170$as_echo "$ac_res" >&6; }
6171 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6172 eval result=\$gl_cv_type_${gltype}_suffix
6173 test "$result" = no && result=
6174 eval ${GLTYPE}_SUFFIX=\$result
6175 cat >>confdefs.h <<_ACEOF
6176#define ${GLTYPE}_SUFFIX $result
6177_ACEOF
6178
6179 done
6180
6181
6182 fi
6183
6184
6185 for gltype in sig_atomic_t wchar_t wint_t ; do
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6187$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6188if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 eval gl_cv_type_${gltype}_suffix=no
6192 eval result=\$gl_cv_type_${gltype}_signed
6193 if test "$result" = yes; then
6194 glsufu=
6195 else
6196 glsufu=u
6197 fi
6198 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6199 case $glsuf in
6200 '') gltype1='int';;
6201 l) gltype1='long int';;
6202 ll) gltype1='long long int';;
6203 i64) gltype1='__int64';;
6204 u) gltype1='unsigned int';;
6205 ul) gltype1='unsigned long int';;
6206 ull) gltype1='unsigned long long int';;
6207 ui64)gltype1='unsigned __int64';;
6208 esac
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h. */
6211
6212 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6213 included before <wchar.h>. */
6214 #include <stddef.h>
6215 #include <signal.h>
6216 #if HAVE_WCHAR_H
6217 # include <stdio.h>
6218 # include <time.h>
6219 # include <wchar.h>
6220 #endif
6221
6222 extern $gltype foo;
6223 extern $gltype1 foo;
6224int
6225main ()
6226{
6227
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"; then :
6233 eval gl_cv_type_${gltype}_suffix=\$glsuf
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 eval result=\$gl_cv_type_${gltype}_suffix
6237 test "$result" != no && break
6238 done
6239fi
6240eval ac_res=\$gl_cv_type_${gltype}_suffix
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6242$as_echo "$ac_res" >&6; }
6243 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6244 eval result=\$gl_cv_type_${gltype}_suffix
6245 test "$result" = no && result=
6246 eval ${GLTYPE}_SUFFIX=\$result
6247 cat >>confdefs.h <<_ACEOF
6248#define ${GLTYPE}_SUFFIX $result
6249_ACEOF
6250
6251 done
6252
6253
6254
6255 if test $BITSIZEOF_WINT_T -lt 32; then
6256 BITSIZEOF_WINT_T=32
6257 fi
6258
6259 STDINT_H=stdint.h
6260 fi
6261
6262 if test -n "$STDINT_H"; then
6263 GL_GENERATE_STDINT_H_TRUE=
6264 GL_GENERATE_STDINT_H_FALSE='#'
6265else
6266 GL_GENERATE_STDINT_H_TRUE='#'
6267 GL_GENERATE_STDINT_H_FALSE=
6268fi
6269
6270
6271
6272
6273
6274
6275
6276
6277 GNULIB_IMAXABS=0;
6278 GNULIB_IMAXDIV=0;
6279 GNULIB_STRTOIMAX=0;
6280 GNULIB_STRTOUMAX=0;
6281 HAVE_DECL_IMAXABS=1;
6282 HAVE_DECL_IMAXDIV=1;
6283 HAVE_DECL_STRTOIMAX=1;
6284 HAVE_DECL_STRTOUMAX=1;
6285 REPLACE_STRTOIMAX=0;
6286 INT32_MAX_LT_INTMAX_MAX=1;
6287 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6288 PRI_MACROS_BROKEN=0;
6289 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6290 UINT32_MAX_LT_UINTMAX_MAX=1;
6291 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6292
6293
6294
6295
6296 :
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310 :
6311
6312
6313
6314
6315
6316
6317
6318
6319 if test $gl_cv_have_include_next = yes; then
6320 gl_cv_next_inttypes_h='<'inttypes.h'>'
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6323$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6324if test "${gl_cv_next_inttypes_h+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6326else
6327
6328 if test $ac_cv_header_inttypes_h = yes; then
6329
6330
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h. */
6333#include <inttypes.h>
6334
6335_ACEOF
6336 case "$host_os" in
6337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6338 *) gl_absname_cpp="$ac_cpp" ;;
6339 esac
6340
6341 case "$host_os" in
6342 mingw*)
6343 gl_dirsep_regex='[/\\]'
6344 ;;
6345 *)
6346 gl_dirsep_regex='\/'
6347 ;;
6348 esac
6349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6350
6351 gl_header_literal_regex=`echo 'inttypes.h' \
6352 | sed -e "$gl_make_literal_regex_sed"`
6353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6355 s|^/[^/]|//&|
6356 p
6357 q
6358 }'
6359 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6360 sed -n "$gl_absolute_header_sed"`'"'
6361 else
6362 gl_cv_next_inttypes_h='<'inttypes.h'>'
6363 fi
6364
6365
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6368$as_echo "$gl_cv_next_inttypes_h" >&6; }
6369 fi
6370 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6371
6372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6374 gl_next_as_first_directive='<'inttypes.h'>'
6375 else
6376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6377 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6378 fi
6379 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6380
6381
6382
6383
6384
6385
6386
6387
6388 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6389 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6391$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6392if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6393 $as_echo_n "(cached) " >&6
6394else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h. */
6397#include <inttypes.h>
6398
6399int
6400main ()
6401{
6402#undef $gl_func
6403 (void) $gl_func;
6404 ;
6405 return 0;
6406}
6407_ACEOF
6408if ac_fn_c_try_compile "$LINENO"; then :
6409 eval "$as_gl_Symbol=yes"
6410else
6411 eval "$as_gl_Symbol=no"
6412fi
6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414fi
6415eval ac_res=\$$as_gl_Symbol
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417$as_echo "$ac_res" >&6; }
6418 eval as_val=\$$as_gl_Symbol
6419 if test "x$as_val" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6422_ACEOF
6423
6424 eval ac_cv_have_decl_$gl_func=yes
6425fi
6426 done
6427
6428
6429
6430 for ac_header in inttypes.h
6431do :
6432 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6433if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6434 cat >>confdefs.h <<_ACEOF
6435#define HAVE_INTTYPES_H 1
6436_ACEOF
6437
6438fi
6439
6440done
6441
6442 if test $ac_cv_header_inttypes_h = yes; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6444$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6445if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447else
6448
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450/* end confdefs.h. */
6451
6452#include <inttypes.h>
6453#ifdef PRId32
6454char *p = PRId32;
6455#endif
6456
6457int
6458main ()
6459{
6460
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_compile "$LINENO"; then :
6466 gt_cv_inttypes_pri_broken=no
6467else
6468 gt_cv_inttypes_pri_broken=yes
6469fi
6470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471
6472fi
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6474$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6475 fi
6476 if test "$gt_cv_inttypes_pri_broken" = yes; then
6477
6478cat >>confdefs.h <<_ACEOF
6479#define PRI_MACROS_BROKEN 1
6480_ACEOF
6481
6482 PRI_MACROS_BROKEN=1
6483 else
6484 PRI_MACROS_BROKEN=0
6485 fi
6486
6487
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6490$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6491if test "${am_cv_langinfo_codeset+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h. */
6496#include <langinfo.h>
6497int
6498main ()
6499{
6500char* cs = nl_langinfo(CODESET); return !cs;
6501 ;
6502 return 0;
6503}
6504_ACEOF
6505if ac_fn_c_try_link "$LINENO"; then :
6506 am_cv_langinfo_codeset=yes
6507else
6508 am_cv_langinfo_codeset=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6512
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6515$as_echo "$am_cv_langinfo_codeset" >&6; }
6516 if test $am_cv_langinfo_codeset = yes; then
6517
6518$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6519
6520 fi
6521
6522
6523
6524
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6550$as_echo_n "checking for working fcntl.h... " >&6; }
6551if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6553else
6554 if test "$cross_compiling" = yes; then :
6555 gl_cv_header_working_fcntl_h=cross-compiling
6556else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h. */
6559#include <sys/types.h>
6560 #include <sys/stat.h>
6561 #if HAVE_UNISTD_H
6562 # include <unistd.h>
6563 #else /* on Windows with MSVC */
6564 # include <io.h>
6565 # include <stdlib.h>
6566 # defined sleep(n) _sleep ((n) * 1000)
6567 #endif
6568 #include <fcntl.h>
6569 #ifndef O_NOATIME
6570 #define O_NOATIME 0
6571 #endif
6572 #ifndef O_NOFOLLOW
6573 #define O_NOFOLLOW 0
6574 #endif
6575 static int const constants[] =
6576 {
6577 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6578 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6579 };
6580
6581int
6582main ()
6583{
6584
6585 int result = !constants;
6586 #if HAVE_SYMLINK
6587 {
6588 static char const sym[] = "conftest.sym";
6589 if (symlink (".", sym) != 0)
6590 result |= 2;
6591 else
6592 {
6593 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6594 if (fd >= 0)
6595 {
6596 close (fd);
6597 result |= 4;
6598 }
6599 }
6600 unlink (sym);
6601 }
6602 #endif
6603 {
6604 static char const file[] = "confdefs.h";
6605 int fd = open (file, O_RDONLY | O_NOATIME);
6606 if (fd < 0)
6607 result |= 8;
6608 else
6609 {
6610 struct stat st0;
6611 if (fstat (fd, &st0) != 0)
6612 result |= 16;
6613 else
6614 {
6615 char c;
6616 sleep (1);
6617 if (read (fd, &c, 1) != 1)
6618 result |= 24;
6619 else
6620 {
6621 if (close (fd) != 0)
6622 result |= 32;
6623 else
6624 {
6625 struct stat st1;
6626 if (stat (file, &st1) != 0)
6627 result |= 40;
6628 else
6629 if (st0.st_atime != st1.st_atime)
6630 result |= 64;
6631 }
6632 }
6633 }
6634 }
6635 }
6636 return result;
6637 ;
6638 return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_run "$LINENO"; then :
6642 gl_cv_header_working_fcntl_h=yes
6643else
6644 case $? in #(
6645 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6646 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6647 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6648 *) gl_cv_header_working_fcntl_h='no';;
6649 esac
6650fi
6651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6653fi
6654
6655fi
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6657$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6658
6659 case $gl_cv_header_working_fcntl_h in #(
6660 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6661 *) ac_val=1;;
6662 esac
6663
6664cat >>confdefs.h <<_ACEOF
6665#define HAVE_WORKING_O_NOATIME $ac_val
6666_ACEOF
6667
6668
6669 case $gl_cv_header_working_fcntl_h in #(
6670 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6671 *) ac_val=1;;
6672 esac
6673
6674cat >>confdefs.h <<_ACEOF
6675#define HAVE_WORKING_O_NOFOLLOW $ac_val
6676_ACEOF
6677
6678
6679
6680 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6681if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
6682 ac_have_decl=1
6683else
6684 ac_have_decl=0
6685fi
6686
6687cat >>confdefs.h <<_ACEOF
6688#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6689_ACEOF
6690
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6694$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6695if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h. */
6700
6701#include <features.h>
6702#ifdef __GNU_LIBRARY__
6703 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6704 Lucky GNU user
6705 #endif
6706#endif
6707#ifdef __UCLIBC__
6708 Lucky user
6709#endif
6710
6711_ACEOF
6712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 $EGREP "Lucky" >/dev/null 2>&1; then :
6714 ac_cv_gnu_library_2_1=yes
6715else
6716 ac_cv_gnu_library_2_1=no
6717fi
6718rm -f conftest*
6719
6720
6721
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6724$as_echo "$ac_cv_gnu_library_2_1" >&6; }
6725
6726 GLIBC21="$ac_cv_gnu_library_2_1"
6727
6728
6729
6730 GNULIB_BTOWC=0;
6731 GNULIB_WCTOB=0;
6732 GNULIB_MBSINIT=0;
6733 GNULIB_MBRTOWC=0;
6734 GNULIB_MBRLEN=0;
6735 GNULIB_MBSRTOWCS=0;
6736 GNULIB_MBSNRTOWCS=0;
6737 GNULIB_WCRTOMB=0;
6738 GNULIB_WCSRTOMBS=0;
6739 GNULIB_WCSNRTOMBS=0;
6740 GNULIB_WCWIDTH=0;
6741 GNULIB_WMEMCHR=0;
6742 GNULIB_WMEMCMP=0;
6743 GNULIB_WMEMCPY=0;
6744 GNULIB_WMEMMOVE=0;
6745 GNULIB_WMEMSET=0;
6746 GNULIB_WCSLEN=0;
6747 GNULIB_WCSNLEN=0;
6748 GNULIB_WCSCPY=0;
6749 GNULIB_WCPCPY=0;
6750 GNULIB_WCSNCPY=0;
6751 GNULIB_WCPNCPY=0;
6752 GNULIB_WCSCAT=0;
6753 GNULIB_WCSNCAT=0;
6754 GNULIB_WCSCMP=0;
6755 GNULIB_WCSNCMP=0;
6756 GNULIB_WCSCASECMP=0;
6757 GNULIB_WCSNCASECMP=0;
6758 GNULIB_WCSCOLL=0;
6759 GNULIB_WCSXFRM=0;
6760 GNULIB_WCSDUP=0;
6761 GNULIB_WCSCHR=0;
6762 GNULIB_WCSRCHR=0;
6763 GNULIB_WCSCSPN=0;
6764 GNULIB_WCSSPN=0;
6765 GNULIB_WCSPBRK=0;
6766 GNULIB_WCSSTR=0;
6767 GNULIB_WCSTOK=0;
6768 GNULIB_WCSWIDTH=0;
6769 HAVE_BTOWC=1;
6770 HAVE_MBSINIT=1;
6771 HAVE_MBRTOWC=1;
6772 HAVE_MBRLEN=1;
6773 HAVE_MBSRTOWCS=1;
6774 HAVE_MBSNRTOWCS=1;
6775 HAVE_WCRTOMB=1;
6776 HAVE_WCSRTOMBS=1;
6777 HAVE_WCSNRTOMBS=1;
6778 HAVE_WMEMCHR=1;
6779 HAVE_WMEMCMP=1;
6780 HAVE_WMEMCPY=1;
6781 HAVE_WMEMMOVE=1;
6782 HAVE_WMEMSET=1;
6783 HAVE_WCSLEN=1;
6784 HAVE_WCSNLEN=1;
6785 HAVE_WCSCPY=1;
6786 HAVE_WCPCPY=1;
6787 HAVE_WCSNCPY=1;
6788 HAVE_WCPNCPY=1;
6789 HAVE_WCSCAT=1;
6790 HAVE_WCSNCAT=1;
6791 HAVE_WCSCMP=1;
6792 HAVE_WCSNCMP=1;
6793 HAVE_WCSCASECMP=1;
6794 HAVE_WCSNCASECMP=1;
6795 HAVE_WCSCOLL=1;
6796 HAVE_WCSXFRM=1;
6797 HAVE_WCSDUP=1;
6798 HAVE_WCSCHR=1;
6799 HAVE_WCSRCHR=1;
6800 HAVE_WCSCSPN=1;
6801 HAVE_WCSSPN=1;
6802 HAVE_WCSPBRK=1;
6803 HAVE_WCSSTR=1;
6804 HAVE_WCSTOK=1;
6805 HAVE_WCSWIDTH=1;
6806 HAVE_DECL_WCTOB=1;
6807 HAVE_DECL_WCWIDTH=1;
6808 REPLACE_MBSTATE_T=0;
6809 REPLACE_BTOWC=0;
6810 REPLACE_WCTOB=0;
6811 REPLACE_MBSINIT=0;
6812 REPLACE_MBRTOWC=0;
6813 REPLACE_MBRLEN=0;
6814 REPLACE_MBSRTOWCS=0;
6815 REPLACE_MBSNRTOWCS=0;
6816 REPLACE_WCRTOMB=0;
6817 REPLACE_WCSRTOMBS=0;
6818 REPLACE_WCSNRTOMBS=0;
6819 REPLACE_WCWIDTH=0;
6820 REPLACE_WCSWIDTH=0;
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6836$as_echo_n "checking for a traditional japanese locale... " >&6; }
6837if test "${gt_cv_locale_ja+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839else
6840
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842/* end confdefs.h. */
6843
6844#include <locale.h>
6845#include <time.h>
6846#if HAVE_LANGINFO_CODESET
6847# include <langinfo.h>
6848#endif
6849#include <stdlib.h>
6850#include <string.h>
6851struct tm t;
6852char buf[16];
6853int main ()
6854{
6855 const char *p;
6856 /* Check whether the given locale name is recognized by the system. */
6857#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6858 /* On native Windows, setlocale(category, "") looks at the system settings,
6859 not at the environment variables. Also, when an encoding suffix such
6860 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6861 category of the locale to "C". */
6862 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6863 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6864 return 1;
6865#else
6866 if (setlocale (LC_ALL, "") == NULL) return 1;
6867#endif
6868 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6869 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6870 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6871 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6872 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6873 some unit tests fail.
6874 On MirBSD 10, when an unsupported locale is specified, setlocale()
6875 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
6876#if HAVE_LANGINFO_CODESET
6877 {
6878 const char *cs = nl_langinfo (CODESET);
6879 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6880 || strcmp (cs, "UTF-8") == 0)
6881 return 1;
6882 }
6883#endif
6884#ifdef __CYGWIN__
6885 /* On Cygwin, avoid locale names without encoding suffix, because the
6886 locale_charset() function relies on the encoding suffix. Note that
6887 LC_ALL is set on the command line. */
6888 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6889#endif
6890 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
6891 on Cygwin 1.5.x. */
6892 if (MB_CUR_MAX == 1)
6893 return 1;
6894 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
6895 This excludes the UTF-8 encoding (except on MirBSD). */
6896 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6897 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
6898 for (p = buf; *p != '\0'; p++)
6899 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
6900 return 1;
6901 return 0;
6902}
6903
6904_ACEOF
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6906 (eval $ac_link) 2>&5
6907 ac_status=$?
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6910 case "$host_os" in
6911 # Handle native Windows specially, because there setlocale() interprets
6912 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
6913 # "fr" or "fra" as "French" or "French_France.1252",
6914 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
6915 # "ja" as "Japanese" or "Japanese_Japan.932",
6916 # and similar.
6917 mingw*)
6918 # Note that on native Windows, the Japanese locale is
6919 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
6920 # cannot use it here.
6921 gt_cv_locale_ja=none
6922 ;;
6923 *)
6924 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6925 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
6926 # configure script would override the LC_ALL setting. Likewise for
6927 # LC_CTYPE, which is also set at the beginning of the configure script.
6928 # Test for the AIX locale name.
6929 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6930 gt_cv_locale_ja=ja_JP
6931 else
6932 # Test for the locale name with explicit encoding suffix.
6933 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6934 gt_cv_locale_ja=ja_JP.EUC-JP
6935 else
6936 # Test for the HP-UX, OSF/1, NetBSD locale name.
6937 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6938 gt_cv_locale_ja=ja_JP.eucJP
6939 else
6940 # Test for the IRIX, FreeBSD locale name.
6941 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6942 gt_cv_locale_ja=ja_JP.EUC
6943 else
6944 # Test for the Solaris 7 locale name.
6945 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6946 gt_cv_locale_ja=ja
6947 else
6948 # Special test for NetBSD 1.6.
6949 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
6950 gt_cv_locale_ja=ja_JP.eucJP
6951 else
6952 # None found.
6953 gt_cv_locale_ja=none
6954 fi
6955 fi
6956 fi
6957 fi
6958 fi
6959 fi
6960 ;;
6961 esac
6962 fi
6963 rm -fr conftest*
6964
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
6967$as_echo "$gt_cv_locale_ja" >&6; }
6968 LOCALE_JA=$gt_cv_locale_ja
6969
6970
6971
6972
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
6975$as_echo_n "checking for a transitional chinese locale... " >&6; }
6976if test "${gt_cv_locale_zh_CN+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h. */
6982
6983#include <locale.h>
6984#include <stdlib.h>
6985#include <time.h>
6986#if HAVE_LANGINFO_CODESET
6987# include <langinfo.h>
6988#endif
6989#include <stdlib.h>
6990#include <string.h>
6991struct tm t;
6992char buf[16];
6993int main ()
6994{
6995 const char *p;
6996 /* Check whether the given locale name is recognized by the system. */
6997#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6998 /* On native Windows, setlocale(category, "") looks at the system settings,
6999 not at the environment variables. Also, when an encoding suffix such
7000 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7001 category of the locale to "C". */
7002 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7003 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7004 return 1;
7005#else
7006 if (setlocale (LC_ALL, "") == NULL) return 1;
7007#endif
7008 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7009 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7010 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7011 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7012 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7013 some unit tests fail.
7014 On MirBSD 10, when an unsupported locale is specified, setlocale()
7015 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7016#if HAVE_LANGINFO_CODESET
7017 {
7018 const char *cs = nl_langinfo (CODESET);
7019 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7020 || strcmp (cs, "UTF-8") == 0)
7021 return 1;
7022 }
7023#endif
7024#ifdef __CYGWIN__
7025 /* On Cygwin, avoid locale names without encoding suffix, because the
7026 locale_charset() function relies on the encoding suffix. Note that
7027 LC_ALL is set on the command line. */
7028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7029#endif
7030 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7031 This excludes the UTF-8 encoding (except on MirBSD). */
7032 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7033 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7034 for (p = buf; *p != '\0'; p++)
7035 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7036 return 1;
7037 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7038 single wide character. This excludes the GB2312 and GBK encodings. */
7039 if (mblen ("\203\062\332\066", 5) != 4)
7040 return 1;
7041 return 0;
7042}
7043
7044_ACEOF
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7046 (eval $ac_link) 2>&5
7047 ac_status=$?
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7050 case "$host_os" in
7051 # Handle native Windows specially, because there setlocale() interprets
7052 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7053 # "fr" or "fra" as "French" or "French_France.1252",
7054 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7055 # "ja" as "Japanese" or "Japanese_Japan.932",
7056 # and similar.
7057 mingw*)
7058 # Test for the hypothetical native Windows locale name.
7059 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7060 gt_cv_locale_zh_CN=Chinese_China.54936
7061 else
7062 # None found.
7063 gt_cv_locale_zh_CN=none
7064 fi
7065 ;;
7066 solaris2.8)
7067 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7068 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7069 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7070 gt_cv_locale_zh_CN=none
7071 ;;
7072 *)
7073 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7074 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7075 # configure script would override the LC_ALL setting. Likewise for
7076 # LC_CTYPE, which is also set at the beginning of the configure script.
7077 # Test for the locale name without encoding suffix.
7078 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7079 gt_cv_locale_zh_CN=zh_CN
7080 else
7081 # Test for the locale name with explicit encoding suffix.
7082 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7083 gt_cv_locale_zh_CN=zh_CN.GB18030
7084 else
7085 # None found.
7086 gt_cv_locale_zh_CN=none
7087 fi
7088 fi
7089 ;;
7090 esac
7091 else
7092 # If there was a link error, due to mblen(), the system is so old that
7093 # it certainly doesn't have a chinese locale.
7094 gt_cv_locale_zh_CN=none
7095 fi
7096 rm -fr conftest*
7097
7098fi
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7100$as_echo "$gt_cv_locale_zh_CN" >&6; }
7101 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7102
7103
7104
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7107$as_echo_n "checking for a french Unicode locale... " >&6; }
7108if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110else
7111
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h. */
7114
7115#include <locale.h>
7116#include <time.h>
7117#if HAVE_LANGINFO_CODESET
7118# include <langinfo.h>
7119#endif
7120#include <stdlib.h>
7121#include <string.h>
7122struct tm t;
7123char buf[16];
7124int main () {
7125 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7126 imitates locale dependent behaviour by looking at the environment
7127 variables, and all locales use the UTF-8 encoding. */
7128#if !(defined __BEOS__ || defined __HAIKU__)
7129 /* Check whether the given locale name is recognized by the system. */
7130# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7131 /* On native Windows, setlocale(category, "") looks at the system settings,
7132 not at the environment variables. Also, when an encoding suffix such
7133 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7134 category of the locale to "C". */
7135 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7136 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7137 return 1;
7138# else
7139 if (setlocale (LC_ALL, "") == NULL) return 1;
7140# endif
7141 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7142 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7143 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7144 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7145 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7146 some unit tests fail. */
7147# if HAVE_LANGINFO_CODESET
7148 {
7149 const char *cs = nl_langinfo (CODESET);
7150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7151 return 1;
7152 }
7153# endif
7154# ifdef __CYGWIN__
7155 /* On Cygwin, avoid locale names without encoding suffix, because the
7156 locale_charset() function relies on the encoding suffix. Note that
7157 LC_ALL is set on the command line. */
7158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7159# endif
7160 /* Check whether in the abbreviation of the second month, the second
7161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7162 two bytes long, with UTF-8 encoding. */
7163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7164 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7165 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7166 return 1;
7167#endif
7168#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7169 /* Check whether the decimal separator is a comma.
7170 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7171 are nl_langinfo(RADIXCHAR) are both ".". */
7172 if (localeconv () ->decimal_point[0] != ',') return 1;
7173#endif
7174 return 0;
7175}
7176
7177_ACEOF
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7179 (eval $ac_link) 2>&5
7180 ac_status=$?
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7183 case "$host_os" in
7184 # Handle native Windows specially, because there setlocale() interprets
7185 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7186 # "fr" or "fra" as "French" or "French_France.1252",
7187 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7188 # "ja" as "Japanese" or "Japanese_Japan.932",
7189 # and similar.
7190 mingw*)
7191 # Test for the hypothetical native Windows locale name.
7192 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7193 gt_cv_locale_fr_utf8=French_France.65001
7194 else
7195 # None found.
7196 gt_cv_locale_fr_utf8=none
7197 fi
7198 ;;
7199 *)
7200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7202 # configure script would override the LC_ALL setting. Likewise for
7203 # LC_CTYPE, which is also set at the beginning of the configure script.
7204 # Test for the usual locale name.
7205 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7206 gt_cv_locale_fr_utf8=fr_FR
7207 else
7208 # Test for the locale name with explicit encoding suffix.
7209 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7210 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7211 else
7212 # Test for the Solaris 7 locale name.
7213 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7214 gt_cv_locale_fr_utf8=fr.UTF-8
7215 else
7216 # None found.
7217 gt_cv_locale_fr_utf8=none
7218 fi
7219 fi
7220 fi
7221 ;;
7222 esac
7223 fi
7224 rm -fr conftest*
7225
7226fi
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7228$as_echo "$gt_cv_locale_fr_utf8" >&6; }
7229 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7230
7231
7232
7233
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7236$as_echo_n "checking for a traditional french locale... " >&6; }
7237if test "${gt_cv_locale_fr+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239else
7240
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h. */
7243
7244#include <locale.h>
7245#include <time.h>
7246#if HAVE_LANGINFO_CODESET
7247# include <langinfo.h>
7248#endif
7249#include <stdlib.h>
7250#include <string.h>
7251struct tm t;
7252char buf[16];
7253int main () {
7254 /* Check whether the given locale name is recognized by the system. */
7255#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7256 /* On native Windows, setlocale(category, "") looks at the system settings,
7257 not at the environment variables. Also, when an encoding suffix such
7258 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7259 category of the locale to "C". */
7260 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7261 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7262 return 1;
7263#else
7264 if (setlocale (LC_ALL, "") == NULL) return 1;
7265#endif
7266 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7267 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7268 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7269 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7270 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7271 some unit tests fail.
7272 On MirBSD 10, when an unsupported locale is specified, setlocale()
7273 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7274#if HAVE_LANGINFO_CODESET
7275 {
7276 const char *cs = nl_langinfo (CODESET);
7277 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7278 || strcmp (cs, "UTF-8") == 0)
7279 return 1;
7280 }
7281#endif
7282#ifdef __CYGWIN__
7283 /* On Cygwin, avoid locale names without encoding suffix, because the
7284 locale_charset() function relies on the encoding suffix. Note that
7285 LC_ALL is set on the command line. */
7286 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7287#endif
7288 /* Check whether in the abbreviation of the second month, the second
7289 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7290 one byte long. This excludes the UTF-8 encoding. */
7291 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7292 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7293#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7294 /* Check whether the decimal separator is a comma.
7295 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7296 are nl_langinfo(RADIXCHAR) are both ".". */
7297 if (localeconv () ->decimal_point[0] != ',') return 1;
7298#endif
7299 return 0;
7300}
7301
7302_ACEOF
7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7304 (eval $ac_link) 2>&5
7305 ac_status=$?
7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7308 case "$host_os" in
7309 # Handle native Windows specially, because there setlocale() interprets
7310 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7311 # "fr" or "fra" as "French" or "French_France.1252",
7312 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7313 # "ja" as "Japanese" or "Japanese_Japan.932",
7314 # and similar.
7315 mingw*)
7316 # Test for the native Windows locale name.
7317 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7318 gt_cv_locale_fr=French_France.1252
7319 else
7320 # None found.
7321 gt_cv_locale_fr=none
7322 fi
7323 ;;
7324 *)
7325 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7326 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7327 # configure script would override the LC_ALL setting. Likewise for
7328 # LC_CTYPE, which is also set at the beginning of the configure script.
7329 # Test for the usual locale name.
7330 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7331 gt_cv_locale_fr=fr_FR
7332 else
7333 # Test for the locale name with explicit encoding suffix.
7334 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7335 gt_cv_locale_fr=fr_FR.ISO-8859-1
7336 else
7337 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7338 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7339 gt_cv_locale_fr=fr_FR.ISO8859-1
7340 else
7341 # Test for the HP-UX locale name.
7342 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7343 gt_cv_locale_fr=fr_FR.iso88591
7344 else
7345 # Test for the Solaris 7 locale name.
7346 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7347 gt_cv_locale_fr=fr
7348 else
7349 # None found.
7350 gt_cv_locale_fr=none
7351 fi
7352 fi
7353 fi
7354 fi
7355 fi
7356 ;;
7357 esac
7358 fi
7359 rm -fr conftest*
7360
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7363$as_echo "$gt_cv_locale_fr" >&6; }
7364 LOCALE_FR=$gt_cv_locale_fr
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 GNULIB_FFSL=0;
7379 GNULIB_FFSLL=0;
7380 GNULIB_MEMCHR=0;
7381 GNULIB_MEMMEM=0;
7382 GNULIB_MEMPCPY=0;
7383 GNULIB_MEMRCHR=0;
7384 GNULIB_RAWMEMCHR=0;
7385 GNULIB_STPCPY=0;
7386 GNULIB_STPNCPY=0;
7387 GNULIB_STRCHRNUL=0;
7388 GNULIB_STRDUP=0;
7389 GNULIB_STRNCAT=0;
7390 GNULIB_STRNDUP=0;
7391 GNULIB_STRNLEN=0;
7392 GNULIB_STRPBRK=0;
7393 GNULIB_STRSEP=0;
7394 GNULIB_STRSTR=0;
7395 GNULIB_STRCASESTR=0;
7396 GNULIB_STRTOK_R=0;
7397 GNULIB_MBSLEN=0;
7398 GNULIB_MBSNLEN=0;
7399 GNULIB_MBSCHR=0;
7400 GNULIB_MBSRCHR=0;
7401 GNULIB_MBSSTR=0;
7402 GNULIB_MBSCASECMP=0;
7403 GNULIB_MBSNCASECMP=0;
7404 GNULIB_MBSPCASECMP=0;
7405 GNULIB_MBSCASESTR=0;
7406 GNULIB_MBSCSPN=0;
7407 GNULIB_MBSPBRK=0;
7408 GNULIB_MBSSPN=0;
7409 GNULIB_MBSSEP=0;
7410 GNULIB_MBSTOK_R=0;
7411 GNULIB_STRERROR=0;
7412 GNULIB_STRERROR_R=0;
7413 GNULIB_STRSIGNAL=0;
7414 GNULIB_STRVERSCMP=0;
7415 HAVE_MBSLEN=0;
7416 HAVE_FFSL=1;
7417 HAVE_FFSLL=1;
7418 HAVE_MEMCHR=1;
7419 HAVE_DECL_MEMMEM=1;
7420 HAVE_MEMPCPY=1;
7421 HAVE_DECL_MEMRCHR=1;
7422 HAVE_RAWMEMCHR=1;
7423 HAVE_STPCPY=1;
7424 HAVE_STPNCPY=1;
7425 HAVE_STRCHRNUL=1;
7426 HAVE_DECL_STRDUP=1;
7427 HAVE_DECL_STRNDUP=1;
7428 HAVE_DECL_STRNLEN=1;
7429 HAVE_STRPBRK=1;
7430 HAVE_STRSEP=1;
7431 HAVE_STRCASESTR=1;
7432 HAVE_DECL_STRTOK_R=1;
7433 HAVE_DECL_STRERROR_R=1;
7434 HAVE_DECL_STRSIGNAL=1;
7435 HAVE_STRVERSCMP=1;
7436 REPLACE_MEMCHR=0;
7437 REPLACE_MEMMEM=0;
7438 REPLACE_STPNCPY=0;
7439 REPLACE_STRDUP=0;
7440 REPLACE_STRSTR=0;
7441 REPLACE_STRCASESTR=0;
7442 REPLACE_STRCHRNUL=0;
7443 REPLACE_STRERROR=0;
7444 REPLACE_STRERROR_R=0;
7445 REPLACE_STRNCAT=0;
7446 REPLACE_STRNDUP=0;
7447 REPLACE_STRNLEN=0;
7448 REPLACE_STRSIGNAL=0;
7449 REPLACE_STRTOK_R=0;
7450 UNDEFINE_STRTOK_R=0;
7451
7452
7453
7454
7455
7456 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7457 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7458 # irrelevant for anonymous mappings.
7459 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7460if test "x$ac_cv_func_mmap" = x""yes; then :
7461 gl_have_mmap=yes
7462else
7463 gl_have_mmap=no
7464fi
7465
7466
7467 # Try to allow MAP_ANONYMOUS.
7468 gl_have_mmap_anonymous=no
7469 if test $gl_have_mmap = yes; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7471$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h. */
7474
7475#include <sys/mman.h>
7476#ifdef MAP_ANONYMOUS
7477 I cannot identify this map
7478#endif
7479
7480_ACEOF
7481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7483 gl_have_mmap_anonymous=yes
7484fi
7485rm -f conftest*
7486
7487 if test $gl_have_mmap_anonymous != yes; then
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h. */
7490
7491#include <sys/mman.h>
7492#ifdef MAP_ANON
7493 I cannot identify this map
7494#endif
7495
7496_ACEOF
7497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7499
7500$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7501
7502 gl_have_mmap_anonymous=yes
7503fi
7504rm -f conftest*
7505
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7508$as_echo "$gl_have_mmap_anonymous" >&6; }
7509 if test $gl_have_mmap_anonymous = yes; then
7510
7511$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7512
7513 fi
7514 fi
7515
7516
7517 :
7518
7519
7520
7521
7522
7523
7524 :
7525
7526
7527
7528
7529
7530
7531
7532
7533 if test $HAVE_MEMCHR = 1; then
7534 # Detect platform-specific bugs in some versions of glibc:
7535 # memchr should not dereference anything with length 0
7536 # http://bugzilla.redhat.com/499689
7537 # memchr should not dereference overestimated length after a match
7538 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7539 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7540 # Assume that memchr works on platforms that lack mprotect.
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7542$as_echo_n "checking whether memchr works... " >&6; }
7543if test "${gl_cv_func_memchr_works+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7545else
7546 if test "$cross_compiling" = yes; then :
7547 gl_cv_func_memchr_works="guessing no"
7548else
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h. */
7551
7552#include <string.h>
7553#if HAVE_SYS_MMAN_H
7554# include <fcntl.h>
7555# include <unistd.h>
7556# include <sys/types.h>
7557# include <sys/mman.h>
7558# ifndef MAP_FILE
7559# define MAP_FILE 0
7560# endif
7561#endif
7562
7563int
7564main ()
7565{
7566
7567 int result = 0;
7568 char *fence = NULL;
7569#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7570# if HAVE_MAP_ANONYMOUS
7571 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7572 const int fd = -1;
7573# else /* !HAVE_MAP_ANONYMOUS */
7574 const int flags = MAP_FILE | MAP_PRIVATE;
7575 int fd = open ("/dev/zero", O_RDONLY, 0666);
7576 if (fd >= 0)
7577# endif
7578 {
7579 int pagesize = getpagesize ();
7580 char *two_pages =
7581 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7582 flags, fd, 0);
7583 if (two_pages != (char *)(-1)
7584 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7585 fence = two_pages + pagesize;
7586 }
7587#endif
7588 if (fence)
7589 {
7590 if (memchr (fence, 0, 0))
7591 result |= 1;
7592 strcpy (fence - 9, "12345678");
7593 if (memchr (fence - 9, 0, 79) != fence - 1)
7594 result |= 2;
7595 if (memchr (fence - 1, 0, 3) != fence - 1)
7596 result |= 4;
7597 }
7598 return result;
7599
7600 ;
7601 return 0;
7602}
7603_ACEOF
7604if ac_fn_c_try_run "$LINENO"; then :
7605 gl_cv_func_memchr_works=yes
7606else
7607 gl_cv_func_memchr_works=no
7608fi
7609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
7611fi
7612
7613fi
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
7615$as_echo "$gl_cv_func_memchr_works" >&6; }
7616 if test "$gl_cv_func_memchr_works" != yes; then
7617 REPLACE_MEMCHR=1
7618 fi
7619 fi
7620
7621
7622 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7623if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7624 ac_have_decl=1
7625else
7626 ac_have_decl=0
7627fi
7628
7629cat >>confdefs.h <<_ACEOF
7630#define HAVE_DECL_MEMMEM $ac_have_decl
7631_ACEOF
7632
7633
7634
7635
7636
7637
7638 for ac_func in memmem
7639do :
7640 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7641if test "x$ac_cv_func_memmem" = x""yes; then :
7642 cat >>confdefs.h <<_ACEOF
7643#define HAVE_MEMMEM 1
7644_ACEOF
7645
7646fi
7647done
7648
7649 if test $ac_cv_func_memmem = yes; then
7650 HAVE_MEMMEM=1
7651 else
7652 HAVE_MEMMEM=0
7653 fi
7654
7655 :
7656
7657
7658
7659
7660
7661 if test $ac_cv_have_decl_memmem = no; then
7662 HAVE_DECL_MEMMEM=0
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7665$as_echo_n "checking whether memmem works... " >&6; }
7666if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668else
7669 if test "$cross_compiling" = yes; then :
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h. */
7672
7673#ifdef __GNU_LIBRARY__
7674 #include <features.h>
7675 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7676 || __GLIBC_MINOR__ > 12)) \
7677 || (__GLIBC__ > 2)) \
7678 || defined __UCLIBC__
7679 Lucky user
7680 #endif
7681#elif defined __CYGWIN__
7682 #include <cygwin/version.h>
7683 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7684 Lucky user
7685 #endif
7686#else
7687 Lucky user
7688#endif
7689
7690_ACEOF
7691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "Lucky user" >/dev/null 2>&1; then :
7693 gl_cv_func_memmem_works_always="guessing yes"
7694else
7695 gl_cv_func_memmem_works_always="guessing no"
7696fi
7697rm -f conftest*
7698
7699
7700else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h. */
7703
7704#include <string.h> /* for memmem */
7705#define P "_EF_BF_BD"
7706#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7707#define NEEDLE P P P P P
7708
7709int
7710main ()
7711{
7712
7713 int result = 0;
7714 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7715 result |= 1;
7716 /* Check for empty needle behavior. */
7717 {
7718 const char *haystack = "AAA";
7719 if (memmem (haystack, 3, NULL, 0) != haystack)
7720 result |= 2;
7721 }
7722 return result;
7723
7724 ;
7725 return 0;
7726}
7727_ACEOF
7728if ac_fn_c_try_run "$LINENO"; then :
7729 gl_cv_func_memmem_works_always=yes
7730else
7731 gl_cv_func_memmem_works_always=no
7732fi
7733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7734 conftest.$ac_objext conftest.beam conftest.$ac_ext
7735fi
7736
7737
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7740$as_echo "$gl_cv_func_memmem_works_always" >&6; }
7741 case "$gl_cv_func_memmem_works_always" in
7742 *yes) ;;
7743 *)
7744 REPLACE_MEMMEM=1
7745 ;;
7746 esac
7747 fi
7748 :
7749
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7751$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7752if test "${ac_cv_header_stdbool_h+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754else
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h. */
7757
7758 #include <stdbool.h>
7759 #ifndef bool
7760 "error: bool is not defined"
7761 #endif
7762 #ifndef false
7763 "error: false is not defined"
7764 #endif
7765 #if false
7766 "error: false is not 0"
7767 #endif
7768 #ifndef true
7769 "error: true is not defined"
7770 #endif
7771 #if true != 1
7772 "error: true is not 1"
7773 #endif
7774 #ifndef __bool_true_false_are_defined
7775 "error: __bool_true_false_are_defined is not defined"
7776 #endif
7777
7778 struct s { _Bool s: 1; _Bool t; } s;
7779
7780 char a[true == 1 ? 1 : -1];
7781 char b[false == 0 ? 1 : -1];
7782 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7783 char d[(bool) 0.5 == true ? 1 : -1];
7784 /* See body of main program for 'e'. */
7785 char f[(_Bool) 0.0 == false ? 1 : -1];
7786 char g[true];
7787 char h[sizeof (_Bool)];
7788 char i[sizeof s.t];
7789 enum { j = false, k = true, l = false * true, m = true * 256 };
7790 /* The following fails for
7791 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7792 _Bool n[m];
7793 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7794 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7795 /* Catch a bug in an HP-UX C compiler. See
7796 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7797 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7798 */
7799 _Bool q = true;
7800 _Bool *pq = &q;
7801
7802int
7803main ()
7804{
7805
7806 bool e = &s;
7807 *pq |= q;
7808 *pq |= ! q;
7809 /* Refer to every declared value, to avoid compiler optimizations. */
7810 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7811 + !m + !n + !o + !p + !q + !pq);
7812
7813 ;
7814 return 0;
7815}
7816_ACEOF
7817if ac_fn_c_try_compile "$LINENO"; then :
7818 ac_cv_header_stdbool_h=yes
7819else
7820 ac_cv_header_stdbool_h=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7825$as_echo "$ac_cv_header_stdbool_h" >&6; }
7826 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7827if test "x$ac_cv_type__Bool" = x""yes; then :
7828
7829cat >>confdefs.h <<_ACEOF
7830#define HAVE__BOOL 1
7831_ACEOF
7832
7833
7834fi
7835
7836
7837
7838 REPLACE_NULL=0;
7839 HAVE_WCHAR_T=1;
7840
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7843$as_echo_n "checking for wchar_t... " >&6; }
7844if test "${gt_cv_c_wchar_t+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h. */
7849#include <stddef.h>
7850 wchar_t foo = (wchar_t)'\0';
7851int
7852main ()
7853{
7854
7855 ;
7856 return 0;
7857}
7858_ACEOF
7859if ac_fn_c_try_compile "$LINENO"; then :
7860 gt_cv_c_wchar_t=yes
7861else
7862 gt_cv_c_wchar_t=no
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7867$as_echo "$gt_cv_c_wchar_t" >&6; }
7868 if test $gt_cv_c_wchar_t = yes; then
7869
7870$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7871
7872 fi
7873
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7875$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7876if test "${ac_cv_c_restrict+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7878else
7879 ac_cv_c_restrict=no
7880 # The order here caters to the fact that C++ does not require restrict.
7881 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883/* end confdefs.h. */
7884typedef int * int_ptr;
7885 int foo (int_ptr $ac_kw ip) {
7886 return ip[0];
7887 }
7888int
7889main ()
7890{
7891int s[1];
7892 int * $ac_kw t = s;
7893 t[0] = 0;
7894 return foo(t)
7895 ;
7896 return 0;
7897}
7898_ACEOF
7899if ac_fn_c_try_compile "$LINENO"; then :
7900 ac_cv_c_restrict=$ac_kw
7901fi
7902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 test "$ac_cv_c_restrict" != no && break
7904 done
7905
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7908$as_echo "$ac_cv_c_restrict" >&6; }
7909
7910 case $ac_cv_c_restrict in
7911 restrict) ;;
7912 no) $as_echo "#define restrict /**/" >>confdefs.h
7913 ;;
7914 *) cat >>confdefs.h <<_ACEOF
7915#define restrict $ac_cv_c_restrict
7916_ACEOF
7917 ;;
7918 esac
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931 if test $gl_cv_have_include_next = yes; then
7932 gl_cv_next_string_h='<'string.h'>'
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7935$as_echo_n "checking absolute name of <string.h>... " >&6; }
7936if test "${gl_cv_next_string_h+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938else
7939
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h. */
7942#include <string.h>
7943
7944_ACEOF
7945 case "$host_os" in
7946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7947 *) gl_absname_cpp="$ac_cpp" ;;
7948 esac
7949
7950 case "$host_os" in
c971b7fa
PA
7951 mingw*)
7952 gl_dirsep_regex='[/\\]'
7953 ;;
7954 *)
7955 gl_dirsep_regex='\/'
7956 ;;
7957 esac
7958 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7959
8690e634
JK
7960 gl_header_literal_regex=`echo 'string.h' \
7961 | sed -e "$gl_make_literal_regex_sed"`
7962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7964 s|^/[^/]|//&|
7965 p
7966 q
7967 }'
7968 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7969 sed -n "$gl_absolute_header_sed"`'"'
7970
7971
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7974$as_echo "$gl_cv_next_string_h" >&6; }
7975 fi
7976 NEXT_STRING_H=$gl_cv_next_string_h
7977
7978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7980 gl_next_as_first_directive='<'string.h'>'
7981 else
7982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7983 gl_next_as_first_directive=$gl_cv_next_string_h
7984 fi
7985 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
7986
7987
7988
7989
7990
7991
7992 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
7993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7995$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7996if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7997 $as_echo_n "(cached) " >&6
7998else
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h. */
8001#include <string.h>
8002
8003int
8004main ()
8005{
8006#undef $gl_func
8007 (void) $gl_func;
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012if ac_fn_c_try_compile "$LINENO"; then :
8013 eval "$as_gl_Symbol=yes"
8014else
8015 eval "$as_gl_Symbol=no"
8016fi
8017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018fi
8019eval ac_res=\$$as_gl_Symbol
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8021$as_echo "$ac_res" >&6; }
8022 eval as_val=\$$as_gl_Symbol
8023 if test "x$as_val" = x""yes; then :
8024 cat >>confdefs.h <<_ACEOF
8025#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8026_ACEOF
8027
8028 eval ac_cv_have_decl_$gl_func=yes
8029fi
8030 done
8031
8032
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8035$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8036if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038else
8039 gl_cv_header_wchar_h_correct_inline=yes
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h. */
8042
8043 #define wcstod renamed_wcstod
8044/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8045 <wchar.h>.
8046 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8047 included before <wchar.h>. */
8048#include <stddef.h>
8049#include <stdio.h>
8050#include <time.h>
8051#include <wchar.h>
8052extern int zero (void);
8053int main () { return zero(); }
8054
8055_ACEOF
8056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8057 (eval $ac_compile) 2>&5
8058 ac_status=$?
8059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8060 test $ac_status = 0; }; then
8061 mv conftest.$ac_objext conftest1.$ac_objext
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h. */
8064
8065 #define wcstod renamed_wcstod
8066/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8067 <wchar.h>.
8068 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8069 included before <wchar.h>. */
8070#include <stddef.h>
8071#include <stdio.h>
8072#include <time.h>
8073#include <wchar.h>
8074int zero (void) { return 0; }
8075
8076_ACEOF
8077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8078 (eval $ac_compile) 2>&5
8079 ac_status=$?
8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8081 test $ac_status = 0; }; then
8082 mv conftest.$ac_objext conftest2.$ac_objext
8083 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8084 :
8085 else
8086 gl_cv_header_wchar_h_correct_inline=no
8087 fi
8088 fi
8089 fi
8090 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8091
8092fi
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8094$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8095 if test $gl_cv_header_wchar_h_correct_inline = no; then
8096 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8097This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8098C99 mode. You have four options:
8099 - Add the flag -fgnu89-inline to CC and reconfigure, or
8100 - Fix your include files, using parts of
8101 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8102 - Use a gcc version older than 4.3, or
8103 - Don't use the flags -std=c99 or -std=gnu99.
8104Configuration aborted." "$LINENO" 5
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113
8114 :
8115
8116
8117
8118
8119
8120 if test $ac_cv_header_features_h = yes; then
8121 HAVE_FEATURES_H=1
8122 else
8123 HAVE_FEATURES_H=0
8124 fi
8125
8126
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8129$as_echo_n "checking for wint_t... " >&6; }
8130if test "${gt_cv_c_wint_t+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h. */
8135
8136/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8137 <wchar.h>.
8138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8139 before <wchar.h>. */
8140#include <stddef.h>
8141#include <stdio.h>
8142#include <time.h>
8143#include <wchar.h>
8144 wint_t foo = (wchar_t)'\0';
8145int
8146main ()
8147{
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
8153if ac_fn_c_try_compile "$LINENO"; then :
8154 gt_cv_c_wint_t=yes
8155else
8156 gt_cv_c_wint_t=no
8157fi
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159fi
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8161$as_echo "$gt_cv_c_wint_t" >&6; }
8162 if test $gt_cv_c_wint_t = yes; then
8163
8164$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8165
8166 fi
8167
8168
8169 GNULIB_ISWBLANK=0;
8170 GNULIB_WCTYPE=0;
8171 GNULIB_ISWCTYPE=0;
8172 GNULIB_WCTRANS=0;
8173 GNULIB_TOWCTRANS=0;
8174 HAVE_ISWBLANK=1;
8175 HAVE_WCTYPE_T=1;
8176 HAVE_WCTRANS_T=1;
8177 REPLACE_ISWBLANK=0;
8178
8179
8180
8181
8182
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8185$as_echo_n "checking for inline... " >&6; }
8186if test "${ac_cv_c_inline+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188else
8189 ac_cv_c_inline=no
8190for ac_kw in inline __inline__ __inline; do
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h. */
8193#ifndef __cplusplus
8194typedef int foo_t;
8195static $ac_kw foo_t static_foo () {return 0; }
8196$ac_kw foo_t foo () {return 0; }
8197#endif
8198
8199_ACEOF
8200if ac_fn_c_try_compile "$LINENO"; then :
8201 ac_cv_c_inline=$ac_kw
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 test "$ac_cv_c_inline" != no && break
8205done
8206
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8209$as_echo "$ac_cv_c_inline" >&6; }
8210
8211case $ac_cv_c_inline in
8212 inline | yes) ;;
8213 *)
8214 case $ac_cv_c_inline in
8215 no) ac_val=;;
8216 *) ac_val=$ac_cv_c_inline;;
8217 esac
8218 cat >>confdefs.h <<_ACEOF
8219#ifndef __cplusplus
8220#define inline $ac_val
8221#endif
8222_ACEOF
8223 ;;
8224esac
8225
8226
8227 if false; then
8228 GL_COND_LIBTOOL_TRUE=
8229 GL_COND_LIBTOOL_FALSE='#'
8230else
8231 GL_COND_LIBTOOL_TRUE='#'
8232 GL_COND_LIBTOOL_FALSE=
8233fi
8234
8235 gl_cond_libtool=false
8236 gl_libdeps=
8237 gl_ltlibdeps=
8238 gl_m4_base='import/m4'
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248 gl_source_base='import'
8249
8250
8251 if test $ac_cv_func_alloca_works = no; then
8252 :
8253 fi
8254
8255 # Define an additional variable used in the Makefile substitution.
8256 if test $ac_cv_working_alloca_h = yes; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8258$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8259if test "${gl_cv_rpl_alloca+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261else
8262
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h. */
8265
8266#if defined __GNUC__ || defined _AIX || defined _MSC_VER
8267 Need own alloca
8268#endif
8269
8270_ACEOF
8271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8273 gl_cv_rpl_alloca=yes
8274else
8275 gl_cv_rpl_alloca=no
8276fi
8277rm -f conftest*
8278
8279
8280fi
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8282$as_echo "$gl_cv_rpl_alloca" >&6; }
8283 if test $gl_cv_rpl_alloca = yes; then
8284
8285$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8286
8287 ALLOCA_H=alloca.h
8288 else
8289 ALLOCA_H=
8290 fi
8291 else
8292 ALLOCA_H=alloca.h
8293 fi
8294
8295 if test -n "$ALLOCA_H"; then
8296 GL_GENERATE_ALLOCA_H_TRUE=
8297 GL_GENERATE_ALLOCA_H_FALSE='#'
8298else
8299 GL_GENERATE_ALLOCA_H_TRUE='#'
8300 GL_GENERATE_ALLOCA_H_FALSE=
8301fi
8302
8303
8304
8305 if test "x$datarootdir" = x; then
8306 datarootdir='${datadir}'
8307
8308 fi
8309 if test "x$docdir" = x; then
8310 docdir='${datarootdir}/doc/${PACKAGE}'
8311
8312 fi
8313 if test "x$htmldir" = x; then
8314 htmldir='${docdir}'
8315
8316 fi
8317 if test "x$dvidir" = x; then
8318 dvidir='${docdir}'
8319
8320 fi
8321 if test "x$pdfdir" = x; then
8322 pdfdir='${docdir}'
8323
8324 fi
8325 if test "x$psdir" = x; then
8326 psdir='${docdir}'
8327
8328 fi
8329 if test "x$lispdir" = x; then
8330 lispdir='${datarootdir}/emacs/site-lisp'
8331
8332 fi
8333 if test "x$localedir" = x; then
8334 localedir='${datarootdir}/locale'
8335
8336 fi
8337
8338 pkglibexecdir='${libexecdir}/${PACKAGE}'
8339
8340
8341
8342
8343
8344
8345
8346 FNMATCH_H=
8347 gl_fnmatch_required_lowercase=`
8348 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
8349 `
8350 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8352$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8353if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8354 $as_echo_n "(cached) " >&6
8355else
8356 if test $gl_fnmatch_required = GNU; then
8357 gl_fnmatch_gnu_start=
8358 gl_fnmatch_gnu_end=
8359 else
8360 gl_fnmatch_gnu_start='#if 0'
8361 gl_fnmatch_gnu_end='#endif'
8362 fi
8363 if test "$cross_compiling" = yes; then :
8364 eval "$gl_fnmatch_cache_var=\"guessing no\""
8365else
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h. */
8368#include <fnmatch.h>
8369 static int
8370 y (char const *pattern, char const *string, int flags)
8371 {
8372 return fnmatch (pattern, string, flags) == 0;
8373 }
8374 static int
8375 n (char const *pattern, char const *string, int flags)
8376 {
8377 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8378 }
8379
8380int
8381main ()
8382{
8383char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8384 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8385 static char const A_1[] = { 'A' - 1, 0 };
8386 static char const A01[] = { 'A' + 1, 0 };
8387 static char const a_1[] = { 'a' - 1, 0 };
8388 static char const a01[] = { 'a' + 1, 0 };
8389 static char const bs_1[] = { '\\\\' - 1, 0 };
8390 static char const bs01[] = { '\\\\' + 1, 0 };
8391 int result = 0;
8392 if (!n ("a*", "", 0))
8393 return 1;
8394 if (!y ("a*", "abc", 0))
8395 return 1;
8396 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8397 return 1;
8398 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8399 return 2;
8400 if (!y ("a\\\\bc", "abc", 0))
8401 return 3;
8402 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8403 return 3;
8404 if (!y ("*x", ".x", 0))
8405 return 4;
8406 if (!n ("*x", ".x", FNM_PERIOD))
8407 return 4;
8408 if (!y (Apat, "\\\\", 0))
8409 return 5;
8410 if (!y (Apat, "A", 0))
8411 return 5;
8412 if (!y (apat, "\\\\", 0))
8413 return 5;
8414 if (!y (apat, "a", 0))
8415 return 5;
8416 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8417 return 5;
8418 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8419 return 5;
8420 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8421 return 5;
8422 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8423 return 5;
8424 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8425 return 5;
8426 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8427 return 5;
8428 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8429 return 5;
8430 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8431 return 5;
8432 $gl_fnmatch_gnu_start
8433 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8434 result |= 8;
8435 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8436 result |= 16;
8437 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8438 result |= 32;
8439 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8440 result |= 64;
8441 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8442 result |= 64;
8443 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8444 result |= 64;
8445 $gl_fnmatch_gnu_end
8446 return result;
8447
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452if ac_fn_c_try_run "$LINENO"; then :
8453 eval "$gl_fnmatch_cache_var=yes"
8454else
8455 eval "$gl_fnmatch_cache_var=no"
8456fi
8457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8458 conftest.$ac_objext conftest.beam conftest.$ac_ext
8459fi
8460
8461
8462fi
8463eval ac_res=\$$gl_fnmatch_cache_var
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8465$as_echo "$ac_res" >&6; }
8466 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8467 if test "$gl_fnmatch_result" = yes; then
8468 rm -f "$gl_source_base/fnmatch.h"
8469 else
8470 FNMATCH_H=fnmatch.h
8471 fi
8472
8473 if test -n "$FNMATCH_H"; then
8474 GL_GENERATE_FNMATCH_H_TRUE=
8475 GL_GENERATE_FNMATCH_H_FALSE='#'
8476else
8477 GL_GENERATE_FNMATCH_H_TRUE='#'
8478 GL_GENERATE_FNMATCH_H_FALSE=
8479fi
8480
8481
8482if test -n "$FNMATCH_H"; then
8483
8484
8485
8486
8487
8488
8489
8490
8491 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8492
8493
8494
8495cat >>confdefs.h <<_ACEOF
8496#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8497_ACEOF
8498
8499
8500 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8501"
8502if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8503 ac_have_decl=1
8504else
8505 ac_have_decl=0
8506fi
8507
8508cat >>confdefs.h <<_ACEOF
8509#define HAVE_DECL_ISBLANK $ac_have_decl
8510_ACEOF
8511
8512
8513 :
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
c971b7fa
PA
8533
8534
c971b7fa 8535
c971b7fa
PA
8536
8537
8538
8539
c971b7fa 8540
8690e634 8541 :
c971b7fa 8542
c971b7fa
PA
8543
8544
c971b7fa
PA
8545
8546
c971b7fa 8547
8690e634 8548fi
c971b7fa 8549
c971b7fa 8550
c971b7fa 8551
c971b7fa 8552
c971b7fa 8553
8690e634 8554if test -n "$FNMATCH_H"; then
c971b7fa 8555
c971b7fa 8556
c971b7fa
PA
8557
8558
c971b7fa
PA
8559
8560
c971b7fa
PA
8561
8562
8690e634 8563 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 8564
c971b7fa 8565
c971b7fa 8566
8690e634
JK
8567cat >>confdefs.h <<_ACEOF
8568#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8569_ACEOF
c971b7fa
PA
8570
8571
8690e634
JK
8572 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8573"
8574if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8575 ac_have_decl=1
8576else
8577 ac_have_decl=0
c971b7fa 8578fi
c971b7fa 8579
8690e634
JK
8580cat >>confdefs.h <<_ACEOF
8581#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
8582_ACEOF
8583
c971b7fa 8584
8690e634
JK
8585 :
8586
8587
8588
c971b7fa 8589
c971b7fa 8590
c971b7fa
PA
8591
8592
8593
8594
c971b7fa
PA
8595
8596
c971b7fa 8597
c971b7fa 8598
c971b7fa 8599
c971b7fa 8600
c971b7fa 8601
c971b7fa
PA
8602
8603
c971b7fa
PA
8604
8605
c971b7fa 8606
c971b7fa 8607
c971b7fa 8608
8690e634
JK
8609
8610
8611
8612
8613 :
8614
8615
8616
8617
8618
c971b7fa
PA
8619
8620fi
c971b7fa 8621
c971b7fa
PA
8622
8623
8624
8625
8690e634
JK
8626 PRIPTR_PREFIX=
8627 if test -n "$STDINT_H"; then
8628 PRIPTR_PREFIX='"l"'
8629 else
8630 for glpfx in '' l ll I64; do
8631 case $glpfx in
8632 '') gltype1='int';;
8633 l) gltype1='long int';;
8634 ll) gltype1='long long int';;
8635 I64) gltype1='__int64';;
8636 esac
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h. */
8639#include <stdint.h>
8640 extern intptr_t foo;
8641 extern $gltype1 foo;
8642int
8643main ()
8644{
8645
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650if ac_fn_c_try_compile "$LINENO"; then :
8651 PRIPTR_PREFIX='"'$glpfx'"'
8652fi
8653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 test -n "$PRIPTR_PREFIX" && break
8655 done
8656 fi
8657
8658
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
8661$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
8662if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
c971b7fa
PA
8663 $as_echo_n "(cached) " >&6
8664else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666/* end confdefs.h. */
8690e634
JK
8667/* Work also in C++ mode. */
8668 #define __STDC_LIMIT_MACROS 1
c971b7fa 8669
8690e634
JK
8670 /* Work if build is not clean. */
8671 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c971b7fa 8672
8690e634
JK
8673 #include <limits.h>
8674 #if HAVE_STDINT_H
8675 #include <stdint.h>
8676 #endif
8677
8678 #if defined INT32_MAX && defined INTMAX_MAX
8679 #define CONDITION (INT32_MAX < INTMAX_MAX)
8680 #elif HAVE_LONG_LONG_INT
8681 #define CONDITION (sizeof (int) < sizeof (long long int))
8682 #else
8683 #define CONDITION 0
8684 #endif
8685 int test[CONDITION ? 1 : -1];
c971b7fa
PA
8686int
8687main ()
8688{
8689
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694if ac_fn_c_try_compile "$LINENO"; then :
8690e634 8695 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
c971b7fa 8696else
8690e634 8697 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
c971b7fa
PA
8698fi
8699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 8700fi
8690e634
JK
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
8702$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
8703 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
8704 INT32_MAX_LT_INTMAX_MAX=1;
8705 else
8706 INT32_MAX_LT_INTMAX_MAX=0;
8707 fi
c971b7fa
PA
8708
8709
c971b7fa
PA
8710 if test $APPLE_UNIVERSAL_BUILD = 0; then
8711
8690e634
JK
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
8713$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
8714if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
c971b7fa
PA
8715 $as_echo_n "(cached) " >&6
8716else
8690e634
JK
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h. */
8719/* Work also in C++ mode. */
8720 #define __STDC_LIMIT_MACROS 1
c971b7fa 8721
8690e634
JK
8722 /* Work if build is not clean. */
8723 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8724
8725 #include <limits.h>
8726 #if HAVE_STDINT_H
8727 #include <stdint.h>
8728 #endif
8729
8730 #if defined INT64_MAX
8731 #define CONDITION (INT64_MAX == LONG_MAX)
8732 #elif HAVE_LONG_LONG_INT
8733 #define CONDITION (sizeof (long long int) == sizeof (long int))
8734 #else
8735 #define CONDITION 0
8736 #endif
8737 int test[CONDITION ? 1 : -1];
c971b7fa
PA
8738int
8739main ()
8740{
8741
8742 ;
8743 return 0;
8744}
8745_ACEOF
8746if ac_fn_c_try_compile "$LINENO"; then :
8690e634
JK
8747 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
8748else
8749 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
c971b7fa
PA
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 8752fi
8690e634
JK
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
8754$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
8755 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
8756 INT64_MAX_EQ_LONG_MAX=1;
8757 else
8758 INT64_MAX_EQ_LONG_MAX=0;
8759 fi
c971b7fa
PA
8760
8761
8690e634
JK
8762 else
8763 INT64_MAX_EQ_LONG_MAX=-1
c971b7fa
PA
8764 fi
8765
8690e634
JK
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
8767$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
8768if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
c971b7fa
PA
8769 $as_echo_n "(cached) " >&6
8770else
8690e634 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 8772/* end confdefs.h. */
8690e634
JK
8773/* Work also in C++ mode. */
8774 #define __STDC_LIMIT_MACROS 1
c971b7fa 8775
8690e634
JK
8776 /* Work if build is not clean. */
8777 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c971b7fa 8778
8690e634
JK
8779 #include <limits.h>
8780 #if HAVE_STDINT_H
8781 #include <stdint.h>
8782 #endif
8783
8784 #if defined UINT32_MAX && defined UINTMAX_MAX
8785 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
8786 #elif HAVE_LONG_LONG_INT
8787 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
8788 #else
8789 #define CONDITION 0
8790 #endif
8791 int test[CONDITION ? 1 : -1];
c971b7fa
PA
8792int
8793main ()
8794{
8795
8796 ;
8797 return 0;
8798}
8799_ACEOF
8800if ac_fn_c_try_compile "$LINENO"; then :
8690e634
JK
8801 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
8802else
8803 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
c971b7fa
PA
8804fi
8805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 8806fi
8690e634
JK
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
8808$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
8809 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
8810 UINT32_MAX_LT_UINTMAX_MAX=1;
8811 else
8812 UINT32_MAX_LT_UINTMAX_MAX=0;
8813 fi
c971b7fa 8814
c971b7fa 8815
8690e634 8816 if test $APPLE_UNIVERSAL_BUILD = 0; then
c971b7fa 8817
8690e634
JK
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
8819$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
8820if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822else
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h. */
8825/* Work also in C++ mode. */
8826 #define __STDC_LIMIT_MACROS 1
c971b7fa 8827
8690e634
JK
8828 /* Work if build is not clean. */
8829 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
c971b7fa 8830
8690e634
JK
8831 #include <limits.h>
8832 #if HAVE_STDINT_H
8833 #include <stdint.h>
8834 #endif
c971b7fa 8835
8690e634
JK
8836 #if defined UINT64_MAX
8837 #define CONDITION (UINT64_MAX == ULONG_MAX)
8838 #elif HAVE_LONG_LONG_INT
8839 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
8840 #else
8841 #define CONDITION 0
8842 #endif
8843 int test[CONDITION ? 1 : -1];
8844int
8845main ()
8846{
8847
8848 ;
8849 return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_compile "$LINENO"; then :
8853 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
c971b7fa 8854else
8690e634 8855 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
c971b7fa 8856fi
8690e634
JK
8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
8860$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
8861 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
8862 UINT64_MAX_EQ_ULONG_MAX=1;
8863 else
8864 UINT64_MAX_EQ_ULONG_MAX=0;
8865 fi
c971b7fa
PA
8866
8867
8690e634
JK
8868 else
8869 UINT64_MAX_EQ_ULONG_MAX=-1
8870 fi
c971b7fa
PA
8871
8872
8873
8874
8875
8876
c971b7fa
PA
8877
8878 :
8879
8880
8881
8882
8883
8884
8885
8886
8887
8690e634 8888LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
c971b7fa
PA
8889
8890
8891
8892
c971b7fa 8893
c971b7fa 8894
c971b7fa 8895
c971b7fa
PA
8896
8897
c971b7fa 8898
8690e634 8899 :
c971b7fa
PA
8900
8901
8902
8903
8904
8905
8690e634 8906 :
c971b7fa
PA
8907
8908
8690e634
JK
8909
8910
8911
8912 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8913
8914
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8917$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8918if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
8919 $as_echo_n "(cached) " >&6
8920else
8690e634
JK
8921
8922 case "$host_os" in
8923 # Guess no on AIX and OSF/1.
8924 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8925 # Guess yes otherwise.
8926 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8927 esac
8928 if test $LOCALE_JA != none; then
8929 if test "$cross_compiling" = yes; then :
8930 :
8931else
c971b7fa
PA
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h. */
c971b7fa 8934
8690e634
JK
8935#include <locale.h>
8936#include <string.h>
8937/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8938 <wchar.h>.
8939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8940 included before <wchar.h>. */
8941#include <stddef.h>
8942#include <stdio.h>
8943#include <time.h>
8944#include <wchar.h>
8945int main ()
c971b7fa 8946{
8690e634
JK
8947 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8948 {
8949 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8950 mbstate_t state;
8951 wchar_t wc;
8952
8953 memset (&state, '\0', sizeof (mbstate_t));
8954 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8955 if (mbsinit (&state))
8956 return 1;
8957 }
c971b7fa
PA
8958 return 0;
8959}
8960_ACEOF
8690e634
JK
8961if ac_fn_c_try_run "$LINENO"; then :
8962 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 8963else
8690e634 8964 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 8965fi
8690e634
JK
8966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8967 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 8968fi
c971b7fa 8969
8690e634 8970 fi
c971b7fa 8971
8690e634
JK
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8974$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 8975
c971b7fa 8976
c971b7fa 8977
c971b7fa 8978
8690e634
JK
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8980$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8981if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
8982 $as_echo_n "(cached) " >&6
8983else
8984
8690e634
JK
8985 case "$host_os" in
8986 # Guess no on Solaris 8.
8987 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8988 # Guess yes otherwise.
8989 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8990 esac
8991 if test $LOCALE_ZH_CN != none; then
8992 if test "$cross_compiling" = yes; then :
8993 :
8994else
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
8996/* end confdefs.h. */
8997
8690e634
JK
8998#include <locale.h>
8999#include <stdlib.h>
9000#include <string.h>
9001/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9002 <wchar.h>.
9003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9004 included before <wchar.h>. */
9005#include <stddef.h>
9006#include <stdio.h>
9007#include <time.h>
9008#include <wchar.h>
9009int main ()
c971b7fa 9010{
8690e634
JK
9011 /* This fails on Solaris 8:
9012 mbrtowc returns 2, and sets wc to 0x00F0.
9013 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9014 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9015 {
9016 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9017 mbstate_t state;
9018 wchar_t wc;
9019
9020 memset (&state, '\0', sizeof (mbstate_t));
9021 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9022 && mbtowc (&wc, input + 3, 6) == 4)
9023 return 1;
9024 }
c971b7fa
PA
9025 return 0;
9026}
9027_ACEOF
8690e634
JK
9028if ac_fn_c_try_run "$LINENO"; then :
9029 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 9030else
8690e634 9031 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 9032fi
8690e634
JK
9033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9035fi
c971b7fa 9036
8690e634 9037 fi
c971b7fa 9038
8690e634
JK
9039fi
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9041$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9042
9043 REPLACE_MBSTATE_T=0
9044 case "$gl_cv_func_mbrtowc_incomplete_state" in
9045 *yes) ;;
9046 *) REPLACE_MBSTATE_T=1 ;;
9047 esac
9048 case "$gl_cv_func_mbrtowc_sanitycheck" in
9049 *yes) ;;
9050 *) REPLACE_MBSTATE_T=1 ;;
9051 esac
c971b7fa 9052 else
8690e634 9053 REPLACE_MBSTATE_T=1
c971b7fa
PA
9054 fi
9055
9056
9057
8690e634 9058 :
c971b7fa
PA
9059
9060
9061
9062
9063
8690e634
JK
9064 if test $ac_cv_func_mbrtowc = no; then
9065 HAVE_MBRTOWC=0
9066 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9067/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9068 <wchar.h>.
9069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9070 included before <wchar.h>. */
9071#include <stddef.h>
9072#include <stdio.h>
9073#include <time.h>
9074#include <wchar.h>
c971b7fa 9075
8690e634
JK
9076"
9077if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9078 ac_have_decl=1
9079else
9080 ac_have_decl=0
c971b7fa 9081fi
c971b7fa 9082
8690e634
JK
9083cat >>confdefs.h <<_ACEOF
9084#define HAVE_DECL_MBRTOWC $ac_have_decl
9085_ACEOF
c971b7fa 9086
8690e634
JK
9087 if test $ac_cv_have_decl_mbrtowc = yes; then
9088 REPLACE_MBRTOWC=1
9089 fi
9090 else
9091 if test $REPLACE_MBSTATE_T = 1; then
9092 REPLACE_MBRTOWC=1
9093 else
c971b7fa
PA
9094
9095
9096
8690e634
JK
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9098$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9099if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
c971b7fa 9101else
c971b7fa 9102
8690e634
JK
9103 case "$host_os" in
9104 # Guess no on Solaris.
9105 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9106 # Guess yes otherwise.
9107 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9108 esac
9109 if test $LOCALE_FR_UTF8 != none; then
9110 if test "$cross_compiling" = yes; then :
9111 :
9112else
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
9114/* end confdefs.h. */
9115
8690e634
JK
9116#include <locale.h>
9117#include <stdlib.h>
9118#include <string.h>
9119/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9120 <wchar.h>.
9121 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9122 included before <wchar.h>. */
9123#include <stddef.h>
9124#include <stdio.h>
9125#include <time.h>
9126#include <wchar.h>
9127int main ()
9128{
9129 int result = 0;
9130
9131 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9132 {
9133 char input[] = "\303\237er";
9134 mbstate_t state;
9135 wchar_t wc;
9136 size_t ret;
9137
9138 memset (&state, '\0', sizeof (mbstate_t));
9139 wc = (wchar_t) 0xBADFACE;
9140 ret = mbrtowc (&wc, input, 5, &state);
9141 if (ret != 2)
9142 result |= 1;
9143 if (!mbsinit (&state))
9144 result |= 2;
c971b7fa 9145
8690e634
JK
9146 memset (&state, '\0', sizeof (mbstate_t));
9147 ret = mbrtowc (NULL, input, 5, &state);
9148 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9149 result |= 4;
9150 if (!mbsinit (&state))
9151 result |= 8;
9152 }
9153 return result;
9154}
c971b7fa 9155_ACEOF
8690e634
JK
9156if ac_fn_c_try_run "$LINENO"; then :
9157 gl_cv_func_mbrtowc_null_arg1=yes
9158else
9159 gl_cv_func_mbrtowc_null_arg1=no
9160fi
9161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9162 conftest.$ac_objext conftest.beam conftest.$ac_ext
9163fi
c971b7fa 9164
8690e634 9165 fi
c971b7fa 9166
c971b7fa 9167fi
8690e634
JK
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9169$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 9170
c971b7fa 9171
c971b7fa 9172
c971b7fa 9173
8690e634
JK
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9175$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9176if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178else
c971b7fa 9179
8690e634
JK
9180 case "$host_os" in
9181 # Guess no on OSF/1.
9182 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9183 # Guess yes otherwise.
9184 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9185 esac
9186 if test $LOCALE_FR_UTF8 != none; then
9187 if test "$cross_compiling" = yes; then :
c971b7fa 9188 :
8690e634
JK
9189else
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h. */
9192
9193#include <locale.h>
9194#include <string.h>
9195/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9196 <wchar.h>.
9197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9198 included before <wchar.h>. */
9199#include <stddef.h>
9200#include <stdio.h>
9201#include <time.h>
9202#include <wchar.h>
9203int main ()
9204{
9205 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9206 {
9207 mbstate_t state;
9208 wchar_t wc;
9209 int ret;
9210
9211 memset (&state, '\0', sizeof (mbstate_t));
9212 wc = (wchar_t) 0xBADFACE;
9213 mbrtowc (&wc, NULL, 5, &state);
9214 /* Check that wc was not modified. */
9215 if (wc != (wchar_t) 0xBADFACE)
9216 return 1;
9217 }
9218 return 0;
9219}
9220_ACEOF
9221if ac_fn_c_try_run "$LINENO"; then :
9222 gl_cv_func_mbrtowc_null_arg2=yes
9223else
9224 gl_cv_func_mbrtowc_null_arg2=no
9225fi
9226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9227 conftest.$ac_objext conftest.beam conftest.$ac_ext
9228fi
9229
9230 fi
9231
9232fi
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9234$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
9235
9236
9237
9238
9239
9240
8690e634
JK
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9242$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9243if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245else
9246
9247 case "$host_os" in
9248 # Guess no on HP-UX, Solaris, native Windows.
9249 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9250 # Guess yes otherwise.
9251 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9252 esac
9253 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9254 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9255 if test "$cross_compiling" = yes; then :
c971b7fa 9256 :
8690e634
JK
9257else
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h. */
c971b7fa 9260
8690e634
JK
9261#include <locale.h>
9262#include <string.h>
9263/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9264 <wchar.h>.
9265 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9266 included before <wchar.h>. */
9267#include <stddef.h>
9268#include <stdio.h>
9269#include <time.h>
9270#include <wchar.h>
9271int main ()
9272{
9273 int result = 0;
9274 int found_some_locale = 0;
9275 /* This fails on Solaris. */
9276 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9277 {
9278 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9279 mbstate_t state;
9280 wchar_t wc;
9281
9282 memset (&state, '\0', sizeof (mbstate_t));
9283 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9284 {
9285 input[1] = '\0';
9286 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9287 result |= 1;
9288 }
9289 found_some_locale = 1;
9290 }
9291 /* This fails on HP-UX 11.11. */
9292 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9293 {
9294 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9295 mbstate_t state;
9296 wchar_t wc;
9297
9298 memset (&state, '\0', sizeof (mbstate_t));
9299 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9300 {
9301 input[1] = '\0';
9302 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9303 result |= 2;
9304 }
9305 found_some_locale = 1;
9306 }
9307 /* This fails on native Windows. */
9308 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9309 {
9310 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9311 mbstate_t state;
9312 wchar_t wc;
9313
9314 memset (&state, '\0', sizeof (mbstate_t));
9315 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9316 {
9317 input[3] = '\0';
9318 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9319 result |= 4;
9320 }
9321 found_some_locale = 1;
9322 }
9323 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9324 {
9325 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9326 mbstate_t state;
9327 wchar_t wc;
9328
9329 memset (&state, '\0', sizeof (mbstate_t));
9330 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9331 {
9332 input[3] = '\0';
9333 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9334 result |= 8;
9335 }
9336 found_some_locale = 1;
9337 }
9338 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9339 {
9340 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9341 mbstate_t state;
9342 wchar_t wc;
9343
9344 memset (&state, '\0', sizeof (mbstate_t));
9345 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9346 {
9347 input[3] = '\0';
9348 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9349 result |= 16;
9350 }
9351 found_some_locale = 1;
9352 }
9353 return (found_some_locale ? result : 77);
9354}
9355_ACEOF
9356if ac_fn_c_try_run "$LINENO"; then :
9357 gl_cv_func_mbrtowc_retval=yes
9358else
9359 if test $? != 77; then
9360 gl_cv_func_mbrtowc_retval=no
9361 fi
c971b7fa 9362
8690e634
JK
9363fi
9364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9365 conftest.$ac_objext conftest.beam conftest.$ac_ext
9366fi
c971b7fa 9367
8690e634 9368 fi
c971b7fa 9369
8690e634
JK
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9372$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
9373
9374
9375
9376
8690e634
JK
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9378$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9379if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
9380 $as_echo_n "(cached) " >&6
9381else
8690e634
JK
9382
9383 case "$host_os" in
9384 # Guess no on Solaris 8 and 9.
9385 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9386 # Guess yes otherwise.
9387 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9388 esac
9389 if test $LOCALE_ZH_CN != none; then
9390 if test "$cross_compiling" = yes; then :
9391 :
c971b7fa
PA
9392else
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h. */
9395
8690e634 9396#include <locale.h>
c971b7fa 9397#include <string.h>
8690e634
JK
9398/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9399 <wchar.h>.
9400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9401 included before <wchar.h>. */
9402#include <stddef.h>
9403#include <stdio.h>
9404#include <time.h>
9405#include <wchar.h>
9406int main ()
c971b7fa 9407{
8690e634
JK
9408 /* This fails on Solaris 8 and 9. */
9409 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 9410 {
8690e634
JK
9411 mbstate_t state;
9412 wchar_t wc;
c971b7fa 9413
8690e634
JK
9414 memset (&state, '\0', sizeof (mbstate_t));
9415 if (mbrtowc (&wc, "", 1, &state) != 0)
9416 return 1;
9417 }
c971b7fa
PA
9418 return 0;
9419}
9420_ACEOF
9421if ac_fn_c_try_run "$LINENO"; then :
8690e634 9422 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 9423else
8690e634 9424 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
9425fi
9426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9427 conftest.$ac_objext conftest.beam conftest.$ac_ext
9428fi
9429
8690e634
JK
9430 fi
9431
c971b7fa 9432fi
8690e634
JK
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9434$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9435
9436 case "$gl_cv_func_mbrtowc_null_arg1" in
9437 *yes) ;;
9438 *)
9439$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9440
9441 REPLACE_MBRTOWC=1
9442 ;;
9443 esac
9444 case "$gl_cv_func_mbrtowc_null_arg2" in
9445 *yes) ;;
9446 *)
9447$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9448
9449 REPLACE_MBRTOWC=1
9450 ;;
9451 esac
9452 case "$gl_cv_func_mbrtowc_retval" in
9453 *yes) ;;
9454 *)
9455$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9456
9457 REPLACE_MBRTOWC=1
9458 ;;
9459 esac
9460 case "$gl_cv_func_mbrtowc_nul_retval" in
9461 *yes) ;;
9462 *)
9463$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9464
9465 REPLACE_MBRTOWC=1
9466 ;;
9467 esac
c971b7fa
PA
9468 fi
9469 fi
9470
8690e634 9471if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 9472
c971b7fa 9473
c971b7fa
PA
9474
9475
9476
9477
9478
9479
8690e634
JK
9480 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9481
9482
9483 :
c971b7fa
PA
9484
9485fi
c971b7fa 9486
8690e634
JK
9487
9488
9489
9490
9491 GNULIB_MBRTOWC=1
9492
9493
9494
9495
9496
9497$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
c971b7fa
PA
9510
9511 :
9512
9513
9514
9515
9516
c971b7fa 9517
8690e634
JK
9518 :
9519
9520
9521
c971b7fa 9522
c971b7fa 9523
8690e634 9524 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 9525
8690e634
JK
9526
9527
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9529$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9530if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532else
9533
9534 case "$host_os" in
9535 # Guess no on AIX and OSF/1.
9536 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9537 # Guess yes otherwise.
9538 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9539 esac
9540 if test $LOCALE_JA != none; then
9541 if test "$cross_compiling" = yes; then :
9542 :
c971b7fa
PA
9543else
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h. */
9546
8690e634
JK
9547#include <locale.h>
9548#include <string.h>
9549/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9550 <wchar.h>.
9551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9552 included before <wchar.h>. */
9553#include <stddef.h>
9554#include <stdio.h>
9555#include <time.h>
9556#include <wchar.h>
9557int main ()
c971b7fa 9558{
8690e634 9559 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 9560 {
8690e634
JK
9561 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9562 mbstate_t state;
9563 wchar_t wc;
9564
9565 memset (&state, '\0', sizeof (mbstate_t));
9566 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9567 if (mbsinit (&state))
9568 return 1;
c971b7fa 9569 }
c971b7fa
PA
9570 return 0;
9571}
9572_ACEOF
9573if ac_fn_c_try_run "$LINENO"; then :
8690e634 9574 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 9575else
8690e634 9576 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
9577fi
9578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9579 conftest.$ac_objext conftest.beam conftest.$ac_ext
9580fi
9581
8690e634 9582 fi
c971b7fa
PA
9583
9584fi
8690e634
JK
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9586$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
9587
9588
c971b7fa
PA
9589
9590
8690e634
JK
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9592$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9593if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
9594 $as_echo_n "(cached) " >&6
9595else
8690e634
JK
9596
9597 case "$host_os" in
9598 # Guess no on Solaris 8.
9599 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9600 # Guess yes otherwise.
9601 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9602 esac
9603 if test $LOCALE_ZH_CN != none; then
9604 if test "$cross_compiling" = yes; then :
9605 :
9606else
c971b7fa
PA
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h. */
8690e634
JK
9609
9610#include <locale.h>
9611#include <stdlib.h>
9612#include <string.h>
9613/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9614 <wchar.h>.
9615 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9616 included before <wchar.h>. */
c971b7fa 9617#include <stddef.h>
8690e634
JK
9618#include <stdio.h>
9619#include <time.h>
9620#include <wchar.h>
9621int main ()
c971b7fa 9622{
8690e634
JK
9623 /* This fails on Solaris 8:
9624 mbrtowc returns 2, and sets wc to 0x00F0.
9625 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9626 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9627 {
9628 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9629 mbstate_t state;
9630 wchar_t wc;
9631
9632 memset (&state, '\0', sizeof (mbstate_t));
9633 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9634 && mbtowc (&wc, input + 3, 6) == 4)
9635 return 1;
9636 }
c971b7fa
PA
9637 return 0;
9638}
9639_ACEOF
8690e634
JK
9640if ac_fn_c_try_run "$LINENO"; then :
9641 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 9642else
8690e634 9643 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 9644fi
8690e634
JK
9645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9646 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9647fi
c971b7fa 9648
8690e634
JK
9649 fi
9650
9651fi
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9653$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 9654
8690e634
JK
9655 REPLACE_MBSTATE_T=0
9656 case "$gl_cv_func_mbrtowc_incomplete_state" in
9657 *yes) ;;
9658 *) REPLACE_MBSTATE_T=1 ;;
9659 esac
9660 case "$gl_cv_func_mbrtowc_sanitycheck" in
9661 *yes) ;;
9662 *) REPLACE_MBSTATE_T=1 ;;
9663 esac
9664 else
9665 REPLACE_MBSTATE_T=1
c971b7fa
PA
9666 fi
9667
c971b7fa 9668
8690e634
JK
9669
9670 :
9671
9672
9673
9674
9675
9676 if test $ac_cv_func_mbsinit = no; then
9677 HAVE_MBSINIT=0
9678 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9679/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9680 <wchar.h>.
9681 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9682 included before <wchar.h>. */
9683#include <stddef.h>
9684#include <stdio.h>
9685#include <time.h>
9686#include <wchar.h>
9687
9688"
9689if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
9690 ac_have_decl=1
9691else
9692 ac_have_decl=0
c971b7fa 9693fi
c971b7fa 9694
8690e634
JK
9695cat >>confdefs.h <<_ACEOF
9696#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 9697_ACEOF
c971b7fa 9698
8690e634
JK
9699 if test $ac_cv_have_decl_mbsinit = yes; then
9700 REPLACE_MBSINIT=1
9701 fi
9702 else
9703 if test $REPLACE_MBSTATE_T = 1; then
9704 REPLACE_MBSINIT=1
9705 else
9706 case "$host_os" in
9707 mingw*) REPLACE_MBSINIT=1 ;;
9708 esac
9709 fi
9710 fi
c971b7fa 9711
8690e634 9712if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
9713
9714
9715
9716
9717
9718
9719
9720
8690e634 9721 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
9722
9723
8690e634 9724 :
c971b7fa 9725
8690e634 9726fi
c971b7fa 9727
c971b7fa 9728
c971b7fa 9729
c971b7fa
PA
9730
9731
8690e634 9732 GNULIB_MBSINIT=1
c971b7fa 9733
c971b7fa
PA
9734
9735
9736
9737
8690e634 9738$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
9739
9740
c971b7fa 9741
c971b7fa 9742
c971b7fa
PA
9743
9744
9745
c971b7fa 9746
c971b7fa
PA
9747
9748
9749
9750
8690e634 9751 :
c971b7fa
PA
9752
9753
9754
9755
9756
c971b7fa 9757
8690e634
JK
9758 :
9759
9760
9761
9762
9763
9764 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
9765
9766
9767
8690e634
JK
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9769$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9770if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772else
c971b7fa 9773
8690e634
JK
9774 case "$host_os" in
9775 # Guess no on AIX and OSF/1.
9776 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9777 # Guess yes otherwise.
9778 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 9779 esac
8690e634
JK
9780 if test $LOCALE_JA != none; then
9781 if test "$cross_compiling" = yes; then :
9782 :
9783else
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 9785/* end confdefs.h. */
c971b7fa 9786
8690e634
JK
9787#include <locale.h>
9788#include <string.h>
9789/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9790 <wchar.h>.
9791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9792 included before <wchar.h>. */
9793#include <stddef.h>
9794#include <stdio.h>
9795#include <time.h>
9796#include <wchar.h>
9797int main ()
9798{
9799 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9800 {
9801 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9802 mbstate_t state;
9803 wchar_t wc;
9804
9805 memset (&state, '\0', sizeof (mbstate_t));
9806 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9807 if (mbsinit (&state))
9808 return 1;
9809 }
c971b7fa
PA
9810 return 0;
9811}
9812_ACEOF
8690e634
JK
9813if ac_fn_c_try_run "$LINENO"; then :
9814 gl_cv_func_mbrtowc_incomplete_state=yes
9815else
9816 gl_cv_func_mbrtowc_incomplete_state=no
9817fi
9818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9819 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9820fi
c971b7fa 9821
8690e634 9822 fi
c971b7fa 9823
8690e634
JK
9824fi
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9826$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 9827
8690e634
JK
9828
9829
9830
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9832$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9833if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
9834 $as_echo_n "(cached) " >&6
9835else
8690e634
JK
9836
9837 case "$host_os" in
9838 # Guess no on Solaris 8.
9839 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9840 # Guess yes otherwise.
9841 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9842 esac
9843 if test $LOCALE_ZH_CN != none; then
9844 if test "$cross_compiling" = yes; then :
9845 :
9846else
c971b7fa
PA
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h. */
c971b7fa 9849
8690e634
JK
9850#include <locale.h>
9851#include <stdlib.h>
9852#include <string.h>
9853/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9854 <wchar.h>.
9855 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9856 included before <wchar.h>. */
9857#include <stddef.h>
9858#include <stdio.h>
9859#include <time.h>
9860#include <wchar.h>
9861int main ()
c971b7fa 9862{
8690e634
JK
9863 /* This fails on Solaris 8:
9864 mbrtowc returns 2, and sets wc to 0x00F0.
9865 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9866 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9867 {
9868 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9869 mbstate_t state;
9870 wchar_t wc;
9871
9872 memset (&state, '\0', sizeof (mbstate_t));
9873 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9874 && mbtowc (&wc, input + 3, 6) == 4)
9875 return 1;
9876 }
c971b7fa
PA
9877 return 0;
9878}
9879_ACEOF
8690e634
JK
9880if ac_fn_c_try_run "$LINENO"; then :
9881 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 9882else
8690e634 9883 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 9884fi
8690e634
JK
9885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9886 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 9887fi
8690e634
JK
9888
9889 fi
9890
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9893$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9894
9895 REPLACE_MBSTATE_T=0
9896 case "$gl_cv_func_mbrtowc_incomplete_state" in
9897 *yes) ;;
9898 *) REPLACE_MBSTATE_T=1 ;;
9899 esac
9900 case "$gl_cv_func_mbrtowc_sanitycheck" in
9901 *yes) ;;
9902 *) REPLACE_MBSTATE_T=1 ;;
9903 esac
c971b7fa 9904 else
8690e634 9905 REPLACE_MBSTATE_T=1
c971b7fa
PA
9906 fi
9907
9908
c971b7fa 9909
8690e634 9910 :
c971b7fa 9911
c971b7fa 9912
c971b7fa 9913
c971b7fa 9914
8690e634
JK
9915
9916 if test $ac_cv_func_mbsrtowcs = no; then
9917 HAVE_MBSRTOWCS=0
9918 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
9919/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9920 <wchar.h>.
9921 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9922 included before <wchar.h>. */
9923#include <stddef.h>
9924#include <stdio.h>
9925#include <time.h>
9926#include <wchar.h>
9927
9928"
9929if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
9930 ac_have_decl=1
c971b7fa 9931else
8690e634 9932 ac_have_decl=0
c971b7fa 9933fi
c971b7fa 9934
8690e634
JK
9935cat >>confdefs.h <<_ACEOF
9936#define HAVE_DECL_MBSRTOWCS $ac_have_decl
9937_ACEOF
c971b7fa 9938
8690e634
JK
9939 if test $ac_cv_have_decl_mbsrtowcs = yes; then
9940 REPLACE_MBSRTOWCS=1
9941 fi
c971b7fa 9942 else
8690e634
JK
9943 if test $REPLACE_MBSTATE_T = 1; then
9944 REPLACE_MBSRTOWCS=1
9945 else
c971b7fa 9946
8690e634
JK
9947
9948
9949
9950
9951
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
9953$as_echo_n "checking whether mbsrtowcs works... " >&6; }
9954if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
9955 $as_echo_n "(cached) " >&6
9956else
8690e634
JK
9957
9958 case "$host_os" in
9959 # Guess no on HP-UX, Solaris, mingw.
9960 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
9961 # Guess yes otherwise.
9962 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
9963 esac
9964 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
9965 if test "$cross_compiling" = yes; then :
9966 :
9967else
c971b7fa
PA
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h. */
c971b7fa 9970
8690e634
JK
9971#include <locale.h>
9972#include <string.h>
9973/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9974 <wchar.h>.
9975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9976 included before <wchar.h>. */
9977#include <stddef.h>
9978#include <stdio.h>
9979#include <time.h>
9980#include <wchar.h>
9981int main ()
c971b7fa 9982{
8690e634
JK
9983 int result = 0;
9984 /* Test whether the function supports a NULL destination argument.
9985 This fails on native Windows. */
9986 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
9987 {
9988 const char input[] = "\337er";
9989 const char *src = input;
9990 mbstate_t state;
c971b7fa 9991
8690e634
JK
9992 memset (&state, '\0', sizeof (mbstate_t));
9993 if (mbsrtowcs (NULL, &src, 1, &state) != 3
9994 || src != input)
9995 result |= 1;
9996 }
9997 /* Test whether the function works when started with a conversion state
9998 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
9999 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
10000 {
10001 const char input[] = "B\303\274\303\237er";
10002 mbstate_t state;
10003
10004 memset (&state, '\0', sizeof (mbstate_t));
10005 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10006 if (!mbsinit (&state))
10007 {
10008 const char *src = input + 2;
10009 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10010 result |= 2;
10011 }
10012 }
10013 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10014 {
10015 const char input[] = "<\306\374\313\334\270\354>";
10016 mbstate_t state;
10017
10018 memset (&state, '\0', sizeof (mbstate_t));
10019 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
10020 if (!mbsinit (&state))
10021 {
10022 const char *src = input + 4;
10023 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
10024 result |= 4;
10025 }
10026 }
10027 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10028 {
10029 const char input[] = "B\250\271\201\060\211\070er";
10030 mbstate_t state;
10031
10032 memset (&state, '\0', sizeof (mbstate_t));
10033 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10034 if (!mbsinit (&state))
10035 {
10036 const char *src = input + 2;
10037 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10038 result |= 8;
10039 }
10040 }
10041 return result;
c971b7fa
PA
10042}
10043_ACEOF
8690e634
JK
10044if ac_fn_c_try_run "$LINENO"; then :
10045 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 10046else
8690e634 10047 gl_cv_func_mbsrtowcs_works=no
c971b7fa 10048fi
8690e634
JK
10049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10050 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 10051fi
8690e634
JK
10052
10053 fi
10054
10055fi
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10057$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10058
10059 case "$gl_cv_func_mbsrtowcs_works" in
10060 *yes) ;;
10061 *) REPLACE_MBSRTOWCS=1 ;;
10062 esac
10063 fi
c971b7fa
PA
10064 fi
10065
8690e634 10066if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 10067
c971b7fa 10068
c971b7fa 10069
c971b7fa 10070
c971b7fa 10071
c971b7fa 10072
c971b7fa
PA
10073
10074
8690e634
JK
10075 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10086
10087
10088 :
10089
10090fi
10091
10092
10093
10094
10095
10096 GNULIB_MBSRTOWCS=1
10097
10098
10099
10100
10101
10102$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
10103
10104
10105
10106
10107if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
10108
10109
10110
10111
10112
10113
10114
10115
10116 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10117
10118
10119 for ac_header in bp-sym.h
10120do :
10121 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10122if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10123 cat >>confdefs.h <<_ACEOF
10124#define HAVE_BP_SYM_H 1
10125_ACEOF
10126
10127fi
10128
10129done
10130
10131
10132fi
10133
10134
10135
10136
10137
10138 GNULIB_MEMCHR=1
10139
10140
10141
10142
10143
10144$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10145
10146
10147
10148
10149
10150 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10152$as_echo_n "checking whether memmem works in linear time... " >&6; }
10153if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155else
10156 if test "$cross_compiling" = yes; then :
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158/* end confdefs.h. */
10159
10160#include <features.h>
10161#ifdef __GNU_LIBRARY__
10162 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10163 && !defined __UCLIBC__
10164 Lucky user
10165 #endif
10166#endif
10167#ifdef __CYGWIN__
10168 #include <cygwin/version.h>
10169 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10170 Lucky user
10171 #endif
10172#endif
10173
10174_ACEOF
10175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10176 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 10177 gl_cv_func_memmem_works_fast="guessing yes"
c971b7fa
PA
10178else
10179 gl_cv_func_memmem_works_fast="guessing no"
10180fi
10181rm -f conftest*
10182
10183
10184else
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h. */
10187
10188#include <signal.h> /* for signal */
10189#include <string.h> /* for memmem */
10190#include <stdlib.h> /* for malloc */
10191#include <unistd.h> /* for alarm */
10192static void quit (int sig) { exit (sig + 128); }
10193
10194int
10195main ()
10196{
10197
10198 int result = 0;
10199 size_t m = 1000000;
10200 char *haystack = (char *) malloc (2 * m + 1);
10201 char *needle = (char *) malloc (m + 1);
10202 /* Failure to compile this test due to missing alarm is okay,
10203 since all such platforms (mingw) also lack memmem. */
10204 signal (SIGALRM, quit);
10205 alarm (5);
10206 /* Check for quadratic performance. */
10207 if (haystack && needle)
10208 {
10209 memset (haystack, 'A', 2 * m);
10210 haystack[2 * m] = 'B';
10211 memset (needle, 'A', m);
10212 needle[m] = 'B';
10213 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10214 result |= 1;
10215 }
10216 return result;
10217
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222if ac_fn_c_try_run "$LINENO"; then :
10223 gl_cv_func_memmem_works_fast=yes
10224else
10225 gl_cv_func_memmem_works_fast=no
10226fi
10227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228 conftest.$ac_objext conftest.beam conftest.$ac_ext
10229fi
10230
10231
10232fi
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10234$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
40a73391
JK
10235 case "$gl_cv_func_memmem_works_fast" in
10236 *yes) ;;
10237 *)
10238 REPLACE_MEMMEM=1
10239 ;;
10240 esac
c971b7fa
PA
10241 fi
10242
10243if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10244
10245
10246
10247
10248
10249
10250
10251
10252 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10253
10254fi
10255
10256
10257
10258
10259 for ac_func in memmem
10260do :
10261 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10262if test "x$ac_cv_func_memmem" = x""yes; then :
10263 cat >>confdefs.h <<_ACEOF
10264#define HAVE_MEMMEM 1
10265_ACEOF
10266
10267fi
10268done
10269
10270 if test $ac_cv_func_memmem = yes; then
10271 HAVE_MEMMEM=1
10272 else
10273 HAVE_MEMMEM=0
10274 fi
10275
10276 :
10277
10278
10279
10280
10281
10282 if test $ac_cv_have_decl_memmem = no; then
10283 HAVE_DECL_MEMMEM=0
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10286$as_echo_n "checking whether memmem works... " >&6; }
10287if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289else
10290 if test "$cross_compiling" = yes; then :
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292/* end confdefs.h. */
10293
10294#ifdef __GNU_LIBRARY__
10295 #include <features.h>
10296 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10297 || __GLIBC_MINOR__ > 12)) \
10298 || (__GLIBC__ > 2)) \
10299 || defined __UCLIBC__
10300 Lucky user
10301 #endif
10302#elif defined __CYGWIN__
10303 #include <cygwin/version.h>
10304 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10305 Lucky user
10306 #endif
10307#else
10308 Lucky user
10309#endif
10310
10311_ACEOF
10312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 10314 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
10315else
10316 gl_cv_func_memmem_works_always="guessing no"
10317fi
10318rm -f conftest*
10319
10320
10321else
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h. */
10324
10325#include <string.h> /* for memmem */
10326#define P "_EF_BF_BD"
10327#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10328#define NEEDLE P P P P P
10329
10330int
10331main ()
10332{
10333
10334 int result = 0;
10335 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10336 result |= 1;
10337 /* Check for empty needle behavior. */
10338 {
10339 const char *haystack = "AAA";
10340 if (memmem (haystack, 3, NULL, 0) != haystack)
10341 result |= 2;
10342 }
10343 return result;
10344
10345 ;
10346 return 0;
10347}
10348_ACEOF
10349if ac_fn_c_try_run "$LINENO"; then :
10350 gl_cv_func_memmem_works_always=yes
10351else
10352 gl_cv_func_memmem_works_always=no
10353fi
10354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10355 conftest.$ac_objext conftest.beam conftest.$ac_ext
10356fi
10357
10358
10359fi
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10361$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
10362 case "$gl_cv_func_memmem_works_always" in
10363 *yes) ;;
10364 *)
10365 REPLACE_MEMMEM=1
10366 ;;
10367 esac
c971b7fa
PA
10368 fi
10369 :
10370
10371if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10372
10373
10374
10375
10376
10377
10378
10379
10380 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10381
10382fi
10383
10384
10385
10386
10387
10388 GNULIB_MEMMEM=1
10389
10390
10391
10392
10393
8690e634
JK
10394$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10395
10396
10397
10398
10399
10400
10401
10402 # Define two additional variables used in the Makefile substitution.
10403
10404 if test "$ac_cv_header_stdbool_h" = yes; then
10405 STDBOOL_H=''
10406 else
10407 STDBOOL_H='stdbool.h'
10408 fi
10409
10410 if test -n "$STDBOOL_H"; then
10411 GL_GENERATE_STDBOOL_H_TRUE=
10412 GL_GENERATE_STDBOOL_H_FALSE='#'
10413else
10414 GL_GENERATE_STDBOOL_H_TRUE='#'
10415 GL_GENERATE_STDBOOL_H_FALSE=
10416fi
10417
10418
10419 if test "$ac_cv_type__Bool" = yes; then
10420 HAVE__BOOL=1
10421 else
10422 HAVE__BOOL=0
10423 fi
10424
10425
10426
10427
10428
10429 STDDEF_H=
10430 if test $gt_cv_c_wchar_t = no; then
10431 HAVE_WCHAR_T=0
10432 STDDEF_H=stddef.h
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10435$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10436if test "${gl_cv_decl_null_works+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438else
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h. */
10441#include <stddef.h>
10442 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10443
10444int
10445main ()
10446{
10447
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452if ac_fn_c_try_compile "$LINENO"; then :
10453 gl_cv_decl_null_works=yes
10454else
10455 gl_cv_decl_null_works=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10460$as_echo "$gl_cv_decl_null_works" >&6; }
10461 if test $gl_cv_decl_null_works = no; then
10462 REPLACE_NULL=1
10463 STDDEF_H=stddef.h
10464 fi
10465
10466 if test -n "$STDDEF_H"; then
10467 GL_GENERATE_STDDEF_H_TRUE=
10468 GL_GENERATE_STDDEF_H_FALSE='#'
10469else
10470 GL_GENERATE_STDDEF_H_TRUE='#'
10471 GL_GENERATE_STDDEF_H_FALSE=
10472fi
10473
10474 if test -n "$STDDEF_H"; then
10475
10476
10477
10478
10479
10480
10481
10482
10483 if test $gl_cv_have_include_next = yes; then
10484 gl_cv_next_stddef_h='<'stddef.h'>'
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10487$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10488if test "${gl_cv_next_stddef_h+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490else
10491
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h. */
10494#include <stddef.h>
10495
10496_ACEOF
10497 case "$host_os" in
10498 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10499 *) gl_absname_cpp="$ac_cpp" ;;
10500 esac
10501
10502 case "$host_os" in
10503 mingw*)
10504 gl_dirsep_regex='[/\\]'
10505 ;;
10506 *)
10507 gl_dirsep_regex='\/'
10508 ;;
10509 esac
10510 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10511
10512 gl_header_literal_regex=`echo 'stddef.h' \
10513 | sed -e "$gl_make_literal_regex_sed"`
10514 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10516 s|^/[^/]|//&|
10517 p
10518 q
10519 }'
10520 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10521 sed -n "$gl_absolute_header_sed"`'"'
10522
10523
10524fi
10525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10526$as_echo "$gl_cv_next_stddef_h" >&6; }
10527 fi
10528 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10529
10530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10532 gl_next_as_first_directive='<'stddef.h'>'
10533 else
10534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10535 gl_next_as_first_directive=$gl_cv_next_stddef_h
10536 fi
10537 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10538
10539
10540
10541
10542 fi
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557 :
10558
10559
10560
10561
10562
10563
10564
10565
10566 if test $gl_cv_have_include_next = yes; then
10567 gl_cv_next_wchar_h='<'wchar.h'>'
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10570$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10571if test "${gl_cv_next_wchar_h+set}" = set; then :
10572 $as_echo_n "(cached) " >&6
10573else
10574
10575 if test $ac_cv_header_wchar_h = yes; then
10576
10577
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h. */
10580#include <wchar.h>
10581
10582_ACEOF
10583 case "$host_os" in
10584 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10585 *) gl_absname_cpp="$ac_cpp" ;;
10586 esac
10587
10588 case "$host_os" in
10589 mingw*)
10590 gl_dirsep_regex='[/\\]'
10591 ;;
10592 *)
10593 gl_dirsep_regex='\/'
10594 ;;
10595 esac
10596 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10597
10598 gl_header_literal_regex=`echo 'wchar.h' \
10599 | sed -e "$gl_make_literal_regex_sed"`
10600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10602 s|^/[^/]|//&|
10603 p
10604 q
10605 }'
10606 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10607 sed -n "$gl_absolute_header_sed"`'"'
10608 else
10609 gl_cv_next_wchar_h='<'wchar.h'>'
10610 fi
10611
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10615$as_echo "$gl_cv_next_wchar_h" >&6; }
10616 fi
10617 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10618
10619 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10621 gl_next_as_first_directive='<'wchar.h'>'
10622 else
10623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10624 gl_next_as_first_directive=$gl_cv_next_wchar_h
10625 fi
10626 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10627
10628
10629
10630
10631 if test $ac_cv_header_wchar_h = yes; then
10632 HAVE_WCHAR_H=1
10633 else
10634 HAVE_WCHAR_H=0
10635 fi
10636
c971b7fa
PA
10637
10638
10639
10640
8690e634
JK
10641 if test $gt_cv_c_wint_t = yes; then
10642 HAVE_WINT_T=1
10643 else
10644 HAVE_WINT_T=0
10645 fi
c971b7fa
PA
10646
10647
10648
8690e634
JK
10649 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
10650 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10652$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10653if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
10654 $as_echo_n "(cached) " >&6
10655else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657/* end confdefs.h. */
8690e634
JK
10658
10659/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10660 <wchar.h>.
10661 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10662 included before <wchar.h>. */
10663#if !(defined __GLIBC__ && !defined __UCLIBC__)
10664# include <stddef.h>
10665# include <stdio.h>
10666# include <time.h>
10667#endif
10668#include <wchar.h>
c971b7fa
PA
10669
10670int
10671main ()
10672{
8690e634
JK
10673#undef $gl_func
10674 (void) $gl_func;
c971b7fa
PA
10675 ;
10676 return 0;
10677}
10678_ACEOF
10679if ac_fn_c_try_compile "$LINENO"; then :
8690e634 10680 eval "$as_gl_Symbol=yes"
c971b7fa 10681else
8690e634 10682 eval "$as_gl_Symbol=no"
c971b7fa
PA
10683fi
10684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685fi
8690e634
JK
10686eval ac_res=\$$as_gl_Symbol
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10688$as_echo "$ac_res" >&6; }
10689 eval as_val=\$$as_gl_Symbol
10690 if test "x$as_val" = x""yes; then :
10691 cat >>confdefs.h <<_ACEOF
10692#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10693_ACEOF
c971b7fa 10694
8690e634 10695 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 10696fi
8690e634
JK
10697 done
10698
10699
10700
10701
10702
10703
10704
10705 :
10706
10707
10708
10709
10710
10711 if test $ac_cv_func_iswcntrl = yes; then
10712 HAVE_ISWCNTRL=1
10713 else
10714 HAVE_ISWCNTRL=0
10715 fi
10716
10717
10718
10719
10720
10721 if test $gt_cv_c_wint_t = yes; then
10722 HAVE_WINT_T=1
10723 else
10724 HAVE_WINT_T=0
10725 fi
10726
10727
10728
10729
10730
10731
c971b7fa 10732
8690e634
JK
10733
10734 :
c971b7fa
PA
10735
10736
10737
10738
10739
10740
10741
10742
10743 if test $gl_cv_have_include_next = yes; then
8690e634 10744 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 10745 else
8690e634
JK
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10747$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10748if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
10749 $as_echo_n "(cached) " >&6
10750else
10751
8690e634
JK
10752 if test $ac_cv_header_wctype_h = yes; then
10753
10754
c971b7fa
PA
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756/* end confdefs.h. */
8690e634 10757#include <wctype.h>
c971b7fa
PA
10758
10759_ACEOF
10760 case "$host_os" in
10761 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10762 *) gl_absname_cpp="$ac_cpp" ;;
10763 esac
10764
10765 case "$host_os" in
10766 mingw*)
10767 gl_dirsep_regex='[/\\]'
10768 ;;
10769 *)
10770 gl_dirsep_regex='\/'
10771 ;;
10772 esac
10773 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10774
8690e634 10775 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
10776 | sed -e "$gl_make_literal_regex_sed"`
10777 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10778 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10779 s|^/[^/]|//&|
10780 p
10781 q
10782 }'
8690e634 10783 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 10784 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
10785 else
10786 gl_cv_next_wctype_h='<'wctype.h'>'
10787 fi
c971b7fa
PA
10788
10789
10790fi
8690e634
JK
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10792$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 10793 fi
8690e634 10794 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
10795
10796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 10798 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
10799 else
10800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 10801 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 10802 fi
8690e634
JK
10803 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10804
10805
10806
10807
10808 if test $ac_cv_header_wctype_h = yes; then
10809 if test $ac_cv_func_iswcntrl = yes; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10811$as_echo_n "checking whether iswcntrl works... " >&6; }
10812if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10814else
10815
10816 if test "$cross_compiling" = yes; then :
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h. */
10819#include <stdlib.h>
10820 #if __GNU_LIBRARY__ == 1
10821 Linux libc5 i18n is broken.
10822 #endif
10823int
10824main ()
10825{
10826
10827 ;
10828 return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_compile "$LINENO"; then :
10832 gl_cv_func_iswcntrl_works="guessing yes"
10833else
10834 gl_cv_func_iswcntrl_works="guessing no"
10835fi
10836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837
10838else
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840/* end confdefs.h. */
10841
10842 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10843 included before <wchar.h>.
10844 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10845 must be included before <wchar.h>. */
10846 #include <stddef.h>
10847 #include <stdio.h>
10848 #include <time.h>
10849 #include <wchar.h>
10850 #include <wctype.h>
10851 int main () { return iswprint ('x') == 0; }
10852
10853_ACEOF
10854if ac_fn_c_try_run "$LINENO"; then :
10855 gl_cv_func_iswcntrl_works=yes
10856else
10857 gl_cv_func_iswcntrl_works=no
10858fi
10859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10860 conftest.$ac_objext conftest.beam conftest.$ac_ext
10861fi
10862
10863
10864fi
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10866$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10867 fi
10868 HAVE_WCTYPE_H=1
10869 else
10870 HAVE_WCTYPE_H=0
10871 fi
10872
10873
10874 case "$gl_cv_func_iswcntrl_works" in
10875 *yes) REPLACE_ISWCNTRL=0 ;;
10876 *) REPLACE_ISWCNTRL=1 ;;
10877 esac
10878
10879
10880 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10881 :
10882 fi
10883
10884 if test $REPLACE_ISWCNTRL = 1; then
10885 REPLACE_TOWLOWER=1
10886 else
10887 for ac_func in towlower
10888do :
10889 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10890if test "x$ac_cv_func_towlower" = x""yes; then :
10891 cat >>confdefs.h <<_ACEOF
10892#define HAVE_TOWLOWER 1
10893_ACEOF
10894
10895fi
10896done
10897
10898 if test $ac_cv_func_towlower = yes; then
10899 REPLACE_TOWLOWER=0
10900 else
10901 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10902 included before <wchar.h>.
10903 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10904 must be included before <wchar.h>. */
10905 #include <stddef.h>
10906 #include <stdio.h>
10907 #include <time.h>
10908 #include <wchar.h>
10909 #if HAVE_WCTYPE_H
10910 # include <wctype.h>
10911 #endif
10912
10913"
10914if test "x$ac_cv_have_decl_towlower" = x""yes; then :
10915 ac_have_decl=1
10916else
10917 ac_have_decl=0
10918fi
10919
10920cat >>confdefs.h <<_ACEOF
10921#define HAVE_DECL_TOWLOWER $ac_have_decl
10922_ACEOF
10923
10924 if test $ac_cv_have_decl_towlower = yes; then
10925 REPLACE_TOWLOWER=1
10926 else
10927 REPLACE_TOWLOWER=0
10928 fi
10929 fi
10930 fi
10931
10932
10933 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10934 :
10935 fi
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10938$as_echo_n "checking for wctype_t... " >&6; }
10939if test "${gl_cv_type_wctype_t+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941else
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h. */
10944/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10945 included before <wchar.h>.
10946 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10947 must be included before <wchar.h>. */
10948 #include <stddef.h>
10949 #include <stdio.h>
10950 #include <time.h>
10951 #include <wchar.h>
10952 #if HAVE_WCTYPE_H
10953 # include <wctype.h>
10954 #endif
10955 wctype_t a;
10956
10957int
10958main ()
10959{
10960
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965if ac_fn_c_try_compile "$LINENO"; then :
10966 gl_cv_type_wctype_t=yes
10967else
10968 gl_cv_type_wctype_t=no
10969fi
10970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 10971
8690e634
JK
10972fi
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10974$as_echo "$gl_cv_type_wctype_t" >&6; }
10975 if test $gl_cv_type_wctype_t = no; then
10976 HAVE_WCTYPE_T=0
10977 fi
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10980$as_echo_n "checking for wctrans_t... " >&6; }
10981if test "${gl_cv_type_wctrans_t+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h. */
10986/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10987 included before <wchar.h>.
10988 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10989 must be included before <wchar.h>. */
10990 #include <stddef.h>
10991 #include <stdio.h>
10992 #include <time.h>
10993 #include <wchar.h>
10994 #include <wctype.h>
10995 wctrans_t a;
c971b7fa 10996
8690e634
JK
10997int
10998main ()
10999{
c971b7fa 11000
8690e634
JK
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_compile "$LINENO"; then :
11006 gl_cv_type_wctrans_t=yes
11007else
11008 gl_cv_type_wctrans_t=no
11009fi
11010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11011
8690e634
JK
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
11014$as_echo "$gl_cv_type_wctrans_t" >&6; }
11015 if test $gl_cv_type_wctrans_t = no; then
11016 HAVE_WCTRANS_T=0
c971b7fa
PA
11017 fi
11018
11019
8690e634
JK
11020 for gl_func in wctype iswctype wctrans towctrans ; do
11021 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11023$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11024if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11025 $as_echo_n "(cached) " >&6
11026else
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h. */
11029
11030/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11031 <wchar.h>.
11032 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11033 included before <wchar.h>. */
11034#if !(defined __GLIBC__ && !defined __UCLIBC__)
11035# include <stddef.h>
11036# include <stdio.h>
11037# include <time.h>
11038# include <wchar.h>
11039#endif
11040#include <wctype.h>
11041
11042int
11043main ()
11044{
11045#undef $gl_func
11046 (void) $gl_func;
11047 ;
11048 return 0;
11049}
11050_ACEOF
11051if ac_fn_c_try_compile "$LINENO"; then :
11052 eval "$as_gl_Symbol=yes"
11053else
11054 eval "$as_gl_Symbol=no"
11055fi
11056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057fi
11058eval ac_res=\$$as_gl_Symbol
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11060$as_echo "$ac_res" >&6; }
11061 eval as_val=\$$as_gl_Symbol
11062 if test "x$as_val" = x""yes; then :
11063 cat >>confdefs.h <<_ACEOF
11064#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11065_ACEOF
c971b7fa 11066
8690e634
JK
11067 eval ac_cv_have_decl_$gl_func=yes
11068fi
11069 done
c971b7fa
PA
11070
11071
11072 # End of code from modules
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 gltests_libdeps=
11083 gltests_ltlibdeps=
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093 gl_source_base='tests'
11094 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
11095
11096 gl_module_indicator_condition=$gltests_WITNESS
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106 LIBGNU_LIBDEPS="$gl_libdeps"
11107
11108 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11109
11110
11111
11112# We don't use automake, but gnulib does. This line lets us generate
11113# its Makefile.in.
11114am__api_version='1.11'
11115
11116# Find a good install program. We prefer a C program (faster),
11117# so one script is as good as another. But avoid the broken or
11118# incompatible versions:
11119# SysV /etc/install, /usr/sbin/install
11120# SunOS /usr/etc/install
11121# IRIX /sbin/install
11122# AIX /bin/install
11123# AmigaOS /C/install, which installs bootblocks on floppy discs
11124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11127# OS/2's system install, which has a completely different semantic
11128# ./install, which can be erroneously created by make from ./install.sh.
11129# Reject install programs that cannot install multiple files.
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11131$as_echo_n "checking for a BSD-compatible install... " >&6; }
11132if test -z "$INSTALL"; then
11133if test "${ac_cv_path_install+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135else
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 # Account for people who put trailing slashes in PATH elements.
11142case $as_dir/ in #((
11143 ./ | .// | /[cC]/* | \
11144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11146 /usr/ucb/* ) ;;
11147 *)
11148 # OSF1 and SCO ODT 3.0 have their own names for install.
11149 # Don't use installbsd from OSF since it installs stuff as root
11150 # by default.
11151 for ac_prog in ginstall scoinst install; do
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11154 if test $ac_prog = install &&
11155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11156 # AIX install. It has an incompatible calling convention.
11157 :
11158 elif test $ac_prog = install &&
11159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11160 # program-specific install script used by HP pwplus--don't use.
11161 :
11162 else
11163 rm -rf conftest.one conftest.two conftest.dir
11164 echo one > conftest.one
11165 echo two > conftest.two
11166 mkdir conftest.dir
11167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11168 test -s conftest.one && test -s conftest.two &&
11169 test -s conftest.dir/conftest.one &&
11170 test -s conftest.dir/conftest.two
11171 then
11172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11173 break 3
11174 fi
11175 fi
11176 fi
11177 done
11178 done
11179 ;;
11180esac
11181
11182 done
11183IFS=$as_save_IFS
11184
11185rm -rf conftest.one conftest.two conftest.dir
11186
11187fi
11188 if test "${ac_cv_path_install+set}" = set; then
11189 INSTALL=$ac_cv_path_install
11190 else
11191 # As a last resort, use the slow shell script. Don't cache a
11192 # value for INSTALL within a source directory, because that will
11193 # break other packages using the cache if that directory is
11194 # removed, or if the value is a relative name.
11195 INSTALL=$ac_install_sh
11196 fi
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11199$as_echo "$INSTALL" >&6; }
11200
11201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11202# It thinks the first close brace ends the variable substitution.
11203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11204
11205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11206
11207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11208
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11210$as_echo_n "checking whether build environment is sane... " >&6; }
11211# Just in case
11212sleep 1
11213echo timestamp > conftest.file
11214# Reject unsafe characters in $srcdir or the absolute working directory
11215# name. Accept space and tab only in the latter.
11216am_lf='
11217'
11218case `pwd` in
11219 *[\\\"\#\$\&\'\`$am_lf]*)
11220 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
11221esac
11222case $srcdir in
11223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11224 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11225esac
11226
11227# Do `set' in a subshell so we don't clobber the current shell's
11228# arguments. Must try -L first in case configure is actually a
11229# symlink; some systems play weird games with the mod time of symlinks
11230# (eg FreeBSD returns the mod time of the symlink's containing
11231# directory).
11232if (
11233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11234 if test "$*" = "X"; then
11235 # -L didn't work.
11236 set X `ls -t "$srcdir/configure" conftest.file`
11237 fi
11238 rm -f conftest.file
11239 if test "$*" != "X $srcdir/configure conftest.file" \
11240 && test "$*" != "X conftest.file $srcdir/configure"; then
11241
11242 # If neither matched, then we have a broken ls. This can happen
11243 # if, for instance, CONFIG_SHELL is bash and it inherits a
11244 # broken ls alias from the environment. This has actually
11245 # happened. Such a system could not be considered "sane".
11246 as_fn_error "ls -t appears to fail. Make sure there is not a broken
11247alias in your environment" "$LINENO" 5
11248 fi
11249
11250 test "$2" = conftest.file
11251 )
11252then
11253 # Ok.
11254 :
11255else
11256 as_fn_error "newly created file is older than distributed files!
11257Check your system clock" "$LINENO" 5
11258fi
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260$as_echo "yes" >&6; }
11261test "$program_prefix" != NONE &&
11262 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11263# Use a double $ so make ignores it.
11264test "$program_suffix" != NONE &&
11265 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11266# Double any \ or $.
11267# By default was `s,x,x', remove it if useless.
11268ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11269program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11270
11271# expand $ac_aux_dir to an absolute path
11272am_aux_dir=`cd $ac_aux_dir && pwd`
11273
11274if test x"${MISSING+set}" != xset; then
11275 case $am_aux_dir in
11276 *\ * | *\ *)
11277 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11278 *)
11279 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11280 esac
11281fi
11282# Use eval to expand $SHELL
11283if eval "$MISSING --run true"; then
11284 am_missing_run="$MISSING --run "
11285else
11286 am_missing_run=
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11288$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11289fi
11290
11291if test x"${install_sh}" != xset; then
11292 case $am_aux_dir in
11293 *\ * | *\ *)
11294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11295 *)
11296 install_sh="\${SHELL} $am_aux_dir/install-sh"
11297 esac
11298fi
11299
11300# Installed binaries are usually stripped using `strip' when the user
11301# run `make install-strip'. However `strip' might not be the right
11302# tool to use in cross-compilation environments, therefore Automake
11303# will honor the `STRIP' environment variable to overrule this program.
11304if test "$cross_compiling" != no; then
11305 if test -n "$ac_tool_prefix"; then
11306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11307set dummy ${ac_tool_prefix}strip; ac_word=$2
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309$as_echo_n "checking for $ac_word... " >&6; }
11310if test "${ac_cv_prog_STRIP+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312else
11313 if test -n "$STRIP"; then
11314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11315else
11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $PATH
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327done
11328 done
11329IFS=$as_save_IFS
11330
11331fi
11332fi
11333STRIP=$ac_cv_prog_STRIP
11334if test -n "$STRIP"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11336$as_echo "$STRIP" >&6; }
11337else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
11340fi
11341
11342
11343fi
11344if test -z "$ac_cv_prog_STRIP"; then
11345 ac_ct_STRIP=$STRIP
11346 # Extract the first word of "strip", so it can be a program name with args.
11347set dummy strip; ac_word=$2
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
11350if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352else
11353 if test -n "$ac_ct_STRIP"; then
11354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_prog_ac_ct_STRIP="strip"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367done
11368 done
11369IFS=$as_save_IFS
11370
11371fi
11372fi
11373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11374if test -n "$ac_ct_STRIP"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11376$as_echo "$ac_ct_STRIP" >&6; }
11377else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
11380fi
11381
11382 if test "x$ac_ct_STRIP" = x; then
11383 STRIP=":"
11384 else
11385 case $cross_compiling:$ac_tool_warned in
11386yes:)
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11389ac_tool_warned=yes ;;
11390esac
11391 STRIP=$ac_ct_STRIP
11392 fi
11393else
11394 STRIP="$ac_cv_prog_STRIP"
11395fi
11396
11397fi
11398INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11399
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11401$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11402if test -z "$MKDIR_P"; then
11403 if test "${ac_cv_path_mkdir+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405else
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11408do
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_prog in mkdir gmkdir; do
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11415 'mkdir (GNU coreutils) '* | \
11416 'mkdir (coreutils) '* | \
11417 'mkdir (fileutils) '4.1*)
11418 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11419 break 3;;
11420 esac
11421 done
11422 done
11423 done
11424IFS=$as_save_IFS
11425
11426fi
11427
11428 if test "${ac_cv_path_mkdir+set}" = set; then
11429 MKDIR_P="$ac_cv_path_mkdir -p"
11430 else
11431 # As a last resort, use the slow shell script. Don't cache a
11432 # value for MKDIR_P within a source directory, because that will
11433 # break other packages using the cache if that directory is
11434 # removed, or if the value is a relative name.
11435 test -d ./--version && rmdir ./--version
11436 MKDIR_P="$ac_install_sh -d"
11437 fi
11438fi
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11440$as_echo "$MKDIR_P" >&6; }
11441
11442
11443mkdir_p="$MKDIR_P"
11444case $mkdir_p in
11445 [\\/$]* | ?:[\\/]*) ;;
11446 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11447esac
11448
11449for ac_prog in gawk mawk nawk awk
11450do
11451 # Extract the first word of "$ac_prog", so it can be a program name with args.
11452set dummy $ac_prog; ac_word=$2
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
11455if test "${ac_cv_prog_AWK+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457else
11458 if test -n "$AWK"; then
11459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_AWK="$ac_prog"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472done
11473 done
11474IFS=$as_save_IFS
11475
11476fi
11477fi
11478AWK=$ac_cv_prog_AWK
11479if test -n "$AWK"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11481$as_echo "$AWK" >&6; }
11482else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
11485fi
11486
11487
11488 test -n "$AWK" && break
11489done
11490
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11492$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11493set x ${MAKE-make}
11494ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11495if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11496 $as_echo_n "(cached) " >&6
11497else
11498 cat >conftest.make <<\_ACEOF
11499SHELL = /bin/sh
11500all:
11501 @echo '@@@%%%=$(MAKE)=@@@%%%'
11502_ACEOF
11503# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11504case `${MAKE-make} -f conftest.make 2>/dev/null` in
11505 *@@@%%%=?*=@@@%%%*)
11506 eval ac_cv_prog_make_${ac_make}_set=yes;;
11507 *)
11508 eval ac_cv_prog_make_${ac_make}_set=no;;
11509esac
11510rm -f conftest.make
11511fi
11512if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514$as_echo "yes" >&6; }
11515 SET_MAKE=
11516else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518$as_echo "no" >&6; }
11519 SET_MAKE="MAKE=${MAKE-make}"
11520fi
11521
11522rm -rf .tst 2>/dev/null
11523mkdir .tst 2>/dev/null
11524if test -d .tst; then
11525 am__leading_dot=.
11526else
11527 am__leading_dot=_
11528fi
11529rmdir .tst 2>/dev/null
11530
11531DEPDIR="${am__leading_dot}deps"
11532
11533ac_config_commands="$ac_config_commands depfiles"
11534
11535
11536am_make=${MAKE-make}
11537cat > confinc << 'END'
11538am__doit:
11539 @echo this is the am__doit target
11540.PHONY: am__doit
11541END
11542# If we don't find an include directive, just comment out the code.
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11544$as_echo_n "checking for style of include used by $am_make... " >&6; }
11545am__include="#"
11546am__quote=
11547_am_result=none
11548# First try GNU make style include.
11549echo "include confinc" > confmf
11550# Ignore all kinds of additional output from `make'.
11551case `$am_make -s -f confmf 2> /dev/null` in #(
11552*the\ am__doit\ target*)
11553 am__include=include
11554 am__quote=
11555 _am_result=GNU
11556 ;;
11557esac
11558# Now try BSD make style include.
11559if test "$am__include" = "#"; then
11560 echo '.include "confinc"' > confmf
11561 case `$am_make -s -f confmf 2> /dev/null` in #(
11562 *the\ am__doit\ target*)
11563 am__include=.include
11564 am__quote="\""
11565 _am_result=BSD
11566 ;;
11567 esac
11568fi
11569
11570
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11572$as_echo "$_am_result" >&6; }
11573rm -f confinc confmf
11574
11575# Check whether --enable-dependency-tracking was given.
11576if test "${enable_dependency_tracking+set}" = set; then :
11577 enableval=$enable_dependency_tracking;
11578fi
11579
11580if test "x$enable_dependency_tracking" != xno; then
11581 am_depcomp="$ac_aux_dir/depcomp"
11582 AMDEPBACKSLASH='\'
11583fi
11584 if test "x$enable_dependency_tracking" != xno; then
11585 AMDEP_TRUE=
11586 AMDEP_FALSE='#'
11587else
11588 AMDEP_TRUE='#'
11589 AMDEP_FALSE=
11590fi
11591
11592
11593if test "`cd $srcdir && pwd`" != "`pwd`"; then
11594 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11595 # is not polluted with repeated "-I."
11596 am__isrc=' -I$(srcdir)'
11597 # test to see if srcdir already configured
11598 if test -f $srcdir/config.status; then
11599 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11600 fi
11601fi
11602
11603# test whether we have cygpath
11604if test -z "$CYGPATH_W"; then
11605 if (cygpath --version) >/dev/null 2>/dev/null; then
11606 CYGPATH_W='cygpath -w'
11607 else
11608 CYGPATH_W=echo
11609 fi
11610fi
11611
11612
11613# Define the identity of the package.
11614 PACKAGE=libgnu
11615 VERSION=UNUSED-VERSION
11616
11617
11618# Some tools Automake needs.
11619
11620ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11621
11622
11623AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11624
11625
11626AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11627
11628
11629AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11630
11631
11632MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11633
11634# We need awk for the "check" target. The system "awk" is bad on
11635# some platforms.
11636# Always define AMTAR for backward compatibility.
11637
11638AMTAR=${AMTAR-"${am_missing_run}tar"}
11639
11640am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11641
11642
11643
11644
11645depcc="$CC" am_compiler_list=
11646
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11648$as_echo_n "checking dependency style of $depcc... " >&6; }
11649if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11651else
11652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11653 # We make a subdir and do the tests there. Otherwise we can end up
11654 # making bogus files that we don't know about and never remove. For
11655 # instance it was reported that on HP-UX the gcc test will end up
11656 # making a dummy file named `D' -- because `-MD' means `put the output
11657 # in D'.
11658 mkdir conftest.dir
11659 # Copy depcomp to subdir because otherwise we won't find it if we're
11660 # using a relative directory.
11661 cp "$am_depcomp" conftest.dir
11662 cd conftest.dir
11663 # We will build objects and dependencies in a subdirectory because
11664 # it helps to detect inapplicable dependency modes. For instance
11665 # both Tru64's cc and ICC support -MD to output dependencies as a
11666 # side effect of compilation, but ICC will put the dependencies in
11667 # the current directory while Tru64 will put them in the object
11668 # directory.
11669 mkdir sub
11670
11671 am_cv_CC_dependencies_compiler_type=none
11672 if test "$am_compiler_list" = ""; then
11673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11674 fi
11675 am__universal=false
11676 case " $depcc " in #(
11677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11678 esac
11679
11680 for depmode in $am_compiler_list; do
11681 # Setup a source with many dependencies, because some compilers
11682 # like to wrap large dependency lists on column 80 (with \), and
11683 # we should not choose a depcomp mode which is confused by this.
11684 #
11685 # We need to recreate these files for each test, as the compiler may
11686 # overwrite some of them when testing with obscure command lines.
11687 # This happens at least with the AIX C compiler.
11688 : > sub/conftest.c
11689 for i in 1 2 3 4 5 6; do
11690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11692 # Solaris 8's {/usr,}/bin/sh.
11693 touch sub/conftst$i.h
11694 done
11695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11696
11697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11698 # mode. It turns out that the SunPro C++ compiler does not properly
11699 # handle `-M -o', and we need to detect this. Also, some Intel
11700 # versions had trouble with output in subdirs
11701 am__obj=sub/conftest.${OBJEXT-o}
11702 am__minus_obj="-o $am__obj"
11703 case $depmode in
11704 gcc)
11705 # This depmode causes a compiler race in universal mode.
11706 test "$am__universal" = false || continue
11707 ;;
11708 nosideeffect)
11709 # after this tag, mechanisms are not by side-effect, so they'll
11710 # only be used when explicitly requested
11711 if test "x$enable_dependency_tracking" = xyes; then
11712 continue
11713 else
11714 break
11715 fi
11716 ;;
11717 msvisualcpp | msvcmsys)
11718 # This compiler won't grok `-c -o', but also, the minuso test has
11719 # not run yet. These depmodes are late enough in the game, and
11720 # so weak that their functioning should not be impacted.
11721 am__obj=conftest.${OBJEXT-o}
11722 am__minus_obj=
11723 ;;
11724 none) break ;;
11725 esac
11726 if depmode=$depmode \
11727 source=sub/conftest.c object=$am__obj \
11728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11730 >/dev/null 2>conftest.err &&
11731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11735 # icc doesn't choke on unknown options, it will just issue warnings
11736 # or remarks (even with -Werror). So we grep stderr for any message
11737 # that says an option was ignored or not supported.
11738 # When given -MP, icc 7.0 and 7.1 complain thusly:
11739 # icc: Command line warning: ignoring option '-M'; no argument required
11740 # The diagnosis changed in icc 8.0:
11741 # icc: Command line remark: option '-MP' not supported
11742 if (grep 'ignoring option' conftest.err ||
11743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11744 am_cv_CC_dependencies_compiler_type=$depmode
11745 break
11746 fi
11747 fi
11748 done
11749
11750 cd ..
11751 rm -rf conftest.dir
11752else
11753 am_cv_CC_dependencies_compiler_type=none
11754fi
11755
11756fi
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11758$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11759CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11760
11761 if
11762 test "x$enable_dependency_tracking" != xno \
11763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11764 am__fastdepCC_TRUE=
11765 am__fastdepCC_FALSE='#'
11766else
11767 am__fastdepCC_TRUE='#'
11768 am__fastdepCC_FALSE=
11769fi
11770
11771
11772
11773
11774# --------------------- #
11775# Checks for programs. #
11776# --------------------- #
11777
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11780$as_echo_n "checking whether ln -s works... " >&6; }
11781LN_S=$as_ln_s
11782if test "$LN_S" = "ln -s"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784$as_echo "yes" >&6; }
11785else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11787$as_echo "no, using $LN_S" >&6; }
11788fi
11789
11790if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794$as_echo_n "checking for $ac_word... " >&6; }
11795if test "${ac_cv_prog_RANLIB+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797else
11798 if test -n "$RANLIB"; then
11799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11800else
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812done
11813 done
11814IFS=$as_save_IFS
11815
11816fi
11817fi
11818RANLIB=$ac_cv_prog_RANLIB
11819if test -n "$RANLIB"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11821$as_echo "$RANLIB" >&6; }
11822else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
11825fi
11826
11827
11828fi
11829if test -z "$ac_cv_prog_RANLIB"; then
11830 ac_ct_RANLIB=$RANLIB
11831 # Extract the first word of "ranlib", so it can be a program name with args.
11832set dummy ranlib; ac_word=$2
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834$as_echo_n "checking for $ac_word... " >&6; }
11835if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837else
11838 if test -n "$ac_ct_RANLIB"; then
11839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11840else
11841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848 ac_cv_prog_ac_ct_RANLIB="ranlib"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
11852done
11853 done
11854IFS=$as_save_IFS
11855
11856fi
11857fi
11858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11859if test -n "$ac_ct_RANLIB"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11861$as_echo "$ac_ct_RANLIB" >&6; }
11862else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
11865fi
11866
11867 if test "x$ac_ct_RANLIB" = x; then
11868 RANLIB=":"
11869 else
11870 case $cross_compiling:$ac_tool_warned in
11871yes:)
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11874ac_tool_warned=yes ;;
11875esac
11876 RANLIB=$ac_ct_RANLIB
11877 fi
11878else
11879 RANLIB="$ac_cv_prog_RANLIB"
11880fi
11881
11882
11883if test -n "$ac_tool_prefix"; then
11884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11885set dummy ${ac_tool_prefix}ar; ac_word=$2
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_prog_AR+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890else
11891 if test -n "$AR"; then
11892 ac_cv_prog_AR="$AR" # Let the user override the test.
11893else
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_prog_AR="${ac_tool_prefix}ar"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11904 fi
11905done
11906 done
11907IFS=$as_save_IFS
11908
11909fi
11910fi
11911AR=$ac_cv_prog_AR
11912if test -n "$AR"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11914$as_echo "$AR" >&6; }
11915else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
11918fi
11919
11920
11921fi
11922if test -z "$ac_cv_prog_AR"; then
11923 ac_ct_AR=$AR
11924 # Extract the first word of "ar", so it can be a program name with args.
11925set dummy ar; ac_word=$2
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927$as_echo_n "checking for $ac_word... " >&6; }
11928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930else
11931 if test -n "$ac_ct_AR"; then
11932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11933else
11934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935for as_dir in $PATH
11936do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941 ac_cv_prog_ac_ct_AR="ar"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 break 2
11944 fi
11945done
11946 done
11947IFS=$as_save_IFS
11948
11949fi
11950fi
11951ac_ct_AR=$ac_cv_prog_ac_ct_AR
11952if test -n "$ac_ct_AR"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11954$as_echo "$ac_ct_AR" >&6; }
11955else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957$as_echo "no" >&6; }
11958fi
11959
11960 if test "x$ac_ct_AR" = x; then
11961 AR=""
11962 else
11963 case $cross_compiling:$ac_tool_warned in
11964yes:)
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11967ac_tool_warned=yes ;;
11968esac
11969 AR=$ac_ct_AR
11970 fi
11971else
11972 AR="$ac_cv_prog_AR"
11973fi
11974
11975
11976# ---------------------- #
11977# Checks for libraries. #
11978# ---------------------- #
11979
11980ac_config_files="$ac_config_files Makefile import/Makefile"
11981
11982ac_config_commands="$ac_config_commands default"
11983
11984cat >confcache <<\_ACEOF
11985# This file is a shell script that caches the results of configure
11986# tests run on this system so they can be shared between configure
11987# scripts and configure runs, see configure's option --config-cache.
11988# It is not useful on other systems. If it contains results you don't
11989# want to keep, you may remove or edit it.
11990#
11991# config.status only pays attention to the cache file if you give it
11992# the --recheck option to rerun configure.
11993#
11994# `ac_cv_env_foo' variables (set or unset) will be overridden when
11995# loading this file, other *unset* `ac_cv_foo' will be assigned the
11996# following values.
11997
11998_ACEOF
11999
12000# The following way of writing the cache mishandles newlines in values,
12001# but we know of no workaround that is simple, portable, and efficient.
12002# So, we kill variables containing newlines.
12003# Ultrix sh set writes to stderr and can't be redirected directly,
12004# and sets the high bit in the cache file unless we assign to the vars.
12005(
12006 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12007 eval ac_val=\$$ac_var
12008 case $ac_val in #(
12009 *${as_nl}*)
12010 case $ac_var in #(
12011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12013 esac
12014 case $ac_var in #(
12015 _ | IFS | as_nl) ;; #(
12016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12017 *) { eval $ac_var=; unset $ac_var;} ;;
12018 esac ;;
12019 esac
12020 done
12021
12022 (set) 2>&1 |
12023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12024 *${as_nl}ac_space=\ *)
12025 # `set' does not quote correctly, so add quotes: double-quote
12026 # substitution turns \\\\ into \\, and sed turns \\ into \.
12027 sed -n \
12028 "s/'/'\\\\''/g;
12029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12030 ;; #(
12031 *)
12032 # `set' quotes correctly as required by POSIX, so do not add quotes.
12033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12034 ;;
12035 esac |
12036 sort
12037) |
12038 sed '
12039 /^ac_cv_env_/b end
12040 t clear
12041 :clear
12042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12043 t end
12044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12045 :end' >>confcache
12046if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12047 if test -w "$cache_file"; then
12048 test "x$cache_file" != "x/dev/null" &&
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12050$as_echo "$as_me: updating cache $cache_file" >&6;}
12051 cat confcache >$cache_file
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12054$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12055 fi
12056fi
12057rm -f confcache
12058
12059test "x$prefix" = xNONE && prefix=$ac_default_prefix
12060# Let make expand exec_prefix.
12061test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12062
12063DEFS=-DHAVE_CONFIG_H
12064
12065ac_libobjs=
12066ac_ltlibobjs=
12067for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12068 # 1. Remove the extension, and $U if already installed.
12069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12072 # will be set to the directory where LIBOBJS objects are built.
12073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12075done
12076LIBOBJS=$ac_libobjs
12077
12078LTLIBOBJS=$ac_ltlibobjs
12079
12080
12081if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12082 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12083Usually this means the macro was only invoked conditionally." "$LINENO" 5
12084fi
12085if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12086 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
12087Usually this means the macro was only invoked conditionally." "$LINENO" 5
12088fi
8690e634
JK
12089if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12090 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12091Usually this means the macro was only invoked conditionally." "$LINENO" 5
12092fi
12093if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12094 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12095Usually this means the macro was only invoked conditionally." "$LINENO" 5
12096fi
c971b7fa
PA
12097if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12098 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
12099Usually this means the macro was only invoked conditionally." "$LINENO" 5
12100fi
8690e634
JK
12101if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12102 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12103Usually this means the macro was only invoked conditionally." "$LINENO" 5
12104fi
c971b7fa
PA
12105if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12106 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12107Usually this means the macro was only invoked conditionally." "$LINENO" 5
12108fi
12109
12110 gl_libobjs=
12111 gl_ltlibobjs=
12112 if test -n "$gl_LIBOBJS"; then
12113 # Remove the extension.
12114 sed_drop_objext='s/\.o$//;s/\.obj$//'
12115 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12116 gl_libobjs="$gl_libobjs $i.$ac_objext"
12117 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12118 done
12119 fi
12120 gl_LIBOBJS=$gl_libobjs
12121
12122 gl_LTLIBOBJS=$gl_ltlibobjs
12123
12124
12125
12126 gltests_libobjs=
12127 gltests_ltlibobjs=
12128 if test -n "$gltests_LIBOBJS"; then
12129 # Remove the extension.
12130 sed_drop_objext='s/\.o$//;s/\.obj$//'
12131 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12132 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
12133 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
12134 done
12135 fi
12136 gltests_LIBOBJS=$gltests_libobjs
12137
12138 gltests_LTLIBOBJS=$gltests_ltlibobjs
12139
12140
12141if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12142 as_fn_error "conditional \"AMDEP\" was never defined.
12143Usually this means the macro was only invoked conditionally." "$LINENO" 5
12144fi
12145if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12146 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12147Usually this means the macro was only invoked conditionally." "$LINENO" 5
12148fi
12149 if test -n "$EXEEXT"; then
12150 am__EXEEXT_TRUE=
12151 am__EXEEXT_FALSE='#'
12152else
12153 am__EXEEXT_TRUE='#'
12154 am__EXEEXT_FALSE=
12155fi
12156
12157
12158: ${CONFIG_STATUS=./config.status}
12159ac_write_fail=0
12160ac_clean_files_save=$ac_clean_files
12161ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12163$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12164as_write_fail=0
12165cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12166#! $SHELL
12167# Generated by $as_me.
12168# Run this file to recreate the current configuration.
12169# Compiler output produced by configure, useful for debugging
12170# configure, is in config.log if it exists.
12171
12172debug=false
12173ac_cs_recheck=false
12174ac_cs_silent=false
12175
12176SHELL=\${CONFIG_SHELL-$SHELL}
12177export SHELL
12178_ASEOF
12179cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12180## -------------------- ##
12181## M4sh Initialization. ##
12182## -------------------- ##
12183
12184# Be more Bourne compatible
12185DUALCASE=1; export DUALCASE # for MKS sh
12186if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12187 emulate sh
12188 NULLCMD=:
12189 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12190 # is contrary to our usage. Disable this feature.
12191 alias -g '${1+"$@"}'='"$@"'
12192 setopt NO_GLOB_SUBST
12193else
12194 case `(set -o) 2>/dev/null` in #(
12195 *posix*) :
12196 set -o posix ;; #(
12197 *) :
12198 ;;
12199esac
12200fi
12201
12202
12203as_nl='
12204'
12205export as_nl
12206# Printing a long string crashes Solaris 7 /usr/bin/printf.
12207as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12208as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12209as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12210# Prefer a ksh shell builtin over an external printf program on Solaris,
12211# but without wasting forks for bash or zsh.
12212if test -z "$BASH_VERSION$ZSH_VERSION" \
12213 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12214 as_echo='print -r --'
12215 as_echo_n='print -rn --'
12216elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12217 as_echo='printf %s\n'
12218 as_echo_n='printf %s'
12219else
12220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12221 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12222 as_echo_n='/usr/ucb/echo -n'
12223 else
12224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12225 as_echo_n_body='eval
12226 arg=$1;
12227 case $arg in #(
12228 *"$as_nl"*)
12229 expr "X$arg" : "X\\(.*\\)$as_nl";
12230 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12231 esac;
12232 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12233 '
12234 export as_echo_n_body
12235 as_echo_n='sh -c $as_echo_n_body as_echo'
12236 fi
12237 export as_echo_body
12238 as_echo='sh -c $as_echo_body as_echo'
12239fi
12240
12241# The user is always right.
12242if test "${PATH_SEPARATOR+set}" != set; then
12243 PATH_SEPARATOR=:
12244 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12245 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12246 PATH_SEPARATOR=';'
12247 }
12248fi
12249
12250
12251# IFS
12252# We need space, tab and new line, in precisely that order. Quoting is
12253# there to prevent editors from complaining about space-tab.
12254# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12255# splitting by setting IFS to empty value.)
12256IFS=" "" $as_nl"
12257
12258# Find who we are. Look in the path if we contain no directory separator.
12259case $0 in #((
12260 *[\\/]* ) as_myself=$0 ;;
12261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $PATH
12263do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12267 done
12268IFS=$as_save_IFS
12269
12270 ;;
12271esac
12272# We did not find ourselves, most probably we were run as `sh COMMAND'
12273# in which case we are not to be found in the path.
12274if test "x$as_myself" = x; then
12275 as_myself=$0
12276fi
12277if test ! -f "$as_myself"; then
12278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12279 exit 1
12280fi
12281
12282# Unset variables that we do not need and which cause bugs (e.g. in
12283# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12284# suppresses any "Segmentation fault" message there. '((' could
12285# trigger a bug in pdksh 5.2.14.
12286for as_var in BASH_ENV ENV MAIL MAILPATH
12287do eval test x\${$as_var+set} = xset \
12288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12289done
12290PS1='$ '
12291PS2='> '
12292PS4='+ '
12293
12294# NLS nuisances.
12295LC_ALL=C
12296export LC_ALL
12297LANGUAGE=C
12298export LANGUAGE
12299
12300# CDPATH.
12301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12302
12303
12304# as_fn_error ERROR [LINENO LOG_FD]
12305# ---------------------------------
12306# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12307# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12308# script with status $?, using 1 if that was 0.
12309as_fn_error ()
12310{
12311 as_status=$?; test $as_status -eq 0 && as_status=1
12312 if test "$3"; then
12313 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12315 fi
12316 $as_echo "$as_me: error: $1" >&2
12317 as_fn_exit $as_status
12318} # as_fn_error
12319
12320
12321# as_fn_set_status STATUS
12322# -----------------------
12323# Set $? to STATUS, without forking.
12324as_fn_set_status ()
12325{
12326 return $1
12327} # as_fn_set_status
12328
12329# as_fn_exit STATUS
12330# -----------------
12331# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12332as_fn_exit ()
12333{
12334 set +e
12335 as_fn_set_status $1
12336 exit $1
12337} # as_fn_exit
12338
12339# as_fn_unset VAR
12340# ---------------
12341# Portably unset VAR.
12342as_fn_unset ()
12343{
12344 { eval $1=; unset $1;}
12345}
12346as_unset=as_fn_unset
12347# as_fn_append VAR VALUE
12348# ----------------------
12349# Append the text in VALUE to the end of the definition contained in VAR. Take
12350# advantage of any shell optimizations that allow amortized linear growth over
12351# repeated appends, instead of the typical quadratic growth present in naive
12352# implementations.
12353if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12354 eval 'as_fn_append ()
12355 {
12356 eval $1+=\$2
12357 }'
12358else
12359 as_fn_append ()
12360 {
12361 eval $1=\$$1\$2
12362 }
12363fi # as_fn_append
12364
12365# as_fn_arith ARG...
12366# ------------------
12367# Perform arithmetic evaluation on the ARGs, and store the result in the
12368# global $as_val. Take advantage of shells that can avoid forks. The arguments
12369# must be portable across $(()) and expr.
12370if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12371 eval 'as_fn_arith ()
12372 {
12373 as_val=$(( $* ))
12374 }'
12375else
12376 as_fn_arith ()
12377 {
12378 as_val=`expr "$@" || test $? -eq 1`
12379 }
12380fi # as_fn_arith
12381
12382
12383if expr a : '\(a\)' >/dev/null 2>&1 &&
12384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12385 as_expr=expr
12386else
12387 as_expr=false
12388fi
12389
12390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12391 as_basename=basename
12392else
12393 as_basename=false
12394fi
12395
12396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12397 as_dirname=dirname
12398else
12399 as_dirname=false
12400fi
12401
12402as_me=`$as_basename -- "$0" ||
12403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12404 X"$0" : 'X\(//\)$' \| \
12405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12406$as_echo X/"$0" |
12407 sed '/^.*\/\([^/][^/]*\)\/*$/{
12408 s//\1/
12409 q
12410 }
12411 /^X\/\(\/\/\)$/{
12412 s//\1/
12413 q
12414 }
12415 /^X\/\(\/\).*/{
12416 s//\1/
12417 q
12418 }
12419 s/.*/./; q'`
12420
12421# Avoid depending upon Character Ranges.
12422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12425as_cr_digits='0123456789'
12426as_cr_alnum=$as_cr_Letters$as_cr_digits
12427
12428ECHO_C= ECHO_N= ECHO_T=
12429case `echo -n x` in #(((((
12430-n*)
12431 case `echo 'xy\c'` in
12432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12433 xy) ECHO_C='\c';;
12434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12435 ECHO_T=' ';;
12436 esac;;
12437*)
12438 ECHO_N='-n';;
12439esac
12440
12441rm -f conf$$ conf$$.exe conf$$.file
12442if test -d conf$$.dir; then
12443 rm -f conf$$.dir/conf$$.file
12444else
12445 rm -f conf$$.dir
12446 mkdir conf$$.dir 2>/dev/null
12447fi
12448if (echo >conf$$.file) 2>/dev/null; then
12449 if ln -s conf$$.file conf$$ 2>/dev/null; then
12450 as_ln_s='ln -s'
12451 # ... but there are two gotchas:
12452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12454 # In both cases, we have to default to `cp -p'.
12455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12456 as_ln_s='cp -p'
12457 elif ln conf$$.file conf$$ 2>/dev/null; then
12458 as_ln_s=ln
12459 else
12460 as_ln_s='cp -p'
12461 fi
12462else
12463 as_ln_s='cp -p'
12464fi
12465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12466rmdir conf$$.dir 2>/dev/null
12467
12468
12469# as_fn_mkdir_p
12470# -------------
12471# Create "$as_dir" as a directory, including parents if necessary.
12472as_fn_mkdir_p ()
12473{
12474
12475 case $as_dir in #(
12476 -*) as_dir=./$as_dir;;
12477 esac
12478 test -d "$as_dir" || eval $as_mkdir_p || {
12479 as_dirs=
12480 while :; do
12481 case $as_dir in #(
12482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12483 *) as_qdir=$as_dir;;
12484 esac
12485 as_dirs="'$as_qdir' $as_dirs"
12486 as_dir=`$as_dirname -- "$as_dir" ||
12487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$as_dir" : 'X\(//\)[^/]' \| \
12489 X"$as_dir" : 'X\(//\)$' \| \
12490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12491$as_echo X"$as_dir" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)[^/].*/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\/\)$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\).*/{
12505 s//\1/
12506 q
12507 }
12508 s/.*/./; q'`
12509 test -d "$as_dir" && break
12510 done
12511 test -z "$as_dirs" || eval "mkdir $as_dirs"
12512 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12513
12514
12515} # as_fn_mkdir_p
12516if mkdir -p . 2>/dev/null; then
12517 as_mkdir_p='mkdir -p "$as_dir"'
12518else
12519 test -d ./-p && rmdir ./-p
12520 as_mkdir_p=false
12521fi
12522
12523if test -x / >/dev/null 2>&1; then
12524 as_test_x='test -x'
12525else
12526 if ls -dL / >/dev/null 2>&1; then
12527 as_ls_L_option=L
12528 else
12529 as_ls_L_option=
12530 fi
12531 as_test_x='
12532 eval sh -c '\''
12533 if test -d "$1"; then
12534 test -d "$1/.";
12535 else
12536 case $1 in #(
12537 -*)set "./$1";;
12538 esac;
12539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12540 ???[sx]*):;;*)false;;esac;fi
12541 '\'' sh
12542 '
12543fi
12544as_executable_p=$as_test_x
12545
12546# Sed expression to map a string onto a valid CPP name.
12547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12548
12549# Sed expression to map a string onto a valid variable name.
12550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12551
12552
12553exec 6>&1
12554## ----------------------------------- ##
12555## Main body of $CONFIG_STATUS script. ##
12556## ----------------------------------- ##
12557_ASEOF
12558test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12559
12560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12561# Save the log message, to keep $0 and so on meaningful, and to
12562# report actual input values of CONFIG_FILES etc. instead of their
12563# values after options handling.
12564ac_log="
12565This file was extended by $as_me, which was
12566generated by GNU Autoconf 2.64. Invocation command line was
12567
12568 CONFIG_FILES = $CONFIG_FILES
12569 CONFIG_HEADERS = $CONFIG_HEADERS
12570 CONFIG_LINKS = $CONFIG_LINKS
12571 CONFIG_COMMANDS = $CONFIG_COMMANDS
12572 $ $0 $@
12573
12574on `(hostname || uname -n) 2>/dev/null | sed 1q`
12575"
12576
12577_ACEOF
12578
12579case $ac_config_files in *"
12580"*) set x $ac_config_files; shift; ac_config_files=$*;;
12581esac
12582
12583case $ac_config_headers in *"
12584"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12585esac
12586
12587
12588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589# Files that config.status was made for.
12590config_files="$ac_config_files"
12591config_headers="$ac_config_headers"
12592config_commands="$ac_config_commands"
12593
12594_ACEOF
12595
12596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12597ac_cs_usage="\
12598\`$as_me' instantiates files and other configuration actions
12599from templates according to the current configuration. Unless the files
12600and actions are specified as TAGs, all are instantiated by default.
12601
12602Usage: $0 [OPTION]... [TAG]...
12603
12604 -h, --help print this help, then exit
12605 -V, --version print version number and configuration settings, then exit
12606 -q, --quiet, --silent
12607 do not print progress messages
12608 -d, --debug don't remove temporary files
12609 --recheck update $as_me by reconfiguring in the same conditions
12610 --file=FILE[:TEMPLATE]
12611 instantiate the configuration file FILE
12612 --header=FILE[:TEMPLATE]
12613 instantiate the configuration header FILE
12614
12615Configuration files:
12616$config_files
12617
12618Configuration headers:
12619$config_headers
12620
12621Configuration commands:
12622$config_commands
12623
12624Report bugs to the package provider."
12625
12626_ACEOF
12627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12628ac_cs_version="\\
12629config.status
12630configured by $0, generated by GNU Autoconf 2.64,
12631 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12632
12633Copyright (C) 2009 Free Software Foundation, Inc.
12634This config.status script is free software; the Free Software Foundation
12635gives unlimited permission to copy, distribute and modify it."
12636
12637ac_pwd='$ac_pwd'
12638srcdir='$srcdir'
12639INSTALL='$INSTALL'
12640MKDIR_P='$MKDIR_P'
12641AWK='$AWK'
12642test -n "\$AWK" || AWK=awk
12643_ACEOF
12644
12645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12646# The default lists apply if the user does not specify any file.
12647ac_need_defaults=:
12648while test $# != 0
12649do
12650 case $1 in
12651 --*=*)
12652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12654 ac_shift=:
12655 ;;
12656 *)
12657 ac_option=$1
12658 ac_optarg=$2
12659 ac_shift=shift
12660 ;;
12661 esac
12662
12663 case $ac_option in
12664 # Handling of the options.
12665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12666 ac_cs_recheck=: ;;
12667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12668 $as_echo "$ac_cs_version"; exit ;;
12669 --debug | --debu | --deb | --de | --d | -d )
12670 debug=: ;;
12671 --file | --fil | --fi | --f )
12672 $ac_shift
12673 case $ac_optarg in
12674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12675 esac
12676 as_fn_append CONFIG_FILES " '$ac_optarg'"
12677 ac_need_defaults=false;;
12678 --header | --heade | --head | --hea )
12679 $ac_shift
12680 case $ac_optarg in
12681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12682 esac
12683 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12684 ac_need_defaults=false;;
12685 --he | --h)
12686 # Conflict between --help and --header
12687 as_fn_error "ambiguous option: \`$1'
12688Try \`$0 --help' for more information.";;
12689 --help | --hel | -h )
12690 $as_echo "$ac_cs_usage"; exit ;;
12691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12693 ac_cs_silent=: ;;
12694
12695 # This is an error.
12696 -*) as_fn_error "unrecognized option: \`$1'
12697Try \`$0 --help' for more information." ;;
12698
12699 *) as_fn_append ac_config_targets " $1"
12700 ac_need_defaults=false ;;
12701
12702 esac
12703 shift
12704done
12705
12706ac_configure_extra_args=
12707
12708if $ac_cs_silent; then
12709 exec 6>/dev/null
12710 ac_configure_extra_args="$ac_configure_extra_args --silent"
12711fi
12712
12713_ACEOF
12714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715if \$ac_cs_recheck; then
12716 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12717 shift
12718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12719 CONFIG_SHELL='$SHELL'
12720 export CONFIG_SHELL
12721 exec "\$@"
12722fi
12723
12724_ACEOF
12725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726exec 5>>config.log
12727{
12728 echo
12729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730## Running $as_me. ##
12731_ASBOX
12732 $as_echo "$ac_log"
12733} >&5
12734
12735_ACEOF
12736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12737#
12738# INIT-COMMANDS
12739#
12740AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12741
12742_ACEOF
12743
12744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12745
12746# Handling of arguments.
12747for ac_config_target in $ac_config_targets
12748do
12749 case $ac_config_target in
12750 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12753 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
12754 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12755
12756 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12757 esac
12758done
12759
12760
12761# If the user did not use the arguments to specify the items to instantiate,
12762# then the envvar interface is used. Set only those that are not.
12763# We use the long form for the default assignment because of an extremely
12764# bizarre bug on SunOS 4.1.3.
12765if $ac_need_defaults; then
12766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12769fi
12770
12771# Have a temporary directory for convenience. Make it in the build tree
12772# simply because there is no reason against having it here, and in addition,
12773# creating and moving files from /tmp can sometimes cause problems.
12774# Hook for its removal unless debugging.
12775# Note that there is a small window in which the directory will not be cleaned:
12776# after its creation but before its name has been assigned to `$tmp'.
12777$debug ||
12778{
12779 tmp=
12780 trap 'exit_status=$?
12781 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12782' 0
12783 trap 'as_fn_exit 1' 1 2 13 15
12784}
12785# Create a (secure) tmp directory for tmp files.
12786
12787{
12788 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12789 test -n "$tmp" && test -d "$tmp"
12790} ||
12791{
12792 tmp=./conf$$-$RANDOM
12793 (umask 077 && mkdir "$tmp")
12794} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12795
12796# Set up the scripts for CONFIG_FILES section.
12797# No need to generate them if there are no CONFIG_FILES.
12798# This happens for instance with `./config.status config.h'.
12799if test -n "$CONFIG_FILES"; then
12800
12801
12802ac_cr=`echo X | tr X '\015'`
12803# On cygwin, bash can eat \r inside `` if the user requested igncr.
12804# But we know of no other shell where ac_cr would be empty at this
12805# point, so we can use a bashism as a fallback.
12806if test "x$ac_cr" = x; then
12807 eval ac_cr=\$\'\\r\'
12808fi
12809ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12810if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12811 ac_cs_awk_cr='\r'
12812else
12813 ac_cs_awk_cr=$ac_cr
12814fi
12815
12816echo 'BEGIN {' >"$tmp/subs1.awk" &&
12817_ACEOF
12818
12819
12820{
12821 echo "cat >conf$$subs.awk <<_ACEOF" &&
12822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12823 echo "_ACEOF"
12824} >conf$$subs.sh ||
12825 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12826ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12827ac_delim='%!_!# '
12828for ac_last_try in false false false false false :; do
12829 . ./conf$$subs.sh ||
12830 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12831
12832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12833 if test $ac_delim_n = $ac_delim_num; then
12834 break
12835 elif $ac_last_try; then
12836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12837 else
12838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12839 fi
12840done
12841rm -f conf$$subs.sh
12842
12843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12844cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12845_ACEOF
12846sed -n '
12847h
12848s/^/S["/; s/!.*/"]=/
12849p
12850g
12851s/^[^!]*!//
12852:repl
12853t repl
12854s/'"$ac_delim"'$//
12855t delim
12856:nl
12857h
12858s/\(.\{148\}\).*/\1/
12859t more1
12860s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12861p
12862n
12863b repl
12864:more1
12865s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12866p
12867g
12868s/.\{148\}//
12869t nl
12870:delim
12871h
12872s/\(.\{148\}\).*/\1/
12873t more2
12874s/["\\]/\\&/g; s/^/"/; s/$/"/
12875p
12876b
12877:more2
12878s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12879p
12880g
12881s/.\{148\}//
12882t delim
12883' <conf$$subs.awk | sed '
12884/^[^""]/{
12885 N
12886 s/\n//
12887}
12888' >>$CONFIG_STATUS || ac_write_fail=1
12889rm -f conf$$subs.awk
12890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891_ACAWK
12892cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12893 for (key in S) S_is_set[key] = 1
12894 FS = "\a"
12895
12896}
12897{
12898 line = $ 0
12899 nfields = split(line, field, "@")
12900 substed = 0
12901 len = length(field[1])
12902 for (i = 2; i < nfields; i++) {
12903 key = field[i]
12904 keylen = length(key)
12905 if (S_is_set[key]) {
12906 value = S[key]
12907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12908 len += length(value) + length(field[++i])
12909 substed = 1
12910 } else
12911 len += 1 + keylen
12912 }
12913
12914 print line
12915}
12916
12917_ACAWK
12918_ACEOF
12919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12920if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12922else
12923 cat
12924fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12925 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12926_ACEOF
12927
12928# VPATH may cause trouble with some makes, so we remove $(srcdir),
12929# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12930# trailing colons and then remove the whole line if VPATH becomes empty
12931# (actually we leave an empty line to preserve line numbers).
12932if test "x$srcdir" = x.; then
12933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12934s/:*\$(srcdir):*/:/
12935s/:*\${srcdir}:*/:/
12936s/:*@srcdir@:*/:/
12937s/^\([^=]*=[ ]*\):*/\1/
12938s/:*$//
12939s/^[^=]*=[ ]*$//
12940}'
12941fi
12942
12943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12944fi # test -n "$CONFIG_FILES"
12945
12946# Set up the scripts for CONFIG_HEADERS section.
12947# No need to generate them if there are no CONFIG_HEADERS.
12948# This happens for instance with `./config.status Makefile'.
12949if test -n "$CONFIG_HEADERS"; then
12950cat >"$tmp/defines.awk" <<\_ACAWK ||
12951BEGIN {
12952_ACEOF
12953
12954# Transform confdefs.h into an awk script `defines.awk', embedded as
12955# here-document in config.status, that substitutes the proper values into
12956# config.h.in to produce config.h.
12957
12958# Create a delimiter string that does not exist in confdefs.h, to ease
12959# handling of long lines.
12960ac_delim='%!_!# '
12961for ac_last_try in false false :; do
12962 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12963 if test -z "$ac_t"; then
12964 break
12965 elif $ac_last_try; then
12966 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12967 else
12968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12969 fi
12970done
12971
12972# For the awk script, D is an array of macro values keyed by name,
12973# likewise P contains macro parameters if any. Preserve backslash
12974# newline sequences.
12975
12976ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12977sed -n '
12978s/.\{148\}/&'"$ac_delim"'/g
12979t rset
12980:rset
12981s/^[ ]*#[ ]*define[ ][ ]*/ /
12982t def
12983d
12984:def
12985s/\\$//
12986t bsnl
12987s/["\\]/\\&/g
12988s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12989D["\1"]=" \3"/p
12990s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12991d
12992:bsnl
12993s/["\\]/\\&/g
12994s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12995D["\1"]=" \3\\\\\\n"\\/p
12996t cont
12997s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12998t cont
12999d
13000:cont
13001n
13002s/.\{148\}/&'"$ac_delim"'/g
13003t clear
13004:clear
13005s/\\$//
13006t bsnlc
13007s/["\\]/\\&/g; s/^/"/; s/$/"/p
13008d
13009:bsnlc
13010s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13011b cont
13012' <confdefs.h | sed '
13013s/'"$ac_delim"'/"\\\
13014"/g' >>$CONFIG_STATUS || ac_write_fail=1
13015
13016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017 for (key in D) D_is_set[key] = 1
13018 FS = "\a"
13019}
13020/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13021 line = \$ 0
13022 split(line, arg, " ")
13023 if (arg[1] == "#") {
13024 defundef = arg[2]
13025 mac1 = arg[3]
13026 } else {
13027 defundef = substr(arg[1], 2)
13028 mac1 = arg[2]
13029 }
13030 split(mac1, mac2, "(") #)
13031 macro = mac2[1]
13032 prefix = substr(line, 1, index(line, defundef) - 1)
13033 if (D_is_set[macro]) {
13034 # Preserve the white space surrounding the "#".
13035 print prefix "define", macro P[macro] D[macro]
13036 next
13037 } else {
13038 # Replace #undef with comments. This is necessary, for example,
13039 # in the case of _POSIX_SOURCE, which is predefined and required
13040 # on some systems where configure will not decide to define it.
13041 if (defundef == "undef") {
13042 print "/*", prefix defundef, macro, "*/"
13043 next
13044 }
13045 }
13046}
13047{ print }
13048_ACAWK
13049_ACEOF
13050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13051 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13052fi # test -n "$CONFIG_HEADERS"
13053
13054
13055eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13056shift
13057for ac_tag
13058do
13059 case $ac_tag in
13060 :[FHLC]) ac_mode=$ac_tag; continue;;
13061 esac
13062 case $ac_mode$ac_tag in
13063 :[FHL]*:*);;
13064 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13065 :[FH]-) ac_tag=-:-;;
13066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13067 esac
13068 ac_save_IFS=$IFS
13069 IFS=:
13070 set x $ac_tag
13071 IFS=$ac_save_IFS
13072 shift
13073 ac_file=$1
13074 shift
13075
13076 case $ac_mode in
13077 :L) ac_source=$1;;
13078 :[FH])
13079 ac_file_inputs=
13080 for ac_f
13081 do
13082 case $ac_f in
13083 -) ac_f="$tmp/stdin";;
13084 *) # Look for the file first in the build tree, then in the source tree
13085 # (if the path is not absolute). The absolute path cannot be DOS-style,
13086 # because $ac_f cannot contain `:'.
13087 test -f "$ac_f" ||
13088 case $ac_f in
13089 [\\/$]*) false;;
13090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13091 esac ||
13092 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13093 esac
13094 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13095 as_fn_append ac_file_inputs " '$ac_f'"
13096 done
13097
13098 # Let's still pretend it is `configure' which instantiates (i.e., don't
13099 # use $as_me), people would be surprised to read:
13100 # /* config.h. Generated by config.status. */
13101 configure_input='Generated from '`
13102 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13103 `' by configure.'
13104 if test x"$ac_file" != x-; then
13105 configure_input="$ac_file. $configure_input"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13107$as_echo "$as_me: creating $ac_file" >&6;}
13108 fi
13109 # Neutralize special characters interpreted by sed in replacement strings.
13110 case $configure_input in #(
13111 *\&* | *\|* | *\\* )
13112 ac_sed_conf_input=`$as_echo "$configure_input" |
13113 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13114 *) ac_sed_conf_input=$configure_input;;
13115 esac
13116
13117 case $ac_tag in
13118 *:-:* | *:-) cat >"$tmp/stdin" \
13119 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13120 esac
13121 ;;
13122 esac
13123
13124 ac_dir=`$as_dirname -- "$ac_file" ||
13125$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13126 X"$ac_file" : 'X\(//\)[^/]' \| \
13127 X"$ac_file" : 'X\(//\)$' \| \
13128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13129$as_echo X"$ac_file" |
13130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13131 s//\1/
13132 q
13133 }
13134 /^X\(\/\/\)[^/].*/{
13135 s//\1/
13136 q
13137 }
13138 /^X\(\/\/\)$/{
13139 s//\1/
13140 q
13141 }
13142 /^X\(\/\).*/{
13143 s//\1/
13144 q
13145 }
13146 s/.*/./; q'`
13147 as_dir="$ac_dir"; as_fn_mkdir_p
13148 ac_builddir=.
13149
13150case "$ac_dir" in
13151.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13152*)
13153 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13154 # A ".." for each directory in $ac_dir_suffix.
13155 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13156 case $ac_top_builddir_sub in
13157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13159 esac ;;
13160esac
13161ac_abs_top_builddir=$ac_pwd
13162ac_abs_builddir=$ac_pwd$ac_dir_suffix
13163# for backward compatibility:
13164ac_top_builddir=$ac_top_build_prefix
13165
13166case $srcdir in
13167 .) # We are building in place.
13168 ac_srcdir=.
13169 ac_top_srcdir=$ac_top_builddir_sub
13170 ac_abs_top_srcdir=$ac_pwd ;;
13171 [\\/]* | ?:[\\/]* ) # Absolute name.
13172 ac_srcdir=$srcdir$ac_dir_suffix;
13173 ac_top_srcdir=$srcdir
13174 ac_abs_top_srcdir=$srcdir ;;
13175 *) # Relative name.
13176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13177 ac_top_srcdir=$ac_top_build_prefix$srcdir
13178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13179esac
13180ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13181
13182
13183 case $ac_mode in
13184 :F)
13185 #
13186 # CONFIG_FILE
13187 #
13188
13189 case $INSTALL in
13190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13191 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13192 esac
13193 ac_MKDIR_P=$MKDIR_P
13194 case $MKDIR_P in
13195 [\\/$]* | ?:[\\/]* ) ;;
13196 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13197 esac
13198_ACEOF
13199
13200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13201# If the template does not know about datarootdir, expand it.
13202# FIXME: This hack should be removed a few years after 2.60.
13203ac_datarootdir_hack=; ac_datarootdir_seen=
13204ac_sed_dataroot='
13205/datarootdir/ {
13206 p
13207 q
13208}
13209/@datadir@/p
13210/@docdir@/p
13211/@infodir@/p
13212/@localedir@/p
13213/@mandir@/p'
13214case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13215*datarootdir*) ac_datarootdir_seen=yes;;
13216*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13218$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13219_ACEOF
13220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 ac_datarootdir_hack='
13222 s&@datadir@&$datadir&g
13223 s&@docdir@&$docdir&g
13224 s&@infodir@&$infodir&g
13225 s&@localedir@&$localedir&g
13226 s&@mandir@&$mandir&g
13227 s&\\\${datarootdir}&$datarootdir&g' ;;
13228esac
13229_ACEOF
13230
13231# Neutralize VPATH when `$srcdir' = `.'.
13232# Shell code in configure.ac might set extrasub.
13233# FIXME: do we really want to maintain this feature?
13234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235ac_sed_extra="$ac_vpsub
13236$extrasub
13237_ACEOF
13238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13239:t
13240/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13241s|@configure_input@|$ac_sed_conf_input|;t t
13242s&@top_builddir@&$ac_top_builddir_sub&;t t
13243s&@top_build_prefix@&$ac_top_build_prefix&;t t
13244s&@srcdir@&$ac_srcdir&;t t
13245s&@abs_srcdir@&$ac_abs_srcdir&;t t
13246s&@top_srcdir@&$ac_top_srcdir&;t t
13247s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13248s&@builddir@&$ac_builddir&;t t
13249s&@abs_builddir@&$ac_abs_builddir&;t t
13250s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13251s&@INSTALL@&$ac_INSTALL&;t t
13252s&@MKDIR_P@&$ac_MKDIR_P&;t t
13253$ac_datarootdir_hack
13254"
13255eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13256 || as_fn_error "could not create $ac_file" "$LINENO" 5
13257
13258test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13262which seems to be undefined. Please make sure it is defined." >&5
13263$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13264which seems to be undefined. Please make sure it is defined." >&2;}
13265
13266 rm -f "$tmp/stdin"
13267 case $ac_file in
13268 -) cat "$tmp/out" && rm -f "$tmp/out";;
13269 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13270 esac \
13271 || as_fn_error "could not create $ac_file" "$LINENO" 5
13272 ;;
13273 :H)
13274 #
13275 # CONFIG_HEADER
13276 #
13277 if test x"$ac_file" != x-; then
13278 {
13279 $as_echo "/* $configure_input */" \
13280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13281 } >"$tmp/config.h" \
13282 || as_fn_error "could not create $ac_file" "$LINENO" 5
13283 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13285$as_echo "$as_me: $ac_file is unchanged" >&6;}
13286 else
13287 rm -f "$ac_file"
13288 mv "$tmp/config.h" "$ac_file" \
13289 || as_fn_error "could not create $ac_file" "$LINENO" 5
13290 fi
13291 else
13292 $as_echo "/* $configure_input */" \
13293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13294 || as_fn_error "could not create -" "$LINENO" 5
13295 fi
13296# Compute "$ac_file"'s index in $config_headers.
13297_am_arg="$ac_file"
13298_am_stamp_count=1
13299for _am_header in $config_headers :; do
13300 case $_am_header in
13301 $_am_arg | $_am_arg:* )
13302 break ;;
13303 * )
13304 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13305 esac
13306done
13307echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13308$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13309 X"$_am_arg" : 'X\(//\)[^/]' \| \
13310 X"$_am_arg" : 'X\(//\)$' \| \
13311 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13312$as_echo X"$_am_arg" |
13313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13314 s//\1/
13315 q
13316 }
13317 /^X\(\/\/\)[^/].*/{
13318 s//\1/
13319 q
13320 }
13321 /^X\(\/\/\)$/{
13322 s//\1/
13323 q
13324 }
13325 /^X\(\/\).*/{
13326 s//\1/
13327 q
13328 }
13329 s/.*/./; q'`/stamp-h$_am_stamp_count
13330 ;;
13331
13332 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13333$as_echo "$as_me: executing $ac_file commands" >&6;}
13334 ;;
13335 esac
13336
13337
13338 case $ac_file$ac_mode in
13339 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13340 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13341 # are listed without --file. Let's play safe and only enable the eval
13342 # if we detect the quoting.
13343 case $CONFIG_FILES in
13344 *\'*) eval set x "$CONFIG_FILES" ;;
13345 *) set x $CONFIG_FILES ;;
13346 esac
13347 shift
13348 for mf
13349 do
13350 # Strip MF so we end up with the name of the file.
13351 mf=`echo "$mf" | sed -e 's/:.*$//'`
13352 # Check whether this is an Automake generated Makefile or not.
13353 # We used to match only the files named `Makefile.in', but
13354 # some people rename them; so instead we look at the file content.
13355 # Grep'ing the first line is not enough: some people post-process
13356 # each Makefile.in and add a new line on top of each file to say so.
13357 # Grep'ing the whole file is not good either: AIX grep has a line
13358 # limit of 2048, but all sed's we know have understand at least 4000.
13359 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13360 dirpart=`$as_dirname -- "$mf" ||
13361$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13362 X"$mf" : 'X\(//\)[^/]' \| \
13363 X"$mf" : 'X\(//\)$' \| \
13364 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13365$as_echo X"$mf" |
13366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13367 s//\1/
13368 q
13369 }
13370 /^X\(\/\/\)[^/].*/{
13371 s//\1/
13372 q
13373 }
13374 /^X\(\/\/\)$/{
13375 s//\1/
13376 q
13377 }
13378 /^X\(\/\).*/{
13379 s//\1/
13380 q
13381 }
13382 s/.*/./; q'`
13383 else
13384 continue
13385 fi
13386 # Extract the definition of DEPDIR, am__include, and am__quote
13387 # from the Makefile without running `make'.
13388 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13389 test -z "$DEPDIR" && continue
13390 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13391 test -z "am__include" && continue
13392 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13393 # When using ansi2knr, U may be empty or an underscore; expand it
13394 U=`sed -n 's/^U = //p' < "$mf"`
13395 # Find all dependency output files, they are included files with
13396 # $(DEPDIR) in their names. We invoke sed twice because it is the
13397 # simplest approach to changing $(DEPDIR) to its actual value in the
13398 # expansion.
13399 for file in `sed -n "
13400 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13401 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13402 # Make sure the directory exists.
13403 test -f "$dirpart/$file" && continue
13404 fdir=`$as_dirname -- "$file" ||
13405$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13406 X"$file" : 'X\(//\)[^/]' \| \
13407 X"$file" : 'X\(//\)$' \| \
13408 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13409$as_echo X"$file" |
13410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13411 s//\1/
13412 q
13413 }
13414 /^X\(\/\/\)[^/].*/{
13415 s//\1/
13416 q
13417 }
13418 /^X\(\/\/\)$/{
13419 s//\1/
13420 q
13421 }
13422 /^X\(\/\).*/{
13423 s//\1/
13424 q
13425 }
13426 s/.*/./; q'`
13427 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13428 # echo "creating $dirpart/$file"
13429 echo '# dummy' > "$dirpart/$file"
13430 done
13431 done
13432}
13433 ;;
13434 "default":C)
13435case x$CONFIG_HEADERS in
13436xconfig.h:config.in)
13437echo > stamp-h ;;
13438esac
13439 ;;
13440
13441 esac
13442done # for ac_tag
13443
13444
13445as_fn_exit 0
13446_ACEOF
13447ac_clean_files=$ac_clean_files_save
13448
13449test $ac_write_fail = 0 ||
13450 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13451
13452
13453# configure is writing to config.log, and then calls config.status.
13454# config.status does its own redirection, appending to config.log.
13455# Unfortunately, on DOS this fails, as config.log is still kept open
13456# by configure, so config.status won't be able to write to it; its
13457# output is simply discarded. So we exec the FD to /dev/null,
13458# effectively closing config.log, so it can be properly (re)opened and
13459# appended to by config.status. When coming back to configure, we
13460# need to make the FD available again.
13461if test "$no_create" != yes; then
13462 ac_cs_success=:
13463 ac_config_status_args=
13464 test "$silent" = yes &&
13465 ac_config_status_args="$ac_config_status_args --quiet"
13466 exec 5>/dev/null
13467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13468 exec 5>>config.log
13469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13470 # would make configure fail if this is the last instruction.
13471 $ac_cs_success || as_fn_exit $?
13472fi
13473if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13475$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13476fi
13477
13478
13479exit 0
This page took 0.622599 seconds and 4 git commands to generate.