Import gnulib's errno module.
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
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
99 IFS=$as_save_IFS
100
101 ;;
102 esac
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.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if 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
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test 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
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
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
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
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
207 fi; }
208 IFS=$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+"$@"}
220 fi
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
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_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.
267 as_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.
277 as_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.
327 if (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 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # 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.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # 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.
362 as_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
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_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.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_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
450 ECHO_C= ECHO_N= ECHO_T=
451 case `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';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (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
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
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 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_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.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 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.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_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
591 gl_fnmatch_required=POSIX
592 gl_func_list=
593 gl_header_list=
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 MKDIR_P
620 INSTALL_STRIP_PROGRAM
621 STRIP
622 install_sh
623 MAKEINFO
624 AUTOHEADER
625 AUTOMAKE
626 AUTOCONF
627 ACLOCAL
628 VERSION
629 PACKAGE
630 CYGPATH_W
631 am__isrc
632 INSTALL_DATA
633 INSTALL_SCRIPT
634 INSTALL_PROGRAM
635 LIBGNU_LTLIBDEPS
636 LIBGNU_LIBDEPS
637 gltests_WITNESS
638 REPLACE_TOWLOWER
639 REPLACE_ISWCNTRL
640 HAVE_WCTYPE_H
641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
642 NEXT_WCTYPE_H
643 HAVE_ISWCNTRL
644 REPLACE_ISWBLANK
645 HAVE_WCTRANS_T
646 HAVE_WCTYPE_T
647 HAVE_ISWBLANK
648 GNULIB_TOWCTRANS
649 GNULIB_WCTRANS
650 GNULIB_ISWCTYPE
651 GNULIB_WCTYPE
652 GNULIB_ISWBLANK
653 HAVE_WINT_T
654 HAVE_FEATURES_H
655 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
656 NEXT_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_STRING_H
658 NEXT_STRING_H
659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
660 NEXT_STDDEF_H
661 GL_GENERATE_STDDEF_H_FALSE
662 GL_GENERATE_STDDEF_H_TRUE
663 STDDEF_H
664 HAVE_WCHAR_T
665 REPLACE_NULL
666 HAVE__BOOL
667 GL_GENERATE_STDBOOL_H_FALSE
668 GL_GENERATE_STDBOOL_H_TRUE
669 STDBOOL_H
670 UNDEFINE_STRTOK_R
671 REPLACE_STRTOK_R
672 REPLACE_STRSIGNAL
673 REPLACE_STRNLEN
674 REPLACE_STRNDUP
675 REPLACE_STRNCAT
676 REPLACE_STRERROR_R
677 REPLACE_STRERROR
678 REPLACE_STRCHRNUL
679 REPLACE_STRCASESTR
680 REPLACE_STRSTR
681 REPLACE_STRDUP
682 REPLACE_STPNCPY
683 REPLACE_MEMMEM
684 REPLACE_MEMCHR
685 HAVE_STRVERSCMP
686 HAVE_DECL_STRSIGNAL
687 HAVE_DECL_STRERROR_R
688 HAVE_DECL_STRTOK_R
689 HAVE_STRCASESTR
690 HAVE_STRSEP
691 HAVE_STRPBRK
692 HAVE_DECL_STRNLEN
693 HAVE_DECL_STRNDUP
694 HAVE_DECL_STRDUP
695 HAVE_STRCHRNUL
696 HAVE_STPNCPY
697 HAVE_STPCPY
698 HAVE_RAWMEMCHR
699 HAVE_DECL_MEMRCHR
700 HAVE_MEMPCPY
701 HAVE_DECL_MEMMEM
702 HAVE_MEMCHR
703 HAVE_FFSLL
704 HAVE_FFSL
705 HAVE_MBSLEN
706 GNULIB_STRVERSCMP
707 GNULIB_STRSIGNAL
708 GNULIB_STRERROR_R
709 GNULIB_STRERROR
710 GNULIB_MBSTOK_R
711 GNULIB_MBSSEP
712 GNULIB_MBSSPN
713 GNULIB_MBSPBRK
714 GNULIB_MBSCSPN
715 GNULIB_MBSCASESTR
716 GNULIB_MBSPCASECMP
717 GNULIB_MBSNCASECMP
718 GNULIB_MBSCASECMP
719 GNULIB_MBSSTR
720 GNULIB_MBSRCHR
721 GNULIB_MBSCHR
722 GNULIB_MBSNLEN
723 GNULIB_MBSLEN
724 GNULIB_STRTOK_R
725 GNULIB_STRCASESTR
726 GNULIB_STRSTR
727 GNULIB_STRSEP
728 GNULIB_STRPBRK
729 GNULIB_STRNLEN
730 GNULIB_STRNDUP
731 GNULIB_STRNCAT
732 GNULIB_STRDUP
733 GNULIB_STRCHRNUL
734 GNULIB_STPNCPY
735 GNULIB_STPCPY
736 GNULIB_RAWMEMCHR
737 GNULIB_MEMRCHR
738 GNULIB_MEMPCPY
739 GNULIB_MEMMEM
740 GNULIB_MEMCHR
741 GNULIB_FFSLL
742 GNULIB_FFSL
743 LOCALE_FR
744 LOCALE_FR_UTF8
745 LOCALE_ZH_CN
746 LOCALE_JA
747 REPLACE_WCSWIDTH
748 REPLACE_WCWIDTH
749 REPLACE_WCSNRTOMBS
750 REPLACE_WCSRTOMBS
751 REPLACE_WCRTOMB
752 REPLACE_MBSNRTOWCS
753 REPLACE_MBSRTOWCS
754 REPLACE_MBRLEN
755 REPLACE_MBRTOWC
756 REPLACE_MBSINIT
757 REPLACE_WCTOB
758 REPLACE_BTOWC
759 REPLACE_MBSTATE_T
760 HAVE_DECL_WCWIDTH
761 HAVE_DECL_WCTOB
762 HAVE_WCSWIDTH
763 HAVE_WCSTOK
764 HAVE_WCSSTR
765 HAVE_WCSPBRK
766 HAVE_WCSSPN
767 HAVE_WCSCSPN
768 HAVE_WCSRCHR
769 HAVE_WCSCHR
770 HAVE_WCSDUP
771 HAVE_WCSXFRM
772 HAVE_WCSCOLL
773 HAVE_WCSNCASECMP
774 HAVE_WCSCASECMP
775 HAVE_WCSNCMP
776 HAVE_WCSCMP
777 HAVE_WCSNCAT
778 HAVE_WCSCAT
779 HAVE_WCPNCPY
780 HAVE_WCSNCPY
781 HAVE_WCPCPY
782 HAVE_WCSCPY
783 HAVE_WCSNLEN
784 HAVE_WCSLEN
785 HAVE_WMEMSET
786 HAVE_WMEMMOVE
787 HAVE_WMEMCPY
788 HAVE_WMEMCMP
789 HAVE_WMEMCHR
790 HAVE_WCSNRTOMBS
791 HAVE_WCSRTOMBS
792 HAVE_WCRTOMB
793 HAVE_MBSNRTOWCS
794 HAVE_MBSRTOWCS
795 HAVE_MBRLEN
796 HAVE_MBRTOWC
797 HAVE_MBSINIT
798 HAVE_BTOWC
799 GNULIB_WCSWIDTH
800 GNULIB_WCSTOK
801 GNULIB_WCSSTR
802 GNULIB_WCSPBRK
803 GNULIB_WCSSPN
804 GNULIB_WCSCSPN
805 GNULIB_WCSRCHR
806 GNULIB_WCSCHR
807 GNULIB_WCSDUP
808 GNULIB_WCSXFRM
809 GNULIB_WCSCOLL
810 GNULIB_WCSNCASECMP
811 GNULIB_WCSCASECMP
812 GNULIB_WCSNCMP
813 GNULIB_WCSCMP
814 GNULIB_WCSNCAT
815 GNULIB_WCSCAT
816 GNULIB_WCPNCPY
817 GNULIB_WCSNCPY
818 GNULIB_WCPCPY
819 GNULIB_WCSCPY
820 GNULIB_WCSNLEN
821 GNULIB_WCSLEN
822 GNULIB_WMEMSET
823 GNULIB_WMEMMOVE
824 GNULIB_WMEMCPY
825 GNULIB_WMEMCMP
826 GNULIB_WMEMCHR
827 GNULIB_WCWIDTH
828 GNULIB_WCSNRTOMBS
829 GNULIB_WCSRTOMBS
830 GNULIB_WCRTOMB
831 GNULIB_MBSNRTOWCS
832 GNULIB_MBSRTOWCS
833 GNULIB_MBRLEN
834 GNULIB_MBRTOWC
835 GNULIB_MBSINIT
836 GNULIB_WCTOB
837 GNULIB_BTOWC
838 LOCALCHARSET_TESTS_ENVIRONMENT
839 GLIBC21
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841 NEXT_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
844 PRIPTR_PREFIX
845 PRI_MACROS_BROKEN
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
848 REPLACE_STRTOIMAX
849 HAVE_DECL_STRTOUMAX
850 HAVE_DECL_STRTOIMAX
851 HAVE_DECL_IMAXDIV
852 HAVE_DECL_IMAXABS
853 GNULIB_STRTOUMAX
854 GNULIB_STRTOIMAX
855 GNULIB_IMAXDIV
856 GNULIB_IMAXABS
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
859 STDINT_H
860 WINT_T_SUFFIX
861 WCHAR_T_SUFFIX
862 SIG_ATOMIC_T_SUFFIX
863 SIZE_T_SUFFIX
864 PTRDIFF_T_SUFFIX
865 HAVE_SIGNED_WINT_T
866 HAVE_SIGNED_WCHAR_T
867 HAVE_SIGNED_SIG_ATOMIC_T
868 BITSIZEOF_WINT_T
869 BITSIZEOF_WCHAR_T
870 BITSIZEOF_SIG_ATOMIC_T
871 BITSIZEOF_SIZE_T
872 BITSIZEOF_PTRDIFF_T
873 APPLE_UNIVERSAL_BUILD
874 HAVE_SYS_BITYPES_H
875 HAVE_SYS_INTTYPES_H
876 HAVE_STDINT_H
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
878 NEXT_STDINT_H
879 HAVE_SYS_TYPES_H
880 HAVE_INTTYPES_H
881 HAVE_WCHAR_H
882 HAVE_UNSIGNED_LONG_LONG_INT
883 HAVE_LONG_LONG_INT
884 GL_GENERATE_FNMATCH_H_FALSE
885 GL_GENERATE_FNMATCH_H_TRUE
886 FNMATCH_H
887 EOVERFLOW_VALUE
888 EOVERFLOW_HIDDEN
889 ENOLINK_VALUE
890 ENOLINK_HIDDEN
891 EMULTIHOP_VALUE
892 EMULTIHOP_HIDDEN
893 GL_GENERATE_ERRNO_H_FALSE
894 GL_GENERATE_ERRNO_H_TRUE
895 ERRNO_H
896 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
897 NEXT_ERRNO_H
898 PRAGMA_COLUMNS
899 PRAGMA_SYSTEM_HEADER
900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
901 INCLUDE_NEXT
902 pkglibexecdir
903 lispdir
904 GL_GENERATE_ALLOCA_H_FALSE
905 GL_GENERATE_ALLOCA_H_TRUE
906 ALLOCA_H
907 ALLOCA
908 GL_COND_LIBTOOL_FALSE
909 GL_COND_LIBTOOL_TRUE
910 target_os
911 target_vendor
912 target_cpu
913 target
914 RANLIB
915 ARFLAGS
916 AR
917 EGREP
918 GREP
919 CPP
920 host_os
921 host_vendor
922 host_cpu
923 host
924 build_os
925 build_vendor
926 build_cpu
927 build
928 OBJEXT
929 EXEEXT
930 ac_ct_CC
931 CPPFLAGS
932 LDFLAGS
933 CFLAGS
934 CC
935 MAINT
936 MAINTAINER_MODE_FALSE
937 MAINTAINER_MODE_TRUE
938 target_alias
939 host_alias
940 build_alias
941 LIBS
942 ECHO_T
943 ECHO_N
944 ECHO_C
945 DEFS
946 mandir
947 localedir
948 libdir
949 psdir
950 pdfdir
951 dvidir
952 htmldir
953 infodir
954 docdir
955 oldincludedir
956 includedir
957 localstatedir
958 sharedstatedir
959 sysconfdir
960 datadir
961 datarootdir
962 libexecdir
963 sbindir
964 bindir
965 program_transform_name
966 prefix
967 exec_prefix
968 PACKAGE_URL
969 PACKAGE_BUGREPORT
970 PACKAGE_STRING
971 PACKAGE_VERSION
972 PACKAGE_TARNAME
973 PACKAGE_NAME
974 PATH_SEPARATOR
975 SHELL'
976 ac_subst_files=''
977 ac_user_opts='
978 enable_option_checking
979 enable_maintainer_mode
980 enable_dependency_tracking
981 '
982 ac_precious_vars='build_alias
983 host_alias
984 target_alias
985 CC
986 CFLAGS
987 LDFLAGS
988 LIBS
989 CPPFLAGS
990 CPP'
991
992
993 # Initialize some variables set by options.
994 ac_init_help=
995 ac_init_version=false
996 ac_unrecognized_opts=
997 ac_unrecognized_sep=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1001 exec_prefix=NONE
1002 no_create=
1003 no_recursion=
1004 prefix=NONE
1005 program_prefix=NONE
1006 program_suffix=NONE
1007 program_transform_name=s,x,x,
1008 silent=
1009 site=
1010 srcdir=
1011 verbose=
1012 x_includes=NONE
1013 x_libraries=NONE
1014
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1040
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1044 do
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1048 ac_prev=
1049 continue
1050 fi
1051
1052 case $ac_option in
1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 *) ac_optarg=yes ;;
1055 esac
1056
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1058
1059 case $ac_dashdash$ac_option in
1060 --)
1061 ac_dashdash=yes ;;
1062
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 ac_prev=bindir ;;
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1067
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1072
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1079
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1082
1083 -datadir | --datadir | --datadi | --datad)
1084 ac_prev=datadir ;;
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1087
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1094
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1110
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1115
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1120
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1136
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1145
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1148 with_gas=yes ;;
1149
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1156
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1161
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 ac_prev=htmldir ;;
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 | --ht=*)
1166 htmldir=$ac_optarg ;;
1167
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1174
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 ac_prev=infodir ;;
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1179
1180 -libdir | --libdir | --libdi | --libd)
1181 ac_prev=libdir ;;
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1184
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1191
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1196
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1203
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 ac_prev=mandir ;;
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1208
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1211 with_fp=no ;;
1212
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1215 no_create=yes ;;
1216
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 no_recursion=yes ;;
1220
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1229
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 ac_prev=prefix ;;
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1234
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1241
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1248
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1265
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 ac_prev=pdfdir ;;
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1270
1271 -psdir | --psdir | --psdi | --psd | --ps)
1272 ac_prev=psdir ;;
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 psdir=$ac_optarg ;;
1275
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 silent=yes ;;
1279
1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281 ac_prev=sbindir ;;
1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283 | --sbi=* | --sb=*)
1284 sbindir=$ac_optarg ;;
1285
1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288 | --sharedst | --shareds | --shared | --share | --shar \
1289 | --sha | --sh)
1290 ac_prev=sharedstatedir ;;
1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294 | --sha=* | --sh=*)
1295 sharedstatedir=$ac_optarg ;;
1296
1297 -site | --site | --sit)
1298 ac_prev=site ;;
1299 -site=* | --site=* | --sit=*)
1300 site=$ac_optarg ;;
1301
1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303 ac_prev=srcdir ;;
1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305 srcdir=$ac_optarg ;;
1306
1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308 | --syscon | --sysco | --sysc | --sys | --sy)
1309 ac_prev=sysconfdir ;;
1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312 sysconfdir=$ac_optarg ;;
1313
1314 -target | --target | --targe | --targ | --tar | --ta | --t)
1315 ac_prev=target_alias ;;
1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317 target_alias=$ac_optarg ;;
1318
1319 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320 verbose=yes ;;
1321
1322 -version | --version | --versio | --versi | --vers | -V)
1323 ac_init_version=: ;;
1324
1325 -with-* | --with-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=\$ac_optarg ;;
1340
1341 -without-* | --without-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error "invalid package name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1349 *"
1350 "with_$ac_useropt"
1351 "*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval with_$ac_useropt=no ;;
1356
1357 --x)
1358 # Obsolete; use --with-x.
1359 with_x=yes ;;
1360
1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1362 | --x-incl | --x-inc | --x-in | --x-i)
1363 ac_prev=x_includes ;;
1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1366 x_includes=$ac_optarg ;;
1367
1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1370 ac_prev=x_libraries ;;
1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1373 x_libraries=$ac_optarg ;;
1374
1375 -*) as_fn_error "unrecognized option: \`$ac_option'
1376 Try \`$0 --help' for more information."
1377 ;;
1378
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 case $ac_envvar in #(
1383 '' | [0-9]* | *[!_$as_cr_alnum]* )
1384 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1385 esac
1386 eval $ac_envvar=\$ac_optarg
1387 export $ac_envvar ;;
1388
1389 *)
1390 # FIXME: should be removed in autoconf 3.0.
1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1394 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1395 ;;
1396
1397 esac
1398 done
1399
1400 if test -n "$ac_prev"; then
1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1402 as_fn_error "missing argument to $ac_option"
1403 fi
1404
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
1408 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410 esac
1411 fi
1412
1413 # Check all directory arguments for consistency.
1414 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415 datadir sysconfdir sharedstatedir localstatedir includedir \
1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417 libdir localedir mandir
1418 do
1419 eval ac_val=\$$ac_var
1420 # Remove trailing slashes.
1421 case $ac_val in
1422 */ )
1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424 eval $ac_var=\$ac_val;;
1425 esac
1426 # Be sure to have absolute directory names.
1427 case $ac_val in
1428 [\\/$]* | ?:[\\/]* ) continue;;
1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1430 esac
1431 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1432 done
1433
1434 # There might be people who depend on the old broken behavior: `$host'
1435 # used to hold the argument of --host etc.
1436 # FIXME: To remove some day.
1437 build=$build_alias
1438 host=$host_alias
1439 target=$target_alias
1440
1441 # FIXME: To remove some day.
1442 if test "x$host_alias" != x; then
1443 if test "x$build_alias" = x; then
1444 cross_compiling=maybe
1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446 If a cross compiler is detected then cross compile mode will be used." >&2
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1449 fi
1450 fi
1451
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454
1455 test "$silent" = yes && exec 6>/dev/null
1456
1457
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error "pwd does not report name of working directory"
1464
1465
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\).*/{
1489 s//\1/
1490 q
1491 }
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1496 fi
1497 else
1498 ac_srcdir_defaulted=no
1499 fi
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1503 fi
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1507 pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1511 fi
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1524
1525 #
1526 # Report the --help message.
1527 #
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532 \`configure' configures this package to adapt to many kinds of systems.
1533
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1535
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1538
1539 Defaults for the options are specified in brackets.
1540
1541 Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1551
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1557
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1562
1563 For better control, use the options below.
1564
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1585 _ACEOF
1586
1587 cat <<\_ACEOF
1588
1589 Program names:
1590 --program-prefix=PREFIX prepend PREFIX to installed program names
1591 --program-suffix=SUFFIX append SUFFIX to installed program names
1592 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1593
1594 System types:
1595 --build=BUILD configure for building on BUILD [guessed]
1596 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1597 --target=TARGET configure for building compilers for TARGET [HOST]
1598 _ACEOF
1599 fi
1600
1601 if test -n "$ac_init_help"; then
1602
1603 cat <<\_ACEOF
1604
1605 Optional Features:
1606 --disable-option-checking ignore unrecognized --enable/--with options
1607 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1608 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1609 --enable-maintainer-mode enable make rules and dependencies not useful
1610 (and sometimes confusing) to the casual installer
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CPP C preprocessor
1623
1624 Use these variables to override the choices made by `configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1626
1627 Report bugs to the package provider.
1628 _ACEOF
1629 ac_status=$?
1630 fi
1631
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 continue
1638 ac_builddir=.
1639
1640 case "$ac_dir" in
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *)
1643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650 esac
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1655
1656 case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 esac
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1685 fi
1686
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689 cat <<\_ACEOF
1690 configure
1691 generated by GNU Autoconf 2.64
1692
1693 Copyright (C) 2009 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1696 _ACEOF
1697 exit
1698 fi
1699
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1703
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext
1711 if { { ac_try="$ac_compile"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.$ac_objext; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736 fi
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 return $ac_retval
1739
1740 } # ac_fn_c_try_compile
1741
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_cpp ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } >/dev/null && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773 fi
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777 } # ac_fn_c_try_cpp
1778
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807 else
1808 ac_header_compiler=no
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1813
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823 else
1824 ac_header_preproc=no
1825 fi
1826 rm -f conftest.err conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1829
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ;;
1850 esac
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864 } # ac_fn_c_check_header_mongrel
1865
1866 # ac_fn_c_try_run LINENO
1867 # ----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869 # that executables *can* be run.
1870 ac_fn_c_try_run ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884 { { case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_try") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; }; }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: program exited with status $ac_status" >&5
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900 ac_retval=$ac_status
1901 fi
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1905
1906 } # ac_fn_c_try_run
1907
1908 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists and can be compiled using the include files in
1911 # INCLUDES, setting the cache variable VAR accordingly.
1912 ac_fn_c_check_header_compile ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 #include <$2>
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 eval "$3=yes"
1927 else
1928 eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937 } # ac_fn_c_check_header_compile
1938
1939 # ac_fn_c_try_link LINENO
1940 # -----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_c_try_link ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext conftest$ac_exeext
1946 if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1959 fi
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest$ac_exeext && {
1965 test "$cross_compiling" = yes ||
1966 $as_test_x conftest$ac_exeext
1967 }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=1
1974 fi
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1982
1983 } # ac_fn_c_try_link
1984
1985 # ac_fn_c_check_func LINENO FUNC VAR
1986 # ----------------------------------
1987 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1988 ac_fn_c_check_func ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2000 #define $2 innocuous_$2
2001
2002 /* System header to define __stub macros and hopefully few prototypes,
2003 which can conflict with char $2 (); below.
2004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2005 <limits.h> exists even on freestanding compilers. */
2006
2007 #ifdef __STDC__
2008 # include <limits.h>
2009 #else
2010 # include <assert.h>
2011 #endif
2012
2013 #undef $2
2014
2015 /* Override any GCC internal prototype to avoid an error.
2016 Use char because int might match the return type of a GCC
2017 builtin and then its argument prototype would still apply. */
2018 #ifdef __cplusplus
2019 extern "C"
2020 #endif
2021 char $2 ();
2022 /* The GNU C library defines this for functions which it implements
2023 to always fail with ENOSYS. Some functions are actually named
2024 something starting with __ and the normal name is an alias. */
2025 #if defined __stub_$2 || defined __stub___$2
2026 choke me
2027 #endif
2028
2029 int
2030 main ()
2031 {
2032 return $2 ();
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_link "$LINENO"; then :
2038 eval "$3=yes"
2039 else
2040 eval "$3=no"
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext \
2043 conftest$ac_exeext conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049
2050 } # ac_fn_c_check_func
2051
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2056 # computed
2057 ac_fn_c_compute_int ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2069 test_array [0] = 0
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_lo=0 ac_mid=0
2077 while :; do
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0
2086
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid; break
2093 else
2094 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095 if test $ac_lo -le $ac_mid; then
2096 ac_lo= ac_hi=
2097 break
2098 fi
2099 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) < 0)];
2111 test_array [0] = 0
2112
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 ac_hi=-1 ac_mid=-1
2119 while :; do
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $4
2123 int
2124 main ()
2125 {
2126 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 test_array [0] = 0
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_lo=$ac_mid; break
2135 else
2136 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2137 if test $ac_mid -le $ac_hi; then
2138 ac_lo= ac_hi=
2139 break
2140 fi
2141 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 done
2145 else
2146 ac_lo= ac_hi=
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 # Binary search between lo and hi bounds.
2152 while test "x$ac_lo" != "x$ac_hi"; do
2153 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main ()
2159 {
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 test_array [0] = 0
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid
2169 else
2170 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 done
2174 case $ac_lo in #((
2175 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2176 '') ac_retval=1 ;;
2177 esac
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2184 #include <stdio.h>
2185 #include <stdlib.h>
2186 int
2187 main ()
2188 {
2189
2190 FILE *f = fopen ("conftest.val", "w");
2191 if (! f)
2192 return 1;
2193 if (($2) < 0)
2194 {
2195 long int i = longval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%ld", i);
2199 }
2200 else
2201 {
2202 unsigned long int i = ulongval ();
2203 if (i != ($2))
2204 return 1;
2205 fprintf (f, "%lu", i);
2206 }
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_run "$LINENO"; then :
2216 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2217 else
2218 ac_retval=1
2219 fi
2220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2221 conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 rm -f conftest.val
2223
2224 fi
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226 return $ac_retval
2227
2228 } # ac_fn_c_compute_int
2229
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR
2231 # ------------------------------------
2232 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2233 ac_fn_c_check_decl ()
2234 {
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2237 $as_echo_n "checking whether $2 is declared... " >&6; }
2238 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 $4
2244 int
2245 main ()
2246 {
2247 #ifndef $2
2248 (void) $2;
2249 #endif
2250
2251 ;
2252 return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 eval "$3=yes"
2257 else
2258 eval "$3=no"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 eval ac_res=\$$3
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266
2267 } # ac_fn_c_check_decl
2268
2269 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2270 # -------------------------------------------
2271 # Tests whether TYPE exists after having included INCLUDES, setting cache
2272 # variable VAR accordingly.
2273 ac_fn_c_check_type ()
2274 {
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 eval "$3=no"
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $4
2285 int
2286 main ()
2287 {
2288 if (sizeof ($2))
2289 return 0;
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $4
2298 int
2299 main ()
2300 {
2301 if (sizeof (($2)))
2302 return 0;
2303 ;
2304 return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308
2309 else
2310 eval "$3=yes"
2311 fi
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 fi
2316 eval ac_res=\$$3
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320
2321 } # ac_fn_c_check_type
2322 cat >config.log <<_ACEOF
2323 This file contains any messages produced by compilers while
2324 running configure, to aid debugging if configure makes a mistake.
2325
2326 It was created by $as_me, which was
2327 generated by GNU Autoconf 2.64. Invocation command line was
2328
2329 $ $0 $@
2330
2331 _ACEOF
2332 exec 5>>config.log
2333 {
2334 cat <<_ASUNAME
2335 ## --------- ##
2336 ## Platform. ##
2337 ## --------- ##
2338
2339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2344
2345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2346 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2347
2348 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2349 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2351 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2352 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2353 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2354 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2355
2356 _ASUNAME
2357
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 $as_echo "PATH: $as_dir"
2364 done
2365 IFS=$as_save_IFS
2366
2367 } >&5
2368
2369 cat >&5 <<_ACEOF
2370
2371
2372 ## ----------- ##
2373 ## Core tests. ##
2374 ## ----------- ##
2375
2376 _ACEOF
2377
2378
2379 # Keep a trace of the command line.
2380 # Strip out --no-create and --no-recursion so they do not pile up.
2381 # Strip out --silent because we don't want to record it for future runs.
2382 # Also quote any args containing shell meta-characters.
2383 # Make two passes to allow for proper duplicate-argument suppression.
2384 ac_configure_args=
2385 ac_configure_args0=
2386 ac_configure_args1=
2387 ac_must_keep_next=false
2388 for ac_pass in 1 2
2389 do
2390 for ac_arg
2391 do
2392 case $ac_arg in
2393 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2395 | -silent | --silent | --silen | --sile | --sil)
2396 continue ;;
2397 *\'*)
2398 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 esac
2400 case $ac_pass in
2401 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2402 2)
2403 as_fn_append ac_configure_args1 " '$ac_arg'"
2404 if test $ac_must_keep_next = true; then
2405 ac_must_keep_next=false # Got value, back to normal.
2406 else
2407 case $ac_arg in
2408 *=* | --config-cache | -C | -disable-* | --disable-* \
2409 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2410 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2411 | -with-* | --with-* | -without-* | --without-* | --x)
2412 case "$ac_configure_args0 " in
2413 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414 esac
2415 ;;
2416 -* ) ac_must_keep_next=true ;;
2417 esac
2418 fi
2419 as_fn_append ac_configure_args " '$ac_arg'"
2420 ;;
2421 esac
2422 done
2423 done
2424 { ac_configure_args0=; unset ac_configure_args0;}
2425 { ac_configure_args1=; unset ac_configure_args1;}
2426
2427 # When interrupted or exit'd, cleanup temporary files, and complete
2428 # config.log. We remove comments because anyway the quotes in there
2429 # would cause problems or look ugly.
2430 # WARNING: Use '\'' to represent an apostrophe within the trap.
2431 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2432 trap 'exit_status=$?
2433 # Save into config.log some information that might help in debugging.
2434 {
2435 echo
2436
2437 cat <<\_ASBOX
2438 ## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##
2441 _ASBOX
2442 echo
2443 # The following way of writing the cache mishandles newlines in values,
2444 (
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in #(
2448 *${as_nl}*)
2449 case $ac_var in #(
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2452 esac
2453 case $ac_var in #(
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2457 esac ;;
2458 esac
2459 done
2460 (set) 2>&1 |
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2463 sed -n \
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2466 ;; #(
2467 *)
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 ;;
2470 esac |
2471 sort
2472 )
2473 echo
2474
2475 cat <<\_ASBOX
2476 ## ----------------- ##
2477 ## Output variables. ##
2478 ## ----------------- ##
2479 _ASBOX
2480 echo
2481 for ac_var in $ac_subst_vars
2482 do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2490
2491 if test -n "$ac_subst_files"; then
2492 cat <<\_ASBOX
2493 ## ------------------- ##
2494 ## File substitutions. ##
2495 ## ------------------- ##
2496 _ASBOX
2497 echo
2498 for ac_var in $ac_subst_files
2499 do
2500 eval ac_val=\$$ac_var
2501 case $ac_val in
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503 esac
2504 $as_echo "$ac_var='\''$ac_val'\''"
2505 done | sort
2506 echo
2507 fi
2508
2509 if test -s confdefs.h; then
2510 cat <<\_ASBOX
2511 ## ----------- ##
2512 ## confdefs.h. ##
2513 ## ----------- ##
2514 _ASBOX
2515 echo
2516 cat confdefs.h
2517 echo
2518 fi
2519 test "$ac_signal" != 0 &&
2520 $as_echo "$as_me: caught signal $ac_signal"
2521 $as_echo "$as_me: exit $exit_status"
2522 } >&5
2523 rm -f core *.core core.conftest.* &&
2524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2525 exit $exit_status
2526 ' 0
2527 for ac_signal in 1 2 13 15; do
2528 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2529 done
2530 ac_signal=0
2531
2532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2533 rm -f -r conftest* confdefs.h
2534
2535 $as_echo "/* confdefs.h */" > confdefs.h
2536
2537 # Predefined preprocessor variables.
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_NAME "$PACKAGE_NAME"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2545 _ACEOF
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2549 _ACEOF
2550
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_STRING "$PACKAGE_STRING"
2553 _ACEOF
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2557 _ACEOF
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_URL "$PACKAGE_URL"
2561 _ACEOF
2562
2563
2564 # Let the site file select an alternate cache file if it wants to.
2565 # Prefer an explicitly selected file to automatically selected ones.
2566 ac_site_file1=NONE
2567 ac_site_file2=NONE
2568 if test -n "$CONFIG_SITE"; then
2569 ac_site_file1=$CONFIG_SITE
2570 elif test "x$prefix" != xNONE; then
2571 ac_site_file1=$prefix/share/config.site
2572 ac_site_file2=$prefix/etc/config.site
2573 else
2574 ac_site_file1=$ac_default_prefix/share/config.site
2575 ac_site_file2=$ac_default_prefix/etc/config.site
2576 fi
2577 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2578 do
2579 test "x$ac_site_file" = xNONE && continue
2580 if test -r "$ac_site_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2582 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2583 sed 's/^/| /' "$ac_site_file" >&5
2584 . "$ac_site_file"
2585 fi
2586 done
2587
2588 if test -r "$cache_file"; then
2589 # Some versions of bash will fail to source /dev/null (special
2590 # files actually), so we avoid doing that.
2591 if test -f "$cache_file"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2593 $as_echo "$as_me: loading cache $cache_file" >&6;}
2594 case $cache_file in
2595 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2596 *) . "./$cache_file";;
2597 esac
2598 fi
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2601 $as_echo "$as_me: creating cache $cache_file" >&6;}
2602 >$cache_file
2603 fi
2604
2605 gl_func_list="$gl_func_list btowc"
2606 gl_func_list="$gl_func_list isblank"
2607 gl_func_list="$gl_func_list iswctype"
2608 gl_func_list="$gl_func_list mbsrtowcs"
2609 gl_func_list="$gl_func_list mempcpy"
2610 gl_func_list="$gl_func_list wmemchr"
2611 gl_func_list="$gl_func_list wmemcpy"
2612 gl_func_list="$gl_func_list wmempcpy"
2613 gl_header_list="$gl_header_list wctype.h"
2614 gl_fnmatch_required=GNU
2615 gl_header_list="$gl_header_list wchar.h"
2616 gl_header_list="$gl_header_list stdint.h"
2617 gl_header_list="$gl_header_list inttypes.h"
2618 gl_header_list="$gl_header_list unistd.h"
2619 gl_func_list="$gl_func_list symlink"
2620 gl_func_list="$gl_func_list mbsinit"
2621 gl_func_list="$gl_func_list mbrtowc"
2622 gl_header_list="$gl_header_list sys/mman.h"
2623 gl_func_list="$gl_func_list mprotect"
2624 gl_header_list="$gl_header_list features.h"
2625 gl_func_list="$gl_func_list iswcntrl"
2626 # Check that the precious variables saved in the cache have kept the same
2627 # value.
2628 ac_cache_corrupted=false
2629 for ac_var in $ac_precious_vars; do
2630 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2631 eval ac_new_set=\$ac_env_${ac_var}_set
2632 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2633 eval ac_new_val=\$ac_env_${ac_var}_value
2634 case $ac_old_set,$ac_new_set in
2635 set,)
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2637 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2638 ac_cache_corrupted=: ;;
2639 ,set)
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2641 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2642 ac_cache_corrupted=: ;;
2643 ,);;
2644 *)
2645 if test "x$ac_old_val" != "x$ac_new_val"; then
2646 # differences in whitespace do not lead to failure.
2647 ac_old_val_w=`echo x $ac_old_val`
2648 ac_new_val_w=`echo x $ac_new_val`
2649 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2651 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2652 ac_cache_corrupted=:
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2655 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2656 eval $ac_var=\$ac_old_val
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2659 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2661 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2662 fi;;
2663 esac
2664 # Pass precious variables to config.status.
2665 if test "$ac_new_set" = set; then
2666 case $ac_new_val in
2667 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2668 *) ac_arg=$ac_var=$ac_new_val ;;
2669 esac
2670 case " $ac_configure_args " in
2671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2672 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2673 esac
2674 fi
2675 done
2676 if $ac_cache_corrupted; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2680 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2681 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 fi
2683 ## -------------------- ##
2684 ## Main body of script. ##
2685 ## -------------------- ##
2686
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694 ac_config_headers="$ac_config_headers config.h:config.in"
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699 # Check whether --enable-maintainer-mode was given.
2700 if test "${enable_maintainer_mode+set}" = set; then :
2701 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2702 else
2703 USE_MAINTAINER_MODE=no
2704 fi
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2707 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2708 if test $USE_MAINTAINER_MODE = yes; then
2709 MAINTAINER_MODE_TRUE=
2710 MAINTAINER_MODE_FALSE='#'
2711 else
2712 MAINTAINER_MODE_TRUE='#'
2713 MAINTAINER_MODE_FALSE=
2714 fi
2715
2716 MAINT=$MAINTAINER_MODE_TRUE
2717
2718
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 fi
2764 if test -z "$ac_cv_prog_CC"; then
2765 ac_ct_CC=$CC
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_ac_ct_CC="gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802 if test "x$ac_ct_CC" = x; then
2803 CC=""
2804 else
2805 case $cross_compiling:$ac_tool_warned in
2806 yes:)
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811 CC=$ac_ct_CC
2812 fi
2813 else
2814 CC="$ac_cv_prog_CC"
2815 fi
2816
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820 set dummy ${ac_tool_prefix}cc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_CC+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CC="${ac_tool_prefix}cc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855
2856 fi
2857 fi
2858 if test -z "$CC"; then
2859 # Extract the first word of "cc", so it can be a program name with args.
2860 set dummy cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 ac_prog_rejected=no
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878 ac_prog_rejected=yes
2879 continue
2880 fi
2881 ac_cv_prog_CC="cc"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899 fi
2900 fi
2901 fi
2902 fi
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912
2913 fi
2914 if test -z "$CC"; then
2915 if test -n "$ac_tool_prefix"; then
2916 for ac_prog in cl.exe
2917 do
2918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2953
2954
2955 test -n "$CC" && break
2956 done
2957 fi
2958 if test -z "$CC"; then
2959 ac_ct_CC=$CC
2960 for ac_prog in cl.exe
2961 do
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="$ac_prog"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 test -n "$ac_ct_CC" && break
3000 done
3001
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 CC=$ac_ct_CC
3012 fi
3013 fi
3014
3015 fi
3016
3017
3018 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error "no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." "$LINENO" 5; }
3022
3023 # Provide some information about the compiler.
3024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3025 set X $ac_compile
3026 ac_compiler=$2
3027 for ac_option in --version -v -V -qversion; do
3028 { { ac_try="$ac_compiler $ac_option >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036 ac_status=$?
3037 if test -s conftest.err; then
3038 sed '10a\
3039 ... rest of stderr output deleted ...
3040 10q' conftest.err >conftest.er1
3041 cat conftest.er1 >&5
3042 rm -f conftest.er1 conftest.err
3043 fi
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }
3046 done
3047
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3050 #include <stdio.h>
3051 int
3052 main ()
3053 {
3054 FILE *f = fopen ("conftest.out", "w");
3055 return ferror (f) || fclose (f) != 0;
3056
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 ac_clean_files_save=$ac_clean_files
3062 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3063 # Try to create an executable without -o first, disregard a.out.
3064 # It will help us diagnose broken compilers, and finding out an intuition
3065 # of exeext.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067 $as_echo_n "checking for C compiler default output file name... " >&6; }
3068 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069
3070 # The possible output files:
3071 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3072
3073 ac_rmfiles=
3074 for ac_file in $ac_files
3075 do
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3079 esac
3080 done
3081 rm -f $ac_rmfiles
3082
3083 if { { ac_try="$ac_link_default"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link_default") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3097 # so that the user can short-circuit this test for compilers unknown to
3098 # Autoconf.
3099 for ac_file in $ac_files ''
3100 do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3104 ;;
3105 [ab].out )
3106 # We found the default executable, but exeext='' is most
3107 # certainly right.
3108 break;;
3109 *.* )
3110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3111 then :; else
3112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 fi
3114 # We set ac_cv_exeext here because the later test for it is not
3115 # safe: cross compilers may not add the suffix if given an `-o'
3116 # argument, so we may need to know it at that point already.
3117 # Even if this section looks crufty: it has the advantage of
3118 # actually working.
3119 break;;
3120 * )
3121 break;;
3122 esac
3123 done
3124 test "$ac_cv_exeext" = no && ac_cv_exeext=
3125
3126 else
3127 ac_file=''
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130 $as_echo "$ac_file" >&6; }
3131 if test -z "$ac_file"; then :
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { as_fn_set_status 77
3138 as_fn_error "C compiler cannot create executables
3139 See \`config.log' for more details." "$LINENO" 5; }; }
3140 fi
3141 ac_exeext=$ac_cv_exeext
3142
3143 # Check that the compiler produces executables we can run. If not, either
3144 # the compiler is broken, or we cross compile.
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3146 $as_echo_n "checking whether the C compiler works... " >&6; }
3147 # If not cross compiling, check that we can run a simple program.
3148 if test "$cross_compiling" != yes; then
3149 if { ac_try='./$ac_file'
3150 { { case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; }; then
3160 cross_compiling=no
3161 else
3162 if test "$cross_compiling" = maybe; then
3163 cross_compiling=yes
3164 else
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error "cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details." "$LINENO" 5; }
3170 fi
3171 fi
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175
3176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3177 ac_clean_files=$ac_clean_files_save
3178 # Check that the compiler produces executables we can run. If not, either
3179 # the compiler is broken, or we cross compile.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3181 $as_echo_n "checking whether we are cross compiling... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3183 $as_echo "$cross_compiling" >&6; }
3184
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186 $as_echo_n "checking for suffix of executables... " >&6; }
3187 if { { ac_try="$ac_link"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_link") 2>&5
3195 ac_status=$?
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 # `rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 break;;
3208 * ) break;;
3209 esac
3210 done
3211 else
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." "$LINENO" 5; }
3216 fi
3217 rm -f conftest$ac_cv_exeext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219 $as_echo "$ac_cv_exeext" >&6; }
3220
3221 rm -f conftest.$ac_ext
3222 EXEEXT=$ac_cv_exeext
3223 ac_exeext=$EXEEXT
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3225 $as_echo_n "checking for suffix of object files... " >&6; }
3226 if test "${ac_cv_objext+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231
3232 int
3233 main ()
3234 {
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 rm -f conftest.o conftest.obj
3241 if { { ac_try="$ac_compile"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compile") 2>&5
3249 ac_status=$?
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259 done
3260 else
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error "cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." "$LINENO" 5; }
3268 fi
3269 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3272 $as_echo "$ac_cv_objext" >&6; }
3273 OBJEXT=$ac_cv_objext
3274 ac_objext=$OBJEXT
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3276 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3277 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286 #ifndef __GNUC__
3287 choke me
3288 #endif
3289
3290 ;
3291 return 0;
3292 }
3293 _ACEOF
3294 if ac_fn_c_try_compile "$LINENO"; then :
3295 ac_compiler_gnu=yes
3296 else
3297 ac_compiler_gnu=no
3298 fi
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3301
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3304 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3305 if test $ac_compiler_gnu = yes; then
3306 GCC=yes
3307 else
3308 GCC=
3309 fi
3310 ac_test_CFLAGS=${CFLAGS+set}
3311 ac_save_CFLAGS=$CFLAGS
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3313 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3314 if test "${ac_cv_prog_cc_g+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_save_c_werror_flag=$ac_c_werror_flag
3318 ac_c_werror_flag=yes
3319 ac_cv_prog_cc_g=no
3320 CFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3323
3324 int
3325 main ()
3326 {
3327
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"; then :
3333 ac_cv_prog_cc_g=yes
3334 else
3335 CFLAGS=""
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 if ac_fn_c_try_compile "$LINENO"; then :
3348
3349 else
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351 CFLAGS="-g"
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3354
3355 int
3356 main ()
3357 {
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"; then :
3364 ac_cv_prog_cc_g=yes
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 fi
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3374 $as_echo "$ac_cv_prog_cc_g" >&6; }
3375 if test "$ac_test_CFLAGS" = set; then
3376 CFLAGS=$ac_save_CFLAGS
3377 elif test $ac_cv_prog_cc_g = yes; then
3378 if test "$GCC" = yes; then
3379 CFLAGS="-g -O2"
3380 else
3381 CFLAGS="-g"
3382 fi
3383 else
3384 if test "$GCC" = yes; then
3385 CFLAGS="-O2"
3386 else
3387 CFLAGS=
3388 fi
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3391 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3392 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_cv_prog_cc_c89=no
3396 ac_save_CC=$CC
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399 #include <stdarg.h>
3400 #include <stdio.h>
3401 #include <sys/types.h>
3402 #include <sys/stat.h>
3403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404 struct buf { int x; };
3405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406 static char *e (p, i)
3407 char **p;
3408 int i;
3409 {
3410 return p[i];
3411 }
3412 static char *f (char * (*g) (char **, int), char **p, ...)
3413 {
3414 char *s;
3415 va_list v;
3416 va_start (v,p);
3417 s = g (p, va_arg (v,int));
3418 va_end (v);
3419 return s;
3420 }
3421
3422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
3425 as 'x'. The following induces an error, until -std is added to get
3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
3428 that's true only with -std. */
3429 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430
3431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3433 #define FOO(x) 'x'
3434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435
3436 int test (int i, double x);
3437 struct s1 {int (*f) (int a);};
3438 struct s2 {int (*f) (double a);};
3439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440 int argc;
3441 char **argv;
3442 int
3443 main ()
3444 {
3445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 do
3453 CC="$ac_save_CC $ac_arg"
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_c89=$ac_arg
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
3459 done
3460 rm -f conftest.$ac_ext
3461 CC=$ac_save_CC
3462
3463 fi
3464 # AC_CACHE_VAL
3465 case "x$ac_cv_prog_cc_c89" in
3466 x)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3468 $as_echo "none needed" >&6; } ;;
3469 xno)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3471 $as_echo "unsupported" >&6; } ;;
3472 *)
3473 CC="$CC $ac_cv_prog_cc_c89"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3475 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3476 esac
3477 if test "x$ac_cv_prog_cc_c89" != xno; then :
3478
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487 ac_aux_dir=
3488 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3489 for ac_t in install-sh install.sh shtool; do
3490 if test -f "$ac_dir/$ac_t"; then
3491 ac_aux_dir=$ac_dir
3492 ac_install_sh="$ac_aux_dir/$ac_t -c"
3493 break 2
3494 fi
3495 done
3496 done
3497 if test -z "$ac_aux_dir"; then
3498 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3499 fi
3500
3501 # These three variables are undocumented and unsupported,
3502 # and are intended to be withdrawn in a future Autoconf release.
3503 # They can cause serious problems if a builder's source tree is in a directory
3504 # whose full name contains unusual characters.
3505 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3506 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3507 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3508
3509
3510 # Make sure we can run config.sub.
3511 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3512 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3513
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3515 $as_echo_n "checking build system type... " >&6; }
3516 if test "${ac_cv_build+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 ac_build_alias=$build_alias
3520 test "x$ac_build_alias" = x &&
3521 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3522 test "x$ac_build_alias" = x &&
3523 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3524 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3525 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3526
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3529 $as_echo "$ac_cv_build" >&6; }
3530 case $ac_cv_build in
3531 *-*-*) ;;
3532 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3533 esac
3534 build=$ac_cv_build
3535 ac_save_IFS=$IFS; IFS='-'
3536 set x $ac_cv_build
3537 shift
3538 build_cpu=$1
3539 build_vendor=$2
3540 shift; shift
3541 # Remember, the first character of IFS is used to create $*,
3542 # except with old shells:
3543 build_os=$*
3544 IFS=$ac_save_IFS
3545 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3546
3547
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3549 $as_echo_n "checking host system type... " >&6; }
3550 if test "${ac_cv_host+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test "x$host_alias" = x; then
3554 ac_cv_host=$ac_cv_build
3555 else
3556 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3557 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3558 fi
3559
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3562 $as_echo "$ac_cv_host" >&6; }
3563 case $ac_cv_host in
3564 *-*-*) ;;
3565 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3566 esac
3567 host=$ac_cv_host
3568 ac_save_IFS=$IFS; IFS='-'
3569 set x $ac_cv_host
3570 shift
3571 host_cpu=$1
3572 host_vendor=$2
3573 shift; shift
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3576 host_os=$*
3577 IFS=$ac_save_IFS
3578 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3579
3580
3581
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3588 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3589 # On Suns, sometimes $CPP names a directory.
3590 if test -n "$CPP" && test -d "$CPP"; then
3591 CPP=
3592 fi
3593 if test -z "$CPP"; then
3594 if test "${ac_cv_prog_CPP+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3599 do
3600 ac_preproc_ok=false
3601 for ac_c_preproc_warn_flag in '' yes
3602 do
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
3607 # On the NeXT, cc -E runs the code through the compiler's parser,
3608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611 #ifdef __STDC__
3612 # include <limits.h>
3613 #else
3614 # include <assert.h>
3615 #endif
3616 Syntax error
3617 _ACEOF
3618 if ac_fn_c_try_cpp "$LINENO"; then :
3619
3620 else
3621 # Broken: fails on valid input.
3622 continue
3623 fi
3624 rm -f conftest.err conftest.$ac_ext
3625
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3631 _ACEOF
3632 if ac_fn_c_try_cpp "$LINENO"; then :
3633 # Broken: success on invalid input.
3634 continue
3635 else
3636 # Passes both tests.
3637 ac_preproc_ok=:
3638 break
3639 fi
3640 rm -f conftest.err conftest.$ac_ext
3641
3642 done
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then :
3646 break
3647 fi
3648
3649 done
3650 ac_cv_prog_CPP=$CPP
3651
3652 fi
3653 CPP=$ac_cv_prog_CPP
3654 else
3655 ac_cv_prog_CPP=$CPP
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3658 $as_echo "$CPP" >&6; }
3659 ac_preproc_ok=false
3660 for ac_c_preproc_warn_flag in '' yes
3661 do
3662 # Use a header file that comes with gcc, so configuring glibc
3663 # with a fresh cross-compiler works.
3664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 # <limits.h> exists even on freestanding compilers.
3666 # On the NeXT, cc -E runs the code through the compiler's parser,
3667 # not just through cpp. "Syntax error" is here to catch this case.
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670 #ifdef __STDC__
3671 # include <limits.h>
3672 #else
3673 # include <assert.h>
3674 #endif
3675 Syntax error
3676 _ACEOF
3677 if ac_fn_c_try_cpp "$LINENO"; then :
3678
3679 else
3680 # Broken: fails on valid input.
3681 continue
3682 fi
3683 rm -f conftest.err conftest.$ac_ext
3684
3685 # OK, works on sane cases. Now check whether nonexistent headers
3686 # can be detected and how.
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <ac_nonexistent.h>
3690 _ACEOF
3691 if ac_fn_c_try_cpp "$LINENO"; then :
3692 # Broken: success on invalid input.
3693 continue
3694 else
3695 # Passes both tests.
3696 ac_preproc_ok=:
3697 break
3698 fi
3699 rm -f conftest.err conftest.$ac_ext
3700
3701 done
3702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703 rm -f conftest.err conftest.$ac_ext
3704 if $ac_preproc_ok; then :
3705
3706 else
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3710 See \`config.log' for more details." "$LINENO" 5; }
3711 fi
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3721 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3722 if test "${ac_cv_path_GREP+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 if test -z "$GREP"; then
3726 ac_path_GREP_found=false
3727 # Loop through the user's path and test for each of PROGNAME-LIST
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3730 do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_prog in grep ggrep; do
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3736 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3737 # Check for GNU ac_path_GREP and select it if it is found.
3738 # Check for GNU $ac_path_GREP
3739 case `"$ac_path_GREP" --version 2>&1` in
3740 *GNU*)
3741 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3742 *)
3743 ac_count=0
3744 $as_echo_n 0123456789 >"conftest.in"
3745 while :
3746 do
3747 cat "conftest.in" "conftest.in" >"conftest.tmp"
3748 mv "conftest.tmp" "conftest.in"
3749 cp "conftest.in" "conftest.nl"
3750 $as_echo 'GREP' >> "conftest.nl"
3751 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3753 as_fn_arith $ac_count + 1 && ac_count=$as_val
3754 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3755 # Best one so far, save it but keep looking for a better one
3756 ac_cv_path_GREP="$ac_path_GREP"
3757 ac_path_GREP_max=$ac_count
3758 fi
3759 # 10*(2^10) chars as input seems more than enough
3760 test $ac_count -gt 10 && break
3761 done
3762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3763 esac
3764
3765 $ac_path_GREP_found && break 3
3766 done
3767 done
3768 done
3769 IFS=$as_save_IFS
3770 if test -z "$ac_cv_path_GREP"; then
3771 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3772 fi
3773 else
3774 ac_cv_path_GREP=$GREP
3775 fi
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3779 $as_echo "$ac_cv_path_GREP" >&6; }
3780 GREP="$ac_cv_path_GREP"
3781
3782
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3784 $as_echo_n "checking for egrep... " >&6; }
3785 if test "${ac_cv_path_EGREP+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3789 then ac_cv_path_EGREP="$GREP -E"
3790 else
3791 if test -z "$EGREP"; then
3792 ac_path_EGREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in egrep; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3803 # Check for GNU ac_path_EGREP and select it if it is found.
3804 # Check for GNU $ac_path_EGREP
3805 case `"$ac_path_EGREP" --version 2>&1` in
3806 *GNU*)
3807 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3808 *)
3809 ac_count=0
3810 $as_echo_n 0123456789 >"conftest.in"
3811 while :
3812 do
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 $as_echo 'EGREP' >> "conftest.nl"
3817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819 as_fn_arith $ac_count + 1 && ac_count=$as_val
3820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_EGREP="$ac_path_EGREP"
3823 ac_path_EGREP_max=$ac_count
3824 fi
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3827 done
3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 esac
3830
3831 $ac_path_EGREP_found && break 3
3832 done
3833 done
3834 done
3835 IFS=$as_save_IFS
3836 if test -z "$ac_cv_path_EGREP"; then
3837 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3838 fi
3839 else
3840 ac_cv_path_EGREP=$EGREP
3841 fi
3842
3843 fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3846 $as_echo "$ac_cv_path_EGREP" >&6; }
3847 EGREP="$ac_cv_path_EGREP"
3848
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3851 $as_echo_n "checking for ANSI C header files... " >&6; }
3852 if test "${ac_cv_header_stdc+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdlib.h>
3858 #include <stdarg.h>
3859 #include <string.h>
3860 #include <float.h>
3861
3862 int
3863 main ()
3864 {
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_cv_header_stdc=yes
3872 else
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <string.h>
3882
3883 _ACEOF
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885 $EGREP "memchr" >/dev/null 2>&1; then :
3886
3887 else
3888 ac_cv_header_stdc=no
3889 fi
3890 rm -f conftest*
3891
3892 fi
3893
3894 if test $ac_cv_header_stdc = yes; then
3895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898 #include <stdlib.h>
3899
3900 _ACEOF
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "free" >/dev/null 2>&1; then :
3903
3904 else
3905 ac_cv_header_stdc=no
3906 fi
3907 rm -f conftest*
3908
3909 fi
3910
3911 if test $ac_cv_header_stdc = yes; then
3912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3913 if test "$cross_compiling" = yes; then :
3914 :
3915 else
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #include <ctype.h>
3919 #include <stdlib.h>
3920 #if ((' ' & 0x0FF) == 0x020)
3921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3923 #else
3924 # define ISLOWER(c) \
3925 (('a' <= (c) && (c) <= 'i') \
3926 || ('j' <= (c) && (c) <= 'r') \
3927 || ('s' <= (c) && (c) <= 'z'))
3928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3929 #endif
3930
3931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3932 int
3933 main ()
3934 {
3935 int i;
3936 for (i = 0; i < 256; i++)
3937 if (XOR (islower (i), ISLOWER (i))
3938 || toupper (i) != TOUPPER (i))
3939 return 2;
3940 return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_run "$LINENO"; then :
3944
3945 else
3946 ac_cv_header_stdc=no
3947 fi
3948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3949 conftest.$ac_objext conftest.beam conftest.$ac_ext
3950 fi
3951
3952 fi
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3955 $as_echo "$ac_cv_header_stdc" >&6; }
3956 if test $ac_cv_header_stdc = yes; then
3957
3958 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3959
3960 fi
3961
3962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3963 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3964 inttypes.h stdint.h unistd.h
3965 do :
3966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3967 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3968 "
3969 eval as_val=\$$as_ac_Header
3970 if test "x$as_val" = x""yes; then :
3971 cat >>confdefs.h <<_ACEOF
3972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973 _ACEOF
3974
3975 fi
3976
3977 done
3978
3979
3980
3981
3982
3983 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3984 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3985 MINIX=yes
3986 else
3987 MINIX=
3988 fi
3989
3990
3991 if test "$MINIX" = yes; then
3992
3993 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3994
3995
3996 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3997
3998
3999 $as_echo "#define _MINIX 1" >>confdefs.h
4000
4001 fi
4002
4003 case "$host_os" in
4004 hpux*)
4005
4006 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4007
4008 ;;
4009 esac
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4013 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4014 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 # define __EXTENSIONS__ 1
4021 $ac_includes_default
4022 int
4023 main ()
4024 {
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_safe_to_define___extensions__=yes
4032 else
4033 ac_cv_safe_to_define___extensions__=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4038 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4039 test $ac_cv_safe_to_define___extensions__ = yes &&
4040 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4041
4042 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4043
4044 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4045
4046 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4047
4048 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4049
4050 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4051
4052
4053
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4056 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4057 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 #ifdef __ACK__
4065 Amsterdam
4066 #endif
4067
4068 _ACEOF
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4071 gl_cv_c_amsterdam_compiler=yes
4072 else
4073 gl_cv_c_amsterdam_compiler=no
4074 fi
4075 rm -f conftest*
4076
4077
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4080 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4081 if test -z "$AR"; then
4082 if test $gl_cv_c_amsterdam_compiler = yes; then
4083 AR='cc -c.a'
4084 if test -z "$ARFLAGS"; then
4085 ARFLAGS='-o'
4086 fi
4087 else
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}ar; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_AR+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$AR"; then
4097 ac_cv_prog_AR="$AR" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_AR="${ac_tool_prefix}ar"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 AR=$ac_cv_prog_AR
4117 if test -n "$AR"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4119 $as_echo "$AR" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 if test -z "$ac_cv_prog_AR"; then
4128 ac_ct_AR=$AR
4129 # Extract the first word of "ar", so it can be a program name with args.
4130 set dummy ar; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$ac_ct_AR"; then
4137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_ac_ct_AR="ar"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4157 if test -n "$ac_ct_AR"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4159 $as_echo "$ac_ct_AR" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165 if test "x$ac_ct_AR" = x; then
4166 AR="ar"
4167 else
4168 case $cross_compiling:$ac_tool_warned in
4169 yes:)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4173 esac
4174 AR=$ac_ct_AR
4175 fi
4176 else
4177 AR="$ac_cv_prog_AR"
4178 fi
4179
4180 if test -z "$ARFLAGS"; then
4181 ARFLAGS='cru'
4182 fi
4183 fi
4184 else
4185 if test -z "$ARFLAGS"; then
4186 ARFLAGS='cru'
4187 fi
4188 fi
4189
4190
4191 if test -z "$RANLIB"; then
4192 if test $gl_cv_c_amsterdam_compiler = yes; then
4193 RANLIB=':'
4194 else
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$RANLIB"; then
4204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4216 fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 RANLIB=$ac_cv_prog_RANLIB
4224 if test -n "$RANLIB"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4226 $as_echo "$RANLIB" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$ac_cv_prog_RANLIB"; then
4235 ac_ct_RANLIB=$RANLIB
4236 # Extract the first word of "ranlib", so it can be a program name with args.
4237 set dummy ranlib; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$ac_ct_RANLIB"; then
4244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_ac_ct_RANLIB="ranlib"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 fi
4262 fi
4263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4264 if test -n "$ac_ct_RANLIB"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4266 $as_echo "$ac_ct_RANLIB" >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4270 fi
4271
4272 if test "x$ac_ct_RANLIB" = x; then
4273 RANLIB=":"
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4280 esac
4281 RANLIB=$ac_ct_RANLIB
4282 fi
4283 else
4284 RANLIB="$ac_cv_prog_RANLIB"
4285 fi
4286
4287 fi
4288 fi
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299 # Code from module alloca:
4300 # Code from module alloca-opt:
4301 # Code from module configmake:
4302 # Code from module errno:
4303 # Code from module extensions:
4304
4305 # Code from module extern-inline:
4306 # Code from module fnmatch:
4307 # Code from module fnmatch-gnu:
4308 # Code from module include_next:
4309 # Code from module inttypes:
4310 # Code from module inttypes-incomplete:
4311 # Code from module localcharset:
4312 # Code from module mbrtowc:
4313 # Code from module mbsinit:
4314 # Code from module mbsrtowcs:
4315 # Code from module memchr:
4316 # Code from module memmem:
4317 # Code from module memmem-simple:
4318 # Code from module multiarch:
4319 # Code from module snippet/arg-nonnull:
4320 # Code from module snippet/c++defs:
4321 # Code from module snippet/warn-on-use:
4322 # Code from module stdbool:
4323 # Code from module stddef:
4324 # Code from module stdint:
4325 # Code from module streq:
4326 # Code from module string:
4327 # Code from module strnlen1:
4328 # Code from module update-copyright:
4329 # Code from module verify:
4330 # Code from module wchar:
4331 # Code from module wctype-h:
4332
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if test "${ac_cv_prog_CC+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$CC"; then
4347 ac_cv_prog_CC="$CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 CC=$ac_cv_prog_CC
4367 if test -n "$CC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376 fi
4377 if test -z "$ac_cv_prog_CC"; then
4378 ac_ct_CC=$CC
4379 # Extract the first word of "gcc", so it can be a program name with args.
4380 set dummy gcc; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$ac_ct_CC"; then
4387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ac_ct_CC="gcc"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4407 if test -n "$ac_ct_CC"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4409 $as_echo "$ac_ct_CC" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415 if test "x$ac_ct_CC" = x; then
4416 CC=""
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419 yes:)
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned=yes ;;
4423 esac
4424 CC=$ac_ct_CC
4425 fi
4426 else
4427 CC="$ac_cv_prog_CC"
4428 fi
4429
4430 if test -z "$CC"; then
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}cc; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_CC+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_CC="${ac_tool_prefix}cc"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 CC=$ac_cv_prog_CC
4460 if test -n "$CC"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4462 $as_echo "$CC" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467
4468
4469 fi
4470 fi
4471 if test -z "$CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473 set dummy cc; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_CC+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$CC"; then
4480 ac_cv_prog_CC="$CC" # Let the user override the test.
4481 else
4482 ac_prog_rejected=no
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_CC="cc"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498 done
4499 done
4500 IFS=$as_save_IFS
4501
4502 if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_CC
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set CC to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513 fi
4514 fi
4515 fi
4516 CC=$ac_cv_prog_CC
4517 if test -n "$CC"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4519 $as_echo "$CC" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524
4525
4526 fi
4527 if test -z "$CC"; then
4528 if test -n "$ac_tool_prefix"; then
4529 for ac_prog in cl.exe
4530 do
4531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if test "${ac_cv_prog_CC+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$CC"; then
4539 ac_cv_prog_CC="$CC" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 fi
4557 fi
4558 CC=$ac_cv_prog_CC
4559 if test -n "$CC"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4561 $as_echo "$CC" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4565 fi
4566
4567
4568 test -n "$CC" && break
4569 done
4570 fi
4571 if test -z "$CC"; then
4572 ac_ct_CC=$CC
4573 for ac_prog in cl.exe
4574 do
4575 # Extract the first word of "$ac_prog", so it can be a program name with args.
4576 set dummy $ac_prog; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_CC"; then
4583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_CC="$ac_prog"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4603 if test -n "$ac_ct_CC"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4605 $as_echo "$ac_ct_CC" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 fi
4610
4611
4612 test -n "$ac_ct_CC" && break
4613 done
4614
4615 if test "x$ac_ct_CC" = x; then
4616 CC=""
4617 else
4618 case $cross_compiling:$ac_tool_warned in
4619 yes:)
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622 ac_tool_warned=yes ;;
4623 esac
4624 CC=$ac_ct_CC
4625 fi
4626 fi
4627
4628 fi
4629
4630
4631 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 as_fn_error "no acceptable C compiler found in \$PATH
4634 See \`config.log' for more details." "$LINENO" 5; }
4635
4636 # Provide some information about the compiler.
4637 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4638 set X $ac_compile
4639 ac_compiler=$2
4640 for ac_option in --version -v -V -qversion; do
4641 { { ac_try="$ac_compiler $ac_option >&5"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647 $as_echo "$ac_try_echo"; } >&5
4648 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4649 ac_status=$?
4650 if test -s conftest.err; then
4651 sed '10a\
4652 ... rest of stderr output deleted ...
4653 10q' conftest.err >conftest.er1
4654 cat conftest.er1 >&5
4655 rm -f conftest.er1 conftest.err
4656 fi
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 done
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4663 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 int
4670 main ()
4671 {
4672 #ifndef __GNUC__
4673 choke me
4674 #endif
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_compiler_gnu=yes
4682 else
4683 ac_compiler_gnu=no
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4687
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4692 GCC=yes
4693 else
4694 GCC=
4695 fi
4696 ac_test_CFLAGS=${CFLAGS+set}
4697 ac_save_CFLAGS=$CFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4700 if test "${ac_cv_prog_cc_g+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 ac_cv_prog_cc_g=no
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709
4710 int
4711 main ()
4712 {
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_prog_cc_g=yes
4720 else
4721 CFLAGS=""
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main ()
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734
4735 else
4736 ac_c_werror_flag=$ac_save_c_werror_flag
4737 CFLAGS="-g"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 int
4742 main ()
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_prog_cc_g=yes
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760 $as_echo "$ac_cv_prog_cc_g" >&6; }
4761 if test "$ac_test_CFLAGS" = set; then
4762 CFLAGS=$ac_save_CFLAGS
4763 elif test $ac_cv_prog_cc_g = yes; then
4764 if test "$GCC" = yes; then
4765 CFLAGS="-g -O2"
4766 else
4767 CFLAGS="-g"
4768 fi
4769 else
4770 if test "$GCC" = yes; then
4771 CFLAGS="-O2"
4772 else
4773 CFLAGS=
4774 fi
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4778 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 ac_cv_prog_cc_c89=no
4782 ac_save_CC=$CC
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <stdarg.h>
4786 #include <stdio.h>
4787 #include <sys/types.h>
4788 #include <sys/stat.h>
4789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4790 struct buf { int x; };
4791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4792 static char *e (p, i)
4793 char **p;
4794 int i;
4795 {
4796 return p[i];
4797 }
4798 static char *f (char * (*g) (char **, int), char **p, ...)
4799 {
4800 char *s;
4801 va_list v;
4802 va_start (v,p);
4803 s = g (p, va_arg (v,int));
4804 va_end (v);
4805 return s;
4806 }
4807
4808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4809 function prototypes and stuff, but not '\xHH' hex character constants.
4810 These don't provoke an error unfortunately, instead are silently treated
4811 as 'x'. The following induces an error, until -std is added to get
4812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4813 array size at least. It's necessary to write '\x00'==0 to get something
4814 that's true only with -std. */
4815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4816
4817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4818 inside strings and character constants. */
4819 #define FOO(x) 'x'
4820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4821
4822 int test (int i, double x);
4823 struct s1 {int (*f) (int a);};
4824 struct s2 {int (*f) (double a);};
4825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4826 int argc;
4827 char **argv;
4828 int
4829 main ()
4830 {
4831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4838 do
4839 CC="$ac_save_CC $ac_arg"
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_c89=$ac_arg
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext
4844 test "x$ac_cv_prog_cc_c89" != "xno" && break
4845 done
4846 rm -f conftest.$ac_ext
4847 CC=$ac_save_CC
4848
4849 fi
4850 # AC_CACHE_VAL
4851 case "x$ac_cv_prog_cc_c89" in
4852 x)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4854 $as_echo "none needed" >&6; } ;;
4855 xno)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4857 $as_echo "unsupported" >&6; } ;;
4858 *)
4859 CC="$CC $ac_cv_prog_cc_c89"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4862 esac
4863 if test "x$ac_cv_prog_cc_c89" != xno; then :
4864
4865 fi
4866
4867 ac_ext=c
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872
4873
4874 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4875
4876
4877 ac_aux_dir=
4878 for ac_dir in ../.. "$srcdir"/../..; do
4879 for ac_t in install-sh install.sh shtool; do
4880 if test -f "$ac_dir/$ac_t"; then
4881 ac_aux_dir=$ac_dir
4882 ac_install_sh="$ac_aux_dir/$ac_t -c"
4883 break 2
4884 fi
4885 done
4886 done
4887 if test -z "$ac_aux_dir"; then
4888 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4889 fi
4890
4891 # These three variables are undocumented and unsupported,
4892 # and are intended to be withdrawn in a future Autoconf release.
4893 # They can cause serious problems if a builder's source tree is in a directory
4894 # whose full name contains unusual characters.
4895 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4896 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4897 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4898
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4901 $as_echo_n "checking target system type... " >&6; }
4902 if test "${ac_cv_target+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test "x$target_alias" = x; then
4906 ac_cv_target=$ac_cv_host
4907 else
4908 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4909 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4910 fi
4911
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4914 $as_echo "$ac_cv_target" >&6; }
4915 case $ac_cv_target in
4916 *-*-*) ;;
4917 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4918 esac
4919 target=$ac_cv_target
4920 ac_save_IFS=$IFS; IFS='-'
4921 set x $ac_cv_target
4922 shift
4923 target_cpu=$1
4924 target_vendor=$2
4925 shift; shift
4926 # Remember, the first character of IFS is used to create $*,
4927 # except with old shells:
4928 target_os=$*
4929 IFS=$ac_save_IFS
4930 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4931
4932
4933 # The aliases save the names the user supplied, while $host etc.
4934 # will get canonicalized.
4935 test -n "$target_alias" &&
4936 test "$program_prefix$program_suffix$program_transform_name" = \
4937 NONENONEs,x,x, &&
4938 program_prefix=${target_alias}-
4939
4940
4941
4942
4943
4944
4945
4946 LIBC_FATAL_STDERR_=1
4947 export LIBC_FATAL_STDERR_
4948
4949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4950 # for constant arguments. Useless!
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4952 $as_echo_n "checking for working alloca.h... " >&6; }
4953 if test "${ac_cv_working_alloca_h+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #include <alloca.h>
4959 int
4960 main ()
4961 {
4962 char *p = (char *) alloca (2 * sizeof (int));
4963 if (p) return 0;
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"; then :
4969 ac_cv_working_alloca_h=yes
4970 else
4971 ac_cv_working_alloca_h=no
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4977 $as_echo "$ac_cv_working_alloca_h" >&6; }
4978 if test $ac_cv_working_alloca_h = yes; then
4979
4980 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4981
4982 fi
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4985 $as_echo_n "checking for alloca... " >&6; }
4986 if test "${ac_cv_func_alloca_works+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #ifdef __GNUC__
4992 # define alloca __builtin_alloca
4993 #else
4994 # ifdef _MSC_VER
4995 # include <malloc.h>
4996 # define alloca _alloca
4997 # else
4998 # ifdef HAVE_ALLOCA_H
4999 # include <alloca.h>
5000 # else
5001 # ifdef _AIX
5002 #pragma alloca
5003 # else
5004 # ifndef alloca /* predefined by HP cc +Olibcalls */
5005 char *alloca ();
5006 # endif
5007 # endif
5008 # endif
5009 # endif
5010 #endif
5011
5012 int
5013 main ()
5014 {
5015 char *p = (char *) alloca (1);
5016 if (p) return 0;
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 if ac_fn_c_try_link "$LINENO"; then :
5022 ac_cv_func_alloca_works=yes
5023 else
5024 ac_cv_func_alloca_works=no
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext \
5027 conftest$ac_exeext conftest.$ac_ext
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5030 $as_echo "$ac_cv_func_alloca_works" >&6; }
5031
5032 if test $ac_cv_func_alloca_works = yes; then
5033
5034 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5035
5036 else
5037 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5038 # that cause trouble. Some versions do not even contain alloca or
5039 # contain a buggy version. If you still want to use their alloca,
5040 # use ar to extract alloca.o from them instead of compiling alloca.c.
5041
5042
5043
5044
5045
5046 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5047
5048 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5052 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5053 if test "${ac_cv_os_cray+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 #if defined CRAY && ! defined CRAY2
5059 webecray
5060 #else
5061 wenotbecray
5062 #endif
5063
5064 _ACEOF
5065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066 $EGREP "webecray" >/dev/null 2>&1; then :
5067 ac_cv_os_cray=yes
5068 else
5069 ac_cv_os_cray=no
5070 fi
5071 rm -f conftest*
5072
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5075 $as_echo "$ac_cv_os_cray" >&6; }
5076 if test $ac_cv_os_cray = yes; then
5077 for ac_func in _getb67 GETB67 getb67; do
5078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5080 eval as_val=\$$as_ac_var
5081 if test "x$as_val" = x""yes; then :
5082
5083 cat >>confdefs.h <<_ACEOF
5084 #define CRAY_STACKSEG_END $ac_func
5085 _ACEOF
5086
5087 break
5088 fi
5089
5090 done
5091 fi
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5094 $as_echo_n "checking stack direction for C alloca... " >&6; }
5095 if test "${ac_cv_c_stack_direction+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test "$cross_compiling" = yes; then :
5099 ac_cv_c_stack_direction=0
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 $ac_includes_default
5104 int
5105 find_stack_direction (int *addr, int depth)
5106 {
5107 int dir, dummy = 0;
5108 if (! addr)
5109 addr = &dummy;
5110 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5111 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5112 return dir + dummy;
5113 }
5114
5115 int
5116 main (int argc, char **argv)
5117 {
5118 return find_stack_direction (0, argc + !argv + 20) < 0;
5119 }
5120 _ACEOF
5121 if ac_fn_c_try_run "$LINENO"; then :
5122 ac_cv_c_stack_direction=1
5123 else
5124 ac_cv_c_stack_direction=-1
5125 fi
5126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5127 conftest.$ac_objext conftest.beam conftest.$ac_ext
5128 fi
5129
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5132 $as_echo "$ac_cv_c_stack_direction" >&6; }
5133 cat >>confdefs.h <<_ACEOF
5134 #define STACK_DIRECTION $ac_cv_c_stack_direction
5135 _ACEOF
5136
5137
5138 fi
5139
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5143 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5144 if test "${gl_cv_have_include_next+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 rm -rf conftestd1a conftestd1b conftestd2
5148 mkdir conftestd1a conftestd1b conftestd2
5149 cat <<EOF > conftestd1a/conftest.h
5150 #define DEFINED_IN_CONFTESTD1
5151 #include_next <conftest.h>
5152 #ifdef DEFINED_IN_CONFTESTD2
5153 int foo;
5154 #else
5155 #error "include_next doesn't work"
5156 #endif
5157 EOF
5158 cat <<EOF > conftestd1b/conftest.h
5159 #define DEFINED_IN_CONFTESTD1
5160 #include <stdio.h>
5161 #include_next <conftest.h>
5162 #ifdef DEFINED_IN_CONFTESTD2
5163 int foo;
5164 #else
5165 #error "include_next doesn't work"
5166 #endif
5167 EOF
5168 cat <<EOF > conftestd2/conftest.h
5169 #ifndef DEFINED_IN_CONFTESTD1
5170 #error "include_next test doesn't work"
5171 #endif
5172 #define DEFINED_IN_CONFTESTD2
5173 EOF
5174 gl_save_CPPFLAGS="$CPPFLAGS"
5175 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <conftest.h>
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181 gl_cv_have_include_next=yes
5182 else
5183 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <conftest.h>
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 gl_cv_have_include_next=buggy
5190 else
5191 gl_cv_have_include_next=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 CPPFLAGS="$gl_save_CPPFLAGS"
5198 rm -rf conftestd1a conftestd1b conftestd2
5199
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5202 $as_echo "$gl_cv_have_include_next" >&6; }
5203 PRAGMA_SYSTEM_HEADER=
5204 if test $gl_cv_have_include_next = yes; then
5205 INCLUDE_NEXT=include_next
5206 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5207 if test -n "$GCC"; then
5208 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5209 fi
5210 else
5211 if test $gl_cv_have_include_next = buggy; then
5212 INCLUDE_NEXT=include
5213 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5214 else
5215 INCLUDE_NEXT=include
5216 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5217 fi
5218 fi
5219
5220
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5223 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5224 if test "${gl_cv_pragma_columns+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229
5230 #ifdef __TANDEM
5231 choke me
5232 #endif
5233
5234 _ACEOF
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "choke me" >/dev/null 2>&1; then :
5237 gl_cv_pragma_columns=yes
5238 else
5239 gl_cv_pragma_columns=no
5240 fi
5241 rm -f conftest*
5242
5243
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5246 $as_echo "$gl_cv_pragma_columns" >&6; }
5247 if test $gl_cv_pragma_columns = yes; then
5248 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5249 else
5250 PRAGMA_COLUMNS=
5251 fi
5252
5253
5254
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5257 $as_echo_n "checking for complete errno.h... " >&6; }
5258 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264
5265 #include <errno.h>
5266 #if !defined ETXTBSY
5267 booboo
5268 #endif
5269 #if !defined ENOMSG
5270 booboo
5271 #endif
5272 #if !defined EIDRM
5273 booboo
5274 #endif
5275 #if !defined ENOLINK
5276 booboo
5277 #endif
5278 #if !defined EPROTO
5279 booboo
5280 #endif
5281 #if !defined EMULTIHOP
5282 booboo
5283 #endif
5284 #if !defined EBADMSG
5285 booboo
5286 #endif
5287 #if !defined EOVERFLOW
5288 booboo
5289 #endif
5290 #if !defined ENOTSUP
5291 booboo
5292 #endif
5293 #if !defined ENETRESET
5294 booboo
5295 #endif
5296 #if !defined ECONNABORTED
5297 booboo
5298 #endif
5299 #if !defined ESTALE
5300 booboo
5301 #endif
5302 #if !defined EDQUOT
5303 booboo
5304 #endif
5305 #if !defined ECANCELED
5306 booboo
5307 #endif
5308 #if !defined EOWNERDEAD
5309 booboo
5310 #endif
5311 #if !defined ENOTRECOVERABLE
5312 booboo
5313 #endif
5314 #if !defined EILSEQ
5315 booboo
5316 #endif
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "booboo" >/dev/null 2>&1; then :
5321 gl_cv_header_errno_h_complete=no
5322 else
5323 gl_cv_header_errno_h_complete=yes
5324 fi
5325 rm -f conftest*
5326
5327
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5330 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5331 if test $gl_cv_header_errno_h_complete = yes; then
5332 ERRNO_H=''
5333 else
5334
5335
5336
5337
5338
5339
5340
5341
5342 if test $gl_cv_have_include_next = yes; then
5343 gl_cv_next_errno_h='<'errno.h'>'
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5346 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5347 if test "${gl_cv_next_errno_h+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <errno.h>
5354
5355 _ACEOF
5356 case "$host_os" in
5357 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5358 *) gl_absname_cpp="$ac_cpp" ;;
5359 esac
5360
5361 case "$host_os" in
5362 mingw*)
5363 gl_dirsep_regex='[/\\]'
5364 ;;
5365 *)
5366 gl_dirsep_regex='\/'
5367 ;;
5368 esac
5369 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5370
5371 gl_header_literal_regex=`echo 'errno.h' \
5372 | sed -e "$gl_make_literal_regex_sed"`
5373 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5374 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5375 s|^/[^/]|//&|
5376 p
5377 q
5378 }'
5379 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5380 sed -n "$gl_absolute_header_sed"`'"'
5381
5382
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5385 $as_echo "$gl_cv_next_errno_h" >&6; }
5386 fi
5387 NEXT_ERRNO_H=$gl_cv_next_errno_h
5388
5389 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5391 gl_next_as_first_directive='<'errno.h'>'
5392 else
5393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5394 gl_next_as_first_directive=$gl_cv_next_errno_h
5395 fi
5396 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5397
5398
5399
5400
5401 ERRNO_H='errno.h'
5402 fi
5403
5404 if test -n "$ERRNO_H"; then
5405 GL_GENERATE_ERRNO_H_TRUE=
5406 GL_GENERATE_ERRNO_H_FALSE='#'
5407 else
5408 GL_GENERATE_ERRNO_H_TRUE='#'
5409 GL_GENERATE_ERRNO_H_FALSE=
5410 fi
5411
5412
5413 if test -n "$ERRNO_H"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5415 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5416 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422
5423 #include <errno.h>
5424 #ifdef EMULTIHOP
5425 yes
5426 #endif
5427
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "yes" >/dev/null 2>&1; then :
5431 gl_cv_header_errno_h_EMULTIHOP=yes
5432 else
5433 gl_cv_header_errno_h_EMULTIHOP=no
5434 fi
5435 rm -f conftest*
5436
5437 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440
5441 #define _XOPEN_SOURCE_EXTENDED 1
5442 #include <errno.h>
5443 #ifdef EMULTIHOP
5444 yes
5445 #endif
5446
5447 _ACEOF
5448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5449 $EGREP "yes" >/dev/null 2>&1; then :
5450 gl_cv_header_errno_h_EMULTIHOP=hidden
5451 fi
5452 rm -f conftest*
5453
5454 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5455 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
5456 #define _XOPEN_SOURCE_EXTENDED 1
5457 #include <errno.h>
5458 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5459 #include <stdio.h>
5460 #include <stdlib.h>
5461 "; then :
5462
5463 fi
5464
5465 fi
5466 fi
5467
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5470 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5471 case $gl_cv_header_errno_h_EMULTIHOP in
5472 yes | no)
5473 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5474 ;;
5475 *)
5476 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5477 ;;
5478 esac
5479
5480
5481 fi
5482
5483
5484 if test -n "$ERRNO_H"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5486 $as_echo_n "checking for ENOLINK value... " >&6; }
5487 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493
5494 #include <errno.h>
5495 #ifdef ENOLINK
5496 yes
5497 #endif
5498
5499 _ACEOF
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 $EGREP "yes" >/dev/null 2>&1; then :
5502 gl_cv_header_errno_h_ENOLINK=yes
5503 else
5504 gl_cv_header_errno_h_ENOLINK=no
5505 fi
5506 rm -f conftest*
5507
5508 if test $gl_cv_header_errno_h_ENOLINK = no; then
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511
5512 #define _XOPEN_SOURCE_EXTENDED 1
5513 #include <errno.h>
5514 #ifdef ENOLINK
5515 yes
5516 #endif
5517
5518 _ACEOF
5519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5520 $EGREP "yes" >/dev/null 2>&1; then :
5521 gl_cv_header_errno_h_ENOLINK=hidden
5522 fi
5523 rm -f conftest*
5524
5525 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5526 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
5527 #define _XOPEN_SOURCE_EXTENDED 1
5528 #include <errno.h>
5529 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5530 #include <stdio.h>
5531 #include <stdlib.h>
5532 "; then :
5533
5534 fi
5535
5536 fi
5537 fi
5538
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5541 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5542 case $gl_cv_header_errno_h_ENOLINK in
5543 yes | no)
5544 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5545 ;;
5546 *)
5547 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5548 ;;
5549 esac
5550
5551
5552 fi
5553
5554
5555 if test -n "$ERRNO_H"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5557 $as_echo_n "checking for EOVERFLOW value... " >&6; }
5558 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564
5565 #include <errno.h>
5566 #ifdef EOVERFLOW
5567 yes
5568 #endif
5569
5570 _ACEOF
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572 $EGREP "yes" >/dev/null 2>&1; then :
5573 gl_cv_header_errno_h_EOVERFLOW=yes
5574 else
5575 gl_cv_header_errno_h_EOVERFLOW=no
5576 fi
5577 rm -f conftest*
5578
5579 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582
5583 #define _XOPEN_SOURCE_EXTENDED 1
5584 #include <errno.h>
5585 #ifdef EOVERFLOW
5586 yes
5587 #endif
5588
5589 _ACEOF
5590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5591 $EGREP "yes" >/dev/null 2>&1; then :
5592 gl_cv_header_errno_h_EOVERFLOW=hidden
5593 fi
5594 rm -f conftest*
5595
5596 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5597 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
5598 #define _XOPEN_SOURCE_EXTENDED 1
5599 #include <errno.h>
5600 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5601 #include <stdio.h>
5602 #include <stdlib.h>
5603 "; then :
5604
5605 fi
5606
5607 fi
5608 fi
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
5612 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
5613 case $gl_cv_header_errno_h_EOVERFLOW in
5614 yes | no)
5615 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
5616 ;;
5617 *)
5618 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
5619 ;;
5620 esac
5621
5622
5623 fi
5624
5625
5626
5627
5628
5629
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5632 $as_echo_n "checking for mbstate_t... " >&6; }
5633 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 $ac_includes_default
5639 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5640 <wchar.h>.
5641 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5642 included before <wchar.h>. */
5643 #include <stddef.h>
5644 #include <stdio.h>
5645 #include <time.h>
5646 #include <wchar.h>
5647 int
5648 main ()
5649 {
5650 mbstate_t x; return sizeof x;
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_type_mbstate_t=yes
5657 else
5658 ac_cv_type_mbstate_t=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5663 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5664 if test $ac_cv_type_mbstate_t = yes; then
5665
5666 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5667
5668 else
5669
5670 $as_echo "#define mbstate_t int" >>confdefs.h
5671
5672 fi
5673
5674
5675
5676
5677
5678 for ac_func in $gl_func_list
5679 do :
5680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5682 eval as_val=\$$as_ac_var
5683 if test "x$as_val" = x""yes; then :
5684 cat >>confdefs.h <<_ACEOF
5685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5686 _ACEOF
5687
5688 fi
5689 done
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 for ac_header in $gl_header_list
5735 do :
5736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5738 eval as_val=\$$as_ac_Header
5739 if test "x$as_val" = x""yes; then :
5740 cat >>confdefs.h <<_ACEOF
5741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5742 _ACEOF
5743
5744 fi
5745
5746 done
5747
5748
5749
5750
5751
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5754 $as_echo_n "checking for unsigned long long int... " >&6; }
5755 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 ac_cv_type_unsigned_long_long_int=yes
5759 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762
5763 /* For now, do not test the preprocessor; as of 2007 there are too many
5764 implementations with broken preprocessors. Perhaps this can
5765 be revisited in 2012. In the meantime, code should not expect
5766 #if to work with literals wider than 32 bits. */
5767 /* Test literals. */
5768 long long int ll = 9223372036854775807ll;
5769 long long int nll = -9223372036854775807LL;
5770 unsigned long long int ull = 18446744073709551615ULL;
5771 /* Test constant expressions. */
5772 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5773 ? 1 : -1)];
5774 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5775 ? 1 : -1)];
5776 int i = 63;
5777 int
5778 main ()
5779 {
5780 /* Test availability of runtime routines for shift and division. */
5781 long long int llmax = 9223372036854775807ll;
5782 unsigned long long int ullmax = 18446744073709551615ull;
5783 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5784 | (llmax / ll) | (llmax % ll)
5785 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5786 | (ullmax / ull) | (ullmax % ull));
5787 ;
5788 return 0;
5789 }
5790
5791 _ACEOF
5792 if ac_fn_c_try_link "$LINENO"; then :
5793
5794 else
5795 ac_cv_type_unsigned_long_long_int=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
5799 fi
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5802 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5803 if test $ac_cv_type_unsigned_long_long_int = yes; then
5804
5805 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5806
5807 fi
5808
5809
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5812 $as_echo_n "checking for long long int... " >&6; }
5813 if test "${ac_cv_type_long_long_int+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 ac_cv_type_long_long_int=yes
5817 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5818 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5819 if test $ac_cv_type_long_long_int = yes; then
5820 if test "$cross_compiling" = yes; then :
5821 :
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 #include <limits.h>
5826 #ifndef LLONG_MAX
5827 # define HALF \
5828 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5829 # define LLONG_MAX (HALF - 1 + HALF)
5830 #endif
5831 int
5832 main ()
5833 {
5834 long long int n = 1;
5835 int i;
5836 for (i = 0; ; i++)
5837 {
5838 long long int m = n << i;
5839 if (m >> i != n)
5840 return 1;
5841 if (LLONG_MAX / 2 < m)
5842 break;
5843 }
5844 return 0;
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_c_try_run "$LINENO"; then :
5850
5851 else
5852 ac_cv_type_long_long_int=no
5853 fi
5854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5855 conftest.$ac_objext conftest.beam conftest.$ac_ext
5856 fi
5857
5858 fi
5859 fi
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5862 $as_echo "$ac_cv_type_long_long_int" >&6; }
5863 if test $ac_cv_type_long_long_int = yes; then
5864
5865 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5866
5867 fi
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 gl_cv_c_multiarch=no
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #ifndef __APPLE_CC__
5884 not a universal capable compiler
5885 #endif
5886 typedef int dummy;
5887
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890
5891 arch=
5892 prev=
5893 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5894 if test -n "$prev"; then
5895 case $word in
5896 i?86 | x86_64 | ppc | ppc64)
5897 if test -z "$arch" || test "$arch" = "$word"; then
5898 arch="$word"
5899 else
5900 gl_cv_c_multiarch=yes
5901 fi
5902 ;;
5903 esac
5904 prev=
5905 else
5906 if test "x$word" = "x-arch"; then
5907 prev=arch
5908 fi
5909 fi
5910 done
5911
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 if test $gl_cv_c_multiarch = yes; then
5915 APPLE_UNIVERSAL_BUILD=1
5916 else
5917 APPLE_UNIVERSAL_BUILD=0
5918 fi
5919
5920
5921
5922
5923
5924 if test $ac_cv_type_long_long_int = yes; then
5925 HAVE_LONG_LONG_INT=1
5926 else
5927 HAVE_LONG_LONG_INT=0
5928 fi
5929
5930
5931 if test $ac_cv_type_unsigned_long_long_int = yes; then
5932 HAVE_UNSIGNED_LONG_LONG_INT=1
5933 else
5934 HAVE_UNSIGNED_LONG_LONG_INT=0
5935 fi
5936
5937
5938
5939 :
5940
5941
5942
5943
5944
5945 if test $ac_cv_header_wchar_h = yes; then
5946 HAVE_WCHAR_H=1
5947 else
5948 HAVE_WCHAR_H=0
5949 fi
5950
5951
5952 if test $ac_cv_header_inttypes_h = yes; then
5953 HAVE_INTTYPES_H=1
5954 else
5955 HAVE_INTTYPES_H=0
5956 fi
5957
5958
5959 if test $ac_cv_header_sys_types_h = yes; then
5960 HAVE_SYS_TYPES_H=1
5961 else
5962 HAVE_SYS_TYPES_H=0
5963 fi
5964
5965
5966
5967
5968
5969
5970
5971
5972 :
5973
5974
5975
5976
5977
5978
5979
5980
5981 if test $gl_cv_have_include_next = yes; then
5982 gl_cv_next_stdint_h='<'stdint.h'>'
5983 else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5985 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5986 if test "${gl_cv_next_stdint_h+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989
5990 if test $ac_cv_header_stdint_h = yes; then
5991
5992
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <stdint.h>
5996
5997 _ACEOF
5998 case "$host_os" in
5999 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6000 *) gl_absname_cpp="$ac_cpp" ;;
6001 esac
6002
6003 case "$host_os" in
6004 mingw*)
6005 gl_dirsep_regex='[/\\]'
6006 ;;
6007 *)
6008 gl_dirsep_regex='\/'
6009 ;;
6010 esac
6011 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6012
6013 gl_header_literal_regex=`echo 'stdint.h' \
6014 | sed -e "$gl_make_literal_regex_sed"`
6015 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6016 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6017 s|^/[^/]|//&|
6018 p
6019 q
6020 }'
6021 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6022 sed -n "$gl_absolute_header_sed"`'"'
6023 else
6024 gl_cv_next_stdint_h='<'stdint.h'>'
6025 fi
6026
6027
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6030 $as_echo "$gl_cv_next_stdint_h" >&6; }
6031 fi
6032 NEXT_STDINT_H=$gl_cv_next_stdint_h
6033
6034 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6035 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6036 gl_next_as_first_directive='<'stdint.h'>'
6037 else
6038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6039 gl_next_as_first_directive=$gl_cv_next_stdint_h
6040 fi
6041 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6042
6043
6044
6045
6046 if test $ac_cv_header_stdint_h = yes; then
6047 HAVE_STDINT_H=1
6048 else
6049 HAVE_STDINT_H=0
6050 fi
6051
6052
6053 if test $ac_cv_header_stdint_h = yes; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6055 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6056 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 gl_cv_header_working_stdint_h=no
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062
6063
6064 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6065 #include <stdint.h>
6066 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6067 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6068 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6069 #endif
6070
6071
6072 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6073 included before <wchar.h>. */
6074 #include <stddef.h>
6075 #include <signal.h>
6076 #if HAVE_WCHAR_H
6077 # include <stdio.h>
6078 # include <time.h>
6079 # include <wchar.h>
6080 #endif
6081
6082
6083 #ifdef INT8_MAX
6084 int8_t a1 = INT8_MAX;
6085 int8_t a1min = INT8_MIN;
6086 #endif
6087 #ifdef INT16_MAX
6088 int16_t a2 = INT16_MAX;
6089 int16_t a2min = INT16_MIN;
6090 #endif
6091 #ifdef INT32_MAX
6092 int32_t a3 = INT32_MAX;
6093 int32_t a3min = INT32_MIN;
6094 #endif
6095 #ifdef INT64_MAX
6096 int64_t a4 = INT64_MAX;
6097 int64_t a4min = INT64_MIN;
6098 #endif
6099 #ifdef UINT8_MAX
6100 uint8_t b1 = UINT8_MAX;
6101 #else
6102 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6103 #endif
6104 #ifdef UINT16_MAX
6105 uint16_t b2 = UINT16_MAX;
6106 #endif
6107 #ifdef UINT32_MAX
6108 uint32_t b3 = UINT32_MAX;
6109 #endif
6110 #ifdef UINT64_MAX
6111 uint64_t b4 = UINT64_MAX;
6112 #endif
6113 int_least8_t c1 = INT8_C (0x7f);
6114 int_least8_t c1max = INT_LEAST8_MAX;
6115 int_least8_t c1min = INT_LEAST8_MIN;
6116 int_least16_t c2 = INT16_C (0x7fff);
6117 int_least16_t c2max = INT_LEAST16_MAX;
6118 int_least16_t c2min = INT_LEAST16_MIN;
6119 int_least32_t c3 = INT32_C (0x7fffffff);
6120 int_least32_t c3max = INT_LEAST32_MAX;
6121 int_least32_t c3min = INT_LEAST32_MIN;
6122 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6123 int_least64_t c4max = INT_LEAST64_MAX;
6124 int_least64_t c4min = INT_LEAST64_MIN;
6125 uint_least8_t d1 = UINT8_C (0xff);
6126 uint_least8_t d1max = UINT_LEAST8_MAX;
6127 uint_least16_t d2 = UINT16_C (0xffff);
6128 uint_least16_t d2max = UINT_LEAST16_MAX;
6129 uint_least32_t d3 = UINT32_C (0xffffffff);
6130 uint_least32_t d3max = UINT_LEAST32_MAX;
6131 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6132 uint_least64_t d4max = UINT_LEAST64_MAX;
6133 int_fast8_t e1 = INT_FAST8_MAX;
6134 int_fast8_t e1min = INT_FAST8_MIN;
6135 int_fast16_t e2 = INT_FAST16_MAX;
6136 int_fast16_t e2min = INT_FAST16_MIN;
6137 int_fast32_t e3 = INT_FAST32_MAX;
6138 int_fast32_t e3min = INT_FAST32_MIN;
6139 int_fast64_t e4 = INT_FAST64_MAX;
6140 int_fast64_t e4min = INT_FAST64_MIN;
6141 uint_fast8_t f1 = UINT_FAST8_MAX;
6142 uint_fast16_t f2 = UINT_FAST16_MAX;
6143 uint_fast32_t f3 = UINT_FAST32_MAX;
6144 uint_fast64_t f4 = UINT_FAST64_MAX;
6145 #ifdef INTPTR_MAX
6146 intptr_t g = INTPTR_MAX;
6147 intptr_t gmin = INTPTR_MIN;
6148 #endif
6149 #ifdef UINTPTR_MAX
6150 uintptr_t h = UINTPTR_MAX;
6151 #endif
6152 intmax_t i = INTMAX_MAX;
6153 uintmax_t j = UINTMAX_MAX;
6154
6155 #include <limits.h> /* for CHAR_BIT */
6156 #define TYPE_MINIMUM(t) \
6157 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6158 #define TYPE_MAXIMUM(t) \
6159 ((t) ((t) 0 < (t) -1 \
6160 ? (t) -1 \
6161 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6162 struct s {
6163 int check_PTRDIFF:
6164 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6165 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6166 ? 1 : -1;
6167 /* Detect bug in FreeBSD 6.0 / ia64. */
6168 int check_SIG_ATOMIC:
6169 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6170 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6171 ? 1 : -1;
6172 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6173 int check_WCHAR:
6174 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6175 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6176 ? 1 : -1;
6177 /* Detect bug in mingw. */
6178 int check_WINT:
6179 WINT_MIN == TYPE_MINIMUM (wint_t)
6180 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6181 ? 1 : -1;
6182
6183 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6184 int check_UINT8_C:
6185 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6186 int check_UINT16_C:
6187 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6188
6189 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6190 #ifdef UINT8_MAX
6191 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6192 #endif
6193 #ifdef UINT16_MAX
6194 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6195 #endif
6196 #ifdef UINT32_MAX
6197 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6198 #endif
6199 #ifdef UINT64_MAX
6200 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6201 #endif
6202 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6203 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6204 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6205 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6206 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6207 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6208 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6209 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6210 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6211 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6212 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6213 };
6214
6215 int
6216 main ()
6217 {
6218
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"; then :
6224 if test "$cross_compiling" = yes; then :
6225 gl_cv_header_working_stdint_h=yes
6226
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230
6231
6232 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6233 #include <stdint.h>
6234
6235
6236 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6237 included before <wchar.h>. */
6238 #include <stddef.h>
6239 #include <signal.h>
6240 #if HAVE_WCHAR_H
6241 # include <stdio.h>
6242 # include <time.h>
6243 # include <wchar.h>
6244 #endif
6245
6246
6247 #include <stdio.h>
6248 #include <string.h>
6249 #define MVAL(macro) MVAL1(macro)
6250 #define MVAL1(expression) #expression
6251 static const char *macro_values[] =
6252 {
6253 #ifdef INT8_MAX
6254 MVAL (INT8_MAX),
6255 #endif
6256 #ifdef INT16_MAX
6257 MVAL (INT16_MAX),
6258 #endif
6259 #ifdef INT32_MAX
6260 MVAL (INT32_MAX),
6261 #endif
6262 #ifdef INT64_MAX
6263 MVAL (INT64_MAX),
6264 #endif
6265 #ifdef UINT8_MAX
6266 MVAL (UINT8_MAX),
6267 #endif
6268 #ifdef UINT16_MAX
6269 MVAL (UINT16_MAX),
6270 #endif
6271 #ifdef UINT32_MAX
6272 MVAL (UINT32_MAX),
6273 #endif
6274 #ifdef UINT64_MAX
6275 MVAL (UINT64_MAX),
6276 #endif
6277 NULL
6278 };
6279
6280 int
6281 main ()
6282 {
6283
6284 const char **mv;
6285 for (mv = macro_values; *mv != NULL; mv++)
6286 {
6287 const char *value = *mv;
6288 /* Test whether it looks like a cast expression. */
6289 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6290 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6291 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6292 || strncmp (value, "((int)"/*)*/, 6) == 0
6293 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6294 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6295 return mv - macro_values + 1;
6296 }
6297 return 0;
6298
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_run "$LINENO"; then :
6304 gl_cv_header_working_stdint_h=yes
6305 fi
6306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6307 conftest.$ac_objext conftest.beam conftest.$ac_ext
6308 fi
6309
6310
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6316 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6317 fi
6318 if test "$gl_cv_header_working_stdint_h" = yes; then
6319 STDINT_H=
6320 else
6321 for ac_header in sys/inttypes.h sys/bitypes.h
6322 do :
6323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6325 eval as_val=\$$as_ac_Header
6326 if test "x$as_val" = x""yes; then :
6327 cat >>confdefs.h <<_ACEOF
6328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6329 _ACEOF
6330
6331 fi
6332
6333 done
6334
6335 if test $ac_cv_header_sys_inttypes_h = yes; then
6336 HAVE_SYS_INTTYPES_H=1
6337 else
6338 HAVE_SYS_INTTYPES_H=0
6339 fi
6340
6341 if test $ac_cv_header_sys_bitypes_h = yes; then
6342 HAVE_SYS_BITYPES_H=1
6343 else
6344 HAVE_SYS_BITYPES_H=0
6345 fi
6346
6347
6348
6349
6350 if test $APPLE_UNIVERSAL_BUILD = 0; then
6351
6352
6353 for gltype in ptrdiff_t size_t ; do
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6355 $as_echo_n "checking for bit size of $gltype... " >&6; }
6356 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6360 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6361 included before <wchar.h>. */
6362 #include <stddef.h>
6363 #include <signal.h>
6364 #if HAVE_WCHAR_H
6365 # include <stdio.h>
6366 # include <time.h>
6367 # include <wchar.h>
6368 #endif
6369
6370 #include <limits.h>"; then :
6371
6372 else
6373 result=unknown
6374 fi
6375
6376 eval gl_cv_bitsizeof_${gltype}=\$result
6377
6378 fi
6379 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 eval result=\$gl_cv_bitsizeof_${gltype}
6383 if test $result = unknown; then
6384 result=0
6385 fi
6386 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6387 cat >>confdefs.h <<_ACEOF
6388 #define BITSIZEOF_${GLTYPE} $result
6389 _ACEOF
6390
6391 eval BITSIZEOF_${GLTYPE}=\$result
6392 done
6393
6394
6395 fi
6396
6397
6398 for gltype in sig_atomic_t wchar_t wint_t ; do
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6400 $as_echo_n "checking for bit size of $gltype... " >&6; }
6401 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6405 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6406 included before <wchar.h>. */
6407 #include <stddef.h>
6408 #include <signal.h>
6409 #if HAVE_WCHAR_H
6410 # include <stdio.h>
6411 # include <time.h>
6412 # include <wchar.h>
6413 #endif
6414
6415 #include <limits.h>"; then :
6416
6417 else
6418 result=unknown
6419 fi
6420
6421 eval gl_cv_bitsizeof_${gltype}=\$result
6422
6423 fi
6424 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 eval result=\$gl_cv_bitsizeof_${gltype}
6428 if test $result = unknown; then
6429 result=0
6430 fi
6431 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6432 cat >>confdefs.h <<_ACEOF
6433 #define BITSIZEOF_${GLTYPE} $result
6434 _ACEOF
6435
6436 eval BITSIZEOF_${GLTYPE}=\$result
6437 done
6438
6439
6440
6441
6442 for gltype in sig_atomic_t wchar_t wint_t ; do
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6444 $as_echo_n "checking whether $gltype is signed... " >&6; }
6445 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450
6451 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6452 included before <wchar.h>. */
6453 #include <stddef.h>
6454 #include <signal.h>
6455 #if HAVE_WCHAR_H
6456 # include <stdio.h>
6457 # include <time.h>
6458 # include <wchar.h>
6459 #endif
6460
6461 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6462 int
6463 main ()
6464 {
6465
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 result=yes
6472 else
6473 result=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 eval gl_cv_type_${gltype}_signed=\$result
6477
6478 fi
6479 eval ac_res=\$gl_cv_type_${gltype}_signed
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6481 $as_echo "$ac_res" >&6; }
6482 eval result=\$gl_cv_type_${gltype}_signed
6483 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6484 if test "$result" = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define HAVE_SIGNED_${GLTYPE} 1
6487 _ACEOF
6488
6489 eval HAVE_SIGNED_${GLTYPE}=1
6490 else
6491 eval HAVE_SIGNED_${GLTYPE}=0
6492 fi
6493 done
6494
6495
6496 gl_cv_type_ptrdiff_t_signed=yes
6497 gl_cv_type_size_t_signed=no
6498 if test $APPLE_UNIVERSAL_BUILD = 0; then
6499
6500
6501 for gltype in ptrdiff_t size_t ; do
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6503 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6504 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 eval gl_cv_type_${gltype}_suffix=no
6508 eval result=\$gl_cv_type_${gltype}_signed
6509 if test "$result" = yes; then
6510 glsufu=
6511 else
6512 glsufu=u
6513 fi
6514 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6515 case $glsuf in
6516 '') gltype1='int';;
6517 l) gltype1='long int';;
6518 ll) gltype1='long long int';;
6519 i64) gltype1='__int64';;
6520 u) gltype1='unsigned int';;
6521 ul) gltype1='unsigned long int';;
6522 ull) gltype1='unsigned long long int';;
6523 ui64)gltype1='unsigned __int64';;
6524 esac
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527
6528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6529 included before <wchar.h>. */
6530 #include <stddef.h>
6531 #include <signal.h>
6532 #if HAVE_WCHAR_H
6533 # include <stdio.h>
6534 # include <time.h>
6535 # include <wchar.h>
6536 #endif
6537
6538 extern $gltype foo;
6539 extern $gltype1 foo;
6540 int
6541 main ()
6542 {
6543
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 eval gl_cv_type_${gltype}_suffix=\$glsuf
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 eval result=\$gl_cv_type_${gltype}_suffix
6553 test "$result" != no && break
6554 done
6555 fi
6556 eval ac_res=\$gl_cv_type_${gltype}_suffix
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6558 $as_echo "$ac_res" >&6; }
6559 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6560 eval result=\$gl_cv_type_${gltype}_suffix
6561 test "$result" = no && result=
6562 eval ${GLTYPE}_SUFFIX=\$result
6563 cat >>confdefs.h <<_ACEOF
6564 #define ${GLTYPE}_SUFFIX $result
6565 _ACEOF
6566
6567 done
6568
6569
6570 fi
6571
6572
6573 for gltype in sig_atomic_t wchar_t wint_t ; do
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6575 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6576 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 eval gl_cv_type_${gltype}_suffix=no
6580 eval result=\$gl_cv_type_${gltype}_signed
6581 if test "$result" = yes; then
6582 glsufu=
6583 else
6584 glsufu=u
6585 fi
6586 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6587 case $glsuf in
6588 '') gltype1='int';;
6589 l) gltype1='long int';;
6590 ll) gltype1='long long int';;
6591 i64) gltype1='__int64';;
6592 u) gltype1='unsigned int';;
6593 ul) gltype1='unsigned long int';;
6594 ull) gltype1='unsigned long long int';;
6595 ui64)gltype1='unsigned __int64';;
6596 esac
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599
6600 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6601 included before <wchar.h>. */
6602 #include <stddef.h>
6603 #include <signal.h>
6604 #if HAVE_WCHAR_H
6605 # include <stdio.h>
6606 # include <time.h>
6607 # include <wchar.h>
6608 #endif
6609
6610 extern $gltype foo;
6611 extern $gltype1 foo;
6612 int
6613 main ()
6614 {
6615
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621 eval gl_cv_type_${gltype}_suffix=\$glsuf
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 eval result=\$gl_cv_type_${gltype}_suffix
6625 test "$result" != no && break
6626 done
6627 fi
6628 eval ac_res=\$gl_cv_type_${gltype}_suffix
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6630 $as_echo "$ac_res" >&6; }
6631 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6632 eval result=\$gl_cv_type_${gltype}_suffix
6633 test "$result" = no && result=
6634 eval ${GLTYPE}_SUFFIX=\$result
6635 cat >>confdefs.h <<_ACEOF
6636 #define ${GLTYPE}_SUFFIX $result
6637 _ACEOF
6638
6639 done
6640
6641
6642
6643 if test $BITSIZEOF_WINT_T -lt 32; then
6644 BITSIZEOF_WINT_T=32
6645 fi
6646
6647 STDINT_H=stdint.h
6648 fi
6649
6650 if test -n "$STDINT_H"; then
6651 GL_GENERATE_STDINT_H_TRUE=
6652 GL_GENERATE_STDINT_H_FALSE='#'
6653 else
6654 GL_GENERATE_STDINT_H_TRUE='#'
6655 GL_GENERATE_STDINT_H_FALSE=
6656 fi
6657
6658
6659
6660
6661
6662
6663
6664
6665 GNULIB_IMAXABS=0;
6666 GNULIB_IMAXDIV=0;
6667 GNULIB_STRTOIMAX=0;
6668 GNULIB_STRTOUMAX=0;
6669 HAVE_DECL_IMAXABS=1;
6670 HAVE_DECL_IMAXDIV=1;
6671 HAVE_DECL_STRTOIMAX=1;
6672 HAVE_DECL_STRTOUMAX=1;
6673 REPLACE_STRTOIMAX=0;
6674 INT32_MAX_LT_INTMAX_MAX=1;
6675 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6676 PRI_MACROS_BROKEN=0;
6677 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6678 UINT32_MAX_LT_UINTMAX_MAX=1;
6679 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6680
6681
6682
6683
6684 :
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698 :
6699
6700
6701
6702
6703
6704
6705
6706
6707 if test $gl_cv_have_include_next = yes; then
6708 gl_cv_next_inttypes_h='<'inttypes.h'>'
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6711 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6712 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715
6716 if test $ac_cv_header_inttypes_h = yes; then
6717
6718
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <inttypes.h>
6722
6723 _ACEOF
6724 case "$host_os" in
6725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6726 *) gl_absname_cpp="$ac_cpp" ;;
6727 esac
6728
6729 case "$host_os" in
6730 mingw*)
6731 gl_dirsep_regex='[/\\]'
6732 ;;
6733 *)
6734 gl_dirsep_regex='\/'
6735 ;;
6736 esac
6737 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6738
6739 gl_header_literal_regex=`echo 'inttypes.h' \
6740 | sed -e "$gl_make_literal_regex_sed"`
6741 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6742 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6743 s|^/[^/]|//&|
6744 p
6745 q
6746 }'
6747 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6748 sed -n "$gl_absolute_header_sed"`'"'
6749 else
6750 gl_cv_next_inttypes_h='<'inttypes.h'>'
6751 fi
6752
6753
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6756 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6757 fi
6758 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6759
6760 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6762 gl_next_as_first_directive='<'inttypes.h'>'
6763 else
6764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6765 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6766 fi
6767 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6768
6769
6770
6771
6772
6773
6774
6775
6776 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6777 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6779 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6780 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #include <inttypes.h>
6786
6787 int
6788 main ()
6789 {
6790 #undef $gl_func
6791 (void) $gl_func;
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 eval "$as_gl_Symbol=yes"
6798 else
6799 eval "$as_gl_Symbol=no"
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 fi
6803 eval ac_res=\$$as_gl_Symbol
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6805 $as_echo "$ac_res" >&6; }
6806 eval as_val=\$$as_gl_Symbol
6807 if test "x$as_val" = x""yes; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6810 _ACEOF
6811
6812 eval ac_cv_have_decl_$gl_func=yes
6813 fi
6814 done
6815
6816
6817
6818 for ac_header in inttypes.h
6819 do :
6820 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6821 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_INTTYPES_H 1
6824 _ACEOF
6825
6826 fi
6827
6828 done
6829
6830 if test $ac_cv_header_inttypes_h = yes; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6832 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6833 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839
6840 #include <inttypes.h>
6841 #ifdef PRId32
6842 char *p = PRId32;
6843 #endif
6844
6845 int
6846 main ()
6847 {
6848
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 gt_cv_inttypes_pri_broken=no
6855 else
6856 gt_cv_inttypes_pri_broken=yes
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859
6860 fi
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6862 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6863 fi
6864 if test "$gt_cv_inttypes_pri_broken" = yes; then
6865
6866 cat >>confdefs.h <<_ACEOF
6867 #define PRI_MACROS_BROKEN 1
6868 _ACEOF
6869
6870 PRI_MACROS_BROKEN=1
6871 else
6872 PRI_MACROS_BROKEN=0
6873 fi
6874
6875
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6878 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6879 if test "${am_cv_langinfo_codeset+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 #include <langinfo.h>
6885 int
6886 main ()
6887 {
6888 char* cs = nl_langinfo(CODESET); return !cs;
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"; then :
6894 am_cv_langinfo_codeset=yes
6895 else
6896 am_cv_langinfo_codeset=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6903 $as_echo "$am_cv_langinfo_codeset" >&6; }
6904 if test $am_cv_langinfo_codeset = yes; then
6905
6906 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6907
6908 fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 :
6925
6926
6927
6928
6929
6930
6931 :
6932
6933
6934
6935
6936
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6938 $as_echo_n "checking for working fcntl.h... " >&6; }
6939 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test "$cross_compiling" = yes; then :
6943 gl_cv_header_working_fcntl_h=cross-compiling
6944 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <sys/types.h>
6948 #include <sys/stat.h>
6949 #if HAVE_UNISTD_H
6950 # include <unistd.h>
6951 #else /* on Windows with MSVC */
6952 # include <io.h>
6953 # include <stdlib.h>
6954 # defined sleep(n) _sleep ((n) * 1000)
6955 #endif
6956 #include <fcntl.h>
6957 #ifndef O_NOATIME
6958 #define O_NOATIME 0
6959 #endif
6960 #ifndef O_NOFOLLOW
6961 #define O_NOFOLLOW 0
6962 #endif
6963 static int const constants[] =
6964 {
6965 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6966 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6967 };
6968
6969 int
6970 main ()
6971 {
6972
6973 int result = !constants;
6974 #if HAVE_SYMLINK
6975 {
6976 static char const sym[] = "conftest.sym";
6977 if (symlink ("/dev/null", sym) != 0)
6978 result |= 2;
6979 else
6980 {
6981 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
6982 if (fd >= 0)
6983 {
6984 close (fd);
6985 result |= 4;
6986 }
6987 }
6988 if (unlink (sym) != 0 || symlink (".", sym) != 0)
6989 result |= 2;
6990 else
6991 {
6992 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6993 if (fd >= 0)
6994 {
6995 close (fd);
6996 result |= 4;
6997 }
6998 }
6999 unlink (sym);
7000 }
7001 #endif
7002 {
7003 static char const file[] = "confdefs.h";
7004 int fd = open (file, O_RDONLY | O_NOATIME);
7005 if (fd < 0)
7006 result |= 8;
7007 else
7008 {
7009 struct stat st0;
7010 if (fstat (fd, &st0) != 0)
7011 result |= 16;
7012 else
7013 {
7014 char c;
7015 sleep (1);
7016 if (read (fd, &c, 1) != 1)
7017 result |= 24;
7018 else
7019 {
7020 if (close (fd) != 0)
7021 result |= 32;
7022 else
7023 {
7024 struct stat st1;
7025 if (stat (file, &st1) != 0)
7026 result |= 40;
7027 else
7028 if (st0.st_atime != st1.st_atime)
7029 result |= 64;
7030 }
7031 }
7032 }
7033 }
7034 }
7035 return result;
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_run "$LINENO"; then :
7041 gl_cv_header_working_fcntl_h=yes
7042 else
7043 case $? in #(
7044 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7045 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7046 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7047 *) gl_cv_header_working_fcntl_h='no';;
7048 esac
7049 fi
7050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7051 conftest.$ac_objext conftest.beam conftest.$ac_ext
7052 fi
7053
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7056 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7057
7058 case $gl_cv_header_working_fcntl_h in #(
7059 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7060 *) ac_val=1;;
7061 esac
7062
7063 cat >>confdefs.h <<_ACEOF
7064 #define HAVE_WORKING_O_NOATIME $ac_val
7065 _ACEOF
7066
7067
7068 case $gl_cv_header_working_fcntl_h in #(
7069 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7070 *) ac_val=1;;
7071 esac
7072
7073 cat >>confdefs.h <<_ACEOF
7074 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7075 _ACEOF
7076
7077
7078
7079 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7080 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7081 ac_have_decl=1
7082 else
7083 ac_have_decl=0
7084 fi
7085
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7088 _ACEOF
7089
7090
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7093 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7094 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099
7100 #include <features.h>
7101 #ifdef __GNU_LIBRARY__
7102 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7103 Lucky GNU user
7104 #endif
7105 #endif
7106 #ifdef __UCLIBC__
7107 Lucky user
7108 #endif
7109
7110 _ACEOF
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 $EGREP "Lucky" >/dev/null 2>&1; then :
7113 ac_cv_gnu_library_2_1=yes
7114 else
7115 ac_cv_gnu_library_2_1=no
7116 fi
7117 rm -f conftest*
7118
7119
7120
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7123 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7124
7125 GLIBC21="$ac_cv_gnu_library_2_1"
7126
7127
7128
7129 GNULIB_BTOWC=0;
7130 GNULIB_WCTOB=0;
7131 GNULIB_MBSINIT=0;
7132 GNULIB_MBRTOWC=0;
7133 GNULIB_MBRLEN=0;
7134 GNULIB_MBSRTOWCS=0;
7135 GNULIB_MBSNRTOWCS=0;
7136 GNULIB_WCRTOMB=0;
7137 GNULIB_WCSRTOMBS=0;
7138 GNULIB_WCSNRTOMBS=0;
7139 GNULIB_WCWIDTH=0;
7140 GNULIB_WMEMCHR=0;
7141 GNULIB_WMEMCMP=0;
7142 GNULIB_WMEMCPY=0;
7143 GNULIB_WMEMMOVE=0;
7144 GNULIB_WMEMSET=0;
7145 GNULIB_WCSLEN=0;
7146 GNULIB_WCSNLEN=0;
7147 GNULIB_WCSCPY=0;
7148 GNULIB_WCPCPY=0;
7149 GNULIB_WCSNCPY=0;
7150 GNULIB_WCPNCPY=0;
7151 GNULIB_WCSCAT=0;
7152 GNULIB_WCSNCAT=0;
7153 GNULIB_WCSCMP=0;
7154 GNULIB_WCSNCMP=0;
7155 GNULIB_WCSCASECMP=0;
7156 GNULIB_WCSNCASECMP=0;
7157 GNULIB_WCSCOLL=0;
7158 GNULIB_WCSXFRM=0;
7159 GNULIB_WCSDUP=0;
7160 GNULIB_WCSCHR=0;
7161 GNULIB_WCSRCHR=0;
7162 GNULIB_WCSCSPN=0;
7163 GNULIB_WCSSPN=0;
7164 GNULIB_WCSPBRK=0;
7165 GNULIB_WCSSTR=0;
7166 GNULIB_WCSTOK=0;
7167 GNULIB_WCSWIDTH=0;
7168 HAVE_BTOWC=1;
7169 HAVE_MBSINIT=1;
7170 HAVE_MBRTOWC=1;
7171 HAVE_MBRLEN=1;
7172 HAVE_MBSRTOWCS=1;
7173 HAVE_MBSNRTOWCS=1;
7174 HAVE_WCRTOMB=1;
7175 HAVE_WCSRTOMBS=1;
7176 HAVE_WCSNRTOMBS=1;
7177 HAVE_WMEMCHR=1;
7178 HAVE_WMEMCMP=1;
7179 HAVE_WMEMCPY=1;
7180 HAVE_WMEMMOVE=1;
7181 HAVE_WMEMSET=1;
7182 HAVE_WCSLEN=1;
7183 HAVE_WCSNLEN=1;
7184 HAVE_WCSCPY=1;
7185 HAVE_WCPCPY=1;
7186 HAVE_WCSNCPY=1;
7187 HAVE_WCPNCPY=1;
7188 HAVE_WCSCAT=1;
7189 HAVE_WCSNCAT=1;
7190 HAVE_WCSCMP=1;
7191 HAVE_WCSNCMP=1;
7192 HAVE_WCSCASECMP=1;
7193 HAVE_WCSNCASECMP=1;
7194 HAVE_WCSCOLL=1;
7195 HAVE_WCSXFRM=1;
7196 HAVE_WCSDUP=1;
7197 HAVE_WCSCHR=1;
7198 HAVE_WCSRCHR=1;
7199 HAVE_WCSCSPN=1;
7200 HAVE_WCSSPN=1;
7201 HAVE_WCSPBRK=1;
7202 HAVE_WCSSTR=1;
7203 HAVE_WCSTOK=1;
7204 HAVE_WCSWIDTH=1;
7205 HAVE_DECL_WCTOB=1;
7206 HAVE_DECL_WCWIDTH=1;
7207 REPLACE_MBSTATE_T=0;
7208 REPLACE_BTOWC=0;
7209 REPLACE_WCTOB=0;
7210 REPLACE_MBSINIT=0;
7211 REPLACE_MBRTOWC=0;
7212 REPLACE_MBRLEN=0;
7213 REPLACE_MBSRTOWCS=0;
7214 REPLACE_MBSNRTOWCS=0;
7215 REPLACE_WCRTOMB=0;
7216 REPLACE_WCSRTOMBS=0;
7217 REPLACE_WCSNRTOMBS=0;
7218 REPLACE_WCWIDTH=0;
7219 REPLACE_WCSWIDTH=0;
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
7235 $as_echo_n "checking for a traditional japanese locale... " >&6; }
7236 if test "${gt_cv_locale_ja+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242
7243 #include <locale.h>
7244 #include <time.h>
7245 #if HAVE_LANGINFO_CODESET
7246 # include <langinfo.h>
7247 #endif
7248 #include <stdlib.h>
7249 #include <string.h>
7250 struct tm t;
7251 char buf[16];
7252 int main ()
7253 {
7254 const char *p;
7255 /* Check whether the given locale name is recognized by the system. */
7256 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7257 /* On native Windows, setlocale(category, "") looks at the system settings,
7258 not at the environment variables. Also, when an encoding suffix such
7259 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7260 category of the locale to "C". */
7261 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7262 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7263 return 1;
7264 #else
7265 if (setlocale (LC_ALL, "") == NULL) return 1;
7266 #endif
7267 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7268 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7269 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7270 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7271 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7272 some unit tests fail.
7273 On MirBSD 10, when an unsupported locale is specified, setlocale()
7274 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7275 #if HAVE_LANGINFO_CODESET
7276 {
7277 const char *cs = nl_langinfo (CODESET);
7278 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7279 || strcmp (cs, "UTF-8") == 0)
7280 return 1;
7281 }
7282 #endif
7283 #ifdef __CYGWIN__
7284 /* On Cygwin, avoid locale names without encoding suffix, because the
7285 locale_charset() function relies on the encoding suffix. Note that
7286 LC_ALL is set on the command line. */
7287 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7288 #endif
7289 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
7290 on Cygwin 1.5.x. */
7291 if (MB_CUR_MAX == 1)
7292 return 1;
7293 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7294 This excludes the UTF-8 encoding (except on MirBSD). */
7295 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7296 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7297 for (p = buf; *p != '\0'; p++)
7298 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7299 return 1;
7300 return 0;
7301 }
7302
7303 _ACEOF
7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7305 (eval $ac_link) 2>&5
7306 ac_status=$?
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7309 case "$host_os" in
7310 # Handle native Windows specially, because there setlocale() interprets
7311 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7312 # "fr" or "fra" as "French" or "French_France.1252",
7313 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7314 # "ja" as "Japanese" or "Japanese_Japan.932",
7315 # and similar.
7316 mingw*)
7317 # Note that on native Windows, the Japanese locale is
7318 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
7319 # cannot use it here.
7320 gt_cv_locale_ja=none
7321 ;;
7322 *)
7323 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7324 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7325 # configure script would override the LC_ALL setting. Likewise for
7326 # LC_CTYPE, which is also set at the beginning of the configure script.
7327 # Test for the AIX locale name.
7328 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7329 gt_cv_locale_ja=ja_JP
7330 else
7331 # Test for the locale name with explicit encoding suffix.
7332 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7333 gt_cv_locale_ja=ja_JP.EUC-JP
7334 else
7335 # Test for the HP-UX, OSF/1, NetBSD locale name.
7336 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7337 gt_cv_locale_ja=ja_JP.eucJP
7338 else
7339 # Test for the IRIX, FreeBSD locale name.
7340 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7341 gt_cv_locale_ja=ja_JP.EUC
7342 else
7343 # Test for the Solaris 7 locale name.
7344 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7345 gt_cv_locale_ja=ja
7346 else
7347 # Special test for NetBSD 1.6.
7348 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
7349 gt_cv_locale_ja=ja_JP.eucJP
7350 else
7351 # None found.
7352 gt_cv_locale_ja=none
7353 fi
7354 fi
7355 fi
7356 fi
7357 fi
7358 fi
7359 ;;
7360 esac
7361 fi
7362 rm -fr conftest*
7363
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
7366 $as_echo "$gt_cv_locale_ja" >&6; }
7367 LOCALE_JA=$gt_cv_locale_ja
7368
7369
7370
7371
7372
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
7374 $as_echo_n "checking for a transitional chinese locale... " >&6; }
7375 if test "${gt_cv_locale_zh_CN+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381
7382 #include <locale.h>
7383 #include <stdlib.h>
7384 #include <time.h>
7385 #if HAVE_LANGINFO_CODESET
7386 # include <langinfo.h>
7387 #endif
7388 #include <stdlib.h>
7389 #include <string.h>
7390 struct tm t;
7391 char buf[16];
7392 int main ()
7393 {
7394 const char *p;
7395 /* Check whether the given locale name is recognized by the system. */
7396 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7397 /* On native Windows, setlocale(category, "") looks at the system settings,
7398 not at the environment variables. Also, when an encoding suffix such
7399 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7400 category of the locale to "C". */
7401 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7402 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7403 return 1;
7404 #else
7405 if (setlocale (LC_ALL, "") == NULL) return 1;
7406 #endif
7407 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7408 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7409 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7410 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7411 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7412 some unit tests fail.
7413 On MirBSD 10, when an unsupported locale is specified, setlocale()
7414 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7415 #if HAVE_LANGINFO_CODESET
7416 {
7417 const char *cs = nl_langinfo (CODESET);
7418 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7419 || strcmp (cs, "UTF-8") == 0)
7420 return 1;
7421 }
7422 #endif
7423 #ifdef __CYGWIN__
7424 /* On Cygwin, avoid locale names without encoding suffix, because the
7425 locale_charset() function relies on the encoding suffix. Note that
7426 LC_ALL is set on the command line. */
7427 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7428 #endif
7429 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7430 This excludes the UTF-8 encoding (except on MirBSD). */
7431 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7432 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7433 for (p = buf; *p != '\0'; p++)
7434 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7435 return 1;
7436 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7437 single wide character. This excludes the GB2312 and GBK encodings. */
7438 if (mblen ("\203\062\332\066", 5) != 4)
7439 return 1;
7440 return 0;
7441 }
7442
7443 _ACEOF
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7445 (eval $ac_link) 2>&5
7446 ac_status=$?
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7449 case "$host_os" in
7450 # Handle native Windows specially, because there setlocale() interprets
7451 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7452 # "fr" or "fra" as "French" or "French_France.1252",
7453 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7454 # "ja" as "Japanese" or "Japanese_Japan.932",
7455 # and similar.
7456 mingw*)
7457 # Test for the hypothetical native Windows locale name.
7458 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7459 gt_cv_locale_zh_CN=Chinese_China.54936
7460 else
7461 # None found.
7462 gt_cv_locale_zh_CN=none
7463 fi
7464 ;;
7465 solaris2.8)
7466 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7467 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7468 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7469 gt_cv_locale_zh_CN=none
7470 ;;
7471 *)
7472 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7473 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7474 # configure script would override the LC_ALL setting. Likewise for
7475 # LC_CTYPE, which is also set at the beginning of the configure script.
7476 # Test for the locale name without encoding suffix.
7477 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7478 gt_cv_locale_zh_CN=zh_CN
7479 else
7480 # Test for the locale name with explicit encoding suffix.
7481 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7482 gt_cv_locale_zh_CN=zh_CN.GB18030
7483 else
7484 # None found.
7485 gt_cv_locale_zh_CN=none
7486 fi
7487 fi
7488 ;;
7489 esac
7490 else
7491 # If there was a link error, due to mblen(), the system is so old that
7492 # it certainly doesn't have a chinese locale.
7493 gt_cv_locale_zh_CN=none
7494 fi
7495 rm -fr conftest*
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7499 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7500 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7501
7502
7503
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7506 $as_echo_n "checking for a french Unicode locale... " >&6; }
7507 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513
7514 #include <locale.h>
7515 #include <time.h>
7516 #if HAVE_LANGINFO_CODESET
7517 # include <langinfo.h>
7518 #endif
7519 #include <stdlib.h>
7520 #include <string.h>
7521 struct tm t;
7522 char buf[16];
7523 int main () {
7524 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7525 imitates locale dependent behaviour by looking at the environment
7526 variables, and all locales use the UTF-8 encoding. */
7527 #if !(defined __BEOS__ || defined __HAIKU__)
7528 /* Check whether the given locale name is recognized by the system. */
7529 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7530 /* On native Windows, setlocale(category, "") looks at the system settings,
7531 not at the environment variables. Also, when an encoding suffix such
7532 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7533 category of the locale to "C". */
7534 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7535 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7536 return 1;
7537 # else
7538 if (setlocale (LC_ALL, "") == NULL) return 1;
7539 # endif
7540 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7541 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7542 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7543 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7544 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7545 some unit tests fail. */
7546 # if HAVE_LANGINFO_CODESET
7547 {
7548 const char *cs = nl_langinfo (CODESET);
7549 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7550 return 1;
7551 }
7552 # endif
7553 # ifdef __CYGWIN__
7554 /* On Cygwin, avoid locale names without encoding suffix, because the
7555 locale_charset() function relies on the encoding suffix. Note that
7556 LC_ALL is set on the command line. */
7557 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7558 # endif
7559 /* Check whether in the abbreviation of the second month, the second
7560 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7561 two bytes long, with UTF-8 encoding. */
7562 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7563 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7564 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7565 return 1;
7566 #endif
7567 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7568 /* Check whether the decimal separator is a comma.
7569 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7570 are nl_langinfo(RADIXCHAR) are both ".". */
7571 if (localeconv () ->decimal_point[0] != ',') return 1;
7572 #endif
7573 return 0;
7574 }
7575
7576 _ACEOF
7577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7578 (eval $ac_link) 2>&5
7579 ac_status=$?
7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7582 case "$host_os" in
7583 # Handle native Windows specially, because there setlocale() interprets
7584 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7585 # "fr" or "fra" as "French" or "French_France.1252",
7586 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7587 # "ja" as "Japanese" or "Japanese_Japan.932",
7588 # and similar.
7589 mingw*)
7590 # Test for the hypothetical native Windows locale name.
7591 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7592 gt_cv_locale_fr_utf8=French_France.65001
7593 else
7594 # None found.
7595 gt_cv_locale_fr_utf8=none
7596 fi
7597 ;;
7598 *)
7599 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7600 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7601 # configure script would override the LC_ALL setting. Likewise for
7602 # LC_CTYPE, which is also set at the beginning of the configure script.
7603 # Test for the usual locale name.
7604 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7605 gt_cv_locale_fr_utf8=fr_FR
7606 else
7607 # Test for the locale name with explicit encoding suffix.
7608 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7609 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7610 else
7611 # Test for the Solaris 7 locale name.
7612 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7613 gt_cv_locale_fr_utf8=fr.UTF-8
7614 else
7615 # None found.
7616 gt_cv_locale_fr_utf8=none
7617 fi
7618 fi
7619 fi
7620 ;;
7621 esac
7622 fi
7623 rm -fr conftest*
7624
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7627 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7628 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7629
7630
7631
7632
7633
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7635 $as_echo_n "checking for a traditional french locale... " >&6; }
7636 if test "${gt_cv_locale_fr+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 #include <locale.h>
7644 #include <time.h>
7645 #if HAVE_LANGINFO_CODESET
7646 # include <langinfo.h>
7647 #endif
7648 #include <stdlib.h>
7649 #include <string.h>
7650 struct tm t;
7651 char buf[16];
7652 int main () {
7653 /* Check whether the given locale name is recognized by the system. */
7654 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7655 /* On native Windows, setlocale(category, "") looks at the system settings,
7656 not at the environment variables. Also, when an encoding suffix such
7657 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7658 category of the locale to "C". */
7659 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7660 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7661 return 1;
7662 #else
7663 if (setlocale (LC_ALL, "") == NULL) return 1;
7664 #endif
7665 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7666 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7667 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7668 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7669 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7670 some unit tests fail.
7671 On MirBSD 10, when an unsupported locale is specified, setlocale()
7672 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7673 #if HAVE_LANGINFO_CODESET
7674 {
7675 const char *cs = nl_langinfo (CODESET);
7676 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7677 || strcmp (cs, "UTF-8") == 0)
7678 return 1;
7679 }
7680 #endif
7681 #ifdef __CYGWIN__
7682 /* On Cygwin, avoid locale names without encoding suffix, because the
7683 locale_charset() function relies on the encoding suffix. Note that
7684 LC_ALL is set on the command line. */
7685 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7686 #endif
7687 /* Check whether in the abbreviation of the second month, the second
7688 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7689 one byte long. This excludes the UTF-8 encoding. */
7690 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7691 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7692 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7693 /* Check whether the decimal separator is a comma.
7694 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7695 are nl_langinfo(RADIXCHAR) are both ".". */
7696 if (localeconv () ->decimal_point[0] != ',') return 1;
7697 #endif
7698 return 0;
7699 }
7700
7701 _ACEOF
7702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7703 (eval $ac_link) 2>&5
7704 ac_status=$?
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7707 case "$host_os" in
7708 # Handle native Windows specially, because there setlocale() interprets
7709 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7710 # "fr" or "fra" as "French" or "French_France.1252",
7711 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7712 # "ja" as "Japanese" or "Japanese_Japan.932",
7713 # and similar.
7714 mingw*)
7715 # Test for the native Windows locale name.
7716 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7717 gt_cv_locale_fr=French_France.1252
7718 else
7719 # None found.
7720 gt_cv_locale_fr=none
7721 fi
7722 ;;
7723 *)
7724 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7725 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7726 # configure script would override the LC_ALL setting. Likewise for
7727 # LC_CTYPE, which is also set at the beginning of the configure script.
7728 # Test for the usual locale name.
7729 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7730 gt_cv_locale_fr=fr_FR
7731 else
7732 # Test for the locale name with explicit encoding suffix.
7733 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7734 gt_cv_locale_fr=fr_FR.ISO-8859-1
7735 else
7736 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7737 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7738 gt_cv_locale_fr=fr_FR.ISO8859-1
7739 else
7740 # Test for the HP-UX locale name.
7741 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7742 gt_cv_locale_fr=fr_FR.iso88591
7743 else
7744 # Test for the Solaris 7 locale name.
7745 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7746 gt_cv_locale_fr=fr
7747 else
7748 # None found.
7749 gt_cv_locale_fr=none
7750 fi
7751 fi
7752 fi
7753 fi
7754 fi
7755 ;;
7756 esac
7757 fi
7758 rm -fr conftest*
7759
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7762 $as_echo "$gt_cv_locale_fr" >&6; }
7763 LOCALE_FR=$gt_cv_locale_fr
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 GNULIB_FFSL=0;
7778 GNULIB_FFSLL=0;
7779 GNULIB_MEMCHR=0;
7780 GNULIB_MEMMEM=0;
7781 GNULIB_MEMPCPY=0;
7782 GNULIB_MEMRCHR=0;
7783 GNULIB_RAWMEMCHR=0;
7784 GNULIB_STPCPY=0;
7785 GNULIB_STPNCPY=0;
7786 GNULIB_STRCHRNUL=0;
7787 GNULIB_STRDUP=0;
7788 GNULIB_STRNCAT=0;
7789 GNULIB_STRNDUP=0;
7790 GNULIB_STRNLEN=0;
7791 GNULIB_STRPBRK=0;
7792 GNULIB_STRSEP=0;
7793 GNULIB_STRSTR=0;
7794 GNULIB_STRCASESTR=0;
7795 GNULIB_STRTOK_R=0;
7796 GNULIB_MBSLEN=0;
7797 GNULIB_MBSNLEN=0;
7798 GNULIB_MBSCHR=0;
7799 GNULIB_MBSRCHR=0;
7800 GNULIB_MBSSTR=0;
7801 GNULIB_MBSCASECMP=0;
7802 GNULIB_MBSNCASECMP=0;
7803 GNULIB_MBSPCASECMP=0;
7804 GNULIB_MBSCASESTR=0;
7805 GNULIB_MBSCSPN=0;
7806 GNULIB_MBSPBRK=0;
7807 GNULIB_MBSSPN=0;
7808 GNULIB_MBSSEP=0;
7809 GNULIB_MBSTOK_R=0;
7810 GNULIB_STRERROR=0;
7811 GNULIB_STRERROR_R=0;
7812 GNULIB_STRSIGNAL=0;
7813 GNULIB_STRVERSCMP=0;
7814 HAVE_MBSLEN=0;
7815 HAVE_FFSL=1;
7816 HAVE_FFSLL=1;
7817 HAVE_MEMCHR=1;
7818 HAVE_DECL_MEMMEM=1;
7819 HAVE_MEMPCPY=1;
7820 HAVE_DECL_MEMRCHR=1;
7821 HAVE_RAWMEMCHR=1;
7822 HAVE_STPCPY=1;
7823 HAVE_STPNCPY=1;
7824 HAVE_STRCHRNUL=1;
7825 HAVE_DECL_STRDUP=1;
7826 HAVE_DECL_STRNDUP=1;
7827 HAVE_DECL_STRNLEN=1;
7828 HAVE_STRPBRK=1;
7829 HAVE_STRSEP=1;
7830 HAVE_STRCASESTR=1;
7831 HAVE_DECL_STRTOK_R=1;
7832 HAVE_DECL_STRERROR_R=1;
7833 HAVE_DECL_STRSIGNAL=1;
7834 HAVE_STRVERSCMP=1;
7835 REPLACE_MEMCHR=0;
7836 REPLACE_MEMMEM=0;
7837 REPLACE_STPNCPY=0;
7838 REPLACE_STRDUP=0;
7839 REPLACE_STRSTR=0;
7840 REPLACE_STRCASESTR=0;
7841 REPLACE_STRCHRNUL=0;
7842 REPLACE_STRERROR=0;
7843 REPLACE_STRERROR_R=0;
7844 REPLACE_STRNCAT=0;
7845 REPLACE_STRNDUP=0;
7846 REPLACE_STRNLEN=0;
7847 REPLACE_STRSIGNAL=0;
7848 REPLACE_STRTOK_R=0;
7849 UNDEFINE_STRTOK_R=0;
7850
7851
7852
7853
7854
7855 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7856 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7857 # irrelevant for anonymous mappings.
7858 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7859 if test "x$ac_cv_func_mmap" = x""yes; then :
7860 gl_have_mmap=yes
7861 else
7862 gl_have_mmap=no
7863 fi
7864
7865
7866 # Try to allow MAP_ANONYMOUS.
7867 gl_have_mmap_anonymous=no
7868 if test $gl_have_mmap = yes; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7870 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873
7874 #include <sys/mman.h>
7875 #ifdef MAP_ANONYMOUS
7876 I cannot identify this map
7877 #endif
7878
7879 _ACEOF
7880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7881 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7882 gl_have_mmap_anonymous=yes
7883 fi
7884 rm -f conftest*
7885
7886 if test $gl_have_mmap_anonymous != yes; then
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889
7890 #include <sys/mman.h>
7891 #ifdef MAP_ANON
7892 I cannot identify this map
7893 #endif
7894
7895 _ACEOF
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7898
7899 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7900
7901 gl_have_mmap_anonymous=yes
7902 fi
7903 rm -f conftest*
7904
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7907 $as_echo "$gl_have_mmap_anonymous" >&6; }
7908 if test $gl_have_mmap_anonymous = yes; then
7909
7910 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7911
7912 fi
7913 fi
7914
7915
7916 :
7917
7918
7919
7920
7921
7922
7923 :
7924
7925
7926
7927
7928
7929
7930
7931
7932 if test $HAVE_MEMCHR = 1; then
7933 # Detect platform-specific bugs in some versions of glibc:
7934 # memchr should not dereference anything with length 0
7935 # http://bugzilla.redhat.com/499689
7936 # memchr should not dereference overestimated length after a match
7937 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7938 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7939 # Assume that memchr works on platforms that lack mprotect.
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7941 $as_echo_n "checking whether memchr works... " >&6; }
7942 if test "${gl_cv_func_memchr_works+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test "$cross_compiling" = yes; then :
7946 gl_cv_func_memchr_works="guessing no"
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950
7951 #include <string.h>
7952 #if HAVE_SYS_MMAN_H
7953 # include <fcntl.h>
7954 # include <unistd.h>
7955 # include <sys/types.h>
7956 # include <sys/mman.h>
7957 # ifndef MAP_FILE
7958 # define MAP_FILE 0
7959 # endif
7960 #endif
7961
7962 int
7963 main ()
7964 {
7965
7966 int result = 0;
7967 char *fence = NULL;
7968 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7969 # if HAVE_MAP_ANONYMOUS
7970 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7971 const int fd = -1;
7972 # else /* !HAVE_MAP_ANONYMOUS */
7973 const int flags = MAP_FILE | MAP_PRIVATE;
7974 int fd = open ("/dev/zero", O_RDONLY, 0666);
7975 if (fd >= 0)
7976 # endif
7977 {
7978 int pagesize = getpagesize ();
7979 char *two_pages =
7980 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7981 flags, fd, 0);
7982 if (two_pages != (char *)(-1)
7983 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7984 fence = two_pages + pagesize;
7985 }
7986 #endif
7987 if (fence)
7988 {
7989 if (memchr (fence, 0, 0))
7990 result |= 1;
7991 strcpy (fence - 9, "12345678");
7992 if (memchr (fence - 9, 0, 79) != fence - 1)
7993 result |= 2;
7994 if (memchr (fence - 1, 0, 3) != fence - 1)
7995 result |= 4;
7996 }
7997 return result;
7998
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_run "$LINENO"; then :
8004 gl_cv_func_memchr_works=yes
8005 else
8006 gl_cv_func_memchr_works=no
8007 fi
8008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8009 conftest.$ac_objext conftest.beam conftest.$ac_ext
8010 fi
8011
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8014 $as_echo "$gl_cv_func_memchr_works" >&6; }
8015 if test "$gl_cv_func_memchr_works" != yes; then
8016 REPLACE_MEMCHR=1
8017 fi
8018 fi
8019
8020
8021 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8022 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8023 ac_have_decl=1
8024 else
8025 ac_have_decl=0
8026 fi
8027
8028 cat >>confdefs.h <<_ACEOF
8029 #define HAVE_DECL_MEMMEM $ac_have_decl
8030 _ACEOF
8031
8032
8033
8034
8035
8036
8037 for ac_func in memmem
8038 do :
8039 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8040 if test "x$ac_cv_func_memmem" = x""yes; then :
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_MEMMEM 1
8043 _ACEOF
8044
8045 fi
8046 done
8047
8048 if test $ac_cv_func_memmem = yes; then
8049 HAVE_MEMMEM=1
8050 else
8051 HAVE_MEMMEM=0
8052 fi
8053
8054 :
8055
8056
8057
8058
8059
8060 if test $ac_cv_have_decl_memmem = no; then
8061 HAVE_DECL_MEMMEM=0
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8064 $as_echo_n "checking whether memmem works... " >&6; }
8065 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 if test "$cross_compiling" = yes; then :
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071
8072 #ifdef __GNU_LIBRARY__
8073 #include <features.h>
8074 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8075 || __GLIBC_MINOR__ > 12)) \
8076 || (__GLIBC__ > 2)) \
8077 || defined __UCLIBC__
8078 Lucky user
8079 #endif
8080 #elif defined __CYGWIN__
8081 #include <cygwin/version.h>
8082 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8083 Lucky user
8084 #endif
8085 #else
8086 Lucky user
8087 #endif
8088
8089 _ACEOF
8090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8091 $EGREP "Lucky user" >/dev/null 2>&1; then :
8092 gl_cv_func_memmem_works_always="guessing yes"
8093 else
8094 gl_cv_func_memmem_works_always="guessing no"
8095 fi
8096 rm -f conftest*
8097
8098
8099 else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102
8103 #include <string.h> /* for memmem */
8104 #define P "_EF_BF_BD"
8105 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8106 #define NEEDLE P P P P P
8107
8108 int
8109 main ()
8110 {
8111
8112 int result = 0;
8113 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8114 result |= 1;
8115 /* Check for empty needle behavior. */
8116 {
8117 const char *haystack = "AAA";
8118 if (memmem (haystack, 3, NULL, 0) != haystack)
8119 result |= 2;
8120 }
8121 return result;
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_run "$LINENO"; then :
8128 gl_cv_func_memmem_works_always=yes
8129 else
8130 gl_cv_func_memmem_works_always=no
8131 fi
8132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8133 conftest.$ac_objext conftest.beam conftest.$ac_ext
8134 fi
8135
8136
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8139 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8140 case "$gl_cv_func_memmem_works_always" in
8141 *yes) ;;
8142 *)
8143 REPLACE_MEMMEM=1
8144 ;;
8145 esac
8146 fi
8147 :
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8150 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8151 if test "${ac_cv_header_stdbool_h+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156
8157 #include <stdbool.h>
8158 #ifndef bool
8159 "error: bool is not defined"
8160 #endif
8161 #ifndef false
8162 "error: false is not defined"
8163 #endif
8164 #if false
8165 "error: false is not 0"
8166 #endif
8167 #ifndef true
8168 "error: true is not defined"
8169 #endif
8170 #if true != 1
8171 "error: true is not 1"
8172 #endif
8173 #ifndef __bool_true_false_are_defined
8174 "error: __bool_true_false_are_defined is not defined"
8175 #endif
8176
8177 struct s { _Bool s: 1; _Bool t; } s;
8178
8179 char a[true == 1 ? 1 : -1];
8180 char b[false == 0 ? 1 : -1];
8181 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8182 char d[(bool) 0.5 == true ? 1 : -1];
8183 /* See body of main program for 'e'. */
8184 char f[(_Bool) 0.0 == false ? 1 : -1];
8185 char g[true];
8186 char h[sizeof (_Bool)];
8187 char i[sizeof s.t];
8188 enum { j = false, k = true, l = false * true, m = true * 256 };
8189 /* The following fails for
8190 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8191 _Bool n[m];
8192 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8193 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8194 /* Catch a bug in an HP-UX C compiler. See
8195 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8196 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8197 */
8198 _Bool q = true;
8199 _Bool *pq = &q;
8200
8201 int
8202 main ()
8203 {
8204
8205 bool e = &s;
8206 *pq |= q;
8207 *pq |= ! q;
8208 /* Refer to every declared value, to avoid compiler optimizations. */
8209 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8210 + !m + !n + !o + !p + !q + !pq);
8211
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 ac_cv_header_stdbool_h=yes
8218 else
8219 ac_cv_header_stdbool_h=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8224 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8225 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8226 if test "x$ac_cv_type__Bool" = x""yes; then :
8227
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE__BOOL 1
8230 _ACEOF
8231
8232
8233 fi
8234
8235
8236
8237 REPLACE_NULL=0;
8238 HAVE_WCHAR_T=1;
8239
8240
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8242 $as_echo_n "checking for wchar_t... " >&6; }
8243 if test "${gt_cv_c_wchar_t+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 #include <stddef.h>
8249 wchar_t foo = (wchar_t)'\0';
8250 int
8251 main ()
8252 {
8253
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"; then :
8259 gt_cv_c_wchar_t=yes
8260 else
8261 gt_cv_c_wchar_t=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8266 $as_echo "$gt_cv_c_wchar_t" >&6; }
8267 if test $gt_cv_c_wchar_t = yes; then
8268
8269 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8270
8271 fi
8272
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8274 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8275 if test "${ac_cv_c_restrict+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 ac_cv_c_restrict=no
8279 # The order here caters to the fact that C++ does not require restrict.
8280 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 typedef int * int_ptr;
8284 int foo (int_ptr $ac_kw ip) {
8285 return ip[0];
8286 }
8287 int
8288 main ()
8289 {
8290 int s[1];
8291 int * $ac_kw t = s;
8292 t[0] = 0;
8293 return foo(t)
8294 ;
8295 return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 ac_cv_c_restrict=$ac_kw
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 test "$ac_cv_c_restrict" != no && break
8303 done
8304
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8307 $as_echo "$ac_cv_c_restrict" >&6; }
8308
8309 case $ac_cv_c_restrict in
8310 restrict) ;;
8311 no) $as_echo "#define restrict /**/" >>confdefs.h
8312 ;;
8313 *) cat >>confdefs.h <<_ACEOF
8314 #define restrict $ac_cv_c_restrict
8315 _ACEOF
8316 ;;
8317 esac
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 if test $gl_cv_have_include_next = yes; then
8331 gl_cv_next_string_h='<'string.h'>'
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
8334 $as_echo_n "checking absolute name of <string.h>... " >&6; }
8335 if test "${gl_cv_next_string_h+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 #include <string.h>
8342
8343 _ACEOF
8344 case "$host_os" in
8345 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8346 *) gl_absname_cpp="$ac_cpp" ;;
8347 esac
8348
8349 case "$host_os" in
8350 mingw*)
8351 gl_dirsep_regex='[/\\]'
8352 ;;
8353 *)
8354 gl_dirsep_regex='\/'
8355 ;;
8356 esac
8357 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8358
8359 gl_header_literal_regex=`echo 'string.h' \
8360 | sed -e "$gl_make_literal_regex_sed"`
8361 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8362 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8363 s|^/[^/]|//&|
8364 p
8365 q
8366 }'
8367 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8368 sed -n "$gl_absolute_header_sed"`'"'
8369
8370
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
8373 $as_echo "$gl_cv_next_string_h" >&6; }
8374 fi
8375 NEXT_STRING_H=$gl_cv_next_string_h
8376
8377 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8379 gl_next_as_first_directive='<'string.h'>'
8380 else
8381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8382 gl_next_as_first_directive=$gl_cv_next_string_h
8383 fi
8384 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
8385
8386
8387
8388
8389
8390
8391 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
8392 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8394 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8395 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #include <string.h>
8401
8402 int
8403 main ()
8404 {
8405 #undef $gl_func
8406 (void) $gl_func;
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412 eval "$as_gl_Symbol=yes"
8413 else
8414 eval "$as_gl_Symbol=no"
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 fi
8418 eval ac_res=\$$as_gl_Symbol
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8420 $as_echo "$ac_res" >&6; }
8421 eval as_val=\$$as_gl_Symbol
8422 if test "x$as_val" = x""yes; then :
8423 cat >>confdefs.h <<_ACEOF
8424 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8425 _ACEOF
8426
8427 eval ac_cv_have_decl_$gl_func=yes
8428 fi
8429 done
8430
8431
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8434 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8435 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 gl_cv_header_wchar_h_correct_inline=yes
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441
8442 #define wcstod renamed_wcstod
8443 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8444 <wchar.h>.
8445 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8446 included before <wchar.h>. */
8447 #include <stddef.h>
8448 #include <stdio.h>
8449 #include <time.h>
8450 #include <wchar.h>
8451 extern int zero (void);
8452 int main () { return zero(); }
8453
8454 _ACEOF
8455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8456 (eval $ac_compile) 2>&5
8457 ac_status=$?
8458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8459 test $ac_status = 0; }; then
8460 mv conftest.$ac_objext conftest1.$ac_objext
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463
8464 #define wcstod renamed_wcstod
8465 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8466 <wchar.h>.
8467 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8468 included before <wchar.h>. */
8469 #include <stddef.h>
8470 #include <stdio.h>
8471 #include <time.h>
8472 #include <wchar.h>
8473 int zero (void) { return 0; }
8474
8475 _ACEOF
8476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8477 (eval $ac_compile) 2>&5
8478 ac_status=$?
8479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480 test $ac_status = 0; }; then
8481 mv conftest.$ac_objext conftest2.$ac_objext
8482 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8483 :
8484 else
8485 gl_cv_header_wchar_h_correct_inline=no
8486 fi
8487 fi
8488 fi
8489 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8490
8491 fi
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8493 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8494 if test $gl_cv_header_wchar_h_correct_inline = no; then
8495 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8496 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8497 C99 mode. You have four options:
8498 - Add the flag -fgnu89-inline to CC and reconfigure, or
8499 - Fix your include files, using parts of
8500 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8501 - Use a gcc version older than 4.3, or
8502 - Don't use the flags -std=c99 or -std=gnu99.
8503 Configuration aborted." "$LINENO" 5
8504 fi
8505
8506
8507
8508
8509
8510
8511
8512
8513 :
8514
8515
8516
8517
8518
8519 if test $ac_cv_header_features_h = yes; then
8520 HAVE_FEATURES_H=1
8521 else
8522 HAVE_FEATURES_H=0
8523 fi
8524
8525
8526
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8528 $as_echo_n "checking for wint_t... " >&6; }
8529 if test "${gt_cv_c_wint_t+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534
8535 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8536 <wchar.h>.
8537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8538 before <wchar.h>. */
8539 #include <stddef.h>
8540 #include <stdio.h>
8541 #include <time.h>
8542 #include <wchar.h>
8543 wint_t foo = (wchar_t)'\0';
8544 int
8545 main ()
8546 {
8547
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 if ac_fn_c_try_compile "$LINENO"; then :
8553 gt_cv_c_wint_t=yes
8554 else
8555 gt_cv_c_wint_t=no
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8560 $as_echo "$gt_cv_c_wint_t" >&6; }
8561 if test $gt_cv_c_wint_t = yes; then
8562
8563 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8564
8565 fi
8566
8567
8568 GNULIB_ISWBLANK=0;
8569 GNULIB_WCTYPE=0;
8570 GNULIB_ISWCTYPE=0;
8571 GNULIB_WCTRANS=0;
8572 GNULIB_TOWCTRANS=0;
8573 HAVE_ISWBLANK=1;
8574 HAVE_WCTYPE_T=1;
8575 HAVE_WCTRANS_T=1;
8576 REPLACE_ISWBLANK=0;
8577
8578
8579
8580
8581
8582
8583
8584 if false; then
8585 GL_COND_LIBTOOL_TRUE=
8586 GL_COND_LIBTOOL_FALSE='#'
8587 else
8588 GL_COND_LIBTOOL_TRUE='#'
8589 GL_COND_LIBTOOL_FALSE=
8590 fi
8591
8592 gl_cond_libtool=false
8593 gl_libdeps=
8594 gl_ltlibdeps=
8595 gl_m4_base='import/m4'
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605 gl_source_base='import'
8606
8607
8608 if test $ac_cv_func_alloca_works = no; then
8609 :
8610 fi
8611
8612 # Define an additional variable used in the Makefile substitution.
8613 if test $ac_cv_working_alloca_h = yes; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8615 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8616 if test "${gl_cv_rpl_alloca+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622
8623 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8624 Need own alloca
8625 #endif
8626
8627 _ACEOF
8628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8629 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8630 gl_cv_rpl_alloca=yes
8631 else
8632 gl_cv_rpl_alloca=no
8633 fi
8634 rm -f conftest*
8635
8636
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8639 $as_echo "$gl_cv_rpl_alloca" >&6; }
8640 if test $gl_cv_rpl_alloca = yes; then
8641
8642 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8643
8644 ALLOCA_H=alloca.h
8645 else
8646 ALLOCA_H=
8647 fi
8648 else
8649 ALLOCA_H=alloca.h
8650 fi
8651
8652 if test -n "$ALLOCA_H"; then
8653 GL_GENERATE_ALLOCA_H_TRUE=
8654 GL_GENERATE_ALLOCA_H_FALSE='#'
8655 else
8656 GL_GENERATE_ALLOCA_H_TRUE='#'
8657 GL_GENERATE_ALLOCA_H_FALSE=
8658 fi
8659
8660
8661
8662 if test "x$datarootdir" = x; then
8663 datarootdir='${datadir}'
8664
8665 fi
8666 if test "x$docdir" = x; then
8667 docdir='${datarootdir}/doc/${PACKAGE}'
8668
8669 fi
8670 if test "x$htmldir" = x; then
8671 htmldir='${docdir}'
8672
8673 fi
8674 if test "x$dvidir" = x; then
8675 dvidir='${docdir}'
8676
8677 fi
8678 if test "x$pdfdir" = x; then
8679 pdfdir='${docdir}'
8680
8681 fi
8682 if test "x$psdir" = x; then
8683 psdir='${docdir}'
8684
8685 fi
8686 if test "x$lispdir" = x; then
8687 lispdir='${datarootdir}/emacs/site-lisp'
8688
8689 fi
8690 if test "x$localedir" = x; then
8691 localedir='${datarootdir}/locale'
8692
8693 fi
8694
8695 pkglibexecdir='${libexecdir}/${PACKAGE}'
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 FNMATCH_H=
8706 gl_fnmatch_required_lowercase=`
8707 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
8708 `
8709 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8711 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8712 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 if test $gl_fnmatch_required = GNU; then
8716 gl_fnmatch_gnu_start=
8717 gl_fnmatch_gnu_end=
8718 else
8719 gl_fnmatch_gnu_start='#if 0'
8720 gl_fnmatch_gnu_end='#endif'
8721 fi
8722 if test "$cross_compiling" = yes; then :
8723 eval "$gl_fnmatch_cache_var=\"guessing no\""
8724 else
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #include <fnmatch.h>
8728 static int
8729 y (char const *pattern, char const *string, int flags)
8730 {
8731 return fnmatch (pattern, string, flags) == 0;
8732 }
8733 static int
8734 n (char const *pattern, char const *string, int flags)
8735 {
8736 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8737 }
8738
8739 int
8740 main ()
8741 {
8742 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8743 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8744 static char const A_1[] = { 'A' - 1, 0 };
8745 static char const A01[] = { 'A' + 1, 0 };
8746 static char const a_1[] = { 'a' - 1, 0 };
8747 static char const a01[] = { 'a' + 1, 0 };
8748 static char const bs_1[] = { '\\\\' - 1, 0 };
8749 static char const bs01[] = { '\\\\' + 1, 0 };
8750 int result = 0;
8751 if (!n ("a*", "", 0))
8752 return 1;
8753 if (!y ("a*", "abc", 0))
8754 return 1;
8755 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8756 return 1;
8757 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8758 return 2;
8759 if (!y ("a\\\\bc", "abc", 0))
8760 return 3;
8761 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8762 return 3;
8763 if (!y ("*x", ".x", 0))
8764 return 4;
8765 if (!n ("*x", ".x", FNM_PERIOD))
8766 return 4;
8767 if (!y (Apat, "\\\\", 0))
8768 return 5;
8769 if (!y (Apat, "A", 0))
8770 return 5;
8771 if (!y (apat, "\\\\", 0))
8772 return 5;
8773 if (!y (apat, "a", 0))
8774 return 5;
8775 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8776 return 5;
8777 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8778 return 5;
8779 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8780 return 5;
8781 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8782 return 5;
8783 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8784 return 5;
8785 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8786 return 5;
8787 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8788 return 5;
8789 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8790 return 5;
8791 $gl_fnmatch_gnu_start
8792 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8793 result |= 8;
8794 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8795 result |= 16;
8796 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8797 result |= 32;
8798 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8799 result |= 64;
8800 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8801 result |= 64;
8802 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8803 result |= 64;
8804 $gl_fnmatch_gnu_end
8805 return result;
8806
8807 ;
8808 return 0;
8809 }
8810 _ACEOF
8811 if ac_fn_c_try_run "$LINENO"; then :
8812 eval "$gl_fnmatch_cache_var=yes"
8813 else
8814 eval "$gl_fnmatch_cache_var=no"
8815 fi
8816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8817 conftest.$ac_objext conftest.beam conftest.$ac_ext
8818 fi
8819
8820
8821 fi
8822 eval ac_res=\$$gl_fnmatch_cache_var
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8824 $as_echo "$ac_res" >&6; }
8825 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8826 if test "$gl_fnmatch_result" = yes; then
8827 rm -f "$gl_source_base/fnmatch.h"
8828 else
8829 FNMATCH_H=fnmatch.h
8830 fi
8831
8832 if test -n "$FNMATCH_H"; then
8833 GL_GENERATE_FNMATCH_H_TRUE=
8834 GL_GENERATE_FNMATCH_H_FALSE='#'
8835 else
8836 GL_GENERATE_FNMATCH_H_TRUE='#'
8837 GL_GENERATE_FNMATCH_H_FALSE=
8838 fi
8839
8840
8841 if test -n "$FNMATCH_H"; then
8842
8843
8844
8845
8846
8847
8848
8849
8850 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8851
8852
8853
8854 cat >>confdefs.h <<_ACEOF
8855 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8856 _ACEOF
8857
8858
8859 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8860 "
8861 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8862 ac_have_decl=1
8863 else
8864 ac_have_decl=0
8865 fi
8866
8867 cat >>confdefs.h <<_ACEOF
8868 #define HAVE_DECL_ISBLANK $ac_have_decl
8869 _ACEOF
8870
8871
8872 :
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900 :
8901
8902
8903
8904
8905
8906
8907 fi
8908
8909
8910
8911
8912
8913 if test -n "$FNMATCH_H"; then
8914
8915
8916
8917
8918
8919
8920
8921
8922 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8923
8924
8925
8926 cat >>confdefs.h <<_ACEOF
8927 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8928 _ACEOF
8929
8930
8931 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8932 "
8933 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8934 ac_have_decl=1
8935 else
8936 ac_have_decl=0
8937 fi
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_DECL_ISBLANK $ac_have_decl
8941 _ACEOF
8942
8943
8944 :
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972 :
8973
8974
8975
8976
8977
8978
8979 fi
8980
8981
8982
8983
8984
8985 PRIPTR_PREFIX=
8986 if test -n "$STDINT_H"; then
8987 PRIPTR_PREFIX='"l"'
8988 else
8989 for glpfx in '' l ll I64; do
8990 case $glpfx in
8991 '') gltype1='int';;
8992 l) gltype1='long int';;
8993 ll) gltype1='long long int';;
8994 I64) gltype1='__int64';;
8995 esac
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 #include <stdint.h>
8999 extern intptr_t foo;
9000 extern $gltype1 foo;
9001 int
9002 main ()
9003 {
9004
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 PRIPTR_PREFIX='"'$glpfx'"'
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 test -n "$PRIPTR_PREFIX" && break
9014 done
9015 fi
9016
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
9020 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
9021 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 /* Work also in C++ mode. */
9027 #define __STDC_LIMIT_MACROS 1
9028
9029 /* Work if build is not clean. */
9030 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9031
9032 #include <limits.h>
9033 #if HAVE_STDINT_H
9034 #include <stdint.h>
9035 #endif
9036
9037 #if defined INT32_MAX && defined INTMAX_MAX
9038 #define CONDITION (INT32_MAX < INTMAX_MAX)
9039 #elif HAVE_LONG_LONG_INT
9040 #define CONDITION (sizeof (int) < sizeof (long long int))
9041 #else
9042 #define CONDITION 0
9043 #endif
9044 int test[CONDITION ? 1 : -1];
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
9055 else
9056 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
9061 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
9062 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
9063 INT32_MAX_LT_INTMAX_MAX=1;
9064 else
9065 INT32_MAX_LT_INTMAX_MAX=0;
9066 fi
9067
9068
9069 if test $APPLE_UNIVERSAL_BUILD = 0; then
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
9072 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
9073 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 /* Work also in C++ mode. */
9079 #define __STDC_LIMIT_MACROS 1
9080
9081 /* Work if build is not clean. */
9082 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9083
9084 #include <limits.h>
9085 #if HAVE_STDINT_H
9086 #include <stdint.h>
9087 #endif
9088
9089 #if defined INT64_MAX
9090 #define CONDITION (INT64_MAX == LONG_MAX)
9091 #elif HAVE_LONG_LONG_INT
9092 #define CONDITION (sizeof (long long int) == sizeof (long int))
9093 #else
9094 #define CONDITION 0
9095 #endif
9096 int test[CONDITION ? 1 : -1];
9097 int
9098 main ()
9099 {
9100
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_compile "$LINENO"; then :
9106 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
9107 else
9108 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
9113 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
9114 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
9115 INT64_MAX_EQ_LONG_MAX=1;
9116 else
9117 INT64_MAX_EQ_LONG_MAX=0;
9118 fi
9119
9120
9121 else
9122 INT64_MAX_EQ_LONG_MAX=-1
9123 fi
9124
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
9126 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
9127 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 /* Work also in C++ mode. */
9133 #define __STDC_LIMIT_MACROS 1
9134
9135 /* Work if build is not clean. */
9136 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9137
9138 #include <limits.h>
9139 #if HAVE_STDINT_H
9140 #include <stdint.h>
9141 #endif
9142
9143 #if defined UINT32_MAX && defined UINTMAX_MAX
9144 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
9145 #elif HAVE_LONG_LONG_INT
9146 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
9147 #else
9148 #define CONDITION 0
9149 #endif
9150 int test[CONDITION ? 1 : -1];
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
9161 else
9162 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
9167 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
9168 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
9169 UINT32_MAX_LT_UINTMAX_MAX=1;
9170 else
9171 UINT32_MAX_LT_UINTMAX_MAX=0;
9172 fi
9173
9174
9175 if test $APPLE_UNIVERSAL_BUILD = 0; then
9176
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
9178 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
9179 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 /* Work also in C++ mode. */
9185 #define __STDC_LIMIT_MACROS 1
9186
9187 /* Work if build is not clean. */
9188 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9189
9190 #include <limits.h>
9191 #if HAVE_STDINT_H
9192 #include <stdint.h>
9193 #endif
9194
9195 #if defined UINT64_MAX
9196 #define CONDITION (UINT64_MAX == ULONG_MAX)
9197 #elif HAVE_LONG_LONG_INT
9198 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
9199 #else
9200 #define CONDITION 0
9201 #endif
9202 int test[CONDITION ? 1 : -1];
9203 int
9204 main ()
9205 {
9206
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"; then :
9212 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
9213 else
9214 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
9219 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
9220 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
9221 UINT64_MAX_EQ_ULONG_MAX=1;
9222 else
9223 UINT64_MAX_EQ_ULONG_MAX=0;
9224 fi
9225
9226
9227 else
9228 UINT64_MAX_EQ_ULONG_MAX=-1
9229 fi
9230
9231
9232
9233
9234
9235
9236
9237 :
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258 :
9259
9260
9261
9262
9263
9264
9265 :
9266
9267
9268
9269
9270
9271 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9272
9273
9274
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9276 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9277 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280
9281 case "$host_os" in
9282 # Guess no on AIX and OSF/1.
9283 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9284 # Guess yes otherwise.
9285 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9286 esac
9287 if test $LOCALE_JA != none; then
9288 if test "$cross_compiling" = yes; then :
9289 :
9290 else
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293
9294 #include <locale.h>
9295 #include <string.h>
9296 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9297 <wchar.h>.
9298 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9299 included before <wchar.h>. */
9300 #include <stddef.h>
9301 #include <stdio.h>
9302 #include <time.h>
9303 #include <wchar.h>
9304 int main ()
9305 {
9306 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9307 {
9308 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9309 mbstate_t state;
9310 wchar_t wc;
9311
9312 memset (&state, '\0', sizeof (mbstate_t));
9313 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9314 if (mbsinit (&state))
9315 return 1;
9316 }
9317 return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_run "$LINENO"; then :
9321 gl_cv_func_mbrtowc_incomplete_state=yes
9322 else
9323 gl_cv_func_mbrtowc_incomplete_state=no
9324 fi
9325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9326 conftest.$ac_objext conftest.beam conftest.$ac_ext
9327 fi
9328
9329 fi
9330
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9333 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9334
9335
9336
9337
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9339 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9340 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343
9344 case "$host_os" in
9345 # Guess no on Solaris 8.
9346 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9347 # Guess yes otherwise.
9348 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9349 esac
9350 if test $LOCALE_ZH_CN != none; then
9351 if test "$cross_compiling" = yes; then :
9352 :
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356
9357 #include <locale.h>
9358 #include <stdlib.h>
9359 #include <string.h>
9360 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9361 <wchar.h>.
9362 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9363 included before <wchar.h>. */
9364 #include <stddef.h>
9365 #include <stdio.h>
9366 #include <time.h>
9367 #include <wchar.h>
9368 int main ()
9369 {
9370 /* This fails on Solaris 8:
9371 mbrtowc returns 2, and sets wc to 0x00F0.
9372 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9373 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9374 {
9375 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9376 mbstate_t state;
9377 wchar_t wc;
9378
9379 memset (&state, '\0', sizeof (mbstate_t));
9380 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9381 && mbtowc (&wc, input + 3, 6) == 4)
9382 return 1;
9383 }
9384 return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_run "$LINENO"; then :
9388 gl_cv_func_mbrtowc_sanitycheck=yes
9389 else
9390 gl_cv_func_mbrtowc_sanitycheck=no
9391 fi
9392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9393 conftest.$ac_objext conftest.beam conftest.$ac_ext
9394 fi
9395
9396 fi
9397
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9400 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9401
9402 REPLACE_MBSTATE_T=0
9403 case "$gl_cv_func_mbrtowc_incomplete_state" in
9404 *yes) ;;
9405 *) REPLACE_MBSTATE_T=1 ;;
9406 esac
9407 case "$gl_cv_func_mbrtowc_sanitycheck" in
9408 *yes) ;;
9409 *) REPLACE_MBSTATE_T=1 ;;
9410 esac
9411 else
9412 REPLACE_MBSTATE_T=1
9413 fi
9414
9415
9416
9417 :
9418
9419
9420
9421
9422
9423 if test $ac_cv_func_mbrtowc = no; then
9424 HAVE_MBRTOWC=0
9425 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9426 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9427 <wchar.h>.
9428 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9429 included before <wchar.h>. */
9430 #include <stddef.h>
9431 #include <stdio.h>
9432 #include <time.h>
9433 #include <wchar.h>
9434
9435 "
9436 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9437 ac_have_decl=1
9438 else
9439 ac_have_decl=0
9440 fi
9441
9442 cat >>confdefs.h <<_ACEOF
9443 #define HAVE_DECL_MBRTOWC $ac_have_decl
9444 _ACEOF
9445
9446 if test $ac_cv_have_decl_mbrtowc = yes; then
9447 REPLACE_MBRTOWC=1
9448 fi
9449 else
9450 if test $REPLACE_MBSTATE_T = 1; then
9451 REPLACE_MBRTOWC=1
9452 else
9453
9454
9455
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9457 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9458 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461
9462 case "$host_os" in
9463 # Guess no on Solaris.
9464 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9465 # Guess yes otherwise.
9466 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9467 esac
9468 if test $LOCALE_FR_UTF8 != none; then
9469 if test "$cross_compiling" = yes; then :
9470 :
9471 else
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474
9475 #include <locale.h>
9476 #include <stdlib.h>
9477 #include <string.h>
9478 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9479 <wchar.h>.
9480 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9481 included before <wchar.h>. */
9482 #include <stddef.h>
9483 #include <stdio.h>
9484 #include <time.h>
9485 #include <wchar.h>
9486 int main ()
9487 {
9488 int result = 0;
9489
9490 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9491 {
9492 char input[] = "\303\237er";
9493 mbstate_t state;
9494 wchar_t wc;
9495 size_t ret;
9496
9497 memset (&state, '\0', sizeof (mbstate_t));
9498 wc = (wchar_t) 0xBADFACE;
9499 ret = mbrtowc (&wc, input, 5, &state);
9500 if (ret != 2)
9501 result |= 1;
9502 if (!mbsinit (&state))
9503 result |= 2;
9504
9505 memset (&state, '\0', sizeof (mbstate_t));
9506 ret = mbrtowc (NULL, input, 5, &state);
9507 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9508 result |= 4;
9509 if (!mbsinit (&state))
9510 result |= 8;
9511 }
9512 return result;
9513 }
9514 _ACEOF
9515 if ac_fn_c_try_run "$LINENO"; then :
9516 gl_cv_func_mbrtowc_null_arg1=yes
9517 else
9518 gl_cv_func_mbrtowc_null_arg1=no
9519 fi
9520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9521 conftest.$ac_objext conftest.beam conftest.$ac_ext
9522 fi
9523
9524 fi
9525
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9528 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
9529
9530
9531
9532
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9534 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9535 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538
9539 case "$host_os" in
9540 # Guess no on OSF/1.
9541 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9542 # Guess yes otherwise.
9543 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9544 esac
9545 if test $LOCALE_FR_UTF8 != none; then
9546 if test "$cross_compiling" = yes; then :
9547 :
9548 else
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551
9552 #include <locale.h>
9553 #include <string.h>
9554 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9555 <wchar.h>.
9556 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9557 included before <wchar.h>. */
9558 #include <stddef.h>
9559 #include <stdio.h>
9560 #include <time.h>
9561 #include <wchar.h>
9562 int main ()
9563 {
9564 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9565 {
9566 mbstate_t state;
9567 wchar_t wc;
9568 int ret;
9569
9570 memset (&state, '\0', sizeof (mbstate_t));
9571 wc = (wchar_t) 0xBADFACE;
9572 mbrtowc (&wc, NULL, 5, &state);
9573 /* Check that wc was not modified. */
9574 if (wc != (wchar_t) 0xBADFACE)
9575 return 1;
9576 }
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_run "$LINENO"; then :
9581 gl_cv_func_mbrtowc_null_arg2=yes
9582 else
9583 gl_cv_func_mbrtowc_null_arg2=no
9584 fi
9585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9587 fi
9588
9589 fi
9590
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9593 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
9594
9595
9596
9597
9598
9599
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9601 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9602 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605
9606 case "$host_os" in
9607 # Guess no on HP-UX, Solaris, native Windows.
9608 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9609 # Guess yes otherwise.
9610 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9611 esac
9612 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9613 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9614 if test "$cross_compiling" = yes; then :
9615 :
9616 else
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619
9620 #include <locale.h>
9621 #include <string.h>
9622 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9623 <wchar.h>.
9624 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9625 included before <wchar.h>. */
9626 #include <stddef.h>
9627 #include <stdio.h>
9628 #include <time.h>
9629 #include <wchar.h>
9630 int main ()
9631 {
9632 int result = 0;
9633 int found_some_locale = 0;
9634 /* This fails on Solaris. */
9635 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9636 {
9637 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9638 mbstate_t state;
9639 wchar_t wc;
9640
9641 memset (&state, '\0', sizeof (mbstate_t));
9642 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9643 {
9644 input[1] = '\0';
9645 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9646 result |= 1;
9647 }
9648 found_some_locale = 1;
9649 }
9650 /* This fails on HP-UX 11.11. */
9651 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9652 {
9653 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9654 mbstate_t state;
9655 wchar_t wc;
9656
9657 memset (&state, '\0', sizeof (mbstate_t));
9658 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9659 {
9660 input[1] = '\0';
9661 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9662 result |= 2;
9663 }
9664 found_some_locale = 1;
9665 }
9666 /* This fails on native Windows. */
9667 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9668 {
9669 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9670 mbstate_t state;
9671 wchar_t wc;
9672
9673 memset (&state, '\0', sizeof (mbstate_t));
9674 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9675 {
9676 input[3] = '\0';
9677 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9678 result |= 4;
9679 }
9680 found_some_locale = 1;
9681 }
9682 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9683 {
9684 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9685 mbstate_t state;
9686 wchar_t wc;
9687
9688 memset (&state, '\0', sizeof (mbstate_t));
9689 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9690 {
9691 input[3] = '\0';
9692 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9693 result |= 8;
9694 }
9695 found_some_locale = 1;
9696 }
9697 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9698 {
9699 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9700 mbstate_t state;
9701 wchar_t wc;
9702
9703 memset (&state, '\0', sizeof (mbstate_t));
9704 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9705 {
9706 input[3] = '\0';
9707 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9708 result |= 16;
9709 }
9710 found_some_locale = 1;
9711 }
9712 return (found_some_locale ? result : 77);
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_run "$LINENO"; then :
9716 gl_cv_func_mbrtowc_retval=yes
9717 else
9718 if test $? != 77; then
9719 gl_cv_func_mbrtowc_retval=no
9720 fi
9721
9722 fi
9723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9724 conftest.$ac_objext conftest.beam conftest.$ac_ext
9725 fi
9726
9727 fi
9728
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9731 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
9732
9733
9734
9735
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9737 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9738 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741
9742 case "$host_os" in
9743 # Guess no on Solaris 8 and 9.
9744 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9745 # Guess yes otherwise.
9746 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9747 esac
9748 if test $LOCALE_ZH_CN != none; then
9749 if test "$cross_compiling" = yes; then :
9750 :
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754
9755 #include <locale.h>
9756 #include <string.h>
9757 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9758 <wchar.h>.
9759 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9760 included before <wchar.h>. */
9761 #include <stddef.h>
9762 #include <stdio.h>
9763 #include <time.h>
9764 #include <wchar.h>
9765 int main ()
9766 {
9767 /* This fails on Solaris 8 and 9. */
9768 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9769 {
9770 mbstate_t state;
9771 wchar_t wc;
9772
9773 memset (&state, '\0', sizeof (mbstate_t));
9774 if (mbrtowc (&wc, "", 1, &state) != 0)
9775 return 1;
9776 }
9777 return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_run "$LINENO"; then :
9781 gl_cv_func_mbrtowc_nul_retval=yes
9782 else
9783 gl_cv_func_mbrtowc_nul_retval=no
9784 fi
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786 conftest.$ac_objext conftest.beam conftest.$ac_ext
9787 fi
9788
9789 fi
9790
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9793 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9794
9795 case "$gl_cv_func_mbrtowc_null_arg1" in
9796 *yes) ;;
9797 *)
9798 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9799
9800 REPLACE_MBRTOWC=1
9801 ;;
9802 esac
9803 case "$gl_cv_func_mbrtowc_null_arg2" in
9804 *yes) ;;
9805 *)
9806 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9807
9808 REPLACE_MBRTOWC=1
9809 ;;
9810 esac
9811 case "$gl_cv_func_mbrtowc_retval" in
9812 *yes) ;;
9813 *)
9814 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9815
9816 REPLACE_MBRTOWC=1
9817 ;;
9818 esac
9819 case "$gl_cv_func_mbrtowc_nul_retval" in
9820 *yes) ;;
9821 *)
9822 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9823
9824 REPLACE_MBRTOWC=1
9825 ;;
9826 esac
9827 fi
9828 fi
9829
9830 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
9831
9832
9833
9834
9835
9836
9837
9838
9839 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9840
9841
9842 :
9843
9844 fi
9845
9846
9847
9848
9849
9850 GNULIB_MBRTOWC=1
9851
9852
9853
9854
9855
9856 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870 :
9871
9872
9873
9874
9875
9876
9877 :
9878
9879
9880
9881
9882
9883 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9884
9885
9886
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9888 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9889 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892
9893 case "$host_os" in
9894 # Guess no on AIX and OSF/1.
9895 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9896 # Guess yes otherwise.
9897 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9898 esac
9899 if test $LOCALE_JA != none; then
9900 if test "$cross_compiling" = yes; then :
9901 :
9902 else
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905
9906 #include <locale.h>
9907 #include <string.h>
9908 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9909 <wchar.h>.
9910 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9911 included before <wchar.h>. */
9912 #include <stddef.h>
9913 #include <stdio.h>
9914 #include <time.h>
9915 #include <wchar.h>
9916 int main ()
9917 {
9918 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9919 {
9920 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9921 mbstate_t state;
9922 wchar_t wc;
9923
9924 memset (&state, '\0', sizeof (mbstate_t));
9925 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9926 if (mbsinit (&state))
9927 return 1;
9928 }
9929 return 0;
9930 }
9931 _ACEOF
9932 if ac_fn_c_try_run "$LINENO"; then :
9933 gl_cv_func_mbrtowc_incomplete_state=yes
9934 else
9935 gl_cv_func_mbrtowc_incomplete_state=no
9936 fi
9937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9938 conftest.$ac_objext conftest.beam conftest.$ac_ext
9939 fi
9940
9941 fi
9942
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9945 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9946
9947
9948
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9951 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9952 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955
9956 case "$host_os" in
9957 # Guess no on Solaris 8.
9958 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9959 # Guess yes otherwise.
9960 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9961 esac
9962 if test $LOCALE_ZH_CN != none; then
9963 if test "$cross_compiling" = yes; then :
9964 :
9965 else
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968
9969 #include <locale.h>
9970 #include <stdlib.h>
9971 #include <string.h>
9972 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9973 <wchar.h>.
9974 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9975 included before <wchar.h>. */
9976 #include <stddef.h>
9977 #include <stdio.h>
9978 #include <time.h>
9979 #include <wchar.h>
9980 int main ()
9981 {
9982 /* This fails on Solaris 8:
9983 mbrtowc returns 2, and sets wc to 0x00F0.
9984 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9985 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9986 {
9987 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9988 mbstate_t state;
9989 wchar_t wc;
9990
9991 memset (&state, '\0', sizeof (mbstate_t));
9992 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9993 && mbtowc (&wc, input + 3, 6) == 4)
9994 return 1;
9995 }
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_run "$LINENO"; then :
10000 gl_cv_func_mbrtowc_sanitycheck=yes
10001 else
10002 gl_cv_func_mbrtowc_sanitycheck=no
10003 fi
10004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10005 conftest.$ac_objext conftest.beam conftest.$ac_ext
10006 fi
10007
10008 fi
10009
10010 fi
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
10012 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
10013
10014 REPLACE_MBSTATE_T=0
10015 case "$gl_cv_func_mbrtowc_incomplete_state" in
10016 *yes) ;;
10017 *) REPLACE_MBSTATE_T=1 ;;
10018 esac
10019 case "$gl_cv_func_mbrtowc_sanitycheck" in
10020 *yes) ;;
10021 *) REPLACE_MBSTATE_T=1 ;;
10022 esac
10023 else
10024 REPLACE_MBSTATE_T=1
10025 fi
10026
10027
10028
10029 :
10030
10031
10032
10033
10034
10035 if test $ac_cv_func_mbsinit = no; then
10036 HAVE_MBSINIT=0
10037 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
10038 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10039 <wchar.h>.
10040 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10041 included before <wchar.h>. */
10042 #include <stddef.h>
10043 #include <stdio.h>
10044 #include <time.h>
10045 #include <wchar.h>
10046
10047 "
10048 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
10049 ac_have_decl=1
10050 else
10051 ac_have_decl=0
10052 fi
10053
10054 cat >>confdefs.h <<_ACEOF
10055 #define HAVE_DECL_MBSINIT $ac_have_decl
10056 _ACEOF
10057
10058 if test $ac_cv_have_decl_mbsinit = yes; then
10059 REPLACE_MBSINIT=1
10060 fi
10061 else
10062 if test $REPLACE_MBSTATE_T = 1; then
10063 REPLACE_MBSINIT=1
10064 else
10065 case "$host_os" in
10066 mingw*) REPLACE_MBSINIT=1 ;;
10067 esac
10068 fi
10069 fi
10070
10071 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
10072
10073
10074
10075
10076
10077
10078
10079
10080 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
10081
10082
10083 :
10084
10085 fi
10086
10087
10088
10089
10090
10091 GNULIB_MBSINIT=1
10092
10093
10094
10095
10096
10097 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110 :
10111
10112
10113
10114
10115
10116
10117 :
10118
10119
10120
10121
10122
10123 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
10124
10125
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
10128 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
10129 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132
10133 case "$host_os" in
10134 # Guess no on AIX and OSF/1.
10135 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
10136 # Guess yes otherwise.
10137 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
10138 esac
10139 if test $LOCALE_JA != none; then
10140 if test "$cross_compiling" = yes; then :
10141 :
10142 else
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145
10146 #include <locale.h>
10147 #include <string.h>
10148 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10149 <wchar.h>.
10150 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10151 included before <wchar.h>. */
10152 #include <stddef.h>
10153 #include <stdio.h>
10154 #include <time.h>
10155 #include <wchar.h>
10156 int main ()
10157 {
10158 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10159 {
10160 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
10161 mbstate_t state;
10162 wchar_t wc;
10163
10164 memset (&state, '\0', sizeof (mbstate_t));
10165 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
10166 if (mbsinit (&state))
10167 return 1;
10168 }
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_run "$LINENO"; then :
10173 gl_cv_func_mbrtowc_incomplete_state=yes
10174 else
10175 gl_cv_func_mbrtowc_incomplete_state=no
10176 fi
10177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10178 conftest.$ac_objext conftest.beam conftest.$ac_ext
10179 fi
10180
10181 fi
10182
10183 fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
10185 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
10186
10187
10188
10189
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
10191 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
10192 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195
10196 case "$host_os" in
10197 # Guess no on Solaris 8.
10198 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
10199 # Guess yes otherwise.
10200 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
10201 esac
10202 if test $LOCALE_ZH_CN != none; then
10203 if test "$cross_compiling" = yes; then :
10204 :
10205 else
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 #include <locale.h>
10210 #include <stdlib.h>
10211 #include <string.h>
10212 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10213 <wchar.h>.
10214 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10215 included before <wchar.h>. */
10216 #include <stddef.h>
10217 #include <stdio.h>
10218 #include <time.h>
10219 #include <wchar.h>
10220 int main ()
10221 {
10222 /* This fails on Solaris 8:
10223 mbrtowc returns 2, and sets wc to 0x00F0.
10224 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
10225 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10226 {
10227 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
10228 mbstate_t state;
10229 wchar_t wc;
10230
10231 memset (&state, '\0', sizeof (mbstate_t));
10232 if (mbrtowc (&wc, input + 3, 6, &state) != 4
10233 && mbtowc (&wc, input + 3, 6) == 4)
10234 return 1;
10235 }
10236 return 0;
10237 }
10238 _ACEOF
10239 if ac_fn_c_try_run "$LINENO"; then :
10240 gl_cv_func_mbrtowc_sanitycheck=yes
10241 else
10242 gl_cv_func_mbrtowc_sanitycheck=no
10243 fi
10244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10245 conftest.$ac_objext conftest.beam conftest.$ac_ext
10246 fi
10247
10248 fi
10249
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
10252 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
10253
10254 REPLACE_MBSTATE_T=0
10255 case "$gl_cv_func_mbrtowc_incomplete_state" in
10256 *yes) ;;
10257 *) REPLACE_MBSTATE_T=1 ;;
10258 esac
10259 case "$gl_cv_func_mbrtowc_sanitycheck" in
10260 *yes) ;;
10261 *) REPLACE_MBSTATE_T=1 ;;
10262 esac
10263 else
10264 REPLACE_MBSTATE_T=1
10265 fi
10266
10267
10268
10269 :
10270
10271
10272
10273
10274
10275 if test $ac_cv_func_mbsrtowcs = no; then
10276 HAVE_MBSRTOWCS=0
10277 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
10278 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10279 <wchar.h>.
10280 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10281 included before <wchar.h>. */
10282 #include <stddef.h>
10283 #include <stdio.h>
10284 #include <time.h>
10285 #include <wchar.h>
10286
10287 "
10288 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
10289 ac_have_decl=1
10290 else
10291 ac_have_decl=0
10292 fi
10293
10294 cat >>confdefs.h <<_ACEOF
10295 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
10296 _ACEOF
10297
10298 if test $ac_cv_have_decl_mbsrtowcs = yes; then
10299 REPLACE_MBSRTOWCS=1
10300 fi
10301 else
10302 if test $REPLACE_MBSTATE_T = 1; then
10303 REPLACE_MBSRTOWCS=1
10304 else
10305
10306
10307
10308
10309
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
10312 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
10313 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316
10317 case "$host_os" in
10318 # Guess no on HP-UX, Solaris, mingw.
10319 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
10320 # Guess yes otherwise.
10321 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
10322 esac
10323 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
10324 if test "$cross_compiling" = yes; then :
10325 :
10326 else
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329
10330 #include <locale.h>
10331 #include <string.h>
10332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10333 <wchar.h>.
10334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10335 included before <wchar.h>. */
10336 #include <stddef.h>
10337 #include <stdio.h>
10338 #include <time.h>
10339 #include <wchar.h>
10340 int main ()
10341 {
10342 int result = 0;
10343 /* Test whether the function supports a NULL destination argument.
10344 This fails on native Windows. */
10345 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
10346 {
10347 const char input[] = "\337er";
10348 const char *src = input;
10349 mbstate_t state;
10350
10351 memset (&state, '\0', sizeof (mbstate_t));
10352 if (mbsrtowcs (NULL, &src, 1, &state) != 3
10353 || src != input)
10354 result |= 1;
10355 }
10356 /* Test whether the function works when started with a conversion state
10357 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
10358 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
10359 {
10360 const char input[] = "B\303\274\303\237er";
10361 mbstate_t state;
10362
10363 memset (&state, '\0', sizeof (mbstate_t));
10364 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10365 if (!mbsinit (&state))
10366 {
10367 const char *src = input + 2;
10368 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10369 result |= 2;
10370 }
10371 }
10372 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10373 {
10374 const char input[] = "<\306\374\313\334\270\354>";
10375 mbstate_t state;
10376
10377 memset (&state, '\0', sizeof (mbstate_t));
10378 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
10379 if (!mbsinit (&state))
10380 {
10381 const char *src = input + 4;
10382 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
10383 result |= 4;
10384 }
10385 }
10386 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10387 {
10388 const char input[] = "B\250\271\201\060\211\070er";
10389 mbstate_t state;
10390
10391 memset (&state, '\0', sizeof (mbstate_t));
10392 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10393 if (!mbsinit (&state))
10394 {
10395 const char *src = input + 2;
10396 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10397 result |= 8;
10398 }
10399 }
10400 return result;
10401 }
10402 _ACEOF
10403 if ac_fn_c_try_run "$LINENO"; then :
10404 gl_cv_func_mbsrtowcs_works=yes
10405 else
10406 gl_cv_func_mbsrtowcs_works=no
10407 fi
10408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10409 conftest.$ac_objext conftest.beam conftest.$ac_ext
10410 fi
10411
10412 fi
10413
10414 fi
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10416 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10417
10418 case "$gl_cv_func_mbsrtowcs_works" in
10419 *yes) ;;
10420 *) REPLACE_MBSRTOWCS=1 ;;
10421 esac
10422 fi
10423 fi
10424
10425 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
10426
10427
10428
10429
10430
10431
10432
10433
10434 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10445
10446
10447 :
10448
10449 fi
10450
10451
10452
10453
10454
10455 GNULIB_MBSRTOWCS=1
10456
10457
10458
10459
10460
10461 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
10462
10463
10464
10465
10466 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
10467
10468
10469
10470
10471
10472
10473
10474
10475 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10476
10477
10478 for ac_header in bp-sym.h
10479 do :
10480 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10481 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_BP_SYM_H 1
10484 _ACEOF
10485
10486 fi
10487
10488 done
10489
10490
10491 fi
10492
10493
10494
10495
10496
10497 GNULIB_MEMCHR=1
10498
10499
10500
10501
10502
10503 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10504
10505
10506
10507
10508
10509 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10511 $as_echo_n "checking whether memmem works in linear time... " >&6; }
10512 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 if test "$cross_compiling" = yes; then :
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518
10519 #include <features.h>
10520 #ifdef __GNU_LIBRARY__
10521 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10522 && !defined __UCLIBC__
10523 Lucky user
10524 #endif
10525 #endif
10526 #ifdef __CYGWIN__
10527 #include <cygwin/version.h>
10528 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10529 Lucky user
10530 #endif
10531 #endif
10532
10533 _ACEOF
10534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10535 $EGREP "Lucky user" >/dev/null 2>&1; then :
10536 gl_cv_func_memmem_works_fast="guessing yes"
10537 else
10538 gl_cv_func_memmem_works_fast="guessing no"
10539 fi
10540 rm -f conftest*
10541
10542
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546
10547 #include <signal.h> /* for signal */
10548 #include <string.h> /* for memmem */
10549 #include <stdlib.h> /* for malloc */
10550 #include <unistd.h> /* for alarm */
10551 static void quit (int sig) { exit (sig + 128); }
10552
10553 int
10554 main ()
10555 {
10556
10557 int result = 0;
10558 size_t m = 1000000;
10559 char *haystack = (char *) malloc (2 * m + 1);
10560 char *needle = (char *) malloc (m + 1);
10561 /* Failure to compile this test due to missing alarm is okay,
10562 since all such platforms (mingw) also lack memmem. */
10563 signal (SIGALRM, quit);
10564 alarm (5);
10565 /* Check for quadratic performance. */
10566 if (haystack && needle)
10567 {
10568 memset (haystack, 'A', 2 * m);
10569 haystack[2 * m] = 'B';
10570 memset (needle, 'A', m);
10571 needle[m] = 'B';
10572 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10573 result |= 1;
10574 }
10575 return result;
10576
10577 ;
10578 return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_run "$LINENO"; then :
10582 gl_cv_func_memmem_works_fast=yes
10583 else
10584 gl_cv_func_memmem_works_fast=no
10585 fi
10586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10587 conftest.$ac_objext conftest.beam conftest.$ac_ext
10588 fi
10589
10590
10591 fi
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10593 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
10594 case "$gl_cv_func_memmem_works_fast" in
10595 *yes) ;;
10596 *)
10597 REPLACE_MEMMEM=1
10598 ;;
10599 esac
10600 fi
10601
10602 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10603
10604
10605
10606
10607
10608
10609
10610
10611 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10612
10613 fi
10614
10615
10616
10617
10618 for ac_func in memmem
10619 do :
10620 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10621 if test "x$ac_cv_func_memmem" = x""yes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_MEMMEM 1
10624 _ACEOF
10625
10626 fi
10627 done
10628
10629 if test $ac_cv_func_memmem = yes; then
10630 HAVE_MEMMEM=1
10631 else
10632 HAVE_MEMMEM=0
10633 fi
10634
10635 :
10636
10637
10638
10639
10640
10641 if test $ac_cv_have_decl_memmem = no; then
10642 HAVE_DECL_MEMMEM=0
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10645 $as_echo_n "checking whether memmem works... " >&6; }
10646 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 if test "$cross_compiling" = yes; then :
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652
10653 #ifdef __GNU_LIBRARY__
10654 #include <features.h>
10655 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10656 || __GLIBC_MINOR__ > 12)) \
10657 || (__GLIBC__ > 2)) \
10658 || defined __UCLIBC__
10659 Lucky user
10660 #endif
10661 #elif defined __CYGWIN__
10662 #include <cygwin/version.h>
10663 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10664 Lucky user
10665 #endif
10666 #else
10667 Lucky user
10668 #endif
10669
10670 _ACEOF
10671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10672 $EGREP "Lucky user" >/dev/null 2>&1; then :
10673 gl_cv_func_memmem_works_always="guessing yes"
10674 else
10675 gl_cv_func_memmem_works_always="guessing no"
10676 fi
10677 rm -f conftest*
10678
10679
10680 else
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683
10684 #include <string.h> /* for memmem */
10685 #define P "_EF_BF_BD"
10686 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10687 #define NEEDLE P P P P P
10688
10689 int
10690 main ()
10691 {
10692
10693 int result = 0;
10694 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10695 result |= 1;
10696 /* Check for empty needle behavior. */
10697 {
10698 const char *haystack = "AAA";
10699 if (memmem (haystack, 3, NULL, 0) != haystack)
10700 result |= 2;
10701 }
10702 return result;
10703
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 if ac_fn_c_try_run "$LINENO"; then :
10709 gl_cv_func_memmem_works_always=yes
10710 else
10711 gl_cv_func_memmem_works_always=no
10712 fi
10713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10714 conftest.$ac_objext conftest.beam conftest.$ac_ext
10715 fi
10716
10717
10718 fi
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10720 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10721 case "$gl_cv_func_memmem_works_always" in
10722 *yes) ;;
10723 *)
10724 REPLACE_MEMMEM=1
10725 ;;
10726 esac
10727 fi
10728 :
10729
10730 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10731
10732
10733
10734
10735
10736
10737
10738
10739 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10740
10741 fi
10742
10743
10744
10745
10746
10747 GNULIB_MEMMEM=1
10748
10749
10750
10751
10752
10753 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10754
10755
10756
10757
10758
10759
10760
10761 # Define two additional variables used in the Makefile substitution.
10762
10763 if test "$ac_cv_header_stdbool_h" = yes; then
10764 STDBOOL_H=''
10765 else
10766 STDBOOL_H='stdbool.h'
10767 fi
10768
10769 if test -n "$STDBOOL_H"; then
10770 GL_GENERATE_STDBOOL_H_TRUE=
10771 GL_GENERATE_STDBOOL_H_FALSE='#'
10772 else
10773 GL_GENERATE_STDBOOL_H_TRUE='#'
10774 GL_GENERATE_STDBOOL_H_FALSE=
10775 fi
10776
10777
10778 if test "$ac_cv_type__Bool" = yes; then
10779 HAVE__BOOL=1
10780 else
10781 HAVE__BOOL=0
10782 fi
10783
10784
10785
10786
10787
10788 STDDEF_H=
10789 if test $gt_cv_c_wchar_t = no; then
10790 HAVE_WCHAR_T=0
10791 STDDEF_H=stddef.h
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10794 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10795 if test "${gl_cv_decl_null_works+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <stddef.h>
10801 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10802
10803 int
10804 main ()
10805 {
10806
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 gl_cv_decl_null_works=yes
10813 else
10814 gl_cv_decl_null_works=no
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10819 $as_echo "$gl_cv_decl_null_works" >&6; }
10820 if test $gl_cv_decl_null_works = no; then
10821 REPLACE_NULL=1
10822 STDDEF_H=stddef.h
10823 fi
10824
10825 if test -n "$STDDEF_H"; then
10826 GL_GENERATE_STDDEF_H_TRUE=
10827 GL_GENERATE_STDDEF_H_FALSE='#'
10828 else
10829 GL_GENERATE_STDDEF_H_TRUE='#'
10830 GL_GENERATE_STDDEF_H_FALSE=
10831 fi
10832
10833 if test -n "$STDDEF_H"; then
10834
10835
10836
10837
10838
10839
10840
10841
10842 if test $gl_cv_have_include_next = yes; then
10843 gl_cv_next_stddef_h='<'stddef.h'>'
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10846 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10847 if test "${gl_cv_next_stddef_h+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 #include <stddef.h>
10854
10855 _ACEOF
10856 case "$host_os" in
10857 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10858 *) gl_absname_cpp="$ac_cpp" ;;
10859 esac
10860
10861 case "$host_os" in
10862 mingw*)
10863 gl_dirsep_regex='[/\\]'
10864 ;;
10865 *)
10866 gl_dirsep_regex='\/'
10867 ;;
10868 esac
10869 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10870
10871 gl_header_literal_regex=`echo 'stddef.h' \
10872 | sed -e "$gl_make_literal_regex_sed"`
10873 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10874 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10875 s|^/[^/]|//&|
10876 p
10877 q
10878 }'
10879 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10880 sed -n "$gl_absolute_header_sed"`'"'
10881
10882
10883 fi
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10885 $as_echo "$gl_cv_next_stddef_h" >&6; }
10886 fi
10887 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10888
10889 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10891 gl_next_as_first_directive='<'stddef.h'>'
10892 else
10893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10894 gl_next_as_first_directive=$gl_cv_next_stddef_h
10895 fi
10896 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10897
10898
10899
10900
10901 fi
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916 :
10917
10918
10919
10920
10921
10922
10923
10924
10925 if test $gl_cv_have_include_next = yes; then
10926 gl_cv_next_wchar_h='<'wchar.h'>'
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10929 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10930 if test "${gl_cv_next_wchar_h+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933
10934 if test $ac_cv_header_wchar_h = yes; then
10935
10936
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939 #include <wchar.h>
10940
10941 _ACEOF
10942 case "$host_os" in
10943 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10944 *) gl_absname_cpp="$ac_cpp" ;;
10945 esac
10946
10947 case "$host_os" in
10948 mingw*)
10949 gl_dirsep_regex='[/\\]'
10950 ;;
10951 *)
10952 gl_dirsep_regex='\/'
10953 ;;
10954 esac
10955 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10956
10957 gl_header_literal_regex=`echo 'wchar.h' \
10958 | sed -e "$gl_make_literal_regex_sed"`
10959 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10961 s|^/[^/]|//&|
10962 p
10963 q
10964 }'
10965 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10966 sed -n "$gl_absolute_header_sed"`'"'
10967 else
10968 gl_cv_next_wchar_h='<'wchar.h'>'
10969 fi
10970
10971
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10974 $as_echo "$gl_cv_next_wchar_h" >&6; }
10975 fi
10976 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10977
10978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10980 gl_next_as_first_directive='<'wchar.h'>'
10981 else
10982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10983 gl_next_as_first_directive=$gl_cv_next_wchar_h
10984 fi
10985 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10986
10987
10988
10989
10990 if test $ac_cv_header_wchar_h = yes; then
10991 HAVE_WCHAR_H=1
10992 else
10993 HAVE_WCHAR_H=0
10994 fi
10995
10996
10997
10998
10999
11000 if test $gt_cv_c_wint_t = yes; then
11001 HAVE_WINT_T=1
11002 else
11003 HAVE_WINT_T=0
11004 fi
11005
11006
11007
11008 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
11009 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11011 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11012 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017
11018 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11019 <wchar.h>.
11020 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11021 included before <wchar.h>. */
11022 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11023 # include <stddef.h>
11024 # include <stdio.h>
11025 # include <time.h>
11026 #endif
11027 #include <wchar.h>
11028
11029 int
11030 main ()
11031 {
11032 #undef $gl_func
11033 (void) $gl_func;
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_compile "$LINENO"; then :
11039 eval "$as_gl_Symbol=yes"
11040 else
11041 eval "$as_gl_Symbol=no"
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 fi
11045 eval ac_res=\$$as_gl_Symbol
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11047 $as_echo "$ac_res" >&6; }
11048 eval as_val=\$$as_gl_Symbol
11049 if test "x$as_val" = x""yes; then :
11050 cat >>confdefs.h <<_ACEOF
11051 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11052 _ACEOF
11053
11054 eval ac_cv_have_decl_$gl_func=yes
11055 fi
11056 done
11057
11058
11059
11060
11061
11062
11063
11064 :
11065
11066
11067
11068
11069
11070 if test $ac_cv_func_iswcntrl = yes; then
11071 HAVE_ISWCNTRL=1
11072 else
11073 HAVE_ISWCNTRL=0
11074 fi
11075
11076
11077
11078 if test $gt_cv_c_wint_t = yes; then
11079 HAVE_WINT_T=1
11080 else
11081 HAVE_WINT_T=0
11082 fi
11083
11084
11085
11086
11087
11088
11089
11090
11091 :
11092
11093
11094
11095
11096
11097
11098
11099
11100 if test $gl_cv_have_include_next = yes; then
11101 gl_cv_next_wctype_h='<'wctype.h'>'
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
11104 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
11105 if test "${gl_cv_next_wctype_h+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108
11109 if test $ac_cv_header_wctype_h = yes; then
11110
11111
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 #include <wctype.h>
11115
11116 _ACEOF
11117 case "$host_os" in
11118 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11119 *) gl_absname_cpp="$ac_cpp" ;;
11120 esac
11121
11122 case "$host_os" in
11123 mingw*)
11124 gl_dirsep_regex='[/\\]'
11125 ;;
11126 *)
11127 gl_dirsep_regex='\/'
11128 ;;
11129 esac
11130 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11131
11132 gl_header_literal_regex=`echo 'wctype.h' \
11133 | sed -e "$gl_make_literal_regex_sed"`
11134 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11135 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11136 s|^/[^/]|//&|
11137 p
11138 q
11139 }'
11140 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11141 sed -n "$gl_absolute_header_sed"`'"'
11142 else
11143 gl_cv_next_wctype_h='<'wctype.h'>'
11144 fi
11145
11146
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
11149 $as_echo "$gl_cv_next_wctype_h" >&6; }
11150 fi
11151 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
11152
11153 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11155 gl_next_as_first_directive='<'wctype.h'>'
11156 else
11157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11158 gl_next_as_first_directive=$gl_cv_next_wctype_h
11159 fi
11160 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
11161
11162
11163
11164
11165 if test $ac_cv_header_wctype_h = yes; then
11166 if test $ac_cv_func_iswcntrl = yes; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
11168 $as_echo_n "checking whether iswcntrl works... " >&6; }
11169 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172
11173 if test "$cross_compiling" = yes; then :
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 #include <stdlib.h>
11177 #if __GNU_LIBRARY__ == 1
11178 Linux libc5 i18n is broken.
11179 #endif
11180 int
11181 main ()
11182 {
11183
11184 ;
11185 return 0;
11186 }
11187 _ACEOF
11188 if ac_fn_c_try_compile "$LINENO"; then :
11189 gl_cv_func_iswcntrl_works="guessing yes"
11190 else
11191 gl_cv_func_iswcntrl_works="guessing no"
11192 fi
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194
11195 else
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198
11199 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11200 included before <wchar.h>.
11201 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11202 must be included before <wchar.h>. */
11203 #include <stddef.h>
11204 #include <stdio.h>
11205 #include <time.h>
11206 #include <wchar.h>
11207 #include <wctype.h>
11208 int main () { return iswprint ('x') == 0; }
11209
11210 _ACEOF
11211 if ac_fn_c_try_run "$LINENO"; then :
11212 gl_cv_func_iswcntrl_works=yes
11213 else
11214 gl_cv_func_iswcntrl_works=no
11215 fi
11216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11217 conftest.$ac_objext conftest.beam conftest.$ac_ext
11218 fi
11219
11220
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
11223 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
11224 fi
11225 HAVE_WCTYPE_H=1
11226 else
11227 HAVE_WCTYPE_H=0
11228 fi
11229
11230
11231 case "$gl_cv_func_iswcntrl_works" in
11232 *yes) REPLACE_ISWCNTRL=0 ;;
11233 *) REPLACE_ISWCNTRL=1 ;;
11234 esac
11235
11236
11237 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
11238 :
11239 fi
11240
11241 if test $REPLACE_ISWCNTRL = 1; then
11242 REPLACE_TOWLOWER=1
11243 else
11244 for ac_func in towlower
11245 do :
11246 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
11247 if test "x$ac_cv_func_towlower" = x""yes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_TOWLOWER 1
11250 _ACEOF
11251
11252 fi
11253 done
11254
11255 if test $ac_cv_func_towlower = yes; then
11256 REPLACE_TOWLOWER=0
11257 else
11258 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11259 included before <wchar.h>.
11260 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11261 must be included before <wchar.h>. */
11262 #include <stddef.h>
11263 #include <stdio.h>
11264 #include <time.h>
11265 #include <wchar.h>
11266 #if HAVE_WCTYPE_H
11267 # include <wctype.h>
11268 #endif
11269
11270 "
11271 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
11272 ac_have_decl=1
11273 else
11274 ac_have_decl=0
11275 fi
11276
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_DECL_TOWLOWER $ac_have_decl
11279 _ACEOF
11280
11281 if test $ac_cv_have_decl_towlower = yes; then
11282 REPLACE_TOWLOWER=1
11283 else
11284 REPLACE_TOWLOWER=0
11285 fi
11286 fi
11287 fi
11288
11289
11290 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
11291 :
11292 fi
11293
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
11295 $as_echo_n "checking for wctype_t... " >&6; }
11296 if test "${gl_cv_type_wctype_t+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11302 included before <wchar.h>.
11303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11304 must be included before <wchar.h>. */
11305 #include <stddef.h>
11306 #include <stdio.h>
11307 #include <time.h>
11308 #include <wchar.h>
11309 #if HAVE_WCTYPE_H
11310 # include <wctype.h>
11311 #endif
11312 wctype_t a;
11313
11314 int
11315 main ()
11316 {
11317
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_compile "$LINENO"; then :
11323 gl_cv_type_wctype_t=yes
11324 else
11325 gl_cv_type_wctype_t=no
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
11331 $as_echo "$gl_cv_type_wctype_t" >&6; }
11332 if test $gl_cv_type_wctype_t = no; then
11333 HAVE_WCTYPE_T=0
11334 fi
11335
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
11337 $as_echo_n "checking for wctrans_t... " >&6; }
11338 if test "${gl_cv_type_wctrans_t+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11344 included before <wchar.h>.
11345 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11346 must be included before <wchar.h>. */
11347 #include <stddef.h>
11348 #include <stdio.h>
11349 #include <time.h>
11350 #include <wchar.h>
11351 #include <wctype.h>
11352 wctrans_t a;
11353
11354 int
11355 main ()
11356 {
11357
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 gl_cv_type_wctrans_t=yes
11364 else
11365 gl_cv_type_wctrans_t=no
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
11371 $as_echo "$gl_cv_type_wctrans_t" >&6; }
11372 if test $gl_cv_type_wctrans_t = no; then
11373 HAVE_WCTRANS_T=0
11374 fi
11375
11376
11377 for gl_func in wctype iswctype wctrans towctrans ; do
11378 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11380 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11381 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386
11387 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11388 <wchar.h>.
11389 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11390 included before <wchar.h>. */
11391 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11392 # include <stddef.h>
11393 # include <stdio.h>
11394 # include <time.h>
11395 # include <wchar.h>
11396 #endif
11397 #include <wctype.h>
11398
11399 int
11400 main ()
11401 {
11402 #undef $gl_func
11403 (void) $gl_func;
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_compile "$LINENO"; then :
11409 eval "$as_gl_Symbol=yes"
11410 else
11411 eval "$as_gl_Symbol=no"
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 fi
11415 eval ac_res=\$$as_gl_Symbol
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11417 $as_echo "$ac_res" >&6; }
11418 eval as_val=\$$as_gl_Symbol
11419 if test "x$as_val" = x""yes; then :
11420 cat >>confdefs.h <<_ACEOF
11421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11422 _ACEOF
11423
11424 eval ac_cv_have_decl_$gl_func=yes
11425 fi
11426 done
11427
11428
11429 # End of code from modules
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 gltests_libdeps=
11440 gltests_ltlibdeps=
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450 gl_source_base='tests'
11451 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
11452
11453 gl_module_indicator_condition=$gltests_WITNESS
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 LIBGNU_LIBDEPS="$gl_libdeps"
11464
11465 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11466
11467
11468
11469 # We don't use automake, but gnulib does. This line lets us generate
11470 # its Makefile.in.
11471 am__api_version='1.11'
11472
11473 # Find a good install program. We prefer a C program (faster),
11474 # so one script is as good as another. But avoid the broken or
11475 # incompatible versions:
11476 # SysV /etc/install, /usr/sbin/install
11477 # SunOS /usr/etc/install
11478 # IRIX /sbin/install
11479 # AIX /bin/install
11480 # AmigaOS /C/install, which installs bootblocks on floppy discs
11481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11484 # OS/2's system install, which has a completely different semantic
11485 # ./install, which can be erroneously created by make from ./install.sh.
11486 # Reject install programs that cannot install multiple files.
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11489 if test -z "$INSTALL"; then
11490 if test "${ac_cv_path_install+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11495 do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 # Account for people who put trailing slashes in PATH elements.
11499 case $as_dir/ in #((
11500 ./ | .// | /[cC]/* | \
11501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11503 /usr/ucb/* ) ;;
11504 *)
11505 # OSF1 and SCO ODT 3.0 have their own names for install.
11506 # Don't use installbsd from OSF since it installs stuff as root
11507 # by default.
11508 for ac_prog in ginstall scoinst install; do
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11511 if test $ac_prog = install &&
11512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11513 # AIX install. It has an incompatible calling convention.
11514 :
11515 elif test $ac_prog = install &&
11516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11517 # program-specific install script used by HP pwplus--don't use.
11518 :
11519 else
11520 rm -rf conftest.one conftest.two conftest.dir
11521 echo one > conftest.one
11522 echo two > conftest.two
11523 mkdir conftest.dir
11524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11525 test -s conftest.one && test -s conftest.two &&
11526 test -s conftest.dir/conftest.one &&
11527 test -s conftest.dir/conftest.two
11528 then
11529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11530 break 3
11531 fi
11532 fi
11533 fi
11534 done
11535 done
11536 ;;
11537 esac
11538
11539 done
11540 IFS=$as_save_IFS
11541
11542 rm -rf conftest.one conftest.two conftest.dir
11543
11544 fi
11545 if test "${ac_cv_path_install+set}" = set; then
11546 INSTALL=$ac_cv_path_install
11547 else
11548 # As a last resort, use the slow shell script. Don't cache a
11549 # value for INSTALL within a source directory, because that will
11550 # break other packages using the cache if that directory is
11551 # removed, or if the value is a relative name.
11552 INSTALL=$ac_install_sh
11553 fi
11554 fi
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11556 $as_echo "$INSTALL" >&6; }
11557
11558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11559 # It thinks the first close brace ends the variable substitution.
11560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11561
11562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11563
11564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11565
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11567 $as_echo_n "checking whether build environment is sane... " >&6; }
11568 # Just in case
11569 sleep 1
11570 echo timestamp > conftest.file
11571 # Reject unsafe characters in $srcdir or the absolute working directory
11572 # name. Accept space and tab only in the latter.
11573 am_lf='
11574 '
11575 case `pwd` in
11576 *[\\\"\#\$\&\'\`$am_lf]*)
11577 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
11578 esac
11579 case $srcdir in
11580 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11581 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11582 esac
11583
11584 # Do `set' in a subshell so we don't clobber the current shell's
11585 # arguments. Must try -L first in case configure is actually a
11586 # symlink; some systems play weird games with the mod time of symlinks
11587 # (eg FreeBSD returns the mod time of the symlink's containing
11588 # directory).
11589 if (
11590 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11591 if test "$*" = "X"; then
11592 # -L didn't work.
11593 set X `ls -t "$srcdir/configure" conftest.file`
11594 fi
11595 rm -f conftest.file
11596 if test "$*" != "X $srcdir/configure conftest.file" \
11597 && test "$*" != "X conftest.file $srcdir/configure"; then
11598
11599 # If neither matched, then we have a broken ls. This can happen
11600 # if, for instance, CONFIG_SHELL is bash and it inherits a
11601 # broken ls alias from the environment. This has actually
11602 # happened. Such a system could not be considered "sane".
11603 as_fn_error "ls -t appears to fail. Make sure there is not a broken
11604 alias in your environment" "$LINENO" 5
11605 fi
11606
11607 test "$2" = conftest.file
11608 )
11609 then
11610 # Ok.
11611 :
11612 else
11613 as_fn_error "newly created file is older than distributed files!
11614 Check your system clock" "$LINENO" 5
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11618 test "$program_prefix" != NONE &&
11619 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11620 # Use a double $ so make ignores it.
11621 test "$program_suffix" != NONE &&
11622 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11623 # Double any \ or $.
11624 # By default was `s,x,x', remove it if useless.
11625 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11626 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11627
11628 # expand $ac_aux_dir to an absolute path
11629 am_aux_dir=`cd $ac_aux_dir && pwd`
11630
11631 if test x"${MISSING+set}" != xset; then
11632 case $am_aux_dir in
11633 *\ * | *\ *)
11634 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11635 *)
11636 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11637 esac
11638 fi
11639 # Use eval to expand $SHELL
11640 if eval "$MISSING --run true"; then
11641 am_missing_run="$MISSING --run "
11642 else
11643 am_missing_run=
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11645 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11646 fi
11647
11648 if test x"${install_sh}" != xset; then
11649 case $am_aux_dir in
11650 *\ * | *\ *)
11651 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11652 *)
11653 install_sh="\${SHELL} $am_aux_dir/install-sh"
11654 esac
11655 fi
11656
11657 # Installed binaries are usually stripped using `strip' when the user
11658 # run `make install-strip'. However `strip' might not be the right
11659 # tool to use in cross-compilation environments, therefore Automake
11660 # will honor the `STRIP' environment variable to overrule this program.
11661 if test "$cross_compiling" != no; then
11662 if test -n "$ac_tool_prefix"; then
11663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11664 set dummy ${ac_tool_prefix}strip; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_prog_STRIP+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 if test -n "$STRIP"; then
11671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11672 else
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684 done
11685 done
11686 IFS=$as_save_IFS
11687
11688 fi
11689 fi
11690 STRIP=$ac_cv_prog_STRIP
11691 if test -n "$STRIP"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11693 $as_echo "$STRIP" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 fi
11698
11699
11700 fi
11701 if test -z "$ac_cv_prog_STRIP"; then
11702 ac_ct_STRIP=$STRIP
11703 # Extract the first word of "strip", so it can be a program name with args.
11704 set dummy strip; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 if test -n "$ac_ct_STRIP"; then
11711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11712 else
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11715 do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_prog_ac_ct_STRIP="strip"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724 done
11725 done
11726 IFS=$as_save_IFS
11727
11728 fi
11729 fi
11730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11731 if test -n "$ac_ct_STRIP"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11733 $as_echo "$ac_ct_STRIP" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738
11739 if test "x$ac_ct_STRIP" = x; then
11740 STRIP=":"
11741 else
11742 case $cross_compiling:$ac_tool_warned in
11743 yes:)
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11746 ac_tool_warned=yes ;;
11747 esac
11748 STRIP=$ac_ct_STRIP
11749 fi
11750 else
11751 STRIP="$ac_cv_prog_STRIP"
11752 fi
11753
11754 fi
11755 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11758 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11759 if test -z "$MKDIR_P"; then
11760 if test "${ac_cv_path_mkdir+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11765 do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_prog in mkdir gmkdir; do
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11772 'mkdir (GNU coreutils) '* | \
11773 'mkdir (coreutils) '* | \
11774 'mkdir (fileutils) '4.1*)
11775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11776 break 3;;
11777 esac
11778 done
11779 done
11780 done
11781 IFS=$as_save_IFS
11782
11783 fi
11784
11785 if test "${ac_cv_path_mkdir+set}" = set; then
11786 MKDIR_P="$ac_cv_path_mkdir -p"
11787 else
11788 # As a last resort, use the slow shell script. Don't cache a
11789 # value for MKDIR_P within a source directory, because that will
11790 # break other packages using the cache if that directory is
11791 # removed, or if the value is a relative name.
11792 test -d ./--version && rmdir ./--version
11793 MKDIR_P="$ac_install_sh -d"
11794 fi
11795 fi
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11797 $as_echo "$MKDIR_P" >&6; }
11798
11799
11800 mkdir_p="$MKDIR_P"
11801 case $mkdir_p in
11802 [\\/$]* | ?:[\\/]*) ;;
11803 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11804 esac
11805
11806 for ac_prog in gawk mawk nawk awk
11807 do
11808 # Extract the first word of "$ac_prog", so it can be a program name with args.
11809 set dummy $ac_prog; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if test "${ac_cv_prog_AWK+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 if test -n "$AWK"; then
11816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11817 else
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_AWK="$ac_prog"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829 done
11830 done
11831 IFS=$as_save_IFS
11832
11833 fi
11834 fi
11835 AWK=$ac_cv_prog_AWK
11836 if test -n "$AWK"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11838 $as_echo "$AWK" >&6; }
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844
11845 test -n "$AWK" && break
11846 done
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11850 set x ${MAKE-make}
11851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 cat >conftest.make <<\_ACEOF
11856 SHELL = /bin/sh
11857 all:
11858 @echo '@@@%%%=$(MAKE)=@@@%%%'
11859 _ACEOF
11860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11862 *@@@%%%=?*=@@@%%%*)
11863 eval ac_cv_prog_make_${ac_make}_set=yes;;
11864 *)
11865 eval ac_cv_prog_make_${ac_make}_set=no;;
11866 esac
11867 rm -f conftest.make
11868 fi
11869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11872 SET_MAKE=
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 SET_MAKE="MAKE=${MAKE-make}"
11877 fi
11878
11879 rm -rf .tst 2>/dev/null
11880 mkdir .tst 2>/dev/null
11881 if test -d .tst; then
11882 am__leading_dot=.
11883 else
11884 am__leading_dot=_
11885 fi
11886 rmdir .tst 2>/dev/null
11887
11888 DEPDIR="${am__leading_dot}deps"
11889
11890 ac_config_commands="$ac_config_commands depfiles"
11891
11892
11893 am_make=${MAKE-make}
11894 cat > confinc << 'END'
11895 am__doit:
11896 @echo this is the am__doit target
11897 .PHONY: am__doit
11898 END
11899 # If we don't find an include directive, just comment out the code.
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11902 am__include="#"
11903 am__quote=
11904 _am_result=none
11905 # First try GNU make style include.
11906 echo "include confinc" > confmf
11907 # Ignore all kinds of additional output from `make'.
11908 case `$am_make -s -f confmf 2> /dev/null` in #(
11909 *the\ am__doit\ target*)
11910 am__include=include
11911 am__quote=
11912 _am_result=GNU
11913 ;;
11914 esac
11915 # Now try BSD make style include.
11916 if test "$am__include" = "#"; then
11917 echo '.include "confinc"' > confmf
11918 case `$am_make -s -f confmf 2> /dev/null` in #(
11919 *the\ am__doit\ target*)
11920 am__include=.include
11921 am__quote="\""
11922 _am_result=BSD
11923 ;;
11924 esac
11925 fi
11926
11927
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11929 $as_echo "$_am_result" >&6; }
11930 rm -f confinc confmf
11931
11932 # Check whether --enable-dependency-tracking was given.
11933 if test "${enable_dependency_tracking+set}" = set; then :
11934 enableval=$enable_dependency_tracking;
11935 fi
11936
11937 if test "x$enable_dependency_tracking" != xno; then
11938 am_depcomp="$ac_aux_dir/depcomp"
11939 AMDEPBACKSLASH='\'
11940 fi
11941 if test "x$enable_dependency_tracking" != xno; then
11942 AMDEP_TRUE=
11943 AMDEP_FALSE='#'
11944 else
11945 AMDEP_TRUE='#'
11946 AMDEP_FALSE=
11947 fi
11948
11949
11950 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11951 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11952 # is not polluted with repeated "-I."
11953 am__isrc=' -I$(srcdir)'
11954 # test to see if srcdir already configured
11955 if test -f $srcdir/config.status; then
11956 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11957 fi
11958 fi
11959
11960 # test whether we have cygpath
11961 if test -z "$CYGPATH_W"; then
11962 if (cygpath --version) >/dev/null 2>/dev/null; then
11963 CYGPATH_W='cygpath -w'
11964 else
11965 CYGPATH_W=echo
11966 fi
11967 fi
11968
11969
11970 # Define the identity of the package.
11971 PACKAGE=libgnu
11972 VERSION=UNUSED-VERSION
11973
11974
11975 # Some tools Automake needs.
11976
11977 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11978
11979
11980 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11981
11982
11983 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11984
11985
11986 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11987
11988
11989 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11990
11991 # We need awk for the "check" target. The system "awk" is bad on
11992 # some platforms.
11993 # Always define AMTAR for backward compatibility.
11994
11995 AMTAR=${AMTAR-"${am_missing_run}tar"}
11996
11997 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11998
11999
12000
12001
12002 depcc="$CC" am_compiler_list=
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12005 $as_echo_n "checking dependency style of $depcc... " >&6; }
12006 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12010 # We make a subdir and do the tests there. Otherwise we can end up
12011 # making bogus files that we don't know about and never remove. For
12012 # instance it was reported that on HP-UX the gcc test will end up
12013 # making a dummy file named `D' -- because `-MD' means `put the output
12014 # in D'.
12015 mkdir conftest.dir
12016 # Copy depcomp to subdir because otherwise we won't find it if we're
12017 # using a relative directory.
12018 cp "$am_depcomp" conftest.dir
12019 cd conftest.dir
12020 # We will build objects and dependencies in a subdirectory because
12021 # it helps to detect inapplicable dependency modes. For instance
12022 # both Tru64's cc and ICC support -MD to output dependencies as a
12023 # side effect of compilation, but ICC will put the dependencies in
12024 # the current directory while Tru64 will put them in the object
12025 # directory.
12026 mkdir sub
12027
12028 am_cv_CC_dependencies_compiler_type=none
12029 if test "$am_compiler_list" = ""; then
12030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12031 fi
12032 am__universal=false
12033 case " $depcc " in #(
12034 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12035 esac
12036
12037 for depmode in $am_compiler_list; do
12038 # Setup a source with many dependencies, because some compilers
12039 # like to wrap large dependency lists on column 80 (with \), and
12040 # we should not choose a depcomp mode which is confused by this.
12041 #
12042 # We need to recreate these files for each test, as the compiler may
12043 # overwrite some of them when testing with obscure command lines.
12044 # This happens at least with the AIX C compiler.
12045 : > sub/conftest.c
12046 for i in 1 2 3 4 5 6; do
12047 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12048 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12049 # Solaris 8's {/usr,}/bin/sh.
12050 touch sub/conftst$i.h
12051 done
12052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12053
12054 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12055 # mode. It turns out that the SunPro C++ compiler does not properly
12056 # handle `-M -o', and we need to detect this. Also, some Intel
12057 # versions had trouble with output in subdirs
12058 am__obj=sub/conftest.${OBJEXT-o}
12059 am__minus_obj="-o $am__obj"
12060 case $depmode in
12061 gcc)
12062 # This depmode causes a compiler race in universal mode.
12063 test "$am__universal" = false || continue
12064 ;;
12065 nosideeffect)
12066 # after this tag, mechanisms are not by side-effect, so they'll
12067 # only be used when explicitly requested
12068 if test "x$enable_dependency_tracking" = xyes; then
12069 continue
12070 else
12071 break
12072 fi
12073 ;;
12074 msvisualcpp | msvcmsys)
12075 # This compiler won't grok `-c -o', but also, the minuso test has
12076 # not run yet. These depmodes are late enough in the game, and
12077 # so weak that their functioning should not be impacted.
12078 am__obj=conftest.${OBJEXT-o}
12079 am__minus_obj=
12080 ;;
12081 none) break ;;
12082 esac
12083 if depmode=$depmode \
12084 source=sub/conftest.c object=$am__obj \
12085 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12086 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12087 >/dev/null 2>conftest.err &&
12088 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12090 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12092 # icc doesn't choke on unknown options, it will just issue warnings
12093 # or remarks (even with -Werror). So we grep stderr for any message
12094 # that says an option was ignored or not supported.
12095 # When given -MP, icc 7.0 and 7.1 complain thusly:
12096 # icc: Command line warning: ignoring option '-M'; no argument required
12097 # The diagnosis changed in icc 8.0:
12098 # icc: Command line remark: option '-MP' not supported
12099 if (grep 'ignoring option' conftest.err ||
12100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12101 am_cv_CC_dependencies_compiler_type=$depmode
12102 break
12103 fi
12104 fi
12105 done
12106
12107 cd ..
12108 rm -rf conftest.dir
12109 else
12110 am_cv_CC_dependencies_compiler_type=none
12111 fi
12112
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12115 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12116 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12117
12118 if
12119 test "x$enable_dependency_tracking" != xno \
12120 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12121 am__fastdepCC_TRUE=
12122 am__fastdepCC_FALSE='#'
12123 else
12124 am__fastdepCC_TRUE='#'
12125 am__fastdepCC_FALSE=
12126 fi
12127
12128
12129
12130
12131 # --------------------- #
12132 # Checks for programs. #
12133 # --------------------- #
12134
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12137 $as_echo_n "checking whether ln -s works... " >&6; }
12138 LN_S=$as_ln_s
12139 if test "$LN_S" = "ln -s"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12141 $as_echo "yes" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12144 $as_echo "no, using $LN_S" >&6; }
12145 fi
12146
12147 if test -n "$ac_tool_prefix"; then
12148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 if test -n "$RANLIB"; then
12156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12168 fi
12169 done
12170 done
12171 IFS=$as_save_IFS
12172
12173 fi
12174 fi
12175 RANLIB=$ac_cv_prog_RANLIB
12176 if test -n "$RANLIB"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12178 $as_echo "$RANLIB" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183
12184
12185 fi
12186 if test -z "$ac_cv_prog_RANLIB"; then
12187 ac_ct_RANLIB=$RANLIB
12188 # Extract the first word of "ranlib", so it can be a program name with args.
12189 set dummy ranlib; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 if test -n "$ac_ct_RANLIB"; then
12196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12197 else
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12200 do
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12205 ac_cv_prog_ac_ct_RANLIB="ranlib"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 break 2
12208 fi
12209 done
12210 done
12211 IFS=$as_save_IFS
12212
12213 fi
12214 fi
12215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12216 if test -n "$ac_ct_RANLIB"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12218 $as_echo "$ac_ct_RANLIB" >&6; }
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12222 fi
12223
12224 if test "x$ac_ct_RANLIB" = x; then
12225 RANLIB=":"
12226 else
12227 case $cross_compiling:$ac_tool_warned in
12228 yes:)
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12231 ac_tool_warned=yes ;;
12232 esac
12233 RANLIB=$ac_ct_RANLIB
12234 fi
12235 else
12236 RANLIB="$ac_cv_prog_RANLIB"
12237 fi
12238
12239
12240 if test -n "$ac_tool_prefix"; then
12241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12242 set dummy ${ac_tool_prefix}ar; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if test "${ac_cv_prog_AR+set}" = set; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 if test -n "$AR"; then
12249 ac_cv_prog_AR="$AR" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12258 ac_cv_prog_AR="${ac_tool_prefix}ar"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12261 fi
12262 done
12263 done
12264 IFS=$as_save_IFS
12265
12266 fi
12267 fi
12268 AR=$ac_cv_prog_AR
12269 if test -n "$AR"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12271 $as_echo "$AR" >&6; }
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278 fi
12279 if test -z "$ac_cv_prog_AR"; then
12280 ac_ct_AR=$AR
12281 # Extract the first word of "ar", so it can be a program name with args.
12282 set dummy ar; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 if test -n "$ac_ct_AR"; then
12289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12290 else
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12298 ac_cv_prog_ac_ct_AR="ar"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302 done
12303 done
12304 IFS=$as_save_IFS
12305
12306 fi
12307 fi
12308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12309 if test -n "$ac_ct_AR"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12311 $as_echo "$ac_ct_AR" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316
12317 if test "x$ac_ct_AR" = x; then
12318 AR=""
12319 else
12320 case $cross_compiling:$ac_tool_warned in
12321 yes:)
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12324 ac_tool_warned=yes ;;
12325 esac
12326 AR=$ac_ct_AR
12327 fi
12328 else
12329 AR="$ac_cv_prog_AR"
12330 fi
12331
12332
12333 # ---------------------- #
12334 # Checks for libraries. #
12335 # ---------------------- #
12336
12337 ac_config_files="$ac_config_files Makefile import/Makefile"
12338
12339 ac_config_commands="$ac_config_commands default"
12340
12341 cat >confcache <<\_ACEOF
12342 # This file is a shell script that caches the results of configure
12343 # tests run on this system so they can be shared between configure
12344 # scripts and configure runs, see configure's option --config-cache.
12345 # It is not useful on other systems. If it contains results you don't
12346 # want to keep, you may remove or edit it.
12347 #
12348 # config.status only pays attention to the cache file if you give it
12349 # the --recheck option to rerun configure.
12350 #
12351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12353 # following values.
12354
12355 _ACEOF
12356
12357 # The following way of writing the cache mishandles newlines in values,
12358 # but we know of no workaround that is simple, portable, and efficient.
12359 # So, we kill variables containing newlines.
12360 # Ultrix sh set writes to stderr and can't be redirected directly,
12361 # and sets the high bit in the cache file unless we assign to the vars.
12362 (
12363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12364 eval ac_val=\$$ac_var
12365 case $ac_val in #(
12366 *${as_nl}*)
12367 case $ac_var in #(
12368 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12370 esac
12371 case $ac_var in #(
12372 _ | IFS | as_nl) ;; #(
12373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12374 *) { eval $ac_var=; unset $ac_var;} ;;
12375 esac ;;
12376 esac
12377 done
12378
12379 (set) 2>&1 |
12380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12381 *${as_nl}ac_space=\ *)
12382 # `set' does not quote correctly, so add quotes: double-quote
12383 # substitution turns \\\\ into \\, and sed turns \\ into \.
12384 sed -n \
12385 "s/'/'\\\\''/g;
12386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12387 ;; #(
12388 *)
12389 # `set' quotes correctly as required by POSIX, so do not add quotes.
12390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12391 ;;
12392 esac |
12393 sort
12394 ) |
12395 sed '
12396 /^ac_cv_env_/b end
12397 t clear
12398 :clear
12399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12400 t end
12401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12402 :end' >>confcache
12403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12404 if test -w "$cache_file"; then
12405 test "x$cache_file" != "x/dev/null" &&
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12407 $as_echo "$as_me: updating cache $cache_file" >&6;}
12408 cat confcache >$cache_file
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12412 fi
12413 fi
12414 rm -f confcache
12415
12416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12417 # Let make expand exec_prefix.
12418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12419
12420 DEFS=-DHAVE_CONFIG_H
12421
12422 ac_libobjs=
12423 ac_ltlibobjs=
12424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12425 # 1. Remove the extension, and $U if already installed.
12426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12429 # will be set to the directory where LIBOBJS objects are built.
12430 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12431 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12432 done
12433 LIBOBJS=$ac_libobjs
12434
12435 LTLIBOBJS=$ac_ltlibobjs
12436
12437
12438 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12439 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12441 fi
12442 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12443 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
12444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12445 fi
12446 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12447 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12449 fi
12450 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
12451 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
12452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12453 fi
12454 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12455 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12457 fi
12458 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12459 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
12460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12461 fi
12462 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12463 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12465 fi
12466 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12467 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12469 fi
12470
12471 gl_libobjs=
12472 gl_ltlibobjs=
12473 if test -n "$gl_LIBOBJS"; then
12474 # Remove the extension.
12475 sed_drop_objext='s/\.o$//;s/\.obj$//'
12476 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12477 gl_libobjs="$gl_libobjs $i.$ac_objext"
12478 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12479 done
12480 fi
12481 gl_LIBOBJS=$gl_libobjs
12482
12483 gl_LTLIBOBJS=$gl_ltlibobjs
12484
12485
12486
12487 gltests_libobjs=
12488 gltests_ltlibobjs=
12489 if test -n "$gltests_LIBOBJS"; then
12490 # Remove the extension.
12491 sed_drop_objext='s/\.o$//;s/\.obj$//'
12492 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12493 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
12494 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
12495 done
12496 fi
12497 gltests_LIBOBJS=$gltests_libobjs
12498
12499 gltests_LTLIBOBJS=$gltests_ltlibobjs
12500
12501
12502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12503 as_fn_error "conditional \"AMDEP\" was never defined.
12504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12505 fi
12506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12507 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12509 fi
12510 if test -n "$EXEEXT"; then
12511 am__EXEEXT_TRUE=
12512 am__EXEEXT_FALSE='#'
12513 else
12514 am__EXEEXT_TRUE='#'
12515 am__EXEEXT_FALSE=
12516 fi
12517
12518
12519 : ${CONFIG_STATUS=./config.status}
12520 ac_write_fail=0
12521 ac_clean_files_save=$ac_clean_files
12522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12525 as_write_fail=0
12526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12527 #! $SHELL
12528 # Generated by $as_me.
12529 # Run this file to recreate the current configuration.
12530 # Compiler output produced by configure, useful for debugging
12531 # configure, is in config.log if it exists.
12532
12533 debug=false
12534 ac_cs_recheck=false
12535 ac_cs_silent=false
12536
12537 SHELL=\${CONFIG_SHELL-$SHELL}
12538 export SHELL
12539 _ASEOF
12540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12541 ## -------------------- ##
12542 ## M4sh Initialization. ##
12543 ## -------------------- ##
12544
12545 # Be more Bourne compatible
12546 DUALCASE=1; export DUALCASE # for MKS sh
12547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12548 emulate sh
12549 NULLCMD=:
12550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12551 # is contrary to our usage. Disable this feature.
12552 alias -g '${1+"$@"}'='"$@"'
12553 setopt NO_GLOB_SUBST
12554 else
12555 case `(set -o) 2>/dev/null` in #(
12556 *posix*) :
12557 set -o posix ;; #(
12558 *) :
12559 ;;
12560 esac
12561 fi
12562
12563
12564 as_nl='
12565 '
12566 export as_nl
12567 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12568 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12571 # Prefer a ksh shell builtin over an external printf program on Solaris,
12572 # but without wasting forks for bash or zsh.
12573 if test -z "$BASH_VERSION$ZSH_VERSION" \
12574 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12575 as_echo='print -r --'
12576 as_echo_n='print -rn --'
12577 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12578 as_echo='printf %s\n'
12579 as_echo_n='printf %s'
12580 else
12581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12582 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12583 as_echo_n='/usr/ucb/echo -n'
12584 else
12585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12586 as_echo_n_body='eval
12587 arg=$1;
12588 case $arg in #(
12589 *"$as_nl"*)
12590 expr "X$arg" : "X\\(.*\\)$as_nl";
12591 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12592 esac;
12593 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12594 '
12595 export as_echo_n_body
12596 as_echo_n='sh -c $as_echo_n_body as_echo'
12597 fi
12598 export as_echo_body
12599 as_echo='sh -c $as_echo_body as_echo'
12600 fi
12601
12602 # The user is always right.
12603 if test "${PATH_SEPARATOR+set}" != set; then
12604 PATH_SEPARATOR=:
12605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12607 PATH_SEPARATOR=';'
12608 }
12609 fi
12610
12611
12612 # IFS
12613 # We need space, tab and new line, in precisely that order. Quoting is
12614 # there to prevent editors from complaining about space-tab.
12615 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12616 # splitting by setting IFS to empty value.)
12617 IFS=" "" $as_nl"
12618
12619 # Find who we are. Look in the path if we contain no directory separator.
12620 case $0 in #((
12621 *[\\/]* ) as_myself=$0 ;;
12622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12628 done
12629 IFS=$as_save_IFS
12630
12631 ;;
12632 esac
12633 # We did not find ourselves, most probably we were run as `sh COMMAND'
12634 # in which case we are not to be found in the path.
12635 if test "x$as_myself" = x; then
12636 as_myself=$0
12637 fi
12638 if test ! -f "$as_myself"; then
12639 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12640 exit 1
12641 fi
12642
12643 # Unset variables that we do not need and which cause bugs (e.g. in
12644 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12645 # suppresses any "Segmentation fault" message there. '((' could
12646 # trigger a bug in pdksh 5.2.14.
12647 for as_var in BASH_ENV ENV MAIL MAILPATH
12648 do eval test x\${$as_var+set} = xset \
12649 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12650 done
12651 PS1='$ '
12652 PS2='> '
12653 PS4='+ '
12654
12655 # NLS nuisances.
12656 LC_ALL=C
12657 export LC_ALL
12658 LANGUAGE=C
12659 export LANGUAGE
12660
12661 # CDPATH.
12662 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12663
12664
12665 # as_fn_error ERROR [LINENO LOG_FD]
12666 # ---------------------------------
12667 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12668 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12669 # script with status $?, using 1 if that was 0.
12670 as_fn_error ()
12671 {
12672 as_status=$?; test $as_status -eq 0 && as_status=1
12673 if test "$3"; then
12674 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12675 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12676 fi
12677 $as_echo "$as_me: error: $1" >&2
12678 as_fn_exit $as_status
12679 } # as_fn_error
12680
12681
12682 # as_fn_set_status STATUS
12683 # -----------------------
12684 # Set $? to STATUS, without forking.
12685 as_fn_set_status ()
12686 {
12687 return $1
12688 } # as_fn_set_status
12689
12690 # as_fn_exit STATUS
12691 # -----------------
12692 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12693 as_fn_exit ()
12694 {
12695 set +e
12696 as_fn_set_status $1
12697 exit $1
12698 } # as_fn_exit
12699
12700 # as_fn_unset VAR
12701 # ---------------
12702 # Portably unset VAR.
12703 as_fn_unset ()
12704 {
12705 { eval $1=; unset $1;}
12706 }
12707 as_unset=as_fn_unset
12708 # as_fn_append VAR VALUE
12709 # ----------------------
12710 # Append the text in VALUE to the end of the definition contained in VAR. Take
12711 # advantage of any shell optimizations that allow amortized linear growth over
12712 # repeated appends, instead of the typical quadratic growth present in naive
12713 # implementations.
12714 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12715 eval 'as_fn_append ()
12716 {
12717 eval $1+=\$2
12718 }'
12719 else
12720 as_fn_append ()
12721 {
12722 eval $1=\$$1\$2
12723 }
12724 fi # as_fn_append
12725
12726 # as_fn_arith ARG...
12727 # ------------------
12728 # Perform arithmetic evaluation on the ARGs, and store the result in the
12729 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12730 # must be portable across $(()) and expr.
12731 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12732 eval 'as_fn_arith ()
12733 {
12734 as_val=$(( $* ))
12735 }'
12736 else
12737 as_fn_arith ()
12738 {
12739 as_val=`expr "$@" || test $? -eq 1`
12740 }
12741 fi # as_fn_arith
12742
12743
12744 if expr a : '\(a\)' >/dev/null 2>&1 &&
12745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12746 as_expr=expr
12747 else
12748 as_expr=false
12749 fi
12750
12751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12752 as_basename=basename
12753 else
12754 as_basename=false
12755 fi
12756
12757 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12758 as_dirname=dirname
12759 else
12760 as_dirname=false
12761 fi
12762
12763 as_me=`$as_basename -- "$0" ||
12764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12765 X"$0" : 'X\(//\)$' \| \
12766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12767 $as_echo X/"$0" |
12768 sed '/^.*\/\([^/][^/]*\)\/*$/{
12769 s//\1/
12770 q
12771 }
12772 /^X\/\(\/\/\)$/{
12773 s//\1/
12774 q
12775 }
12776 /^X\/\(\/\).*/{
12777 s//\1/
12778 q
12779 }
12780 s/.*/./; q'`
12781
12782 # Avoid depending upon Character Ranges.
12783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12786 as_cr_digits='0123456789'
12787 as_cr_alnum=$as_cr_Letters$as_cr_digits
12788
12789 ECHO_C= ECHO_N= ECHO_T=
12790 case `echo -n x` in #(((((
12791 -n*)
12792 case `echo 'xy\c'` in
12793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12794 xy) ECHO_C='\c';;
12795 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12796 ECHO_T=' ';;
12797 esac;;
12798 *)
12799 ECHO_N='-n';;
12800 esac
12801
12802 rm -f conf$$ conf$$.exe conf$$.file
12803 if test -d conf$$.dir; then
12804 rm -f conf$$.dir/conf$$.file
12805 else
12806 rm -f conf$$.dir
12807 mkdir conf$$.dir 2>/dev/null
12808 fi
12809 if (echo >conf$$.file) 2>/dev/null; then
12810 if ln -s conf$$.file conf$$ 2>/dev/null; then
12811 as_ln_s='ln -s'
12812 # ... but there are two gotchas:
12813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12815 # In both cases, we have to default to `cp -p'.
12816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12817 as_ln_s='cp -p'
12818 elif ln conf$$.file conf$$ 2>/dev/null; then
12819 as_ln_s=ln
12820 else
12821 as_ln_s='cp -p'
12822 fi
12823 else
12824 as_ln_s='cp -p'
12825 fi
12826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12827 rmdir conf$$.dir 2>/dev/null
12828
12829
12830 # as_fn_mkdir_p
12831 # -------------
12832 # Create "$as_dir" as a directory, including parents if necessary.
12833 as_fn_mkdir_p ()
12834 {
12835
12836 case $as_dir in #(
12837 -*) as_dir=./$as_dir;;
12838 esac
12839 test -d "$as_dir" || eval $as_mkdir_p || {
12840 as_dirs=
12841 while :; do
12842 case $as_dir in #(
12843 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12844 *) as_qdir=$as_dir;;
12845 esac
12846 as_dirs="'$as_qdir' $as_dirs"
12847 as_dir=`$as_dirname -- "$as_dir" ||
12848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12849 X"$as_dir" : 'X\(//\)[^/]' \| \
12850 X"$as_dir" : 'X\(//\)$' \| \
12851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12852 $as_echo X"$as_dir" |
12853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12854 s//\1/
12855 q
12856 }
12857 /^X\(\/\/\)[^/].*/{
12858 s//\1/
12859 q
12860 }
12861 /^X\(\/\/\)$/{
12862 s//\1/
12863 q
12864 }
12865 /^X\(\/\).*/{
12866 s//\1/
12867 q
12868 }
12869 s/.*/./; q'`
12870 test -d "$as_dir" && break
12871 done
12872 test -z "$as_dirs" || eval "mkdir $as_dirs"
12873 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12874
12875
12876 } # as_fn_mkdir_p
12877 if mkdir -p . 2>/dev/null; then
12878 as_mkdir_p='mkdir -p "$as_dir"'
12879 else
12880 test -d ./-p && rmdir ./-p
12881 as_mkdir_p=false
12882 fi
12883
12884 if test -x / >/dev/null 2>&1; then
12885 as_test_x='test -x'
12886 else
12887 if ls -dL / >/dev/null 2>&1; then
12888 as_ls_L_option=L
12889 else
12890 as_ls_L_option=
12891 fi
12892 as_test_x='
12893 eval sh -c '\''
12894 if test -d "$1"; then
12895 test -d "$1/.";
12896 else
12897 case $1 in #(
12898 -*)set "./$1";;
12899 esac;
12900 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12901 ???[sx]*):;;*)false;;esac;fi
12902 '\'' sh
12903 '
12904 fi
12905 as_executable_p=$as_test_x
12906
12907 # Sed expression to map a string onto a valid CPP name.
12908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12909
12910 # Sed expression to map a string onto a valid variable name.
12911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12912
12913
12914 exec 6>&1
12915 ## ----------------------------------- ##
12916 ## Main body of $CONFIG_STATUS script. ##
12917 ## ----------------------------------- ##
12918 _ASEOF
12919 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12920
12921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12922 # Save the log message, to keep $0 and so on meaningful, and to
12923 # report actual input values of CONFIG_FILES etc. instead of their
12924 # values after options handling.
12925 ac_log="
12926 This file was extended by $as_me, which was
12927 generated by GNU Autoconf 2.64. Invocation command line was
12928
12929 CONFIG_FILES = $CONFIG_FILES
12930 CONFIG_HEADERS = $CONFIG_HEADERS
12931 CONFIG_LINKS = $CONFIG_LINKS
12932 CONFIG_COMMANDS = $CONFIG_COMMANDS
12933 $ $0 $@
12934
12935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12936 "
12937
12938 _ACEOF
12939
12940 case $ac_config_files in *"
12941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12942 esac
12943
12944 case $ac_config_headers in *"
12945 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12946 esac
12947
12948
12949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12950 # Files that config.status was made for.
12951 config_files="$ac_config_files"
12952 config_headers="$ac_config_headers"
12953 config_commands="$ac_config_commands"
12954
12955 _ACEOF
12956
12957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12958 ac_cs_usage="\
12959 \`$as_me' instantiates files and other configuration actions
12960 from templates according to the current configuration. Unless the files
12961 and actions are specified as TAGs, all are instantiated by default.
12962
12963 Usage: $0 [OPTION]... [TAG]...
12964
12965 -h, --help print this help, then exit
12966 -V, --version print version number and configuration settings, then exit
12967 -q, --quiet, --silent
12968 do not print progress messages
12969 -d, --debug don't remove temporary files
12970 --recheck update $as_me by reconfiguring in the same conditions
12971 --file=FILE[:TEMPLATE]
12972 instantiate the configuration file FILE
12973 --header=FILE[:TEMPLATE]
12974 instantiate the configuration header FILE
12975
12976 Configuration files:
12977 $config_files
12978
12979 Configuration headers:
12980 $config_headers
12981
12982 Configuration commands:
12983 $config_commands
12984
12985 Report bugs to the package provider."
12986
12987 _ACEOF
12988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12989 ac_cs_version="\\
12990 config.status
12991 configured by $0, generated by GNU Autoconf 2.64,
12992 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12993
12994 Copyright (C) 2009 Free Software Foundation, Inc.
12995 This config.status script is free software; the Free Software Foundation
12996 gives unlimited permission to copy, distribute and modify it."
12997
12998 ac_pwd='$ac_pwd'
12999 srcdir='$srcdir'
13000 INSTALL='$INSTALL'
13001 MKDIR_P='$MKDIR_P'
13002 AWK='$AWK'
13003 test -n "\$AWK" || AWK=awk
13004 _ACEOF
13005
13006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13007 # The default lists apply if the user does not specify any file.
13008 ac_need_defaults=:
13009 while test $# != 0
13010 do
13011 case $1 in
13012 --*=*)
13013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13015 ac_shift=:
13016 ;;
13017 *)
13018 ac_option=$1
13019 ac_optarg=$2
13020 ac_shift=shift
13021 ;;
13022 esac
13023
13024 case $ac_option in
13025 # Handling of the options.
13026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13027 ac_cs_recheck=: ;;
13028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13029 $as_echo "$ac_cs_version"; exit ;;
13030 --debug | --debu | --deb | --de | --d | -d )
13031 debug=: ;;
13032 --file | --fil | --fi | --f )
13033 $ac_shift
13034 case $ac_optarg in
13035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13036 esac
13037 as_fn_append CONFIG_FILES " '$ac_optarg'"
13038 ac_need_defaults=false;;
13039 --header | --heade | --head | --hea )
13040 $ac_shift
13041 case $ac_optarg in
13042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13043 esac
13044 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13045 ac_need_defaults=false;;
13046 --he | --h)
13047 # Conflict between --help and --header
13048 as_fn_error "ambiguous option: \`$1'
13049 Try \`$0 --help' for more information.";;
13050 --help | --hel | -h )
13051 $as_echo "$ac_cs_usage"; exit ;;
13052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13054 ac_cs_silent=: ;;
13055
13056 # This is an error.
13057 -*) as_fn_error "unrecognized option: \`$1'
13058 Try \`$0 --help' for more information." ;;
13059
13060 *) as_fn_append ac_config_targets " $1"
13061 ac_need_defaults=false ;;
13062
13063 esac
13064 shift
13065 done
13066
13067 ac_configure_extra_args=
13068
13069 if $ac_cs_silent; then
13070 exec 6>/dev/null
13071 ac_configure_extra_args="$ac_configure_extra_args --silent"
13072 fi
13073
13074 _ACEOF
13075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13076 if \$ac_cs_recheck; then
13077 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13078 shift
13079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13080 CONFIG_SHELL='$SHELL'
13081 export CONFIG_SHELL
13082 exec "\$@"
13083 fi
13084
13085 _ACEOF
13086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13087 exec 5>>config.log
13088 {
13089 echo
13090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13091 ## Running $as_me. ##
13092 _ASBOX
13093 $as_echo "$ac_log"
13094 } >&5
13095
13096 _ACEOF
13097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13098 #
13099 # INIT-COMMANDS
13100 #
13101 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13102
13103 _ACEOF
13104
13105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13106
13107 # Handling of arguments.
13108 for ac_config_target in $ac_config_targets
13109 do
13110 case $ac_config_target in
13111 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13112 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13113 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13114 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
13115 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13116
13117 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13118 esac
13119 done
13120
13121
13122 # If the user did not use the arguments to specify the items to instantiate,
13123 # then the envvar interface is used. Set only those that are not.
13124 # We use the long form for the default assignment because of an extremely
13125 # bizarre bug on SunOS 4.1.3.
13126 if $ac_need_defaults; then
13127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13130 fi
13131
13132 # Have a temporary directory for convenience. Make it in the build tree
13133 # simply because there is no reason against having it here, and in addition,
13134 # creating and moving files from /tmp can sometimes cause problems.
13135 # Hook for its removal unless debugging.
13136 # Note that there is a small window in which the directory will not be cleaned:
13137 # after its creation but before its name has been assigned to `$tmp'.
13138 $debug ||
13139 {
13140 tmp=
13141 trap 'exit_status=$?
13142 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13143 ' 0
13144 trap 'as_fn_exit 1' 1 2 13 15
13145 }
13146 # Create a (secure) tmp directory for tmp files.
13147
13148 {
13149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13150 test -n "$tmp" && test -d "$tmp"
13151 } ||
13152 {
13153 tmp=./conf$$-$RANDOM
13154 (umask 077 && mkdir "$tmp")
13155 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13156
13157 # Set up the scripts for CONFIG_FILES section.
13158 # No need to generate them if there are no CONFIG_FILES.
13159 # This happens for instance with `./config.status config.h'.
13160 if test -n "$CONFIG_FILES"; then
13161
13162
13163 ac_cr=`echo X | tr X '\015'`
13164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13165 # But we know of no other shell where ac_cr would be empty at this
13166 # point, so we can use a bashism as a fallback.
13167 if test "x$ac_cr" = x; then
13168 eval ac_cr=\$\'\\r\'
13169 fi
13170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13172 ac_cs_awk_cr='\r'
13173 else
13174 ac_cs_awk_cr=$ac_cr
13175 fi
13176
13177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13178 _ACEOF
13179
13180
13181 {
13182 echo "cat >conf$$subs.awk <<_ACEOF" &&
13183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13184 echo "_ACEOF"
13185 } >conf$$subs.sh ||
13186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13188 ac_delim='%!_!# '
13189 for ac_last_try in false false false false false :; do
13190 . ./conf$$subs.sh ||
13191 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13192
13193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13194 if test $ac_delim_n = $ac_delim_num; then
13195 break
13196 elif $ac_last_try; then
13197 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13198 else
13199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13200 fi
13201 done
13202 rm -f conf$$subs.sh
13203
13204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13205 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13206 _ACEOF
13207 sed -n '
13208 h
13209 s/^/S["/; s/!.*/"]=/
13210 p
13211 g
13212 s/^[^!]*!//
13213 :repl
13214 t repl
13215 s/'"$ac_delim"'$//
13216 t delim
13217 :nl
13218 h
13219 s/\(.\{148\}\).*/\1/
13220 t more1
13221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13222 p
13223 n
13224 b repl
13225 :more1
13226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13227 p
13228 g
13229 s/.\{148\}//
13230 t nl
13231 :delim
13232 h
13233 s/\(.\{148\}\).*/\1/
13234 t more2
13235 s/["\\]/\\&/g; s/^/"/; s/$/"/
13236 p
13237 b
13238 :more2
13239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13240 p
13241 g
13242 s/.\{148\}//
13243 t delim
13244 ' <conf$$subs.awk | sed '
13245 /^[^""]/{
13246 N
13247 s/\n//
13248 }
13249 ' >>$CONFIG_STATUS || ac_write_fail=1
13250 rm -f conf$$subs.awk
13251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252 _ACAWK
13253 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13254 for (key in S) S_is_set[key] = 1
13255 FS = "\a"
13256
13257 }
13258 {
13259 line = $ 0
13260 nfields = split(line, field, "@")
13261 substed = 0
13262 len = length(field[1])
13263 for (i = 2; i < nfields; i++) {
13264 key = field[i]
13265 keylen = length(key)
13266 if (S_is_set[key]) {
13267 value = S[key]
13268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13269 len += length(value) + length(field[++i])
13270 substed = 1
13271 } else
13272 len += 1 + keylen
13273 }
13274
13275 print line
13276 }
13277
13278 _ACAWK
13279 _ACEOF
13280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13283 else
13284 cat
13285 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13286 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13287 _ACEOF
13288
13289 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13290 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13291 # trailing colons and then remove the whole line if VPATH becomes empty
13292 # (actually we leave an empty line to preserve line numbers).
13293 if test "x$srcdir" = x.; then
13294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13295 s/:*\$(srcdir):*/:/
13296 s/:*\${srcdir}:*/:/
13297 s/:*@srcdir@:*/:/
13298 s/^\([^=]*=[ ]*\):*/\1/
13299 s/:*$//
13300 s/^[^=]*=[ ]*$//
13301 }'
13302 fi
13303
13304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305 fi # test -n "$CONFIG_FILES"
13306
13307 # Set up the scripts for CONFIG_HEADERS section.
13308 # No need to generate them if there are no CONFIG_HEADERS.
13309 # This happens for instance with `./config.status Makefile'.
13310 if test -n "$CONFIG_HEADERS"; then
13311 cat >"$tmp/defines.awk" <<\_ACAWK ||
13312 BEGIN {
13313 _ACEOF
13314
13315 # Transform confdefs.h into an awk script `defines.awk', embedded as
13316 # here-document in config.status, that substitutes the proper values into
13317 # config.h.in to produce config.h.
13318
13319 # Create a delimiter string that does not exist in confdefs.h, to ease
13320 # handling of long lines.
13321 ac_delim='%!_!# '
13322 for ac_last_try in false false :; do
13323 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13324 if test -z "$ac_t"; then
13325 break
13326 elif $ac_last_try; then
13327 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13328 else
13329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13330 fi
13331 done
13332
13333 # For the awk script, D is an array of macro values keyed by name,
13334 # likewise P contains macro parameters if any. Preserve backslash
13335 # newline sequences.
13336
13337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13338 sed -n '
13339 s/.\{148\}/&'"$ac_delim"'/g
13340 t rset
13341 :rset
13342 s/^[ ]*#[ ]*define[ ][ ]*/ /
13343 t def
13344 d
13345 :def
13346 s/\\$//
13347 t bsnl
13348 s/["\\]/\\&/g
13349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13350 D["\1"]=" \3"/p
13351 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13352 d
13353 :bsnl
13354 s/["\\]/\\&/g
13355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13356 D["\1"]=" \3\\\\\\n"\\/p
13357 t cont
13358 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13359 t cont
13360 d
13361 :cont
13362 n
13363 s/.\{148\}/&'"$ac_delim"'/g
13364 t clear
13365 :clear
13366 s/\\$//
13367 t bsnlc
13368 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13369 d
13370 :bsnlc
13371 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13372 b cont
13373 ' <confdefs.h | sed '
13374 s/'"$ac_delim"'/"\\\
13375 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13376
13377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13378 for (key in D) D_is_set[key] = 1
13379 FS = "\a"
13380 }
13381 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13382 line = \$ 0
13383 split(line, arg, " ")
13384 if (arg[1] == "#") {
13385 defundef = arg[2]
13386 mac1 = arg[3]
13387 } else {
13388 defundef = substr(arg[1], 2)
13389 mac1 = arg[2]
13390 }
13391 split(mac1, mac2, "(") #)
13392 macro = mac2[1]
13393 prefix = substr(line, 1, index(line, defundef) - 1)
13394 if (D_is_set[macro]) {
13395 # Preserve the white space surrounding the "#".
13396 print prefix "define", macro P[macro] D[macro]
13397 next
13398 } else {
13399 # Replace #undef with comments. This is necessary, for example,
13400 # in the case of _POSIX_SOURCE, which is predefined and required
13401 # on some systems where configure will not decide to define it.
13402 if (defundef == "undef") {
13403 print "/*", prefix defundef, macro, "*/"
13404 next
13405 }
13406 }
13407 }
13408 { print }
13409 _ACAWK
13410 _ACEOF
13411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13413 fi # test -n "$CONFIG_HEADERS"
13414
13415
13416 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13417 shift
13418 for ac_tag
13419 do
13420 case $ac_tag in
13421 :[FHLC]) ac_mode=$ac_tag; continue;;
13422 esac
13423 case $ac_mode$ac_tag in
13424 :[FHL]*:*);;
13425 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13426 :[FH]-) ac_tag=-:-;;
13427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13428 esac
13429 ac_save_IFS=$IFS
13430 IFS=:
13431 set x $ac_tag
13432 IFS=$ac_save_IFS
13433 shift
13434 ac_file=$1
13435 shift
13436
13437 case $ac_mode in
13438 :L) ac_source=$1;;
13439 :[FH])
13440 ac_file_inputs=
13441 for ac_f
13442 do
13443 case $ac_f in
13444 -) ac_f="$tmp/stdin";;
13445 *) # Look for the file first in the build tree, then in the source tree
13446 # (if the path is not absolute). The absolute path cannot be DOS-style,
13447 # because $ac_f cannot contain `:'.
13448 test -f "$ac_f" ||
13449 case $ac_f in
13450 [\\/$]*) false;;
13451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13452 esac ||
13453 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13454 esac
13455 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13456 as_fn_append ac_file_inputs " '$ac_f'"
13457 done
13458
13459 # Let's still pretend it is `configure' which instantiates (i.e., don't
13460 # use $as_me), people would be surprised to read:
13461 # /* config.h. Generated by config.status. */
13462 configure_input='Generated from '`
13463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13464 `' by configure.'
13465 if test x"$ac_file" != x-; then
13466 configure_input="$ac_file. $configure_input"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13468 $as_echo "$as_me: creating $ac_file" >&6;}
13469 fi
13470 # Neutralize special characters interpreted by sed in replacement strings.
13471 case $configure_input in #(
13472 *\&* | *\|* | *\\* )
13473 ac_sed_conf_input=`$as_echo "$configure_input" |
13474 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13475 *) ac_sed_conf_input=$configure_input;;
13476 esac
13477
13478 case $ac_tag in
13479 *:-:* | *:-) cat >"$tmp/stdin" \
13480 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13481 esac
13482 ;;
13483 esac
13484
13485 ac_dir=`$as_dirname -- "$ac_file" ||
13486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13487 X"$ac_file" : 'X\(//\)[^/]' \| \
13488 X"$ac_file" : 'X\(//\)$' \| \
13489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13490 $as_echo X"$ac_file" |
13491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13492 s//\1/
13493 q
13494 }
13495 /^X\(\/\/\)[^/].*/{
13496 s//\1/
13497 q
13498 }
13499 /^X\(\/\/\)$/{
13500 s//\1/
13501 q
13502 }
13503 /^X\(\/\).*/{
13504 s//\1/
13505 q
13506 }
13507 s/.*/./; q'`
13508 as_dir="$ac_dir"; as_fn_mkdir_p
13509 ac_builddir=.
13510
13511 case "$ac_dir" in
13512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13513 *)
13514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13515 # A ".." for each directory in $ac_dir_suffix.
13516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13517 case $ac_top_builddir_sub in
13518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13520 esac ;;
13521 esac
13522 ac_abs_top_builddir=$ac_pwd
13523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13524 # for backward compatibility:
13525 ac_top_builddir=$ac_top_build_prefix
13526
13527 case $srcdir in
13528 .) # We are building in place.
13529 ac_srcdir=.
13530 ac_top_srcdir=$ac_top_builddir_sub
13531 ac_abs_top_srcdir=$ac_pwd ;;
13532 [\\/]* | ?:[\\/]* ) # Absolute name.
13533 ac_srcdir=$srcdir$ac_dir_suffix;
13534 ac_top_srcdir=$srcdir
13535 ac_abs_top_srcdir=$srcdir ;;
13536 *) # Relative name.
13537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13538 ac_top_srcdir=$ac_top_build_prefix$srcdir
13539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13540 esac
13541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13542
13543
13544 case $ac_mode in
13545 :F)
13546 #
13547 # CONFIG_FILE
13548 #
13549
13550 case $INSTALL in
13551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13553 esac
13554 ac_MKDIR_P=$MKDIR_P
13555 case $MKDIR_P in
13556 [\\/$]* | ?:[\\/]* ) ;;
13557 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13558 esac
13559 _ACEOF
13560
13561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13562 # If the template does not know about datarootdir, expand it.
13563 # FIXME: This hack should be removed a few years after 2.60.
13564 ac_datarootdir_hack=; ac_datarootdir_seen=
13565 ac_sed_dataroot='
13566 /datarootdir/ {
13567 p
13568 q
13569 }
13570 /@datadir@/p
13571 /@docdir@/p
13572 /@infodir@/p
13573 /@localedir@/p
13574 /@mandir@/p'
13575 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13576 *datarootdir*) ac_datarootdir_seen=yes;;
13577 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13579 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13580 _ACEOF
13581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 ac_datarootdir_hack='
13583 s&@datadir@&$datadir&g
13584 s&@docdir@&$docdir&g
13585 s&@infodir@&$infodir&g
13586 s&@localedir@&$localedir&g
13587 s&@mandir@&$mandir&g
13588 s&\\\${datarootdir}&$datarootdir&g' ;;
13589 esac
13590 _ACEOF
13591
13592 # Neutralize VPATH when `$srcdir' = `.'.
13593 # Shell code in configure.ac might set extrasub.
13594 # FIXME: do we really want to maintain this feature?
13595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13596 ac_sed_extra="$ac_vpsub
13597 $extrasub
13598 _ACEOF
13599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13600 :t
13601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13602 s|@configure_input@|$ac_sed_conf_input|;t t
13603 s&@top_builddir@&$ac_top_builddir_sub&;t t
13604 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13605 s&@srcdir@&$ac_srcdir&;t t
13606 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13607 s&@top_srcdir@&$ac_top_srcdir&;t t
13608 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13609 s&@builddir@&$ac_builddir&;t t
13610 s&@abs_builddir@&$ac_abs_builddir&;t t
13611 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13612 s&@INSTALL@&$ac_INSTALL&;t t
13613 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13614 $ac_datarootdir_hack
13615 "
13616 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13617 || as_fn_error "could not create $ac_file" "$LINENO" 5
13618
13619 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13620 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13621 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13623 which seems to be undefined. Please make sure it is defined." >&5
13624 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13625 which seems to be undefined. Please make sure it is defined." >&2;}
13626
13627 rm -f "$tmp/stdin"
13628 case $ac_file in
13629 -) cat "$tmp/out" && rm -f "$tmp/out";;
13630 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13631 esac \
13632 || as_fn_error "could not create $ac_file" "$LINENO" 5
13633 ;;
13634 :H)
13635 #
13636 # CONFIG_HEADER
13637 #
13638 if test x"$ac_file" != x-; then
13639 {
13640 $as_echo "/* $configure_input */" \
13641 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13642 } >"$tmp/config.h" \
13643 || as_fn_error "could not create $ac_file" "$LINENO" 5
13644 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13646 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13647 else
13648 rm -f "$ac_file"
13649 mv "$tmp/config.h" "$ac_file" \
13650 || as_fn_error "could not create $ac_file" "$LINENO" 5
13651 fi
13652 else
13653 $as_echo "/* $configure_input */" \
13654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13655 || as_fn_error "could not create -" "$LINENO" 5
13656 fi
13657 # Compute "$ac_file"'s index in $config_headers.
13658 _am_arg="$ac_file"
13659 _am_stamp_count=1
13660 for _am_header in $config_headers :; do
13661 case $_am_header in
13662 $_am_arg | $_am_arg:* )
13663 break ;;
13664 * )
13665 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13666 esac
13667 done
13668 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13669 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13670 X"$_am_arg" : 'X\(//\)[^/]' \| \
13671 X"$_am_arg" : 'X\(//\)$' \| \
13672 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13673 $as_echo X"$_am_arg" |
13674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13675 s//\1/
13676 q
13677 }
13678 /^X\(\/\/\)[^/].*/{
13679 s//\1/
13680 q
13681 }
13682 /^X\(\/\/\)$/{
13683 s//\1/
13684 q
13685 }
13686 /^X\(\/\).*/{
13687 s//\1/
13688 q
13689 }
13690 s/.*/./; q'`/stamp-h$_am_stamp_count
13691 ;;
13692
13693 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13694 $as_echo "$as_me: executing $ac_file commands" >&6;}
13695 ;;
13696 esac
13697
13698
13699 case $ac_file$ac_mode in
13700 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13701 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13702 # are listed without --file. Let's play safe and only enable the eval
13703 # if we detect the quoting.
13704 case $CONFIG_FILES in
13705 *\'*) eval set x "$CONFIG_FILES" ;;
13706 *) set x $CONFIG_FILES ;;
13707 esac
13708 shift
13709 for mf
13710 do
13711 # Strip MF so we end up with the name of the file.
13712 mf=`echo "$mf" | sed -e 's/:.*$//'`
13713 # Check whether this is an Automake generated Makefile or not.
13714 # We used to match only the files named `Makefile.in', but
13715 # some people rename them; so instead we look at the file content.
13716 # Grep'ing the first line is not enough: some people post-process
13717 # each Makefile.in and add a new line on top of each file to say so.
13718 # Grep'ing the whole file is not good either: AIX grep has a line
13719 # limit of 2048, but all sed's we know have understand at least 4000.
13720 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13721 dirpart=`$as_dirname -- "$mf" ||
13722 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13723 X"$mf" : 'X\(//\)[^/]' \| \
13724 X"$mf" : 'X\(//\)$' \| \
13725 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13726 $as_echo X"$mf" |
13727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13728 s//\1/
13729 q
13730 }
13731 /^X\(\/\/\)[^/].*/{
13732 s//\1/
13733 q
13734 }
13735 /^X\(\/\/\)$/{
13736 s//\1/
13737 q
13738 }
13739 /^X\(\/\).*/{
13740 s//\1/
13741 q
13742 }
13743 s/.*/./; q'`
13744 else
13745 continue
13746 fi
13747 # Extract the definition of DEPDIR, am__include, and am__quote
13748 # from the Makefile without running `make'.
13749 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13750 test -z "$DEPDIR" && continue
13751 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13752 test -z "am__include" && continue
13753 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13754 # When using ansi2knr, U may be empty or an underscore; expand it
13755 U=`sed -n 's/^U = //p' < "$mf"`
13756 # Find all dependency output files, they are included files with
13757 # $(DEPDIR) in their names. We invoke sed twice because it is the
13758 # simplest approach to changing $(DEPDIR) to its actual value in the
13759 # expansion.
13760 for file in `sed -n "
13761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13763 # Make sure the directory exists.
13764 test -f "$dirpart/$file" && continue
13765 fdir=`$as_dirname -- "$file" ||
13766 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13767 X"$file" : 'X\(//\)[^/]' \| \
13768 X"$file" : 'X\(//\)$' \| \
13769 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13770 $as_echo X"$file" |
13771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13772 s//\1/
13773 q
13774 }
13775 /^X\(\/\/\)[^/].*/{
13776 s//\1/
13777 q
13778 }
13779 /^X\(\/\/\)$/{
13780 s//\1/
13781 q
13782 }
13783 /^X\(\/\).*/{
13784 s//\1/
13785 q
13786 }
13787 s/.*/./; q'`
13788 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13789 # echo "creating $dirpart/$file"
13790 echo '# dummy' > "$dirpart/$file"
13791 done
13792 done
13793 }
13794 ;;
13795 "default":C)
13796 case x$CONFIG_HEADERS in
13797 xconfig.h:config.in)
13798 echo > stamp-h ;;
13799 esac
13800 ;;
13801
13802 esac
13803 done # for ac_tag
13804
13805
13806 as_fn_exit 0
13807 _ACEOF
13808 ac_clean_files=$ac_clean_files_save
13809
13810 test $ac_write_fail = 0 ||
13811 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13812
13813
13814 # configure is writing to config.log, and then calls config.status.
13815 # config.status does its own redirection, appending to config.log.
13816 # Unfortunately, on DOS this fails, as config.log is still kept open
13817 # by configure, so config.status won't be able to write to it; its
13818 # output is simply discarded. So we exec the FD to /dev/null,
13819 # effectively closing config.log, so it can be properly (re)opened and
13820 # appended to by config.status. When coming back to configure, we
13821 # need to make the FD available again.
13822 if test "$no_create" != yes; then
13823 ac_cs_success=:
13824 ac_config_status_args=
13825 test "$silent" = yes &&
13826 ac_config_status_args="$ac_config_status_args --quiet"
13827 exec 5>/dev/null
13828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13829 exec 5>>config.log
13830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13831 # would make configure fail if this is the last instruction.
13832 $ac_cs_success || as_fn_exit $?
13833 fi
13834 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13836 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13837 fi
13838
13839
13840 exit 0
This page took 0.346515 seconds and 5 git commands to generate.