gdb/gnulib: Import frexpl.
[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 NEXT_AS_FIRST_DIRECTIVE_MATH_H
839 NEXT_MATH_H
840 LOCALCHARSET_TESTS_ENVIRONMENT
841 GLIBC21
842 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
843 NEXT_INTTYPES_H
844 UINT64_MAX_EQ_ULONG_MAX
845 UINT32_MAX_LT_UINTMAX_MAX
846 PRIPTR_PREFIX
847 PRI_MACROS_BROKEN
848 INT64_MAX_EQ_LONG_MAX
849 INT32_MAX_LT_INTMAX_MAX
850 REPLACE_STRTOIMAX
851 HAVE_DECL_STRTOUMAX
852 HAVE_DECL_STRTOIMAX
853 HAVE_DECL_IMAXDIV
854 HAVE_DECL_IMAXABS
855 GNULIB_STRTOUMAX
856 GNULIB_STRTOIMAX
857 GNULIB_IMAXDIV
858 GNULIB_IMAXABS
859 GL_GENERATE_STDINT_H_FALSE
860 GL_GENERATE_STDINT_H_TRUE
861 STDINT_H
862 WINT_T_SUFFIX
863 WCHAR_T_SUFFIX
864 SIG_ATOMIC_T_SUFFIX
865 SIZE_T_SUFFIX
866 PTRDIFF_T_SUFFIX
867 HAVE_SIGNED_WINT_T
868 HAVE_SIGNED_WCHAR_T
869 HAVE_SIGNED_SIG_ATOMIC_T
870 BITSIZEOF_WINT_T
871 BITSIZEOF_WCHAR_T
872 BITSIZEOF_SIG_ATOMIC_T
873 BITSIZEOF_SIZE_T
874 BITSIZEOF_PTRDIFF_T
875 APPLE_UNIVERSAL_BUILD
876 HAVE_SYS_BITYPES_H
877 HAVE_SYS_INTTYPES_H
878 HAVE_STDINT_H
879 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
880 NEXT_STDINT_H
881 HAVE_SYS_TYPES_H
882 HAVE_INTTYPES_H
883 HAVE_WCHAR_H
884 HAVE_UNSIGNED_LONG_LONG_INT
885 HAVE_LONG_LONG_INT
886 FREXPL_LIBM
887 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
888 FREXP_LIBM
889 REPLACE_TRUNCL
890 REPLACE_TRUNCF
891 REPLACE_TRUNC
892 REPLACE_SQRTL
893 REPLACE_SIGNBIT_USING_GCC
894 REPLACE_SIGNBIT
895 REPLACE_ROUNDL
896 REPLACE_ROUNDF
897 REPLACE_ROUND
898 REPLACE_REMAINDERL
899 REPLACE_REMAINDERF
900 REPLACE_REMAINDER
901 REPLACE_NAN
902 REPLACE_MODFL
903 REPLACE_MODFF
904 REPLACE_MODF
905 REPLACE_LOGBL
906 REPLACE_LOGBF
907 REPLACE_LOGB
908 REPLACE_LOG2L
909 REPLACE_LOG2F
910 REPLACE_LOG2
911 REPLACE_LOG1PL
912 REPLACE_LOG1PF
913 REPLACE_LOG1P
914 REPLACE_LOG10L
915 REPLACE_LOG10F
916 REPLACE_LOG10
917 REPLACE_LOGL
918 REPLACE_LOGF
919 REPLACE_LOG
920 REPLACE_LDEXPL
921 REPLACE_ISNAN
922 REPLACE_ISINF
923 REPLACE_ISFINITE
924 REPLACE_ILOGBF
925 REPLACE_ILOGB
926 REPLACE_HYPOTL
927 REPLACE_HYPOTF
928 REPLACE_HYPOT
929 REPLACE_HUGE_VAL
930 REPLACE_FREXPL
931 REPLACE_FREXP
932 REPLACE_FREXPF
933 REPLACE_FMODL
934 REPLACE_FMODF
935 REPLACE_FMOD
936 REPLACE_FMAL
937 REPLACE_FMAF
938 REPLACE_FMA
939 REPLACE_FLOORL
940 REPLACE_FLOORF
941 REPLACE_FLOOR
942 REPLACE_FABSL
943 REPLACE_EXP2L
944 REPLACE_EXP2
945 REPLACE_EXPM1F
946 REPLACE_EXPM1
947 REPLACE_CEILL
948 REPLACE_CEILF
949 REPLACE_CEIL
950 REPLACE_CBRTL
951 REPLACE_CBRTF
952 HAVE_DECL_TRUNCL
953 HAVE_DECL_TRUNCF
954 HAVE_DECL_TRUNC
955 HAVE_DECL_TANL
956 HAVE_DECL_SQRTL
957 HAVE_DECL_SINL
958 HAVE_DECL_ROUNDL
959 HAVE_DECL_ROUNDF
960 HAVE_DECL_ROUND
961 HAVE_DECL_RINTF
962 HAVE_DECL_REMAINDERL
963 HAVE_DECL_REMAINDER
964 HAVE_DECL_LOGB
965 HAVE_DECL_LOG2L
966 HAVE_DECL_LOG2F
967 HAVE_DECL_LOG2
968 HAVE_DECL_LOG10L
969 HAVE_DECL_LOGL
970 HAVE_DECL_LDEXPL
971 HAVE_DECL_FREXPL
972 HAVE_DECL_FLOORL
973 HAVE_DECL_FLOORF
974 HAVE_DECL_EXPM1L
975 HAVE_DECL_EXP2L
976 HAVE_DECL_EXP2F
977 HAVE_DECL_EXP2
978 HAVE_DECL_EXPL
979 HAVE_DECL_COSL
980 HAVE_DECL_COPYSIGNF
981 HAVE_DECL_CEILL
982 HAVE_DECL_CEILF
983 HAVE_DECL_CBRTL
984 HAVE_DECL_CBRTF
985 HAVE_DECL_ATANL
986 HAVE_DECL_ASINL
987 HAVE_DECL_ACOSL
988 HAVE_TANHF
989 HAVE_TANL
990 HAVE_TANF
991 HAVE_SQRTL
992 HAVE_SQRTF
993 HAVE_SINHF
994 HAVE_SINL
995 HAVE_SINF
996 HAVE_RINTL
997 HAVE_RINT
998 HAVE_REMAINDERF
999 HAVE_REMAINDER
1000 HAVE_POWF
1001 HAVE_MODFL
1002 HAVE_MODFF
1003 HAVE_LOGBL
1004 HAVE_LOGBF
1005 HAVE_LOG1PL
1006 HAVE_LOG1PF
1007 HAVE_LOG1P
1008 HAVE_LOG10L
1009 HAVE_LOG10F
1010 HAVE_LOGL
1011 HAVE_LOGF
1012 HAVE_LDEXPF
1013 HAVE_ISNANL
1014 HAVE_ISNAND
1015 HAVE_ISNANF
1016 HAVE_ILOGBL
1017 HAVE_ILOGBF
1018 HAVE_ILOGB
1019 HAVE_HYPOTL
1020 HAVE_HYPOTF
1021 HAVE_FREXPF
1022 HAVE_FMODL
1023 HAVE_FMODF
1024 HAVE_FMAL
1025 HAVE_FMAF
1026 HAVE_FMA
1027 HAVE_FABSL
1028 HAVE_FABSF
1029 HAVE_EXPM1F
1030 HAVE_EXPM1
1031 HAVE_EXPL
1032 HAVE_EXPF
1033 HAVE_COSHF
1034 HAVE_COSL
1035 HAVE_COSF
1036 HAVE_COPYSIGNL
1037 HAVE_COPYSIGN
1038 HAVE_CBRTL
1039 HAVE_CBRTF
1040 HAVE_CBRT
1041 HAVE_ATAN2F
1042 HAVE_ATANL
1043 HAVE_ATANF
1044 HAVE_ASINL
1045 HAVE_ASINF
1046 HAVE_ACOSL
1047 HAVE_ACOSF
1048 GNULIB_TRUNCL
1049 GNULIB_TRUNCF
1050 GNULIB_TRUNC
1051 GNULIB_TANHF
1052 GNULIB_TANL
1053 GNULIB_TANF
1054 GNULIB_SQRTL
1055 GNULIB_SQRTF
1056 GNULIB_SINHF
1057 GNULIB_SINL
1058 GNULIB_SINF
1059 GNULIB_SIGNBIT
1060 GNULIB_ROUNDL
1061 GNULIB_ROUNDF
1062 GNULIB_ROUND
1063 GNULIB_RINTL
1064 GNULIB_RINTF
1065 GNULIB_RINT
1066 GNULIB_REMAINDERL
1067 GNULIB_REMAINDERF
1068 GNULIB_REMAINDER
1069 GNULIB_POWF
1070 GNULIB_MODFL
1071 GNULIB_MODFF
1072 GNULIB_MODF
1073 GNULIB_LOGBL
1074 GNULIB_LOGBF
1075 GNULIB_LOGB
1076 GNULIB_LOG2L
1077 GNULIB_LOG2F
1078 GNULIB_LOG2
1079 GNULIB_LOG1PL
1080 GNULIB_LOG1PF
1081 GNULIB_LOG1P
1082 GNULIB_LOG10L
1083 GNULIB_LOG10F
1084 GNULIB_LOG10
1085 GNULIB_LOGL
1086 GNULIB_LOGF
1087 GNULIB_LOG
1088 GNULIB_LDEXPL
1089 GNULIB_LDEXPF
1090 GNULIB_ISNANL
1091 GNULIB_ISNAND
1092 GNULIB_ISNANF
1093 GNULIB_ISNAN
1094 GNULIB_ISINF
1095 GNULIB_ISFINITE
1096 GNULIB_ILOGBL
1097 GNULIB_ILOGBF
1098 GNULIB_ILOGB
1099 GNULIB_HYPOTL
1100 GNULIB_HYPOTF
1101 GNULIB_HYPOT
1102 GNULIB_FREXPL
1103 GNULIB_FREXP
1104 GNULIB_FREXPF
1105 GNULIB_FMODL
1106 GNULIB_FMODF
1107 GNULIB_FMOD
1108 GNULIB_FMAL
1109 GNULIB_FMAF
1110 GNULIB_FMA
1111 GNULIB_FLOORL
1112 GNULIB_FLOORF
1113 GNULIB_FLOOR
1114 GNULIB_FABSL
1115 GNULIB_FABSF
1116 GNULIB_EXPM1L
1117 GNULIB_EXPM1F
1118 GNULIB_EXPM1
1119 GNULIB_EXP2L
1120 GNULIB_EXP2F
1121 GNULIB_EXP2
1122 GNULIB_EXPL
1123 GNULIB_EXPF
1124 GNULIB_COSHF
1125 GNULIB_COSL
1126 GNULIB_COSF
1127 GNULIB_COPYSIGNL
1128 GNULIB_COPYSIGNF
1129 GNULIB_COPYSIGN
1130 GNULIB_CEILL
1131 GNULIB_CEILF
1132 GNULIB_CEIL
1133 GNULIB_CBRTL
1134 GNULIB_CBRTF
1135 GNULIB_CBRT
1136 GNULIB_ATAN2F
1137 GNULIB_ATANL
1138 GNULIB_ATANF
1139 GNULIB_ASINL
1140 GNULIB_ASINF
1141 GNULIB_ACOSL
1142 GNULIB_ACOSF
1143 GL_GENERATE_FNMATCH_H_FALSE
1144 GL_GENERATE_FNMATCH_H_TRUE
1145 FNMATCH_H
1146 REPLACE_ITOLD
1147 GL_GENERATE_FLOAT_H_FALSE
1148 GL_GENERATE_FLOAT_H_TRUE
1149 FLOAT_H
1150 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1151 NEXT_FLOAT_H
1152 PRAGMA_COLUMNS
1153 PRAGMA_SYSTEM_HEADER
1154 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1155 INCLUDE_NEXT
1156 pkglibexecdir
1157 lispdir
1158 GL_GENERATE_ALLOCA_H_FALSE
1159 GL_GENERATE_ALLOCA_H_TRUE
1160 ALLOCA_H
1161 ALLOCA
1162 GL_COND_LIBTOOL_FALSE
1163 GL_COND_LIBTOOL_TRUE
1164 target_os
1165 target_vendor
1166 target_cpu
1167 target
1168 RANLIB
1169 ARFLAGS
1170 AR
1171 EGREP
1172 GREP
1173 CPP
1174 host_os
1175 host_vendor
1176 host_cpu
1177 host
1178 build_os
1179 build_vendor
1180 build_cpu
1181 build
1182 OBJEXT
1183 EXEEXT
1184 ac_ct_CC
1185 CPPFLAGS
1186 LDFLAGS
1187 CFLAGS
1188 CC
1189 MAINT
1190 MAINTAINER_MODE_FALSE
1191 MAINTAINER_MODE_TRUE
1192 target_alias
1193 host_alias
1194 build_alias
1195 LIBS
1196 ECHO_T
1197 ECHO_N
1198 ECHO_C
1199 DEFS
1200 mandir
1201 localedir
1202 libdir
1203 psdir
1204 pdfdir
1205 dvidir
1206 htmldir
1207 infodir
1208 docdir
1209 oldincludedir
1210 includedir
1211 localstatedir
1212 sharedstatedir
1213 sysconfdir
1214 datadir
1215 datarootdir
1216 libexecdir
1217 sbindir
1218 bindir
1219 program_transform_name
1220 prefix
1221 exec_prefix
1222 PACKAGE_URL
1223 PACKAGE_BUGREPORT
1224 PACKAGE_STRING
1225 PACKAGE_VERSION
1226 PACKAGE_TARNAME
1227 PACKAGE_NAME
1228 PATH_SEPARATOR
1229 SHELL'
1230 ac_subst_files=''
1231 ac_user_opts='
1232 enable_option_checking
1233 enable_maintainer_mode
1234 enable_dependency_tracking
1235 '
1236 ac_precious_vars='build_alias
1237 host_alias
1238 target_alias
1239 CC
1240 CFLAGS
1241 LDFLAGS
1242 LIBS
1243 CPPFLAGS
1244 CPP'
1245
1246
1247 # Initialize some variables set by options.
1248 ac_init_help=
1249 ac_init_version=false
1250 ac_unrecognized_opts=
1251 ac_unrecognized_sep=
1252 # The variables have the same names as the options, with
1253 # dashes changed to underlines.
1254 cache_file=/dev/null
1255 exec_prefix=NONE
1256 no_create=
1257 no_recursion=
1258 prefix=NONE
1259 program_prefix=NONE
1260 program_suffix=NONE
1261 program_transform_name=s,x,x,
1262 silent=
1263 site=
1264 srcdir=
1265 verbose=
1266 x_includes=NONE
1267 x_libraries=NONE
1268
1269 # Installation directory options.
1270 # These are left unexpanded so users can "make install exec_prefix=/foo"
1271 # and all the variables that are supposed to be based on exec_prefix
1272 # by default will actually change.
1273 # Use braces instead of parens because sh, perl, etc. also accept them.
1274 # (The list follows the same order as the GNU Coding Standards.)
1275 bindir='${exec_prefix}/bin'
1276 sbindir='${exec_prefix}/sbin'
1277 libexecdir='${exec_prefix}/libexec'
1278 datarootdir='${prefix}/share'
1279 datadir='${datarootdir}'
1280 sysconfdir='${prefix}/etc'
1281 sharedstatedir='${prefix}/com'
1282 localstatedir='${prefix}/var'
1283 includedir='${prefix}/include'
1284 oldincludedir='/usr/include'
1285 docdir='${datarootdir}/doc/${PACKAGE}'
1286 infodir='${datarootdir}/info'
1287 htmldir='${docdir}'
1288 dvidir='${docdir}'
1289 pdfdir='${docdir}'
1290 psdir='${docdir}'
1291 libdir='${exec_prefix}/lib'
1292 localedir='${datarootdir}/locale'
1293 mandir='${datarootdir}/man'
1294
1295 ac_prev=
1296 ac_dashdash=
1297 for ac_option
1298 do
1299 # If the previous option needs an argument, assign it.
1300 if test -n "$ac_prev"; then
1301 eval $ac_prev=\$ac_option
1302 ac_prev=
1303 continue
1304 fi
1305
1306 case $ac_option in
1307 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308 *) ac_optarg=yes ;;
1309 esac
1310
1311 # Accept the important Cygnus configure options, so we can diagnose typos.
1312
1313 case $ac_dashdash$ac_option in
1314 --)
1315 ac_dashdash=yes ;;
1316
1317 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1318 ac_prev=bindir ;;
1319 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1320 bindir=$ac_optarg ;;
1321
1322 -build | --build | --buil | --bui | --bu)
1323 ac_prev=build_alias ;;
1324 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1325 build_alias=$ac_optarg ;;
1326
1327 -cache-file | --cache-file | --cache-fil | --cache-fi \
1328 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1329 ac_prev=cache_file ;;
1330 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1331 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1332 cache_file=$ac_optarg ;;
1333
1334 --config-cache | -C)
1335 cache_file=config.cache ;;
1336
1337 -datadir | --datadir | --datadi | --datad)
1338 ac_prev=datadir ;;
1339 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1340 datadir=$ac_optarg ;;
1341
1342 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1343 | --dataroo | --dataro | --datar)
1344 ac_prev=datarootdir ;;
1345 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1346 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1347 datarootdir=$ac_optarg ;;
1348
1349 -disable-* | --disable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error "invalid feature name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358 "enable_$ac_useropt"
1359 "*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval enable_$ac_useropt=no ;;
1364
1365 -docdir | --docdir | --docdi | --doc | --do)
1366 ac_prev=docdir ;;
1367 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1368 docdir=$ac_optarg ;;
1369
1370 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1371 ac_prev=dvidir ;;
1372 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1373 dvidir=$ac_optarg ;;
1374
1375 -enable-* | --enable-*)
1376 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error "invalid feature name: $ac_useropt"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1383 *"
1384 "enable_$ac_useropt"
1385 "*) ;;
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1388 esac
1389 eval enable_$ac_useropt=\$ac_optarg ;;
1390
1391 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1392 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1393 | --exec | --exe | --ex)
1394 ac_prev=exec_prefix ;;
1395 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1396 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1397 | --exec=* | --exe=* | --ex=*)
1398 exec_prefix=$ac_optarg ;;
1399
1400 -gas | --gas | --ga | --g)
1401 # Obsolete; use --with-gas.
1402 with_gas=yes ;;
1403
1404 -help | --help | --hel | --he | -h)
1405 ac_init_help=long ;;
1406 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1407 ac_init_help=recursive ;;
1408 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1409 ac_init_help=short ;;
1410
1411 -host | --host | --hos | --ho)
1412 ac_prev=host_alias ;;
1413 -host=* | --host=* | --hos=* | --ho=*)
1414 host_alias=$ac_optarg ;;
1415
1416 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1417 ac_prev=htmldir ;;
1418 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1419 | --ht=*)
1420 htmldir=$ac_optarg ;;
1421
1422 -includedir | --includedir | --includedi | --included | --include \
1423 | --includ | --inclu | --incl | --inc)
1424 ac_prev=includedir ;;
1425 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1426 | --includ=* | --inclu=* | --incl=* | --inc=*)
1427 includedir=$ac_optarg ;;
1428
1429 -infodir | --infodir | --infodi | --infod | --info | --inf)
1430 ac_prev=infodir ;;
1431 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1432 infodir=$ac_optarg ;;
1433
1434 -libdir | --libdir | --libdi | --libd)
1435 ac_prev=libdir ;;
1436 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1437 libdir=$ac_optarg ;;
1438
1439 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1440 | --libexe | --libex | --libe)
1441 ac_prev=libexecdir ;;
1442 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1443 | --libexe=* | --libex=* | --libe=*)
1444 libexecdir=$ac_optarg ;;
1445
1446 -localedir | --localedir | --localedi | --localed | --locale)
1447 ac_prev=localedir ;;
1448 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1449 localedir=$ac_optarg ;;
1450
1451 -localstatedir | --localstatedir | --localstatedi | --localstated \
1452 | --localstate | --localstat | --localsta | --localst | --locals)
1453 ac_prev=localstatedir ;;
1454 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1455 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1456 localstatedir=$ac_optarg ;;
1457
1458 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1459 ac_prev=mandir ;;
1460 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1461 mandir=$ac_optarg ;;
1462
1463 -nfp | --nfp | --nf)
1464 # Obsolete; use --without-fp.
1465 with_fp=no ;;
1466
1467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1468 | --no-cr | --no-c | -n)
1469 no_create=yes ;;
1470
1471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1473 no_recursion=yes ;;
1474
1475 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1476 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1477 | --oldin | --oldi | --old | --ol | --o)
1478 ac_prev=oldincludedir ;;
1479 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1480 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1481 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1482 oldincludedir=$ac_optarg ;;
1483
1484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1485 ac_prev=prefix ;;
1486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1487 prefix=$ac_optarg ;;
1488
1489 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1490 | --program-pre | --program-pr | --program-p)
1491 ac_prev=program_prefix ;;
1492 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1493 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1494 program_prefix=$ac_optarg ;;
1495
1496 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1497 | --program-suf | --program-su | --program-s)
1498 ac_prev=program_suffix ;;
1499 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1500 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1501 program_suffix=$ac_optarg ;;
1502
1503 -program-transform-name | --program-transform-name \
1504 | --program-transform-nam | --program-transform-na \
1505 | --program-transform-n | --program-transform- \
1506 | --program-transform | --program-transfor \
1507 | --program-transfo | --program-transf \
1508 | --program-trans | --program-tran \
1509 | --progr-tra | --program-tr | --program-t)
1510 ac_prev=program_transform_name ;;
1511 -program-transform-name=* | --program-transform-name=* \
1512 | --program-transform-nam=* | --program-transform-na=* \
1513 | --program-transform-n=* | --program-transform-=* \
1514 | --program-transform=* | --program-transfor=* \
1515 | --program-transfo=* | --program-transf=* \
1516 | --program-trans=* | --program-tran=* \
1517 | --progr-tra=* | --program-tr=* | --program-t=*)
1518 program_transform_name=$ac_optarg ;;
1519
1520 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1521 ac_prev=pdfdir ;;
1522 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1523 pdfdir=$ac_optarg ;;
1524
1525 -psdir | --psdir | --psdi | --psd | --ps)
1526 ac_prev=psdir ;;
1527 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1528 psdir=$ac_optarg ;;
1529
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 silent=yes ;;
1533
1534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1535 ac_prev=sbindir ;;
1536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1537 | --sbi=* | --sb=*)
1538 sbindir=$ac_optarg ;;
1539
1540 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1542 | --sharedst | --shareds | --shared | --share | --shar \
1543 | --sha | --sh)
1544 ac_prev=sharedstatedir ;;
1545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1548 | --sha=* | --sh=*)
1549 sharedstatedir=$ac_optarg ;;
1550
1551 -site | --site | --sit)
1552 ac_prev=site ;;
1553 -site=* | --site=* | --sit=*)
1554 site=$ac_optarg ;;
1555
1556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1557 ac_prev=srcdir ;;
1558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1559 srcdir=$ac_optarg ;;
1560
1561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1562 | --syscon | --sysco | --sysc | --sys | --sy)
1563 ac_prev=sysconfdir ;;
1564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1566 sysconfdir=$ac_optarg ;;
1567
1568 -target | --target | --targe | --targ | --tar | --ta | --t)
1569 ac_prev=target_alias ;;
1570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1571 target_alias=$ac_optarg ;;
1572
1573 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1574 verbose=yes ;;
1575
1576 -version | --version | --versio | --versi | --vers | -V)
1577 ac_init_version=: ;;
1578
1579 -with-* | --with-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error "invalid package name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1587 *"
1588 "with_$ac_useropt"
1589 "*) ;;
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1592 esac
1593 eval with_$ac_useropt=\$ac_optarg ;;
1594
1595 -without-* | --without-*)
1596 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1597 # Reject names that are not valid shell variable names.
1598 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1599 as_fn_error "invalid package name: $ac_useropt"
1600 ac_useropt_orig=$ac_useropt
1601 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1602 case $ac_user_opts in
1603 *"
1604 "with_$ac_useropt"
1605 "*) ;;
1606 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1607 ac_unrecognized_sep=', ';;
1608 esac
1609 eval with_$ac_useropt=no ;;
1610
1611 --x)
1612 # Obsolete; use --with-x.
1613 with_x=yes ;;
1614
1615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1616 | --x-incl | --x-inc | --x-in | --x-i)
1617 ac_prev=x_includes ;;
1618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1620 x_includes=$ac_optarg ;;
1621
1622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1624 ac_prev=x_libraries ;;
1625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1627 x_libraries=$ac_optarg ;;
1628
1629 -*) as_fn_error "unrecognized option: \`$ac_option'
1630 Try \`$0 --help' for more information."
1631 ;;
1632
1633 *=*)
1634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1635 # Reject names that are not valid shell variable names.
1636 case $ac_envvar in #(
1637 '' | [0-9]* | *[!_$as_cr_alnum]* )
1638 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1639 esac
1640 eval $ac_envvar=\$ac_optarg
1641 export $ac_envvar ;;
1642
1643 *)
1644 # FIXME: should be removed in autoconf 3.0.
1645 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1647 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1649 ;;
1650
1651 esac
1652 done
1653
1654 if test -n "$ac_prev"; then
1655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1656 as_fn_error "missing argument to $ac_option"
1657 fi
1658
1659 if test -n "$ac_unrecognized_opts"; then
1660 case $enable_option_checking in
1661 no) ;;
1662 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1663 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1664 esac
1665 fi
1666
1667 # Check all directory arguments for consistency.
1668 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1669 datadir sysconfdir sharedstatedir localstatedir includedir \
1670 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1671 libdir localedir mandir
1672 do
1673 eval ac_val=\$$ac_var
1674 # Remove trailing slashes.
1675 case $ac_val in
1676 */ )
1677 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1678 eval $ac_var=\$ac_val;;
1679 esac
1680 # Be sure to have absolute directory names.
1681 case $ac_val in
1682 [\\/$]* | ?:[\\/]* ) continue;;
1683 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1684 esac
1685 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1686 done
1687
1688 # There might be people who depend on the old broken behavior: `$host'
1689 # used to hold the argument of --host etc.
1690 # FIXME: To remove some day.
1691 build=$build_alias
1692 host=$host_alias
1693 target=$target_alias
1694
1695 # FIXME: To remove some day.
1696 if test "x$host_alias" != x; then
1697 if test "x$build_alias" = x; then
1698 cross_compiling=maybe
1699 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1700 If a cross compiler is detected then cross compile mode will be used." >&2
1701 elif test "x$build_alias" != "x$host_alias"; then
1702 cross_compiling=yes
1703 fi
1704 fi
1705
1706 ac_tool_prefix=
1707 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709 test "$silent" = yes && exec 6>/dev/null
1710
1711
1712 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713 ac_ls_di=`ls -di .` &&
1714 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1715 as_fn_error "working directory cannot be determined"
1716 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1717 as_fn_error "pwd does not report name of working directory"
1718
1719
1720 # Find the source files, if location was not specified.
1721 if test -z "$srcdir"; then
1722 ac_srcdir_defaulted=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir=`$as_dirname -- "$as_myself" ||
1725 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729 $as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\/\)[^/].*/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)$/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\).*/{
1743 s//\1/
1744 q
1745 }
1746 s/.*/./; q'`
1747 srcdir=$ac_confdir
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 srcdir=..
1750 fi
1751 else
1752 ac_srcdir_defaulted=no
1753 fi
1754 if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1756 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1757 fi
1758 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759 ac_abs_confdir=`(
1760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1761 pwd)`
1762 # When building in place, set srcdir=.
1763 if test "$ac_abs_confdir" = "$ac_pwd"; then
1764 srcdir=.
1765 fi
1766 # Remove unnecessary trailing slashes from srcdir.
1767 # Double slashes in file names in object file debugging info
1768 # mess up M-x gdb in Emacs.
1769 case $srcdir in
1770 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771 esac
1772 for ac_var in $ac_precious_vars; do
1773 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_${ac_var}_value=\$${ac_var}
1775 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777 done
1778
1779 #
1780 # Report the --help message.
1781 #
1782 if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1785 cat <<_ACEOF
1786 \`configure' configures this package to adapt to many kinds of systems.
1787
1788 Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791 VAR=VALUE. See below for descriptions of some of the useful variables.
1792
1793 Defaults for the options are specified in brackets.
1794
1795 Configuration:
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
1800 -q, --quiet, --silent do not print \`checking...' messages
1801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1805
1806 Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1810 [PREFIX]
1811
1812 By default, \`make install' will install all the files in
1813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815 for instance \`--prefix=\$HOME'.
1816
1817 For better control, use the options below.
1818
1819 Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
1834 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1839 _ACEOF
1840
1841 cat <<\_ACEOF
1842
1843 Program names:
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1847
1848 System types:
1849 --build=BUILD configure for building on BUILD [guessed]
1850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1851 --target=TARGET configure for building compilers for TARGET [HOST]
1852 _ACEOF
1853 fi
1854
1855 if test -n "$ac_init_help"; then
1856
1857 cat <<\_ACEOF
1858
1859 Optional Features:
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1863 --enable-maintainer-mode enable make rules and dependencies not useful
1864 (and sometimes confusing) to the casual installer
1865 --disable-dependency-tracking speeds up one-time build
1866 --enable-dependency-tracking do not reject slow dependency extractors
1867
1868 Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CPP C preprocessor
1877
1878 Use these variables to override the choices made by `configure' or to help
1879 it to find libraries and programs with nonstandard names/locations.
1880
1881 Report bugs to the package provider.
1882 _ACEOF
1883 ac_status=$?
1884 fi
1885
1886 if test "$ac_init_help" = "recursive"; then
1887 # If there are subdirs, report their specific --help.
1888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1889 test -d "$ac_dir" ||
1890 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1891 continue
1892 ac_builddir=.
1893
1894 case "$ac_dir" in
1895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1896 *)
1897 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1898 # A ".." for each directory in $ac_dir_suffix.
1899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1900 case $ac_top_builddir_sub in
1901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1903 esac ;;
1904 esac
1905 ac_abs_top_builddir=$ac_pwd
1906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1907 # for backward compatibility:
1908 ac_top_builddir=$ac_top_build_prefix
1909
1910 case $srcdir in
1911 .) # We are building in place.
1912 ac_srcdir=.
1913 ac_top_srcdir=$ac_top_builddir_sub
1914 ac_abs_top_srcdir=$ac_pwd ;;
1915 [\\/]* | ?:[\\/]* ) # Absolute name.
1916 ac_srcdir=$srcdir$ac_dir_suffix;
1917 ac_top_srcdir=$srcdir
1918 ac_abs_top_srcdir=$srcdir ;;
1919 *) # Relative name.
1920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1921 ac_top_srcdir=$ac_top_build_prefix$srcdir
1922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1923 esac
1924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1925
1926 cd "$ac_dir" || { ac_status=$?; continue; }
1927 # Check for guested configure.
1928 if test -f "$ac_srcdir/configure.gnu"; then
1929 echo &&
1930 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1931 elif test -f "$ac_srcdir/configure"; then
1932 echo &&
1933 $SHELL "$ac_srcdir/configure" --help=recursive
1934 else
1935 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1936 fi || ac_status=$?
1937 cd "$ac_pwd" || { ac_status=$?; break; }
1938 done
1939 fi
1940
1941 test -n "$ac_init_help" && exit $ac_status
1942 if $ac_init_version; then
1943 cat <<\_ACEOF
1944 configure
1945 generated by GNU Autoconf 2.64
1946
1947 Copyright (C) 2009 Free Software Foundation, Inc.
1948 This configure script is free software; the Free Software Foundation
1949 gives unlimited permission to copy, distribute and modify it.
1950 _ACEOF
1951 exit
1952 fi
1953
1954 ## ------------------------ ##
1955 ## Autoconf initialization. ##
1956 ## ------------------------ ##
1957
1958 # ac_fn_c_try_compile LINENO
1959 # --------------------------
1960 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_compile ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext
1965 if { { ac_try="$ac_compile"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_compile") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest.$ac_objext; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1993
1994 } # ac_fn_c_try_compile
1995
1996 # ac_fn_c_try_cpp LINENO
1997 # ----------------------
1998 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1999 ac_fn_c_try_cpp ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_cpp conftest.$ac_ext"
2003 case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2010 ac_status=$?
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2015 fi
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } >/dev/null && {
2018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2019 test ! -s conftest.err
2020 }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 return $ac_retval
2030
2031 } # ac_fn_c_try_cpp
2032
2033 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2034 # -------------------------------------------------------
2035 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036 # the include files in INCLUDES and setting the cache variable VAR
2037 # accordingly.
2038 ac_fn_c_check_header_mongrel ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 else
2051 # Is the header compilable?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053 $as_echo_n "checking $2 usability... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2061 else
2062 ac_header_compiler=no
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066 $as_echo "$ac_header_compiler" >&6; }
2067
2068 # Is the header present?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070 $as_echo_n "checking $2 presence... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 #include <$2>
2074 _ACEOF
2075 if ac_fn_c_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2077 else
2078 ac_header_preproc=no
2079 fi
2080 rm -f conftest.err conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082 $as_echo "$ac_header_preproc" >&6; }
2083
2084 # So? What about this header?
2085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2086 yes:no: )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ;;
2092 no:yes:* )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ;;
2104 esac
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 eval "$3=\$ac_header_compiler"
2111 fi
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 fi
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117
2118 } # ac_fn_c_check_header_mongrel
2119
2120 # ac_fn_c_try_run LINENO
2121 # ----------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2123 # that executables *can* be run.
2124 ac_fn_c_try_run ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_link"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>&5
2135 ac_status=$?
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2138 { { case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141 esac
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_try") 2>&5
2145 ac_status=$?
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; }; }; then :
2148 ac_retval=0
2149 else
2150 $as_echo "$as_me: program exited with status $ac_status" >&5
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=$ac_status
2155 fi
2156 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 return $ac_retval
2159
2160 } # ac_fn_c_try_run
2161
2162 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2163 # -------------------------------------------------------
2164 # Tests whether HEADER exists and can be compiled using the include files in
2165 # INCLUDES, setting the cache variable VAR accordingly.
2166 ac_fn_c_check_header_compile ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 #include <$2>
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 fi
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190
2191 } # ac_fn_c_check_header_compile
2192
2193 # ac_fn_c_try_link LINENO
2194 # -----------------------
2195 # Try to link conftest.$ac_ext, and return whether this succeeded.
2196 ac_fn_c_try_link ()
2197 {
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 rm -f conftest.$ac_objext conftest$ac_exeext
2200 if { { ac_try="$ac_link"
2201 case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_link") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2213 fi
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && {
2216 test -z "$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 } && test -s conftest$ac_exeext && {
2219 test "$cross_compiling" = yes ||
2220 $as_test_x conftest$ac_exeext
2221 }; then :
2222 ac_retval=0
2223 else
2224 $as_echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 ac_retval=1
2228 fi
2229 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2230 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2231 # interfere with the next link command; also delete a directory that is
2232 # left behind by Apple's compiler. We do this before executing the actions.
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 return $ac_retval
2236
2237 } # ac_fn_c_try_link
2238
2239 # ac_fn_c_check_func LINENO FUNC VAR
2240 # ----------------------------------
2241 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2242 ac_fn_c_check_func ()
2243 {
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2254 #define $2 innocuous_$2
2255
2256 /* System header to define __stub macros and hopefully few prototypes,
2257 which can conflict with char $2 (); below.
2258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2259 <limits.h> exists even on freestanding compilers. */
2260
2261 #ifdef __STDC__
2262 # include <limits.h>
2263 #else
2264 # include <assert.h>
2265 #endif
2266
2267 #undef $2
2268
2269 /* Override any GCC internal prototype to avoid an error.
2270 Use char because int might match the return type of a GCC
2271 builtin and then its argument prototype would still apply. */
2272 #ifdef __cplusplus
2273 extern "C"
2274 #endif
2275 char $2 ();
2276 /* The GNU C library defines this for functions which it implements
2277 to always fail with ENOSYS. Some functions are actually named
2278 something starting with __ and the normal name is an alias. */
2279 #if defined __stub_$2 || defined __stub___$2
2280 choke me
2281 #endif
2282
2283 int
2284 main ()
2285 {
2286 return $2 ();
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_link "$LINENO"; then :
2292 eval "$3=yes"
2293 else
2294 eval "$3=no"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext \
2297 conftest$ac_exeext conftest.$ac_ext
2298 fi
2299 eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2303
2304 } # ac_fn_c_check_func
2305
2306 # ac_fn_c_check_decl LINENO SYMBOL VAR
2307 # ------------------------------------
2308 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2309 ac_fn_c_check_decl ()
2310 {
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2313 $as_echo_n "checking whether $2 is declared... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 int
2321 main ()
2322 {
2323 #ifndef $2
2324 (void) $2;
2325 #endif
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$3=yes"
2333 else
2334 eval "$3=no"
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343 } # ac_fn_c_check_decl
2344
2345 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2346 # --------------------------------------------
2347 # Tries to find the compile-time value of EXPR in a program that includes
2348 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2349 # computed
2350 ac_fn_c_compute_int ()
2351 {
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if test "$cross_compiling" = yes; then
2354 # Depending upon the size, compute the lo and hi bounds.
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2357 $4
2358 int
2359 main ()
2360 {
2361 static int test_array [1 - 2 * !(($2) >= 0)];
2362 test_array [0] = 0
2363
2364 ;
2365 return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369 ac_lo=0 ac_mid=0
2370 while :; do
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2373 $4
2374 int
2375 main ()
2376 {
2377 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2378 test_array [0] = 0
2379
2380 ;
2381 return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_hi=$ac_mid; break
2386 else
2387 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2388 if test $ac_lo -le $ac_mid; then
2389 ac_lo= ac_hi=
2390 break
2391 fi
2392 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 done
2396 else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $4
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(($2) < 0)];
2404 test_array [0] = 0
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411 ac_hi=-1 ac_mid=-1
2412 while :; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $4
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2420 test_array [0] = 0
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_lo=$ac_mid; break
2428 else
2429 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2430 if test $ac_mid -le $ac_hi; then
2431 ac_lo= ac_hi=
2432 break
2433 fi
2434 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 done
2438 else
2439 ac_lo= ac_hi=
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 # Binary search between lo and hi bounds.
2445 while test "x$ac_lo" != "x$ac_hi"; do
2446 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 $4
2450 int
2451 main ()
2452 {
2453 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454 test_array [0] = 0
2455
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_hi=$ac_mid
2462 else
2463 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2464 fi
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 done
2467 case $ac_lo in #((
2468 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2469 '') ac_retval=1 ;;
2470 esac
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 static long int longval () { return $2; }
2476 static unsigned long int ulongval () { return $2; }
2477 #include <stdio.h>
2478 #include <stdlib.h>
2479 int
2480 main ()
2481 {
2482
2483 FILE *f = fopen ("conftest.val", "w");
2484 if (! f)
2485 return 1;
2486 if (($2) < 0)
2487 {
2488 long int i = longval ();
2489 if (i != ($2))
2490 return 1;
2491 fprintf (f, "%ld", i);
2492 }
2493 else
2494 {
2495 unsigned long int i = ulongval ();
2496 if (i != ($2))
2497 return 1;
2498 fprintf (f, "%lu", i);
2499 }
2500 /* Do not output a trailing newline, as this causes \r\n confusion
2501 on some platforms. */
2502 return ferror (f) || fclose (f) != 0;
2503
2504 ;
2505 return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_run "$LINENO"; then :
2509 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2510 else
2511 ac_retval=1
2512 fi
2513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2514 conftest.$ac_objext conftest.beam conftest.$ac_ext
2515 rm -f conftest.val
2516
2517 fi
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 return $ac_retval
2520
2521 } # ac_fn_c_compute_int
2522
2523 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2524 # -------------------------------------------
2525 # Tests whether TYPE exists after having included INCLUDES, setting cache
2526 # variable VAR accordingly.
2527 ac_fn_c_check_type ()
2528 {
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531 $as_echo_n "checking for $2... " >&6; }
2532 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 eval "$3=no"
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2538 $4
2539 int
2540 main ()
2541 {
2542 if (sizeof ($2))
2543 return 0;
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 $4
2552 int
2553 main ()
2554 {
2555 if (sizeof (($2)))
2556 return 0;
2557 ;
2558 return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562
2563 else
2564 eval "$3=yes"
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 eval ac_res=\$$3
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574
2575 } # ac_fn_c_check_type
2576 cat >config.log <<_ACEOF
2577 This file contains any messages produced by compilers while
2578 running configure, to aid debugging if configure makes a mistake.
2579
2580 It was created by $as_me, which was
2581 generated by GNU Autoconf 2.64. Invocation command line was
2582
2583 $ $0 $@
2584
2585 _ACEOF
2586 exec 5>>config.log
2587 {
2588 cat <<_ASUNAME
2589 ## --------- ##
2590 ## Platform. ##
2591 ## --------- ##
2592
2593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2598
2599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2601
2602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2609
2610 _ASUNAME
2611
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 $as_echo "PATH: $as_dir"
2618 done
2619 IFS=$as_save_IFS
2620
2621 } >&5
2622
2623 cat >&5 <<_ACEOF
2624
2625
2626 ## ----------- ##
2627 ## Core tests. ##
2628 ## ----------- ##
2629
2630 _ACEOF
2631
2632
2633 # Keep a trace of the command line.
2634 # Strip out --no-create and --no-recursion so they do not pile up.
2635 # Strip out --silent because we don't want to record it for future runs.
2636 # Also quote any args containing shell meta-characters.
2637 # Make two passes to allow for proper duplicate-argument suppression.
2638 ac_configure_args=
2639 ac_configure_args0=
2640 ac_configure_args1=
2641 ac_must_keep_next=false
2642 for ac_pass in 1 2
2643 do
2644 for ac_arg
2645 do
2646 case $ac_arg in
2647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2649 | -silent | --silent | --silen | --sile | --sil)
2650 continue ;;
2651 *\'*)
2652 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 esac
2654 case $ac_pass in
2655 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2656 2)
2657 as_fn_append ac_configure_args1 " '$ac_arg'"
2658 if test $ac_must_keep_next = true; then
2659 ac_must_keep_next=false # Got value, back to normal.
2660 else
2661 case $ac_arg in
2662 *=* | --config-cache | -C | -disable-* | --disable-* \
2663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2665 | -with-* | --with-* | -without-* | --without-* | --x)
2666 case "$ac_configure_args0 " in
2667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2668 esac
2669 ;;
2670 -* ) ac_must_keep_next=true ;;
2671 esac
2672 fi
2673 as_fn_append ac_configure_args " '$ac_arg'"
2674 ;;
2675 esac
2676 done
2677 done
2678 { ac_configure_args0=; unset ac_configure_args0;}
2679 { ac_configure_args1=; unset ac_configure_args1;}
2680
2681 # When interrupted or exit'd, cleanup temporary files, and complete
2682 # config.log. We remove comments because anyway the quotes in there
2683 # would cause problems or look ugly.
2684 # WARNING: Use '\'' to represent an apostrophe within the trap.
2685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2686 trap 'exit_status=$?
2687 # Save into config.log some information that might help in debugging.
2688 {
2689 echo
2690
2691 cat <<\_ASBOX
2692 ## ---------------- ##
2693 ## Cache variables. ##
2694 ## ---------------- ##
2695 _ASBOX
2696 echo
2697 # The following way of writing the cache mishandles newlines in values,
2698 (
2699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2700 eval ac_val=\$$ac_var
2701 case $ac_val in #(
2702 *${as_nl}*)
2703 case $ac_var in #(
2704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2706 esac
2707 case $ac_var in #(
2708 _ | IFS | as_nl) ;; #(
2709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2710 *) { eval $ac_var=; unset $ac_var;} ;;
2711 esac ;;
2712 esac
2713 done
2714 (set) 2>&1 |
2715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2716 *${as_nl}ac_space=\ *)
2717 sed -n \
2718 "s/'\''/'\''\\\\'\'''\''/g;
2719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2720 ;; #(
2721 *)
2722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2723 ;;
2724 esac |
2725 sort
2726 )
2727 echo
2728
2729 cat <<\_ASBOX
2730 ## ----------------- ##
2731 ## Output variables. ##
2732 ## ----------------- ##
2733 _ASBOX
2734 echo
2735 for ac_var in $ac_subst_vars
2736 do
2737 eval ac_val=\$$ac_var
2738 case $ac_val in
2739 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2740 esac
2741 $as_echo "$ac_var='\''$ac_val'\''"
2742 done | sort
2743 echo
2744
2745 if test -n "$ac_subst_files"; then
2746 cat <<\_ASBOX
2747 ## ------------------- ##
2748 ## File substitutions. ##
2749 ## ------------------- ##
2750 _ASBOX
2751 echo
2752 for ac_var in $ac_subst_files
2753 do
2754 eval ac_val=\$$ac_var
2755 case $ac_val in
2756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757 esac
2758 $as_echo "$ac_var='\''$ac_val'\''"
2759 done | sort
2760 echo
2761 fi
2762
2763 if test -s confdefs.h; then
2764 cat <<\_ASBOX
2765 ## ----------- ##
2766 ## confdefs.h. ##
2767 ## ----------- ##
2768 _ASBOX
2769 echo
2770 cat confdefs.h
2771 echo
2772 fi
2773 test "$ac_signal" != 0 &&
2774 $as_echo "$as_me: caught signal $ac_signal"
2775 $as_echo "$as_me: exit $exit_status"
2776 } >&5
2777 rm -f core *.core core.conftest.* &&
2778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2779 exit $exit_status
2780 ' 0
2781 for ac_signal in 1 2 13 15; do
2782 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2783 done
2784 ac_signal=0
2785
2786 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2787 rm -f -r conftest* confdefs.h
2788
2789 $as_echo "/* confdefs.h */" > confdefs.h
2790
2791 # Predefined preprocessor variables.
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE_NAME "$PACKAGE_NAME"
2795 _ACEOF
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2799 _ACEOF
2800
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2803 _ACEOF
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE_STRING "$PACKAGE_STRING"
2807 _ACEOF
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2811 _ACEOF
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_URL "$PACKAGE_URL"
2815 _ACEOF
2816
2817
2818 # Let the site file select an alternate cache file if it wants to.
2819 # Prefer an explicitly selected file to automatically selected ones.
2820 ac_site_file1=NONE
2821 ac_site_file2=NONE
2822 if test -n "$CONFIG_SITE"; then
2823 ac_site_file1=$CONFIG_SITE
2824 elif test "x$prefix" != xNONE; then
2825 ac_site_file1=$prefix/share/config.site
2826 ac_site_file2=$prefix/etc/config.site
2827 else
2828 ac_site_file1=$ac_default_prefix/share/config.site
2829 ac_site_file2=$ac_default_prefix/etc/config.site
2830 fi
2831 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2832 do
2833 test "x$ac_site_file" = xNONE && continue
2834 if test -r "$ac_site_file"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2836 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2837 sed 's/^/| /' "$ac_site_file" >&5
2838 . "$ac_site_file"
2839 fi
2840 done
2841
2842 if test -r "$cache_file"; then
2843 # Some versions of bash will fail to source /dev/null (special
2844 # files actually), so we avoid doing that.
2845 if test -f "$cache_file"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2847 $as_echo "$as_me: loading cache $cache_file" >&6;}
2848 case $cache_file in
2849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2850 *) . "./$cache_file";;
2851 esac
2852 fi
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2855 $as_echo "$as_me: creating cache $cache_file" >&6;}
2856 >$cache_file
2857 fi
2858
2859 gl_func_list="$gl_func_list btowc"
2860 gl_func_list="$gl_func_list isblank"
2861 gl_func_list="$gl_func_list iswctype"
2862 gl_func_list="$gl_func_list mbsrtowcs"
2863 gl_func_list="$gl_func_list mempcpy"
2864 gl_func_list="$gl_func_list wmemchr"
2865 gl_func_list="$gl_func_list wmemcpy"
2866 gl_func_list="$gl_func_list wmempcpy"
2867 gl_header_list="$gl_header_list wctype.h"
2868 gl_fnmatch_required=GNU
2869 gl_func_list="$gl_func_list alarm"
2870 gl_header_list="$gl_header_list wchar.h"
2871 gl_header_list="$gl_header_list stdint.h"
2872 gl_header_list="$gl_header_list inttypes.h"
2873 gl_header_list="$gl_header_list unistd.h"
2874 gl_func_list="$gl_func_list symlink"
2875 gl_header_list="$gl_header_list math.h"
2876 gl_func_list="$gl_func_list mbsinit"
2877 gl_func_list="$gl_func_list mbrtowc"
2878 gl_header_list="$gl_header_list sys/mman.h"
2879 gl_func_list="$gl_func_list mprotect"
2880 gl_header_list="$gl_header_list features.h"
2881 gl_func_list="$gl_func_list iswcntrl"
2882 # Check that the precious variables saved in the cache have kept the same
2883 # value.
2884 ac_cache_corrupted=false
2885 for ac_var in $ac_precious_vars; do
2886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2887 eval ac_new_set=\$ac_env_${ac_var}_set
2888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2889 eval ac_new_val=\$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2891 set,)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted=: ;;
2895 ,set)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2899 ,);;
2900 *)
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w=`echo x $ac_old_val`
2904 ac_new_val_w=`echo x $ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2908 ac_cache_corrupted=:
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\$ac_old_val
2913 fi
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2918 fi;;
2919 esac
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2922 case $ac_new_val in
2923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 *) ac_arg=$ac_var=$ac_new_val ;;
2925 esac
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2929 esac
2930 fi
2931 done
2932 if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938 fi
2939 ## -------------------- ##
2940 ## Main body of script. ##
2941 ## -------------------- ##
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949
2950 ac_config_headers="$ac_config_headers config.h:config.in"
2951
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2954 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2955 # Check whether --enable-maintainer-mode was given.
2956 if test "${enable_maintainer_mode+set}" = set; then :
2957 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2958 else
2959 USE_MAINTAINER_MODE=no
2960 fi
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2963 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2964 if test $USE_MAINTAINER_MODE = yes; then
2965 MAINTAINER_MODE_TRUE=
2966 MAINTAINER_MODE_FALSE='#'
2967 else
2968 MAINTAINER_MODE_TRUE='#'
2969 MAINTAINER_MODE_FALSE=
2970 fi
2971
2972 MAINT=$MAINTAINER_MODE_TRUE
2973
2974
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3068 fi
3069 else
3070 CC="$ac_cv_prog_CC"
3071 fi
3072
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if test "${ac_cv_prog_CC+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 fi
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 ac_prog_rejected=no
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3135 continue
3136 fi
3137 ac_cv_prog_CC="cc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3148 shift
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3153 shift
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3155 fi
3156 fi
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3173 do
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 test -n "$CC" && break
3212 done
3213 fi
3214 if test -z "$CC"; then
3215 ac_ct_CC=$CC
3216 for ac_prog in cl.exe
3217 do
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255 test -n "$ac_ct_CC" && break
3256 done
3257
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267 CC=$ac_ct_CC
3268 fi
3269 fi
3270
3271 fi
3272
3273
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details." "$LINENO" 5; }
3278
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281 set X $ac_compile
3282 ac_compiler=$2
3283 for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292 ac_status=$?
3293 if test -s conftest.err; then
3294 sed '10a\
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3298 rm -f conftest.er1 conftest.err
3299 fi
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 done
3303
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306 #include <stdio.h>
3307 int
3308 main ()
3309 {
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files_save=$ac_clean_files
3318 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3319 # Try to create an executable without -o first, disregard a.out.
3320 # It will help us diagnose broken compilers, and finding out an intuition
3321 # of exeext.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 $as_echo_n "checking for C compiler default output file name... " >&6; }
3324 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325
3326 # The possible output files:
3327 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328
3329 ac_rmfiles=
3330 for ac_file in $ac_files
3331 do
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 esac
3336 done
3337 rm -f $ac_rmfiles
3338
3339 if { { ac_try="$ac_link_default"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link_default") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3354 # Autoconf.
3355 for ac_file in $ac_files ''
3356 do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 ;;
3361 [ab].out )
3362 # We found the default executable, but exeext='' is most
3363 # certainly right.
3364 break;;
3365 *.* )
3366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367 then :; else
3368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 fi
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an `-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3374 # actually working.
3375 break;;
3376 * )
3377 break;;
3378 esac
3379 done
3380 test "$ac_cv_exeext" = no && ac_cv_exeext=
3381
3382 else
3383 ac_file=''
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 if test -z "$ac_file"; then :
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { as_fn_set_status 77
3394 as_fn_error "C compiler cannot create executables
3395 See \`config.log' for more details." "$LINENO" 5; }; }
3396 fi
3397 ac_exeext=$ac_cv_exeext
3398
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402 $as_echo_n "checking whether the C compiler works... " >&6; }
3403 # If not cross compiling, check that we can run a simple program.
3404 if test "$cross_compiling" != yes; then
3405 if { ac_try='./$ac_file'
3406 { { case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_try") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; }; then
3416 cross_compiling=no
3417 else
3418 if test "$cross_compiling" = maybe; then
3419 cross_compiling=yes
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error "cannot run C compiled programs.
3424 If you meant to cross compile, use \`--host'.
3425 See \`config.log' for more details." "$LINENO" 5; }
3426 fi
3427 fi
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3431
3432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3433 ac_clean_files=$ac_clean_files_save
3434 # Check that the compiler produces executables we can run. If not, either
3435 # the compiler is broken, or we cross compile.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437 $as_echo_n "checking whether we are cross compiling... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442 $as_echo_n "checking for suffix of executables... " >&6; }
3443 if { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3456 # work properly (i.e., refer to `conftest.exe'), while it won't with
3457 # `rm'.
3458 for ac_file in conftest.exe conftest conftest.*; do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 break;;
3464 * ) break;;
3465 esac
3466 done
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error "cannot compute suffix of executables: cannot compile and link
3471 See \`config.log' for more details." "$LINENO" 5; }
3472 fi
3473 rm -f conftest$ac_cv_exeext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3475 $as_echo "$ac_cv_exeext" >&6; }
3476
3477 rm -f conftest.$ac_ext
3478 EXEEXT=$ac_cv_exeext
3479 ac_exeext=$EXEEXT
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481 $as_echo_n "checking for suffix of object files... " >&6; }
3482 if test "${ac_cv_objext+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.o conftest.obj
3497 if { { ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compile") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 break;;
3514 esac
3515 done
3516 else
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error "cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details." "$LINENO" 5; }
3524 fi
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543 choke me
3544 #endif
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_compiler_gnu=yes
3552 else
3553 ac_compiler_gnu=no
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3557
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561 if test $ac_compiler_gnu = yes; then
3562 GCC=yes
3563 else
3564 GCC=
3565 fi
3566 ac_test_CFLAGS=${CFLAGS+set}
3567 ac_save_CFLAGS=$CFLAGS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3570 if test "${ac_cv_prog_cc_g+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 ac_save_c_werror_flag=$ac_c_werror_flag
3574 ac_c_werror_flag=yes
3575 ac_cv_prog_cc_g=no
3576 CFLAGS="-g"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_g=yes
3590 else
3591 CFLAGS=""
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604
3605 else
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610
3611 int
3612 main ()
3613 {
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630 $as_echo "$ac_cv_prog_cc_g" >&6; }
3631 if test "$ac_test_CFLAGS" = set; then
3632 CFLAGS=$ac_save_CFLAGS
3633 elif test $ac_cv_prog_cc_g = yes; then
3634 if test "$GCC" = yes; then
3635 CFLAGS="-g -O2"
3636 else
3637 CFLAGS="-g"
3638 fi
3639 else
3640 if test "$GCC" = yes; then
3641 CFLAGS="-O2"
3642 else
3643 CFLAGS=
3644 fi
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 ac_cv_prog_cc_c89=no
3652 ac_save_CC=$CC
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 #include <stdarg.h>
3656 #include <stdio.h>
3657 #include <sys/types.h>
3658 #include <sys/stat.h>
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3663 char **p;
3664 int i;
3665 {
3666 return p[i];
3667 }
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3669 {
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3676 }
3677
3678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std. */
3685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
3687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688 inside strings and character constants. */
3689 #define FOO(x) 'x'
3690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691
3692 int test (int i, double x);
3693 struct s1 {int (*f) (int a);};
3694 struct s2 {int (*f) (double a);};
3695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696 int argc;
3697 char **argv;
3698 int
3699 main ()
3700 {
3701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 do
3709 CC="$ac_save_CC $ac_arg"
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_c89=$ac_arg
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 done
3716 rm -f conftest.$ac_ext
3717 CC=$ac_save_CC
3718
3719 fi
3720 # AC_CACHE_VAL
3721 case "x$ac_cv_prog_cc_c89" in
3722 x)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3724 $as_echo "none needed" >&6; } ;;
3725 xno)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727 $as_echo "unsupported" >&6; } ;;
3728 *)
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 esac
3733 if test "x$ac_cv_prog_cc_c89" != xno; then :
3734
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742
3743 ac_aux_dir=
3744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3745 for ac_t in install-sh install.sh shtool; do
3746 if test -f "$ac_dir/$ac_t"; then
3747 ac_aux_dir=$ac_dir
3748 ac_install_sh="$ac_aux_dir/$ac_t -c"
3749 break 2
3750 fi
3751 done
3752 done
3753 if test -z "$ac_aux_dir"; then
3754 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3755 fi
3756
3757 # These three variables are undocumented and unsupported,
3758 # and are intended to be withdrawn in a future Autoconf release.
3759 # They can cause serious problems if a builder's source tree is in a directory
3760 # whose full name contains unusual characters.
3761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3764
3765
3766 # Make sure we can run config.sub.
3767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3768 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3771 $as_echo_n "checking build system type... " >&6; }
3772 if test "${ac_cv_build+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 ac_build_alias=$build_alias
3776 test "x$ac_build_alias" = x &&
3777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3778 test "x$ac_build_alias" = x &&
3779 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3781 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3782
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3785 $as_echo "$ac_cv_build" >&6; }
3786 case $ac_cv_build in
3787 *-*-*) ;;
3788 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3789 esac
3790 build=$ac_cv_build
3791 ac_save_IFS=$IFS; IFS='-'
3792 set x $ac_cv_build
3793 shift
3794 build_cpu=$1
3795 build_vendor=$2
3796 shift; shift
3797 # Remember, the first character of IFS is used to create $*,
3798 # except with old shells:
3799 build_os=$*
3800 IFS=$ac_save_IFS
3801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3802
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3805 $as_echo_n "checking host system type... " >&6; }
3806 if test "${ac_cv_host+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 if test "x$host_alias" = x; then
3810 ac_cv_host=$ac_cv_build
3811 else
3812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3813 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3818 $as_echo "$ac_cv_host" >&6; }
3819 case $ac_cv_host in
3820 *-*-*) ;;
3821 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3822 esac
3823 host=$ac_cv_host
3824 ac_save_IFS=$IFS; IFS='-'
3825 set x $ac_cv_host
3826 shift
3827 host_cpu=$1
3828 host_vendor=$2
3829 shift; shift
3830 # Remember, the first character of IFS is used to create $*,
3831 # except with old shells:
3832 host_os=$*
3833 IFS=$ac_save_IFS
3834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3835
3836
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3845 # On Suns, sometimes $CPP names a directory.
3846 if test -n "$CPP" && test -d "$CPP"; then
3847 CPP=
3848 fi
3849 if test -z "$CPP"; then
3850 if test "${ac_cv_prog_CPP+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 # Double quotes because CPP needs to be expanded
3854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3855 do
3856 ac_preproc_ok=false
3857 for ac_c_preproc_warn_flag in '' yes
3858 do
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872 Syntax error
3873 _ACEOF
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3875
3876 else
3877 # Broken: fails on valid input.
3878 continue
3879 fi
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 # Passes both tests.
3893 ac_preproc_ok=:
3894 break
3895 fi
3896 rm -f conftest.err conftest.$ac_ext
3897
3898 done
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then :
3902 break
3903 fi
3904
3905 done
3906 ac_cv_prog_CPP=$CPP
3907
3908 fi
3909 CPP=$ac_cv_prog_CPP
3910 else
3911 ac_cv_prog_CPP=$CPP
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3914 $as_echo "$CPP" >&6; }
3915 ac_preproc_ok=false
3916 for ac_c_preproc_warn_flag in '' yes
3917 do
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
3920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
3922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #ifdef __STDC__
3927 # include <limits.h>
3928 #else
3929 # include <assert.h>
3930 #endif
3931 Syntax error
3932 _ACEOF
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3934
3935 else
3936 # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #include <ac_nonexistent.h>
3946 _ACEOF
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948 # Broken: success on invalid input.
3949 continue
3950 else
3951 # Passes both tests.
3952 ac_preproc_ok=:
3953 break
3954 fi
3955 rm -f conftest.err conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then :
3961
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." "$LINENO" 5; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$GREP"; then
3982 ac_path_GREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in grep ggrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3993 # Check for GNU ac_path_GREP and select it if it is found.
3994 # Check for GNU $ac_path_GREP
3995 case `"$ac_path_GREP" --version 2>&1` in
3996 *GNU*)
3997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3998 *)
3999 ac_count=0
4000 $as_echo_n 0123456789 >"conftest.in"
4001 while :
4002 do
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'GREP' >> "conftest.nl"
4007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 as_fn_arith $ac_count + 1 && ac_count=$as_val
4010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_GREP="$ac_path_GREP"
4013 ac_path_GREP_max=$ac_count
4014 fi
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4017 done
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 esac
4020
4021 $ac_path_GREP_found && break 3
4022 done
4023 done
4024 done
4025 IFS=$as_save_IFS
4026 if test -z "$ac_cv_path_GREP"; then
4027 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 fi
4029 else
4030 ac_cv_path_GREP=$GREP
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4035 $as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4040 $as_echo_n "checking for egrep... " >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
4047 if test -z "$EGREP"; then
4048 ac_path_EGREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in egrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059 # Check for GNU ac_path_EGREP and select it if it is found.
4060 # Check for GNU $ac_path_EGREP
4061 case `"$ac_path_EGREP" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'EGREP' >> "conftest.nl"
4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP="$ac_path_EGREP"
4079 ac_path_EGREP_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_EGREP_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_EGREP"; then
4093 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4094 fi
4095 else
4096 ac_cv_path_EGREP=$EGREP
4097 fi
4098
4099 fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4102 $as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4104
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4107 $as_echo_n "checking for ANSI C header files... " >&6; }
4108 if test "${ac_cv_header_stdc+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <stdlib.h>
4114 #include <stdarg.h>
4115 #include <string.h>
4116 #include <float.h>
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_header_stdc=yes
4128 else
4129 ac_cv_header_stdc=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <string.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then :
4142
4143 else
4144 ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <stdlib.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev/null 2>&1; then :
4159
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then :
4170 :
4171 else
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ctype.h>
4175 #include <stdlib.h>
4176 #if ((' ' & 0x0FF) == 0x020)
4177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4179 #else
4180 # define ISLOWER(c) \
4181 (('a' <= (c) && (c) <= 'i') \
4182 || ('j' <= (c) && (c) <= 'r') \
4183 || ('s' <= (c) && (c) <= 'z'))
4184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4185 #endif
4186
4187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4188 int
4189 main ()
4190 {
4191 int i;
4192 for (i = 0; i < 256; i++)
4193 if (XOR (islower (i), ISLOWER (i))
4194 || toupper (i) != TOUPPER (i))
4195 return 2;
4196 return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_run "$LINENO"; then :
4200
4201 else
4202 ac_cv_header_stdc=no
4203 fi
4204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4205 conftest.$ac_objext conftest.beam conftest.$ac_ext
4206 fi
4207
4208 fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4211 $as_echo "$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4213
4214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4215
4216 fi
4217
4218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220 inttypes.h stdint.h unistd.h
4221 do :
4222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4224 "
4225 eval as_val=\$$as_ac_Header
4226 if test "x$as_val" = x""yes; then :
4227 cat >>confdefs.h <<_ACEOF
4228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4229 _ACEOF
4230
4231 fi
4232
4233 done
4234
4235
4236
4237
4238
4239 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4240 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4241 MINIX=yes
4242 else
4243 MINIX=
4244 fi
4245
4246
4247 if test "$MINIX" = yes; then
4248
4249 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4250
4251
4252 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4253
4254
4255 $as_echo "#define _MINIX 1" >>confdefs.h
4256
4257 fi
4258
4259 case "$host_os" in
4260 hpux*)
4261
4262 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4263
4264 ;;
4265 esac
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4269 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4270 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 # define __EXTENSIONS__ 1
4277 $ac_includes_default
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_safe_to_define___extensions__=yes
4288 else
4289 ac_cv_safe_to_define___extensions__=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4294 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4295 test $ac_cv_safe_to_define___extensions__ = yes &&
4296 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4297
4298 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4299
4300 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4301
4302 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4303
4304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4305
4306 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4307
4308
4309
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4312 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4313 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319
4320 #ifdef __ACK__
4321 Amsterdam
4322 #endif
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4327 gl_cv_c_amsterdam_compiler=yes
4328 else
4329 gl_cv_c_amsterdam_compiler=no
4330 fi
4331 rm -f conftest*
4332
4333
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4336 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4337 if test -z "$AR"; then
4338 if test $gl_cv_c_amsterdam_compiler = yes; then
4339 AR='cc -c.a'
4340 if test -z "$ARFLAGS"; then
4341 ARFLAGS='-o'
4342 fi
4343 else
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}ar; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_AR+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$AR"; then
4353 ac_cv_prog_AR="$AR" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_AR="${ac_tool_prefix}ar"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 AR=$ac_cv_prog_AR
4373 if test -n "$AR"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4375 $as_echo "$AR" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382 fi
4383 if test -z "$ac_cv_prog_AR"; then
4384 ac_ct_AR=$AR
4385 # Extract the first word of "ar", so it can be a program name with args.
4386 set dummy ar; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -n "$ac_ct_AR"; then
4393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_AR="ar"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4413 if test -n "$ac_ct_AR"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4415 $as_echo "$ac_ct_AR" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421 if test "x$ac_ct_AR" = x; then
4422 AR="ar"
4423 else
4424 case $cross_compiling:$ac_tool_warned in
4425 yes:)
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428 ac_tool_warned=yes ;;
4429 esac
4430 AR=$ac_ct_AR
4431 fi
4432 else
4433 AR="$ac_cv_prog_AR"
4434 fi
4435
4436 if test -z "$ARFLAGS"; then
4437 ARFLAGS='cru'
4438 fi
4439 fi
4440 else
4441 if test -z "$ARFLAGS"; then
4442 ARFLAGS='cru'
4443 fi
4444 fi
4445
4446
4447 if test -z "$RANLIB"; then
4448 if test $gl_cv_c_amsterdam_compiler = yes; then
4449 RANLIB=':'
4450 else
4451 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$RANLIB"; then
4460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 RANLIB=$ac_cv_prog_RANLIB
4480 if test -n "$RANLIB"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4482 $as_echo "$RANLIB" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489 fi
4490 if test -z "$ac_cv_prog_RANLIB"; then
4491 ac_ct_RANLIB=$RANLIB
4492 # Extract the first word of "ranlib", so it can be a program name with args.
4493 set dummy ranlib; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$ac_ct_RANLIB"; then
4500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_RANLIB="ranlib"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513 done
4514 done
4515 IFS=$as_save_IFS
4516
4517 fi
4518 fi
4519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4520 if test -n "$ac_ct_RANLIB"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4522 $as_echo "$ac_ct_RANLIB" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 fi
4527
4528 if test "x$ac_ct_RANLIB" = x; then
4529 RANLIB=":"
4530 else
4531 case $cross_compiling:$ac_tool_warned in
4532 yes:)
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535 ac_tool_warned=yes ;;
4536 esac
4537 RANLIB=$ac_ct_RANLIB
4538 fi
4539 else
4540 RANLIB="$ac_cv_prog_RANLIB"
4541 fi
4542
4543 fi
4544 fi
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 # IEEE behaviour is the default on all CPUs except Alpha and SH
4557 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4558 # and the GCC 4.1.2 manual).
4559 case "$host_cpu" in
4560 alpha*)
4561 # On Alpha systems, a compiler option provides the behaviour.
4562 # See the ieee(3) manual page, also available at
4563 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4564 if test -n "$GCC"; then
4565 # GCC has the option -mieee.
4566 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4567 CPPFLAGS="$CPPFLAGS -mieee"
4568 else
4569 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4570 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4571 CPPFLAGS="$CPPFLAGS -ieee"
4572 fi
4573 ;;
4574 sh*)
4575 if test -n "$GCC"; then
4576 # GCC has the option -mieee.
4577 CPPFLAGS="$CPPFLAGS -mieee"
4578 fi
4579 ;;
4580 esac
4581
4582
4583
4584 # Code from module alloca:
4585 # Code from module alloca-opt:
4586 # Code from module configmake:
4587 # Code from module extensions:
4588
4589 # Code from module extern-inline:
4590 # Code from module float:
4591 # Code from module fnmatch:
4592 # Code from module fnmatch-gnu:
4593 # Code from module fpieee:
4594
4595 # Code from module fpucw:
4596 # Code from module frexp:
4597 # Code from module frexpl:
4598 # Code from module include_next:
4599 # Code from module inttypes:
4600 # Code from module inttypes-incomplete:
4601 # Code from module isnand-nolibm:
4602 # Code from module isnanl-nolibm:
4603 # Code from module localcharset:
4604 # Code from module math:
4605 # Code from module mbrtowc:
4606 # Code from module mbsinit:
4607 # Code from module mbsrtowcs:
4608 # Code from module memchr:
4609 # Code from module memmem:
4610 # Code from module memmem-simple:
4611 # Code from module multiarch:
4612 # Code from module snippet/arg-nonnull:
4613 # Code from module snippet/c++defs:
4614 # Code from module snippet/warn-on-use:
4615 # Code from module stdbool:
4616 # Code from module stddef:
4617 # Code from module stdint:
4618 # Code from module streq:
4619 # Code from module string:
4620 # Code from module strnlen1:
4621 # Code from module update-copyright:
4622 # Code from module verify:
4623 # Code from module wchar:
4624 # Code from module wctype-h:
4625
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669 fi
4670 if test -z "$ac_cv_prog_CC"; then
4671 ac_ct_CC=$CC
4672 # Extract the first word of "gcc", so it can be a program name with args.
4673 set dummy gcc; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CC="gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4702 $as_echo "$ac_ct_CC" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708 if test "x$ac_ct_CC" = x; then
4709 CC=""
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC=$ac_ct_CC
4718 fi
4719 else
4720 CC="$ac_cv_prog_CC"
4721 fi
4722
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}cc; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="${ac_tool_prefix}cc"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 CC=$ac_cv_prog_CC
4753 if test -n "$CC"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4755 $as_echo "$CC" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762 fi
4763 fi
4764 if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4786 fi
4787 ac_cv_prog_CC="cc"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4805 fi
4806 fi
4807 fi
4808 fi
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 fi
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4823 do
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_CC+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC="$CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 CC=$ac_cv_prog_CC
4852 if test -n "$CC"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4854 $as_echo "$CC" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861 test -n "$CC" && break
4862 done
4863 fi
4864 if test -z "$CC"; then
4865 ac_ct_CC=$CC
4866 for ac_prog in cl.exe
4867 do
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC="$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4898 $as_echo "$ac_ct_CC" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905 test -n "$ac_ct_CC" && break
4906 done
4907
4908 if test "x$ac_ct_CC" = x; then
4909 CC=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917 CC=$ac_ct_CC
4918 fi
4919 fi
4920
4921 fi
4922
4923
4924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error "no acceptable C compiler found in \$PATH
4927 See \`config.log' for more details." "$LINENO" 5; }
4928
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4931 set X $ac_compile
4932 ac_compiler=$2
4933 for ac_option in --version -v -V -qversion; do
4934 { { ac_try="$ac_compiler $ac_option >&5"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942 ac_status=$?
4943 if test -s conftest.err; then
4944 sed '10a\
4945 ... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
4948 rm -f conftest.er1 conftest.err
4949 fi
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952 done
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4955 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4956 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961
4962 int
4963 main ()
4964 {
4965 #ifndef __GNUC__
4966 choke me
4967 #endif
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_compiler_gnu=yes
4975 else
4976 ac_compiler_gnu=no
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4983 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4984 if test $ac_compiler_gnu = yes; then
4985 GCC=yes
4986 else
4987 GCC=
4988 fi
4989 ac_test_CFLAGS=${CFLAGS+set}
4990 ac_save_CFLAGS=$CFLAGS
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4992 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4993 if test "${ac_cv_prog_cc_g+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 ac_save_c_werror_flag=$ac_c_werror_flag
4997 ac_c_werror_flag=yes
4998 ac_cv_prog_cc_g=no
4999 CFLAGS="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002
5003 int
5004 main ()
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_prog_cc_g=yes
5013 else
5014 CFLAGS=""
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017
5018 int
5019 main ()
5020 {
5021
5022 ;
5023 return 0;
5024 }
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027
5028 else
5029 ac_c_werror_flag=$ac_save_c_werror_flag
5030 CFLAGS="-g"
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033
5034 int
5035 main ()
5036 {
5037
5038 ;
5039 return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_g=yes
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_c_werror_flag=$ac_save_c_werror_flag
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5053 $as_echo "$ac_cv_prog_cc_g" >&6; }
5054 if test "$ac_test_CFLAGS" = set; then
5055 CFLAGS=$ac_save_CFLAGS
5056 elif test $ac_cv_prog_cc_g = yes; then
5057 if test "$GCC" = yes; then
5058 CFLAGS="-g -O2"
5059 else
5060 CFLAGS="-g"
5061 fi
5062 else
5063 if test "$GCC" = yes; then
5064 CFLAGS="-O2"
5065 else
5066 CFLAGS=
5067 fi
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5071 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 ac_cv_prog_cc_c89=no
5075 ac_save_CC=$CC
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <stdarg.h>
5079 #include <stdio.h>
5080 #include <sys/types.h>
5081 #include <sys/stat.h>
5082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5083 struct buf { int x; };
5084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5085 static char *e (p, i)
5086 char **p;
5087 int i;
5088 {
5089 return p[i];
5090 }
5091 static char *f (char * (*g) (char **, int), char **p, ...)
5092 {
5093 char *s;
5094 va_list v;
5095 va_start (v,p);
5096 s = g (p, va_arg (v,int));
5097 va_end (v);
5098 return s;
5099 }
5100
5101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5102 function prototypes and stuff, but not '\xHH' hex character constants.
5103 These don't provoke an error unfortunately, instead are silently treated
5104 as 'x'. The following induces an error, until -std is added to get
5105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5106 array size at least. It's necessary to write '\x00'==0 to get something
5107 that's true only with -std. */
5108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5109
5110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5111 inside strings and character constants. */
5112 #define FOO(x) 'x'
5113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5114
5115 int test (int i, double x);
5116 struct s1 {int (*f) (int a);};
5117 struct s2 {int (*f) (double a);};
5118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5119 int argc;
5120 char **argv;
5121 int
5122 main ()
5123 {
5124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5131 do
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c89=$ac_arg
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c89" != "xno" && break
5138 done
5139 rm -f conftest.$ac_ext
5140 CC=$ac_save_CC
5141
5142 fi
5143 # AC_CACHE_VAL
5144 case "x$ac_cv_prog_cc_c89" in
5145 x)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5148 xno)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5151 *)
5152 CC="$CC $ac_cv_prog_cc_c89"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5155 esac
5156 if test "x$ac_cv_prog_cc_c89" != xno; then :
5157
5158 fi
5159
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5168
5169
5170 ac_aux_dir=
5171 for ac_dir in ../.. "$srcdir"/../..; do
5172 for ac_t in install-sh install.sh shtool; do
5173 if test -f "$ac_dir/$ac_t"; then
5174 ac_aux_dir=$ac_dir
5175 ac_install_sh="$ac_aux_dir/$ac_t -c"
5176 break 2
5177 fi
5178 done
5179 done
5180 if test -z "$ac_aux_dir"; then
5181 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5182 fi
5183
5184 # These three variables are undocumented and unsupported,
5185 # and are intended to be withdrawn in a future Autoconf release.
5186 # They can cause serious problems if a builder's source tree is in a directory
5187 # whose full name contains unusual characters.
5188 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5189 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5190 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5191
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5194 $as_echo_n "checking target system type... " >&6; }
5195 if test "${ac_cv_target+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test "x$target_alias" = x; then
5199 ac_cv_target=$ac_cv_host
5200 else
5201 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5202 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5203 fi
5204
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5207 $as_echo "$ac_cv_target" >&6; }
5208 case $ac_cv_target in
5209 *-*-*) ;;
5210 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5211 esac
5212 target=$ac_cv_target
5213 ac_save_IFS=$IFS; IFS='-'
5214 set x $ac_cv_target
5215 shift
5216 target_cpu=$1
5217 target_vendor=$2
5218 shift; shift
5219 # Remember, the first character of IFS is used to create $*,
5220 # except with old shells:
5221 target_os=$*
5222 IFS=$ac_save_IFS
5223 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5224
5225
5226 # The aliases save the names the user supplied, while $host etc.
5227 # will get canonicalized.
5228 test -n "$target_alias" &&
5229 test "$program_prefix$program_suffix$program_transform_name" = \
5230 NONENONEs,x,x, &&
5231 program_prefix=${target_alias}-
5232
5233
5234
5235
5236
5237
5238
5239 LIBC_FATAL_STDERR_=1
5240 export LIBC_FATAL_STDERR_
5241
5242 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5243 # for constant arguments. Useless!
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5245 $as_echo_n "checking for working alloca.h... " >&6; }
5246 if test "${ac_cv_working_alloca_h+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <alloca.h>
5252 int
5253 main ()
5254 {
5255 char *p = (char *) alloca (2 * sizeof (int));
5256 if (p) return 0;
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 ac_cv_working_alloca_h=yes
5263 else
5264 ac_cv_working_alloca_h=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5270 $as_echo "$ac_cv_working_alloca_h" >&6; }
5271 if test $ac_cv_working_alloca_h = yes; then
5272
5273 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5274
5275 fi
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5278 $as_echo_n "checking for alloca... " >&6; }
5279 if test "${ac_cv_func_alloca_works+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #ifdef __GNUC__
5285 # define alloca __builtin_alloca
5286 #else
5287 # ifdef _MSC_VER
5288 # include <malloc.h>
5289 # define alloca _alloca
5290 # else
5291 # ifdef HAVE_ALLOCA_H
5292 # include <alloca.h>
5293 # else
5294 # ifdef _AIX
5295 #pragma alloca
5296 # else
5297 # ifndef alloca /* predefined by HP cc +Olibcalls */
5298 char *alloca ();
5299 # endif
5300 # endif
5301 # endif
5302 # endif
5303 #endif
5304
5305 int
5306 main ()
5307 {
5308 char *p = (char *) alloca (1);
5309 if (p) return 0;
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_link "$LINENO"; then :
5315 ac_cv_func_alloca_works=yes
5316 else
5317 ac_cv_func_alloca_works=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5323 $as_echo "$ac_cv_func_alloca_works" >&6; }
5324
5325 if test $ac_cv_func_alloca_works = yes; then
5326
5327 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5328
5329 else
5330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5331 # that cause trouble. Some versions do not even contain alloca or
5332 # contain a buggy version. If you still want to use their alloca,
5333 # use ar to extract alloca.o from them instead of compiling alloca.c.
5334
5335
5336
5337
5338
5339 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5340
5341 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5345 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5346 if test "${ac_cv_os_cray+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #if defined CRAY && ! defined CRAY2
5352 webecray
5353 #else
5354 wenotbecray
5355 #endif
5356
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "webecray" >/dev/null 2>&1; then :
5360 ac_cv_os_cray=yes
5361 else
5362 ac_cv_os_cray=no
5363 fi
5364 rm -f conftest*
5365
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5368 $as_echo "$ac_cv_os_cray" >&6; }
5369 if test $ac_cv_os_cray = yes; then
5370 for ac_func in _getb67 GETB67 getb67; do
5371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5373 eval as_val=\$$as_ac_var
5374 if test "x$as_val" = x""yes; then :
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define CRAY_STACKSEG_END $ac_func
5378 _ACEOF
5379
5380 break
5381 fi
5382
5383 done
5384 fi
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5387 $as_echo_n "checking stack direction for C alloca... " >&6; }
5388 if test "${ac_cv_c_stack_direction+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test "$cross_compiling" = yes; then :
5392 ac_cv_c_stack_direction=0
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397 int
5398 find_stack_direction (int *addr, int depth)
5399 {
5400 int dir, dummy = 0;
5401 if (! addr)
5402 addr = &dummy;
5403 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5404 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5405 return dir + dummy;
5406 }
5407
5408 int
5409 main (int argc, char **argv)
5410 {
5411 return find_stack_direction (0, argc + !argv + 20) < 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_run "$LINENO"; then :
5415 ac_cv_c_stack_direction=1
5416 else
5417 ac_cv_c_stack_direction=-1
5418 fi
5419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5420 conftest.$ac_objext conftest.beam conftest.$ac_ext
5421 fi
5422
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5425 $as_echo "$ac_cv_c_stack_direction" >&6; }
5426 cat >>confdefs.h <<_ACEOF
5427 #define STACK_DIRECTION $ac_cv_c_stack_direction
5428 _ACEOF
5429
5430
5431 fi
5432
5433
5434
5435
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5439 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5440 if test "${gl_cv_have_include_next+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 rm -rf conftestd1a conftestd1b conftestd2
5444 mkdir conftestd1a conftestd1b conftestd2
5445 cat <<EOF > conftestd1a/conftest.h
5446 #define DEFINED_IN_CONFTESTD1
5447 #include_next <conftest.h>
5448 #ifdef DEFINED_IN_CONFTESTD2
5449 int foo;
5450 #else
5451 #error "include_next doesn't work"
5452 #endif
5453 EOF
5454 cat <<EOF > conftestd1b/conftest.h
5455 #define DEFINED_IN_CONFTESTD1
5456 #include <stdio.h>
5457 #include_next <conftest.h>
5458 #ifdef DEFINED_IN_CONFTESTD2
5459 int foo;
5460 #else
5461 #error "include_next doesn't work"
5462 #endif
5463 EOF
5464 cat <<EOF > conftestd2/conftest.h
5465 #ifndef DEFINED_IN_CONFTESTD1
5466 #error "include_next test doesn't work"
5467 #endif
5468 #define DEFINED_IN_CONFTESTD2
5469 EOF
5470 gl_save_CPPFLAGS="$CPPFLAGS"
5471 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #include <conftest.h>
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 gl_cv_have_include_next=yes
5478 else
5479 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <conftest.h>
5483 _ACEOF
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 gl_cv_have_include_next=buggy
5486 else
5487 gl_cv_have_include_next=no
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 CPPFLAGS="$gl_save_CPPFLAGS"
5494 rm -rf conftestd1a conftestd1b conftestd2
5495
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5498 $as_echo "$gl_cv_have_include_next" >&6; }
5499 PRAGMA_SYSTEM_HEADER=
5500 if test $gl_cv_have_include_next = yes; then
5501 INCLUDE_NEXT=include_next
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5503 if test -n "$GCC"; then
5504 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5505 fi
5506 else
5507 if test $gl_cv_have_include_next = buggy; then
5508 INCLUDE_NEXT=include
5509 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5510 else
5511 INCLUDE_NEXT=include
5512 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5513 fi
5514 fi
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5519 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5520 if test "${gl_cv_pragma_columns+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525
5526 #ifdef __TANDEM
5527 choke me
5528 #endif
5529
5530 _ACEOF
5531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532 $EGREP "choke me" >/dev/null 2>&1; then :
5533 gl_cv_pragma_columns=yes
5534 else
5535 gl_cv_pragma_columns=no
5536 fi
5537 rm -f conftest*
5538
5539
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5542 $as_echo "$gl_cv_pragma_columns" >&6; }
5543 if test $gl_cv_pragma_columns = yes; then
5544 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5545 else
5546 PRAGMA_COLUMNS=
5547 fi
5548
5549
5550
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5553 $as_echo_n "checking for mbstate_t... " >&6; }
5554 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5561 <wchar.h>.
5562 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5563 included before <wchar.h>. */
5564 #include <stddef.h>
5565 #include <stdio.h>
5566 #include <time.h>
5567 #include <wchar.h>
5568 int
5569 main ()
5570 {
5571 mbstate_t x; return sizeof x;
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_type_mbstate_t=yes
5578 else
5579 ac_cv_type_mbstate_t=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5584 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5585 if test $ac_cv_type_mbstate_t = yes; then
5586
5587 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5588
5589 else
5590
5591 $as_echo "#define mbstate_t int" >>confdefs.h
5592
5593 fi
5594
5595
5596
5597
5598
5599 for ac_func in $gl_func_list
5600 do :
5601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5603 eval as_val=\$$as_ac_var
5604 if test "x$as_val" = x""yes; then :
5605 cat >>confdefs.h <<_ACEOF
5606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5607 _ACEOF
5608
5609 fi
5610 done
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 for ac_header in $gl_header_list
5656 do :
5657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5659 eval as_val=\$$as_ac_Header
5660 if test "x$as_val" = x""yes; then :
5661 cat >>confdefs.h <<_ACEOF
5662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5663 _ACEOF
5664
5665 fi
5666
5667 done
5668
5669
5670
5671
5672
5673
5674 GNULIB_ACOSF=0;
5675 GNULIB_ACOSL=0;
5676 GNULIB_ASINF=0;
5677 GNULIB_ASINL=0;
5678 GNULIB_ATANF=0;
5679 GNULIB_ATANL=0;
5680 GNULIB_ATAN2F=0;
5681 GNULIB_CBRT=0;
5682 GNULIB_CBRTF=0;
5683 GNULIB_CBRTL=0;
5684 GNULIB_CEIL=0;
5685 GNULIB_CEILF=0;
5686 GNULIB_CEILL=0;
5687 GNULIB_COPYSIGN=0;
5688 GNULIB_COPYSIGNF=0;
5689 GNULIB_COPYSIGNL=0;
5690 GNULIB_COSF=0;
5691 GNULIB_COSL=0;
5692 GNULIB_COSHF=0;
5693 GNULIB_EXPF=0;
5694 GNULIB_EXPL=0;
5695 GNULIB_EXP2=0;
5696 GNULIB_EXP2F=0;
5697 GNULIB_EXP2L=0;
5698 GNULIB_EXPM1=0;
5699 GNULIB_EXPM1F=0;
5700 GNULIB_EXPM1L=0;
5701 GNULIB_FABSF=0;
5702 GNULIB_FABSL=0;
5703 GNULIB_FLOOR=0;
5704 GNULIB_FLOORF=0;
5705 GNULIB_FLOORL=0;
5706 GNULIB_FMA=0;
5707 GNULIB_FMAF=0;
5708 GNULIB_FMAL=0;
5709 GNULIB_FMOD=0;
5710 GNULIB_FMODF=0;
5711 GNULIB_FMODL=0;
5712 GNULIB_FREXPF=0;
5713 GNULIB_FREXP=0;
5714 GNULIB_FREXPL=0;
5715 GNULIB_HYPOT=0;
5716 GNULIB_HYPOTF=0;
5717 GNULIB_HYPOTL=0;
5718 GNULIB_ILOGB=0;
5719 GNULIB_ILOGBF=0;
5720 GNULIB_ILOGBL=0;
5721 GNULIB_ISFINITE=0;
5722 GNULIB_ISINF=0;
5723 GNULIB_ISNAN=0;
5724 GNULIB_ISNANF=0;
5725 GNULIB_ISNAND=0;
5726 GNULIB_ISNANL=0;
5727 GNULIB_LDEXPF=0;
5728 GNULIB_LDEXPL=0;
5729 GNULIB_LOG=0;
5730 GNULIB_LOGF=0;
5731 GNULIB_LOGL=0;
5732 GNULIB_LOG10=0;
5733 GNULIB_LOG10F=0;
5734 GNULIB_LOG10L=0;
5735 GNULIB_LOG1P=0;
5736 GNULIB_LOG1PF=0;
5737 GNULIB_LOG1PL=0;
5738 GNULIB_LOG2=0;
5739 GNULIB_LOG2F=0;
5740 GNULIB_LOG2L=0;
5741 GNULIB_LOGB=0;
5742 GNULIB_LOGBF=0;
5743 GNULIB_LOGBL=0;
5744 GNULIB_MODF=0;
5745 GNULIB_MODFF=0;
5746 GNULIB_MODFL=0;
5747 GNULIB_POWF=0;
5748 GNULIB_REMAINDER=0;
5749 GNULIB_REMAINDERF=0;
5750 GNULIB_REMAINDERL=0;
5751 GNULIB_RINT=0;
5752 GNULIB_RINTF=0;
5753 GNULIB_RINTL=0;
5754 GNULIB_ROUND=0;
5755 GNULIB_ROUNDF=0;
5756 GNULIB_ROUNDL=0;
5757 GNULIB_SIGNBIT=0;
5758 GNULIB_SINF=0;
5759 GNULIB_SINL=0;
5760 GNULIB_SINHF=0;
5761 GNULIB_SQRTF=0;
5762 GNULIB_SQRTL=0;
5763 GNULIB_TANF=0;
5764 GNULIB_TANL=0;
5765 GNULIB_TANHF=0;
5766 GNULIB_TRUNC=0;
5767 GNULIB_TRUNCF=0;
5768 GNULIB_TRUNCL=0;
5769 HAVE_ACOSF=1;
5770 HAVE_ACOSL=1;
5771 HAVE_ASINF=1;
5772 HAVE_ASINL=1;
5773 HAVE_ATANF=1;
5774 HAVE_ATANL=1;
5775 HAVE_ATAN2F=1;
5776 HAVE_CBRT=1;
5777 HAVE_CBRTF=1;
5778 HAVE_CBRTL=1;
5779 HAVE_COPYSIGN=1;
5780 HAVE_COPYSIGNL=1;
5781 HAVE_COSF=1;
5782 HAVE_COSL=1;
5783 HAVE_COSHF=1;
5784 HAVE_EXPF=1;
5785 HAVE_EXPL=1;
5786 HAVE_EXPM1=1;
5787 HAVE_EXPM1F=1;
5788 HAVE_FABSF=1;
5789 HAVE_FABSL=1;
5790 HAVE_FMA=1;
5791 HAVE_FMAF=1;
5792 HAVE_FMAL=1;
5793 HAVE_FMODF=1;
5794 HAVE_FMODL=1;
5795 HAVE_FREXPF=1;
5796 HAVE_HYPOTF=1;
5797 HAVE_HYPOTL=1;
5798 HAVE_ILOGB=1;
5799 HAVE_ILOGBF=1;
5800 HAVE_ILOGBL=1;
5801 HAVE_ISNANF=1;
5802 HAVE_ISNAND=1;
5803 HAVE_ISNANL=1;
5804 HAVE_LDEXPF=1;
5805 HAVE_LOGF=1;
5806 HAVE_LOGL=1;
5807 HAVE_LOG10F=1;
5808 HAVE_LOG10L=1;
5809 HAVE_LOG1P=1;
5810 HAVE_LOG1PF=1;
5811 HAVE_LOG1PL=1;
5812 HAVE_LOGBF=1;
5813 HAVE_LOGBL=1;
5814 HAVE_MODFF=1;
5815 HAVE_MODFL=1;
5816 HAVE_POWF=1;
5817 HAVE_REMAINDER=1;
5818 HAVE_REMAINDERF=1;
5819 HAVE_RINT=1;
5820 HAVE_RINTL=1;
5821 HAVE_SINF=1;
5822 HAVE_SINL=1;
5823 HAVE_SINHF=1;
5824 HAVE_SQRTF=1;
5825 HAVE_SQRTL=1;
5826 HAVE_TANF=1;
5827 HAVE_TANL=1;
5828 HAVE_TANHF=1;
5829 HAVE_DECL_ACOSL=1;
5830 HAVE_DECL_ASINL=1;
5831 HAVE_DECL_ATANL=1;
5832 HAVE_DECL_CBRTF=1;
5833 HAVE_DECL_CBRTL=1;
5834 HAVE_DECL_CEILF=1;
5835 HAVE_DECL_CEILL=1;
5836 HAVE_DECL_COPYSIGNF=1;
5837 HAVE_DECL_COSL=1;
5838 HAVE_DECL_EXPL=1;
5839 HAVE_DECL_EXP2=1;
5840 HAVE_DECL_EXP2F=1;
5841 HAVE_DECL_EXP2L=1;
5842 HAVE_DECL_EXPM1L=1;
5843 HAVE_DECL_FLOORF=1;
5844 HAVE_DECL_FLOORL=1;
5845 HAVE_DECL_FREXPL=1;
5846 HAVE_DECL_LDEXPL=1;
5847 HAVE_DECL_LOGL=1;
5848 HAVE_DECL_LOG10L=1;
5849 HAVE_DECL_LOG2=1;
5850 HAVE_DECL_LOG2F=1;
5851 HAVE_DECL_LOG2L=1;
5852 HAVE_DECL_LOGB=1;
5853 HAVE_DECL_REMAINDER=1;
5854 HAVE_DECL_REMAINDERL=1;
5855 HAVE_DECL_RINTF=1;
5856 HAVE_DECL_ROUND=1;
5857 HAVE_DECL_ROUNDF=1;
5858 HAVE_DECL_ROUNDL=1;
5859 HAVE_DECL_SINL=1;
5860 HAVE_DECL_SQRTL=1;
5861 HAVE_DECL_TANL=1;
5862 HAVE_DECL_TRUNC=1;
5863 HAVE_DECL_TRUNCF=1;
5864 HAVE_DECL_TRUNCL=1;
5865 REPLACE_CBRTF=0;
5866 REPLACE_CBRTL=0;
5867 REPLACE_CEIL=0;
5868 REPLACE_CEILF=0;
5869 REPLACE_CEILL=0;
5870 REPLACE_EXPM1=0;
5871 REPLACE_EXPM1F=0;
5872 REPLACE_EXP2=0;
5873 REPLACE_EXP2L=0;
5874 REPLACE_FABSL=0;
5875 REPLACE_FLOOR=0;
5876 REPLACE_FLOORF=0;
5877 REPLACE_FLOORL=0;
5878 REPLACE_FMA=0;
5879 REPLACE_FMAF=0;
5880 REPLACE_FMAL=0;
5881 REPLACE_FMOD=0;
5882 REPLACE_FMODF=0;
5883 REPLACE_FMODL=0;
5884 REPLACE_FREXPF=0;
5885 REPLACE_FREXP=0;
5886 REPLACE_FREXPL=0;
5887 REPLACE_HUGE_VAL=0;
5888 REPLACE_HYPOT=0;
5889 REPLACE_HYPOTF=0;
5890 REPLACE_HYPOTL=0;
5891 REPLACE_ILOGB=0;
5892 REPLACE_ILOGBF=0;
5893 REPLACE_ISFINITE=0;
5894 REPLACE_ISINF=0;
5895 REPLACE_ISNAN=0;
5896 REPLACE_LDEXPL=0;
5897 REPLACE_LOG=0;
5898 REPLACE_LOGF=0;
5899 REPLACE_LOGL=0;
5900 REPLACE_LOG10=0;
5901 REPLACE_LOG10F=0;
5902 REPLACE_LOG10L=0;
5903 REPLACE_LOG1P=0;
5904 REPLACE_LOG1PF=0;
5905 REPLACE_LOG1PL=0;
5906 REPLACE_LOG2=0;
5907 REPLACE_LOG2F=0;
5908 REPLACE_LOG2L=0;
5909 REPLACE_LOGB=0;
5910 REPLACE_LOGBF=0;
5911 REPLACE_LOGBL=0;
5912 REPLACE_MODF=0;
5913 REPLACE_MODFF=0;
5914 REPLACE_MODFL=0;
5915 REPLACE_NAN=0;
5916 REPLACE_REMAINDER=0;
5917 REPLACE_REMAINDERF=0;
5918 REPLACE_REMAINDERL=0;
5919 REPLACE_ROUND=0;
5920 REPLACE_ROUNDF=0;
5921 REPLACE_ROUNDL=0;
5922 REPLACE_SIGNBIT=0;
5923 REPLACE_SIGNBIT_USING_GCC=0;
5924 REPLACE_SQRTL=0;
5925 REPLACE_TRUNC=0;
5926 REPLACE_TRUNCF=0;
5927 REPLACE_TRUNCL=0;
5928
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
5931 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
5932 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 #include <math.h>
5939 double x;
5940 int
5941 main ()
5942 {
5943 int e; return frexp (x, &e) > 0;
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 gl_cv_func_frexp_no_libm=yes
5950 else
5951 gl_cv_func_frexp_no_libm=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5955
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
5958 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
5959
5960
5961
5962
5963
5964
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
5967 $as_echo_n "checking whether long double and double are the same... " >&6; }
5968 if test "${gl_cv_long_double_equals_double+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <float.h>
5974 int
5975 main ()
5976 {
5977 typedef int check[sizeof (long double) == sizeof (double)
5978 && LDBL_MANT_DIG == DBL_MANT_DIG
5979 && LDBL_MAX_EXP == DBL_MAX_EXP
5980 && LDBL_MIN_EXP == DBL_MIN_EXP
5981 ? 1 : -1];
5982
5983 ;
5984 return 0;
5985 }
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 gl_cv_long_double_equals_double=yes
5989 else
5990 gl_cv_long_double_equals_double=no
5991 fi
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
5996 $as_echo "$gl_cv_long_double_equals_double" >&6; }
5997 if test $gl_cv_long_double_equals_double = yes; then
5998
5999 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6000
6001 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6002 else
6003 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6004 fi
6005
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6009 $as_echo_n "checking for unsigned long long int... " >&6; }
6010 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 ac_cv_type_unsigned_long_long_int=yes
6014 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017
6018 /* For now, do not test the preprocessor; as of 2007 there are too many
6019 implementations with broken preprocessors. Perhaps this can
6020 be revisited in 2012. In the meantime, code should not expect
6021 #if to work with literals wider than 32 bits. */
6022 /* Test literals. */
6023 long long int ll = 9223372036854775807ll;
6024 long long int nll = -9223372036854775807LL;
6025 unsigned long long int ull = 18446744073709551615ULL;
6026 /* Test constant expressions. */
6027 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6028 ? 1 : -1)];
6029 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6030 ? 1 : -1)];
6031 int i = 63;
6032 int
6033 main ()
6034 {
6035 /* Test availability of runtime routines for shift and division. */
6036 long long int llmax = 9223372036854775807ll;
6037 unsigned long long int ullmax = 18446744073709551615ull;
6038 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6039 | (llmax / ll) | (llmax % ll)
6040 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6041 | (ullmax / ull) | (ullmax % ull));
6042 ;
6043 return 0;
6044 }
6045
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"; then :
6048
6049 else
6050 ac_cv_type_unsigned_long_long_int=no
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 fi
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6057 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6058 if test $ac_cv_type_unsigned_long_long_int = yes; then
6059
6060 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6061
6062 fi
6063
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067 $as_echo_n "checking for long long int... " >&6; }
6068 if test "${ac_cv_type_long_long_int+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 ac_cv_type_long_long_int=yes
6072 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6073 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6074 if test $ac_cv_type_long_long_int = yes; then
6075 if test "$cross_compiling" = yes; then :
6076 :
6077 else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #include <limits.h>
6081 #ifndef LLONG_MAX
6082 # define HALF \
6083 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6084 # define LLONG_MAX (HALF - 1 + HALF)
6085 #endif
6086 int
6087 main ()
6088 {
6089 long long int n = 1;
6090 int i;
6091 for (i = 0; ; i++)
6092 {
6093 long long int m = n << i;
6094 if (m >> i != n)
6095 return 1;
6096 if (LLONG_MAX / 2 < m)
6097 break;
6098 }
6099 return 0;
6100 ;
6101 return 0;
6102 }
6103 _ACEOF
6104 if ac_fn_c_try_run "$LINENO"; then :
6105
6106 else
6107 ac_cv_type_long_long_int=no
6108 fi
6109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6110 conftest.$ac_objext conftest.beam conftest.$ac_ext
6111 fi
6112
6113 fi
6114 fi
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6117 $as_echo "$ac_cv_type_long_long_int" >&6; }
6118 if test $ac_cv_type_long_long_int = yes; then
6119
6120 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6121
6122 fi
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 gl_cv_c_multiarch=no
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #ifndef __APPLE_CC__
6139 not a universal capable compiler
6140 #endif
6141 typedef int dummy;
6142
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145
6146 arch=
6147 prev=
6148 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6149 if test -n "$prev"; then
6150 case $word in
6151 i?86 | x86_64 | ppc | ppc64)
6152 if test -z "$arch" || test "$arch" = "$word"; then
6153 arch="$word"
6154 else
6155 gl_cv_c_multiarch=yes
6156 fi
6157 ;;
6158 esac
6159 prev=
6160 else
6161 if test "x$word" = "x-arch"; then
6162 prev=arch
6163 fi
6164 fi
6165 done
6166
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 if test $gl_cv_c_multiarch = yes; then
6170 APPLE_UNIVERSAL_BUILD=1
6171 else
6172 APPLE_UNIVERSAL_BUILD=0
6173 fi
6174
6175
6176
6177
6178
6179 if test $ac_cv_type_long_long_int = yes; then
6180 HAVE_LONG_LONG_INT=1
6181 else
6182 HAVE_LONG_LONG_INT=0
6183 fi
6184
6185
6186 if test $ac_cv_type_unsigned_long_long_int = yes; then
6187 HAVE_UNSIGNED_LONG_LONG_INT=1
6188 else
6189 HAVE_UNSIGNED_LONG_LONG_INT=0
6190 fi
6191
6192
6193
6194 :
6195
6196
6197
6198
6199
6200 if test $ac_cv_header_wchar_h = yes; then
6201 HAVE_WCHAR_H=1
6202 else
6203 HAVE_WCHAR_H=0
6204 fi
6205
6206
6207 if test $ac_cv_header_inttypes_h = yes; then
6208 HAVE_INTTYPES_H=1
6209 else
6210 HAVE_INTTYPES_H=0
6211 fi
6212
6213
6214 if test $ac_cv_header_sys_types_h = yes; then
6215 HAVE_SYS_TYPES_H=1
6216 else
6217 HAVE_SYS_TYPES_H=0
6218 fi
6219
6220
6221
6222
6223
6224
6225
6226
6227 :
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test $gl_cv_have_include_next = yes; then
6237 gl_cv_next_stdint_h='<'stdint.h'>'
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6240 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6241 if test "${gl_cv_next_stdint_h+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244
6245 if test $ac_cv_header_stdint_h = yes; then
6246
6247
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 #include <stdint.h>
6251
6252 _ACEOF
6253 case "$host_os" in
6254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6255 *) gl_absname_cpp="$ac_cpp" ;;
6256 esac
6257
6258 case "$host_os" in
6259 mingw*)
6260 gl_dirsep_regex='[/\\]'
6261 ;;
6262 *)
6263 gl_dirsep_regex='\/'
6264 ;;
6265 esac
6266 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6267
6268 gl_header_literal_regex=`echo 'stdint.h' \
6269 | sed -e "$gl_make_literal_regex_sed"`
6270 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6271 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6272 s|^/[^/]|//&|
6273 p
6274 q
6275 }'
6276 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6277 sed -n "$gl_absolute_header_sed"`'"'
6278 else
6279 gl_cv_next_stdint_h='<'stdint.h'>'
6280 fi
6281
6282
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6285 $as_echo "$gl_cv_next_stdint_h" >&6; }
6286 fi
6287 NEXT_STDINT_H=$gl_cv_next_stdint_h
6288
6289 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6291 gl_next_as_first_directive='<'stdint.h'>'
6292 else
6293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6294 gl_next_as_first_directive=$gl_cv_next_stdint_h
6295 fi
6296 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6297
6298
6299
6300
6301 if test $ac_cv_header_stdint_h = yes; then
6302 HAVE_STDINT_H=1
6303 else
6304 HAVE_STDINT_H=0
6305 fi
6306
6307
6308 if test $ac_cv_header_stdint_h = yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6310 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6311 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 gl_cv_header_working_stdint_h=no
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317
6318
6319 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6320 #include <stdint.h>
6321 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6322 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6323 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6324 #endif
6325
6326
6327 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6328 included before <wchar.h>. */
6329 #include <stddef.h>
6330 #include <signal.h>
6331 #if HAVE_WCHAR_H
6332 # include <stdio.h>
6333 # include <time.h>
6334 # include <wchar.h>
6335 #endif
6336
6337
6338 #ifdef INT8_MAX
6339 int8_t a1 = INT8_MAX;
6340 int8_t a1min = INT8_MIN;
6341 #endif
6342 #ifdef INT16_MAX
6343 int16_t a2 = INT16_MAX;
6344 int16_t a2min = INT16_MIN;
6345 #endif
6346 #ifdef INT32_MAX
6347 int32_t a3 = INT32_MAX;
6348 int32_t a3min = INT32_MIN;
6349 #endif
6350 #ifdef INT64_MAX
6351 int64_t a4 = INT64_MAX;
6352 int64_t a4min = INT64_MIN;
6353 #endif
6354 #ifdef UINT8_MAX
6355 uint8_t b1 = UINT8_MAX;
6356 #else
6357 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6358 #endif
6359 #ifdef UINT16_MAX
6360 uint16_t b2 = UINT16_MAX;
6361 #endif
6362 #ifdef UINT32_MAX
6363 uint32_t b3 = UINT32_MAX;
6364 #endif
6365 #ifdef UINT64_MAX
6366 uint64_t b4 = UINT64_MAX;
6367 #endif
6368 int_least8_t c1 = INT8_C (0x7f);
6369 int_least8_t c1max = INT_LEAST8_MAX;
6370 int_least8_t c1min = INT_LEAST8_MIN;
6371 int_least16_t c2 = INT16_C (0x7fff);
6372 int_least16_t c2max = INT_LEAST16_MAX;
6373 int_least16_t c2min = INT_LEAST16_MIN;
6374 int_least32_t c3 = INT32_C (0x7fffffff);
6375 int_least32_t c3max = INT_LEAST32_MAX;
6376 int_least32_t c3min = INT_LEAST32_MIN;
6377 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6378 int_least64_t c4max = INT_LEAST64_MAX;
6379 int_least64_t c4min = INT_LEAST64_MIN;
6380 uint_least8_t d1 = UINT8_C (0xff);
6381 uint_least8_t d1max = UINT_LEAST8_MAX;
6382 uint_least16_t d2 = UINT16_C (0xffff);
6383 uint_least16_t d2max = UINT_LEAST16_MAX;
6384 uint_least32_t d3 = UINT32_C (0xffffffff);
6385 uint_least32_t d3max = UINT_LEAST32_MAX;
6386 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6387 uint_least64_t d4max = UINT_LEAST64_MAX;
6388 int_fast8_t e1 = INT_FAST8_MAX;
6389 int_fast8_t e1min = INT_FAST8_MIN;
6390 int_fast16_t e2 = INT_FAST16_MAX;
6391 int_fast16_t e2min = INT_FAST16_MIN;
6392 int_fast32_t e3 = INT_FAST32_MAX;
6393 int_fast32_t e3min = INT_FAST32_MIN;
6394 int_fast64_t e4 = INT_FAST64_MAX;
6395 int_fast64_t e4min = INT_FAST64_MIN;
6396 uint_fast8_t f1 = UINT_FAST8_MAX;
6397 uint_fast16_t f2 = UINT_FAST16_MAX;
6398 uint_fast32_t f3 = UINT_FAST32_MAX;
6399 uint_fast64_t f4 = UINT_FAST64_MAX;
6400 #ifdef INTPTR_MAX
6401 intptr_t g = INTPTR_MAX;
6402 intptr_t gmin = INTPTR_MIN;
6403 #endif
6404 #ifdef UINTPTR_MAX
6405 uintptr_t h = UINTPTR_MAX;
6406 #endif
6407 intmax_t i = INTMAX_MAX;
6408 uintmax_t j = UINTMAX_MAX;
6409
6410 #include <limits.h> /* for CHAR_BIT */
6411 #define TYPE_MINIMUM(t) \
6412 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6413 #define TYPE_MAXIMUM(t) \
6414 ((t) ((t) 0 < (t) -1 \
6415 ? (t) -1 \
6416 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6417 struct s {
6418 int check_PTRDIFF:
6419 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6420 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6421 ? 1 : -1;
6422 /* Detect bug in FreeBSD 6.0 / ia64. */
6423 int check_SIG_ATOMIC:
6424 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6425 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6426 ? 1 : -1;
6427 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6428 int check_WCHAR:
6429 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6430 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6431 ? 1 : -1;
6432 /* Detect bug in mingw. */
6433 int check_WINT:
6434 WINT_MIN == TYPE_MINIMUM (wint_t)
6435 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6436 ? 1 : -1;
6437
6438 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6439 int check_UINT8_C:
6440 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6441 int check_UINT16_C:
6442 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6443
6444 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6445 #ifdef UINT8_MAX
6446 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6447 #endif
6448 #ifdef UINT16_MAX
6449 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6450 #endif
6451 #ifdef UINT32_MAX
6452 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6453 #endif
6454 #ifdef UINT64_MAX
6455 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6456 #endif
6457 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6458 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6459 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6460 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6461 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6462 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6463 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6464 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6465 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6466 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6467 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6468 };
6469
6470 int
6471 main ()
6472 {
6473
6474 ;
6475 return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 if test "$cross_compiling" = yes; then :
6480 gl_cv_header_working_stdint_h=yes
6481
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485
6486
6487 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6488 #include <stdint.h>
6489
6490
6491 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6492 included before <wchar.h>. */
6493 #include <stddef.h>
6494 #include <signal.h>
6495 #if HAVE_WCHAR_H
6496 # include <stdio.h>
6497 # include <time.h>
6498 # include <wchar.h>
6499 #endif
6500
6501
6502 #include <stdio.h>
6503 #include <string.h>
6504 #define MVAL(macro) MVAL1(macro)
6505 #define MVAL1(expression) #expression
6506 static const char *macro_values[] =
6507 {
6508 #ifdef INT8_MAX
6509 MVAL (INT8_MAX),
6510 #endif
6511 #ifdef INT16_MAX
6512 MVAL (INT16_MAX),
6513 #endif
6514 #ifdef INT32_MAX
6515 MVAL (INT32_MAX),
6516 #endif
6517 #ifdef INT64_MAX
6518 MVAL (INT64_MAX),
6519 #endif
6520 #ifdef UINT8_MAX
6521 MVAL (UINT8_MAX),
6522 #endif
6523 #ifdef UINT16_MAX
6524 MVAL (UINT16_MAX),
6525 #endif
6526 #ifdef UINT32_MAX
6527 MVAL (UINT32_MAX),
6528 #endif
6529 #ifdef UINT64_MAX
6530 MVAL (UINT64_MAX),
6531 #endif
6532 NULL
6533 };
6534
6535 int
6536 main ()
6537 {
6538
6539 const char **mv;
6540 for (mv = macro_values; *mv != NULL; mv++)
6541 {
6542 const char *value = *mv;
6543 /* Test whether it looks like a cast expression. */
6544 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6545 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6546 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6547 || strncmp (value, "((int)"/*)*/, 6) == 0
6548 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6549 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6550 return mv - macro_values + 1;
6551 }
6552 return 0;
6553
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 if ac_fn_c_try_run "$LINENO"; then :
6559 gl_cv_header_working_stdint_h=yes
6560 fi
6561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6562 conftest.$ac_objext conftest.beam conftest.$ac_ext
6563 fi
6564
6565
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6571 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6572 fi
6573 if test "$gl_cv_header_working_stdint_h" = yes; then
6574 STDINT_H=
6575 else
6576 for ac_header in sys/inttypes.h sys/bitypes.h
6577 do :
6578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6579 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6580 eval as_val=\$$as_ac_Header
6581 if test "x$as_val" = x""yes; then :
6582 cat >>confdefs.h <<_ACEOF
6583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 _ACEOF
6585
6586 fi
6587
6588 done
6589
6590 if test $ac_cv_header_sys_inttypes_h = yes; then
6591 HAVE_SYS_INTTYPES_H=1
6592 else
6593 HAVE_SYS_INTTYPES_H=0
6594 fi
6595
6596 if test $ac_cv_header_sys_bitypes_h = yes; then
6597 HAVE_SYS_BITYPES_H=1
6598 else
6599 HAVE_SYS_BITYPES_H=0
6600 fi
6601
6602
6603
6604
6605 if test $APPLE_UNIVERSAL_BUILD = 0; then
6606
6607
6608 for gltype in ptrdiff_t size_t ; do
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6610 $as_echo_n "checking for bit size of $gltype... " >&6; }
6611 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6615 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6616 included before <wchar.h>. */
6617 #include <stddef.h>
6618 #include <signal.h>
6619 #if HAVE_WCHAR_H
6620 # include <stdio.h>
6621 # include <time.h>
6622 # include <wchar.h>
6623 #endif
6624
6625 #include <limits.h>"; then :
6626
6627 else
6628 result=unknown
6629 fi
6630
6631 eval gl_cv_bitsizeof_${gltype}=\$result
6632
6633 fi
6634 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6637 eval result=\$gl_cv_bitsizeof_${gltype}
6638 if test $result = unknown; then
6639 result=0
6640 fi
6641 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6642 cat >>confdefs.h <<_ACEOF
6643 #define BITSIZEOF_${GLTYPE} $result
6644 _ACEOF
6645
6646 eval BITSIZEOF_${GLTYPE}=\$result
6647 done
6648
6649
6650 fi
6651
6652
6653 for gltype in sig_atomic_t wchar_t wint_t ; do
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6655 $as_echo_n "checking for bit size of $gltype... " >&6; }
6656 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6660 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6661 included before <wchar.h>. */
6662 #include <stddef.h>
6663 #include <signal.h>
6664 #if HAVE_WCHAR_H
6665 # include <stdio.h>
6666 # include <time.h>
6667 # include <wchar.h>
6668 #endif
6669
6670 #include <limits.h>"; then :
6671
6672 else
6673 result=unknown
6674 fi
6675
6676 eval gl_cv_bitsizeof_${gltype}=\$result
6677
6678 fi
6679 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 eval result=\$gl_cv_bitsizeof_${gltype}
6683 if test $result = unknown; then
6684 result=0
6685 fi
6686 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6687 cat >>confdefs.h <<_ACEOF
6688 #define BITSIZEOF_${GLTYPE} $result
6689 _ACEOF
6690
6691 eval BITSIZEOF_${GLTYPE}=\$result
6692 done
6693
6694
6695
6696
6697 for gltype in sig_atomic_t wchar_t wint_t ; do
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6699 $as_echo_n "checking whether $gltype is signed... " >&6; }
6700 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705
6706 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6707 included before <wchar.h>. */
6708 #include <stddef.h>
6709 #include <signal.h>
6710 #if HAVE_WCHAR_H
6711 # include <stdio.h>
6712 # include <time.h>
6713 # include <wchar.h>
6714 #endif
6715
6716 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6717 int
6718 main ()
6719 {
6720
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726 result=yes
6727 else
6728 result=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 eval gl_cv_type_${gltype}_signed=\$result
6732
6733 fi
6734 eval ac_res=\$gl_cv_type_${gltype}_signed
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6736 $as_echo "$ac_res" >&6; }
6737 eval result=\$gl_cv_type_${gltype}_signed
6738 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6739 if test "$result" = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_SIGNED_${GLTYPE} 1
6742 _ACEOF
6743
6744 eval HAVE_SIGNED_${GLTYPE}=1
6745 else
6746 eval HAVE_SIGNED_${GLTYPE}=0
6747 fi
6748 done
6749
6750
6751 gl_cv_type_ptrdiff_t_signed=yes
6752 gl_cv_type_size_t_signed=no
6753 if test $APPLE_UNIVERSAL_BUILD = 0; then
6754
6755
6756 for gltype in ptrdiff_t size_t ; do
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6758 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6759 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 eval gl_cv_type_${gltype}_suffix=no
6763 eval result=\$gl_cv_type_${gltype}_signed
6764 if test "$result" = yes; then
6765 glsufu=
6766 else
6767 glsufu=u
6768 fi
6769 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6770 case $glsuf in
6771 '') gltype1='int';;
6772 l) gltype1='long int';;
6773 ll) gltype1='long long int';;
6774 i64) gltype1='__int64';;
6775 u) gltype1='unsigned int';;
6776 ul) gltype1='unsigned long int';;
6777 ull) gltype1='unsigned long long int';;
6778 ui64)gltype1='unsigned __int64';;
6779 esac
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782
6783 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6784 included before <wchar.h>. */
6785 #include <stddef.h>
6786 #include <signal.h>
6787 #if HAVE_WCHAR_H
6788 # include <stdio.h>
6789 # include <time.h>
6790 # include <wchar.h>
6791 #endif
6792
6793 extern $gltype foo;
6794 extern $gltype1 foo;
6795 int
6796 main ()
6797 {
6798
6799 ;
6800 return 0;
6801 }
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 eval gl_cv_type_${gltype}_suffix=\$glsuf
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 eval result=\$gl_cv_type_${gltype}_suffix
6808 test "$result" != no && break
6809 done
6810 fi
6811 eval ac_res=\$gl_cv_type_${gltype}_suffix
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813 $as_echo "$ac_res" >&6; }
6814 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6815 eval result=\$gl_cv_type_${gltype}_suffix
6816 test "$result" = no && result=
6817 eval ${GLTYPE}_SUFFIX=\$result
6818 cat >>confdefs.h <<_ACEOF
6819 #define ${GLTYPE}_SUFFIX $result
6820 _ACEOF
6821
6822 done
6823
6824
6825 fi
6826
6827
6828 for gltype in sig_atomic_t wchar_t wint_t ; do
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6830 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6831 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 eval gl_cv_type_${gltype}_suffix=no
6835 eval result=\$gl_cv_type_${gltype}_signed
6836 if test "$result" = yes; then
6837 glsufu=
6838 else
6839 glsufu=u
6840 fi
6841 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6842 case $glsuf in
6843 '') gltype1='int';;
6844 l) gltype1='long int';;
6845 ll) gltype1='long long int';;
6846 i64) gltype1='__int64';;
6847 u) gltype1='unsigned int';;
6848 ul) gltype1='unsigned long int';;
6849 ull) gltype1='unsigned long long int';;
6850 ui64)gltype1='unsigned __int64';;
6851 esac
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854
6855 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6856 included before <wchar.h>. */
6857 #include <stddef.h>
6858 #include <signal.h>
6859 #if HAVE_WCHAR_H
6860 # include <stdio.h>
6861 # include <time.h>
6862 # include <wchar.h>
6863 #endif
6864
6865 extern $gltype foo;
6866 extern $gltype1 foo;
6867 int
6868 main ()
6869 {
6870
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 eval gl_cv_type_${gltype}_suffix=\$glsuf
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 eval result=\$gl_cv_type_${gltype}_suffix
6880 test "$result" != no && break
6881 done
6882 fi
6883 eval ac_res=\$gl_cv_type_${gltype}_suffix
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6887 eval result=\$gl_cv_type_${gltype}_suffix
6888 test "$result" = no && result=
6889 eval ${GLTYPE}_SUFFIX=\$result
6890 cat >>confdefs.h <<_ACEOF
6891 #define ${GLTYPE}_SUFFIX $result
6892 _ACEOF
6893
6894 done
6895
6896
6897
6898 if test $BITSIZEOF_WINT_T -lt 32; then
6899 BITSIZEOF_WINT_T=32
6900 fi
6901
6902 STDINT_H=stdint.h
6903 fi
6904
6905 if test -n "$STDINT_H"; then
6906 GL_GENERATE_STDINT_H_TRUE=
6907 GL_GENERATE_STDINT_H_FALSE='#'
6908 else
6909 GL_GENERATE_STDINT_H_TRUE='#'
6910 GL_GENERATE_STDINT_H_FALSE=
6911 fi
6912
6913
6914
6915
6916
6917
6918
6919
6920 GNULIB_IMAXABS=0;
6921 GNULIB_IMAXDIV=0;
6922 GNULIB_STRTOIMAX=0;
6923 GNULIB_STRTOUMAX=0;
6924 HAVE_DECL_IMAXABS=1;
6925 HAVE_DECL_IMAXDIV=1;
6926 HAVE_DECL_STRTOIMAX=1;
6927 HAVE_DECL_STRTOUMAX=1;
6928 REPLACE_STRTOIMAX=0;
6929 INT32_MAX_LT_INTMAX_MAX=1;
6930 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6931 PRI_MACROS_BROKEN=0;
6932 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6933 UINT32_MAX_LT_UINTMAX_MAX=1;
6934 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6935
6936
6937
6938
6939 :
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953 :
6954
6955
6956
6957
6958
6959
6960
6961
6962 if test $gl_cv_have_include_next = yes; then
6963 gl_cv_next_inttypes_h='<'inttypes.h'>'
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6966 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6967 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970
6971 if test $ac_cv_header_inttypes_h = yes; then
6972
6973
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 #include <inttypes.h>
6977
6978 _ACEOF
6979 case "$host_os" in
6980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6981 *) gl_absname_cpp="$ac_cpp" ;;
6982 esac
6983
6984 case "$host_os" in
6985 mingw*)
6986 gl_dirsep_regex='[/\\]'
6987 ;;
6988 *)
6989 gl_dirsep_regex='\/'
6990 ;;
6991 esac
6992 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6993
6994 gl_header_literal_regex=`echo 'inttypes.h' \
6995 | sed -e "$gl_make_literal_regex_sed"`
6996 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6997 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6998 s|^/[^/]|//&|
6999 p
7000 q
7001 }'
7002 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7003 sed -n "$gl_absolute_header_sed"`'"'
7004 else
7005 gl_cv_next_inttypes_h='<'inttypes.h'>'
7006 fi
7007
7008
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7011 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7012 fi
7013 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7014
7015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7017 gl_next_as_first_directive='<'inttypes.h'>'
7018 else
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7020 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7021 fi
7022 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7023
7024
7025
7026
7027
7028
7029
7030
7031 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7032 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7034 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7035 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 #include <inttypes.h>
7041
7042 int
7043 main ()
7044 {
7045 #undef $gl_func
7046 (void) $gl_func;
7047 ;
7048 return 0;
7049 }
7050 _ACEOF
7051 if ac_fn_c_try_compile "$LINENO"; then :
7052 eval "$as_gl_Symbol=yes"
7053 else
7054 eval "$as_gl_Symbol=no"
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 fi
7058 eval ac_res=\$$as_gl_Symbol
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7060 $as_echo "$ac_res" >&6; }
7061 eval as_val=\$$as_gl_Symbol
7062 if test "x$as_val" = x""yes; then :
7063 cat >>confdefs.h <<_ACEOF
7064 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7065 _ACEOF
7066
7067 eval ac_cv_have_decl_$gl_func=yes
7068 fi
7069 done
7070
7071
7072
7073 for ac_header in inttypes.h
7074 do :
7075 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7076 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_INTTYPES_H 1
7079 _ACEOF
7080
7081 fi
7082
7083 done
7084
7085 if test $ac_cv_header_inttypes_h = yes; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7087 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7088 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094
7095 #include <inttypes.h>
7096 #ifdef PRId32
7097 char *p = PRId32;
7098 #endif
7099
7100 int
7101 main ()
7102 {
7103
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_compile "$LINENO"; then :
7109 gt_cv_inttypes_pri_broken=no
7110 else
7111 gt_cv_inttypes_pri_broken=yes
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7117 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7118 fi
7119 if test "$gt_cv_inttypes_pri_broken" = yes; then
7120
7121 cat >>confdefs.h <<_ACEOF
7122 #define PRI_MACROS_BROKEN 1
7123 _ACEOF
7124
7125 PRI_MACROS_BROKEN=1
7126 else
7127 PRI_MACROS_BROKEN=0
7128 fi
7129
7130
7131
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7133 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7134 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137
7138 if test "$cross_compiling" = yes; then :
7139
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142
7143 #if defined arm || defined __arm || defined __arm__
7144 mixed_endianness
7145 #endif
7146
7147 _ACEOF
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7150 gl_cv_cc_double_expbit0="unknown"
7151 else
7152
7153 :
7154 if test "${ac_cv_c_bigendian+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 ac_cv_c_bigendian=unknown
7158 # See if we're dealing with a universal compiler.
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 #ifndef __APPLE_CC__
7162 not a universal capable compiler
7163 #endif
7164 typedef int dummy;
7165
7166 _ACEOF
7167 if ac_fn_c_try_compile "$LINENO"; then :
7168
7169 # Check for potential -arch flags. It is not universal unless
7170 # there are at least two -arch flags with different values.
7171 ac_arch=
7172 ac_prev=
7173 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7174 if test -n "$ac_prev"; then
7175 case $ac_word in
7176 i?86 | x86_64 | ppc | ppc64)
7177 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7178 ac_arch=$ac_word
7179 else
7180 ac_cv_c_bigendian=universal
7181 break
7182 fi
7183 ;;
7184 esac
7185 ac_prev=
7186 elif test "x$ac_word" = "x-arch"; then
7187 ac_prev=arch
7188 fi
7189 done
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 if test $ac_cv_c_bigendian = unknown; then
7193 # See if sys/param.h defines the BYTE_ORDER macro.
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 #include <sys/types.h>
7197 #include <sys/param.h>
7198
7199 int
7200 main ()
7201 {
7202 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7203 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7204 && LITTLE_ENDIAN)
7205 bogus endian macros
7206 #endif
7207
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_compile "$LINENO"; then :
7213 # It does; now see whether it defined to BIG_ENDIAN or not.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <sys/types.h>
7217 #include <sys/param.h>
7218
7219 int
7220 main ()
7221 {
7222 #if BYTE_ORDER != BIG_ENDIAN
7223 not big endian
7224 #endif
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 ac_cv_c_bigendian=yes
7232 else
7233 ac_cv_c_bigendian=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 if test $ac_cv_c_bigendian = unknown; then
7240 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <limits.h>
7244
7245 int
7246 main ()
7247 {
7248 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7249 bogus endian macros
7250 #endif
7251
7252 ;
7253 return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257 # It does; now see whether it defined to _BIG_ENDIAN or not.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #include <limits.h>
7261
7262 int
7263 main ()
7264 {
7265 #ifndef _BIG_ENDIAN
7266 not big endian
7267 #endif
7268
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_c_bigendian=yes
7275 else
7276 ac_cv_c_bigendian=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 fi
7282 if test $ac_cv_c_bigendian = unknown; then
7283 # Compile a test program.
7284 if test "$cross_compiling" = yes; then :
7285 # Try to guess by grepping values from an object file.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 short int ascii_mm[] =
7289 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7290 short int ascii_ii[] =
7291 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7292 int use_ascii (int i) {
7293 return ascii_mm[i] + ascii_ii[i];
7294 }
7295 short int ebcdic_ii[] =
7296 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7297 short int ebcdic_mm[] =
7298 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7299 int use_ebcdic (int i) {
7300 return ebcdic_mm[i] + ebcdic_ii[i];
7301 }
7302 extern int foo;
7303
7304 int
7305 main ()
7306 {
7307 return use_ascii (foo) == use_ebcdic (foo);
7308 ;
7309 return 0;
7310 }
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7314 ac_cv_c_bigendian=yes
7315 fi
7316 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7317 if test "$ac_cv_c_bigendian" = unknown; then
7318 ac_cv_c_bigendian=no
7319 else
7320 # finding both strings is unlikely to happen, but who knows?
7321 ac_cv_c_bigendian=unknown
7322 fi
7323 fi
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 $ac_includes_default
7330 int
7331 main ()
7332 {
7333
7334 /* Are we little or big endian? From Harbison&Steele. */
7335 union
7336 {
7337 long int l;
7338 char c[sizeof (long int)];
7339 } u;
7340 u.l = 1;
7341 return u.c[sizeof (long int) - 1] == 1;
7342
7343 ;
7344 return 0;
7345 }
7346 _ACEOF
7347 if ac_fn_c_try_run "$LINENO"; then :
7348 ac_cv_c_bigendian=no
7349 else
7350 ac_cv_c_bigendian=yes
7351 fi
7352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7353 conftest.$ac_objext conftest.beam conftest.$ac_ext
7354 fi
7355
7356 fi
7357 fi
7358 :
7359 case $ac_cv_c_bigendian in #(
7360 yes)
7361 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7362 no)
7363 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7364 universal)
7365
7366 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7367
7368 ;; #(
7369 *)
7370 gl_cv_cc_double_expbit0="unknown" ;;
7371 esac
7372
7373
7374 fi
7375 rm -f conftest*
7376
7377
7378 else
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381
7382 #include <float.h>
7383 #include <stddef.h>
7384 #include <stdio.h>
7385 #include <string.h>
7386 #define NWORDS \
7387 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7388 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7389 static unsigned int ored_words[NWORDS];
7390 static unsigned int anded_words[NWORDS];
7391 static void add_to_ored_words (double x)
7392 {
7393 memory_double m;
7394 size_t i;
7395 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7396 memset (&m, 0, sizeof (memory_double));
7397 m.value = x;
7398 for (i = 0; i < NWORDS; i++)
7399 {
7400 ored_words[i] |= m.word[i];
7401 anded_words[i] &= m.word[i];
7402 }
7403 }
7404 int main ()
7405 {
7406 size_t j;
7407 FILE *fp = fopen ("conftest.out", "w");
7408 if (fp == NULL)
7409 return 1;
7410 for (j = 0; j < NWORDS; j++)
7411 anded_words[j] = ~ (unsigned int) 0;
7412 add_to_ored_words (0.25);
7413 add_to_ored_words (0.5);
7414 add_to_ored_words (1.0);
7415 add_to_ored_words (2.0);
7416 add_to_ored_words (4.0);
7417 /* Remove bits that are common (e.g. if representation of the first mantissa
7418 bit is explicit). */
7419 for (j = 0; j < NWORDS; j++)
7420 ored_words[j] &= ~anded_words[j];
7421 /* Now find the nonzero word. */
7422 for (j = 0; j < NWORDS; j++)
7423 if (ored_words[j] != 0)
7424 break;
7425 if (j < NWORDS)
7426 {
7427 size_t i;
7428 for (i = j + 1; i < NWORDS; i++)
7429 if (ored_words[i] != 0)
7430 {
7431 fprintf (fp, "unknown");
7432 return (fclose (fp) != 0);
7433 }
7434 for (i = 0; ; i++)
7435 if ((ored_words[j] >> i) & 1)
7436 {
7437 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7438 return (fclose (fp) != 0);
7439 }
7440 }
7441 fprintf (fp, "unknown");
7442 return (fclose (fp) != 0);
7443 }
7444
7445 _ACEOF
7446 if ac_fn_c_try_run "$LINENO"; then :
7447 gl_cv_cc_double_expbit0=`cat conftest.out`
7448 else
7449 gl_cv_cc_double_expbit0="unknown"
7450 fi
7451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452 conftest.$ac_objext conftest.beam conftest.$ac_ext
7453 fi
7454
7455 rm -f conftest.out
7456
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7459 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7460 case "$gl_cv_cc_double_expbit0" in
7461 word*bit*)
7462 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7463 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7464
7465 cat >>confdefs.h <<_ACEOF
7466 #define DBL_EXPBIT0_WORD $word
7467 _ACEOF
7468
7469
7470 cat >>confdefs.h <<_ACEOF
7471 #define DBL_EXPBIT0_BIT $bit
7472 _ACEOF
7473
7474 ;;
7475 esac
7476
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7479 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7480 if test "${ac_cv_c_bigendian+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 ac_cv_c_bigendian=unknown
7484 # See if we're dealing with a universal compiler.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #ifndef __APPLE_CC__
7488 not a universal capable compiler
7489 #endif
7490 typedef int dummy;
7491
7492 _ACEOF
7493 if ac_fn_c_try_compile "$LINENO"; then :
7494
7495 # Check for potential -arch flags. It is not universal unless
7496 # there are at least two -arch flags with different values.
7497 ac_arch=
7498 ac_prev=
7499 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7500 if test -n "$ac_prev"; then
7501 case $ac_word in
7502 i?86 | x86_64 | ppc | ppc64)
7503 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7504 ac_arch=$ac_word
7505 else
7506 ac_cv_c_bigendian=universal
7507 break
7508 fi
7509 ;;
7510 esac
7511 ac_prev=
7512 elif test "x$ac_word" = "x-arch"; then
7513 ac_prev=arch
7514 fi
7515 done
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 if test $ac_cv_c_bigendian = unknown; then
7519 # See if sys/param.h defines the BYTE_ORDER macro.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <sys/types.h>
7523 #include <sys/param.h>
7524
7525 int
7526 main ()
7527 {
7528 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7529 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7530 && LITTLE_ENDIAN)
7531 bogus endian macros
7532 #endif
7533
7534 ;
7535 return 0;
7536 }
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 # It does; now see whether it defined to BIG_ENDIAN or not.
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <sys/types.h>
7543 #include <sys/param.h>
7544
7545 int
7546 main ()
7547 {
7548 #if BYTE_ORDER != BIG_ENDIAN
7549 not big endian
7550 #endif
7551
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557 ac_cv_c_bigendian=yes
7558 else
7559 ac_cv_c_bigendian=no
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 if test $ac_cv_c_bigendian = unknown; then
7566 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <limits.h>
7570
7571 int
7572 main ()
7573 {
7574 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7575 bogus endian macros
7576 #endif
7577
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_compile "$LINENO"; then :
7583 # It does; now see whether it defined to _BIG_ENDIAN or not.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <limits.h>
7587
7588 int
7589 main ()
7590 {
7591 #ifndef _BIG_ENDIAN
7592 not big endian
7593 #endif
7594
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 ac_cv_c_bigendian=yes
7601 else
7602 ac_cv_c_bigendian=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 if test $ac_cv_c_bigendian = unknown; then
7609 # Compile a test program.
7610 if test "$cross_compiling" = yes; then :
7611 # Try to guess by grepping values from an object file.
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 short int ascii_mm[] =
7615 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7616 short int ascii_ii[] =
7617 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7618 int use_ascii (int i) {
7619 return ascii_mm[i] + ascii_ii[i];
7620 }
7621 short int ebcdic_ii[] =
7622 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7623 short int ebcdic_mm[] =
7624 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7625 int use_ebcdic (int i) {
7626 return ebcdic_mm[i] + ebcdic_ii[i];
7627 }
7628 extern int foo;
7629
7630 int
7631 main ()
7632 {
7633 return use_ascii (foo) == use_ebcdic (foo);
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_compile "$LINENO"; then :
7639 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7640 ac_cv_c_bigendian=yes
7641 fi
7642 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7643 if test "$ac_cv_c_bigendian" = unknown; then
7644 ac_cv_c_bigendian=no
7645 else
7646 # finding both strings is unlikely to happen, but who knows?
7647 ac_cv_c_bigendian=unknown
7648 fi
7649 fi
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 else
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 $ac_includes_default
7656 int
7657 main ()
7658 {
7659
7660 /* Are we little or big endian? From Harbison&Steele. */
7661 union
7662 {
7663 long int l;
7664 char c[sizeof (long int)];
7665 } u;
7666 u.l = 1;
7667 return u.c[sizeof (long int) - 1] == 1;
7668
7669 ;
7670 return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_run "$LINENO"; then :
7674 ac_cv_c_bigendian=no
7675 else
7676 ac_cv_c_bigendian=yes
7677 fi
7678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7679 conftest.$ac_objext conftest.beam conftest.$ac_ext
7680 fi
7681
7682 fi
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7685 $as_echo "$ac_cv_c_bigendian" >&6; }
7686 case $ac_cv_c_bigendian in #(
7687 yes)
7688 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7689 ;; #(
7690 no)
7691 ;; #(
7692 universal)
7693
7694 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7695
7696 ;; #(
7697 *)
7698 as_fn_error "unknown endianness
7699 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7700 esac
7701
7702
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7705 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7706 if test "${am_cv_langinfo_codeset+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <langinfo.h>
7712 int
7713 main ()
7714 {
7715 char* cs = nl_langinfo(CODESET); return !cs;
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"; then :
7721 am_cv_langinfo_codeset=yes
7722 else
7723 am_cv_langinfo_codeset=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7730 $as_echo "$am_cv_langinfo_codeset" >&6; }
7731 if test $am_cv_langinfo_codeset = yes; then
7732
7733 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7734
7735 fi
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 :
7752
7753
7754
7755
7756
7757
7758 :
7759
7760
7761
7762
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7765 $as_echo_n "checking for working fcntl.h... " >&6; }
7766 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test "$cross_compiling" = yes; then :
7770 gl_cv_header_working_fcntl_h=cross-compiling
7771 else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 #include <sys/stat.h>
7776 #if HAVE_UNISTD_H
7777 # include <unistd.h>
7778 #else /* on Windows with MSVC */
7779 # include <io.h>
7780 # include <stdlib.h>
7781 # defined sleep(n) _sleep ((n) * 1000)
7782 #endif
7783 #include <fcntl.h>
7784 #ifndef O_NOATIME
7785 #define O_NOATIME 0
7786 #endif
7787 #ifndef O_NOFOLLOW
7788 #define O_NOFOLLOW 0
7789 #endif
7790 static int const constants[] =
7791 {
7792 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7793 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7794 };
7795
7796 int
7797 main ()
7798 {
7799
7800 int result = !constants;
7801 #if HAVE_SYMLINK
7802 {
7803 static char const sym[] = "conftest.sym";
7804 if (symlink ("/dev/null", sym) != 0)
7805 result |= 2;
7806 else
7807 {
7808 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7809 if (fd >= 0)
7810 {
7811 close (fd);
7812 result |= 4;
7813 }
7814 }
7815 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7816 result |= 2;
7817 else
7818 {
7819 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7820 if (fd >= 0)
7821 {
7822 close (fd);
7823 result |= 4;
7824 }
7825 }
7826 unlink (sym);
7827 }
7828 #endif
7829 {
7830 static char const file[] = "confdefs.h";
7831 int fd = open (file, O_RDONLY | O_NOATIME);
7832 if (fd < 0)
7833 result |= 8;
7834 else
7835 {
7836 struct stat st0;
7837 if (fstat (fd, &st0) != 0)
7838 result |= 16;
7839 else
7840 {
7841 char c;
7842 sleep (1);
7843 if (read (fd, &c, 1) != 1)
7844 result |= 24;
7845 else
7846 {
7847 if (close (fd) != 0)
7848 result |= 32;
7849 else
7850 {
7851 struct stat st1;
7852 if (stat (file, &st1) != 0)
7853 result |= 40;
7854 else
7855 if (st0.st_atime != st1.st_atime)
7856 result |= 64;
7857 }
7858 }
7859 }
7860 }
7861 }
7862 return result;
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_run "$LINENO"; then :
7868 gl_cv_header_working_fcntl_h=yes
7869 else
7870 case $? in #(
7871 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7872 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7873 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7874 *) gl_cv_header_working_fcntl_h='no';;
7875 esac
7876 fi
7877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7878 conftest.$ac_objext conftest.beam conftest.$ac_ext
7879 fi
7880
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7883 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7884
7885 case $gl_cv_header_working_fcntl_h in #(
7886 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7887 *) ac_val=1;;
7888 esac
7889
7890 cat >>confdefs.h <<_ACEOF
7891 #define HAVE_WORKING_O_NOATIME $ac_val
7892 _ACEOF
7893
7894
7895 case $gl_cv_header_working_fcntl_h in #(
7896 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7897 *) ac_val=1;;
7898 esac
7899
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7902 _ACEOF
7903
7904
7905
7906 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7907 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7908 ac_have_decl=1
7909 else
7910 ac_have_decl=0
7911 fi
7912
7913 cat >>confdefs.h <<_ACEOF
7914 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7915 _ACEOF
7916
7917
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7920 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7921 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 #include <features.h>
7928 #ifdef __GNU_LIBRARY__
7929 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7930 Lucky GNU user
7931 #endif
7932 #endif
7933 #ifdef __UCLIBC__
7934 Lucky user
7935 #endif
7936
7937 _ACEOF
7938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7939 $EGREP "Lucky" >/dev/null 2>&1; then :
7940 ac_cv_gnu_library_2_1=yes
7941 else
7942 ac_cv_gnu_library_2_1=no
7943 fi
7944 rm -f conftest*
7945
7946
7947
7948 fi
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7950 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7951
7952 GLIBC21="$ac_cv_gnu_library_2_1"
7953
7954
7955
7956
7957
7958
7959
7960
7961 GNULIB_BTOWC=0;
7962 GNULIB_WCTOB=0;
7963 GNULIB_MBSINIT=0;
7964 GNULIB_MBRTOWC=0;
7965 GNULIB_MBRLEN=0;
7966 GNULIB_MBSRTOWCS=0;
7967 GNULIB_MBSNRTOWCS=0;
7968 GNULIB_WCRTOMB=0;
7969 GNULIB_WCSRTOMBS=0;
7970 GNULIB_WCSNRTOMBS=0;
7971 GNULIB_WCWIDTH=0;
7972 GNULIB_WMEMCHR=0;
7973 GNULIB_WMEMCMP=0;
7974 GNULIB_WMEMCPY=0;
7975 GNULIB_WMEMMOVE=0;
7976 GNULIB_WMEMSET=0;
7977 GNULIB_WCSLEN=0;
7978 GNULIB_WCSNLEN=0;
7979 GNULIB_WCSCPY=0;
7980 GNULIB_WCPCPY=0;
7981 GNULIB_WCSNCPY=0;
7982 GNULIB_WCPNCPY=0;
7983 GNULIB_WCSCAT=0;
7984 GNULIB_WCSNCAT=0;
7985 GNULIB_WCSCMP=0;
7986 GNULIB_WCSNCMP=0;
7987 GNULIB_WCSCASECMP=0;
7988 GNULIB_WCSNCASECMP=0;
7989 GNULIB_WCSCOLL=0;
7990 GNULIB_WCSXFRM=0;
7991 GNULIB_WCSDUP=0;
7992 GNULIB_WCSCHR=0;
7993 GNULIB_WCSRCHR=0;
7994 GNULIB_WCSCSPN=0;
7995 GNULIB_WCSSPN=0;
7996 GNULIB_WCSPBRK=0;
7997 GNULIB_WCSSTR=0;
7998 GNULIB_WCSTOK=0;
7999 GNULIB_WCSWIDTH=0;
8000 HAVE_BTOWC=1;
8001 HAVE_MBSINIT=1;
8002 HAVE_MBRTOWC=1;
8003 HAVE_MBRLEN=1;
8004 HAVE_MBSRTOWCS=1;
8005 HAVE_MBSNRTOWCS=1;
8006 HAVE_WCRTOMB=1;
8007 HAVE_WCSRTOMBS=1;
8008 HAVE_WCSNRTOMBS=1;
8009 HAVE_WMEMCHR=1;
8010 HAVE_WMEMCMP=1;
8011 HAVE_WMEMCPY=1;
8012 HAVE_WMEMMOVE=1;
8013 HAVE_WMEMSET=1;
8014 HAVE_WCSLEN=1;
8015 HAVE_WCSNLEN=1;
8016 HAVE_WCSCPY=1;
8017 HAVE_WCPCPY=1;
8018 HAVE_WCSNCPY=1;
8019 HAVE_WCPNCPY=1;
8020 HAVE_WCSCAT=1;
8021 HAVE_WCSNCAT=1;
8022 HAVE_WCSCMP=1;
8023 HAVE_WCSNCMP=1;
8024 HAVE_WCSCASECMP=1;
8025 HAVE_WCSNCASECMP=1;
8026 HAVE_WCSCOLL=1;
8027 HAVE_WCSXFRM=1;
8028 HAVE_WCSDUP=1;
8029 HAVE_WCSCHR=1;
8030 HAVE_WCSRCHR=1;
8031 HAVE_WCSCSPN=1;
8032 HAVE_WCSSPN=1;
8033 HAVE_WCSPBRK=1;
8034 HAVE_WCSSTR=1;
8035 HAVE_WCSTOK=1;
8036 HAVE_WCSWIDTH=1;
8037 HAVE_DECL_WCTOB=1;
8038 HAVE_DECL_WCWIDTH=1;
8039 REPLACE_MBSTATE_T=0;
8040 REPLACE_BTOWC=0;
8041 REPLACE_WCTOB=0;
8042 REPLACE_MBSINIT=0;
8043 REPLACE_MBRTOWC=0;
8044 REPLACE_MBRLEN=0;
8045 REPLACE_MBSRTOWCS=0;
8046 REPLACE_MBSNRTOWCS=0;
8047 REPLACE_WCRTOMB=0;
8048 REPLACE_WCSRTOMBS=0;
8049 REPLACE_WCSNRTOMBS=0;
8050 REPLACE_WCWIDTH=0;
8051 REPLACE_WCSWIDTH=0;
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8067 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8068 if test "${gt_cv_locale_ja+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074
8075 #include <locale.h>
8076 #include <time.h>
8077 #if HAVE_LANGINFO_CODESET
8078 # include <langinfo.h>
8079 #endif
8080 #include <stdlib.h>
8081 #include <string.h>
8082 struct tm t;
8083 char buf[16];
8084 int main ()
8085 {
8086 const char *p;
8087 /* Check whether the given locale name is recognized by the system. */
8088 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8089 /* On native Windows, setlocale(category, "") looks at the system settings,
8090 not at the environment variables. Also, when an encoding suffix such
8091 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8092 category of the locale to "C". */
8093 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8094 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8095 return 1;
8096 #else
8097 if (setlocale (LC_ALL, "") == NULL) return 1;
8098 #endif
8099 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8100 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8101 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8102 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8103 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8104 some unit tests fail.
8105 On MirBSD 10, when an unsupported locale is specified, setlocale()
8106 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8107 #if HAVE_LANGINFO_CODESET
8108 {
8109 const char *cs = nl_langinfo (CODESET);
8110 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8111 || strcmp (cs, "UTF-8") == 0)
8112 return 1;
8113 }
8114 #endif
8115 #ifdef __CYGWIN__
8116 /* On Cygwin, avoid locale names without encoding suffix, because the
8117 locale_charset() function relies on the encoding suffix. Note that
8118 LC_ALL is set on the command line. */
8119 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8120 #endif
8121 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8122 on Cygwin 1.5.x. */
8123 if (MB_CUR_MAX == 1)
8124 return 1;
8125 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8126 This excludes the UTF-8 encoding (except on MirBSD). */
8127 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8128 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8129 for (p = buf; *p != '\0'; p++)
8130 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8131 return 1;
8132 return 0;
8133 }
8134
8135 _ACEOF
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8137 (eval $ac_link) 2>&5
8138 ac_status=$?
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8141 case "$host_os" in
8142 # Handle native Windows specially, because there setlocale() interprets
8143 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8144 # "fr" or "fra" as "French" or "French_France.1252",
8145 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8146 # "ja" as "Japanese" or "Japanese_Japan.932",
8147 # and similar.
8148 mingw*)
8149 # Note that on native Windows, the Japanese locale is
8150 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8151 # cannot use it here.
8152 gt_cv_locale_ja=none
8153 ;;
8154 *)
8155 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8156 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8157 # configure script would override the LC_ALL setting. Likewise for
8158 # LC_CTYPE, which is also set at the beginning of the configure script.
8159 # Test for the AIX locale name.
8160 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8161 gt_cv_locale_ja=ja_JP
8162 else
8163 # Test for the locale name with explicit encoding suffix.
8164 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8165 gt_cv_locale_ja=ja_JP.EUC-JP
8166 else
8167 # Test for the HP-UX, OSF/1, NetBSD locale name.
8168 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8169 gt_cv_locale_ja=ja_JP.eucJP
8170 else
8171 # Test for the IRIX, FreeBSD locale name.
8172 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8173 gt_cv_locale_ja=ja_JP.EUC
8174 else
8175 # Test for the Solaris 7 locale name.
8176 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8177 gt_cv_locale_ja=ja
8178 else
8179 # Special test for NetBSD 1.6.
8180 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8181 gt_cv_locale_ja=ja_JP.eucJP
8182 else
8183 # None found.
8184 gt_cv_locale_ja=none
8185 fi
8186 fi
8187 fi
8188 fi
8189 fi
8190 fi
8191 ;;
8192 esac
8193 fi
8194 rm -fr conftest*
8195
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8198 $as_echo "$gt_cv_locale_ja" >&6; }
8199 LOCALE_JA=$gt_cv_locale_ja
8200
8201
8202
8203
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8206 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8207 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213
8214 #include <locale.h>
8215 #include <stdlib.h>
8216 #include <time.h>
8217 #if HAVE_LANGINFO_CODESET
8218 # include <langinfo.h>
8219 #endif
8220 #include <stdlib.h>
8221 #include <string.h>
8222 struct tm t;
8223 char buf[16];
8224 int main ()
8225 {
8226 const char *p;
8227 /* Check whether the given locale name is recognized by the system. */
8228 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8229 /* On native Windows, setlocale(category, "") looks at the system settings,
8230 not at the environment variables. Also, when an encoding suffix such
8231 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8232 category of the locale to "C". */
8233 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8234 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8235 return 1;
8236 #else
8237 if (setlocale (LC_ALL, "") == NULL) return 1;
8238 #endif
8239 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8240 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8241 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8242 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8243 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8244 some unit tests fail.
8245 On MirBSD 10, when an unsupported locale is specified, setlocale()
8246 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8247 #if HAVE_LANGINFO_CODESET
8248 {
8249 const char *cs = nl_langinfo (CODESET);
8250 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8251 || strcmp (cs, "UTF-8") == 0)
8252 return 1;
8253 }
8254 #endif
8255 #ifdef __CYGWIN__
8256 /* On Cygwin, avoid locale names without encoding suffix, because the
8257 locale_charset() function relies on the encoding suffix. Note that
8258 LC_ALL is set on the command line. */
8259 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8260 #endif
8261 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8262 This excludes the UTF-8 encoding (except on MirBSD). */
8263 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8264 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8265 for (p = buf; *p != '\0'; p++)
8266 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8267 return 1;
8268 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8269 single wide character. This excludes the GB2312 and GBK encodings. */
8270 if (mblen ("\203\062\332\066", 5) != 4)
8271 return 1;
8272 return 0;
8273 }
8274
8275 _ACEOF
8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8277 (eval $ac_link) 2>&5
8278 ac_status=$?
8279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8281 case "$host_os" in
8282 # Handle native Windows specially, because there setlocale() interprets
8283 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8284 # "fr" or "fra" as "French" or "French_France.1252",
8285 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8286 # "ja" as "Japanese" or "Japanese_Japan.932",
8287 # and similar.
8288 mingw*)
8289 # Test for the hypothetical native Windows locale name.
8290 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8291 gt_cv_locale_zh_CN=Chinese_China.54936
8292 else
8293 # None found.
8294 gt_cv_locale_zh_CN=none
8295 fi
8296 ;;
8297 solaris2.8)
8298 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8299 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8300 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8301 gt_cv_locale_zh_CN=none
8302 ;;
8303 *)
8304 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8305 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8306 # configure script would override the LC_ALL setting. Likewise for
8307 # LC_CTYPE, which is also set at the beginning of the configure script.
8308 # Test for the locale name without encoding suffix.
8309 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8310 gt_cv_locale_zh_CN=zh_CN
8311 else
8312 # Test for the locale name with explicit encoding suffix.
8313 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8314 gt_cv_locale_zh_CN=zh_CN.GB18030
8315 else
8316 # None found.
8317 gt_cv_locale_zh_CN=none
8318 fi
8319 fi
8320 ;;
8321 esac
8322 else
8323 # If there was a link error, due to mblen(), the system is so old that
8324 # it certainly doesn't have a chinese locale.
8325 gt_cv_locale_zh_CN=none
8326 fi
8327 rm -fr conftest*
8328
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8331 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8332 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8333
8334
8335
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8338 $as_echo_n "checking for a french Unicode locale... " >&6; }
8339 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345
8346 #include <locale.h>
8347 #include <time.h>
8348 #if HAVE_LANGINFO_CODESET
8349 # include <langinfo.h>
8350 #endif
8351 #include <stdlib.h>
8352 #include <string.h>
8353 struct tm t;
8354 char buf[16];
8355 int main () {
8356 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8357 imitates locale dependent behaviour by looking at the environment
8358 variables, and all locales use the UTF-8 encoding. */
8359 #if !(defined __BEOS__ || defined __HAIKU__)
8360 /* Check whether the given locale name is recognized by the system. */
8361 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8362 /* On native Windows, setlocale(category, "") looks at the system settings,
8363 not at the environment variables. Also, when an encoding suffix such
8364 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8365 category of the locale to "C". */
8366 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8367 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8368 return 1;
8369 # else
8370 if (setlocale (LC_ALL, "") == NULL) return 1;
8371 # endif
8372 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8373 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8374 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8375 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8376 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8377 some unit tests fail. */
8378 # if HAVE_LANGINFO_CODESET
8379 {
8380 const char *cs = nl_langinfo (CODESET);
8381 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8382 return 1;
8383 }
8384 # endif
8385 # ifdef __CYGWIN__
8386 /* On Cygwin, avoid locale names without encoding suffix, because the
8387 locale_charset() function relies on the encoding suffix. Note that
8388 LC_ALL is set on the command line. */
8389 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8390 # endif
8391 /* Check whether in the abbreviation of the second month, the second
8392 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8393 two bytes long, with UTF-8 encoding. */
8394 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8395 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8396 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8397 return 1;
8398 #endif
8399 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8400 /* Check whether the decimal separator is a comma.
8401 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8402 are nl_langinfo(RADIXCHAR) are both ".". */
8403 if (localeconv () ->decimal_point[0] != ',') return 1;
8404 #endif
8405 return 0;
8406 }
8407
8408 _ACEOF
8409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8410 (eval $ac_link) 2>&5
8411 ac_status=$?
8412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8413 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8414 case "$host_os" in
8415 # Handle native Windows specially, because there setlocale() interprets
8416 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8417 # "fr" or "fra" as "French" or "French_France.1252",
8418 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8419 # "ja" as "Japanese" or "Japanese_Japan.932",
8420 # and similar.
8421 mingw*)
8422 # Test for the hypothetical native Windows locale name.
8423 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8424 gt_cv_locale_fr_utf8=French_France.65001
8425 else
8426 # None found.
8427 gt_cv_locale_fr_utf8=none
8428 fi
8429 ;;
8430 *)
8431 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8432 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8433 # configure script would override the LC_ALL setting. Likewise for
8434 # LC_CTYPE, which is also set at the beginning of the configure script.
8435 # Test for the usual locale name.
8436 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8437 gt_cv_locale_fr_utf8=fr_FR
8438 else
8439 # Test for the locale name with explicit encoding suffix.
8440 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8441 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8442 else
8443 # Test for the Solaris 7 locale name.
8444 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8445 gt_cv_locale_fr_utf8=fr.UTF-8
8446 else
8447 # None found.
8448 gt_cv_locale_fr_utf8=none
8449 fi
8450 fi
8451 fi
8452 ;;
8453 esac
8454 fi
8455 rm -fr conftest*
8456
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8459 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8460 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8467 $as_echo_n "checking for a traditional french locale... " >&6; }
8468 if test "${gt_cv_locale_fr+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474
8475 #include <locale.h>
8476 #include <time.h>
8477 #if HAVE_LANGINFO_CODESET
8478 # include <langinfo.h>
8479 #endif
8480 #include <stdlib.h>
8481 #include <string.h>
8482 struct tm t;
8483 char buf[16];
8484 int main () {
8485 /* Check whether the given locale name is recognized by the system. */
8486 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8487 /* On native Windows, setlocale(category, "") looks at the system settings,
8488 not at the environment variables. Also, when an encoding suffix such
8489 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8490 category of the locale to "C". */
8491 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8492 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8493 return 1;
8494 #else
8495 if (setlocale (LC_ALL, "") == NULL) return 1;
8496 #endif
8497 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8498 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8499 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8500 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8501 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8502 some unit tests fail.
8503 On MirBSD 10, when an unsupported locale is specified, setlocale()
8504 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8505 #if HAVE_LANGINFO_CODESET
8506 {
8507 const char *cs = nl_langinfo (CODESET);
8508 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8509 || strcmp (cs, "UTF-8") == 0)
8510 return 1;
8511 }
8512 #endif
8513 #ifdef __CYGWIN__
8514 /* On Cygwin, avoid locale names without encoding suffix, because the
8515 locale_charset() function relies on the encoding suffix. Note that
8516 LC_ALL is set on the command line. */
8517 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8518 #endif
8519 /* Check whether in the abbreviation of the second month, the second
8520 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8521 one byte long. This excludes the UTF-8 encoding. */
8522 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8523 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8524 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8525 /* Check whether the decimal separator is a comma.
8526 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8527 are nl_langinfo(RADIXCHAR) are both ".". */
8528 if (localeconv () ->decimal_point[0] != ',') return 1;
8529 #endif
8530 return 0;
8531 }
8532
8533 _ACEOF
8534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8535 (eval $ac_link) 2>&5
8536 ac_status=$?
8537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8538 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8539 case "$host_os" in
8540 # Handle native Windows specially, because there setlocale() interprets
8541 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8542 # "fr" or "fra" as "French" or "French_France.1252",
8543 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8544 # "ja" as "Japanese" or "Japanese_Japan.932",
8545 # and similar.
8546 mingw*)
8547 # Test for the native Windows locale name.
8548 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8549 gt_cv_locale_fr=French_France.1252
8550 else
8551 # None found.
8552 gt_cv_locale_fr=none
8553 fi
8554 ;;
8555 *)
8556 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8557 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8558 # configure script would override the LC_ALL setting. Likewise for
8559 # LC_CTYPE, which is also set at the beginning of the configure script.
8560 # Test for the usual locale name.
8561 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8562 gt_cv_locale_fr=fr_FR
8563 else
8564 # Test for the locale name with explicit encoding suffix.
8565 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8566 gt_cv_locale_fr=fr_FR.ISO-8859-1
8567 else
8568 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8569 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8570 gt_cv_locale_fr=fr_FR.ISO8859-1
8571 else
8572 # Test for the HP-UX locale name.
8573 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8574 gt_cv_locale_fr=fr_FR.iso88591
8575 else
8576 # Test for the Solaris 7 locale name.
8577 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8578 gt_cv_locale_fr=fr
8579 else
8580 # None found.
8581 gt_cv_locale_fr=none
8582 fi
8583 fi
8584 fi
8585 fi
8586 fi
8587 ;;
8588 esac
8589 fi
8590 rm -fr conftest*
8591
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8594 $as_echo "$gt_cv_locale_fr" >&6; }
8595 LOCALE_FR=$gt_cv_locale_fr
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609 GNULIB_FFSL=0;
8610 GNULIB_FFSLL=0;
8611 GNULIB_MEMCHR=0;
8612 GNULIB_MEMMEM=0;
8613 GNULIB_MEMPCPY=0;
8614 GNULIB_MEMRCHR=0;
8615 GNULIB_RAWMEMCHR=0;
8616 GNULIB_STPCPY=0;
8617 GNULIB_STPNCPY=0;
8618 GNULIB_STRCHRNUL=0;
8619 GNULIB_STRDUP=0;
8620 GNULIB_STRNCAT=0;
8621 GNULIB_STRNDUP=0;
8622 GNULIB_STRNLEN=0;
8623 GNULIB_STRPBRK=0;
8624 GNULIB_STRSEP=0;
8625 GNULIB_STRSTR=0;
8626 GNULIB_STRCASESTR=0;
8627 GNULIB_STRTOK_R=0;
8628 GNULIB_MBSLEN=0;
8629 GNULIB_MBSNLEN=0;
8630 GNULIB_MBSCHR=0;
8631 GNULIB_MBSRCHR=0;
8632 GNULIB_MBSSTR=0;
8633 GNULIB_MBSCASECMP=0;
8634 GNULIB_MBSNCASECMP=0;
8635 GNULIB_MBSPCASECMP=0;
8636 GNULIB_MBSCASESTR=0;
8637 GNULIB_MBSCSPN=0;
8638 GNULIB_MBSPBRK=0;
8639 GNULIB_MBSSPN=0;
8640 GNULIB_MBSSEP=0;
8641 GNULIB_MBSTOK_R=0;
8642 GNULIB_STRERROR=0;
8643 GNULIB_STRERROR_R=0;
8644 GNULIB_STRSIGNAL=0;
8645 GNULIB_STRVERSCMP=0;
8646 HAVE_MBSLEN=0;
8647 HAVE_FFSL=1;
8648 HAVE_FFSLL=1;
8649 HAVE_MEMCHR=1;
8650 HAVE_DECL_MEMMEM=1;
8651 HAVE_MEMPCPY=1;
8652 HAVE_DECL_MEMRCHR=1;
8653 HAVE_RAWMEMCHR=1;
8654 HAVE_STPCPY=1;
8655 HAVE_STPNCPY=1;
8656 HAVE_STRCHRNUL=1;
8657 HAVE_DECL_STRDUP=1;
8658 HAVE_DECL_STRNDUP=1;
8659 HAVE_DECL_STRNLEN=1;
8660 HAVE_STRPBRK=1;
8661 HAVE_STRSEP=1;
8662 HAVE_STRCASESTR=1;
8663 HAVE_DECL_STRTOK_R=1;
8664 HAVE_DECL_STRERROR_R=1;
8665 HAVE_DECL_STRSIGNAL=1;
8666 HAVE_STRVERSCMP=1;
8667 REPLACE_MEMCHR=0;
8668 REPLACE_MEMMEM=0;
8669 REPLACE_STPNCPY=0;
8670 REPLACE_STRDUP=0;
8671 REPLACE_STRSTR=0;
8672 REPLACE_STRCASESTR=0;
8673 REPLACE_STRCHRNUL=0;
8674 REPLACE_STRERROR=0;
8675 REPLACE_STRERROR_R=0;
8676 REPLACE_STRNCAT=0;
8677 REPLACE_STRNDUP=0;
8678 REPLACE_STRNLEN=0;
8679 REPLACE_STRSIGNAL=0;
8680 REPLACE_STRTOK_R=0;
8681 UNDEFINE_STRTOK_R=0;
8682
8683
8684
8685
8686
8687 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8688 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8689 # irrelevant for anonymous mappings.
8690 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8691 if test "x$ac_cv_func_mmap" = x""yes; then :
8692 gl_have_mmap=yes
8693 else
8694 gl_have_mmap=no
8695 fi
8696
8697
8698 # Try to allow MAP_ANONYMOUS.
8699 gl_have_mmap_anonymous=no
8700 if test $gl_have_mmap = yes; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8702 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705
8706 #include <sys/mman.h>
8707 #ifdef MAP_ANONYMOUS
8708 I cannot identify this map
8709 #endif
8710
8711 _ACEOF
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8714 gl_have_mmap_anonymous=yes
8715 fi
8716 rm -f conftest*
8717
8718 if test $gl_have_mmap_anonymous != yes; then
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721
8722 #include <sys/mman.h>
8723 #ifdef MAP_ANON
8724 I cannot identify this map
8725 #endif
8726
8727 _ACEOF
8728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8729 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8730
8731 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8732
8733 gl_have_mmap_anonymous=yes
8734 fi
8735 rm -f conftest*
8736
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8739 $as_echo "$gl_have_mmap_anonymous" >&6; }
8740 if test $gl_have_mmap_anonymous = yes; then
8741
8742 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8743
8744 fi
8745 fi
8746
8747
8748 :
8749
8750
8751
8752
8753
8754
8755 :
8756
8757
8758
8759
8760
8761
8762
8763
8764 if test $HAVE_MEMCHR = 1; then
8765 # Detect platform-specific bugs in some versions of glibc:
8766 # memchr should not dereference anything with length 0
8767 # http://bugzilla.redhat.com/499689
8768 # memchr should not dereference overestimated length after a match
8769 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8770 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8771 # Assume that memchr works on platforms that lack mprotect.
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8773 $as_echo_n "checking whether memchr works... " >&6; }
8774 if test "${gl_cv_func_memchr_works+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 if test "$cross_compiling" = yes; then :
8778 gl_cv_func_memchr_works="guessing no"
8779 else
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782
8783 #include <string.h>
8784 #if HAVE_SYS_MMAN_H
8785 # include <fcntl.h>
8786 # include <unistd.h>
8787 # include <sys/types.h>
8788 # include <sys/mman.h>
8789 # ifndef MAP_FILE
8790 # define MAP_FILE 0
8791 # endif
8792 #endif
8793
8794 int
8795 main ()
8796 {
8797
8798 int result = 0;
8799 char *fence = NULL;
8800 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8801 # if HAVE_MAP_ANONYMOUS
8802 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8803 const int fd = -1;
8804 # else /* !HAVE_MAP_ANONYMOUS */
8805 const int flags = MAP_FILE | MAP_PRIVATE;
8806 int fd = open ("/dev/zero", O_RDONLY, 0666);
8807 if (fd >= 0)
8808 # endif
8809 {
8810 int pagesize = getpagesize ();
8811 char *two_pages =
8812 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8813 flags, fd, 0);
8814 if (two_pages != (char *)(-1)
8815 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8816 fence = two_pages + pagesize;
8817 }
8818 #endif
8819 if (fence)
8820 {
8821 if (memchr (fence, 0, 0))
8822 result |= 1;
8823 strcpy (fence - 9, "12345678");
8824 if (memchr (fence - 9, 0, 79) != fence - 1)
8825 result |= 2;
8826 if (memchr (fence - 1, 0, 3) != fence - 1)
8827 result |= 4;
8828 }
8829 return result;
8830
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 if ac_fn_c_try_run "$LINENO"; then :
8836 gl_cv_func_memchr_works=yes
8837 else
8838 gl_cv_func_memchr_works=no
8839 fi
8840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8841 conftest.$ac_objext conftest.beam conftest.$ac_ext
8842 fi
8843
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8846 $as_echo "$gl_cv_func_memchr_works" >&6; }
8847 if test "$gl_cv_func_memchr_works" != yes; then
8848 REPLACE_MEMCHR=1
8849 fi
8850 fi
8851
8852
8853 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8854 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8855 ac_have_decl=1
8856 else
8857 ac_have_decl=0
8858 fi
8859
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_DECL_MEMMEM $ac_have_decl
8862 _ACEOF
8863
8864
8865
8866
8867
8868
8869 for ac_func in memmem
8870 do :
8871 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8872 if test "x$ac_cv_func_memmem" = x""yes; then :
8873 cat >>confdefs.h <<_ACEOF
8874 #define HAVE_MEMMEM 1
8875 _ACEOF
8876
8877 fi
8878 done
8879
8880 if test $ac_cv_func_memmem = yes; then
8881 HAVE_MEMMEM=1
8882 else
8883 HAVE_MEMMEM=0
8884 fi
8885
8886 :
8887
8888
8889
8890
8891
8892 if test $ac_cv_have_decl_memmem = no; then
8893 HAVE_DECL_MEMMEM=0
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8896 $as_echo_n "checking whether memmem works... " >&6; }
8897 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test "$cross_compiling" = yes; then :
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903
8904 #ifdef __GNU_LIBRARY__
8905 #include <features.h>
8906 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8907 || __GLIBC_MINOR__ > 12)) \
8908 || (__GLIBC__ > 2)) \
8909 || defined __UCLIBC__
8910 Lucky user
8911 #endif
8912 #elif defined __CYGWIN__
8913 #include <cygwin/version.h>
8914 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8915 Lucky user
8916 #endif
8917 #else
8918 Lucky user
8919 #endif
8920
8921 _ACEOF
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "Lucky user" >/dev/null 2>&1; then :
8924 gl_cv_func_memmem_works_always="guessing yes"
8925 else
8926 gl_cv_func_memmem_works_always="guessing no"
8927 fi
8928 rm -f conftest*
8929
8930
8931 else
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934
8935 #include <string.h> /* for memmem */
8936 #define P "_EF_BF_BD"
8937 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8938 #define NEEDLE P P P P P
8939
8940 int
8941 main ()
8942 {
8943
8944 int result = 0;
8945 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8946 result |= 1;
8947 /* Check for empty needle behavior. */
8948 {
8949 const char *haystack = "AAA";
8950 if (memmem (haystack, 3, NULL, 0) != haystack)
8951 result |= 2;
8952 }
8953 return result;
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_run "$LINENO"; then :
8960 gl_cv_func_memmem_works_always=yes
8961 else
8962 gl_cv_func_memmem_works_always=no
8963 fi
8964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8965 conftest.$ac_objext conftest.beam conftest.$ac_ext
8966 fi
8967
8968
8969 fi
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8971 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8972 case "$gl_cv_func_memmem_works_always" in
8973 *yes) ;;
8974 *)
8975 REPLACE_MEMMEM=1
8976 ;;
8977 esac
8978 fi
8979 :
8980
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8982 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8983 if test "${ac_cv_header_stdbool_h+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988
8989 #include <stdbool.h>
8990 #ifndef bool
8991 "error: bool is not defined"
8992 #endif
8993 #ifndef false
8994 "error: false is not defined"
8995 #endif
8996 #if false
8997 "error: false is not 0"
8998 #endif
8999 #ifndef true
9000 "error: true is not defined"
9001 #endif
9002 #if true != 1
9003 "error: true is not 1"
9004 #endif
9005 #ifndef __bool_true_false_are_defined
9006 "error: __bool_true_false_are_defined is not defined"
9007 #endif
9008
9009 struct s { _Bool s: 1; _Bool t; } s;
9010
9011 char a[true == 1 ? 1 : -1];
9012 char b[false == 0 ? 1 : -1];
9013 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9014 char d[(bool) 0.5 == true ? 1 : -1];
9015 /* See body of main program for 'e'. */
9016 char f[(_Bool) 0.0 == false ? 1 : -1];
9017 char g[true];
9018 char h[sizeof (_Bool)];
9019 char i[sizeof s.t];
9020 enum { j = false, k = true, l = false * true, m = true * 256 };
9021 /* The following fails for
9022 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9023 _Bool n[m];
9024 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9025 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9026 /* Catch a bug in an HP-UX C compiler. See
9027 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9028 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9029 */
9030 _Bool q = true;
9031 _Bool *pq = &q;
9032
9033 int
9034 main ()
9035 {
9036
9037 bool e = &s;
9038 *pq |= q;
9039 *pq |= ! q;
9040 /* Refer to every declared value, to avoid compiler optimizations. */
9041 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9042 + !m + !n + !o + !p + !q + !pq);
9043
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 ac_cv_header_stdbool_h=yes
9050 else
9051 ac_cv_header_stdbool_h=no
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9056 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9057 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9058 if test "x$ac_cv_type__Bool" = x""yes; then :
9059
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE__BOOL 1
9062 _ACEOF
9063
9064
9065 fi
9066
9067
9068
9069 REPLACE_NULL=0;
9070 HAVE_WCHAR_T=1;
9071
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9074 $as_echo_n "checking for wchar_t... " >&6; }
9075 if test "${gt_cv_c_wchar_t+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #include <stddef.h>
9081 wchar_t foo = (wchar_t)'\0';
9082 int
9083 main ()
9084 {
9085
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091 gt_cv_c_wchar_t=yes
9092 else
9093 gt_cv_c_wchar_t=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9098 $as_echo "$gt_cv_c_wchar_t" >&6; }
9099 if test $gt_cv_c_wchar_t = yes; then
9100
9101 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9102
9103 fi
9104
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9106 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9107 if test "${ac_cv_c_restrict+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 ac_cv_c_restrict=no
9111 # The order here caters to the fact that C++ does not require restrict.
9112 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 typedef int * int_ptr;
9116 int foo (int_ptr $ac_kw ip) {
9117 return ip[0];
9118 }
9119 int
9120 main ()
9121 {
9122 int s[1];
9123 int * $ac_kw t = s;
9124 t[0] = 0;
9125 return foo(t)
9126 ;
9127 return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"; then :
9131 ac_cv_c_restrict=$ac_kw
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 test "$ac_cv_c_restrict" != no && break
9135 done
9136
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9139 $as_echo "$ac_cv_c_restrict" >&6; }
9140
9141 case $ac_cv_c_restrict in
9142 restrict) ;;
9143 no) $as_echo "#define restrict /**/" >>confdefs.h
9144 ;;
9145 *) cat >>confdefs.h <<_ACEOF
9146 #define restrict $ac_cv_c_restrict
9147 _ACEOF
9148 ;;
9149 esac
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162 if test $gl_cv_have_include_next = yes; then
9163 gl_cv_next_string_h='<'string.h'>'
9164 else
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9166 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9167 if test "${gl_cv_next_string_h+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 #include <string.h>
9174
9175 _ACEOF
9176 case "$host_os" in
9177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9178 *) gl_absname_cpp="$ac_cpp" ;;
9179 esac
9180
9181 case "$host_os" in
9182 mingw*)
9183 gl_dirsep_regex='[/\\]'
9184 ;;
9185 *)
9186 gl_dirsep_regex='\/'
9187 ;;
9188 esac
9189 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9190
9191 gl_header_literal_regex=`echo 'string.h' \
9192 | sed -e "$gl_make_literal_regex_sed"`
9193 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9195 s|^/[^/]|//&|
9196 p
9197 q
9198 }'
9199 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9200 sed -n "$gl_absolute_header_sed"`'"'
9201
9202
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9205 $as_echo "$gl_cv_next_string_h" >&6; }
9206 fi
9207 NEXT_STRING_H=$gl_cv_next_string_h
9208
9209 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9211 gl_next_as_first_directive='<'string.h'>'
9212 else
9213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9214 gl_next_as_first_directive=$gl_cv_next_string_h
9215 fi
9216 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9217
9218
9219
9220
9221
9222
9223 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
9224 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9226 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9227 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <string.h>
9233
9234 int
9235 main ()
9236 {
9237 #undef $gl_func
9238 (void) $gl_func;
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_c_try_compile "$LINENO"; then :
9244 eval "$as_gl_Symbol=yes"
9245 else
9246 eval "$as_gl_Symbol=no"
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 eval ac_res=\$$as_gl_Symbol
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9252 $as_echo "$ac_res" >&6; }
9253 eval as_val=\$$as_gl_Symbol
9254 if test "x$as_val" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9257 _ACEOF
9258
9259 eval ac_cv_have_decl_$gl_func=yes
9260 fi
9261 done
9262
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9266 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9267 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 gl_cv_header_wchar_h_correct_inline=yes
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273
9274 #define wcstod renamed_wcstod
9275 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9276 <wchar.h>.
9277 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9278 included before <wchar.h>. */
9279 #include <stddef.h>
9280 #include <stdio.h>
9281 #include <time.h>
9282 #include <wchar.h>
9283 extern int zero (void);
9284 int main () { return zero(); }
9285
9286 _ACEOF
9287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9288 (eval $ac_compile) 2>&5
9289 ac_status=$?
9290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291 test $ac_status = 0; }; then
9292 mv conftest.$ac_objext conftest1.$ac_objext
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295
9296 #define wcstod renamed_wcstod
9297 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9298 <wchar.h>.
9299 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9300 included before <wchar.h>. */
9301 #include <stddef.h>
9302 #include <stdio.h>
9303 #include <time.h>
9304 #include <wchar.h>
9305 int zero (void) { return 0; }
9306
9307 _ACEOF
9308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9309 (eval $ac_compile) 2>&5
9310 ac_status=$?
9311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312 test $ac_status = 0; }; then
9313 mv conftest.$ac_objext conftest2.$ac_objext
9314 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9315 :
9316 else
9317 gl_cv_header_wchar_h_correct_inline=no
9318 fi
9319 fi
9320 fi
9321 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9325 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9326 if test $gl_cv_header_wchar_h_correct_inline = no; then
9327 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9328 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9329 C99 mode. You have four options:
9330 - Add the flag -fgnu89-inline to CC and reconfigure, or
9331 - Fix your include files, using parts of
9332 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9333 - Use a gcc version older than 4.3, or
9334 - Don't use the flags -std=c99 or -std=gnu99.
9335 Configuration aborted." "$LINENO" 5
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344
9345 :
9346
9347
9348
9349
9350
9351 if test $ac_cv_header_features_h = yes; then
9352 HAVE_FEATURES_H=1
9353 else
9354 HAVE_FEATURES_H=0
9355 fi
9356
9357
9358
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9360 $as_echo_n "checking for wint_t... " >&6; }
9361 if test "${gt_cv_c_wint_t+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366
9367 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9368 <wchar.h>.
9369 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9370 before <wchar.h>. */
9371 #include <stddef.h>
9372 #include <stdio.h>
9373 #include <time.h>
9374 #include <wchar.h>
9375 wint_t foo = (wchar_t)'\0';
9376 int
9377 main ()
9378 {
9379
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385 gt_cv_c_wint_t=yes
9386 else
9387 gt_cv_c_wint_t=no
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 fi
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9392 $as_echo "$gt_cv_c_wint_t" >&6; }
9393 if test $gt_cv_c_wint_t = yes; then
9394
9395 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9396
9397 fi
9398
9399
9400 GNULIB_ISWBLANK=0;
9401 GNULIB_WCTYPE=0;
9402 GNULIB_ISWCTYPE=0;
9403 GNULIB_WCTRANS=0;
9404 GNULIB_TOWCTRANS=0;
9405 HAVE_ISWBLANK=1;
9406 HAVE_WCTYPE_T=1;
9407 HAVE_WCTRANS_T=1;
9408 REPLACE_ISWBLANK=0;
9409
9410
9411
9412
9413
9414
9415
9416 if false; then
9417 GL_COND_LIBTOOL_TRUE=
9418 GL_COND_LIBTOOL_FALSE='#'
9419 else
9420 GL_COND_LIBTOOL_TRUE='#'
9421 GL_COND_LIBTOOL_FALSE=
9422 fi
9423
9424 gl_cond_libtool=false
9425 gl_libdeps=
9426 gl_ltlibdeps=
9427 gl_m4_base='import/m4'
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 gl_source_base='import'
9438
9439
9440 if test $ac_cv_func_alloca_works = no; then
9441 :
9442 fi
9443
9444 # Define an additional variable used in the Makefile substitution.
9445 if test $ac_cv_working_alloca_h = yes; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9447 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9448 if test "${gl_cv_rpl_alloca+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454
9455 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9456 Need own alloca
9457 #endif
9458
9459 _ACEOF
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9462 gl_cv_rpl_alloca=yes
9463 else
9464 gl_cv_rpl_alloca=no
9465 fi
9466 rm -f conftest*
9467
9468
9469 fi
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9471 $as_echo "$gl_cv_rpl_alloca" >&6; }
9472 if test $gl_cv_rpl_alloca = yes; then
9473
9474 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9475
9476 ALLOCA_H=alloca.h
9477 else
9478 ALLOCA_H=
9479 fi
9480 else
9481 ALLOCA_H=alloca.h
9482 fi
9483
9484 if test -n "$ALLOCA_H"; then
9485 GL_GENERATE_ALLOCA_H_TRUE=
9486 GL_GENERATE_ALLOCA_H_FALSE='#'
9487 else
9488 GL_GENERATE_ALLOCA_H_TRUE='#'
9489 GL_GENERATE_ALLOCA_H_FALSE=
9490 fi
9491
9492
9493
9494 if test "x$datarootdir" = x; then
9495 datarootdir='${datadir}'
9496
9497 fi
9498 if test "x$docdir" = x; then
9499 docdir='${datarootdir}/doc/${PACKAGE}'
9500
9501 fi
9502 if test "x$htmldir" = x; then
9503 htmldir='${docdir}'
9504
9505 fi
9506 if test "x$dvidir" = x; then
9507 dvidir='${docdir}'
9508
9509 fi
9510 if test "x$pdfdir" = x; then
9511 pdfdir='${docdir}'
9512
9513 fi
9514 if test "x$psdir" = x; then
9515 psdir='${docdir}'
9516
9517 fi
9518 if test "x$lispdir" = x; then
9519 lispdir='${datarootdir}/emacs/site-lisp'
9520
9521 fi
9522 if test "x$localedir" = x; then
9523 localedir='${datarootdir}/locale'
9524
9525 fi
9526
9527 pkglibexecdir='${libexecdir}/${PACKAGE}'
9528
9529
9530
9531
9532
9533
9534 FLOAT_H=
9535 REPLACE_FLOAT_LDBL=0
9536 case "$host_os" in
9537 aix* | beos* | openbsd* | mirbsd* | irix*)
9538 FLOAT_H=float.h
9539 ;;
9540 freebsd*)
9541 case "$host_cpu" in
9542 i[34567]86 )
9543 FLOAT_H=float.h
9544 ;;
9545 x86_64 )
9546 # On x86_64 systems, the C compiler may still be generating
9547 # 32-bit code.
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
9551 yes
9552 #endif
9553 _ACEOF
9554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9555 $EGREP "yes" >/dev/null 2>&1; then :
9556
9557 else
9558 FLOAT_H=float.h
9559 fi
9560 rm -f conftest*
9561
9562 ;;
9563 esac
9564 ;;
9565 linux*)
9566 case "$host_cpu" in
9567 powerpc*)
9568 FLOAT_H=float.h
9569 ;;
9570 esac
9571 ;;
9572 esac
9573 case "$host_os" in
9574 aix* | freebsd* | linux*)
9575 if test -n "$FLOAT_H"; then
9576 REPLACE_FLOAT_LDBL=1
9577 fi
9578 ;;
9579 esac
9580
9581 REPLACE_ITOLD=0
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9583 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9584 if test "${gl_cv_func_itold_works+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587
9588 if test "$cross_compiling" = yes; then :
9589 case "$host" in
9590 sparc*-*-linux*)
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 #if defined __LP64__ || defined __arch64__
9594 yes
9595 #endif
9596 _ACEOF
9597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9598 $EGREP "yes" >/dev/null 2>&1; then :
9599 gl_cv_func_itold_works="guessing no"
9600 else
9601 gl_cv_func_itold_works="guessing yes"
9602 fi
9603 rm -f conftest*
9604
9605 ;;
9606 *) gl_cv_func_itold_works="guessing yes" ;;
9607 esac
9608
9609 else
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612
9613 int i = -1;
9614 volatile long double ld;
9615 int main ()
9616 {
9617 ld += i * 1.0L;
9618 if (ld > 0)
9619 return 1;
9620 return 0;
9621 }
9622 _ACEOF
9623 if ac_fn_c_try_run "$LINENO"; then :
9624 gl_cv_func_itold_works=yes
9625 else
9626 gl_cv_func_itold_works=no
9627 fi
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629 conftest.$ac_objext conftest.beam conftest.$ac_ext
9630 fi
9631
9632
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9635 $as_echo "$gl_cv_func_itold_works" >&6; }
9636 case "$gl_cv_func_itold_works" in
9637 *no)
9638 REPLACE_ITOLD=1
9639 FLOAT_H=float.h
9640 ;;
9641 esac
9642
9643 if test -n "$FLOAT_H"; then
9644
9645
9646
9647
9648
9649
9650
9651
9652 if test $gl_cv_have_include_next = yes; then
9653 gl_cv_next_float_h='<'float.h'>'
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9656 $as_echo_n "checking absolute name of <float.h>... " >&6; }
9657 if test "${gl_cv_next_float_h+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <float.h>
9664
9665 _ACEOF
9666 case "$host_os" in
9667 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9668 *) gl_absname_cpp="$ac_cpp" ;;
9669 esac
9670
9671 case "$host_os" in
9672 mingw*)
9673 gl_dirsep_regex='[/\\]'
9674 ;;
9675 *)
9676 gl_dirsep_regex='\/'
9677 ;;
9678 esac
9679 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9680
9681 gl_header_literal_regex=`echo 'float.h' \
9682 | sed -e "$gl_make_literal_regex_sed"`
9683 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9684 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9685 s|^/[^/]|//&|
9686 p
9687 q
9688 }'
9689 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9690 sed -n "$gl_absolute_header_sed"`'"'
9691
9692
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9695 $as_echo "$gl_cv_next_float_h" >&6; }
9696 fi
9697 NEXT_FLOAT_H=$gl_cv_next_float_h
9698
9699 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9701 gl_next_as_first_directive='<'float.h'>'
9702 else
9703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9704 gl_next_as_first_directive=$gl_cv_next_float_h
9705 fi
9706 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9707
9708
9709
9710
9711 fi
9712
9713 if test -n "$FLOAT_H"; then
9714 GL_GENERATE_FLOAT_H_TRUE=
9715 GL_GENERATE_FLOAT_H_FALSE='#'
9716 else
9717 GL_GENERATE_FLOAT_H_TRUE='#'
9718 GL_GENERATE_FLOAT_H_FALSE=
9719 fi
9720
9721
9722
9723 if test $REPLACE_FLOAT_LDBL = 1; then
9724
9725
9726
9727
9728
9729
9730
9731
9732 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9733
9734 fi
9735 if test $REPLACE_ITOLD = 1; then
9736
9737
9738
9739
9740
9741
9742
9743
9744 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9745
9746 fi
9747
9748
9749
9750
9751
9752 FNMATCH_H=
9753 gl_fnmatch_required_lowercase=`
9754 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
9755 `
9756 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9758 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9759 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 if test $gl_fnmatch_required = GNU; then
9763 gl_fnmatch_gnu_start=
9764 gl_fnmatch_gnu_end=
9765 else
9766 gl_fnmatch_gnu_start='#if 0'
9767 gl_fnmatch_gnu_end='#endif'
9768 fi
9769 if test "$cross_compiling" = yes; then :
9770 eval "$gl_fnmatch_cache_var=\"guessing no\""
9771 else
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 #include <fnmatch.h>
9775 static int
9776 y (char const *pattern, char const *string, int flags)
9777 {
9778 return fnmatch (pattern, string, flags) == 0;
9779 }
9780 static int
9781 n (char const *pattern, char const *string, int flags)
9782 {
9783 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9784 }
9785
9786 int
9787 main ()
9788 {
9789 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9790 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9791 static char const A_1[] = { 'A' - 1, 0 };
9792 static char const A01[] = { 'A' + 1, 0 };
9793 static char const a_1[] = { 'a' - 1, 0 };
9794 static char const a01[] = { 'a' + 1, 0 };
9795 static char const bs_1[] = { '\\\\' - 1, 0 };
9796 static char const bs01[] = { '\\\\' + 1, 0 };
9797 int result = 0;
9798 if (!n ("a*", "", 0))
9799 return 1;
9800 if (!y ("a*", "abc", 0))
9801 return 1;
9802 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
9803 return 1;
9804 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
9805 return 2;
9806 if (!y ("a\\\\bc", "abc", 0))
9807 return 3;
9808 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
9809 return 3;
9810 if (!y ("*x", ".x", 0))
9811 return 4;
9812 if (!n ("*x", ".x", FNM_PERIOD))
9813 return 4;
9814 if (!y (Apat, "\\\\", 0))
9815 return 5;
9816 if (!y (Apat, "A", 0))
9817 return 5;
9818 if (!y (apat, "\\\\", 0))
9819 return 5;
9820 if (!y (apat, "a", 0))
9821 return 5;
9822 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
9823 return 5;
9824 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
9825 return 5;
9826 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
9827 return 5;
9828 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
9829 return 5;
9830 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
9831 return 5;
9832 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
9833 return 5;
9834 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
9835 return 5;
9836 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
9837 return 5;
9838 $gl_fnmatch_gnu_start
9839 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
9840 result |= 8;
9841 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
9842 result |= 16;
9843 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
9844 result |= 32;
9845 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
9846 result |= 64;
9847 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
9848 result |= 64;
9849 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
9850 result |= 64;
9851 $gl_fnmatch_gnu_end
9852 return result;
9853
9854 ;
9855 return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_run "$LINENO"; then :
9859 eval "$gl_fnmatch_cache_var=yes"
9860 else
9861 eval "$gl_fnmatch_cache_var=no"
9862 fi
9863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9864 conftest.$ac_objext conftest.beam conftest.$ac_ext
9865 fi
9866
9867
9868 fi
9869 eval ac_res=\$$gl_fnmatch_cache_var
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9871 $as_echo "$ac_res" >&6; }
9872 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
9873 if test "$gl_fnmatch_result" = yes; then
9874 rm -f "$gl_source_base/fnmatch.h"
9875 else
9876 FNMATCH_H=fnmatch.h
9877 fi
9878
9879 if test -n "$FNMATCH_H"; then
9880 GL_GENERATE_FNMATCH_H_TRUE=
9881 GL_GENERATE_FNMATCH_H_FALSE='#'
9882 else
9883 GL_GENERATE_FNMATCH_H_TRUE='#'
9884 GL_GENERATE_FNMATCH_H_FALSE=
9885 fi
9886
9887
9888 if test -n "$FNMATCH_H"; then
9889
9890
9891
9892
9893
9894
9895
9896
9897 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9898
9899
9900
9901 cat >>confdefs.h <<_ACEOF
9902 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9903 _ACEOF
9904
9905
9906 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9907 "
9908 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9909 ac_have_decl=1
9910 else
9911 ac_have_decl=0
9912 fi
9913
9914 cat >>confdefs.h <<_ACEOF
9915 #define HAVE_DECL_ISBLANK $ac_have_decl
9916 _ACEOF
9917
9918
9919 :
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947 :
9948
9949
9950
9951
9952
9953
9954 fi
9955
9956
9957
9958
9959
9960 if test -n "$FNMATCH_H"; then
9961
9962
9963
9964
9965
9966
9967
9968
9969 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9970
9971
9972
9973 cat >>confdefs.h <<_ACEOF
9974 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9975 _ACEOF
9976
9977
9978 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9979 "
9980 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9981 ac_have_decl=1
9982 else
9983 ac_have_decl=0
9984 fi
9985
9986 cat >>confdefs.h <<_ACEOF
9987 #define HAVE_DECL_ISBLANK $ac_have_decl
9988 _ACEOF
9989
9990
9991 :
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019 :
10020
10021
10022
10023
10024
10025
10026 fi
10027
10028
10029
10030 FREXP_LIBM=
10031 if test $gl_cv_func_frexp_no_libm = no; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10033 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10034 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037
10038 save_LIBS="$LIBS"
10039 LIBS="$LIBS -lm"
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <math.h>
10043 double x;
10044 int
10045 main ()
10046 {
10047 int e; return frexp (x, &e) > 0;
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10053 gl_cv_func_frexp_in_libm=yes
10054 else
10055 gl_cv_func_frexp_in_libm=no
10056 fi
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS="$save_LIBS"
10060
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10063 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10064 if test $gl_cv_func_frexp_in_libm = yes; then
10065 FREXP_LIBM=-lm
10066 fi
10067 fi
10068 if test $gl_cv_func_frexp_no_libm = yes \
10069 || test $gl_cv_func_frexp_in_libm = yes; then
10070 save_LIBS="$LIBS"
10071 LIBS="$LIBS $FREXP_LIBM"
10072
10073
10074
10075 :
10076
10077
10078
10079
10080
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10082 $as_echo_n "checking whether frexp works... " >&6; }
10083 if test "${gl_cv_func_frexp_works+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086
10087 if test "$cross_compiling" = yes; then :
10088 case "$host_os" in
10089 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10090 *) gl_cv_func_frexp_works="guessing yes";;
10091 esac
10092
10093 else
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096
10097 #include <float.h>
10098 #include <math.h>
10099 #include <string.h>
10100 #if HAVE_ALARM
10101 # include <unistd.h>
10102 #endif
10103 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10104 ICC 10.0 has a bug when optimizing the expression -zero.
10105 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10106 to PowerPC on Mac OS X 10.5. */
10107 #if defined __hpux || defined __sgi || defined __ICC
10108 static double
10109 compute_minus_zero (void)
10110 {
10111 return -DBL_MIN * DBL_MIN;
10112 }
10113 # define minus_zero compute_minus_zero ()
10114 #else
10115 double minus_zero = -0.0;
10116 #endif
10117 int main()
10118 {
10119 int result = 0;
10120 int i;
10121 volatile double x;
10122 double zero = 0.0;
10123 #if HAVE_ALARM
10124 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10125 number. Let the test fail in this case. */
10126 alarm (5);
10127 #endif
10128 /* Test on denormalized numbers. */
10129 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10130 ;
10131 if (x > 0.0)
10132 {
10133 int exp;
10134 double y = frexp (x, &exp);
10135 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10136 On NetBSD: y = 0.75. Correct: y = 0.5. */
10137 if (y != 0.5)
10138 result |= 1;
10139 }
10140 /* Test on infinite numbers. */
10141 x = 1.0 / zero;
10142 {
10143 int exp;
10144 double y = frexp (x, &exp);
10145 if (y != x)
10146 result |= 2;
10147 }
10148 /* Test on negative zero. */
10149 x = minus_zero;
10150 {
10151 int exp;
10152 double y = frexp (x, &exp);
10153 if (memcmp (&y, &x, sizeof x))
10154 result |= 4;
10155 }
10156 return result;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_run "$LINENO"; then :
10160 gl_cv_func_frexp_works=yes
10161 else
10162 gl_cv_func_frexp_works=no
10163 fi
10164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10165 conftest.$ac_objext conftest.beam conftest.$ac_ext
10166 fi
10167
10168
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10171 $as_echo "$gl_cv_func_frexp_works" >&6; }
10172
10173 LIBS="$save_LIBS"
10174 case "$gl_cv_func_frexp_works" in
10175 *yes) gl_func_frexp=yes ;;
10176 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10177 esac
10178 else
10179 gl_func_frexp=no
10180 fi
10181 if test $gl_func_frexp = yes; then
10182
10183 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10184
10185 fi
10186
10187
10188 if test $gl_func_frexp != yes; then
10189
10190
10191
10192
10193
10194
10195
10196
10197 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10198
10199 fi
10200
10201
10202
10203
10204
10205 GNULIB_FREXP=1
10206
10207
10208
10209
10210
10211 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10222 "
10223 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10224
10225 else
10226 HAVE_DECL_FREXPL=0
10227 fi
10228
10229
10230 FREXPL_LIBM=
10231 if test $HAVE_DECL_FREXPL = 1; then
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10234 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10235 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 #include <math.h>
10242 long double x;
10243 int
10244 main ()
10245 {
10246 int e; return frexpl (x, &e) > 0;
10247 ;
10248 return 0;
10249 }
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 gl_cv_func_frexpl_no_libm=yes
10253 else
10254 gl_cv_func_frexpl_no_libm=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258
10259 fi
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10261 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10262
10263 if test $gl_cv_func_frexpl_no_libm = no; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10265 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10266 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269
10270 save_LIBS="$LIBS"
10271 LIBS="$LIBS -lm"
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274 #include <math.h>
10275 long double x;
10276 int
10277 main ()
10278 {
10279 int e; return frexpl (x, &e) > 0;
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_link "$LINENO"; then :
10285 gl_cv_func_frexpl_in_libm=yes
10286 else
10287 gl_cv_func_frexpl_in_libm=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS="$save_LIBS"
10292
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10295 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10296 if test $gl_cv_func_frexpl_in_libm = yes; then
10297 FREXPL_LIBM=-lm
10298 fi
10299 fi
10300 if test $gl_cv_func_frexpl_no_libm = yes \
10301 || test $gl_cv_func_frexpl_in_libm = yes; then
10302 save_LIBS="$LIBS"
10303 LIBS="$LIBS $FREXPL_LIBM"
10304
10305
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10307 $as_echo_n "checking whether frexpl works... " >&6; }
10308 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311
10312 if test "$cross_compiling" = yes; then :
10313
10314 case "$host_os" in
10315 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10316 gl_cv_func_frexpl_works="guessing no";;
10317 *) gl_cv_func_frexpl_works="guessing yes";;
10318 esac
10319
10320 else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323
10324 #include <float.h>
10325 #include <math.h>
10326 /* Override the values of <float.h>, like done in float.in.h. */
10327 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10328 # undef LDBL_MIN_EXP
10329 # define LDBL_MIN_EXP (-16381)
10330 #endif
10331 #if defined __i386__ && defined __FreeBSD__
10332 # undef LDBL_MIN_EXP
10333 # define LDBL_MIN_EXP (-16381)
10334 #endif
10335 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10336 # undef LDBL_MIN_EXP
10337 # define LDBL_MIN_EXP DBL_MIN_EXP
10338 #endif
10339 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10340 # if defined __GNUC__
10341 # undef LDBL_MIN_EXP
10342 # define LDBL_MIN_EXP DBL_MIN_EXP
10343 # endif
10344 #endif
10345 extern
10346 #ifdef __cplusplus
10347 "C"
10348 #endif
10349 long double frexpl (long double, int *);
10350 int main()
10351 {
10352 int result = 0;
10353 volatile long double x;
10354 /* Test on finite numbers that fails on AIX 5.1. */
10355 x = 16.0L;
10356 {
10357 int exp = -9999;
10358 frexpl (x, &exp);
10359 if (exp != 5)
10360 result |= 1;
10361 }
10362 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10363 function returns an invalid (incorrectly normalized) value: it returns
10364 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10365 but the correct result is
10366 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10367 x = 1.01L;
10368 {
10369 int exp = -9999;
10370 long double y = frexpl (x, &exp);
10371 if (!(exp == 1 && y == 0.505L))
10372 result |= 2;
10373 }
10374 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10375 LDBL_MAX_EXP = 16384.
10376 In the loop end test, we test x against Infinity, rather than comparing
10377 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10378 {
10379 int i;
10380 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10381 {
10382 int exp = -9999;
10383 frexpl (x, &exp);
10384 if (exp != i)
10385 {
10386 result |= 4;
10387 break;
10388 }
10389 }
10390 }
10391 /* Test on denormalized numbers. */
10392 {
10393 int i;
10394 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10395 ;
10396 if (x > 0.0L)
10397 {
10398 int exp;
10399 long double y = frexpl (x, &exp);
10400 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10401 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10402 if (exp != LDBL_MIN_EXP - 1)
10403 result |= 8;
10404 }
10405 }
10406 /* Test on infinite numbers. */
10407 x = 1.0L / 0.0L;
10408 {
10409 int exp;
10410 long double y = frexpl (x, &exp);
10411 if (y != x)
10412 result |= 16;
10413 }
10414 return result;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_run "$LINENO"; then :
10418 gl_cv_func_frexpl_works=yes
10419 else
10420 gl_cv_func_frexpl_works=no
10421 fi
10422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10423 conftest.$ac_objext conftest.beam conftest.$ac_ext
10424 fi
10425
10426
10427 fi
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10429 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10430
10431 LIBS="$save_LIBS"
10432 case "$gl_cv_func_frexpl_works" in
10433 *yes) gl_func_frexpl=yes ;;
10434 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10435 esac
10436 else
10437 gl_func_frexpl=no
10438 fi
10439 if test $gl_func_frexpl = yes; then
10440
10441 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10442
10443 fi
10444 fi
10445 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10446 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10447
10448 FREXPL_LIBM="$FREXP_LIBM"
10449 else
10450 FREXPL_LIBM=
10451 fi
10452 fi
10453
10454
10455 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10456
10457
10458
10459
10460
10461
10462
10463
10464 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10465
10466 fi
10467
10468
10469
10470
10471
10472 GNULIB_FREXPL=1
10473
10474
10475
10476
10477
10478 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10479
10480
10481
10482
10483
10484
10485
10486
10487 PRIPTR_PREFIX=
10488 if test -n "$STDINT_H"; then
10489 PRIPTR_PREFIX='"l"'
10490 else
10491 for glpfx in '' l ll I64; do
10492 case $glpfx in
10493 '') gltype1='int';;
10494 l) gltype1='long int';;
10495 ll) gltype1='long long int';;
10496 I64) gltype1='__int64';;
10497 esac
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 #include <stdint.h>
10501 extern intptr_t foo;
10502 extern $gltype1 foo;
10503 int
10504 main ()
10505 {
10506
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 PRIPTR_PREFIX='"'$glpfx'"'
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 test -n "$PRIPTR_PREFIX" && break
10516 done
10517 fi
10518
10519
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10522 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10523 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 /* Work also in C++ mode. */
10529 #define __STDC_LIMIT_MACROS 1
10530
10531 /* Work if build is not clean. */
10532 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10533
10534 #include <limits.h>
10535 #if HAVE_STDINT_H
10536 #include <stdint.h>
10537 #endif
10538
10539 #if defined INT32_MAX && defined INTMAX_MAX
10540 #define CONDITION (INT32_MAX < INTMAX_MAX)
10541 #elif HAVE_LONG_LONG_INT
10542 #define CONDITION (sizeof (int) < sizeof (long long int))
10543 #else
10544 #define CONDITION 0
10545 #endif
10546 int test[CONDITION ? 1 : -1];
10547 int
10548 main ()
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_compile "$LINENO"; then :
10556 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10557 else
10558 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10559 fi
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10563 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10564 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10565 INT32_MAX_LT_INTMAX_MAX=1;
10566 else
10567 INT32_MAX_LT_INTMAX_MAX=0;
10568 fi
10569
10570
10571 if test $APPLE_UNIVERSAL_BUILD = 0; then
10572
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10574 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10575 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 /* Work also in C++ mode. */
10581 #define __STDC_LIMIT_MACROS 1
10582
10583 /* Work if build is not clean. */
10584 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10585
10586 #include <limits.h>
10587 #if HAVE_STDINT_H
10588 #include <stdint.h>
10589 #endif
10590
10591 #if defined INT64_MAX
10592 #define CONDITION (INT64_MAX == LONG_MAX)
10593 #elif HAVE_LONG_LONG_INT
10594 #define CONDITION (sizeof (long long int) == sizeof (long int))
10595 #else
10596 #define CONDITION 0
10597 #endif
10598 int test[CONDITION ? 1 : -1];
10599 int
10600 main ()
10601 {
10602
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_compile "$LINENO"; then :
10608 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10609 else
10610 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10611 fi
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10615 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10616 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10617 INT64_MAX_EQ_LONG_MAX=1;
10618 else
10619 INT64_MAX_EQ_LONG_MAX=0;
10620 fi
10621
10622
10623 else
10624 INT64_MAX_EQ_LONG_MAX=-1
10625 fi
10626
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10628 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10629 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 /* Work also in C++ mode. */
10635 #define __STDC_LIMIT_MACROS 1
10636
10637 /* Work if build is not clean. */
10638 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10639
10640 #include <limits.h>
10641 #if HAVE_STDINT_H
10642 #include <stdint.h>
10643 #endif
10644
10645 #if defined UINT32_MAX && defined UINTMAX_MAX
10646 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10647 #elif HAVE_LONG_LONG_INT
10648 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10649 #else
10650 #define CONDITION 0
10651 #endif
10652 int test[CONDITION ? 1 : -1];
10653 int
10654 main ()
10655 {
10656
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_compile "$LINENO"; then :
10662 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10663 else
10664 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10669 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10670 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10671 UINT32_MAX_LT_UINTMAX_MAX=1;
10672 else
10673 UINT32_MAX_LT_UINTMAX_MAX=0;
10674 fi
10675
10676
10677 if test $APPLE_UNIVERSAL_BUILD = 0; then
10678
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10680 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10681 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 /* Work also in C++ mode. */
10687 #define __STDC_LIMIT_MACROS 1
10688
10689 /* Work if build is not clean. */
10690 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10691
10692 #include <limits.h>
10693 #if HAVE_STDINT_H
10694 #include <stdint.h>
10695 #endif
10696
10697 #if defined UINT64_MAX
10698 #define CONDITION (UINT64_MAX == ULONG_MAX)
10699 #elif HAVE_LONG_LONG_INT
10700 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10701 #else
10702 #define CONDITION 0
10703 #endif
10704 int test[CONDITION ? 1 : -1];
10705 int
10706 main ()
10707 {
10708
10709 ;
10710 return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10715 else
10716 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10721 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10722 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10723 UINT64_MAX_EQ_ULONG_MAX=1;
10724 else
10725 UINT64_MAX_EQ_ULONG_MAX=0;
10726 fi
10727
10728
10729 else
10730 UINT64_MAX_EQ_ULONG_MAX=-1
10731 fi
10732
10733
10734
10735
10736
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10738 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10739 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 #include <math.h>
10746 #if __GNUC__ >= 4
10747 # undef isnand
10748 # define isnand(x) __builtin_isnan ((double)(x))
10749 #else
10750 # undef isnand
10751 # define isnand(x) isnan ((double)(x))
10752 #endif
10753 double x;
10754 int
10755 main ()
10756 {
10757 return isnand (x);
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 gl_cv_func_isnand_no_libm=yes
10764 else
10765 gl_cv_func_isnand_no_libm=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10772 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10773
10774 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10775 if test $gl_cv_func_isnand_no_libm = yes; then
10776
10777 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10778
10779 fi
10780
10781 if test $gl_func_isnand_no_libm != yes; then
10782
10783
10784
10785
10786
10787
10788
10789
10790 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10791
10792
10793
10794
10795 fi
10796
10797
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10799 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10800 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 #include <math.h>
10807 #if __GNUC__ >= 4
10808 # undef isnanl
10809 # define isnanl(x) __builtin_isnanl ((long double)(x))
10810 #elif defined isnan
10811 # undef isnanl
10812 # define isnanl(x) isnan ((long double)(x))
10813 #endif
10814 long double x;
10815 int
10816 main ()
10817 {
10818 return isnanl (x);
10819 ;
10820 return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 gl_cv_func_isnanl_no_libm=yes
10825 else
10826 gl_cv_func_isnanl_no_libm=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10833 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10834
10835 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10836 if test $gl_func_isnanl_no_libm = yes; then
10837
10838
10839
10840
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10842 $as_echo_n "checking whether isnanl works... " >&6; }
10843 if test "${gl_cv_func_isnanl_works+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846
10847 if test "$cross_compiling" = yes; then :
10848 case "$host_cpu" in
10849 # Guess no on ia64, x86_64, i386.
10850 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10851 *)
10852 case "$host_os" in
10853 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10854 *) gl_cv_func_isnanl_works="guessing yes";;
10855 esac
10856 ;;
10857 esac
10858
10859 else
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862
10863 #include <float.h>
10864 #include <limits.h>
10865 #include <math.h>
10866 #if __GNUC__ >= 4
10867 # undef isnanl
10868 # define isnanl(x) __builtin_isnanl ((long double)(x))
10869 #elif defined isnan
10870 # undef isnanl
10871 # define isnanl(x) isnan ((long double)(x))
10872 #endif
10873 #define NWORDS \
10874 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10875 typedef union { unsigned int word[NWORDS]; long double value; }
10876 memory_long_double;
10877 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
10878 runtime type conversion. */
10879 #ifdef __sgi
10880 static long double NaNl ()
10881 {
10882 double zero = 0.0;
10883 return zero / zero;
10884 }
10885 #else
10886 # define NaNl() (0.0L / 0.0L)
10887 #endif
10888 int main ()
10889 {
10890 int result = 0;
10891
10892 if (!isnanl (NaNl ()))
10893 result |= 1;
10894
10895 {
10896 memory_long_double m;
10897 unsigned int i;
10898
10899 /* The isnanl function should be immune against changes in the sign bit and
10900 in the mantissa bits. The xor operation twiddles a bit that can only be
10901 a sign bit or a mantissa bit (since the exponent never extends to
10902 bit 31). */
10903 m.value = NaNl ();
10904 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
10905 for (i = 0; i < NWORDS; i++)
10906 m.word[i] |= 1;
10907 if (!isnanl (m.value))
10908 result |= 1;
10909 }
10910
10911 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
10912 /* Representation of an 80-bit 'long double' as an initializer for a sequence
10913 of 'unsigned int' words. */
10914 # ifdef WORDS_BIGENDIAN
10915 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10916 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
10917 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
10918 (unsigned int) (mantlo) << 16 \
10919 }
10920 # else
10921 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10922 { mantlo, manthi, exponent }
10923 # endif
10924 { /* Quiet NaN. */
10925 static memory_long_double x =
10926 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
10927 if (!isnanl (x.value))
10928 result |= 2;
10929 }
10930 {
10931 /* Signalling NaN. */
10932 static memory_long_double x =
10933 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
10934 if (!isnanl (x.value))
10935 result |= 2;
10936 }
10937 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
10938 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
10939 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
10940 Application Architecture.
10941 Table 5-2 "Floating-Point Register Encodings"
10942 Figure 5-6 "Memory to Floating-Point Register Data Translation"
10943 */
10944 { /* Pseudo-NaN. */
10945 static memory_long_double x =
10946 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
10947 if (!isnanl (x.value))
10948 result |= 4;
10949 }
10950 { /* Pseudo-Infinity. */
10951 static memory_long_double x =
10952 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
10953 if (!isnanl (x.value))
10954 result |= 8;
10955 }
10956 { /* Pseudo-Zero. */
10957 static memory_long_double x =
10958 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
10959 if (!isnanl (x.value))
10960 result |= 16;
10961 }
10962 { /* Unnormalized number. */
10963 static memory_long_double x =
10964 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
10965 if (!isnanl (x.value))
10966 result |= 32;
10967 }
10968 { /* Pseudo-Denormal. */
10969 static memory_long_double x =
10970 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
10971 if (!isnanl (x.value))
10972 result |= 64;
10973 }
10974 #endif
10975
10976 return result;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_run "$LINENO"; then :
10980 gl_cv_func_isnanl_works=yes
10981 else
10982 gl_cv_func_isnanl_works=no
10983 fi
10984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10985 conftest.$ac_objext conftest.beam conftest.$ac_ext
10986 fi
10987
10988
10989 fi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
10991 $as_echo "$gl_cv_func_isnanl_works" >&6; }
10992
10993 case "$gl_cv_func_isnanl_works" in
10994 *yes) ;;
10995 *) gl_func_isnanl_no_libm=no ;;
10996 esac
10997 fi
10998 if test $gl_func_isnanl_no_libm = yes; then
10999
11000 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11001
11002 fi
11003
11004 if test $gl_func_isnanl_no_libm != yes; then
11005
11006
11007
11008
11009
11010
11011
11012
11013 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11014
11015
11016
11017
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11019 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11020 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023
11024 if test "$cross_compiling" = yes; then :
11025
11026 gl_cv_cc_long_double_expbit0="unknown"
11027
11028 else
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031
11032 #include <float.h>
11033 #include <stddef.h>
11034 #include <stdio.h>
11035 #include <string.h>
11036 #define NWORDS \
11037 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11038 typedef union { long double value; unsigned int word[NWORDS]; }
11039 memory_long_double;
11040 static unsigned int ored_words[NWORDS];
11041 static unsigned int anded_words[NWORDS];
11042 static void add_to_ored_words (long double x)
11043 {
11044 memory_long_double m;
11045 size_t i;
11046 /* Clear it first, in case
11047 sizeof (long double) < sizeof (memory_long_double). */
11048 memset (&m, 0, sizeof (memory_long_double));
11049 m.value = x;
11050 for (i = 0; i < NWORDS; i++)
11051 {
11052 ored_words[i] |= m.word[i];
11053 anded_words[i] &= m.word[i];
11054 }
11055 }
11056 int main ()
11057 {
11058 size_t j;
11059 FILE *fp = fopen ("conftest.out", "w");
11060 if (fp == NULL)
11061 return 1;
11062 for (j = 0; j < NWORDS; j++)
11063 anded_words[j] = ~ (unsigned int) 0;
11064 add_to_ored_words (0.25L);
11065 add_to_ored_words (0.5L);
11066 add_to_ored_words (1.0L);
11067 add_to_ored_words (2.0L);
11068 add_to_ored_words (4.0L);
11069 /* Remove bits that are common (e.g. if representation of the first mantissa
11070 bit is explicit). */
11071 for (j = 0; j < NWORDS; j++)
11072 ored_words[j] &= ~anded_words[j];
11073 /* Now find the nonzero word. */
11074 for (j = 0; j < NWORDS; j++)
11075 if (ored_words[j] != 0)
11076 break;
11077 if (j < NWORDS)
11078 {
11079 size_t i;
11080 for (i = j + 1; i < NWORDS; i++)
11081 if (ored_words[i] != 0)
11082 {
11083 fprintf (fp, "unknown");
11084 return (fclose (fp) != 0);
11085 }
11086 for (i = 0; ; i++)
11087 if ((ored_words[j] >> i) & 1)
11088 {
11089 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11090 return (fclose (fp) != 0);
11091 }
11092 }
11093 fprintf (fp, "unknown");
11094 return (fclose (fp) != 0);
11095 }
11096
11097 _ACEOF
11098 if ac_fn_c_try_run "$LINENO"; then :
11099 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11100 else
11101 gl_cv_cc_long_double_expbit0="unknown"
11102 fi
11103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11104 conftest.$ac_objext conftest.beam conftest.$ac_ext
11105 fi
11106
11107 rm -f conftest.out
11108
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11111 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11112 case "$gl_cv_cc_long_double_expbit0" in
11113 word*bit*)
11114 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11115 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11116
11117 cat >>confdefs.h <<_ACEOF
11118 #define LDBL_EXPBIT0_WORD $word
11119 _ACEOF
11120
11121
11122 cat >>confdefs.h <<_ACEOF
11123 #define LDBL_EXPBIT0_BIT $bit
11124 _ACEOF
11125
11126 ;;
11127 esac
11128
11129
11130
11131 fi
11132
11133
11134
11135
11136 :
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 :
11157
11158
11159
11160
11161
11162
11163
11164
11165 if test $gl_cv_have_include_next = yes; then
11166 gl_cv_next_math_h='<'math.h'>'
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11169 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11170 if test "${gl_cv_next_math_h+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173
11174 if test $ac_cv_header_math_h = yes; then
11175
11176
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11179 #include <math.h>
11180
11181 _ACEOF
11182 case "$host_os" in
11183 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11184 *) gl_absname_cpp="$ac_cpp" ;;
11185 esac
11186
11187 case "$host_os" in
11188 mingw*)
11189 gl_dirsep_regex='[/\\]'
11190 ;;
11191 *)
11192 gl_dirsep_regex='\/'
11193 ;;
11194 esac
11195 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11196
11197 gl_header_literal_regex=`echo 'math.h' \
11198 | sed -e "$gl_make_literal_regex_sed"`
11199 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11200 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11201 s|^/[^/]|//&|
11202 p
11203 q
11204 }'
11205 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11206 sed -n "$gl_absolute_header_sed"`'"'
11207 else
11208 gl_cv_next_math_h='<'math.h'>'
11209 fi
11210
11211
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11214 $as_echo "$gl_cv_next_math_h" >&6; }
11215 fi
11216 NEXT_MATH_H=$gl_cv_next_math_h
11217
11218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11220 gl_next_as_first_directive='<'math.h'>'
11221 else
11222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11223 gl_next_as_first_directive=$gl_cv_next_math_h
11224 fi
11225 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11226
11227
11228
11229
11230
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11232 $as_echo_n "checking whether NAN macro works... " >&6; }
11233 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #include <math.h>
11239 int
11240 main ()
11241 {
11242 /* Solaris 10 has a broken definition of NAN. Other platforms
11243 fail to provide NAN, or provide it only in C99 mode; this
11244 test only needs to fail when NAN is provided but wrong. */
11245 float f = 1.0f;
11246 #ifdef NAN
11247 f = NAN;
11248 #endif
11249 return f == 0;
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_compile "$LINENO"; then :
11255 gl_cv_header_math_nan_works=yes
11256 else
11257 gl_cv_header_math_nan_works=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11262 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11263 if test $gl_cv_header_math_nan_works = no; then
11264 REPLACE_NAN=1
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11267 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11268 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273 #include <math.h>
11274 int
11275 main ()
11276 {
11277 /* Solaris 10 has a broken definition of HUGE_VAL. */
11278 double d = HUGE_VAL;
11279 return d == 0;
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_compile "$LINENO"; then :
11285 gl_cv_header_math_huge_val_works=yes
11286 else
11287 gl_cv_header_math_huge_val_works=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11292 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11293 if test $gl_cv_header_math_huge_val_works = no; then
11294 REPLACE_HUGE_VAL=1
11295 fi
11296
11297
11298 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
11299 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11301 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11302 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 #include <math.h>
11308 int
11309 main ()
11310 {
11311 #undef $gl_func
11312 (void) $gl_func;
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 eval "$as_gl_Symbol=yes"
11319 else
11320 eval "$as_gl_Symbol=no"
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 fi
11324 eval ac_res=\$$as_gl_Symbol
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11326 $as_echo "$ac_res" >&6; }
11327 eval as_val=\$$as_gl_Symbol
11328 if test "x$as_val" = x""yes; then :
11329 cat >>confdefs.h <<_ACEOF
11330 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11331 _ACEOF
11332
11333 eval ac_cv_have_decl_$gl_func=yes
11334 fi
11335 done
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 :
11348
11349
11350
11351
11352
11353
11354 :
11355
11356
11357
11358
11359
11360 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11361
11362
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11365 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11366 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369
11370 case "$host_os" in
11371 # Guess no on AIX and OSF/1.
11372 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11373 # Guess yes otherwise.
11374 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11375 esac
11376 if test $LOCALE_JA != none; then
11377 if test "$cross_compiling" = yes; then :
11378 :
11379 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 #include <locale.h>
11384 #include <string.h>
11385 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11386 <wchar.h>.
11387 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11388 included before <wchar.h>. */
11389 #include <stddef.h>
11390 #include <stdio.h>
11391 #include <time.h>
11392 #include <wchar.h>
11393 int main ()
11394 {
11395 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11396 {
11397 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11398 mbstate_t state;
11399 wchar_t wc;
11400
11401 memset (&state, '\0', sizeof (mbstate_t));
11402 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11403 if (mbsinit (&state))
11404 return 1;
11405 }
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_run "$LINENO"; then :
11410 gl_cv_func_mbrtowc_incomplete_state=yes
11411 else
11412 gl_cv_func_mbrtowc_incomplete_state=no
11413 fi
11414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11415 conftest.$ac_objext conftest.beam conftest.$ac_ext
11416 fi
11417
11418 fi
11419
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11422 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11423
11424
11425
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11428 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11429 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432
11433 case "$host_os" in
11434 # Guess no on Solaris 8.
11435 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11436 # Guess yes otherwise.
11437 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11438 esac
11439 if test $LOCALE_ZH_CN != none; then
11440 if test "$cross_compiling" = yes; then :
11441 :
11442 else
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445
11446 #include <locale.h>
11447 #include <stdlib.h>
11448 #include <string.h>
11449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11450 <wchar.h>.
11451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11452 included before <wchar.h>. */
11453 #include <stddef.h>
11454 #include <stdio.h>
11455 #include <time.h>
11456 #include <wchar.h>
11457 int main ()
11458 {
11459 /* This fails on Solaris 8:
11460 mbrtowc returns 2, and sets wc to 0x00F0.
11461 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11462 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11463 {
11464 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11465 mbstate_t state;
11466 wchar_t wc;
11467
11468 memset (&state, '\0', sizeof (mbstate_t));
11469 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11470 && mbtowc (&wc, input + 3, 6) == 4)
11471 return 1;
11472 }
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_run "$LINENO"; then :
11477 gl_cv_func_mbrtowc_sanitycheck=yes
11478 else
11479 gl_cv_func_mbrtowc_sanitycheck=no
11480 fi
11481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11482 conftest.$ac_objext conftest.beam conftest.$ac_ext
11483 fi
11484
11485 fi
11486
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11489 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11490
11491 REPLACE_MBSTATE_T=0
11492 case "$gl_cv_func_mbrtowc_incomplete_state" in
11493 *yes) ;;
11494 *) REPLACE_MBSTATE_T=1 ;;
11495 esac
11496 case "$gl_cv_func_mbrtowc_sanitycheck" in
11497 *yes) ;;
11498 *) REPLACE_MBSTATE_T=1 ;;
11499 esac
11500 else
11501 REPLACE_MBSTATE_T=1
11502 fi
11503
11504
11505
11506 :
11507
11508
11509
11510
11511
11512 if test $ac_cv_func_mbrtowc = no; then
11513 HAVE_MBRTOWC=0
11514 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11515 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11516 <wchar.h>.
11517 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11518 included before <wchar.h>. */
11519 #include <stddef.h>
11520 #include <stdio.h>
11521 #include <time.h>
11522 #include <wchar.h>
11523
11524 "
11525 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11526 ac_have_decl=1
11527 else
11528 ac_have_decl=0
11529 fi
11530
11531 cat >>confdefs.h <<_ACEOF
11532 #define HAVE_DECL_MBRTOWC $ac_have_decl
11533 _ACEOF
11534
11535 if test $ac_cv_have_decl_mbrtowc = yes; then
11536 REPLACE_MBRTOWC=1
11537 fi
11538 else
11539 if test $REPLACE_MBSTATE_T = 1; then
11540 REPLACE_MBRTOWC=1
11541 else
11542
11543
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11546 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11547 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550
11551 case "$host_os" in
11552 # Guess no on Solaris.
11553 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11554 # Guess yes otherwise.
11555 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11556 esac
11557 if test $LOCALE_FR_UTF8 != none; then
11558 if test "$cross_compiling" = yes; then :
11559 :
11560 else
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563
11564 #include <locale.h>
11565 #include <stdlib.h>
11566 #include <string.h>
11567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11568 <wchar.h>.
11569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11570 included before <wchar.h>. */
11571 #include <stddef.h>
11572 #include <stdio.h>
11573 #include <time.h>
11574 #include <wchar.h>
11575 int main ()
11576 {
11577 int result = 0;
11578
11579 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11580 {
11581 char input[] = "\303\237er";
11582 mbstate_t state;
11583 wchar_t wc;
11584 size_t ret;
11585
11586 memset (&state, '\0', sizeof (mbstate_t));
11587 wc = (wchar_t) 0xBADFACE;
11588 ret = mbrtowc (&wc, input, 5, &state);
11589 if (ret != 2)
11590 result |= 1;
11591 if (!mbsinit (&state))
11592 result |= 2;
11593
11594 memset (&state, '\0', sizeof (mbstate_t));
11595 ret = mbrtowc (NULL, input, 5, &state);
11596 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11597 result |= 4;
11598 if (!mbsinit (&state))
11599 result |= 8;
11600 }
11601 return result;
11602 }
11603 _ACEOF
11604 if ac_fn_c_try_run "$LINENO"; then :
11605 gl_cv_func_mbrtowc_null_arg1=yes
11606 else
11607 gl_cv_func_mbrtowc_null_arg1=no
11608 fi
11609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11610 conftest.$ac_objext conftest.beam conftest.$ac_ext
11611 fi
11612
11613 fi
11614
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11617 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
11618
11619
11620
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11623 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11624 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627
11628 case "$host_os" in
11629 # Guess no on OSF/1.
11630 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11631 # Guess yes otherwise.
11632 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11633 esac
11634 if test $LOCALE_FR_UTF8 != none; then
11635 if test "$cross_compiling" = yes; then :
11636 :
11637 else
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640
11641 #include <locale.h>
11642 #include <string.h>
11643 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11644 <wchar.h>.
11645 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11646 included before <wchar.h>. */
11647 #include <stddef.h>
11648 #include <stdio.h>
11649 #include <time.h>
11650 #include <wchar.h>
11651 int main ()
11652 {
11653 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11654 {
11655 mbstate_t state;
11656 wchar_t wc;
11657 int ret;
11658
11659 memset (&state, '\0', sizeof (mbstate_t));
11660 wc = (wchar_t) 0xBADFACE;
11661 mbrtowc (&wc, NULL, 5, &state);
11662 /* Check that wc was not modified. */
11663 if (wc != (wchar_t) 0xBADFACE)
11664 return 1;
11665 }
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_run "$LINENO"; then :
11670 gl_cv_func_mbrtowc_null_arg2=yes
11671 else
11672 gl_cv_func_mbrtowc_null_arg2=no
11673 fi
11674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11675 conftest.$ac_objext conftest.beam conftest.$ac_ext
11676 fi
11677
11678 fi
11679
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11682 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
11683
11684
11685
11686
11687
11688
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11690 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11691 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694
11695 case "$host_os" in
11696 # Guess no on HP-UX, Solaris, native Windows.
11697 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11698 # Guess yes otherwise.
11699 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11700 esac
11701 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11702 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11703 if test "$cross_compiling" = yes; then :
11704 :
11705 else
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708
11709 #include <locale.h>
11710 #include <string.h>
11711 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11712 <wchar.h>.
11713 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11714 included before <wchar.h>. */
11715 #include <stddef.h>
11716 #include <stdio.h>
11717 #include <time.h>
11718 #include <wchar.h>
11719 int main ()
11720 {
11721 int result = 0;
11722 int found_some_locale = 0;
11723 /* This fails on Solaris. */
11724 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11725 {
11726 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11727 mbstate_t state;
11728 wchar_t wc;
11729
11730 memset (&state, '\0', sizeof (mbstate_t));
11731 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11732 {
11733 input[1] = '\0';
11734 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11735 result |= 1;
11736 }
11737 found_some_locale = 1;
11738 }
11739 /* This fails on HP-UX 11.11. */
11740 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11741 {
11742 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11743 mbstate_t state;
11744 wchar_t wc;
11745
11746 memset (&state, '\0', sizeof (mbstate_t));
11747 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11748 {
11749 input[1] = '\0';
11750 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11751 result |= 2;
11752 }
11753 found_some_locale = 1;
11754 }
11755 /* This fails on native Windows. */
11756 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11757 {
11758 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11759 mbstate_t state;
11760 wchar_t wc;
11761
11762 memset (&state, '\0', sizeof (mbstate_t));
11763 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11764 {
11765 input[3] = '\0';
11766 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11767 result |= 4;
11768 }
11769 found_some_locale = 1;
11770 }
11771 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11772 {
11773 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11774 mbstate_t state;
11775 wchar_t wc;
11776
11777 memset (&state, '\0', sizeof (mbstate_t));
11778 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11779 {
11780 input[3] = '\0';
11781 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11782 result |= 8;
11783 }
11784 found_some_locale = 1;
11785 }
11786 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11787 {
11788 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11789 mbstate_t state;
11790 wchar_t wc;
11791
11792 memset (&state, '\0', sizeof (mbstate_t));
11793 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11794 {
11795 input[3] = '\0';
11796 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11797 result |= 16;
11798 }
11799 found_some_locale = 1;
11800 }
11801 return (found_some_locale ? result : 77);
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_run "$LINENO"; then :
11805 gl_cv_func_mbrtowc_retval=yes
11806 else
11807 if test $? != 77; then
11808 gl_cv_func_mbrtowc_retval=no
11809 fi
11810
11811 fi
11812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11813 conftest.$ac_objext conftest.beam conftest.$ac_ext
11814 fi
11815
11816 fi
11817
11818 fi
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11820 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
11821
11822
11823
11824
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11826 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11827 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830
11831 case "$host_os" in
11832 # Guess no on Solaris 8 and 9.
11833 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11834 # Guess yes otherwise.
11835 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11836 esac
11837 if test $LOCALE_ZH_CN != none; then
11838 if test "$cross_compiling" = yes; then :
11839 :
11840 else
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843
11844 #include <locale.h>
11845 #include <string.h>
11846 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11847 <wchar.h>.
11848 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11849 included before <wchar.h>. */
11850 #include <stddef.h>
11851 #include <stdio.h>
11852 #include <time.h>
11853 #include <wchar.h>
11854 int main ()
11855 {
11856 /* This fails on Solaris 8 and 9. */
11857 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11858 {
11859 mbstate_t state;
11860 wchar_t wc;
11861
11862 memset (&state, '\0', sizeof (mbstate_t));
11863 if (mbrtowc (&wc, "", 1, &state) != 0)
11864 return 1;
11865 }
11866 return 0;
11867 }
11868 _ACEOF
11869 if ac_fn_c_try_run "$LINENO"; then :
11870 gl_cv_func_mbrtowc_nul_retval=yes
11871 else
11872 gl_cv_func_mbrtowc_nul_retval=no
11873 fi
11874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11875 conftest.$ac_objext conftest.beam conftest.$ac_ext
11876 fi
11877
11878 fi
11879
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11882 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11883
11884 case "$gl_cv_func_mbrtowc_null_arg1" in
11885 *yes) ;;
11886 *)
11887 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11888
11889 REPLACE_MBRTOWC=1
11890 ;;
11891 esac
11892 case "$gl_cv_func_mbrtowc_null_arg2" in
11893 *yes) ;;
11894 *)
11895 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11896
11897 REPLACE_MBRTOWC=1
11898 ;;
11899 esac
11900 case "$gl_cv_func_mbrtowc_retval" in
11901 *yes) ;;
11902 *)
11903 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
11904
11905 REPLACE_MBRTOWC=1
11906 ;;
11907 esac
11908 case "$gl_cv_func_mbrtowc_nul_retval" in
11909 *yes) ;;
11910 *)
11911 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
11912
11913 REPLACE_MBRTOWC=1
11914 ;;
11915 esac
11916 fi
11917 fi
11918
11919 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
11920
11921
11922
11923
11924
11925
11926
11927
11928 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
11929
11930
11931 :
11932
11933 fi
11934
11935
11936
11937
11938
11939 GNULIB_MBRTOWC=1
11940
11941
11942
11943
11944
11945 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959 :
11960
11961
11962
11963
11964
11965
11966 :
11967
11968
11969
11970
11971
11972 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11973
11974
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11977 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11978 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981
11982 case "$host_os" in
11983 # Guess no on AIX and OSF/1.
11984 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11985 # Guess yes otherwise.
11986 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11987 esac
11988 if test $LOCALE_JA != none; then
11989 if test "$cross_compiling" = yes; then :
11990 :
11991 else
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994
11995 #include <locale.h>
11996 #include <string.h>
11997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11998 <wchar.h>.
11999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12000 included before <wchar.h>. */
12001 #include <stddef.h>
12002 #include <stdio.h>
12003 #include <time.h>
12004 #include <wchar.h>
12005 int main ()
12006 {
12007 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12008 {
12009 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12010 mbstate_t state;
12011 wchar_t wc;
12012
12013 memset (&state, '\0', sizeof (mbstate_t));
12014 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12015 if (mbsinit (&state))
12016 return 1;
12017 }
12018 return 0;
12019 }
12020 _ACEOF
12021 if ac_fn_c_try_run "$LINENO"; then :
12022 gl_cv_func_mbrtowc_incomplete_state=yes
12023 else
12024 gl_cv_func_mbrtowc_incomplete_state=no
12025 fi
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12027 conftest.$ac_objext conftest.beam conftest.$ac_ext
12028 fi
12029
12030 fi
12031
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12034 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12035
12036
12037
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12040 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12041 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044
12045 case "$host_os" in
12046 # Guess no on Solaris 8.
12047 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12048 # Guess yes otherwise.
12049 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12050 esac
12051 if test $LOCALE_ZH_CN != none; then
12052 if test "$cross_compiling" = yes; then :
12053 :
12054 else
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057
12058 #include <locale.h>
12059 #include <stdlib.h>
12060 #include <string.h>
12061 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12062 <wchar.h>.
12063 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12064 included before <wchar.h>. */
12065 #include <stddef.h>
12066 #include <stdio.h>
12067 #include <time.h>
12068 #include <wchar.h>
12069 int main ()
12070 {
12071 /* This fails on Solaris 8:
12072 mbrtowc returns 2, and sets wc to 0x00F0.
12073 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12074 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12075 {
12076 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12077 mbstate_t state;
12078 wchar_t wc;
12079
12080 memset (&state, '\0', sizeof (mbstate_t));
12081 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12082 && mbtowc (&wc, input + 3, 6) == 4)
12083 return 1;
12084 }
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_run "$LINENO"; then :
12089 gl_cv_func_mbrtowc_sanitycheck=yes
12090 else
12091 gl_cv_func_mbrtowc_sanitycheck=no
12092 fi
12093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12094 conftest.$ac_objext conftest.beam conftest.$ac_ext
12095 fi
12096
12097 fi
12098
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12101 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12102
12103 REPLACE_MBSTATE_T=0
12104 case "$gl_cv_func_mbrtowc_incomplete_state" in
12105 *yes) ;;
12106 *) REPLACE_MBSTATE_T=1 ;;
12107 esac
12108 case "$gl_cv_func_mbrtowc_sanitycheck" in
12109 *yes) ;;
12110 *) REPLACE_MBSTATE_T=1 ;;
12111 esac
12112 else
12113 REPLACE_MBSTATE_T=1
12114 fi
12115
12116
12117
12118 :
12119
12120
12121
12122
12123
12124 if test $ac_cv_func_mbsinit = no; then
12125 HAVE_MBSINIT=0
12126 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12127 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12128 <wchar.h>.
12129 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12130 included before <wchar.h>. */
12131 #include <stddef.h>
12132 #include <stdio.h>
12133 #include <time.h>
12134 #include <wchar.h>
12135
12136 "
12137 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12138 ac_have_decl=1
12139 else
12140 ac_have_decl=0
12141 fi
12142
12143 cat >>confdefs.h <<_ACEOF
12144 #define HAVE_DECL_MBSINIT $ac_have_decl
12145 _ACEOF
12146
12147 if test $ac_cv_have_decl_mbsinit = yes; then
12148 REPLACE_MBSINIT=1
12149 fi
12150 else
12151 if test $REPLACE_MBSTATE_T = 1; then
12152 REPLACE_MBSINIT=1
12153 else
12154 case "$host_os" in
12155 mingw*) REPLACE_MBSINIT=1 ;;
12156 esac
12157 fi
12158 fi
12159
12160 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12161
12162
12163
12164
12165
12166
12167
12168
12169 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12170
12171
12172 :
12173
12174 fi
12175
12176
12177
12178
12179
12180 GNULIB_MBSINIT=1
12181
12182
12183
12184
12185
12186 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199 :
12200
12201
12202
12203
12204
12205
12206 :
12207
12208
12209
12210
12211
12212 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12213
12214
12215
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12217 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12218 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221
12222 case "$host_os" in
12223 # Guess no on AIX and OSF/1.
12224 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12225 # Guess yes otherwise.
12226 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12227 esac
12228 if test $LOCALE_JA != none; then
12229 if test "$cross_compiling" = yes; then :
12230 :
12231 else
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234
12235 #include <locale.h>
12236 #include <string.h>
12237 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12238 <wchar.h>.
12239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12240 included before <wchar.h>. */
12241 #include <stddef.h>
12242 #include <stdio.h>
12243 #include <time.h>
12244 #include <wchar.h>
12245 int main ()
12246 {
12247 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12248 {
12249 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12250 mbstate_t state;
12251 wchar_t wc;
12252
12253 memset (&state, '\0', sizeof (mbstate_t));
12254 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12255 if (mbsinit (&state))
12256 return 1;
12257 }
12258 return 0;
12259 }
12260 _ACEOF
12261 if ac_fn_c_try_run "$LINENO"; then :
12262 gl_cv_func_mbrtowc_incomplete_state=yes
12263 else
12264 gl_cv_func_mbrtowc_incomplete_state=no
12265 fi
12266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12267 conftest.$ac_objext conftest.beam conftest.$ac_ext
12268 fi
12269
12270 fi
12271
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12274 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12275
12276
12277
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12280 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12281 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284
12285 case "$host_os" in
12286 # Guess no on Solaris 8.
12287 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12288 # Guess yes otherwise.
12289 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12290 esac
12291 if test $LOCALE_ZH_CN != none; then
12292 if test "$cross_compiling" = yes; then :
12293 :
12294 else
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 #include <locale.h>
12299 #include <stdlib.h>
12300 #include <string.h>
12301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12302 <wchar.h>.
12303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12304 included before <wchar.h>. */
12305 #include <stddef.h>
12306 #include <stdio.h>
12307 #include <time.h>
12308 #include <wchar.h>
12309 int main ()
12310 {
12311 /* This fails on Solaris 8:
12312 mbrtowc returns 2, and sets wc to 0x00F0.
12313 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12314 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12315 {
12316 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12317 mbstate_t state;
12318 wchar_t wc;
12319
12320 memset (&state, '\0', sizeof (mbstate_t));
12321 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12322 && mbtowc (&wc, input + 3, 6) == 4)
12323 return 1;
12324 }
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_run "$LINENO"; then :
12329 gl_cv_func_mbrtowc_sanitycheck=yes
12330 else
12331 gl_cv_func_mbrtowc_sanitycheck=no
12332 fi
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12335 fi
12336
12337 fi
12338
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12341 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12342
12343 REPLACE_MBSTATE_T=0
12344 case "$gl_cv_func_mbrtowc_incomplete_state" in
12345 *yes) ;;
12346 *) REPLACE_MBSTATE_T=1 ;;
12347 esac
12348 case "$gl_cv_func_mbrtowc_sanitycheck" in
12349 *yes) ;;
12350 *) REPLACE_MBSTATE_T=1 ;;
12351 esac
12352 else
12353 REPLACE_MBSTATE_T=1
12354 fi
12355
12356
12357
12358 :
12359
12360
12361
12362
12363
12364 if test $ac_cv_func_mbsrtowcs = no; then
12365 HAVE_MBSRTOWCS=0
12366 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12367 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12368 <wchar.h>.
12369 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12370 included before <wchar.h>. */
12371 #include <stddef.h>
12372 #include <stdio.h>
12373 #include <time.h>
12374 #include <wchar.h>
12375
12376 "
12377 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12378 ac_have_decl=1
12379 else
12380 ac_have_decl=0
12381 fi
12382
12383 cat >>confdefs.h <<_ACEOF
12384 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12385 _ACEOF
12386
12387 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12388 REPLACE_MBSRTOWCS=1
12389 fi
12390 else
12391 if test $REPLACE_MBSTATE_T = 1; then
12392 REPLACE_MBSRTOWCS=1
12393 else
12394
12395
12396
12397
12398
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12401 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12402 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405
12406 case "$host_os" in
12407 # Guess no on HP-UX, Solaris, mingw.
12408 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12409 # Guess yes otherwise.
12410 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12411 esac
12412 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12413 if test "$cross_compiling" = yes; then :
12414 :
12415 else
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418
12419 #include <locale.h>
12420 #include <string.h>
12421 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12422 <wchar.h>.
12423 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12424 included before <wchar.h>. */
12425 #include <stddef.h>
12426 #include <stdio.h>
12427 #include <time.h>
12428 #include <wchar.h>
12429 int main ()
12430 {
12431 int result = 0;
12432 /* Test whether the function supports a NULL destination argument.
12433 This fails on native Windows. */
12434 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12435 {
12436 const char input[] = "\337er";
12437 const char *src = input;
12438 mbstate_t state;
12439
12440 memset (&state, '\0', sizeof (mbstate_t));
12441 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12442 || src != input)
12443 result |= 1;
12444 }
12445 /* Test whether the function works when started with a conversion state
12446 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12447 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12448 {
12449 const char input[] = "B\303\274\303\237er";
12450 mbstate_t state;
12451
12452 memset (&state, '\0', sizeof (mbstate_t));
12453 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12454 if (!mbsinit (&state))
12455 {
12456 const char *src = input + 2;
12457 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12458 result |= 2;
12459 }
12460 }
12461 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12462 {
12463 const char input[] = "<\306\374\313\334\270\354>";
12464 mbstate_t state;
12465
12466 memset (&state, '\0', sizeof (mbstate_t));
12467 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12468 if (!mbsinit (&state))
12469 {
12470 const char *src = input + 4;
12471 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12472 result |= 4;
12473 }
12474 }
12475 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12476 {
12477 const char input[] = "B\250\271\201\060\211\070er";
12478 mbstate_t state;
12479
12480 memset (&state, '\0', sizeof (mbstate_t));
12481 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12482 if (!mbsinit (&state))
12483 {
12484 const char *src = input + 2;
12485 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12486 result |= 8;
12487 }
12488 }
12489 return result;
12490 }
12491 _ACEOF
12492 if ac_fn_c_try_run "$LINENO"; then :
12493 gl_cv_func_mbsrtowcs_works=yes
12494 else
12495 gl_cv_func_mbsrtowcs_works=no
12496 fi
12497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12498 conftest.$ac_objext conftest.beam conftest.$ac_ext
12499 fi
12500
12501 fi
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12505 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12506
12507 case "$gl_cv_func_mbsrtowcs_works" in
12508 *yes) ;;
12509 *) REPLACE_MBSRTOWCS=1 ;;
12510 esac
12511 fi
12512 fi
12513
12514 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
12515
12516
12517
12518
12519
12520
12521
12522
12523 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12534
12535
12536 :
12537
12538 fi
12539
12540
12541
12542
12543
12544 GNULIB_MBSRTOWCS=1
12545
12546
12547
12548
12549
12550 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
12551
12552
12553
12554
12555 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12556
12557
12558
12559
12560
12561
12562
12563
12564 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12565
12566
12567 for ac_header in bp-sym.h
12568 do :
12569 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12570 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_BP_SYM_H 1
12573 _ACEOF
12574
12575 fi
12576
12577 done
12578
12579
12580 fi
12581
12582
12583
12584
12585
12586 GNULIB_MEMCHR=1
12587
12588
12589
12590
12591
12592 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12593
12594
12595
12596
12597
12598 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12600 $as_echo_n "checking whether memmem works in linear time... " >&6; }
12601 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test "$cross_compiling" = yes; then :
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607
12608 #include <features.h>
12609 #ifdef __GNU_LIBRARY__
12610 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12611 && !defined __UCLIBC__
12612 Lucky user
12613 #endif
12614 #endif
12615 #ifdef __CYGWIN__
12616 #include <cygwin/version.h>
12617 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12618 Lucky user
12619 #endif
12620 #endif
12621
12622 _ACEOF
12623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12624 $EGREP "Lucky user" >/dev/null 2>&1; then :
12625 gl_cv_func_memmem_works_fast="guessing yes"
12626 else
12627 gl_cv_func_memmem_works_fast="guessing no"
12628 fi
12629 rm -f conftest*
12630
12631
12632 else
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635
12636 #include <signal.h> /* for signal */
12637 #include <string.h> /* for memmem */
12638 #include <stdlib.h> /* for malloc */
12639 #include <unistd.h> /* for alarm */
12640 static void quit (int sig) { exit (sig + 128); }
12641
12642 int
12643 main ()
12644 {
12645
12646 int result = 0;
12647 size_t m = 1000000;
12648 char *haystack = (char *) malloc (2 * m + 1);
12649 char *needle = (char *) malloc (m + 1);
12650 /* Failure to compile this test due to missing alarm is okay,
12651 since all such platforms (mingw) also lack memmem. */
12652 signal (SIGALRM, quit);
12653 alarm (5);
12654 /* Check for quadratic performance. */
12655 if (haystack && needle)
12656 {
12657 memset (haystack, 'A', 2 * m);
12658 haystack[2 * m] = 'B';
12659 memset (needle, 'A', m);
12660 needle[m] = 'B';
12661 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12662 result |= 1;
12663 }
12664 return result;
12665
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_run "$LINENO"; then :
12671 gl_cv_func_memmem_works_fast=yes
12672 else
12673 gl_cv_func_memmem_works_fast=no
12674 fi
12675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12676 conftest.$ac_objext conftest.beam conftest.$ac_ext
12677 fi
12678
12679
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12682 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
12683 case "$gl_cv_func_memmem_works_fast" in
12684 *yes) ;;
12685 *)
12686 REPLACE_MEMMEM=1
12687 ;;
12688 esac
12689 fi
12690
12691 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12692
12693
12694
12695
12696
12697
12698
12699
12700 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12701
12702 fi
12703
12704
12705
12706
12707 for ac_func in memmem
12708 do :
12709 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12710 if test "x$ac_cv_func_memmem" = x""yes; then :
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_MEMMEM 1
12713 _ACEOF
12714
12715 fi
12716 done
12717
12718 if test $ac_cv_func_memmem = yes; then
12719 HAVE_MEMMEM=1
12720 else
12721 HAVE_MEMMEM=0
12722 fi
12723
12724 :
12725
12726
12727
12728
12729
12730 if test $ac_cv_have_decl_memmem = no; then
12731 HAVE_DECL_MEMMEM=0
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12734 $as_echo_n "checking whether memmem works... " >&6; }
12735 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 if test "$cross_compiling" = yes; then :
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741
12742 #ifdef __GNU_LIBRARY__
12743 #include <features.h>
12744 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12745 || __GLIBC_MINOR__ > 12)) \
12746 || (__GLIBC__ > 2)) \
12747 || defined __UCLIBC__
12748 Lucky user
12749 #endif
12750 #elif defined __CYGWIN__
12751 #include <cygwin/version.h>
12752 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12753 Lucky user
12754 #endif
12755 #else
12756 Lucky user
12757 #endif
12758
12759 _ACEOF
12760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12761 $EGREP "Lucky user" >/dev/null 2>&1; then :
12762 gl_cv_func_memmem_works_always="guessing yes"
12763 else
12764 gl_cv_func_memmem_works_always="guessing no"
12765 fi
12766 rm -f conftest*
12767
12768
12769 else
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772
12773 #include <string.h> /* for memmem */
12774 #define P "_EF_BF_BD"
12775 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12776 #define NEEDLE P P P P P
12777
12778 int
12779 main ()
12780 {
12781
12782 int result = 0;
12783 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12784 result |= 1;
12785 /* Check for empty needle behavior. */
12786 {
12787 const char *haystack = "AAA";
12788 if (memmem (haystack, 3, NULL, 0) != haystack)
12789 result |= 2;
12790 }
12791 return result;
12792
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_run "$LINENO"; then :
12798 gl_cv_func_memmem_works_always=yes
12799 else
12800 gl_cv_func_memmem_works_always=no
12801 fi
12802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12803 conftest.$ac_objext conftest.beam conftest.$ac_ext
12804 fi
12805
12806
12807 fi
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12809 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12810 case "$gl_cv_func_memmem_works_always" in
12811 *yes) ;;
12812 *)
12813 REPLACE_MEMMEM=1
12814 ;;
12815 esac
12816 fi
12817 :
12818
12819 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12820
12821
12822
12823
12824
12825
12826
12827
12828 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12829
12830 fi
12831
12832
12833
12834
12835
12836 GNULIB_MEMMEM=1
12837
12838
12839
12840
12841
12842 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12843
12844
12845
12846
12847
12848
12849
12850 # Define two additional variables used in the Makefile substitution.
12851
12852 if test "$ac_cv_header_stdbool_h" = yes; then
12853 STDBOOL_H=''
12854 else
12855 STDBOOL_H='stdbool.h'
12856 fi
12857
12858 if test -n "$STDBOOL_H"; then
12859 GL_GENERATE_STDBOOL_H_TRUE=
12860 GL_GENERATE_STDBOOL_H_FALSE='#'
12861 else
12862 GL_GENERATE_STDBOOL_H_TRUE='#'
12863 GL_GENERATE_STDBOOL_H_FALSE=
12864 fi
12865
12866
12867 if test "$ac_cv_type__Bool" = yes; then
12868 HAVE__BOOL=1
12869 else
12870 HAVE__BOOL=0
12871 fi
12872
12873
12874
12875
12876
12877 STDDEF_H=
12878 if test $gt_cv_c_wchar_t = no; then
12879 HAVE_WCHAR_T=0
12880 STDDEF_H=stddef.h
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12883 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12884 if test "${gl_cv_decl_null_works+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <stddef.h>
12890 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12891
12892 int
12893 main ()
12894 {
12895
12896 ;
12897 return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901 gl_cv_decl_null_works=yes
12902 else
12903 gl_cv_decl_null_works=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12908 $as_echo "$gl_cv_decl_null_works" >&6; }
12909 if test $gl_cv_decl_null_works = no; then
12910 REPLACE_NULL=1
12911 STDDEF_H=stddef.h
12912 fi
12913
12914 if test -n "$STDDEF_H"; then
12915 GL_GENERATE_STDDEF_H_TRUE=
12916 GL_GENERATE_STDDEF_H_FALSE='#'
12917 else
12918 GL_GENERATE_STDDEF_H_TRUE='#'
12919 GL_GENERATE_STDDEF_H_FALSE=
12920 fi
12921
12922 if test -n "$STDDEF_H"; then
12923
12924
12925
12926
12927
12928
12929
12930
12931 if test $gl_cv_have_include_next = yes; then
12932 gl_cv_next_stddef_h='<'stddef.h'>'
12933 else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12935 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12936 if test "${gl_cv_next_stddef_h+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 #include <stddef.h>
12943
12944 _ACEOF
12945 case "$host_os" in
12946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12947 *) gl_absname_cpp="$ac_cpp" ;;
12948 esac
12949
12950 case "$host_os" in
12951 mingw*)
12952 gl_dirsep_regex='[/\\]'
12953 ;;
12954 *)
12955 gl_dirsep_regex='\/'
12956 ;;
12957 esac
12958 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12959
12960 gl_header_literal_regex=`echo 'stddef.h' \
12961 | sed -e "$gl_make_literal_regex_sed"`
12962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12964 s|^/[^/]|//&|
12965 p
12966 q
12967 }'
12968 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12969 sed -n "$gl_absolute_header_sed"`'"'
12970
12971
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
12974 $as_echo "$gl_cv_next_stddef_h" >&6; }
12975 fi
12976 NEXT_STDDEF_H=$gl_cv_next_stddef_h
12977
12978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12980 gl_next_as_first_directive='<'stddef.h'>'
12981 else
12982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12983 gl_next_as_first_directive=$gl_cv_next_stddef_h
12984 fi
12985 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
12986
12987
12988
12989
12990 fi
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005 :
13006
13007
13008
13009
13010
13011
13012
13013
13014 if test $gl_cv_have_include_next = yes; then
13015 gl_cv_next_wchar_h='<'wchar.h'>'
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13018 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13019 if test "${gl_cv_next_wchar_h+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022
13023 if test $ac_cv_header_wchar_h = yes; then
13024
13025
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 #include <wchar.h>
13029
13030 _ACEOF
13031 case "$host_os" in
13032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13033 *) gl_absname_cpp="$ac_cpp" ;;
13034 esac
13035
13036 case "$host_os" in
13037 mingw*)
13038 gl_dirsep_regex='[/\\]'
13039 ;;
13040 *)
13041 gl_dirsep_regex='\/'
13042 ;;
13043 esac
13044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13045
13046 gl_header_literal_regex=`echo 'wchar.h' \
13047 | sed -e "$gl_make_literal_regex_sed"`
13048 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13049 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13050 s|^/[^/]|//&|
13051 p
13052 q
13053 }'
13054 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13055 sed -n "$gl_absolute_header_sed"`'"'
13056 else
13057 gl_cv_next_wchar_h='<'wchar.h'>'
13058 fi
13059
13060
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13063 $as_echo "$gl_cv_next_wchar_h" >&6; }
13064 fi
13065 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13066
13067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13069 gl_next_as_first_directive='<'wchar.h'>'
13070 else
13071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13072 gl_next_as_first_directive=$gl_cv_next_wchar_h
13073 fi
13074 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13075
13076
13077
13078
13079 if test $ac_cv_header_wchar_h = yes; then
13080 HAVE_WCHAR_H=1
13081 else
13082 HAVE_WCHAR_H=0
13083 fi
13084
13085
13086
13087
13088
13089 if test $gt_cv_c_wint_t = yes; then
13090 HAVE_WINT_T=1
13091 else
13092 HAVE_WINT_T=0
13093 fi
13094
13095
13096
13097 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
13098 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13100 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13101 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106
13107 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13108 <wchar.h>.
13109 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13110 included before <wchar.h>. */
13111 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13112 # include <stddef.h>
13113 # include <stdio.h>
13114 # include <time.h>
13115 #endif
13116 #include <wchar.h>
13117
13118 int
13119 main ()
13120 {
13121 #undef $gl_func
13122 (void) $gl_func;
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_c_try_compile "$LINENO"; then :
13128 eval "$as_gl_Symbol=yes"
13129 else
13130 eval "$as_gl_Symbol=no"
13131 fi
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 fi
13134 eval ac_res=\$$as_gl_Symbol
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13136 $as_echo "$ac_res" >&6; }
13137 eval as_val=\$$as_gl_Symbol
13138 if test "x$as_val" = x""yes; then :
13139 cat >>confdefs.h <<_ACEOF
13140 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13141 _ACEOF
13142
13143 eval ac_cv_have_decl_$gl_func=yes
13144 fi
13145 done
13146
13147
13148
13149
13150
13151
13152
13153 :
13154
13155
13156
13157
13158
13159 if test $ac_cv_func_iswcntrl = yes; then
13160 HAVE_ISWCNTRL=1
13161 else
13162 HAVE_ISWCNTRL=0
13163 fi
13164
13165
13166
13167 if test $gt_cv_c_wint_t = yes; then
13168 HAVE_WINT_T=1
13169 else
13170 HAVE_WINT_T=0
13171 fi
13172
13173
13174
13175
13176
13177
13178
13179
13180 :
13181
13182
13183
13184
13185
13186
13187
13188
13189 if test $gl_cv_have_include_next = yes; then
13190 gl_cv_next_wctype_h='<'wctype.h'>'
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13193 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13194 if test "${gl_cv_next_wctype_h+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197
13198 if test $ac_cv_header_wctype_h = yes; then
13199
13200
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 #include <wctype.h>
13204
13205 _ACEOF
13206 case "$host_os" in
13207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13208 *) gl_absname_cpp="$ac_cpp" ;;
13209 esac
13210
13211 case "$host_os" in
13212 mingw*)
13213 gl_dirsep_regex='[/\\]'
13214 ;;
13215 *)
13216 gl_dirsep_regex='\/'
13217 ;;
13218 esac
13219 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13220
13221 gl_header_literal_regex=`echo 'wctype.h' \
13222 | sed -e "$gl_make_literal_regex_sed"`
13223 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13225 s|^/[^/]|//&|
13226 p
13227 q
13228 }'
13229 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13230 sed -n "$gl_absolute_header_sed"`'"'
13231 else
13232 gl_cv_next_wctype_h='<'wctype.h'>'
13233 fi
13234
13235
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13238 $as_echo "$gl_cv_next_wctype_h" >&6; }
13239 fi
13240 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
13241
13242 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13244 gl_next_as_first_directive='<'wctype.h'>'
13245 else
13246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13247 gl_next_as_first_directive=$gl_cv_next_wctype_h
13248 fi
13249 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13250
13251
13252
13253
13254 if test $ac_cv_header_wctype_h = yes; then
13255 if test $ac_cv_func_iswcntrl = yes; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13257 $as_echo_n "checking whether iswcntrl works... " >&6; }
13258 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261
13262 if test "$cross_compiling" = yes; then :
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265 #include <stdlib.h>
13266 #if __GNU_LIBRARY__ == 1
13267 Linux libc5 i18n is broken.
13268 #endif
13269 int
13270 main ()
13271 {
13272
13273 ;
13274 return 0;
13275 }
13276 _ACEOF
13277 if ac_fn_c_try_compile "$LINENO"; then :
13278 gl_cv_func_iswcntrl_works="guessing yes"
13279 else
13280 gl_cv_func_iswcntrl_works="guessing no"
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283
13284 else
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287
13288 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13289 included before <wchar.h>.
13290 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13291 must be included before <wchar.h>. */
13292 #include <stddef.h>
13293 #include <stdio.h>
13294 #include <time.h>
13295 #include <wchar.h>
13296 #include <wctype.h>
13297 int main () { return iswprint ('x') == 0; }
13298
13299 _ACEOF
13300 if ac_fn_c_try_run "$LINENO"; then :
13301 gl_cv_func_iswcntrl_works=yes
13302 else
13303 gl_cv_func_iswcntrl_works=no
13304 fi
13305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13306 conftest.$ac_objext conftest.beam conftest.$ac_ext
13307 fi
13308
13309
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13312 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13313 fi
13314 HAVE_WCTYPE_H=1
13315 else
13316 HAVE_WCTYPE_H=0
13317 fi
13318
13319
13320 case "$gl_cv_func_iswcntrl_works" in
13321 *yes) REPLACE_ISWCNTRL=0 ;;
13322 *) REPLACE_ISWCNTRL=1 ;;
13323 esac
13324
13325
13326 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13327 :
13328 fi
13329
13330 if test $REPLACE_ISWCNTRL = 1; then
13331 REPLACE_TOWLOWER=1
13332 else
13333 for ac_func in towlower
13334 do :
13335 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13336 if test "x$ac_cv_func_towlower" = x""yes; then :
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_TOWLOWER 1
13339 _ACEOF
13340
13341 fi
13342 done
13343
13344 if test $ac_cv_func_towlower = yes; then
13345 REPLACE_TOWLOWER=0
13346 else
13347 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13348 included before <wchar.h>.
13349 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13350 must be included before <wchar.h>. */
13351 #include <stddef.h>
13352 #include <stdio.h>
13353 #include <time.h>
13354 #include <wchar.h>
13355 #if HAVE_WCTYPE_H
13356 # include <wctype.h>
13357 #endif
13358
13359 "
13360 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13361 ac_have_decl=1
13362 else
13363 ac_have_decl=0
13364 fi
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_DECL_TOWLOWER $ac_have_decl
13368 _ACEOF
13369
13370 if test $ac_cv_have_decl_towlower = yes; then
13371 REPLACE_TOWLOWER=1
13372 else
13373 REPLACE_TOWLOWER=0
13374 fi
13375 fi
13376 fi
13377
13378
13379 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13380 :
13381 fi
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13384 $as_echo_n "checking for wctype_t... " >&6; }
13385 if test "${gl_cv_type_wctype_t+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13391 included before <wchar.h>.
13392 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13393 must be included before <wchar.h>. */
13394 #include <stddef.h>
13395 #include <stdio.h>
13396 #include <time.h>
13397 #include <wchar.h>
13398 #if HAVE_WCTYPE_H
13399 # include <wctype.h>
13400 #endif
13401 wctype_t a;
13402
13403 int
13404 main ()
13405 {
13406
13407 ;
13408 return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_compile "$LINENO"; then :
13412 gl_cv_type_wctype_t=yes
13413 else
13414 gl_cv_type_wctype_t=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417
13418 fi
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13420 $as_echo "$gl_cv_type_wctype_t" >&6; }
13421 if test $gl_cv_type_wctype_t = no; then
13422 HAVE_WCTYPE_T=0
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13426 $as_echo_n "checking for wctrans_t... " >&6; }
13427 if test "${gl_cv_type_wctrans_t+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13433 included before <wchar.h>.
13434 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13435 must be included before <wchar.h>. */
13436 #include <stddef.h>
13437 #include <stdio.h>
13438 #include <time.h>
13439 #include <wchar.h>
13440 #include <wctype.h>
13441 wctrans_t a;
13442
13443 int
13444 main ()
13445 {
13446
13447 ;
13448 return 0;
13449 }
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 gl_cv_type_wctrans_t=yes
13453 else
13454 gl_cv_type_wctrans_t=no
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13460 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13461 if test $gl_cv_type_wctrans_t = no; then
13462 HAVE_WCTRANS_T=0
13463 fi
13464
13465
13466 for gl_func in wctype iswctype wctrans towctrans ; do
13467 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13469 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13470 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475
13476 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13477 <wchar.h>.
13478 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13479 included before <wchar.h>. */
13480 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13481 # include <stddef.h>
13482 # include <stdio.h>
13483 # include <time.h>
13484 # include <wchar.h>
13485 #endif
13486 #include <wctype.h>
13487
13488 int
13489 main ()
13490 {
13491 #undef $gl_func
13492 (void) $gl_func;
13493 ;
13494 return 0;
13495 }
13496 _ACEOF
13497 if ac_fn_c_try_compile "$LINENO"; then :
13498 eval "$as_gl_Symbol=yes"
13499 else
13500 eval "$as_gl_Symbol=no"
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 fi
13504 eval ac_res=\$$as_gl_Symbol
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13506 $as_echo "$ac_res" >&6; }
13507 eval as_val=\$$as_gl_Symbol
13508 if test "x$as_val" = x""yes; then :
13509 cat >>confdefs.h <<_ACEOF
13510 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13511 _ACEOF
13512
13513 eval ac_cv_have_decl_$gl_func=yes
13514 fi
13515 done
13516
13517
13518 # End of code from modules
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 gltests_libdeps=
13529 gltests_ltlibdeps=
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539 gl_source_base='tests'
13540 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
13541
13542 gl_module_indicator_condition=$gltests_WITNESS
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552 LIBGNU_LIBDEPS="$gl_libdeps"
13553
13554 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13555
13556
13557
13558 # We don't use automake, but gnulib does. This line lets us generate
13559 # its Makefile.in.
13560 am__api_version='1.11'
13561
13562 # Find a good install program. We prefer a C program (faster),
13563 # so one script is as good as another. But avoid the broken or
13564 # incompatible versions:
13565 # SysV /etc/install, /usr/sbin/install
13566 # SunOS /usr/etc/install
13567 # IRIX /sbin/install
13568 # AIX /bin/install
13569 # AmigaOS /C/install, which installs bootblocks on floppy discs
13570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13573 # OS/2's system install, which has a completely different semantic
13574 # ./install, which can be erroneously created by make from ./install.sh.
13575 # Reject install programs that cannot install multiple files.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13578 if test -z "$INSTALL"; then
13579 if test "${ac_cv_path_install+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 # Account for people who put trailing slashes in PATH elements.
13588 case $as_dir/ in #((
13589 ./ | .// | /[cC]/* | \
13590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13592 /usr/ucb/* ) ;;
13593 *)
13594 # OSF1 and SCO ODT 3.0 have their own names for install.
13595 # Don't use installbsd from OSF since it installs stuff as root
13596 # by default.
13597 for ac_prog in ginstall scoinst install; do
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13600 if test $ac_prog = install &&
13601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13602 # AIX install. It has an incompatible calling convention.
13603 :
13604 elif test $ac_prog = install &&
13605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13606 # program-specific install script used by HP pwplus--don't use.
13607 :
13608 else
13609 rm -rf conftest.one conftest.two conftest.dir
13610 echo one > conftest.one
13611 echo two > conftest.two
13612 mkdir conftest.dir
13613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13614 test -s conftest.one && test -s conftest.two &&
13615 test -s conftest.dir/conftest.one &&
13616 test -s conftest.dir/conftest.two
13617 then
13618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13619 break 3
13620 fi
13621 fi
13622 fi
13623 done
13624 done
13625 ;;
13626 esac
13627
13628 done
13629 IFS=$as_save_IFS
13630
13631 rm -rf conftest.one conftest.two conftest.dir
13632
13633 fi
13634 if test "${ac_cv_path_install+set}" = set; then
13635 INSTALL=$ac_cv_path_install
13636 else
13637 # As a last resort, use the slow shell script. Don't cache a
13638 # value for INSTALL within a source directory, because that will
13639 # break other packages using the cache if that directory is
13640 # removed, or if the value is a relative name.
13641 INSTALL=$ac_install_sh
13642 fi
13643 fi
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13645 $as_echo "$INSTALL" >&6; }
13646
13647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13648 # It thinks the first close brace ends the variable substitution.
13649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13650
13651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13652
13653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13654
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13656 $as_echo_n "checking whether build environment is sane... " >&6; }
13657 # Just in case
13658 sleep 1
13659 echo timestamp > conftest.file
13660 # Reject unsafe characters in $srcdir or the absolute working directory
13661 # name. Accept space and tab only in the latter.
13662 am_lf='
13663 '
13664 case `pwd` in
13665 *[\\\"\#\$\&\'\`$am_lf]*)
13666 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
13667 esac
13668 case $srcdir in
13669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13670 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13671 esac
13672
13673 # Do `set' in a subshell so we don't clobber the current shell's
13674 # arguments. Must try -L first in case configure is actually a
13675 # symlink; some systems play weird games with the mod time of symlinks
13676 # (eg FreeBSD returns the mod time of the symlink's containing
13677 # directory).
13678 if (
13679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13680 if test "$*" = "X"; then
13681 # -L didn't work.
13682 set X `ls -t "$srcdir/configure" conftest.file`
13683 fi
13684 rm -f conftest.file
13685 if test "$*" != "X $srcdir/configure conftest.file" \
13686 && test "$*" != "X conftest.file $srcdir/configure"; then
13687
13688 # If neither matched, then we have a broken ls. This can happen
13689 # if, for instance, CONFIG_SHELL is bash and it inherits a
13690 # broken ls alias from the environment. This has actually
13691 # happened. Such a system could not be considered "sane".
13692 as_fn_error "ls -t appears to fail. Make sure there is not a broken
13693 alias in your environment" "$LINENO" 5
13694 fi
13695
13696 test "$2" = conftest.file
13697 )
13698 then
13699 # Ok.
13700 :
13701 else
13702 as_fn_error "newly created file is older than distributed files!
13703 Check your system clock" "$LINENO" 5
13704 fi
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13706 $as_echo "yes" >&6; }
13707 test "$program_prefix" != NONE &&
13708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13709 # Use a double $ so make ignores it.
13710 test "$program_suffix" != NONE &&
13711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13712 # Double any \ or $.
13713 # By default was `s,x,x', remove it if useless.
13714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13716
13717 # expand $ac_aux_dir to an absolute path
13718 am_aux_dir=`cd $ac_aux_dir && pwd`
13719
13720 if test x"${MISSING+set}" != xset; then
13721 case $am_aux_dir in
13722 *\ * | *\ *)
13723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13724 *)
13725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13726 esac
13727 fi
13728 # Use eval to expand $SHELL
13729 if eval "$MISSING --run true"; then
13730 am_missing_run="$MISSING --run "
13731 else
13732 am_missing_run=
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13735 fi
13736
13737 if test x"${install_sh}" != xset; then
13738 case $am_aux_dir in
13739 *\ * | *\ *)
13740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13741 *)
13742 install_sh="\${SHELL} $am_aux_dir/install-sh"
13743 esac
13744 fi
13745
13746 # Installed binaries are usually stripped using `strip' when the user
13747 # run `make install-strip'. However `strip' might not be the right
13748 # tool to use in cross-compilation environments, therefore Automake
13749 # will honor the `STRIP' environment variable to overrule this program.
13750 if test "$cross_compiling" != no; then
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13753 set dummy ${ac_tool_prefix}strip; ac_word=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if test "${ac_cv_prog_STRIP+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 if test -n "$STRIP"; then
13760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13761 else
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13764 do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13772 fi
13773 done
13774 done
13775 IFS=$as_save_IFS
13776
13777 fi
13778 fi
13779 STRIP=$ac_cv_prog_STRIP
13780 if test -n "$STRIP"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13782 $as_echo "$STRIP" >&6; }
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13786 fi
13787
13788
13789 fi
13790 if test -z "$ac_cv_prog_STRIP"; then
13791 ac_ct_STRIP=$STRIP
13792 # Extract the first word of "strip", so it can be a program name with args.
13793 set dummy strip; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 if test -n "$ac_ct_STRIP"; then
13800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13801 else
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13804 do
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_ac_ct_STRIP="strip"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13812 fi
13813 done
13814 done
13815 IFS=$as_save_IFS
13816
13817 fi
13818 fi
13819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13820 if test -n "$ac_ct_STRIP"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13822 $as_echo "$ac_ct_STRIP" >&6; }
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826 fi
13827
13828 if test "x$ac_ct_STRIP" = x; then
13829 STRIP=":"
13830 else
13831 case $cross_compiling:$ac_tool_warned in
13832 yes:)
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13835 ac_tool_warned=yes ;;
13836 esac
13837 STRIP=$ac_ct_STRIP
13838 fi
13839 else
13840 STRIP="$ac_cv_prog_STRIP"
13841 fi
13842
13843 fi
13844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13848 if test -z "$MKDIR_P"; then
13849 if test "${ac_cv_path_mkdir+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13854 do
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_prog in mkdir gmkdir; do
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
13860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13861 'mkdir (GNU coreutils) '* | \
13862 'mkdir (coreutils) '* | \
13863 'mkdir (fileutils) '4.1*)
13864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13865 break 3;;
13866 esac
13867 done
13868 done
13869 done
13870 IFS=$as_save_IFS
13871
13872 fi
13873
13874 if test "${ac_cv_path_mkdir+set}" = set; then
13875 MKDIR_P="$ac_cv_path_mkdir -p"
13876 else
13877 # As a last resort, use the slow shell script. Don't cache a
13878 # value for MKDIR_P within a source directory, because that will
13879 # break other packages using the cache if that directory is
13880 # removed, or if the value is a relative name.
13881 test -d ./--version && rmdir ./--version
13882 MKDIR_P="$ac_install_sh -d"
13883 fi
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13886 $as_echo "$MKDIR_P" >&6; }
13887
13888
13889 mkdir_p="$MKDIR_P"
13890 case $mkdir_p in
13891 [\\/$]* | ?:[\\/]*) ;;
13892 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
13893 esac
13894
13895 for ac_prog in gawk mawk nawk awk
13896 do
13897 # Extract the first word of "$ac_prog", so it can be a program name with args.
13898 set dummy $ac_prog; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if test "${ac_cv_prog_AWK+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 if test -n "$AWK"; then
13905 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13906 else
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13909 do
13910 IFS=$as_save_IFS
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13914 ac_cv_prog_AWK="$ac_prog"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 break 2
13917 fi
13918 done
13919 done
13920 IFS=$as_save_IFS
13921
13922 fi
13923 fi
13924 AWK=$ac_cv_prog_AWK
13925 if test -n "$AWK"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13927 $as_echo "$AWK" >&6; }
13928 else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13931 fi
13932
13933
13934 test -n "$AWK" && break
13935 done
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13938 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13939 set x ${MAKE-make}
13940 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13941 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 cat >conftest.make <<\_ACEOF
13945 SHELL = /bin/sh
13946 all:
13947 @echo '@@@%%%=$(MAKE)=@@@%%%'
13948 _ACEOF
13949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13951 *@@@%%%=?*=@@@%%%*)
13952 eval ac_cv_prog_make_${ac_make}_set=yes;;
13953 *)
13954 eval ac_cv_prog_make_${ac_make}_set=no;;
13955 esac
13956 rm -f conftest.make
13957 fi
13958 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960 $as_echo "yes" >&6; }
13961 SET_MAKE=
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13965 SET_MAKE="MAKE=${MAKE-make}"
13966 fi
13967
13968 rm -rf .tst 2>/dev/null
13969 mkdir .tst 2>/dev/null
13970 if test -d .tst; then
13971 am__leading_dot=.
13972 else
13973 am__leading_dot=_
13974 fi
13975 rmdir .tst 2>/dev/null
13976
13977 DEPDIR="${am__leading_dot}deps"
13978
13979 ac_config_commands="$ac_config_commands depfiles"
13980
13981
13982 am_make=${MAKE-make}
13983 cat > confinc << 'END'
13984 am__doit:
13985 @echo this is the am__doit target
13986 .PHONY: am__doit
13987 END
13988 # If we don't find an include directive, just comment out the code.
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13991 am__include="#"
13992 am__quote=
13993 _am_result=none
13994 # First try GNU make style include.
13995 echo "include confinc" > confmf
13996 # Ignore all kinds of additional output from `make'.
13997 case `$am_make -s -f confmf 2> /dev/null` in #(
13998 *the\ am__doit\ target*)
13999 am__include=include
14000 am__quote=
14001 _am_result=GNU
14002 ;;
14003 esac
14004 # Now try BSD make style include.
14005 if test "$am__include" = "#"; then
14006 echo '.include "confinc"' > confmf
14007 case `$am_make -s -f confmf 2> /dev/null` in #(
14008 *the\ am__doit\ target*)
14009 am__include=.include
14010 am__quote="\""
14011 _am_result=BSD
14012 ;;
14013 esac
14014 fi
14015
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14018 $as_echo "$_am_result" >&6; }
14019 rm -f confinc confmf
14020
14021 # Check whether --enable-dependency-tracking was given.
14022 if test "${enable_dependency_tracking+set}" = set; then :
14023 enableval=$enable_dependency_tracking;
14024 fi
14025
14026 if test "x$enable_dependency_tracking" != xno; then
14027 am_depcomp="$ac_aux_dir/depcomp"
14028 AMDEPBACKSLASH='\'
14029 fi
14030 if test "x$enable_dependency_tracking" != xno; then
14031 AMDEP_TRUE=
14032 AMDEP_FALSE='#'
14033 else
14034 AMDEP_TRUE='#'
14035 AMDEP_FALSE=
14036 fi
14037
14038
14039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14041 # is not polluted with repeated "-I."
14042 am__isrc=' -I$(srcdir)'
14043 # test to see if srcdir already configured
14044 if test -f $srcdir/config.status; then
14045 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14046 fi
14047 fi
14048
14049 # test whether we have cygpath
14050 if test -z "$CYGPATH_W"; then
14051 if (cygpath --version) >/dev/null 2>/dev/null; then
14052 CYGPATH_W='cygpath -w'
14053 else
14054 CYGPATH_W=echo
14055 fi
14056 fi
14057
14058
14059 # Define the identity of the package.
14060 PACKAGE=libgnu
14061 VERSION=UNUSED-VERSION
14062
14063
14064 # Some tools Automake needs.
14065
14066 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14067
14068
14069 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14070
14071
14072 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14073
14074
14075 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14076
14077
14078 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14079
14080 # We need awk for the "check" target. The system "awk" is bad on
14081 # some platforms.
14082 # Always define AMTAR for backward compatibility.
14083
14084 AMTAR=${AMTAR-"${am_missing_run}tar"}
14085
14086 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
14087
14088
14089
14090
14091 depcc="$CC" am_compiler_list=
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14094 $as_echo_n "checking dependency style of $depcc... " >&6; }
14095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14099 # We make a subdir and do the tests there. Otherwise we can end up
14100 # making bogus files that we don't know about and never remove. For
14101 # instance it was reported that on HP-UX the gcc test will end up
14102 # making a dummy file named `D' -- because `-MD' means `put the output
14103 # in D'.
14104 mkdir conftest.dir
14105 # Copy depcomp to subdir because otherwise we won't find it if we're
14106 # using a relative directory.
14107 cp "$am_depcomp" conftest.dir
14108 cd conftest.dir
14109 # We will build objects and dependencies in a subdirectory because
14110 # it helps to detect inapplicable dependency modes. For instance
14111 # both Tru64's cc and ICC support -MD to output dependencies as a
14112 # side effect of compilation, but ICC will put the dependencies in
14113 # the current directory while Tru64 will put them in the object
14114 # directory.
14115 mkdir sub
14116
14117 am_cv_CC_dependencies_compiler_type=none
14118 if test "$am_compiler_list" = ""; then
14119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14120 fi
14121 am__universal=false
14122 case " $depcc " in #(
14123 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14124 esac
14125
14126 for depmode in $am_compiler_list; do
14127 # Setup a source with many dependencies, because some compilers
14128 # like to wrap large dependency lists on column 80 (with \), and
14129 # we should not choose a depcomp mode which is confused by this.
14130 #
14131 # We need to recreate these files for each test, as the compiler may
14132 # overwrite some of them when testing with obscure command lines.
14133 # This happens at least with the AIX C compiler.
14134 : > sub/conftest.c
14135 for i in 1 2 3 4 5 6; do
14136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14138 # Solaris 8's {/usr,}/bin/sh.
14139 touch sub/conftst$i.h
14140 done
14141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14142
14143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14144 # mode. It turns out that the SunPro C++ compiler does not properly
14145 # handle `-M -o', and we need to detect this. Also, some Intel
14146 # versions had trouble with output in subdirs
14147 am__obj=sub/conftest.${OBJEXT-o}
14148 am__minus_obj="-o $am__obj"
14149 case $depmode in
14150 gcc)
14151 # This depmode causes a compiler race in universal mode.
14152 test "$am__universal" = false || continue
14153 ;;
14154 nosideeffect)
14155 # after this tag, mechanisms are not by side-effect, so they'll
14156 # only be used when explicitly requested
14157 if test "x$enable_dependency_tracking" = xyes; then
14158 continue
14159 else
14160 break
14161 fi
14162 ;;
14163 msvisualcpp | msvcmsys)
14164 # This compiler won't grok `-c -o', but also, the minuso test has
14165 # not run yet. These depmodes are late enough in the game, and
14166 # so weak that their functioning should not be impacted.
14167 am__obj=conftest.${OBJEXT-o}
14168 am__minus_obj=
14169 ;;
14170 none) break ;;
14171 esac
14172 if depmode=$depmode \
14173 source=sub/conftest.c object=$am__obj \
14174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14175 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14176 >/dev/null 2>conftest.err &&
14177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14179 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14181 # icc doesn't choke on unknown options, it will just issue warnings
14182 # or remarks (even with -Werror). So we grep stderr for any message
14183 # that says an option was ignored or not supported.
14184 # When given -MP, icc 7.0 and 7.1 complain thusly:
14185 # icc: Command line warning: ignoring option '-M'; no argument required
14186 # The diagnosis changed in icc 8.0:
14187 # icc: Command line remark: option '-MP' not supported
14188 if (grep 'ignoring option' conftest.err ||
14189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14190 am_cv_CC_dependencies_compiler_type=$depmode
14191 break
14192 fi
14193 fi
14194 done
14195
14196 cd ..
14197 rm -rf conftest.dir
14198 else
14199 am_cv_CC_dependencies_compiler_type=none
14200 fi
14201
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14204 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14206
14207 if
14208 test "x$enable_dependency_tracking" != xno \
14209 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14210 am__fastdepCC_TRUE=
14211 am__fastdepCC_FALSE='#'
14212 else
14213 am__fastdepCC_TRUE='#'
14214 am__fastdepCC_FALSE=
14215 fi
14216
14217
14218
14219
14220 # --------------------- #
14221 # Checks for programs. #
14222 # --------------------- #
14223
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14226 $as_echo_n "checking whether ln -s works... " >&6; }
14227 LN_S=$as_ln_s
14228 if test "$LN_S" = "ln -s"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230 $as_echo "yes" >&6; }
14231 else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14233 $as_echo "no, using $LN_S" >&6; }
14234 fi
14235
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_prog_RANLIB+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244 if test -n "$RANLIB"; then
14245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14249 do
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14257 fi
14258 done
14259 done
14260 IFS=$as_save_IFS
14261
14262 fi
14263 fi
14264 RANLIB=$ac_cv_prog_RANLIB
14265 if test -n "$RANLIB"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14267 $as_echo "$RANLIB" >&6; }
14268 else
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14271 fi
14272
14273
14274 fi
14275 if test -z "$ac_cv_prog_RANLIB"; then
14276 ac_ct_RANLIB=$RANLIB
14277 # Extract the first word of "ranlib", so it can be a program name with args.
14278 set dummy ranlib; ac_word=$2
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 if test -n "$ac_ct_RANLIB"; then
14285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14286 else
14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14289 do
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14294 ac_cv_prog_ac_ct_RANLIB="ranlib"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 break 2
14297 fi
14298 done
14299 done
14300 IFS=$as_save_IFS
14301
14302 fi
14303 fi
14304 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14305 if test -n "$ac_ct_RANLIB"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14307 $as_echo "$ac_ct_RANLIB" >&6; }
14308 else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14311 fi
14312
14313 if test "x$ac_ct_RANLIB" = x; then
14314 RANLIB=":"
14315 else
14316 case $cross_compiling:$ac_tool_warned in
14317 yes:)
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14320 ac_tool_warned=yes ;;
14321 esac
14322 RANLIB=$ac_ct_RANLIB
14323 fi
14324 else
14325 RANLIB="$ac_cv_prog_RANLIB"
14326 fi
14327
14328
14329 if test -n "$ac_tool_prefix"; then
14330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14331 set dummy ${ac_tool_prefix}ar; ac_word=$2
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333 $as_echo_n "checking for $ac_word... " >&6; }
14334 if test "${ac_cv_prog_AR+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14336 else
14337 if test -n "$AR"; then
14338 ac_cv_prog_AR="$AR" # Let the user override the test.
14339 else
14340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341 for as_dir in $PATH
14342 do
14343 IFS=$as_save_IFS
14344 test -z "$as_dir" && as_dir=.
14345 for ac_exec_ext in '' $ac_executable_extensions; do
14346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14347 ac_cv_prog_AR="${ac_tool_prefix}ar"
14348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14349 break 2
14350 fi
14351 done
14352 done
14353 IFS=$as_save_IFS
14354
14355 fi
14356 fi
14357 AR=$ac_cv_prog_AR
14358 if test -n "$AR"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14360 $as_echo "$AR" >&6; }
14361 else
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363 $as_echo "no" >&6; }
14364 fi
14365
14366
14367 fi
14368 if test -z "$ac_cv_prog_AR"; then
14369 ac_ct_AR=$AR
14370 # Extract the first word of "ar", so it can be a program name with args.
14371 set dummy ar; ac_word=$2
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373 $as_echo_n "checking for $ac_word... " >&6; }
14374 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 if test -n "$ac_ct_AR"; then
14378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14379 else
14380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14381 for as_dir in $PATH
14382 do
14383 IFS=$as_save_IFS
14384 test -z "$as_dir" && as_dir=.
14385 for ac_exec_ext in '' $ac_executable_extensions; do
14386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14387 ac_cv_prog_ac_ct_AR="ar"
14388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14389 break 2
14390 fi
14391 done
14392 done
14393 IFS=$as_save_IFS
14394
14395 fi
14396 fi
14397 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14398 if test -n "$ac_ct_AR"; then
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14400 $as_echo "$ac_ct_AR" >&6; }
14401 else
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403 $as_echo "no" >&6; }
14404 fi
14405
14406 if test "x$ac_ct_AR" = x; then
14407 AR=""
14408 else
14409 case $cross_compiling:$ac_tool_warned in
14410 yes:)
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14413 ac_tool_warned=yes ;;
14414 esac
14415 AR=$ac_ct_AR
14416 fi
14417 else
14418 AR="$ac_cv_prog_AR"
14419 fi
14420
14421
14422 # ---------------------- #
14423 # Checks for libraries. #
14424 # ---------------------- #
14425
14426 ac_config_files="$ac_config_files Makefile import/Makefile"
14427
14428 ac_config_commands="$ac_config_commands default"
14429
14430 cat >confcache <<\_ACEOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs, see configure's option --config-cache.
14434 # It is not useful on other systems. If it contains results you don't
14435 # want to keep, you may remove or edit it.
14436 #
14437 # config.status only pays attention to the cache file if you give it
14438 # the --recheck option to rerun configure.
14439 #
14440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14442 # following values.
14443
14444 _ACEOF
14445
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, we kill variables containing newlines.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14451 (
14452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453 eval ac_val=\$$ac_var
14454 case $ac_val in #(
14455 *${as_nl}*)
14456 case $ac_var in #(
14457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14459 esac
14460 case $ac_var in #(
14461 _ | IFS | as_nl) ;; #(
14462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14463 *) { eval $ac_var=; unset $ac_var;} ;;
14464 esac ;;
14465 esac
14466 done
14467
14468 (set) 2>&1 |
14469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470 *${as_nl}ac_space=\ *)
14471 # `set' does not quote correctly, so add quotes: double-quote
14472 # substitution turns \\\\ into \\, and sed turns \\ into \.
14473 sed -n \
14474 "s/'/'\\\\''/g;
14475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14476 ;; #(
14477 *)
14478 # `set' quotes correctly as required by POSIX, so do not add quotes.
14479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14480 ;;
14481 esac |
14482 sort
14483 ) |
14484 sed '
14485 /^ac_cv_env_/b end
14486 t clear
14487 :clear
14488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14489 t end
14490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14491 :end' >>confcache
14492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14493 if test -w "$cache_file"; then
14494 test "x$cache_file" != "x/dev/null" &&
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14496 $as_echo "$as_me: updating cache $cache_file" >&6;}
14497 cat confcache >$cache_file
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14501 fi
14502 fi
14503 rm -f confcache
14504
14505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14506 # Let make expand exec_prefix.
14507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14508
14509 DEFS=-DHAVE_CONFIG_H
14510
14511 ac_libobjs=
14512 ac_ltlibobjs=
14513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14514 # 1. Remove the extension, and $U if already installed.
14515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14518 # will be set to the directory where LIBOBJS objects are built.
14519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14521 done
14522 LIBOBJS=$ac_libobjs
14523
14524 LTLIBOBJS=$ac_ltlibobjs
14525
14526
14527 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14528 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14530 fi
14531 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14532 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14534 fi
14535 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14536 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14538 fi
14539 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14540 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14542 fi
14543 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14544 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14546 fi
14547 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14548 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
14549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14550 fi
14551
14552
14553 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14554 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14556 fi
14557 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14558 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14560 fi
14561
14562 gl_libobjs=
14563 gl_ltlibobjs=
14564 if test -n "$gl_LIBOBJS"; then
14565 # Remove the extension.
14566 sed_drop_objext='s/\.o$//;s/\.obj$//'
14567 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14568 gl_libobjs="$gl_libobjs $i.$ac_objext"
14569 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14570 done
14571 fi
14572 gl_LIBOBJS=$gl_libobjs
14573
14574 gl_LTLIBOBJS=$gl_ltlibobjs
14575
14576
14577
14578 gltests_libobjs=
14579 gltests_ltlibobjs=
14580 if test -n "$gltests_LIBOBJS"; then
14581 # Remove the extension.
14582 sed_drop_objext='s/\.o$//;s/\.obj$//'
14583 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14584 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14585 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14586 done
14587 fi
14588 gltests_LIBOBJS=$gltests_libobjs
14589
14590 gltests_LTLIBOBJS=$gltests_ltlibobjs
14591
14592
14593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14594 as_fn_error "conditional \"AMDEP\" was never defined.
14595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14596 fi
14597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14598 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14600 fi
14601 if test -n "$EXEEXT"; then
14602 am__EXEEXT_TRUE=
14603 am__EXEEXT_FALSE='#'
14604 else
14605 am__EXEEXT_TRUE='#'
14606 am__EXEEXT_FALSE=
14607 fi
14608
14609
14610 : ${CONFIG_STATUS=./config.status}
14611 ac_write_fail=0
14612 ac_clean_files_save=$ac_clean_files
14613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14616 as_write_fail=0
14617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14618 #! $SHELL
14619 # Generated by $as_me.
14620 # Run this file to recreate the current configuration.
14621 # Compiler output produced by configure, useful for debugging
14622 # configure, is in config.log if it exists.
14623
14624 debug=false
14625 ac_cs_recheck=false
14626 ac_cs_silent=false
14627
14628 SHELL=\${CONFIG_SHELL-$SHELL}
14629 export SHELL
14630 _ASEOF
14631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14632 ## -------------------- ##
14633 ## M4sh Initialization. ##
14634 ## -------------------- ##
14635
14636 # Be more Bourne compatible
14637 DUALCASE=1; export DUALCASE # for MKS sh
14638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14639 emulate sh
14640 NULLCMD=:
14641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14642 # is contrary to our usage. Disable this feature.
14643 alias -g '${1+"$@"}'='"$@"'
14644 setopt NO_GLOB_SUBST
14645 else
14646 case `(set -o) 2>/dev/null` in #(
14647 *posix*) :
14648 set -o posix ;; #(
14649 *) :
14650 ;;
14651 esac
14652 fi
14653
14654
14655 as_nl='
14656 '
14657 export as_nl
14658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14659 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14662 # Prefer a ksh shell builtin over an external printf program on Solaris,
14663 # but without wasting forks for bash or zsh.
14664 if test -z "$BASH_VERSION$ZSH_VERSION" \
14665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14666 as_echo='print -r --'
14667 as_echo_n='print -rn --'
14668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14669 as_echo='printf %s\n'
14670 as_echo_n='printf %s'
14671 else
14672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14673 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14674 as_echo_n='/usr/ucb/echo -n'
14675 else
14676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14677 as_echo_n_body='eval
14678 arg=$1;
14679 case $arg in #(
14680 *"$as_nl"*)
14681 expr "X$arg" : "X\\(.*\\)$as_nl";
14682 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14683 esac;
14684 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14685 '
14686 export as_echo_n_body
14687 as_echo_n='sh -c $as_echo_n_body as_echo'
14688 fi
14689 export as_echo_body
14690 as_echo='sh -c $as_echo_body as_echo'
14691 fi
14692
14693 # The user is always right.
14694 if test "${PATH_SEPARATOR+set}" != set; then
14695 PATH_SEPARATOR=:
14696 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14697 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14698 PATH_SEPARATOR=';'
14699 }
14700 fi
14701
14702
14703 # IFS
14704 # We need space, tab and new line, in precisely that order. Quoting is
14705 # there to prevent editors from complaining about space-tab.
14706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14707 # splitting by setting IFS to empty value.)
14708 IFS=" "" $as_nl"
14709
14710 # Find who we are. Look in the path if we contain no directory separator.
14711 case $0 in #((
14712 *[\\/]* ) as_myself=$0 ;;
14713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14715 do
14716 IFS=$as_save_IFS
14717 test -z "$as_dir" && as_dir=.
14718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14719 done
14720 IFS=$as_save_IFS
14721
14722 ;;
14723 esac
14724 # We did not find ourselves, most probably we were run as `sh COMMAND'
14725 # in which case we are not to be found in the path.
14726 if test "x$as_myself" = x; then
14727 as_myself=$0
14728 fi
14729 if test ! -f "$as_myself"; then
14730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14731 exit 1
14732 fi
14733
14734 # Unset variables that we do not need and which cause bugs (e.g. in
14735 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14736 # suppresses any "Segmentation fault" message there. '((' could
14737 # trigger a bug in pdksh 5.2.14.
14738 for as_var in BASH_ENV ENV MAIL MAILPATH
14739 do eval test x\${$as_var+set} = xset \
14740 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14741 done
14742 PS1='$ '
14743 PS2='> '
14744 PS4='+ '
14745
14746 # NLS nuisances.
14747 LC_ALL=C
14748 export LC_ALL
14749 LANGUAGE=C
14750 export LANGUAGE
14751
14752 # CDPATH.
14753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14754
14755
14756 # as_fn_error ERROR [LINENO LOG_FD]
14757 # ---------------------------------
14758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14760 # script with status $?, using 1 if that was 0.
14761 as_fn_error ()
14762 {
14763 as_status=$?; test $as_status -eq 0 && as_status=1
14764 if test "$3"; then
14765 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14767 fi
14768 $as_echo "$as_me: error: $1" >&2
14769 as_fn_exit $as_status
14770 } # as_fn_error
14771
14772
14773 # as_fn_set_status STATUS
14774 # -----------------------
14775 # Set $? to STATUS, without forking.
14776 as_fn_set_status ()
14777 {
14778 return $1
14779 } # as_fn_set_status
14780
14781 # as_fn_exit STATUS
14782 # -----------------
14783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14784 as_fn_exit ()
14785 {
14786 set +e
14787 as_fn_set_status $1
14788 exit $1
14789 } # as_fn_exit
14790
14791 # as_fn_unset VAR
14792 # ---------------
14793 # Portably unset VAR.
14794 as_fn_unset ()
14795 {
14796 { eval $1=; unset $1;}
14797 }
14798 as_unset=as_fn_unset
14799 # as_fn_append VAR VALUE
14800 # ----------------------
14801 # Append the text in VALUE to the end of the definition contained in VAR. Take
14802 # advantage of any shell optimizations that allow amortized linear growth over
14803 # repeated appends, instead of the typical quadratic growth present in naive
14804 # implementations.
14805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14806 eval 'as_fn_append ()
14807 {
14808 eval $1+=\$2
14809 }'
14810 else
14811 as_fn_append ()
14812 {
14813 eval $1=\$$1\$2
14814 }
14815 fi # as_fn_append
14816
14817 # as_fn_arith ARG...
14818 # ------------------
14819 # Perform arithmetic evaluation on the ARGs, and store the result in the
14820 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14821 # must be portable across $(()) and expr.
14822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14823 eval 'as_fn_arith ()
14824 {
14825 as_val=$(( $* ))
14826 }'
14827 else
14828 as_fn_arith ()
14829 {
14830 as_val=`expr "$@" || test $? -eq 1`
14831 }
14832 fi # as_fn_arith
14833
14834
14835 if expr a : '\(a\)' >/dev/null 2>&1 &&
14836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14837 as_expr=expr
14838 else
14839 as_expr=false
14840 fi
14841
14842 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14843 as_basename=basename
14844 else
14845 as_basename=false
14846 fi
14847
14848 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14849 as_dirname=dirname
14850 else
14851 as_dirname=false
14852 fi
14853
14854 as_me=`$as_basename -- "$0" ||
14855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14856 X"$0" : 'X\(//\)$' \| \
14857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14858 $as_echo X/"$0" |
14859 sed '/^.*\/\([^/][^/]*\)\/*$/{
14860 s//\1/
14861 q
14862 }
14863 /^X\/\(\/\/\)$/{
14864 s//\1/
14865 q
14866 }
14867 /^X\/\(\/\).*/{
14868 s//\1/
14869 q
14870 }
14871 s/.*/./; q'`
14872
14873 # Avoid depending upon Character Ranges.
14874 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14875 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14876 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14877 as_cr_digits='0123456789'
14878 as_cr_alnum=$as_cr_Letters$as_cr_digits
14879
14880 ECHO_C= ECHO_N= ECHO_T=
14881 case `echo -n x` in #(((((
14882 -n*)
14883 case `echo 'xy\c'` in
14884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14885 xy) ECHO_C='\c';;
14886 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14887 ECHO_T=' ';;
14888 esac;;
14889 *)
14890 ECHO_N='-n';;
14891 esac
14892
14893 rm -f conf$$ conf$$.exe conf$$.file
14894 if test -d conf$$.dir; then
14895 rm -f conf$$.dir/conf$$.file
14896 else
14897 rm -f conf$$.dir
14898 mkdir conf$$.dir 2>/dev/null
14899 fi
14900 if (echo >conf$$.file) 2>/dev/null; then
14901 if ln -s conf$$.file conf$$ 2>/dev/null; then
14902 as_ln_s='ln -s'
14903 # ... but there are two gotchas:
14904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14906 # In both cases, we have to default to `cp -p'.
14907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14908 as_ln_s='cp -p'
14909 elif ln conf$$.file conf$$ 2>/dev/null; then
14910 as_ln_s=ln
14911 else
14912 as_ln_s='cp -p'
14913 fi
14914 else
14915 as_ln_s='cp -p'
14916 fi
14917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14918 rmdir conf$$.dir 2>/dev/null
14919
14920
14921 # as_fn_mkdir_p
14922 # -------------
14923 # Create "$as_dir" as a directory, including parents if necessary.
14924 as_fn_mkdir_p ()
14925 {
14926
14927 case $as_dir in #(
14928 -*) as_dir=./$as_dir;;
14929 esac
14930 test -d "$as_dir" || eval $as_mkdir_p || {
14931 as_dirs=
14932 while :; do
14933 case $as_dir in #(
14934 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14935 *) as_qdir=$as_dir;;
14936 esac
14937 as_dirs="'$as_qdir' $as_dirs"
14938 as_dir=`$as_dirname -- "$as_dir" ||
14939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14940 X"$as_dir" : 'X\(//\)[^/]' \| \
14941 X"$as_dir" : 'X\(//\)$' \| \
14942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14943 $as_echo X"$as_dir" |
14944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\/\)[^/].*/{
14949 s//\1/
14950 q
14951 }
14952 /^X\(\/\/\)$/{
14953 s//\1/
14954 q
14955 }
14956 /^X\(\/\).*/{
14957 s//\1/
14958 q
14959 }
14960 s/.*/./; q'`
14961 test -d "$as_dir" && break
14962 done
14963 test -z "$as_dirs" || eval "mkdir $as_dirs"
14964 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14965
14966
14967 } # as_fn_mkdir_p
14968 if mkdir -p . 2>/dev/null; then
14969 as_mkdir_p='mkdir -p "$as_dir"'
14970 else
14971 test -d ./-p && rmdir ./-p
14972 as_mkdir_p=false
14973 fi
14974
14975 if test -x / >/dev/null 2>&1; then
14976 as_test_x='test -x'
14977 else
14978 if ls -dL / >/dev/null 2>&1; then
14979 as_ls_L_option=L
14980 else
14981 as_ls_L_option=
14982 fi
14983 as_test_x='
14984 eval sh -c '\''
14985 if test -d "$1"; then
14986 test -d "$1/.";
14987 else
14988 case $1 in #(
14989 -*)set "./$1";;
14990 esac;
14991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14992 ???[sx]*):;;*)false;;esac;fi
14993 '\'' sh
14994 '
14995 fi
14996 as_executable_p=$as_test_x
14997
14998 # Sed expression to map a string onto a valid CPP name.
14999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15000
15001 # Sed expression to map a string onto a valid variable name.
15002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15003
15004
15005 exec 6>&1
15006 ## ----------------------------------- ##
15007 ## Main body of $CONFIG_STATUS script. ##
15008 ## ----------------------------------- ##
15009 _ASEOF
15010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15011
15012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15013 # Save the log message, to keep $0 and so on meaningful, and to
15014 # report actual input values of CONFIG_FILES etc. instead of their
15015 # values after options handling.
15016 ac_log="
15017 This file was extended by $as_me, which was
15018 generated by GNU Autoconf 2.64. Invocation command line was
15019
15020 CONFIG_FILES = $CONFIG_FILES
15021 CONFIG_HEADERS = $CONFIG_HEADERS
15022 CONFIG_LINKS = $CONFIG_LINKS
15023 CONFIG_COMMANDS = $CONFIG_COMMANDS
15024 $ $0 $@
15025
15026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15027 "
15028
15029 _ACEOF
15030
15031 case $ac_config_files in *"
15032 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15033 esac
15034
15035 case $ac_config_headers in *"
15036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15037 esac
15038
15039
15040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041 # Files that config.status was made for.
15042 config_files="$ac_config_files"
15043 config_headers="$ac_config_headers"
15044 config_commands="$ac_config_commands"
15045
15046 _ACEOF
15047
15048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049 ac_cs_usage="\
15050 \`$as_me' instantiates files and other configuration actions
15051 from templates according to the current configuration. Unless the files
15052 and actions are specified as TAGs, all are instantiated by default.
15053
15054 Usage: $0 [OPTION]... [TAG]...
15055
15056 -h, --help print this help, then exit
15057 -V, --version print version number and configuration settings, then exit
15058 -q, --quiet, --silent
15059 do not print progress messages
15060 -d, --debug don't remove temporary files
15061 --recheck update $as_me by reconfiguring in the same conditions
15062 --file=FILE[:TEMPLATE]
15063 instantiate the configuration file FILE
15064 --header=FILE[:TEMPLATE]
15065 instantiate the configuration header FILE
15066
15067 Configuration files:
15068 $config_files
15069
15070 Configuration headers:
15071 $config_headers
15072
15073 Configuration commands:
15074 $config_commands
15075
15076 Report bugs to the package provider."
15077
15078 _ACEOF
15079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15080 ac_cs_version="\\
15081 config.status
15082 configured by $0, generated by GNU Autoconf 2.64,
15083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15084
15085 Copyright (C) 2009 Free Software Foundation, Inc.
15086 This config.status script is free software; the Free Software Foundation
15087 gives unlimited permission to copy, distribute and modify it."
15088
15089 ac_pwd='$ac_pwd'
15090 srcdir='$srcdir'
15091 INSTALL='$INSTALL'
15092 MKDIR_P='$MKDIR_P'
15093 AWK='$AWK'
15094 test -n "\$AWK" || AWK=awk
15095 _ACEOF
15096
15097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15098 # The default lists apply if the user does not specify any file.
15099 ac_need_defaults=:
15100 while test $# != 0
15101 do
15102 case $1 in
15103 --*=*)
15104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15106 ac_shift=:
15107 ;;
15108 *)
15109 ac_option=$1
15110 ac_optarg=$2
15111 ac_shift=shift
15112 ;;
15113 esac
15114
15115 case $ac_option in
15116 # Handling of the options.
15117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15118 ac_cs_recheck=: ;;
15119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15120 $as_echo "$ac_cs_version"; exit ;;
15121 --debug | --debu | --deb | --de | --d | -d )
15122 debug=: ;;
15123 --file | --fil | --fi | --f )
15124 $ac_shift
15125 case $ac_optarg in
15126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15127 esac
15128 as_fn_append CONFIG_FILES " '$ac_optarg'"
15129 ac_need_defaults=false;;
15130 --header | --heade | --head | --hea )
15131 $ac_shift
15132 case $ac_optarg in
15133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15134 esac
15135 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15136 ac_need_defaults=false;;
15137 --he | --h)
15138 # Conflict between --help and --header
15139 as_fn_error "ambiguous option: \`$1'
15140 Try \`$0 --help' for more information.";;
15141 --help | --hel | -h )
15142 $as_echo "$ac_cs_usage"; exit ;;
15143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15145 ac_cs_silent=: ;;
15146
15147 # This is an error.
15148 -*) as_fn_error "unrecognized option: \`$1'
15149 Try \`$0 --help' for more information." ;;
15150
15151 *) as_fn_append ac_config_targets " $1"
15152 ac_need_defaults=false ;;
15153
15154 esac
15155 shift
15156 done
15157
15158 ac_configure_extra_args=
15159
15160 if $ac_cs_silent; then
15161 exec 6>/dev/null
15162 ac_configure_extra_args="$ac_configure_extra_args --silent"
15163 fi
15164
15165 _ACEOF
15166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167 if \$ac_cs_recheck; then
15168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15169 shift
15170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15171 CONFIG_SHELL='$SHELL'
15172 export CONFIG_SHELL
15173 exec "\$@"
15174 fi
15175
15176 _ACEOF
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178 exec 5>>config.log
15179 {
15180 echo
15181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15182 ## Running $as_me. ##
15183 _ASBOX
15184 $as_echo "$ac_log"
15185 } >&5
15186
15187 _ACEOF
15188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15189 #
15190 # INIT-COMMANDS
15191 #
15192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15193
15194 _ACEOF
15195
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197
15198 # Handling of arguments.
15199 for ac_config_target in $ac_config_targets
15200 do
15201 case $ac_config_target in
15202 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15205 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
15206 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15207
15208 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15209 esac
15210 done
15211
15212
15213 # If the user did not use the arguments to specify the items to instantiate,
15214 # then the envvar interface is used. Set only those that are not.
15215 # We use the long form for the default assignment because of an extremely
15216 # bizarre bug on SunOS 4.1.3.
15217 if $ac_need_defaults; then
15218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15221 fi
15222
15223 # Have a temporary directory for convenience. Make it in the build tree
15224 # simply because there is no reason against having it here, and in addition,
15225 # creating and moving files from /tmp can sometimes cause problems.
15226 # Hook for its removal unless debugging.
15227 # Note that there is a small window in which the directory will not be cleaned:
15228 # after its creation but before its name has been assigned to `$tmp'.
15229 $debug ||
15230 {
15231 tmp=
15232 trap 'exit_status=$?
15233 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15234 ' 0
15235 trap 'as_fn_exit 1' 1 2 13 15
15236 }
15237 # Create a (secure) tmp directory for tmp files.
15238
15239 {
15240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15241 test -n "$tmp" && test -d "$tmp"
15242 } ||
15243 {
15244 tmp=./conf$$-$RANDOM
15245 (umask 077 && mkdir "$tmp")
15246 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15247
15248 # Set up the scripts for CONFIG_FILES section.
15249 # No need to generate them if there are no CONFIG_FILES.
15250 # This happens for instance with `./config.status config.h'.
15251 if test -n "$CONFIG_FILES"; then
15252
15253
15254 ac_cr=`echo X | tr X '\015'`
15255 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15256 # But we know of no other shell where ac_cr would be empty at this
15257 # point, so we can use a bashism as a fallback.
15258 if test "x$ac_cr" = x; then
15259 eval ac_cr=\$\'\\r\'
15260 fi
15261 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15262 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15263 ac_cs_awk_cr='\r'
15264 else
15265 ac_cs_awk_cr=$ac_cr
15266 fi
15267
15268 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15269 _ACEOF
15270
15271
15272 {
15273 echo "cat >conf$$subs.awk <<_ACEOF" &&
15274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15275 echo "_ACEOF"
15276 } >conf$$subs.sh ||
15277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15278 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15279 ac_delim='%!_!# '
15280 for ac_last_try in false false false false false :; do
15281 . ./conf$$subs.sh ||
15282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15283
15284 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15285 if test $ac_delim_n = $ac_delim_num; then
15286 break
15287 elif $ac_last_try; then
15288 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15289 else
15290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15291 fi
15292 done
15293 rm -f conf$$subs.sh
15294
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15297 _ACEOF
15298 sed -n '
15299 h
15300 s/^/S["/; s/!.*/"]=/
15301 p
15302 g
15303 s/^[^!]*!//
15304 :repl
15305 t repl
15306 s/'"$ac_delim"'$//
15307 t delim
15308 :nl
15309 h
15310 s/\(.\{148\}\).*/\1/
15311 t more1
15312 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15313 p
15314 n
15315 b repl
15316 :more1
15317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15318 p
15319 g
15320 s/.\{148\}//
15321 t nl
15322 :delim
15323 h
15324 s/\(.\{148\}\).*/\1/
15325 t more2
15326 s/["\\]/\\&/g; s/^/"/; s/$/"/
15327 p
15328 b
15329 :more2
15330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15331 p
15332 g
15333 s/.\{148\}//
15334 t delim
15335 ' <conf$$subs.awk | sed '
15336 /^[^""]/{
15337 N
15338 s/\n//
15339 }
15340 ' >>$CONFIG_STATUS || ac_write_fail=1
15341 rm -f conf$$subs.awk
15342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15343 _ACAWK
15344 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15345 for (key in S) S_is_set[key] = 1
15346 FS = "\a"
15347
15348 }
15349 {
15350 line = $ 0
15351 nfields = split(line, field, "@")
15352 substed = 0
15353 len = length(field[1])
15354 for (i = 2; i < nfields; i++) {
15355 key = field[i]
15356 keylen = length(key)
15357 if (S_is_set[key]) {
15358 value = S[key]
15359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15360 len += length(value) + length(field[++i])
15361 substed = 1
15362 } else
15363 len += 1 + keylen
15364 }
15365
15366 print line
15367 }
15368
15369 _ACAWK
15370 _ACEOF
15371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15374 else
15375 cat
15376 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15377 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15378 _ACEOF
15379
15380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15382 # trailing colons and then remove the whole line if VPATH becomes empty
15383 # (actually we leave an empty line to preserve line numbers).
15384 if test "x$srcdir" = x.; then
15385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15386 s/:*\$(srcdir):*/:/
15387 s/:*\${srcdir}:*/:/
15388 s/:*@srcdir@:*/:/
15389 s/^\([^=]*=[ ]*\):*/\1/
15390 s/:*$//
15391 s/^[^=]*=[ ]*$//
15392 }'
15393 fi
15394
15395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396 fi # test -n "$CONFIG_FILES"
15397
15398 # Set up the scripts for CONFIG_HEADERS section.
15399 # No need to generate them if there are no CONFIG_HEADERS.
15400 # This happens for instance with `./config.status Makefile'.
15401 if test -n "$CONFIG_HEADERS"; then
15402 cat >"$tmp/defines.awk" <<\_ACAWK ||
15403 BEGIN {
15404 _ACEOF
15405
15406 # Transform confdefs.h into an awk script `defines.awk', embedded as
15407 # here-document in config.status, that substitutes the proper values into
15408 # config.h.in to produce config.h.
15409
15410 # Create a delimiter string that does not exist in confdefs.h, to ease
15411 # handling of long lines.
15412 ac_delim='%!_!# '
15413 for ac_last_try in false false :; do
15414 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15415 if test -z "$ac_t"; then
15416 break
15417 elif $ac_last_try; then
15418 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15419 else
15420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15421 fi
15422 done
15423
15424 # For the awk script, D is an array of macro values keyed by name,
15425 # likewise P contains macro parameters if any. Preserve backslash
15426 # newline sequences.
15427
15428 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15429 sed -n '
15430 s/.\{148\}/&'"$ac_delim"'/g
15431 t rset
15432 :rset
15433 s/^[ ]*#[ ]*define[ ][ ]*/ /
15434 t def
15435 d
15436 :def
15437 s/\\$//
15438 t bsnl
15439 s/["\\]/\\&/g
15440 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15441 D["\1"]=" \3"/p
15442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15443 d
15444 :bsnl
15445 s/["\\]/\\&/g
15446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15447 D["\1"]=" \3\\\\\\n"\\/p
15448 t cont
15449 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15450 t cont
15451 d
15452 :cont
15453 n
15454 s/.\{148\}/&'"$ac_delim"'/g
15455 t clear
15456 :clear
15457 s/\\$//
15458 t bsnlc
15459 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15460 d
15461 :bsnlc
15462 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15463 b cont
15464 ' <confdefs.h | sed '
15465 s/'"$ac_delim"'/"\\\
15466 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15467
15468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15469 for (key in D) D_is_set[key] = 1
15470 FS = "\a"
15471 }
15472 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15473 line = \$ 0
15474 split(line, arg, " ")
15475 if (arg[1] == "#") {
15476 defundef = arg[2]
15477 mac1 = arg[3]
15478 } else {
15479 defundef = substr(arg[1], 2)
15480 mac1 = arg[2]
15481 }
15482 split(mac1, mac2, "(") #)
15483 macro = mac2[1]
15484 prefix = substr(line, 1, index(line, defundef) - 1)
15485 if (D_is_set[macro]) {
15486 # Preserve the white space surrounding the "#".
15487 print prefix "define", macro P[macro] D[macro]
15488 next
15489 } else {
15490 # Replace #undef with comments. This is necessary, for example,
15491 # in the case of _POSIX_SOURCE, which is predefined and required
15492 # on some systems where configure will not decide to define it.
15493 if (defundef == "undef") {
15494 print "/*", prefix defundef, macro, "*/"
15495 next
15496 }
15497 }
15498 }
15499 { print }
15500 _ACAWK
15501 _ACEOF
15502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15503 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15504 fi # test -n "$CONFIG_HEADERS"
15505
15506
15507 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15508 shift
15509 for ac_tag
15510 do
15511 case $ac_tag in
15512 :[FHLC]) ac_mode=$ac_tag; continue;;
15513 esac
15514 case $ac_mode$ac_tag in
15515 :[FHL]*:*);;
15516 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15517 :[FH]-) ac_tag=-:-;;
15518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15519 esac
15520 ac_save_IFS=$IFS
15521 IFS=:
15522 set x $ac_tag
15523 IFS=$ac_save_IFS
15524 shift
15525 ac_file=$1
15526 shift
15527
15528 case $ac_mode in
15529 :L) ac_source=$1;;
15530 :[FH])
15531 ac_file_inputs=
15532 for ac_f
15533 do
15534 case $ac_f in
15535 -) ac_f="$tmp/stdin";;
15536 *) # Look for the file first in the build tree, then in the source tree
15537 # (if the path is not absolute). The absolute path cannot be DOS-style,
15538 # because $ac_f cannot contain `:'.
15539 test -f "$ac_f" ||
15540 case $ac_f in
15541 [\\/$]*) false;;
15542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15543 esac ||
15544 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15545 esac
15546 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15547 as_fn_append ac_file_inputs " '$ac_f'"
15548 done
15549
15550 # Let's still pretend it is `configure' which instantiates (i.e., don't
15551 # use $as_me), people would be surprised to read:
15552 # /* config.h. Generated by config.status. */
15553 configure_input='Generated from '`
15554 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15555 `' by configure.'
15556 if test x"$ac_file" != x-; then
15557 configure_input="$ac_file. $configure_input"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15559 $as_echo "$as_me: creating $ac_file" >&6;}
15560 fi
15561 # Neutralize special characters interpreted by sed in replacement strings.
15562 case $configure_input in #(
15563 *\&* | *\|* | *\\* )
15564 ac_sed_conf_input=`$as_echo "$configure_input" |
15565 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15566 *) ac_sed_conf_input=$configure_input;;
15567 esac
15568
15569 case $ac_tag in
15570 *:-:* | *:-) cat >"$tmp/stdin" \
15571 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15572 esac
15573 ;;
15574 esac
15575
15576 ac_dir=`$as_dirname -- "$ac_file" ||
15577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15578 X"$ac_file" : 'X\(//\)[^/]' \| \
15579 X"$ac_file" : 'X\(//\)$' \| \
15580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15581 $as_echo X"$ac_file" |
15582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15583 s//\1/
15584 q
15585 }
15586 /^X\(\/\/\)[^/].*/{
15587 s//\1/
15588 q
15589 }
15590 /^X\(\/\/\)$/{
15591 s//\1/
15592 q
15593 }
15594 /^X\(\/\).*/{
15595 s//\1/
15596 q
15597 }
15598 s/.*/./; q'`
15599 as_dir="$ac_dir"; as_fn_mkdir_p
15600 ac_builddir=.
15601
15602 case "$ac_dir" in
15603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15604 *)
15605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15606 # A ".." for each directory in $ac_dir_suffix.
15607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15608 case $ac_top_builddir_sub in
15609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15611 esac ;;
15612 esac
15613 ac_abs_top_builddir=$ac_pwd
15614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15615 # for backward compatibility:
15616 ac_top_builddir=$ac_top_build_prefix
15617
15618 case $srcdir in
15619 .) # We are building in place.
15620 ac_srcdir=.
15621 ac_top_srcdir=$ac_top_builddir_sub
15622 ac_abs_top_srcdir=$ac_pwd ;;
15623 [\\/]* | ?:[\\/]* ) # Absolute name.
15624 ac_srcdir=$srcdir$ac_dir_suffix;
15625 ac_top_srcdir=$srcdir
15626 ac_abs_top_srcdir=$srcdir ;;
15627 *) # Relative name.
15628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15629 ac_top_srcdir=$ac_top_build_prefix$srcdir
15630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15631 esac
15632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15633
15634
15635 case $ac_mode in
15636 :F)
15637 #
15638 # CONFIG_FILE
15639 #
15640
15641 case $INSTALL in
15642 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15643 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15644 esac
15645 ac_MKDIR_P=$MKDIR_P
15646 case $MKDIR_P in
15647 [\\/$]* | ?:[\\/]* ) ;;
15648 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15649 esac
15650 _ACEOF
15651
15652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15653 # If the template does not know about datarootdir, expand it.
15654 # FIXME: This hack should be removed a few years after 2.60.
15655 ac_datarootdir_hack=; ac_datarootdir_seen=
15656 ac_sed_dataroot='
15657 /datarootdir/ {
15658 p
15659 q
15660 }
15661 /@datadir@/p
15662 /@docdir@/p
15663 /@infodir@/p
15664 /@localedir@/p
15665 /@mandir@/p'
15666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15667 *datarootdir*) ac_datarootdir_seen=yes;;
15668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15670 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15671 _ACEOF
15672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 ac_datarootdir_hack='
15674 s&@datadir@&$datadir&g
15675 s&@docdir@&$docdir&g
15676 s&@infodir@&$infodir&g
15677 s&@localedir@&$localedir&g
15678 s&@mandir@&$mandir&g
15679 s&\\\${datarootdir}&$datarootdir&g' ;;
15680 esac
15681 _ACEOF
15682
15683 # Neutralize VPATH when `$srcdir' = `.'.
15684 # Shell code in configure.ac might set extrasub.
15685 # FIXME: do we really want to maintain this feature?
15686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687 ac_sed_extra="$ac_vpsub
15688 $extrasub
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 :t
15692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15693 s|@configure_input@|$ac_sed_conf_input|;t t
15694 s&@top_builddir@&$ac_top_builddir_sub&;t t
15695 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15696 s&@srcdir@&$ac_srcdir&;t t
15697 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15698 s&@top_srcdir@&$ac_top_srcdir&;t t
15699 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15700 s&@builddir@&$ac_builddir&;t t
15701 s&@abs_builddir@&$ac_abs_builddir&;t t
15702 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15703 s&@INSTALL@&$ac_INSTALL&;t t
15704 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15705 $ac_datarootdir_hack
15706 "
15707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15708 || as_fn_error "could not create $ac_file" "$LINENO" 5
15709
15710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15711 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15714 which seems to be undefined. Please make sure it is defined." >&5
15715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15716 which seems to be undefined. Please make sure it is defined." >&2;}
15717
15718 rm -f "$tmp/stdin"
15719 case $ac_file in
15720 -) cat "$tmp/out" && rm -f "$tmp/out";;
15721 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15722 esac \
15723 || as_fn_error "could not create $ac_file" "$LINENO" 5
15724 ;;
15725 :H)
15726 #
15727 # CONFIG_HEADER
15728 #
15729 if test x"$ac_file" != x-; then
15730 {
15731 $as_echo "/* $configure_input */" \
15732 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15733 } >"$tmp/config.h" \
15734 || as_fn_error "could not create $ac_file" "$LINENO" 5
15735 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15737 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15738 else
15739 rm -f "$ac_file"
15740 mv "$tmp/config.h" "$ac_file" \
15741 || as_fn_error "could not create $ac_file" "$LINENO" 5
15742 fi
15743 else
15744 $as_echo "/* $configure_input */" \
15745 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15746 || as_fn_error "could not create -" "$LINENO" 5
15747 fi
15748 # Compute "$ac_file"'s index in $config_headers.
15749 _am_arg="$ac_file"
15750 _am_stamp_count=1
15751 for _am_header in $config_headers :; do
15752 case $_am_header in
15753 $_am_arg | $_am_arg:* )
15754 break ;;
15755 * )
15756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15757 esac
15758 done
15759 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15760 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15761 X"$_am_arg" : 'X\(//\)[^/]' \| \
15762 X"$_am_arg" : 'X\(//\)$' \| \
15763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15764 $as_echo X"$_am_arg" |
15765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15766 s//\1/
15767 q
15768 }
15769 /^X\(\/\/\)[^/].*/{
15770 s//\1/
15771 q
15772 }
15773 /^X\(\/\/\)$/{
15774 s//\1/
15775 q
15776 }
15777 /^X\(\/\).*/{
15778 s//\1/
15779 q
15780 }
15781 s/.*/./; q'`/stamp-h$_am_stamp_count
15782 ;;
15783
15784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15785 $as_echo "$as_me: executing $ac_file commands" >&6;}
15786 ;;
15787 esac
15788
15789
15790 case $ac_file$ac_mode in
15791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15792 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15793 # are listed without --file. Let's play safe and only enable the eval
15794 # if we detect the quoting.
15795 case $CONFIG_FILES in
15796 *\'*) eval set x "$CONFIG_FILES" ;;
15797 *) set x $CONFIG_FILES ;;
15798 esac
15799 shift
15800 for mf
15801 do
15802 # Strip MF so we end up with the name of the file.
15803 mf=`echo "$mf" | sed -e 's/:.*$//'`
15804 # Check whether this is an Automake generated Makefile or not.
15805 # We used to match only the files named `Makefile.in', but
15806 # some people rename them; so instead we look at the file content.
15807 # Grep'ing the first line is not enough: some people post-process
15808 # each Makefile.in and add a new line on top of each file to say so.
15809 # Grep'ing the whole file is not good either: AIX grep has a line
15810 # limit of 2048, but all sed's we know have understand at least 4000.
15811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15812 dirpart=`$as_dirname -- "$mf" ||
15813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15814 X"$mf" : 'X\(//\)[^/]' \| \
15815 X"$mf" : 'X\(//\)$' \| \
15816 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15817 $as_echo X"$mf" |
15818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15819 s//\1/
15820 q
15821 }
15822 /^X\(\/\/\)[^/].*/{
15823 s//\1/
15824 q
15825 }
15826 /^X\(\/\/\)$/{
15827 s//\1/
15828 q
15829 }
15830 /^X\(\/\).*/{
15831 s//\1/
15832 q
15833 }
15834 s/.*/./; q'`
15835 else
15836 continue
15837 fi
15838 # Extract the definition of DEPDIR, am__include, and am__quote
15839 # from the Makefile without running `make'.
15840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15841 test -z "$DEPDIR" && continue
15842 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15843 test -z "am__include" && continue
15844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15845 # When using ansi2knr, U may be empty or an underscore; expand it
15846 U=`sed -n 's/^U = //p' < "$mf"`
15847 # Find all dependency output files, they are included files with
15848 # $(DEPDIR) in their names. We invoke sed twice because it is the
15849 # simplest approach to changing $(DEPDIR) to its actual value in the
15850 # expansion.
15851 for file in `sed -n "
15852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15854 # Make sure the directory exists.
15855 test -f "$dirpart/$file" && continue
15856 fdir=`$as_dirname -- "$file" ||
15857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15858 X"$file" : 'X\(//\)[^/]' \| \
15859 X"$file" : 'X\(//\)$' \| \
15860 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15861 $as_echo X"$file" |
15862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15863 s//\1/
15864 q
15865 }
15866 /^X\(\/\/\)[^/].*/{
15867 s//\1/
15868 q
15869 }
15870 /^X\(\/\/\)$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\(\/\).*/{
15875 s//\1/
15876 q
15877 }
15878 s/.*/./; q'`
15879 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15880 # echo "creating $dirpart/$file"
15881 echo '# dummy' > "$dirpart/$file"
15882 done
15883 done
15884 }
15885 ;;
15886 "default":C)
15887 case x$CONFIG_HEADERS in
15888 xconfig.h:config.in)
15889 echo > stamp-h ;;
15890 esac
15891 ;;
15892
15893 esac
15894 done # for ac_tag
15895
15896
15897 as_fn_exit 0
15898 _ACEOF
15899 ac_clean_files=$ac_clean_files_save
15900
15901 test $ac_write_fail = 0 ||
15902 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15903
15904
15905 # configure is writing to config.log, and then calls config.status.
15906 # config.status does its own redirection, appending to config.log.
15907 # Unfortunately, on DOS this fails, as config.log is still kept open
15908 # by configure, so config.status won't be able to write to it; its
15909 # output is simply discarded. So we exec the FD to /dev/null,
15910 # effectively closing config.log, so it can be properly (re)opened and
15911 # appended to by config.status. When coming back to configure, we
15912 # need to make the FD available again.
15913 if test "$no_create" != yes; then
15914 ac_cs_success=:
15915 ac_config_status_args=
15916 test "$silent" = yes &&
15917 ac_config_status_args="$ac_config_status_args --quiet"
15918 exec 5>/dev/null
15919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15920 exec 5>>config.log
15921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15922 # would make configure fail if this is the last instruction.
15923 $ac_cs_success || as_fn_exit $?
15924 fi
15925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15927 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15928 fi
15929
15930
15931 exit 0
This page took 0.496319 seconds and 4 git commands to generate.