Upgraded GRUB2 to 2.00 release.
[AROS.git] / arch / all-pc / boot / grub2-aros / configure
blobfa40d6e909b1144ce311de6a3d58b19eaaf6a5db
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GRUB 2.00.
5 # Report bugs to <bug-grub@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='GRUB'
562 PACKAGE_TARNAME='grub'
563 PACKAGE_VERSION='2.00'
564 PACKAGE_STRING='GRUB 2.00'
565 PACKAGE_BUGREPORT='bug-grub@gnu.org'
566 PACKAGE_URL=''
568 ac_unique_file="include/grub/dl.h"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 gt_needs=
606 ac_func_list=
607 ac_header_list=
608 gl_fnmatch_required=POSIX
609 gl_getopt_required=POSIX
610 gl_getopt_required=POSIX
611 ac_subst_vars='gltests_LTLIBOBJS
612 gltests_LIBOBJS
613 gl_LTLIBOBJS
614 gl_LIBOBJS
615 am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 COND_STARFIELD_FALSE
620 COND_STARFIELD_TRUE
621 COND_CYGWIN_FALSE
622 COND_CYGWIN_TRUE
623 COND_HAVE_ASM_USCORE_FALSE
624 COND_HAVE_ASM_USCORE_TRUE
625 COND_ENABLE_CACHE_STATS_FALSE
626 COND_ENABLE_CACHE_STATS_TRUE
627 COND_ENABLE_EFIEMU_FALSE
628 COND_ENABLE_EFIEMU_TRUE
629 COND_APPLE_CC_FALSE
630 COND_APPLE_CC_TRUE
631 COND_GRUB_PE2ELF_FALSE
632 COND_GRUB_PE2ELF_TRUE
633 COND_HAVE_FONT_SOURCE_FALSE
634 COND_HAVE_FONT_SOURCE_TRUE
635 COND_GRUB_MOUNT_FALSE
636 COND_GRUB_MOUNT_TRUE
637 COND_GRUB_MKFONT_FALSE
638 COND_GRUB_MKFONT_TRUE
639 COND_GRUB_EMU_PCI_FALSE
640 COND_GRUB_EMU_PCI_TRUE
641 COND_GRUB_EMU_SDL_FALSE
642 COND_GRUB_EMU_SDL_TRUE
643 COND_GRUB_EMU_USB_FALSE
644 COND_GRUB_EMU_USB_TRUE
645 COND_MAN_PAGES_FALSE
646 COND_MAN_PAGES_TRUE
647 COND_HOST_ILLUMOS_FALSE
648 COND_HOST_ILLUMOS_TRUE
649 COND_HOST_XNU_FALSE
650 COND_HOST_XNU_TRUE
651 COND_HOST_KFREEBSD_FALSE
652 COND_HOST_KFREEBSD_TRUE
653 COND_HOST_WINDOWS_FALSE
654 COND_HOST_WINDOWS_TRUE
655 COND_HOST_NETBSD_FALSE
656 COND_HOST_NETBSD_TRUE
657 COND_HOST_LINUX_FALSE
658 COND_HOST_LINUX_TRUE
659 COND_HOST_HURD_FALSE
660 COND_HOST_HURD_TRUE
661 COND_mipseb_FALSE
662 COND_mipseb_TRUE
663 COND_mipsel_FALSE
664 COND_mipsel_TRUE
665 COND_mips_FALSE
666 COND_mips_TRUE
667 COND_powerpc_ieee1275_FALSE
668 COND_powerpc_ieee1275_TRUE
669 COND_sparc64_ieee1275_FALSE
670 COND_sparc64_ieee1275_TRUE
671 COND_mips_arc_FALSE
672 COND_mips_arc_TRUE
673 COND_mips_qemu_mips_FALSE
674 COND_mips_qemu_mips_TRUE
675 COND_mips_loongson_FALSE
676 COND_mips_loongson_TRUE
677 COND_x86_64_efi_FALSE
678 COND_x86_64_efi_TRUE
679 COND_i386_multiboot_FALSE
680 COND_i386_multiboot_TRUE
681 COND_i386_coreboot_FALSE
682 COND_i386_coreboot_TRUE
683 COND_i386_ieee1275_FALSE
684 COND_i386_ieee1275_TRUE
685 COND_i386_qemu_FALSE
686 COND_i386_qemu_TRUE
687 COND_ia64_efi_FALSE
688 COND_ia64_efi_TRUE
689 COND_i386_efi_FALSE
690 COND_i386_efi_TRUE
691 COND_i386_pc_FALSE
692 COND_i386_pc_TRUE
693 COND_emu_FALSE
694 COND_emu_TRUE
695 NEED_REGISTER_FRAME_INFO
696 NEED_ENABLE_EXECUTE_STACK
697 END_SYMBOL
698 BSS_START_SYMBOL
699 DATA32
700 ADDR32
701 HAVE_ASM_USCORE
702 USE_APPLE_CC_FIXES
703 GRUB_BOOT_MACHINE_LINK_ADDR
704 LIBNVPAIR
705 LIBZFS
706 LIBLZMA
707 LIBGEOM
708 LIBDEVMAPPER
709 enable_grub_mount
710 DJVU_FONT_SOURCE
711 freetype_libs
712 freetype_cflags
713 enable_grub_mkfont
714 FREETYPE
715 enable_grub_emu_pci
716 enable_grub_emu_usb
717 enable_grub_emu_sdl
718 LIBPCIACCESS
719 LIBSDL
720 LIBUSB
721 LIBCURSES
722 DISK_CACHE_STATS
723 HOST_CCASFLAGS
724 HOST_CPPFLAGS
725 HOST_LDFLAGS
726 HOST_CFLAGS
727 TARGET_IMG_BASE_LDOPT
728 TARGET_IMG_CFLAGS
729 TARGET_IMG_LDFLAGS
730 TARGET_IMG_LDSCRIPT
731 TARGET_CCASFLAGS
732 TARGET_CPPFLAGS
733 TARGET_LDFLAGS
734 TARGET_CFLAGS
735 TARGET_MODULE_FORMAT
736 TARGET_APPLE_CC
737 TARGET_OBJ2ELF
738 TARGET_CCAS
739 TARGET_CPP
740 GRUB_PLATFORM
741 GRUB_TARGET_CPU
742 enable_efiemu
743 TARGET_LDFLAGS_OLDMAGIC
744 OBJCONV
745 HOST_CC
746 TARGET_NM
747 TARGET_STRIP
748 TARGET_RANLIB
750 OBJCOPY
751 ac_ct_TARGET_CC
752 TARGET_CC
753 LIBGNU_LTLIBDEPS
754 LIBGNU_LIBDEPS
755 gltests_WITNESS
756 REPLACE_ISWCNTRL
757 HAVE_WCTYPE_H
758 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
759 NEXT_WCTYPE_H
760 REPLACE_ISWBLANK
761 HAVE_ISWBLANK
762 HAVE_ISWCNTRL
763 HAVE_WINT_T
764 HAVE_WCHAR_H
765 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
766 NEXT_WCHAR_H
767 HAVE_UNISTD_H
768 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
769 NEXT_UNISTD_H
770 SYSEXITS_H
771 HAVE_SYSEXITS_H
772 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
773 NEXT_SYSEXITS_H
774 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
775 NEXT_SYS_WAIT_H
776 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
777 NEXT_STRINGS_H
778 NEXT_AS_FIRST_DIRECTIVE_STRING_H
779 NEXT_STRING_H
780 HAVE_DECL_STRNCASECMP
781 HAVE_STRCASECMP
782 HAVE_RANDOM_H
783 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
784 NEXT_STDLIB_H
785 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
786 NEXT_STDIO_H
787 ASM_SYMBOL_PREFIX
788 STDINT_H
789 WINT_T_SUFFIX
790 WCHAR_T_SUFFIX
791 SIG_ATOMIC_T_SUFFIX
792 SIZE_T_SUFFIX
793 PTRDIFF_T_SUFFIX
794 HAVE_SIGNED_WINT_T
795 HAVE_SIGNED_WCHAR_T
796 HAVE_SIGNED_SIG_ATOMIC_T
797 BITSIZEOF_WINT_T
798 BITSIZEOF_WCHAR_T
799 BITSIZEOF_SIG_ATOMIC_T
800 BITSIZEOF_SIZE_T
801 BITSIZEOF_PTRDIFF_T
802 HAVE_SYS_BITYPES_H
803 HAVE_SYS_INTTYPES_H
804 HAVE_STDINT_H
805 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
806 NEXT_STDINT_H
807 HAVE_SYS_TYPES_H
808 HAVE_INTTYPES_H
809 HAVE_UNSIGNED_LONG_LONG_INT
810 HAVE_LONG_LONG_INT
811 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
812 NEXT_STDDEF_H
813 STDDEF_H
814 HAVE_WCHAR_T
815 REPLACE_NULL
816 HAVE__BOOL
817 STDBOOL_H
818 APPLE_UNIVERSAL_BUILD
819 UNDEFINE_STRTOK_R
820 REPLACE_STRTOK_R
821 REPLACE_STRSIGNAL
822 REPLACE_STRNLEN
823 REPLACE_STRNDUP
824 REPLACE_STRNCAT
825 REPLACE_STRERROR
826 REPLACE_STRCASESTR
827 REPLACE_STRSTR
828 REPLACE_STRDUP
829 REPLACE_STPNCPY
830 REPLACE_MEMMEM
831 REPLACE_MEMCHR
832 HAVE_STRVERSCMP
833 HAVE_DECL_STRSIGNAL
834 HAVE_DECL_STRTOK_R
835 HAVE_STRCASESTR
836 HAVE_STRSEP
837 HAVE_STRPBRK
838 HAVE_DECL_STRNLEN
839 HAVE_DECL_STRNDUP
840 HAVE_DECL_STRDUP
841 HAVE_STRCHRNUL
842 HAVE_STPNCPY
843 HAVE_STPCPY
844 HAVE_RAWMEMCHR
845 HAVE_DECL_MEMRCHR
846 HAVE_MEMPCPY
847 HAVE_DECL_MEMMEM
848 HAVE_MEMCHR
849 HAVE_MBSLEN
850 GNULIB_STRVERSCMP
851 GNULIB_STRSIGNAL
852 GNULIB_STRERROR
853 GNULIB_MBSTOK_R
854 GNULIB_MBSSEP
855 GNULIB_MBSSPN
856 GNULIB_MBSPBRK
857 GNULIB_MBSCSPN
858 GNULIB_MBSCASESTR
859 GNULIB_MBSPCASECMP
860 GNULIB_MBSNCASECMP
861 GNULIB_MBSCASECMP
862 GNULIB_MBSSTR
863 GNULIB_MBSRCHR
864 GNULIB_MBSCHR
865 GNULIB_MBSNLEN
866 GNULIB_MBSLEN
867 GNULIB_STRTOK_R
868 GNULIB_STRCASESTR
869 GNULIB_STRSTR
870 GNULIB_STRSEP
871 GNULIB_STRPBRK
872 GNULIB_STRNLEN
873 GNULIB_STRNDUP
874 GNULIB_STRNCAT
875 GNULIB_STRDUP
876 GNULIB_STRCHRNUL
877 GNULIB_STPNCPY
878 GNULIB_STPCPY
879 GNULIB_RAWMEMCHR
880 GNULIB_MEMRCHR
881 GNULIB_MEMPCPY
882 GNULIB_MEMMEM
883 GNULIB_MEMCHR
884 LOCALE_FR_UTF8
885 LOCALE_ZH_CN
886 LOCALE_JA
887 REPLACE_UNSETENV
888 REPLACE_STRTOD
889 REPLACE_SETENV
890 REPLACE_REALPATH
891 REPLACE_REALLOC
892 REPLACE_PUTENV
893 REPLACE_MKSTEMP
894 REPLACE_MALLOC
895 REPLACE_CANONICALIZE_FILE_NAME
896 REPLACE_CALLOC
897 HAVE_UNSETENV
898 HAVE_UNLOCKPT
899 HAVE_SYS_LOADAVG_H
900 HAVE_STRUCT_RANDOM_DATA
901 HAVE_STRTOULL
902 HAVE_STRTOLL
903 HAVE_STRTOD
904 HAVE_SETENV
905 HAVE_RPMATCH
906 HAVE_REALPATH
907 HAVE_RANDOM_R
908 HAVE_PTSNAME
909 HAVE_MKSTEMPS
910 HAVE_MKSTEMP
911 HAVE_MKOSTEMPS
912 HAVE_MKOSTEMP
913 HAVE_MKDTEMP
914 HAVE_GRANTPT
915 HAVE_GETSUBOPT
916 HAVE_DECL_GETLOADAVG
917 HAVE_CANONICALIZE_FILE_NAME
918 HAVE_ATOLL
919 HAVE__EXIT
920 GNULIB_UNSETENV
921 GNULIB_UNLOCKPT
922 GNULIB_STRTOULL
923 GNULIB_STRTOLL
924 GNULIB_STRTOD
925 GNULIB_SETENV
926 GNULIB_RPMATCH
927 GNULIB_REALPATH
928 GNULIB_REALLOC_POSIX
929 GNULIB_RANDOM_R
930 GNULIB_PUTENV
931 GNULIB_PTSNAME
932 GNULIB_MKSTEMPS
933 GNULIB_MKSTEMP
934 GNULIB_MKOSTEMPS
935 GNULIB_MKOSTEMP
936 GNULIB_MKDTEMP
937 GNULIB_MALLOC_POSIX
938 GNULIB_GRANTPT
939 GNULIB_GETSUBOPT
940 GNULIB_GETLOADAVG
941 GNULIB_CANONICALIZE_FILE_NAME
942 GNULIB_CALLOC_POSIX
943 GNULIB_ATOLL
944 GNULIB__EXIT
945 LOCALCHARSET_TESTS_ENVIRONMENT
946 GLIBC21
947 HAVE_LANGINFO_YESEXPR
948 HAVE_LANGINFO_ERA
949 HAVE_LANGINFO_T_FMT_AMPM
950 HAVE_LANGINFO_CODESET
951 HAVE_LANGINFO_H
952 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
953 NEXT_LANGINFO_H
954 REPLACE_NL_LANGINFO
955 HAVE_NL_LANGINFO
956 GNULIB_NL_LANGINFO
957 HAVE_GETOPT_H
958 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
959 NEXT_GETOPT_H
960 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
961 UNISTD_H_HAVE_WINSOCK2_H
962 REPLACE_WRITE
963 REPLACE_USLEEP
964 REPLACE_UNLINKAT
965 REPLACE_UNLINK
966 REPLACE_TTYNAME_R
967 REPLACE_SYMLINK
968 REPLACE_SLEEP
969 REPLACE_RMDIR
970 REPLACE_READLINK
971 REPLACE_PWRITE
972 REPLACE_PREAD
973 REPLACE_LSEEK
974 REPLACE_LINKAT
975 REPLACE_LINK
976 REPLACE_LCHOWN
977 REPLACE_GETPAGESIZE
978 REPLACE_GETGROUPS
979 REPLACE_GETCWD
980 REPLACE_FCHOWNAT
981 REPLACE_DUP2
982 REPLACE_DUP
983 REPLACE_CLOSE
984 REPLACE_CHOWN
985 HAVE_SYS_PARAM_H
986 HAVE_OS_H
987 HAVE_DECL_GETUSERSHELL
988 HAVE_DECL_GETPAGESIZE
989 HAVE_DECL_GETLOGIN_R
990 HAVE_DECL_ENVIRON
991 HAVE_USLEEP
992 HAVE_UNLINKAT
993 HAVE_TTYNAME_R
994 HAVE_SYMLINKAT
995 HAVE_SYMLINK
996 HAVE_SLEEP
997 HAVE_READLINKAT
998 HAVE_READLINK
999 HAVE_PWRITE
1000 HAVE_PREAD
1001 HAVE_PIPE2
1002 HAVE_LINKAT
1003 HAVE_LINK
1004 HAVE_LCHOWN
1005 HAVE_GETPAGESIZE
1006 HAVE_GETLOGIN
1007 HAVE_GETHOSTNAME
1008 HAVE_GETGROUPS
1009 HAVE_GETDTABLESIZE
1010 HAVE_GETDOMAINNAME
1011 HAVE_FTRUNCATE
1012 HAVE_FSYNC
1013 HAVE_FCHOWNAT
1014 HAVE_FCHDIR
1015 HAVE_FACCESSAT
1016 HAVE_EUIDACCESS
1017 HAVE_DUP3
1018 HAVE_DUP2
1019 HAVE_CHOWN
1020 GNULIB_WRITE
1021 GNULIB_USLEEP
1022 GNULIB_UNLINKAT
1023 GNULIB_UNLINK
1024 GNULIB_UNISTD_H_SIGPIPE
1025 GNULIB_UNISTD_H_GETOPT
1026 GNULIB_TTYNAME_R
1027 GNULIB_SYMLINKAT
1028 GNULIB_SYMLINK
1029 GNULIB_SLEEP
1030 GNULIB_RMDIR
1031 GNULIB_READLINKAT
1032 GNULIB_READLINK
1033 GNULIB_PWRITE
1034 GNULIB_PREAD
1035 GNULIB_PIPE2
1036 GNULIB_LSEEK
1037 GNULIB_LINKAT
1038 GNULIB_LINK
1039 GNULIB_LCHOWN
1040 GNULIB_GETUSERSHELL
1041 GNULIB_GETPAGESIZE
1042 GNULIB_GETLOGIN_R
1043 GNULIB_GETLOGIN
1044 GNULIB_GETHOSTNAME
1045 GNULIB_GETGROUPS
1046 GNULIB_GETDTABLESIZE
1047 GNULIB_GETDOMAINNAME
1048 GNULIB_GETCWD
1049 GNULIB_FTRUNCATE
1050 GNULIB_FSYNC
1051 GNULIB_FCHOWNAT
1052 GNULIB_FCHDIR
1053 GNULIB_FACCESSAT
1054 GNULIB_EUIDACCESS
1055 GNULIB_ENVIRON
1056 GNULIB_DUP3
1057 GNULIB_DUP2
1058 GNULIB_CLOSE
1059 GNULIB_CHOWN
1060 REPLACE_VSPRINTF
1061 REPLACE_VSNPRINTF
1062 REPLACE_VPRINTF
1063 REPLACE_VFPRINTF
1064 REPLACE_VDPRINTF
1065 REPLACE_VASPRINTF
1066 REPLACE_TMPFILE
1067 REPLACE_STDIO_WRITE_FUNCS
1068 REPLACE_SPRINTF
1069 REPLACE_SNPRINTF
1070 REPLACE_RENAMEAT
1071 REPLACE_RENAME
1072 REPLACE_REMOVE
1073 REPLACE_PRINTF
1074 REPLACE_POPEN
1075 REPLACE_PERROR
1076 REPLACE_OBSTACK_PRINTF
1077 REPLACE_GETLINE
1078 REPLACE_GETDELIM
1079 REPLACE_FTELLO
1080 REPLACE_FTELL
1081 REPLACE_FSEEKO
1082 REPLACE_FSEEK
1083 REPLACE_FREOPEN
1084 REPLACE_FPURGE
1085 REPLACE_FPRINTF
1086 REPLACE_FOPEN
1087 REPLACE_FFLUSH
1088 REPLACE_FCLOSE
1089 REPLACE_DPRINTF
1090 HAVE_VDPRINTF
1091 HAVE_VASPRINTF
1092 HAVE_RENAMEAT
1093 HAVE_FTELLO
1094 HAVE_FSEEKO
1095 HAVE_DPRINTF
1096 HAVE_DECL_VSNPRINTF
1097 HAVE_DECL_SNPRINTF
1098 HAVE_DECL_OBSTACK_PRINTF
1099 HAVE_DECL_GETLINE
1100 HAVE_DECL_GETDELIM
1101 HAVE_DECL_FPURGE
1102 GNULIB_VSPRINTF_POSIX
1103 GNULIB_VSNPRINTF
1104 GNULIB_VPRINTF_POSIX
1105 GNULIB_VPRINTF
1106 GNULIB_VFPRINTF_POSIX
1107 GNULIB_VFPRINTF
1108 GNULIB_VDPRINTF
1109 GNULIB_VASPRINTF
1110 GNULIB_TMPFILE
1111 GNULIB_STDIO_H_SIGPIPE
1112 GNULIB_SPRINTF_POSIX
1113 GNULIB_SNPRINTF
1114 GNULIB_RENAMEAT
1115 GNULIB_RENAME
1116 GNULIB_REMOVE
1117 GNULIB_PUTS
1118 GNULIB_PUTCHAR
1119 GNULIB_PUTC
1120 GNULIB_PRINTF_POSIX
1121 GNULIB_PRINTF
1122 GNULIB_POPEN
1123 GNULIB_PERROR
1124 GNULIB_OBSTACK_PRINTF_POSIX
1125 GNULIB_OBSTACK_PRINTF
1126 GNULIB_GETLINE
1127 GNULIB_GETDELIM
1128 GNULIB_FWRITE
1129 GNULIB_FTELLO
1130 GNULIB_FTELL
1131 GNULIB_FSEEKO
1132 GNULIB_FSEEK
1133 GNULIB_FREOPEN
1134 GNULIB_FPUTS
1135 GNULIB_FPUTC
1136 GNULIB_FPURGE
1137 GNULIB_FPRINTF_POSIX
1138 GNULIB_FPRINTF
1139 GNULIB_FOPEN
1140 GNULIB_FFLUSH
1141 GNULIB_FCLOSE
1142 GNULIB_DPRINTF
1143 FNMATCH_H
1144 FLOAT_H
1145 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1146 NEXT_FLOAT_H
1147 EOVERFLOW_VALUE
1148 EOVERFLOW_HIDDEN
1149 ENOLINK_VALUE
1150 ENOLINK_HIDDEN
1151 EMULTIHOP_VALUE
1152 EMULTIHOP_HIDDEN
1153 ERRNO_H
1154 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1155 NEXT_ERRNO_H
1156 PRAGMA_SYSTEM_HEADER
1157 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1158 INCLUDE_NEXT
1159 LOCALE_FR
1160 REPLACE_WCWIDTH
1161 REPLACE_WCSNRTOMBS
1162 REPLACE_WCSRTOMBS
1163 REPLACE_WCRTOMB
1164 REPLACE_MBSNRTOWCS
1165 REPLACE_MBSRTOWCS
1166 REPLACE_MBRLEN
1167 REPLACE_MBRTOWC
1168 REPLACE_MBSINIT
1169 REPLACE_WCTOB
1170 REPLACE_BTOWC
1171 REPLACE_MBSTATE_T
1172 HAVE_DECL_WCWIDTH
1173 HAVE_DECL_WCTOB
1174 HAVE_WCSNRTOMBS
1175 HAVE_WCSRTOMBS
1176 HAVE_WCRTOMB
1177 HAVE_MBSNRTOWCS
1178 HAVE_MBSRTOWCS
1179 HAVE_MBRLEN
1180 HAVE_MBRTOWC
1181 HAVE_MBSINIT
1182 HAVE_BTOWC
1183 GNULIB_WCWIDTH
1184 GNULIB_WCSNRTOMBS
1185 GNULIB_WCSRTOMBS
1186 GNULIB_WCRTOMB
1187 GNULIB_MBSNRTOWCS
1188 GNULIB_MBSRTOWCS
1189 GNULIB_MBRLEN
1190 GNULIB_MBRTOWC
1191 GNULIB_MBSINIT
1192 GNULIB_WCTOB
1193 GNULIB_BTOWC
1194 GETOPT_H
1195 ALLOCA_H
1196 ALLOCA
1197 GL_COND_LIBTOOL_FALSE
1198 GL_COND_LIBTOOL_TRUE
1199 BUILD_CC
1200 LIBUTIL
1201 HELP2MAN
1202 POSUB
1203 LTLIBINTL
1204 LIBINTL
1205 INTLLIBS
1206 LTLIBICONV
1207 LIBICONV
1208 INTL_MACOSX_LIBS
1209 XGETTEXT_EXTRA_OPTIONS
1210 MSGMERGE
1211 XGETTEXT_015
1212 XGETTEXT
1213 GMSGFMT_015
1214 MSGFMT_015
1215 GMSGFMT
1216 MSGFMT
1217 GETTEXT_MACRO_VERSION
1218 USE_NLS
1219 am__fastdepCCAS_FALSE
1220 am__fastdepCCAS_TRUE
1221 CCASDEPMODE
1222 CCASFLAGS
1223 CCAS
1224 EGREP
1225 GREP
1227 LN_S
1228 YFLAGS
1229 LEXLIB
1230 am__fastdepCC_FALSE
1231 am__fastdepCC_TRUE
1232 CCDEPMODE
1233 AMDEPBACKSLASH
1234 AMDEP_FALSE
1235 AMDEP_TRUE
1236 am__quote
1237 am__include
1238 DEPDIR
1239 OBJEXT
1240 EXEEXT
1241 ac_ct_CC
1242 CPPFLAGS
1243 LDFLAGS
1244 CFLAGS
1246 LEX_OUTPUT_ROOT
1248 RANLIB
1249 FONT_SOURCE
1250 YACC
1252 grubdirname
1253 bootdirname
1254 platform
1255 host_kernel
1256 am__untar
1257 am__tar
1258 AMTAR
1259 am__leading_dot
1260 SET_MAKE
1262 mkdir_p
1263 MKDIR_P
1264 INSTALL_STRIP_PROGRAM
1265 STRIP
1266 install_sh
1267 MAKEINFO
1268 AUTOHEADER
1269 AUTOMAKE
1270 AUTOCONF
1271 ACLOCAL
1272 VERSION
1273 PACKAGE
1274 CYGPATH_W
1275 am__isrc
1276 INSTALL_DATA
1277 INSTALL_SCRIPT
1278 INSTALL_PROGRAM
1279 target_os
1280 target_vendor
1281 target_cpu
1282 target
1283 host_os
1284 host_vendor
1285 host_cpu
1286 host
1287 build_os
1288 build_vendor
1289 build_cpu
1290 build
1291 target_alias
1292 host_alias
1293 build_alias
1294 LIBS
1295 ECHO_T
1296 ECHO_N
1297 ECHO_C
1298 DEFS
1299 mandir
1300 localedir
1301 libdir
1302 psdir
1303 pdfdir
1304 dvidir
1305 htmldir
1306 infodir
1307 docdir
1308 oldincludedir
1309 includedir
1310 localstatedir
1311 sharedstatedir
1312 sysconfdir
1313 datadir
1314 datarootdir
1315 libexecdir
1316 sbindir
1317 bindir
1318 program_transform_name
1319 prefix
1320 exec_prefix
1321 PACKAGE_URL
1322 PACKAGE_BUGREPORT
1323 PACKAGE_STRING
1324 PACKAGE_VERSION
1325 PACKAGE_TARNAME
1326 PACKAGE_NAME
1327 PATH_SEPARATOR
1328 SHELL'
1329 ac_subst_files=''
1330 ac_user_opts='
1331 enable_option_checking
1332 with_platform
1333 with_bootdir
1334 with_grubdir
1335 enable_dependency_tracking
1336 enable_nls
1337 with_gnu_ld
1338 enable_rpath
1339 with_libiconv_prefix
1340 with_libintl_prefix
1341 enable_largefile
1342 with_included_regex
1343 enable_efiemu
1344 enable_werror
1345 enable_mm_debug
1346 enable_cache_stats
1347 enable_grub_emu_usb
1348 enable_grub_emu_sdl
1349 enable_grub_emu_pci
1350 enable_grub_mkfont
1351 enable_grub_mount
1352 enable_device_mapper
1353 enable_libzfs
1355 ac_precious_vars='build_alias
1356 host_alias
1357 target_alias
1359 CFLAGS
1360 LDFLAGS
1361 LIBS
1362 CPPFLAGS
1363 YACC
1364 YFLAGS
1366 LDFLAGS
1367 LIBS
1368 CPPFLAGS
1370 CPPFLAGS
1371 CCAS
1372 CCASFLAGS'
1375 # Initialize some variables set by options.
1376 ac_init_help=
1377 ac_init_version=false
1378 ac_unrecognized_opts=
1379 ac_unrecognized_sep=
1380 # The variables have the same names as the options, with
1381 # dashes changed to underlines.
1382 cache_file=/dev/null
1383 exec_prefix=NONE
1384 no_create=
1385 no_recursion=
1386 prefix=NONE
1387 program_prefix=NONE
1388 program_suffix=NONE
1389 program_transform_name=s,x,x,
1390 silent=
1391 site=
1392 srcdir=
1393 verbose=
1394 x_includes=NONE
1395 x_libraries=NONE
1397 # Installation directory options.
1398 # These are left unexpanded so users can "make install exec_prefix=/foo"
1399 # and all the variables that are supposed to be based on exec_prefix
1400 # by default will actually change.
1401 # Use braces instead of parens because sh, perl, etc. also accept them.
1402 # (The list follows the same order as the GNU Coding Standards.)
1403 bindir='${exec_prefix}/bin'
1404 sbindir='${exec_prefix}/sbin'
1405 libexecdir='${exec_prefix}/libexec'
1406 datarootdir='${prefix}/share'
1407 datadir='${datarootdir}'
1408 sysconfdir='${prefix}/etc'
1409 sharedstatedir='${prefix}/com'
1410 localstatedir='${prefix}/var'
1411 includedir='${prefix}/include'
1412 oldincludedir='/usr/include'
1413 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1414 infodir='${datarootdir}/info'
1415 htmldir='${docdir}'
1416 dvidir='${docdir}'
1417 pdfdir='${docdir}'
1418 psdir='${docdir}'
1419 libdir='${exec_prefix}/lib'
1420 localedir='${datarootdir}/locale'
1421 mandir='${datarootdir}/man'
1423 ac_prev=
1424 ac_dashdash=
1425 for ac_option
1427 # If the previous option needs an argument, assign it.
1428 if test -n "$ac_prev"; then
1429 eval $ac_prev=\$ac_option
1430 ac_prev=
1431 continue
1434 case $ac_option in
1435 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1436 *=) ac_optarg= ;;
1437 *) ac_optarg=yes ;;
1438 esac
1440 # Accept the important Cygnus configure options, so we can diagnose typos.
1442 case $ac_dashdash$ac_option in
1444 ac_dashdash=yes ;;
1446 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1447 ac_prev=bindir ;;
1448 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1449 bindir=$ac_optarg ;;
1451 -build | --build | --buil | --bui | --bu)
1452 ac_prev=build_alias ;;
1453 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1454 build_alias=$ac_optarg ;;
1456 -cache-file | --cache-file | --cache-fil | --cache-fi \
1457 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1458 ac_prev=cache_file ;;
1459 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1460 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1461 cache_file=$ac_optarg ;;
1463 --config-cache | -C)
1464 cache_file=config.cache ;;
1466 -datadir | --datadir | --datadi | --datad)
1467 ac_prev=datadir ;;
1468 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1469 datadir=$ac_optarg ;;
1471 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1472 | --dataroo | --dataro | --datar)
1473 ac_prev=datarootdir ;;
1474 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1475 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1476 datarootdir=$ac_optarg ;;
1478 -disable-* | --disable-*)
1479 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1480 # Reject names that are not valid shell variable names.
1481 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1482 as_fn_error $? "invalid feature name: $ac_useropt"
1483 ac_useropt_orig=$ac_useropt
1484 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485 case $ac_user_opts in
1487 "enable_$ac_useropt"
1488 "*) ;;
1489 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1490 ac_unrecognized_sep=', ';;
1491 esac
1492 eval enable_$ac_useropt=no ;;
1494 -docdir | --docdir | --docdi | --doc | --do)
1495 ac_prev=docdir ;;
1496 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1497 docdir=$ac_optarg ;;
1499 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1500 ac_prev=dvidir ;;
1501 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1502 dvidir=$ac_optarg ;;
1504 -enable-* | --enable-*)
1505 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1508 as_fn_error $? "invalid feature name: $ac_useropt"
1509 ac_useropt_orig=$ac_useropt
1510 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1513 "enable_$ac_useropt"
1514 "*) ;;
1515 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1516 ac_unrecognized_sep=', ';;
1517 esac
1518 eval enable_$ac_useropt=\$ac_optarg ;;
1520 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1521 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1522 | --exec | --exe | --ex)
1523 ac_prev=exec_prefix ;;
1524 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1525 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1526 | --exec=* | --exe=* | --ex=*)
1527 exec_prefix=$ac_optarg ;;
1529 -gas | --gas | --ga | --g)
1530 # Obsolete; use --with-gas.
1531 with_gas=yes ;;
1533 -help | --help | --hel | --he | -h)
1534 ac_init_help=long ;;
1535 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1536 ac_init_help=recursive ;;
1537 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1538 ac_init_help=short ;;
1540 -host | --host | --hos | --ho)
1541 ac_prev=host_alias ;;
1542 -host=* | --host=* | --hos=* | --ho=*)
1543 host_alias=$ac_optarg ;;
1545 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1546 ac_prev=htmldir ;;
1547 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1548 | --ht=*)
1549 htmldir=$ac_optarg ;;
1551 -includedir | --includedir | --includedi | --included | --include \
1552 | --includ | --inclu | --incl | --inc)
1553 ac_prev=includedir ;;
1554 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1555 | --includ=* | --inclu=* | --incl=* | --inc=*)
1556 includedir=$ac_optarg ;;
1558 -infodir | --infodir | --infodi | --infod | --info | --inf)
1559 ac_prev=infodir ;;
1560 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1561 infodir=$ac_optarg ;;
1563 -libdir | --libdir | --libdi | --libd)
1564 ac_prev=libdir ;;
1565 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1566 libdir=$ac_optarg ;;
1568 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1569 | --libexe | --libex | --libe)
1570 ac_prev=libexecdir ;;
1571 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1572 | --libexe=* | --libex=* | --libe=*)
1573 libexecdir=$ac_optarg ;;
1575 -localedir | --localedir | --localedi | --localed | --locale)
1576 ac_prev=localedir ;;
1577 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1578 localedir=$ac_optarg ;;
1580 -localstatedir | --localstatedir | --localstatedi | --localstated \
1581 | --localstate | --localstat | --localsta | --localst | --locals)
1582 ac_prev=localstatedir ;;
1583 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1584 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1585 localstatedir=$ac_optarg ;;
1587 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1588 ac_prev=mandir ;;
1589 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1590 mandir=$ac_optarg ;;
1592 -nfp | --nfp | --nf)
1593 # Obsolete; use --without-fp.
1594 with_fp=no ;;
1596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1597 | --no-cr | --no-c | -n)
1598 no_create=yes ;;
1600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1602 no_recursion=yes ;;
1604 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1605 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1606 | --oldin | --oldi | --old | --ol | --o)
1607 ac_prev=oldincludedir ;;
1608 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1609 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1610 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1611 oldincludedir=$ac_optarg ;;
1613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1614 ac_prev=prefix ;;
1615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1616 prefix=$ac_optarg ;;
1618 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1619 | --program-pre | --program-pr | --program-p)
1620 ac_prev=program_prefix ;;
1621 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1622 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1623 program_prefix=$ac_optarg ;;
1625 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1626 | --program-suf | --program-su | --program-s)
1627 ac_prev=program_suffix ;;
1628 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1629 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1630 program_suffix=$ac_optarg ;;
1632 -program-transform-name | --program-transform-name \
1633 | --program-transform-nam | --program-transform-na \
1634 | --program-transform-n | --program-transform- \
1635 | --program-transform | --program-transfor \
1636 | --program-transfo | --program-transf \
1637 | --program-trans | --program-tran \
1638 | --progr-tra | --program-tr | --program-t)
1639 ac_prev=program_transform_name ;;
1640 -program-transform-name=* | --program-transform-name=* \
1641 | --program-transform-nam=* | --program-transform-na=* \
1642 | --program-transform-n=* | --program-transform-=* \
1643 | --program-transform=* | --program-transfor=* \
1644 | --program-transfo=* | --program-transf=* \
1645 | --program-trans=* | --program-tran=* \
1646 | --progr-tra=* | --program-tr=* | --program-t=*)
1647 program_transform_name=$ac_optarg ;;
1649 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1650 ac_prev=pdfdir ;;
1651 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1652 pdfdir=$ac_optarg ;;
1654 -psdir | --psdir | --psdi | --psd | --ps)
1655 ac_prev=psdir ;;
1656 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1657 psdir=$ac_optarg ;;
1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660 | -silent | --silent | --silen | --sile | --sil)
1661 silent=yes ;;
1663 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1664 ac_prev=sbindir ;;
1665 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1666 | --sbi=* | --sb=*)
1667 sbindir=$ac_optarg ;;
1669 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1670 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1671 | --sharedst | --shareds | --shared | --share | --shar \
1672 | --sha | --sh)
1673 ac_prev=sharedstatedir ;;
1674 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1675 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1676 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1677 | --sha=* | --sh=*)
1678 sharedstatedir=$ac_optarg ;;
1680 -site | --site | --sit)
1681 ac_prev=site ;;
1682 -site=* | --site=* | --sit=*)
1683 site=$ac_optarg ;;
1685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1686 ac_prev=srcdir ;;
1687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1688 srcdir=$ac_optarg ;;
1690 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1691 | --syscon | --sysco | --sysc | --sys | --sy)
1692 ac_prev=sysconfdir ;;
1693 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1694 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1695 sysconfdir=$ac_optarg ;;
1697 -target | --target | --targe | --targ | --tar | --ta | --t)
1698 ac_prev=target_alias ;;
1699 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1700 target_alias=$ac_optarg ;;
1702 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1703 verbose=yes ;;
1705 -version | --version | --versio | --versi | --vers | -V)
1706 ac_init_version=: ;;
1708 -with-* | --with-*)
1709 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1710 # Reject names that are not valid shell variable names.
1711 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1712 as_fn_error $? "invalid package name: $ac_useropt"
1713 ac_useropt_orig=$ac_useropt
1714 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1715 case $ac_user_opts in
1717 "with_$ac_useropt"
1718 "*) ;;
1719 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1720 ac_unrecognized_sep=', ';;
1721 esac
1722 eval with_$ac_useropt=\$ac_optarg ;;
1724 -without-* | --without-*)
1725 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1728 as_fn_error $? "invalid package name: $ac_useropt"
1729 ac_useropt_orig=$ac_useropt
1730 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1733 "with_$ac_useropt"
1734 "*) ;;
1735 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1736 ac_unrecognized_sep=', ';;
1737 esac
1738 eval with_$ac_useropt=no ;;
1740 --x)
1741 # Obsolete; use --with-x.
1742 with_x=yes ;;
1744 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1745 | --x-incl | --x-inc | --x-in | --x-i)
1746 ac_prev=x_includes ;;
1747 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1748 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1749 x_includes=$ac_optarg ;;
1751 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1752 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1753 ac_prev=x_libraries ;;
1754 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1755 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1756 x_libraries=$ac_optarg ;;
1758 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1759 Try \`$0 --help' for more information"
1762 *=*)
1763 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1764 # Reject names that are not valid shell variable names.
1765 case $ac_envvar in #(
1766 '' | [0-9]* | *[!_$as_cr_alnum]* )
1767 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1768 esac
1769 eval $ac_envvar=\$ac_optarg
1770 export $ac_envvar ;;
1773 # FIXME: should be removed in autoconf 3.0.
1774 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1775 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1776 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1777 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1780 esac
1781 done
1783 if test -n "$ac_prev"; then
1784 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1785 as_fn_error $? "missing argument to $ac_option"
1788 if test -n "$ac_unrecognized_opts"; then
1789 case $enable_option_checking in
1790 no) ;;
1791 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1792 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1793 esac
1796 # Check all directory arguments for consistency.
1797 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1798 datadir sysconfdir sharedstatedir localstatedir includedir \
1799 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1800 libdir localedir mandir
1802 eval ac_val=\$$ac_var
1803 # Remove trailing slashes.
1804 case $ac_val in
1805 */ )
1806 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1807 eval $ac_var=\$ac_val;;
1808 esac
1809 # Be sure to have absolute directory names.
1810 case $ac_val in
1811 [\\/$]* | ?:[\\/]* ) continue;;
1812 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1813 esac
1814 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1815 done
1817 # There might be people who depend on the old broken behavior: `$host'
1818 # used to hold the argument of --host etc.
1819 # FIXME: To remove some day.
1820 build=$build_alias
1821 host=$host_alias
1822 target=$target_alias
1824 # FIXME: To remove some day.
1825 if test "x$host_alias" != x; then
1826 if test "x$build_alias" = x; then
1827 cross_compiling=maybe
1828 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1829 If a cross compiler is detected then cross compile mode will be used" >&2
1830 elif test "x$build_alias" != "x$host_alias"; then
1831 cross_compiling=yes
1835 ac_tool_prefix=
1836 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1838 test "$silent" = yes && exec 6>/dev/null
1841 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1842 ac_ls_di=`ls -di .` &&
1843 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1844 as_fn_error $? "working directory cannot be determined"
1845 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1846 as_fn_error $? "pwd does not report name of working directory"
1849 # Find the source files, if location was not specified.
1850 if test -z "$srcdir"; then
1851 ac_srcdir_defaulted=yes
1852 # Try the directory containing this script, then the parent directory.
1853 ac_confdir=`$as_dirname -- "$as_myself" ||
1854 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1855 X"$as_myself" : 'X\(//\)[^/]' \| \
1856 X"$as_myself" : 'X\(//\)$' \| \
1857 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1858 $as_echo X"$as_myself" |
1859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1860 s//\1/
1863 /^X\(\/\/\)[^/].*/{
1864 s//\1/
1867 /^X\(\/\/\)$/{
1868 s//\1/
1871 /^X\(\/\).*/{
1872 s//\1/
1875 s/.*/./; q'`
1876 srcdir=$ac_confdir
1877 if test ! -r "$srcdir/$ac_unique_file"; then
1878 srcdir=..
1880 else
1881 ac_srcdir_defaulted=no
1883 if test ! -r "$srcdir/$ac_unique_file"; then
1884 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1885 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1887 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1888 ac_abs_confdir=`(
1889 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1890 pwd)`
1891 # When building in place, set srcdir=.
1892 if test "$ac_abs_confdir" = "$ac_pwd"; then
1893 srcdir=.
1895 # Remove unnecessary trailing slashes from srcdir.
1896 # Double slashes in file names in object file debugging info
1897 # mess up M-x gdb in Emacs.
1898 case $srcdir in
1899 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1900 esac
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1903 eval ac_env_${ac_var}_value=\$${ac_var}
1904 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1905 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1906 done
1909 # Report the --help message.
1911 if test "$ac_init_help" = "long"; then
1912 # Omit some internal or obsolete options to make the list less imposing.
1913 # This message is too long to be a string in the A/UX 3.1 sh.
1914 cat <<_ACEOF
1915 \`configure' configures GRUB 2.00 to adapt to many kinds of systems.
1917 Usage: $0 [OPTION]... [VAR=VALUE]...
1919 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1920 VAR=VALUE. See below for descriptions of some of the useful variables.
1922 Defaults for the options are specified in brackets.
1924 Configuration:
1925 -h, --help display this help and exit
1926 --help=short display options specific to this package
1927 --help=recursive display the short help of all the included packages
1928 -V, --version display version information and exit
1929 -q, --quiet, --silent do not print \`checking ...' messages
1930 --cache-file=FILE cache test results in FILE [disabled]
1931 -C, --config-cache alias for \`--cache-file=config.cache'
1932 -n, --no-create do not create output files
1933 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1935 Installation directories:
1936 --prefix=PREFIX install architecture-independent files in PREFIX
1937 [$ac_default_prefix]
1938 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1939 [PREFIX]
1941 By default, \`make install' will install all the files in
1942 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1943 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1944 for instance \`--prefix=\$HOME'.
1946 For better control, use the options below.
1948 Fine tuning of the installation directories:
1949 --bindir=DIR user executables [EPREFIX/bin]
1950 --sbindir=DIR system admin executables [EPREFIX/sbin]
1951 --libexecdir=DIR program executables [EPREFIX/libexec]
1952 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1953 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1954 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1955 --libdir=DIR object code libraries [EPREFIX/lib]
1956 --includedir=DIR C header files [PREFIX/include]
1957 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1958 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1959 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1960 --infodir=DIR info documentation [DATAROOTDIR/info]
1961 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1962 --mandir=DIR man documentation [DATAROOTDIR/man]
1963 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1964 --htmldir=DIR html documentation [DOCDIR]
1965 --dvidir=DIR dvi documentation [DOCDIR]
1966 --pdfdir=DIR pdf documentation [DOCDIR]
1967 --psdir=DIR ps documentation [DOCDIR]
1968 _ACEOF
1970 cat <<\_ACEOF
1972 Program names:
1973 --program-prefix=PREFIX prepend PREFIX to installed program names
1974 --program-suffix=SUFFIX append SUFFIX to installed program names
1975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1977 System types:
1978 --build=BUILD configure for building on BUILD [guessed]
1979 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1980 --target=TARGET configure for building compilers for TARGET [HOST]
1981 _ACEOF
1984 if test -n "$ac_init_help"; then
1985 case $ac_init_help in
1986 short | recursive ) echo "Configuration of GRUB 2.00:";;
1987 esac
1988 cat <<\_ACEOF
1990 Optional Features:
1991 --disable-option-checking ignore unrecognized --enable/--with options
1992 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1993 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1994 --disable-dependency-tracking speeds up one-time build
1995 --enable-dependency-tracking do not reject slow dependency extractors
1996 --disable-nls do not use Native Language Support
1997 --disable-rpath do not hardcode runtime library paths
1998 --disable-largefile omit support for large files
1999 --enable-efiemu build and install the efiemu runtimes
2000 (default=guessed)
2001 --disable-werror do not use -Werror when building GRUB
2002 --enable-mm-debug include memory manager debugging
2003 --enable-cache-stats enable disk cache statistics collection
2004 --enable-grub-emu-usb build and install the `grub-emu' debugging utility
2005 with USB support (default=guessed)
2006 --enable-grub-emu-sdl build and install the `grub-emu' debugging utility
2007 with SDL support (default=guessed)
2008 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2009 with PCI support (potentially dangerous)
2010 (default=no)
2011 --enable-grub-mkfont build and install the `grub-mkfont' utility
2012 (default=guessed)
2013 --enable-grub-mount build and install the `grub-mount' utility
2014 (default=guessed)
2015 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2016 --enable-libzfs enable libzfs integration (default=guessed)
2018 Optional Packages:
2019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2021 --with-platform=PLATFORM
2022 select the host platform [[guessed]]
2023 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2024 --with-grubdir=DIR set the name of grub directory [[guessed]]
2025 --with-gnu-ld assume the C compiler uses GNU ld default=no
2026 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2027 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2028 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2029 --without-libintl-prefix don't search for libintl in includedir and libdir
2030 --without-included-regex
2031 don't compile regex; this is the default on systems
2032 with recent-enough versions of the GNU C Library
2033 (use with caution on other systems).
2035 Some influential environment variables:
2036 CC C compiler command
2037 CFLAGS C compiler flags
2038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2039 nonstandard directory <lib dir>
2040 LIBS libraries to pass to the linker, e.g. -l<library>
2041 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2042 you have headers in a nonstandard directory <include dir>
2043 YACC The `Yet Another Compiler Compiler' implementation to use.
2044 Defaults to the first program found out of: `bison -y', `byacc',
2045 `yacc'.
2046 YFLAGS The list of arguments that will be passed by default to $YACC.
2047 This script will default YFLAGS to the empty string to avoid a
2048 default value of `-d' given by some make applications.
2049 CPP C preprocessor
2050 CCAS assembler compiler command (defaults to CC)
2051 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2053 Use these variables to override the choices made by `configure' or to help
2054 it to find libraries and programs with nonstandard names/locations.
2056 Report bugs to <bug-grub@gnu.org>.
2057 _ACEOF
2058 ac_status=$?
2061 if test "$ac_init_help" = "recursive"; then
2062 # If there are subdirs, report their specific --help.
2063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2064 test -d "$ac_dir" ||
2065 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2066 continue
2067 ac_builddir=.
2069 case "$ac_dir" in
2070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2073 # A ".." for each directory in $ac_dir_suffix.
2074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2075 case $ac_top_builddir_sub in
2076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2078 esac ;;
2079 esac
2080 ac_abs_top_builddir=$ac_pwd
2081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2082 # for backward compatibility:
2083 ac_top_builddir=$ac_top_build_prefix
2085 case $srcdir in
2086 .) # We are building in place.
2087 ac_srcdir=.
2088 ac_top_srcdir=$ac_top_builddir_sub
2089 ac_abs_top_srcdir=$ac_pwd ;;
2090 [\\/]* | ?:[\\/]* ) # Absolute name.
2091 ac_srcdir=$srcdir$ac_dir_suffix;
2092 ac_top_srcdir=$srcdir
2093 ac_abs_top_srcdir=$srcdir ;;
2094 *) # Relative name.
2095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2096 ac_top_srcdir=$ac_top_build_prefix$srcdir
2097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2098 esac
2099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2101 cd "$ac_dir" || { ac_status=$?; continue; }
2102 # Check for guested configure.
2103 if test -f "$ac_srcdir/configure.gnu"; then
2104 echo &&
2105 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2106 elif test -f "$ac_srcdir/configure"; then
2107 echo &&
2108 $SHELL "$ac_srcdir/configure" --help=recursive
2109 else
2110 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2111 fi || ac_status=$?
2112 cd "$ac_pwd" || { ac_status=$?; break; }
2113 done
2116 test -n "$ac_init_help" && exit $ac_status
2117 if $ac_init_version; then
2118 cat <<\_ACEOF
2119 GRUB configure 2.00
2120 generated by GNU Autoconf 2.68
2122 Copyright (C) 2010 Free Software Foundation, Inc.
2123 This configure script is free software; the Free Software Foundation
2124 gives unlimited permission to copy, distribute and modify it.
2125 _ACEOF
2126 exit
2129 ## ------------------------ ##
2130 ## Autoconf initialization. ##
2131 ## ------------------------ ##
2133 # ac_fn_c_try_compile LINENO
2134 # --------------------------
2135 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_compile ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext
2140 if { { ac_try="$ac_compile"
2141 case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_compile") 2>conftest.err
2148 ac_status=$?
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest.$ac_objext; then :
2159 ac_retval=0
2160 else
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2164 ac_retval=1
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2169 } # ac_fn_c_try_compile
2171 # ac_fn_c_try_link LINENO
2172 # -----------------------
2173 # Try to link conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_c_try_link ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext conftest$ac_exeext
2178 if { { ac_try="$ac_link"
2179 case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>conftest.err
2186 ac_status=$?
2187 if test -s conftest.err; then
2188 grep -v '^ *+' conftest.err >conftest.er1
2189 cat conftest.er1 >&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest$ac_exeext && {
2197 test "$cross_compiling" = yes ||
2198 $as_test_x conftest$ac_exeext
2199 }; then :
2200 ac_retval=0
2201 else
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 ac_retval=1
2207 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2208 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2209 # interfere with the next link command; also delete a directory that is
2210 # left behind by Apple's compiler. We do this before executing the actions.
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status $ac_retval
2215 } # ac_fn_c_try_link
2217 # ac_fn_c_try_cpp LINENO
2218 # ----------------------
2219 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2220 ac_fn_c_try_cpp ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if { { ac_try="$ac_cpp conftest.$ac_ext"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } > conftest.i && {
2239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2241 }; then :
2242 ac_retval=0
2243 else
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 ac_retval=1
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2252 } # ac_fn_c_try_cpp
2254 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2255 # -------------------------------------------------------
2256 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2257 # the include files in INCLUDES and setting the cache variable VAR
2258 # accordingly.
2259 ac_fn_c_check_header_mongrel ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if eval \${$3+:} false; then :
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if eval \${$3+:} false; then :
2266 $as_echo_n "(cached) " >&6
2268 eval ac_res=\$$3
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 else
2272 # Is the header compilable?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2274 $as_echo_n "checking $2 usability... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2278 #include <$2>
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_header_compiler=yes
2282 else
2283 ac_header_compiler=no
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2287 $as_echo "$ac_header_compiler" >&6; }
2289 # Is the header present?
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2291 $as_echo_n "checking $2 presence... " >&6; }
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 #include <$2>
2295 _ACEOF
2296 if ac_fn_c_try_cpp "$LINENO"; then :
2297 ac_header_preproc=yes
2298 else
2299 ac_header_preproc=no
2301 rm -f conftest.err conftest.i conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2303 $as_echo "$ac_header_preproc" >&6; }
2305 # So? What about this header?
2306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2307 yes:no: )
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2309 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2313 no:yes:* )
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2315 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2317 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2319 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2321 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2324 ( $as_echo "## ------------------------------- ##
2325 ## Report this to bug-grub@gnu.org ##
2326 ## ------------------------------- ##"
2327 ) | sed "s/^/$as_me: WARNING: /" >&2
2329 esac
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 $as_echo_n "checking for $2... " >&6; }
2332 if eval \${$3+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 eval "$3=\$ac_header_compiler"
2337 eval ac_res=\$$3
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 } # ac_fn_c_check_header_mongrel
2345 # ac_fn_c_try_run LINENO
2346 # ----------------------
2347 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2348 # that executables *can* be run.
2349 ac_fn_c_try_run ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 if { { ac_try="$ac_link"
2353 case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356 esac
2357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358 $as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_link") 2>&5
2360 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2363 { { case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_try") 2>&5
2370 ac_status=$?
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; }; }; then :
2373 ac_retval=0
2374 else
2375 $as_echo "$as_me: program exited with status $ac_status" >&5
2376 $as_echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 ac_retval=$ac_status
2381 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383 as_fn_set_status $ac_retval
2385 } # ac_fn_c_try_run
2387 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2388 # -------------------------------------------------------
2389 # Tests whether HEADER exists and can be compiled using the include files in
2390 # INCLUDES, setting the cache variable VAR accordingly.
2391 ac_fn_c_check_header_compile ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395 $as_echo_n "checking for $2... " >&6; }
2396 if eval \${$3+:} false; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2402 #include <$2>
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405 eval "$3=yes"
2406 else
2407 eval "$3=no"
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 eval ac_res=\$$3
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416 } # ac_fn_c_check_header_compile
2418 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2419 # --------------------------------------------
2420 # Tries to find the compile-time value of EXPR in a program that includes
2421 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2422 # computed
2423 ac_fn_c_compute_int ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 if test "$cross_compiling" = yes; then
2427 # Depending upon the size, compute the lo and hi bounds.
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2432 main (void)
2434 static int test_array [1 - 2 * !(($2) >= 0)];
2435 test_array [0] = 0
2438 return 0;
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442 ac_lo=0 ac_mid=0
2443 while :; do
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2448 main (void)
2450 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2451 test_array [0] = 0
2454 return 0;
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458 ac_hi=$ac_mid; break
2459 else
2460 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2461 if test $ac_lo -le $ac_mid; then
2462 ac_lo= ac_hi=
2463 break
2465 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 done
2469 else
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2474 main (void)
2476 static int test_array [1 - 2 * !(($2) < 0)];
2477 test_array [0] = 0
2480 return 0;
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484 ac_hi=-1 ac_mid=-1
2485 while :; do
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2490 main (void)
2492 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2493 test_array [0] = 0
2496 return 0;
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500 ac_lo=$ac_mid; break
2501 else
2502 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2503 if test $ac_mid -le $ac_hi; then
2504 ac_lo= ac_hi=
2505 break
2507 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 done
2511 else
2512 ac_lo= ac_hi=
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 # Binary search between lo and hi bounds.
2518 while test "x$ac_lo" != "x$ac_hi"; do
2519 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2524 main (void)
2526 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527 test_array [0] = 0
2530 return 0;
2532 _ACEOF
2533 if ac_fn_c_try_compile "$LINENO"; then :
2534 ac_hi=$ac_mid
2535 else
2536 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 case $ac_lo in #((
2541 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2542 '') ac_retval=1 ;;
2543 esac
2544 else
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2548 static long int longval () { return $2; }
2549 static unsigned long int ulongval () { return $2; }
2550 #include <stdio.h>
2551 #include <stdlib.h>
2553 main (void)
2556 FILE *f = fopen ("conftest.val", "w");
2557 if (! f)
2558 return 1;
2559 if (($2) < 0)
2561 long int i = longval ();
2562 if (i != ($2))
2563 return 1;
2564 fprintf (f, "%ld", i);
2566 else
2568 unsigned long int i = ulongval ();
2569 if (i != ($2))
2570 return 1;
2571 fprintf (f, "%lu", i);
2573 /* Do not output a trailing newline, as this causes \r\n confusion
2574 on some platforms. */
2575 return ferror (f) || fclose (f) != 0;
2578 return 0;
2580 _ACEOF
2581 if ac_fn_c_try_run "$LINENO"; then :
2582 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2583 else
2584 ac_retval=1
2586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2587 conftest.$ac_objext conftest.beam conftest.$ac_ext
2588 rm -f conftest.val
2591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592 as_fn_set_status $ac_retval
2594 } # ac_fn_c_compute_int
2596 # ac_fn_c_check_func LINENO FUNC VAR
2597 # ----------------------------------
2598 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2599 ac_fn_c_check_func ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2611 #define $2 innocuous_$2
2613 /* System header to define __stub macros and hopefully few prototypes,
2614 which can conflict with char $2 (); below.
2615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616 <limits.h> exists even on freestanding compilers. */
2618 #ifdef __STDC__
2619 # include <limits.h>
2620 #else
2621 # include <assert.h>
2622 #endif
2624 #undef $2
2626 /* Override any GCC internal prototype to avoid an error.
2627 Use char because int might match the return type of a GCC
2628 builtin and then its argument prototype would still apply. */
2629 #ifdef __cplusplus
2630 extern "C"
2631 #endif
2632 char $2 ();
2633 /* The GNU C library defines this for functions which it implements
2634 to always fail with ENOSYS. Some functions are actually named
2635 something starting with __ and the normal name is an alias. */
2636 #if defined __stub_$2 || defined __stub___$2
2637 choke me
2638 #endif
2641 main (void)
2643 return $2 ();
2645 return 0;
2647 _ACEOF
2648 if ac_fn_c_try_link "$LINENO"; then :
2649 eval "$3=yes"
2650 else
2651 eval "$3=no"
2653 rm -f core conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2656 eval ac_res=\$$3
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661 } # ac_fn_c_check_func
2663 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2664 # ----------------------------------------------------
2665 # Tries to find if the field MEMBER exists in type AGGR, after including
2666 # INCLUDES, setting cache variable VAR accordingly.
2667 ac_fn_c_check_member ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2671 $as_echo_n "checking for $2.$3... " >&6; }
2672 if eval \${$4+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2679 main (void)
2681 static $2 ac_aggr;
2682 if (ac_aggr.$3)
2683 return 0;
2685 return 0;
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 eval "$4=yes"
2690 else
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2695 main (void)
2697 static $2 ac_aggr;
2698 if (sizeof ac_aggr.$3)
2699 return 0;
2701 return 0;
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2705 eval "$4=yes"
2706 else
2707 eval "$4=no"
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 eval ac_res=\$$4
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718 } # ac_fn_c_check_member
2720 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2721 # -------------------------------------------
2722 # Tests whether TYPE exists after having included INCLUDES, setting cache
2723 # variable VAR accordingly.
2724 ac_fn_c_check_type ()
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 eval "$3=no"
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2737 main (void)
2739 if (sizeof ($2))
2740 return 0;
2742 return 0;
2744 _ACEOF
2745 if ac_fn_c_try_compile "$LINENO"; then :
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2750 main (void)
2752 if (sizeof (($2)))
2753 return 0;
2755 return 0;
2757 _ACEOF
2758 if ac_fn_c_try_compile "$LINENO"; then :
2760 else
2761 eval "$3=yes"
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 eval ac_res=\$$3
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772 } # ac_fn_c_check_type
2774 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2775 # ---------------------------------------------
2776 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2777 # accordingly.
2778 ac_fn_c_check_decl ()
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 as_decl_name=`echo $2|sed 's/ *(.*//'`
2782 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2784 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2785 if eval \${$3+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2792 main (void)
2794 #ifndef $as_decl_name
2795 #ifdef __cplusplus
2796 (void) $as_decl_use;
2797 #else
2798 (void) $as_decl_name;
2799 #endif
2800 #endif
2803 return 0;
2805 _ACEOF
2806 if ac_fn_c_try_compile "$LINENO"; then :
2807 eval "$3=yes"
2808 else
2809 eval "$3=no"
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 eval ac_res=\$$3
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815 $as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818 } # ac_fn_c_check_decl
2819 cat >config.log <<_ACEOF
2820 This file contains any messages produced by compilers while
2821 running configure, to aid debugging if configure makes a mistake.
2823 It was created by GRUB $as_me 2.00, which was
2824 generated by GNU Autoconf 2.68. Invocation command line was
2826 $ $0 $@
2828 _ACEOF
2829 exec 5>>config.log
2831 cat <<_ASUNAME
2832 ## --------- ##
2833 ## Platform. ##
2834 ## --------- ##
2836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2853 _ASUNAME
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 $as_echo "PATH: $as_dir"
2861 done
2862 IFS=$as_save_IFS
2864 } >&5
2866 cat >&5 <<_ACEOF
2869 ## ----------- ##
2870 ## Core tests. ##
2871 ## ----------- ##
2873 _ACEOF
2876 # Keep a trace of the command line.
2877 # Strip out --no-create and --no-recursion so they do not pile up.
2878 # Strip out --silent because we don't want to record it for future runs.
2879 # Also quote any args containing shell meta-characters.
2880 # Make two passes to allow for proper duplicate-argument suppression.
2881 ac_configure_args=
2882 ac_configure_args0=
2883 ac_configure_args1=
2884 ac_must_keep_next=false
2885 for ac_pass in 1 2
2887 for ac_arg
2889 case $ac_arg in
2890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2892 | -silent | --silent | --silen | --sile | --sil)
2893 continue ;;
2894 *\'*)
2895 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2896 esac
2897 case $ac_pass in
2898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2900 as_fn_append ac_configure_args1 " '$ac_arg'"
2901 if test $ac_must_keep_next = true; then
2902 ac_must_keep_next=false # Got value, back to normal.
2903 else
2904 case $ac_arg in
2905 *=* | --config-cache | -C | -disable-* | --disable-* \
2906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2908 | -with-* | --with-* | -without-* | --without-* | --x)
2909 case "$ac_configure_args0 " in
2910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2911 esac
2913 -* ) ac_must_keep_next=true ;;
2914 esac
2916 as_fn_append ac_configure_args " '$ac_arg'"
2918 esac
2919 done
2920 done
2921 { ac_configure_args0=; unset ac_configure_args0;}
2922 { ac_configure_args1=; unset ac_configure_args1;}
2924 # When interrupted or exit'd, cleanup temporary files, and complete
2925 # config.log. We remove comments because anyway the quotes in there
2926 # would cause problems or look ugly.
2927 # WARNING: Use '\'' to represent an apostrophe within the trap.
2928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2929 trap 'exit_status=$?
2930 # Save into config.log some information that might help in debugging.
2932 echo
2934 $as_echo "## ---------------- ##
2935 ## Cache variables. ##
2936 ## ---------------- ##"
2937 echo
2938 # The following way of writing the cache mishandles newlines in values,
2940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941 eval ac_val=\$$ac_var
2942 case $ac_val in #(
2943 *${as_nl}*)
2944 case $ac_var in #(
2945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2947 esac
2948 case $ac_var in #(
2949 _ | IFS | as_nl) ;; #(
2950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951 *) { eval $ac_var=; unset $ac_var;} ;;
2952 esac ;;
2953 esac
2954 done
2955 (set) 2>&1 |
2956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957 *${as_nl}ac_space=\ *)
2958 sed -n \
2959 "s/'\''/'\''\\\\'\'''\''/g;
2960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2961 ;; #(
2963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2965 esac |
2966 sort
2968 echo
2970 $as_echo "## ----------------- ##
2971 ## Output variables. ##
2972 ## ----------------- ##"
2973 echo
2974 for ac_var in $ac_subst_vars
2976 eval ac_val=\$$ac_var
2977 case $ac_val in
2978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2979 esac
2980 $as_echo "$ac_var='\''$ac_val'\''"
2981 done | sort
2982 echo
2984 if test -n "$ac_subst_files"; then
2985 $as_echo "## ------------------- ##
2986 ## File substitutions. ##
2987 ## ------------------- ##"
2988 echo
2989 for ac_var in $ac_subst_files
2991 eval ac_val=\$$ac_var
2992 case $ac_val in
2993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2994 esac
2995 $as_echo "$ac_var='\''$ac_val'\''"
2996 done | sort
2997 echo
3000 if test -s confdefs.h; then
3001 $as_echo "## ----------- ##
3002 ## confdefs.h. ##
3003 ## ----------- ##"
3004 echo
3005 cat confdefs.h
3006 echo
3008 test "$ac_signal" != 0 &&
3009 $as_echo "$as_me: caught signal $ac_signal"
3010 $as_echo "$as_me: exit $exit_status"
3011 } >&5
3012 rm -f core *.core core.conftest.* &&
3013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3014 exit $exit_status
3016 for ac_signal in 1 2 13 15; do
3017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3018 done
3019 ac_signal=0
3021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3022 rm -f -r conftest* confdefs.h
3024 $as_echo "/* confdefs.h */" > confdefs.h
3026 # Predefined preprocessor variables.
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_NAME "$PACKAGE_NAME"
3030 _ACEOF
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3034 _ACEOF
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3038 _ACEOF
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_STRING "$PACKAGE_STRING"
3042 _ACEOF
3044 cat >>confdefs.h <<_ACEOF
3045 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3046 _ACEOF
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_URL "$PACKAGE_URL"
3050 _ACEOF
3053 # Let the site file select an alternate cache file if it wants to.
3054 # Prefer an explicitly selected file to automatically selected ones.
3055 ac_site_file1=NONE
3056 ac_site_file2=NONE
3057 if test -n "$CONFIG_SITE"; then
3058 # We do not want a PATH search for config.site.
3059 case $CONFIG_SITE in #((
3060 -*) ac_site_file1=./$CONFIG_SITE;;
3061 */*) ac_site_file1=$CONFIG_SITE;;
3062 *) ac_site_file1=./$CONFIG_SITE;;
3063 esac
3064 elif test "x$prefix" != xNONE; then
3065 ac_site_file1=$prefix/share/config.site
3066 ac_site_file2=$prefix/etc/config.site
3067 else
3068 ac_site_file1=$ac_default_prefix/share/config.site
3069 ac_site_file2=$ac_default_prefix/etc/config.site
3071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3073 test "x$ac_site_file" = xNONE && continue
3074 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3077 sed 's/^/| /' "$ac_site_file" >&5
3078 . "$ac_site_file" \
3079 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "failed to load site script $ac_site_file
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 done
3086 if test -r "$cache_file"; then
3087 # Some versions of bash will fail to source /dev/null (special files
3088 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3089 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3091 $as_echo "$as_me: loading cache $cache_file" >&6;}
3092 case $cache_file in
3093 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3094 *) . "./$cache_file";;
3095 esac
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3099 $as_echo "$as_me: creating cache $cache_file" >&6;}
3100 >$cache_file
3103 gt_needs="$gt_needs "
3104 as_fn_append ac_func_list " flockfile"
3105 as_fn_append ac_func_list " funlockfile"
3106 as_fn_append ac_header_list " features.h"
3107 as_fn_append ac_header_list " linewrap.h"
3108 as_fn_append ac_func_list " btowc"
3109 as_fn_append ac_header_list " errno.h"
3110 as_fn_append ac_header_list " float.h"
3111 as_fn_append ac_func_list " isblank"
3112 as_fn_append ac_func_list " iswctype"
3113 as_fn_append ac_func_list " mbsrtowcs"
3114 as_fn_append ac_func_list " mempcpy"
3115 as_fn_append ac_func_list " wmemchr"
3116 as_fn_append ac_func_list " wmemcpy"
3117 as_fn_append ac_func_list " wmempcpy"
3118 as_fn_append ac_header_list " wctype.h"
3119 as_fn_append ac_func_list " getdelim"
3120 gl_getopt_required=GNU
3121 as_fn_append ac_header_list " getopt.h"
3122 as_fn_append ac_header_list " langinfo.h"
3123 as_fn_append ac_func_list " mbsinit"
3124 as_fn_append ac_func_list " mbrtowc"
3125 as_fn_append ac_header_list " sys/mman.h"
3126 as_fn_append ac_func_list " mprotect"
3127 as_fn_append ac_func_list " memchr"
3128 as_fn_append ac_func_list " nl_langinfo"
3129 as_fn_append ac_header_list " locale.h"
3130 as_fn_append ac_func_list " wcscoll"
3131 as_fn_append ac_func_list " sleep"
3132 as_fn_append ac_header_list " stddef.h"
3133 as_fn_append ac_header_list " stdint.h"
3134 as_fn_append ac_header_list " wchar.h"
3135 as_fn_append ac_header_list " stdio.h"
3136 as_fn_append ac_header_list " stdlib.h"
3137 as_fn_append ac_header_list " sys/socket.h"
3138 as_fn_append ac_header_list " string.h"
3139 as_fn_append ac_header_list " strings.h"
3140 as_fn_append ac_func_list " strndup"
3141 as_fn_append ac_header_list " sys/wait.h"
3142 as_fn_append ac_header_list " sysexits.h"
3143 as_fn_append ac_header_list " unistd.h"
3144 as_fn_append ac_func_list " vasnprintf"
3145 as_fn_append ac_func_list " wcrtomb"
3146 as_fn_append ac_func_list " iswcntrl"
3147 as_fn_append ac_func_list " iswblank"
3148 # Check that the precious variables saved in the cache have kept the same
3149 # value.
3150 ac_cache_corrupted=false
3151 for ac_var in $ac_precious_vars; do
3152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3153 eval ac_new_set=\$ac_env_${ac_var}_set
3154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3155 eval ac_new_val=\$ac_env_${ac_var}_value
3156 case $ac_old_set,$ac_new_set in
3157 set,)
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3160 ac_cache_corrupted=: ;;
3161 ,set)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3164 ac_cache_corrupted=: ;;
3165 ,);;
3167 if test "x$ac_old_val" != "x$ac_new_val"; then
3168 # differences in whitespace do not lead to failure.
3169 ac_old_val_w=`echo x $ac_old_val`
3170 ac_new_val_w=`echo x $ac_new_val`
3171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3174 ac_cache_corrupted=:
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3178 eval $ac_var=\$ac_old_val
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3181 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3184 fi;;
3185 esac
3186 # Pass precious variables to config.status.
3187 if test "$ac_new_set" = set; then
3188 case $ac_new_val in
3189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3190 *) ac_arg=$ac_var=$ac_new_val ;;
3191 esac
3192 case " $ac_configure_args " in
3193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3195 esac
3197 done
3198 if $ac_cache_corrupted; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3203 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3205 ## -------------------- ##
3206 ## Main body of script. ##
3207 ## -------------------- ##
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 ac_aux_dir=
3218 for ac_dir in build-aux "$srcdir"/build-aux; do
3219 if test -f "$ac_dir/install-sh"; then
3220 ac_aux_dir=$ac_dir
3221 ac_install_sh="$ac_aux_dir/install-sh -c"
3222 break
3223 elif test -f "$ac_dir/install.sh"; then
3224 ac_aux_dir=$ac_dir
3225 ac_install_sh="$ac_aux_dir/install.sh -c"
3226 break
3227 elif test -f "$ac_dir/shtool"; then
3228 ac_aux_dir=$ac_dir
3229 ac_install_sh="$ac_aux_dir/shtool install -c"
3230 break
3232 done
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 # We don't want -g -O2 by default in CFLAGS
3248 : ${CFLAGS=""}
3250 # Checks for host and target systems.
3251 # Make sure we can run config.sub.
3252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3253 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3256 $as_echo_n "checking build system type... " >&6; }
3257 if ${ac_cv_build+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 ac_build_alias=$build_alias
3261 test "x$ac_build_alias" = x &&
3262 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3263 test "x$ac_build_alias" = x &&
3264 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3270 $as_echo "$ac_cv_build" >&6; }
3271 case $ac_cv_build in
3272 *-*-*) ;;
3273 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3274 esac
3275 build=$ac_cv_build
3276 ac_save_IFS=$IFS; IFS='-'
3277 set x $ac_cv_build
3278 shift
3279 build_cpu=$1
3280 build_vendor=$2
3281 shift; shift
3282 # Remember, the first character of IFS is used to create $*,
3283 # except with old shells:
3284 build_os=$*
3285 IFS=$ac_save_IFS
3286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3290 $as_echo_n "checking host system type... " >&6; }
3291 if ${ac_cv_host+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test "x$host_alias" = x; then
3295 ac_cv_host=$ac_cv_build
3296 else
3297 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3298 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3303 $as_echo "$ac_cv_host" >&6; }
3304 case $ac_cv_host in
3305 *-*-*) ;;
3306 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3307 esac
3308 host=$ac_cv_host
3309 ac_save_IFS=$IFS; IFS='-'
3310 set x $ac_cv_host
3311 shift
3312 host_cpu=$1
3313 host_vendor=$2
3314 shift; shift
3315 # Remember, the first character of IFS is used to create $*,
3316 # except with old shells:
3317 host_os=$*
3318 IFS=$ac_save_IFS
3319 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3323 $as_echo_n "checking target system type... " >&6; }
3324 if ${ac_cv_target+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test "x$target_alias" = x; then
3328 ac_cv_target=$ac_cv_host
3329 else
3330 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3331 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3336 $as_echo "$ac_cv_target" >&6; }
3337 case $ac_cv_target in
3338 *-*-*) ;;
3339 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3340 esac
3341 target=$ac_cv_target
3342 ac_save_IFS=$IFS; IFS='-'
3343 set x $ac_cv_target
3344 shift
3345 target_cpu=$1
3346 target_vendor=$2
3347 shift; shift
3348 # Remember, the first character of IFS is used to create $*,
3349 # except with old shells:
3350 target_os=$*
3351 IFS=$ac_save_IFS
3352 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3355 # The aliases save the names the user supplied, while $host etc.
3356 # will get canonicalized.
3357 test -n "$target_alias" &&
3358 test "$program_prefix$program_suffix$program_transform_name" = \
3359 NONENONEs,x,x, &&
3360 program_prefix=${target_alias}-
3362 am__api_version='1.11'
3364 # Find a good install program. We prefer a C program (faster),
3365 # so one script is as good as another. But avoid the broken or
3366 # incompatible versions:
3367 # SysV /etc/install, /usr/sbin/install
3368 # SunOS /usr/etc/install
3369 # IRIX /sbin/install
3370 # AIX /bin/install
3371 # AmigaOS /C/install, which installs bootblocks on floppy discs
3372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3375 # OS/2's system install, which has a completely different semantic
3376 # ./install, which can be erroneously created by make from ./install.sh.
3377 # Reject install programs that cannot install multiple files.
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3380 if test -z "$INSTALL"; then
3381 if ${ac_cv_path_install+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 # Account for people who put trailing slashes in PATH elements.
3390 case $as_dir/ in #((
3391 ./ | .// | /[cC]/* | \
3392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3394 /usr/ucb/* ) ;;
3396 # OSF1 and SCO ODT 3.0 have their own names for install.
3397 # Don't use installbsd from OSF since it installs stuff as root
3398 # by default.
3399 for ac_prog in ginstall scoinst install; do
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3402 if test $ac_prog = install &&
3403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3404 # AIX install. It has an incompatible calling convention.
3406 elif test $ac_prog = install &&
3407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3408 # program-specific install script used by HP pwplus--don't use.
3410 else
3411 rm -rf conftest.one conftest.two conftest.dir
3412 echo one > conftest.one
3413 echo two > conftest.two
3414 mkdir conftest.dir
3415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3416 test -s conftest.one && test -s conftest.two &&
3417 test -s conftest.dir/conftest.one &&
3418 test -s conftest.dir/conftest.two
3419 then
3420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3421 break 3
3425 done
3426 done
3428 esac
3430 done
3431 IFS=$as_save_IFS
3433 rm -rf conftest.one conftest.two conftest.dir
3436 if test "${ac_cv_path_install+set}" = set; then
3437 INSTALL=$ac_cv_path_install
3438 else
3439 # As a last resort, use the slow shell script. Don't cache a
3440 # value for INSTALL within a source directory, because that will
3441 # break other packages using the cache if that directory is
3442 # removed, or if the value is a relative name.
3443 INSTALL=$ac_install_sh
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3447 $as_echo "$INSTALL" >&6; }
3449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3450 # It thinks the first close brace ends the variable substitution.
3451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3458 $as_echo_n "checking whether build environment is sane... " >&6; }
3459 # Just in case
3460 sleep 1
3461 echo timestamp > conftest.file
3462 # Reject unsafe characters in $srcdir or the absolute working directory
3463 # name. Accept space and tab only in the latter.
3464 am_lf='
3466 case `pwd` in
3467 *[\\\"\#\$\&\'\`$am_lf]*)
3468 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3469 esac
3470 case $srcdir in
3471 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3472 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3473 esac
3475 # Do `set' in a subshell so we don't clobber the current shell's
3476 # arguments. Must try -L first in case configure is actually a
3477 # symlink; some systems play weird games with the mod time of symlinks
3478 # (eg FreeBSD returns the mod time of the symlink's containing
3479 # directory).
3480 if (
3481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3482 if test "$*" = "X"; then
3483 # -L didn't work.
3484 set X `ls -t "$srcdir/configure" conftest.file`
3486 rm -f conftest.file
3487 if test "$*" != "X $srcdir/configure conftest.file" \
3488 && test "$*" != "X conftest.file $srcdir/configure"; then
3490 # If neither matched, then we have a broken ls. This can happen
3491 # if, for instance, CONFIG_SHELL is bash and it inherits a
3492 # broken ls alias from the environment. This has actually
3493 # happened. Such a system could not be considered "sane".
3494 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3495 alias in your environment" "$LINENO" 5
3498 test "$2" = conftest.file
3500 then
3501 # Ok.
3503 else
3504 as_fn_error $? "newly created file is older than distributed files!
3505 Check your system clock" "$LINENO" 5
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3508 $as_echo "yes" >&6; }
3509 test "$program_prefix" != NONE &&
3510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3511 # Use a double $ so make ignores it.
3512 test "$program_suffix" != NONE &&
3513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3514 # Double any \ or $.
3515 # By default was `s,x,x', remove it if useless.
3516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3519 # expand $ac_aux_dir to an absolute path
3520 am_aux_dir=`cd $ac_aux_dir && pwd`
3522 if test x"${MISSING+set}" != xset; then
3523 case $am_aux_dir in
3524 *\ * | *\ *)
3525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3527 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3528 esac
3530 # Use eval to expand $SHELL
3531 if eval "$MISSING --run true"; then
3532 am_missing_run="$MISSING --run "
3533 else
3534 am_missing_run=
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3536 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3539 if test x"${install_sh}" != xset; then
3540 case $am_aux_dir in
3541 *\ * | *\ *)
3542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3544 install_sh="\${SHELL} $am_aux_dir/install-sh"
3545 esac
3548 # Installed binaries are usually stripped using `strip' when the user
3549 # run `make install-strip'. However `strip' might not be the right
3550 # tool to use in cross-compilation environments, therefore Automake
3551 # will honor the `STRIP' environment variable to overrule this program.
3552 if test "$cross_compiling" != no; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}strip; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_STRIP+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$STRIP"; then
3562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 STRIP=$ac_cv_prog_STRIP
3582 if test -n "$STRIP"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3584 $as_echo "$STRIP" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3592 if test -z "$ac_cv_prog_STRIP"; then
3593 ac_ct_STRIP=$STRIP
3594 # Extract the first word of "strip", so it can be a program name with args.
3595 set dummy strip; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -n "$ac_ct_STRIP"; then
3602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_STRIP="strip"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3615 done
3616 done
3617 IFS=$as_save_IFS
3621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3622 if test -n "$ac_ct_STRIP"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3624 $as_echo "$ac_ct_STRIP" >&6; }
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3630 if test "x$ac_ct_STRIP" = x; then
3631 STRIP=":"
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 STRIP=$ac_ct_STRIP
3641 else
3642 STRIP="$ac_cv_prog_STRIP"
3646 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3650 if test -z "$MKDIR_P"; then
3651 if ${ac_cv_path_mkdir+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in mkdir gmkdir; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3663 'mkdir (GNU coreutils) '* | \
3664 'mkdir (coreutils) '* | \
3665 'mkdir (fileutils) '4.1*)
3666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3667 break 3;;
3668 esac
3669 done
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 test -d ./--version && rmdir ./--version
3677 if test "${ac_cv_path_mkdir+set}" = set; then
3678 MKDIR_P="$ac_cv_path_mkdir -p"
3679 else
3680 # As a last resort, use the slow shell script. Don't cache a
3681 # value for MKDIR_P within a source directory, because that will
3682 # break other packages using the cache if that directory is
3683 # removed, or if the value is a relative name.
3684 MKDIR_P="$ac_install_sh -d"
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3688 $as_echo "$MKDIR_P" >&6; }
3691 mkdir_p="$MKDIR_P"
3692 case $mkdir_p in
3693 [\\/$]* | ?:[\\/]*) ;;
3694 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3695 esac
3697 for ac_prog in gawk mawk nawk awk
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_AWK+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$AWK"; then
3707 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_AWK="$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 AWK=$ac_cv_prog_AWK
3727 if test -n "$AWK"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3729 $as_echo "$AWK" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$AWK" && break
3737 done
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3740 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3741 set x ${MAKE-make}
3742 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3743 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 cat >conftest.make <<\_ACEOF
3747 SHELL = /bin/sh
3748 all:
3749 @echo '@@@%%%=$(MAKE)=@@@%%%'
3750 _ACEOF
3751 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3752 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3753 *@@@%%%=?*=@@@%%%*)
3754 eval ac_cv_prog_make_${ac_make}_set=yes;;
3756 eval ac_cv_prog_make_${ac_make}_set=no;;
3757 esac
3758 rm -f conftest.make
3760 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762 $as_echo "yes" >&6; }
3763 SET_MAKE=
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 SET_MAKE="MAKE=${MAKE-make}"
3770 rm -rf .tst 2>/dev/null
3771 mkdir .tst 2>/dev/null
3772 if test -d .tst; then
3773 am__leading_dot=.
3774 else
3775 am__leading_dot=_
3777 rmdir .tst 2>/dev/null
3779 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3780 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3781 # is not polluted with repeated "-I."
3782 am__isrc=' -I$(srcdir)'
3783 # test to see if srcdir already configured
3784 if test -f $srcdir/config.status; then
3785 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3789 # test whether we have cygpath
3790 if test -z "$CYGPATH_W"; then
3791 if (cygpath --version) >/dev/null 2>/dev/null; then
3792 CYGPATH_W='cygpath -w'
3793 else
3794 CYGPATH_W=echo
3799 # Define the identity of the package.
3800 PACKAGE='grub'
3801 VERSION='2.00'
3804 cat >>confdefs.h <<_ACEOF
3805 #define PACKAGE "$PACKAGE"
3806 _ACEOF
3809 cat >>confdefs.h <<_ACEOF
3810 #define VERSION "$VERSION"
3811 _ACEOF
3813 # Some tools Automake needs.
3815 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3818 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3821 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3824 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3827 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3829 # We need awk for the "check" target. The system "awk" is bad on
3830 # some platforms.
3831 # Always define AMTAR for backward compatibility.
3833 AMTAR=${AMTAR-"${am_missing_run}tar"}
3835 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3843 ac_config_headers="$ac_config_headers config-util.h"
3846 # Program name transformations
3849 # Optimization flag. Allow user to override.
3850 if test "x$TARGET_CFLAGS" = x; then
3851 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
3854 # Default HOST_CPPFLAGS
3855 HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
3856 HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
3857 HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
3858 HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
3859 HOST_CPPFLAGS="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
3861 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
3862 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
3863 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
3865 case "$target_cpu" in
3866 i[3456]86) target_cpu=i386 ;;
3867 amd64) target_cpu=x86_64 ;;
3868 sparc) target_cpu=sparc64 ;;
3869 mipsel|mips64el)
3870 target_cpu=mipsel;
3871 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
3873 mips|mips64)
3874 target_cpu=mips;
3875 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
3877 esac
3879 # Specify the platform (such as firmware).
3881 # Check whether --with-platform was given.
3882 if test "${with_platform+set}" = set; then :
3883 withval=$with_platform;
3887 # Guess the platform if not specified.
3888 if test "x$with_platform" = x; then
3889 case "$target_cpu"-"$target_vendor" in
3890 i386-apple) platform=efi ;;
3891 i386-*) platform=pc ;;
3892 x86_64-apple) platform=efi ;;
3893 x86_64-*) platform=pc ;;
3894 powerpc-*) platform=ieee1275 ;;
3895 powerpc64-*) platform=ieee1275 ;;
3896 sparc64-*) platform=ieee1275 ;;
3897 mipsel-*) platform=loongson ;;
3898 mips-*) platform=arc ;;
3899 ia64-*) platform=efi ;;
3900 *) as_fn_error $? "unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
3901 esac
3902 else
3903 platform="$with_platform"
3906 case "$target_cpu"-"$platform" in
3907 x86_64-efi) ;;
3908 x86_64-emu) ;;
3909 x86_64-*) target_cpu=i386 ;;
3910 powerpc64-ieee1275) target_cpu=powerpc ;;
3911 esac
3913 # Check if the platform is supported, make final adjustments.
3914 case "$target_cpu"-"$platform" in
3915 i386-efi) ;;
3916 x86_64-efi) ;;
3917 i386-pc) ;;
3918 i386-multiboot) ;;
3919 i386-coreboot) ;;
3920 i386-linuxbios) platform=coreboot ;;
3921 i386-ieee1275) ;;
3922 i386-qemu) ;;
3923 powerpc-ieee1275) ;;
3924 sparc64-ieee1275) ;;
3925 ia64-efi) ;;
3926 mips-qemu_mips) ;;
3927 mips-qemu-mips) platform=qemu_mips;;
3928 mips-arc) ;;
3929 mipsel-qemu_mips) ;;
3930 mipsel-qemu-mips) platform=qemu_mips;;
3931 mipsel-yeeloong) platform=loongson ;;
3932 mipsel-fuloong) platform=loongson ;;
3933 mipsel-loongson) ;;
3934 *-emu) ;;
3935 *) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
3936 esac
3938 case "$target_cpu" in
3939 i386 | powerpc) target_m32=1 ;;
3940 x86_64 | sparc64) target_m64=1 ;;
3941 esac
3943 case "$target_os" in
3944 mingw32*) target_os=cygwin ;;
3945 esac
3947 # This normalizes the names, and creates a new variable ("host_kernel")
3948 # while at it, since the mapping is not always 1:1 (e.g. different OSes
3949 # using the same kernel type).
3950 case "$host_os" in
3951 gnu*) host_kernel=hurd ;;
3952 linux*) host_kernel=linux ;;
3953 freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
3954 netbsd*) host_kernel=netbsd ;;
3955 solaris*) host_kernel=illumos ;;
3956 darwin*) host_kernel=xnu ;;
3957 cygwin) host_kernel=windows ;;
3958 esac
3960 case "$platform" in
3961 coreboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
3962 multiboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
3963 efi) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
3964 ieee1275) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
3965 qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
3966 pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
3967 emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
3968 loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3969 qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3970 arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
3971 esac
3972 case "$target_cpu" in
3973 mips |mipsel) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
3974 sparc64) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
3975 esac
3976 if test x${target_cpu} = xmipsel ; then
3977 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
3978 else
3979 machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,` -DGRUB_TARGET_CPU_`echo ${target_cpu} | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`=1"
3982 TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
3991 # Define default variables
3993 have_with_bootdir=n
3995 # Check whether --with-bootdir was given.
3996 if test "${with_bootdir+set}" = set; then :
3997 withval=$with_bootdir; have_with_bootdir=y
3998 else
3999 have_with_bootdir=n
4002 if test x$have_with_bootdir = xy; then
4003 bootdirname="$with_bootdir"
4004 else
4005 case "$host_os" in
4006 netbsd* | openbsd*)
4007 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4008 bootdirname='' ;;
4009 *) bootdirname='boot' ;;
4010 esac
4015 cat >>confdefs.h <<_ACEOF
4016 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4017 _ACEOF
4021 # Check whether --with-grubdir was given.
4022 if test "${with_grubdir+set}" = set; then :
4023 withval=$with_grubdir; grubdirname="$with_grubdir"
4024 else
4025 grubdirname="$PACKAGE"
4031 cat >>confdefs.h <<_ACEOF
4032 #define GRUB_DIR_NAME "$grubdirname"
4033 _ACEOF
4037 # Checks for build programs.
4040 # Although cmp is listed in the GNU Coding Standards as a command which
4041 # can used directly, OpenBSD lacks cmp in the default installation.
4042 for ac_prog in cmp
4044 # Extract the first word of "$ac_prog", so it can be a program name with args.
4045 set dummy $ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CMP+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$CMP"; then
4052 ac_cv_prog_CMP="$CMP" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_CMP="$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4065 done
4066 done
4067 IFS=$as_save_IFS
4071 CMP=$ac_cv_prog_CMP
4072 if test -n "$CMP"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4074 $as_echo "$CMP" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4081 test -n "$CMP" && break
4082 done
4084 if test "x$CMP" = x; then
4085 as_fn_error $? "cmp is not found" "$LINENO" 5
4088 for ac_prog in bison
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_YACC+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$YACC"; then
4098 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_YACC="$ac_prog"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4111 done
4112 done
4113 IFS=$as_save_IFS
4117 YACC=$ac_cv_prog_YACC
4118 if test -n "$YACC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4120 $as_echo "$YACC" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4127 test -n "$YACC" && break
4128 done
4130 if test "x$YACC" = x; then
4131 as_fn_error $? "bison is not found" "$LINENO" 5
4134 FONT_SOURCE=
4136 for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
4137 for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
4138 if test -f "$dir/unifont.$ext"; then
4139 FONT_SOURCE="$dir/unifont.$ext"
4140 break 2
4142 done
4143 done
4145 if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips); then
4146 as_fn_error $? "qemu and loongson ports need unifont" "$LINENO" 5
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_RANLIB+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$RANLIB"; then
4160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4175 IFS=$as_save_IFS
4179 RANLIB=$ac_cv_prog_RANLIB
4180 if test -n "$RANLIB"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4182 $as_echo "$RANLIB" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$ac_cv_prog_RANLIB"; then
4191 ac_ct_RANLIB=$RANLIB
4192 # Extract the first word of "ranlib", so it can be a program name with args.
4193 set dummy ranlib; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$ac_ct_RANLIB"; then
4200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_RANLIB="ranlib"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4213 done
4214 done
4215 IFS=$as_save_IFS
4219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4220 if test -n "$ac_ct_RANLIB"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4222 $as_echo "$ac_ct_RANLIB" >&6; }
4223 else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4228 if test "x$ac_ct_RANLIB" = x; then
4229 RANLIB=":"
4230 else
4231 case $cross_compiling:$ac_tool_warned in
4232 yes:)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4235 ac_tool_warned=yes ;;
4236 esac
4237 RANLIB=$ac_ct_RANLIB
4239 else
4240 RANLIB="$ac_cv_prog_RANLIB"
4244 for ac_prog in gawk mawk nawk awk
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_AWK+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$AWK"; then
4254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_AWK="$ac_prog"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4269 IFS=$as_save_IFS
4273 AWK=$ac_cv_prog_AWK
4274 if test -n "$AWK"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4276 $as_echo "$AWK" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 test -n "$AWK" && break
4284 done
4286 DEPDIR="${am__leading_dot}deps"
4288 ac_config_commands="$ac_config_commands depfiles"
4291 am_make=${MAKE-make}
4292 cat > confinc << 'END'
4293 am__doit:
4294 @echo this is the am__doit target
4295 .PHONY: am__doit
4297 # If we don't find an include directive, just comment out the code.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4299 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4300 am__include="#"
4301 am__quote=
4302 _am_result=none
4303 # First try GNU make style include.
4304 echo "include confinc" > confmf
4305 # Ignore all kinds of additional output from `make'.
4306 case `$am_make -s -f confmf 2> /dev/null` in #(
4307 *the\ am__doit\ target*)
4308 am__include=include
4309 am__quote=
4310 _am_result=GNU
4312 esac
4313 # Now try BSD make style include.
4314 if test "$am__include" = "#"; then
4315 echo '.include "confinc"' > confmf
4316 case `$am_make -s -f confmf 2> /dev/null` in #(
4317 *the\ am__doit\ target*)
4318 am__include=.include
4319 am__quote="\""
4320 _am_result=BSD
4322 esac
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4327 $as_echo "$_am_result" >&6; }
4328 rm -f confinc confmf
4330 # Check whether --enable-dependency-tracking was given.
4331 if test "${enable_dependency_tracking+set}" = set; then :
4332 enableval=$enable_dependency_tracking;
4335 if test "x$enable_dependency_tracking" != xno; then
4336 am_depcomp="$ac_aux_dir/depcomp"
4337 AMDEPBACKSLASH='\'
4339 if test "x$enable_dependency_tracking" != xno; then
4340 AMDEP_TRUE=
4341 AMDEP_FALSE='#'
4342 else
4343 AMDEP_TRUE='#'
4344 AMDEP_FALSE=
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_CC+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$CC"; then
4362 ac_cv_prog_CC="$CC" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 CC=$ac_cv_prog_CC
4382 if test -n "$CC"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384 $as_echo "$CC" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 if test -z "$ac_cv_prog_CC"; then
4393 ac_ct_CC=$CC
4394 # Extract the first word of "gcc", so it can be a program name with args.
4395 set dummy gcc; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$ac_ct_CC"; then
4402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CC="gcc"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4424 $as_echo "$ac_ct_CC" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4430 if test "x$ac_ct_CC" = x; then
4431 CC=""
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434 yes:)
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437 ac_tool_warned=yes ;;
4438 esac
4439 CC=$ac_ct_CC
4441 else
4442 CC="$ac_cv_prog_CC"
4445 if test -z "$CC"; then
4446 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}cc; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_CC+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC="$CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_CC="${ac_tool_prefix}cc"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 CC=$ac_cv_prog_CC
4475 if test -n "$CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4477 $as_echo "$CC" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4486 if test -z "$CC"; then
4487 # Extract the first word of "cc", so it can be a program name with args.
4488 set dummy cc; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_CC+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -n "$CC"; then
4495 ac_cv_prog_CC="$CC" # Let the user override the test.
4496 else
4497 ac_prog_rejected=no
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4506 ac_prog_rejected=yes
4507 continue
4509 ac_cv_prog_CC="cc"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4517 if test $ac_prog_rejected = yes; then
4518 # We found a bogon in the path, so make sure we never use it.
4519 set dummy $ac_cv_prog_CC
4520 shift
4521 if test $# != 0; then
4522 # We chose a different compiler from the bogus one.
4523 # However, it has the same basename, so the bogon will be chosen
4524 # first if we set CC to just the basename; use the full file name.
4525 shift
4526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4531 CC=$ac_cv_prog_CC
4532 if test -n "$CC"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534 $as_echo "$CC" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4542 if test -z "$CC"; then
4543 if test -n "$ac_tool_prefix"; then
4544 for ac_prog in cl.exe
4546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_CC+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 CC=$ac_cv_prog_CC
4574 if test -n "$CC"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4576 $as_echo "$CC" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$CC" && break
4584 done
4586 if test -z "$CC"; then
4587 ac_ct_CC=$CC
4588 for ac_prog in cl.exe
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$ac_ct_CC"; then
4598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_ac_ct_CC="$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4618 if test -n "$ac_ct_CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4620 $as_echo "$ac_ct_CC" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 test -n "$ac_ct_CC" && break
4628 done
4630 if test "x$ac_ct_CC" = x; then
4631 CC=""
4632 else
4633 case $cross_compiling:$ac_tool_warned in
4634 yes:)
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned=yes ;;
4638 esac
4639 CC=$ac_ct_CC
4646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "no acceptable C compiler found in \$PATH
4649 See \`config.log' for more details" "$LINENO" 5; }
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4653 set X $ac_compile
4654 ac_compiler=$2
4655 for ac_option in --version -v -V -qversion; do
4656 { { ac_try="$ac_compiler $ac_option >&5"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4664 ac_status=$?
4665 if test -s conftest.err; then
4666 sed '10a\
4667 ... rest of stderr output deleted ...
4668 10q' conftest.err >conftest.er1
4669 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4674 done
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4680 main (void)
4684 return 0;
4686 _ACEOF
4687 ac_clean_files_save=$ac_clean_files
4688 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4689 # Try to create an executable without -o first, disregard a.out.
4690 # It will help us diagnose broken compilers, and finding out an intuition
4691 # of exeext.
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4693 $as_echo_n "checking whether the C compiler works... " >&6; }
4694 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4696 # The possible output files:
4697 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4699 ac_rmfiles=
4700 for ac_file in $ac_files
4702 case $ac_file in
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4704 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4705 esac
4706 done
4707 rm -f $ac_rmfiles
4709 if { { ac_try="$ac_link_default"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_link_default") 2>&5
4717 ac_status=$?
4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }; then :
4720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4723 # so that the user can short-circuit this test for compilers unknown to
4724 # Autoconf.
4725 for ac_file in $ac_files ''
4727 test -f "$ac_file" || continue
4728 case $ac_file in
4729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4731 [ab].out )
4732 # We found the default executable, but exeext='' is most
4733 # certainly right.
4734 break;;
4735 *.* )
4736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4737 then :; else
4738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4740 # We set ac_cv_exeext here because the later test for it is not
4741 # safe: cross compilers may not add the suffix if given an `-o'
4742 # argument, so we may need to know it at that point already.
4743 # Even if this section looks crufty: it has the advantage of
4744 # actually working.
4745 break;;
4747 break;;
4748 esac
4749 done
4750 test "$ac_cv_exeext" = no && ac_cv_exeext=
4752 else
4753 ac_file=''
4755 if test -z "$ac_file"; then :
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 $as_echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4763 as_fn_error 77 "C compiler cannot create executables
4764 See \`config.log' for more details" "$LINENO" 5; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4767 $as_echo "yes" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4770 $as_echo_n "checking for C compiler default output file name... " >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4772 $as_echo "$ac_file" >&6; }
4773 ac_exeext=$ac_cv_exeext
4775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4776 ac_clean_files=$ac_clean_files_save
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4778 $as_echo_n "checking for suffix of executables... " >&6; }
4779 if { { ac_try="$ac_link"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785 $as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_link") 2>&5
4787 ac_status=$?
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }; then :
4790 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4792 # work properly (i.e., refer to `conftest.exe'), while it won't with
4793 # `rm'.
4794 for ac_file in conftest.exe conftest conftest.*; do
4795 test -f "$ac_file" || continue
4796 case $ac_file in
4797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4799 break;;
4800 * ) break;;
4801 esac
4802 done
4803 else
4804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4806 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4807 See \`config.log' for more details" "$LINENO" 5; }
4809 rm -f conftest conftest$ac_cv_exeext
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4811 $as_echo "$ac_cv_exeext" >&6; }
4813 rm -f conftest.$ac_ext
4814 EXEEXT=$ac_cv_exeext
4815 ac_exeext=$EXEEXT
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <stdio.h>
4820 main (void)
4822 FILE *f = fopen ("conftest.out", "w");
4823 return ferror (f) || fclose (f) != 0;
4826 return 0;
4828 _ACEOF
4829 ac_clean_files="$ac_clean_files conftest.out"
4830 # Check that the compiler produces executables we can run. If not, either
4831 # the compiler is broken, or we cross compile.
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4833 $as_echo_n "checking whether we are cross compiling... " >&6; }
4834 if test "$cross_compiling" != yes; then
4835 { { ac_try="$ac_link"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4841 $as_echo "$ac_try_echo"; } >&5
4842 (eval "$ac_link") 2>&5
4843 ac_status=$?
4844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4845 test $ac_status = 0; }
4846 if { ac_try='./conftest$ac_cv_exeext'
4847 { { case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850 esac
4851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_try") 2>&5
4854 ac_status=$?
4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }; }; then
4857 cross_compiling=no
4858 else
4859 if test "$cross_compiling" = maybe; then
4860 cross_compiling=yes
4861 else
4862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 as_fn_error $? "cannot run C compiled programs.
4865 If you meant to cross compile, use \`--host'.
4866 See \`config.log' for more details" "$LINENO" 5; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4871 $as_echo "$cross_compiling" >&6; }
4873 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4874 ac_clean_files=$ac_clean_files_save
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4876 $as_echo_n "checking for suffix of object files... " >&6; }
4877 if ${ac_cv_objext+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4884 main (void)
4888 return 0;
4890 _ACEOF
4891 rm -f conftest.o conftest.obj
4892 if { { ac_try="$ac_compile"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898 $as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_compile") 2>&5
4900 ac_status=$?
4901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }; then :
4903 for ac_file in conftest.o conftest.obj conftest.*; do
4904 test -f "$ac_file" || continue;
4905 case $ac_file in
4906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4908 break;;
4909 esac
4910 done
4911 else
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 as_fn_error $? "cannot compute suffix of object files: cannot compile
4918 See \`config.log' for more details" "$LINENO" 5; }
4920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4923 $as_echo "$ac_cv_objext" >&6; }
4924 OBJEXT=$ac_cv_objext
4925 ac_objext=$OBJEXT
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4928 if ${ac_cv_c_compiler_gnu+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4935 main (void)
4937 #ifndef __GNUC__
4938 choke me
4939 #endif
4942 return 0;
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_compiler_gnu=yes
4947 else
4948 ac_compiler_gnu=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4957 GCC=yes
4958 else
4959 GCC=
4961 ac_test_CFLAGS=${CFLAGS+set}
4962 ac_save_CFLAGS=$CFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4965 if ${ac_cv_prog_cc_g+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 ac_save_c_werror_flag=$ac_c_werror_flag
4969 ac_c_werror_flag=yes
4970 ac_cv_prog_cc_g=no
4971 CFLAGS="-g"
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4976 main (void)
4980 return 0;
4982 _ACEOF
4983 if ac_fn_c_try_compile "$LINENO"; then :
4984 ac_cv_prog_cc_g=yes
4985 else
4986 CFLAGS=""
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main (void)
4995 return 0;
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"; then :
5000 else
5001 ac_c_werror_flag=$ac_save_c_werror_flag
5002 CFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main (void)
5011 return 0;
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5015 ac_cv_prog_cc_g=yes
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_c_werror_flag=$ac_save_c_werror_flag
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5025 $as_echo "$ac_cv_prog_cc_g" >&6; }
5026 if test "$ac_test_CFLAGS" = set; then
5027 CFLAGS=$ac_save_CFLAGS
5028 elif test $ac_cv_prog_cc_g = yes; then
5029 if test "$GCC" = yes; then
5030 CFLAGS="-g -O2"
5031 else
5032 CFLAGS="-g"
5034 else
5035 if test "$GCC" = yes; then
5036 CFLAGS="-O2"
5037 else
5038 CFLAGS=
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5043 if ${ac_cv_prog_cc_c89+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 ac_cv_prog_cc_c89=no
5047 ac_save_CC=$CC
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <stdarg.h>
5051 #include <stdio.h>
5052 #include <sys/types.h>
5053 #include <sys/stat.h>
5054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5055 struct buf { int x; };
5056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5057 static char *e (p, i)
5058 char **p;
5059 int i;
5061 return p[i];
5063 static char *f (char * (*g) (char **, int), char **p, ...)
5065 char *s;
5066 va_list v;
5067 va_start (v,p);
5068 s = g (p, va_arg (v,int));
5069 va_end (v);
5070 return s;
5073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5074 function prototypes and stuff, but not '\xHH' hex character constants.
5075 These don't provoke an error unfortunately, instead are silently treated
5076 as 'x'. The following induces an error, until -std is added to get
5077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5078 array size at least. It's necessary to write '\x00'==0 to get something
5079 that's true only with -std. */
5080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5083 inside strings and character constants. */
5084 #define FOO(x) 'x'
5085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5087 int test (int i, double x);
5088 struct s1 {int (*f) (int a);};
5089 struct s2 {int (*f) (double a);};
5090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5091 int argc;
5092 char **argv;
5094 main (void)
5096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5098 return 0;
5100 _ACEOF
5101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5104 CC="$ac_save_CC $ac_arg"
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_cv_prog_cc_c89=$ac_arg
5108 rm -f core conftest.err conftest.$ac_objext
5109 test "x$ac_cv_prog_cc_c89" != "xno" && break
5110 done
5111 rm -f conftest.$ac_ext
5112 CC=$ac_save_CC
5115 # AC_CACHE_VAL
5116 case "x$ac_cv_prog_cc_c89" in
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5119 $as_echo "none needed" >&6; } ;;
5120 xno)
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5122 $as_echo "unsupported" >&6; } ;;
5124 CC="$CC $ac_cv_prog_cc_c89"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5127 esac
5128 if test "x$ac_cv_prog_cc_c89" != xno; then :
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5141 $as_echo_n "checking dependency style of $depcc... " >&6; }
5142 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D' -- because `-MD' means `put the output
5150 # in D'.
5151 mkdir conftest.dir
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5155 cd conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5161 # directory.
5162 mkdir sub
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5168 am__universal=false
5169 case " $depcc " in #(
5170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5171 esac
5173 for depmode in $am_compiler_list; do
5174 # Setup a source with many dependencies, because some compilers
5175 # like to wrap large dependency lists on column 80 (with \), and
5176 # we should not choose a depcomp mode which is confused by this.
5178 # We need to recreate these files for each test, as the compiler may
5179 # overwrite some of them when testing with obscure command lines.
5180 # This happens at least with the AIX C compiler.
5181 : > sub/conftest.c
5182 for i in 1 2 3 4 5 6; do
5183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5185 # Solaris 8's {/usr,}/bin/sh.
5186 touch sub/conftst$i.h
5187 done
5188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5191 # mode. It turns out that the SunPro C++ compiler does not properly
5192 # handle `-M -o', and we need to detect this. Also, some Intel
5193 # versions had trouble with output in subdirs
5194 am__obj=sub/conftest.${OBJEXT-o}
5195 am__minus_obj="-o $am__obj"
5196 case $depmode in
5197 gcc)
5198 # This depmode causes a compiler race in universal mode.
5199 test "$am__universal" = false || continue
5201 nosideeffect)
5202 # after this tag, mechanisms are not by side-effect, so they'll
5203 # only be used when explicitly requested
5204 if test "x$enable_dependency_tracking" = xyes; then
5205 continue
5206 else
5207 break
5210 msvisualcpp | msvcmsys)
5211 # This compiler won't grok `-c -o', but also, the minuso test has
5212 # not run yet. These depmodes are late enough in the game, and
5213 # so weak that their functioning should not be impacted.
5214 am__obj=conftest.${OBJEXT-o}
5215 am__minus_obj=
5217 none) break ;;
5218 esac
5219 if depmode=$depmode \
5220 source=sub/conftest.c object=$am__obj \
5221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5223 >/dev/null 2>conftest.err &&
5224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5228 # icc doesn't choke on unknown options, it will just issue warnings
5229 # or remarks (even with -Werror). So we grep stderr for any message
5230 # that says an option was ignored or not supported.
5231 # When given -MP, icc 7.0 and 7.1 complain thusly:
5232 # icc: Command line warning: ignoring option '-M'; no argument required
5233 # The diagnosis changed in icc 8.0:
5234 # icc: Command line remark: option '-MP' not supported
5235 if (grep 'ignoring option' conftest.err ||
5236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5237 am_cv_CC_dependencies_compiler_type=$depmode
5238 break
5241 done
5243 cd ..
5244 rm -rf conftest.dir
5245 else
5246 am_cv_CC_dependencies_compiler_type=none
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5255 test "x$enable_dependency_tracking" != xno \
5256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5257 am__fastdepCC_TRUE=
5258 am__fastdepCC_FALSE='#'
5259 else
5260 am__fastdepCC_TRUE='#'
5261 am__fastdepCC_FALSE=
5266 for ac_prog in flex lex
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_LEX+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$LEX"; then
5276 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_LEX="$ac_prog"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 LEX=$ac_cv_prog_LEX
5296 if test -n "$LEX"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5298 $as_echo "$LEX" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5305 test -n "$LEX" && break
5306 done
5307 test -n "$LEX" || LEX=":"
5309 if test "x$LEX" != "x:"; then
5310 cat >conftest.l <<_ACEOF
5312 a { ECHO; }
5313 b { REJECT; }
5314 c { yymore (); }
5315 d { yyless (1); }
5316 e { yyless (input () != 0); }
5317 f { unput (yytext[0]); }
5318 . { BEGIN INITIAL; }
5320 #ifdef YYTEXT_POINTER
5321 extern char *yytext;
5322 #endif
5324 main (void)
5326 return ! yylex () + ! yywrap ();
5328 _ACEOF
5329 { { ac_try="$LEX conftest.l"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335 $as_echo "$ac_try_echo"; } >&5
5336 (eval "$LEX conftest.l") 2>&5
5337 ac_status=$?
5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339 test $ac_status = 0; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5341 $as_echo_n "checking lex output file root... " >&6; }
5342 if ${ac_cv_prog_lex_root+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5346 if test -f lex.yy.c; then
5347 ac_cv_prog_lex_root=lex.yy
5348 elif test -f lexyy.c; then
5349 ac_cv_prog_lex_root=lexyy
5350 else
5351 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5355 $as_echo "$ac_cv_prog_lex_root" >&6; }
5356 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5358 if test -z "${LEXLIB+set}"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5360 $as_echo_n "checking lex library... " >&6; }
5361 if ${ac_cv_lib_lex+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5365 ac_save_LIBS=$LIBS
5366 ac_cv_lib_lex='none needed'
5367 for ac_lib in '' -lfl -ll; do
5368 LIBS="$ac_lib $ac_save_LIBS"
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 `cat $LEX_OUTPUT_ROOT.c`
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 ac_cv_lib_lex=$ac_lib
5376 rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 test "$ac_cv_lib_lex" != 'none needed' && break
5379 done
5380 LIBS=$ac_save_LIBS
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5384 $as_echo "$ac_cv_lib_lex" >&6; }
5385 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5390 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5391 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 # POSIX says lex can declare yytext either as a pointer or an array; the
5395 # default is implementation-dependent. Figure out which it is, since
5396 # not all implementations provide the %pointer and %array declarations.
5397 ac_cv_prog_lex_yytext_pointer=no
5398 ac_save_LIBS=$LIBS
5399 LIBS="$LEXLIB $ac_save_LIBS"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5403 #define YYTEXT_POINTER 1
5404 `cat $LEX_OUTPUT_ROOT.c`
5405 _ACEOF
5406 if ac_fn_c_try_link "$LINENO"; then :
5407 ac_cv_prog_lex_yytext_pointer=yes
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_save_LIBS
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5415 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5416 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5418 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5421 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5424 for ac_prog in 'bison -y' byacc
5426 # Extract the first word of "$ac_prog", so it can be a program name with args.
5427 set dummy $ac_prog; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_YACC+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$YACC"; then
5434 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_YACC="$ac_prog"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 YACC=$ac_cv_prog_YACC
5454 if test -n "$YACC"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5456 $as_echo "$YACC" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 test -n "$YACC" && break
5464 done
5465 test -n "$YACC" || YACC="yacc"
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5468 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5469 set x ${MAKE-make}
5470 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5471 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 cat >conftest.make <<\_ACEOF
5475 SHELL = /bin/sh
5476 all:
5477 @echo '@@@%%%=$(MAKE)=@@@%%%'
5478 _ACEOF
5479 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5480 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5481 *@@@%%%=?*=@@@%%%*)
5482 eval ac_cv_prog_make_${ac_make}_set=yes;;
5484 eval ac_cv_prog_make_${ac_make}_set=no;;
5485 esac
5486 rm -f conftest.make
5488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5490 $as_echo "yes" >&6; }
5491 SET_MAKE=
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 SET_MAKE="MAKE=${MAKE-make}"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5500 $as_echo_n "checking whether ln -s works... " >&6; }
5501 LN_S=$as_ln_s
5502 if test "$LN_S" = "ln -s"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5507 $as_echo "no, using $LN_S" >&6; }
5511 if test "x$LEX" = "x:"; then
5512 as_fn_error $? "flex is not found" "$LINENO" 5
5513 else
5514 version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5515 if test -n "$version" -a "$version" -ge 20535; then
5517 else
5518 as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5522 # These are not a "must".
5523 for ac_prog in makeinfo true
5525 # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_path_MAKEINFO+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 case $MAKEINFO in
5533 [\\/]* | ?:[\\/]*)
5534 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5553 esac
5555 MAKEINFO=$ac_cv_path_MAKEINFO
5556 if test -n "$MAKEINFO"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5558 $as_echo "$MAKEINFO" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 test -n "$MAKEINFO" && break
5566 done
5570 # Checks for host programs.
5573 ac_ext=c
5574 ac_cpp='$CPP $CPPFLAGS'
5575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_CC+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$CC"; then
5587 ac_cv_prog_CC="$CC" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5600 done
5601 done
5602 IFS=$as_save_IFS
5606 CC=$ac_cv_prog_CC
5607 if test -n "$CC"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5609 $as_echo "$CC" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5617 if test -z "$ac_cv_prog_CC"; then
5618 ac_ct_CC=$CC
5619 # Extract the first word of "gcc", so it can be a program name with args.
5620 set dummy gcc; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 if test -n "$ac_ct_CC"; then
5627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_prog_ac_ct_CC="gcc"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5642 IFS=$as_save_IFS
5646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5647 if test -n "$ac_ct_CC"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5649 $as_echo "$ac_ct_CC" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5655 if test "x$ac_ct_CC" = x; then
5656 CC=""
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664 CC=$ac_ct_CC
5666 else
5667 CC="$ac_cv_prog_CC"
5670 if test -z "$CC"; then
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5673 set dummy ${ac_tool_prefix}cc; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_CC+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$CC"; then
5680 ac_cv_prog_CC="$CC" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_CC="${ac_tool_prefix}cc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5699 CC=$ac_cv_prog_CC
5700 if test -n "$CC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5702 $as_echo "$CC" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5711 if test -z "$CC"; then
5712 # Extract the first word of "cc", so it can be a program name with args.
5713 set dummy cc; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_CC+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$CC"; then
5720 ac_cv_prog_CC="$CC" # Let the user override the test.
5721 else
5722 ac_prog_rejected=no
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5731 ac_prog_rejected=yes
5732 continue
5734 ac_cv_prog_CC="cc"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5740 IFS=$as_save_IFS
5742 if test $ac_prog_rejected = yes; then
5743 # We found a bogon in the path, so make sure we never use it.
5744 set dummy $ac_cv_prog_CC
5745 shift
5746 if test $# != 0; then
5747 # We chose a different compiler from the bogus one.
5748 # However, it has the same basename, so the bogon will be chosen
5749 # first if we set CC to just the basename; use the full file name.
5750 shift
5751 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5756 CC=$ac_cv_prog_CC
5757 if test -n "$CC"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5759 $as_echo "$CC" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5767 if test -z "$CC"; then
5768 if test -n "$ac_tool_prefix"; then
5769 for ac_prog in cl.exe
5771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_CC+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if test -n "$CC"; then
5779 ac_cv_prog_CC="$CC" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5792 done
5793 done
5794 IFS=$as_save_IFS
5798 CC=$ac_cv_prog_CC
5799 if test -n "$CC"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5801 $as_echo "$CC" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5808 test -n "$CC" && break
5809 done
5811 if test -z "$CC"; then
5812 ac_ct_CC=$CC
5813 for ac_prog in cl.exe
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816 set dummy $ac_prog; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$ac_ct_CC"; then
5823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_ac_ct_CC="$ac_prog"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5836 done
5837 done
5838 IFS=$as_save_IFS
5842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5843 if test -n "$ac_ct_CC"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5845 $as_echo "$ac_ct_CC" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5852 test -n "$ac_ct_CC" && break
5853 done
5855 if test "x$ac_ct_CC" = x; then
5856 CC=""
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859 yes:)
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5863 esac
5864 CC=$ac_ct_CC
5871 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5873 as_fn_error $? "no acceptable C compiler found in \$PATH
5874 See \`config.log' for more details" "$LINENO" 5; }
5876 # Provide some information about the compiler.
5877 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5878 set X $ac_compile
5879 ac_compiler=$2
5880 for ac_option in --version -v -V -qversion; do
5881 { { ac_try="$ac_compiler $ac_option >&5"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5887 $as_echo "$ac_try_echo"; } >&5
5888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5889 ac_status=$?
5890 if test -s conftest.err; then
5891 sed '10a\
5892 ... rest of stderr output deleted ...
5893 10q' conftest.err >conftest.er1
5894 cat conftest.er1 >&5
5896 rm -f conftest.er1 conftest.err
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }
5899 done
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5902 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5903 if ${ac_cv_c_compiler_gnu+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5910 main (void)
5912 #ifndef __GNUC__
5913 choke me
5914 #endif
5917 return 0;
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"; then :
5921 ac_compiler_gnu=yes
5922 else
5923 ac_compiler_gnu=no
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5930 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5931 if test $ac_compiler_gnu = yes; then
5932 GCC=yes
5933 else
5934 GCC=
5936 ac_test_CFLAGS=${CFLAGS+set}
5937 ac_save_CFLAGS=$CFLAGS
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5940 if ${ac_cv_prog_cc_g+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 ac_save_c_werror_flag=$ac_c_werror_flag
5944 ac_c_werror_flag=yes
5945 ac_cv_prog_cc_g=no
5946 CFLAGS="-g"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5951 main (void)
5955 return 0;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 ac_cv_prog_cc_g=yes
5960 else
5961 CFLAGS=""
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5966 main (void)
5970 return 0;
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5975 else
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5977 CFLAGS="-g"
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5982 main (void)
5986 return 0;
5988 _ACEOF
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 ac_cv_prog_cc_g=yes
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 ac_c_werror_flag=$ac_save_c_werror_flag
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6000 $as_echo "$ac_cv_prog_cc_g" >&6; }
6001 if test "$ac_test_CFLAGS" = set; then
6002 CFLAGS=$ac_save_CFLAGS
6003 elif test $ac_cv_prog_cc_g = yes; then
6004 if test "$GCC" = yes; then
6005 CFLAGS="-g -O2"
6006 else
6007 CFLAGS="-g"
6009 else
6010 if test "$GCC" = yes; then
6011 CFLAGS="-O2"
6012 else
6013 CFLAGS=
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6018 if ${ac_cv_prog_cc_c89+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 ac_cv_prog_cc_c89=no
6022 ac_save_CC=$CC
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <stdarg.h>
6026 #include <stdio.h>
6027 #include <sys/types.h>
6028 #include <sys/stat.h>
6029 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6030 struct buf { int x; };
6031 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6032 static char *e (p, i)
6033 char **p;
6034 int i;
6036 return p[i];
6038 static char *f (char * (*g) (char **, int), char **p, ...)
6040 char *s;
6041 va_list v;
6042 va_start (v,p);
6043 s = g (p, va_arg (v,int));
6044 va_end (v);
6045 return s;
6048 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6049 function prototypes and stuff, but not '\xHH' hex character constants.
6050 These don't provoke an error unfortunately, instead are silently treated
6051 as 'x'. The following induces an error, until -std is added to get
6052 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6053 array size at least. It's necessary to write '\x00'==0 to get something
6054 that's true only with -std. */
6055 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6057 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6058 inside strings and character constants. */
6059 #define FOO(x) 'x'
6060 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6062 int test (int i, double x);
6063 struct s1 {int (*f) (int a);};
6064 struct s2 {int (*f) (double a);};
6065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6066 int argc;
6067 char **argv;
6069 main (void)
6071 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6073 return 0;
6075 _ACEOF
6076 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6077 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6079 CC="$ac_save_CC $ac_arg"
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081 ac_cv_prog_cc_c89=$ac_arg
6083 rm -f core conftest.err conftest.$ac_objext
6084 test "x$ac_cv_prog_cc_c89" != "xno" && break
6085 done
6086 rm -f conftest.$ac_ext
6087 CC=$ac_save_CC
6090 # AC_CACHE_VAL
6091 case "x$ac_cv_prog_cc_c89" in
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6094 $as_echo "none needed" >&6; } ;;
6095 xno)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6097 $as_echo "unsupported" >&6; } ;;
6099 CC="$CC $ac_cv_prog_cc_c89"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6101 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6102 esac
6103 if test "x$ac_cv_prog_cc_c89" != xno; then :
6107 ac_ext=c
6108 ac_cpp='$CPP $CPPFLAGS'
6109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113 depcc="$CC" am_compiler_list=
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6116 $as_echo_n "checking dependency style of $depcc... " >&6; }
6117 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6121 # We make a subdir and do the tests there. Otherwise we can end up
6122 # making bogus files that we don't know about and never remove. For
6123 # instance it was reported that on HP-UX the gcc test will end up
6124 # making a dummy file named `D' -- because `-MD' means `put the output
6125 # in D'.
6126 mkdir conftest.dir
6127 # Copy depcomp to subdir because otherwise we won't find it if we're
6128 # using a relative directory.
6129 cp "$am_depcomp" conftest.dir
6130 cd conftest.dir
6131 # We will build objects and dependencies in a subdirectory because
6132 # it helps to detect inapplicable dependency modes. For instance
6133 # both Tru64's cc and ICC support -MD to output dependencies as a
6134 # side effect of compilation, but ICC will put the dependencies in
6135 # the current directory while Tru64 will put them in the object
6136 # directory.
6137 mkdir sub
6139 am_cv_CC_dependencies_compiler_type=none
6140 if test "$am_compiler_list" = ""; then
6141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6143 am__universal=false
6144 case " $depcc " in #(
6145 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6146 esac
6148 for depmode in $am_compiler_list; do
6149 # Setup a source with many dependencies, because some compilers
6150 # like to wrap large dependency lists on column 80 (with \), and
6151 # we should not choose a depcomp mode which is confused by this.
6153 # We need to recreate these files for each test, as the compiler may
6154 # overwrite some of them when testing with obscure command lines.
6155 # This happens at least with the AIX C compiler.
6156 : > sub/conftest.c
6157 for i in 1 2 3 4 5 6; do
6158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6160 # Solaris 8's {/usr,}/bin/sh.
6161 touch sub/conftst$i.h
6162 done
6163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6165 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6166 # mode. It turns out that the SunPro C++ compiler does not properly
6167 # handle `-M -o', and we need to detect this. Also, some Intel
6168 # versions had trouble with output in subdirs
6169 am__obj=sub/conftest.${OBJEXT-o}
6170 am__minus_obj="-o $am__obj"
6171 case $depmode in
6172 gcc)
6173 # This depmode causes a compiler race in universal mode.
6174 test "$am__universal" = false || continue
6176 nosideeffect)
6177 # after this tag, mechanisms are not by side-effect, so they'll
6178 # only be used when explicitly requested
6179 if test "x$enable_dependency_tracking" = xyes; then
6180 continue
6181 else
6182 break
6185 msvisualcpp | msvcmsys)
6186 # This compiler won't grok `-c -o', but also, the minuso test has
6187 # not run yet. These depmodes are late enough in the game, and
6188 # so weak that their functioning should not be impacted.
6189 am__obj=conftest.${OBJEXT-o}
6190 am__minus_obj=
6192 none) break ;;
6193 esac
6194 if depmode=$depmode \
6195 source=sub/conftest.c object=$am__obj \
6196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6197 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6198 >/dev/null 2>conftest.err &&
6199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6201 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6203 # icc doesn't choke on unknown options, it will just issue warnings
6204 # or remarks (even with -Werror). So we grep stderr for any message
6205 # that says an option was ignored or not supported.
6206 # When given -MP, icc 7.0 and 7.1 complain thusly:
6207 # icc: Command line warning: ignoring option '-M'; no argument required
6208 # The diagnosis changed in icc 8.0:
6209 # icc: Command line remark: option '-MP' not supported
6210 if (grep 'ignoring option' conftest.err ||
6211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6212 am_cv_CC_dependencies_compiler_type=$depmode
6213 break
6216 done
6218 cd ..
6219 rm -rf conftest.dir
6220 else
6221 am_cv_CC_dependencies_compiler_type=none
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6226 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6230 test "x$enable_dependency_tracking" != xno \
6231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6232 am__fastdepCC_TRUE=
6233 am__fastdepCC_FALSE='#'
6234 else
6235 am__fastdepCC_TRUE='#'
6236 am__fastdepCC_FALSE=
6240 ac_ext=c
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6247 # On Suns, sometimes $CPP names a directory.
6248 if test -n "$CPP" && test -d "$CPP"; then
6249 CPP=
6251 if test -z "$CPP"; then
6252 if ${ac_cv_prog_CPP+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 # Double quotes because CPP needs to be expanded
6256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6258 ac_preproc_ok=false
6259 for ac_c_preproc_warn_flag in '' yes
6261 # Use a header file that comes with gcc, so configuring glibc
6262 # with a fresh cross-compiler works.
6263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 # <limits.h> exists even on freestanding compilers.
6265 # On the NeXT, cc -E runs the code through the compiler's parser,
6266 # not just through cpp. "Syntax error" is here to catch this case.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #ifdef __STDC__
6270 # include <limits.h>
6271 #else
6272 # include <assert.h>
6273 #endif
6274 Syntax error
6275 _ACEOF
6276 if ac_fn_c_try_cpp "$LINENO"; then :
6278 else
6279 # Broken: fails on valid input.
6280 continue
6282 rm -f conftest.err conftest.i conftest.$ac_ext
6284 # OK, works on sane cases. Now check whether nonexistent headers
6285 # can be detected and how.
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <ac_nonexistent.h>
6289 _ACEOF
6290 if ac_fn_c_try_cpp "$LINENO"; then :
6291 # Broken: success on invalid input.
6292 continue
6293 else
6294 # Passes both tests.
6295 ac_preproc_ok=:
6296 break
6298 rm -f conftest.err conftest.i conftest.$ac_ext
6300 done
6301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6302 rm -f conftest.i conftest.err conftest.$ac_ext
6303 if $ac_preproc_ok; then :
6304 break
6307 done
6308 ac_cv_prog_CPP=$CPP
6311 CPP=$ac_cv_prog_CPP
6312 else
6313 ac_cv_prog_CPP=$CPP
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6316 $as_echo "$CPP" >&6; }
6317 ac_preproc_ok=false
6318 for ac_c_preproc_warn_flag in '' yes
6320 # Use a header file that comes with gcc, so configuring glibc
6321 # with a fresh cross-compiler works.
6322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6323 # <limits.h> exists even on freestanding compilers.
6324 # On the NeXT, cc -E runs the code through the compiler's parser,
6325 # not just through cpp. "Syntax error" is here to catch this case.
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #ifdef __STDC__
6329 # include <limits.h>
6330 #else
6331 # include <assert.h>
6332 #endif
6333 Syntax error
6334 _ACEOF
6335 if ac_fn_c_try_cpp "$LINENO"; then :
6337 else
6338 # Broken: fails on valid input.
6339 continue
6341 rm -f conftest.err conftest.i conftest.$ac_ext
6343 # OK, works on sane cases. Now check whether nonexistent headers
6344 # can be detected and how.
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <ac_nonexistent.h>
6348 _ACEOF
6349 if ac_fn_c_try_cpp "$LINENO"; then :
6350 # Broken: success on invalid input.
6351 continue
6352 else
6353 # Passes both tests.
6354 ac_preproc_ok=:
6355 break
6357 rm -f conftest.err conftest.i conftest.$ac_ext
6359 done
6360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6361 rm -f conftest.i conftest.err conftest.$ac_ext
6362 if $ac_preproc_ok; then :
6364 else
6365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details" "$LINENO" 5; }
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6380 if ${ac_cv_path_GREP+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -z "$GREP"; then
6384 ac_path_GREP_found=false
6385 # Loop through the user's path and test for each of PROGNAME-LIST
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_prog in grep ggrep; do
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6394 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6395 # Check for GNU ac_path_GREP and select it if it is found.
6396 # Check for GNU $ac_path_GREP
6397 case `"$ac_path_GREP" --version 2>&1` in
6398 *GNU*)
6399 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6401 ac_count=0
6402 $as_echo_n 0123456789 >"conftest.in"
6403 while :
6405 cat "conftest.in" "conftest.in" >"conftest.tmp"
6406 mv "conftest.tmp" "conftest.in"
6407 cp "conftest.in" "conftest.nl"
6408 $as_echo 'GREP' >> "conftest.nl"
6409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6411 as_fn_arith $ac_count + 1 && ac_count=$as_val
6412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6413 # Best one so far, save it but keep looking for a better one
6414 ac_cv_path_GREP="$ac_path_GREP"
6415 ac_path_GREP_max=$ac_count
6417 # 10*(2^10) chars as input seems more than enough
6418 test $ac_count -gt 10 && break
6419 done
6420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6421 esac
6423 $ac_path_GREP_found && break 3
6424 done
6425 done
6426 done
6427 IFS=$as_save_IFS
6428 if test -z "$ac_cv_path_GREP"; then
6429 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6431 else
6432 ac_cv_path_GREP=$GREP
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6437 $as_echo "$ac_cv_path_GREP" >&6; }
6438 GREP="$ac_cv_path_GREP"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6442 $as_echo_n "checking for egrep... " >&6; }
6443 if ${ac_cv_path_EGREP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6447 then ac_cv_path_EGREP="$GREP -E"
6448 else
6449 if test -z "$EGREP"; then
6450 ac_path_EGREP_found=false
6451 # Loop through the user's path and test for each of PROGNAME-LIST
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_prog in egrep; do
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6460 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6461 # Check for GNU ac_path_EGREP and select it if it is found.
6462 # Check for GNU $ac_path_EGREP
6463 case `"$ac_path_EGREP" --version 2>&1` in
6464 *GNU*)
6465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6467 ac_count=0
6468 $as_echo_n 0123456789 >"conftest.in"
6469 while :
6471 cat "conftest.in" "conftest.in" >"conftest.tmp"
6472 mv "conftest.tmp" "conftest.in"
6473 cp "conftest.in" "conftest.nl"
6474 $as_echo 'EGREP' >> "conftest.nl"
6475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6477 as_fn_arith $ac_count + 1 && ac_count=$as_val
6478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6479 # Best one so far, save it but keep looking for a better one
6480 ac_cv_path_EGREP="$ac_path_EGREP"
6481 ac_path_EGREP_max=$ac_count
6483 # 10*(2^10) chars as input seems more than enough
6484 test $ac_count -gt 10 && break
6485 done
6486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6487 esac
6489 $ac_path_EGREP_found && break 3
6490 done
6491 done
6492 done
6493 IFS=$as_save_IFS
6494 if test -z "$ac_cv_path_EGREP"; then
6495 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6497 else
6498 ac_cv_path_EGREP=$EGREP
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6504 $as_echo "$ac_cv_path_EGREP" >&6; }
6505 EGREP="$ac_cv_path_EGREP"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6509 $as_echo_n "checking for ANSI C header files... " >&6; }
6510 if ${ac_cv_header_stdc+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <stdlib.h>
6516 #include <stdarg.h>
6517 #include <string.h>
6518 #include <float.h>
6521 main (void)
6525 return 0;
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 ac_cv_header_stdc=yes
6530 else
6531 ac_cv_header_stdc=no
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 if test $ac_cv_header_stdc = yes; then
6536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <string.h>
6541 _ACEOF
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543 $EGREP "memchr" >/dev/null 2>&1; then :
6545 else
6546 ac_cv_header_stdc=no
6548 rm -f conftest*
6552 if test $ac_cv_header_stdc = yes; then
6553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <stdlib.h>
6558 _ACEOF
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "free" >/dev/null 2>&1; then :
6562 else
6563 ac_cv_header_stdc=no
6565 rm -f conftest*
6569 if test $ac_cv_header_stdc = yes; then
6570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6571 if test "$cross_compiling" = yes; then :
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <ctype.h>
6577 #include <stdlib.h>
6578 #if ((' ' & 0x0FF) == 0x020)
6579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6581 #else
6582 # define ISLOWER(c) \
6583 (('a' <= (c) && (c) <= 'i') \
6584 || ('j' <= (c) && (c) <= 'r') \
6585 || ('s' <= (c) && (c) <= 'z'))
6586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6587 #endif
6589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6591 main ()
6593 int i;
6594 for (i = 0; i < 256; i++)
6595 if (XOR (islower (i), ISLOWER (i))
6596 || toupper (i) != TOUPPER (i))
6597 return 2;
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_run "$LINENO"; then :
6603 else
6604 ac_cv_header_stdc=no
6606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6607 conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6613 $as_echo "$ac_cv_header_stdc" >&6; }
6614 if test $ac_cv_header_stdc = yes; then
6616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6622 inttypes.h stdint.h unistd.h
6623 do :
6624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6628 cat >>confdefs.h <<_ACEOF
6629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 _ACEOF
6634 done
6640 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6641 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6642 MINIX=yes
6643 else
6644 MINIX=
6648 if test "$MINIX" = yes; then
6650 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6653 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6656 $as_echo "#define _MINIX 1" >>confdefs.h
6660 case "$host_os" in
6661 hpux*)
6663 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6666 esac
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6670 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6671 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6677 # define __EXTENSIONS__ 1
6678 $ac_includes_default
6680 main (void)
6684 return 0;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"; then :
6688 ac_cv_safe_to_define___extensions__=yes
6689 else
6690 ac_cv_safe_to_define___extensions__=no
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6695 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6696 test $ac_cv_safe_to_define___extensions__ = yes &&
6697 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6699 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6701 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6703 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6705 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6716 # Code from module alloca:
6717 # Code from module alloca-opt:
6718 # Code from module arg-nonnull:
6719 # Code from module argp:
6720 # Code from module btowc:
6721 # Code from module c++defs:
6722 # Code from module configmake:
6723 # Code from module dirname-lgpl:
6724 # Code from module double-slash-root:
6725 # Code from module errno:
6726 # Code from module error:
6727 # Code from module extensions:
6729 # Code from module float:
6730 # Code from module fnmatch:
6731 # Code from module getdelim:
6732 # Code from module getline:
6733 # Code from module getopt-gnu:
6734 # Code from module getopt-posix:
6735 # Code from module gettext:
6736 # Code from module gettext-h:
6737 # Code from module havelib:
6738 # Code from module include_next:
6739 # Code from module intprops:
6740 # Code from module langinfo:
6741 # Code from module localcharset:
6742 # Code from module malloc-gnu:
6743 # Code from module malloc-posix:
6744 # Code from module mbrtowc:
6745 # Code from module mbsinit:
6746 # Code from module mbsrtowcs:
6747 # Code from module memchr:
6748 # Code from module mempcpy:
6749 # Code from module multiarch:
6750 # Code from module nl_langinfo:
6751 # Code from module progname:
6752 # Code from module rawmemchr:
6753 # Code from module realloc-posix:
6754 # Code from module regex:
6755 # Code from module size_max:
6756 # Code from module sleep:
6757 # Code from module ssize_t:
6758 # Code from module stdbool:
6759 # Code from module stddef:
6760 # Code from module stdint:
6761 # Code from module stdio:
6762 # Code from module stdlib:
6763 # Code from module strcase:
6764 # Code from module strchrnul:
6765 # Code from module streq:
6766 # Code from module strerror:
6767 # Code from module string:
6768 # Code from module strings:
6769 # Code from module strndup:
6770 # Code from module strnlen:
6771 # Code from module strnlen1:
6772 # Code from module sys_wait:
6773 # Code from module sysexits:
6774 # Code from module unistd:
6775 # Code from module vasnprintf:
6776 # Code from module verify:
6777 # Code from module vsnprintf:
6778 # Code from module warn-on-use:
6779 # Code from module wchar:
6780 # Code from module wcrtomb:
6781 # Code from module wctype:
6782 # Code from module xsize:
6784 if test "x$CC" != xcc; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6786 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6789 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6791 set dummy $CC; ac_cc=`$as_echo "$2" |
6792 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6793 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6800 main (void)
6804 return 0;
6806 _ACEOF
6807 # Make sure it works both with $CC and with simple cc.
6808 # We do the test twice because some compilers refuse to overwrite an
6809 # existing .o file with -o, though they will create one.
6810 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6811 rm -f conftest2.*
6812 if { { case "(($ac_try" in
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6815 esac
6816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6817 $as_echo "$ac_try_echo"; } >&5
6818 (eval "$ac_try") 2>&5
6819 ac_status=$?
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; } &&
6822 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6825 esac
6826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6827 $as_echo "$ac_try_echo"; } >&5
6828 (eval "$ac_try") 2>&5
6829 ac_status=$?
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; };
6832 then
6833 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6834 if test "x$CC" != xcc; then
6835 # Test first that cc exists at all.
6836 if { ac_try='cc -c conftest.$ac_ext >&5'
6837 { { case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840 esac
6841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6842 $as_echo "$ac_try_echo"; } >&5
6843 (eval "$ac_try") 2>&5
6844 ac_status=$?
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; }; then
6847 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6848 rm -f conftest2.*
6849 if { { case "(($ac_try" in
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6852 esac
6853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6854 $as_echo "$ac_try_echo"; } >&5
6855 (eval "$ac_try") 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; } &&
6859 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6864 $as_echo "$ac_try_echo"; } >&5
6865 (eval "$ac_try") 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; };
6869 then
6870 # cc works too.
6872 else
6873 # cc exists but doesn't like -o.
6874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6878 else
6879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6881 rm -f core conftest*
6884 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6886 $as_echo "yes" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6891 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6895 # FIXME: we rely on the cache variable name because
6896 # there is no other way.
6897 set dummy $CC
6898 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6899 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6900 if test "$am_t" != yes; then
6901 # Losing compiler, so override with the script.
6902 # FIXME: It is wrong to rewrite CC.
6903 # But if we don't then we get into trouble of one sort or another.
6904 # A longer-term fix would be to have automake use am__CC in this case,
6905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6906 CC="$am_aux_dir/compile $CC"
6910 # By default we simply use the C compiler to build assembly code.
6912 test "${CCAS+set}" = set || CCAS=$CC
6913 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6917 depcc="$CCAS" am_compiler_list=
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6920 $as_echo_n "checking dependency style of $depcc... " >&6; }
6921 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6925 # We make a subdir and do the tests there. Otherwise we can end up
6926 # making bogus files that we don't know about and never remove. For
6927 # instance it was reported that on HP-UX the gcc test will end up
6928 # making a dummy file named `D' -- because `-MD' means `put the output
6929 # in D'.
6930 mkdir conftest.dir
6931 # Copy depcomp to subdir because otherwise we won't find it if we're
6932 # using a relative directory.
6933 cp "$am_depcomp" conftest.dir
6934 cd conftest.dir
6935 # We will build objects and dependencies in a subdirectory because
6936 # it helps to detect inapplicable dependency modes. For instance
6937 # both Tru64's cc and ICC support -MD to output dependencies as a
6938 # side effect of compilation, but ICC will put the dependencies in
6939 # the current directory while Tru64 will put them in the object
6940 # directory.
6941 mkdir sub
6943 am_cv_CCAS_dependencies_compiler_type=none
6944 if test "$am_compiler_list" = ""; then
6945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6947 am__universal=false
6950 for depmode in $am_compiler_list; do
6951 # Setup a source with many dependencies, because some compilers
6952 # like to wrap large dependency lists on column 80 (with \), and
6953 # we should not choose a depcomp mode which is confused by this.
6955 # We need to recreate these files for each test, as the compiler may
6956 # overwrite some of them when testing with obscure command lines.
6957 # This happens at least with the AIX C compiler.
6958 : > sub/conftest.c
6959 for i in 1 2 3 4 5 6; do
6960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6961 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6962 # Solaris 8's {/usr,}/bin/sh.
6963 touch sub/conftst$i.h
6964 done
6965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6967 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6968 # mode. It turns out that the SunPro C++ compiler does not properly
6969 # handle `-M -o', and we need to detect this. Also, some Intel
6970 # versions had trouble with output in subdirs
6971 am__obj=sub/conftest.${OBJEXT-o}
6972 am__minus_obj="-o $am__obj"
6973 case $depmode in
6974 gcc)
6975 # This depmode causes a compiler race in universal mode.
6976 test "$am__universal" = false || continue
6978 nosideeffect)
6979 # after this tag, mechanisms are not by side-effect, so they'll
6980 # only be used when explicitly requested
6981 if test "x$enable_dependency_tracking" = xyes; then
6982 continue
6983 else
6984 break
6987 msvisualcpp | msvcmsys)
6988 # This compiler won't grok `-c -o', but also, the minuso test has
6989 # not run yet. These depmodes are late enough in the game, and
6990 # so weak that their functioning should not be impacted.
6991 am__obj=conftest.${OBJEXT-o}
6992 am__minus_obj=
6994 none) break ;;
6995 esac
6996 if depmode=$depmode \
6997 source=sub/conftest.c object=$am__obj \
6998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6999 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7000 >/dev/null 2>conftest.err &&
7001 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014 am_cv_CCAS_dependencies_compiler_type=$depmode
7015 break
7018 done
7020 cd ..
7021 rm -rf conftest.dir
7022 else
7023 am_cv_CCAS_dependencies_compiler_type=none
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7029 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7032 test "x$enable_dependency_tracking" != xno \
7033 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7034 am__fastdepCCAS_TRUE=
7035 am__fastdepCCAS_FALSE='#'
7036 else
7037 am__fastdepCCAS_TRUE='#'
7038 am__fastdepCCAS_FALSE=
7043 # Must be GCC.
7044 test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7049 $as_echo_n "checking whether NLS is requested... " >&6; }
7050 # Check whether --enable-nls was given.
7051 if test "${enable_nls+set}" = set; then :
7052 enableval=$enable_nls; USE_NLS=$enableval
7053 else
7054 USE_NLS=yes
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7058 $as_echo "$USE_NLS" >&6; }
7063 GETTEXT_MACRO_VERSION=0.18
7068 # Prepare PATH_SEPARATOR.
7069 # The user is always right.
7070 if test "${PATH_SEPARATOR+set}" != set; then
7071 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7072 # contains only /bin. Note that ksh looks also at the FPATH variable,
7073 # so we have to set that as well for the test.
7074 PATH_SEPARATOR=:
7075 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7076 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7077 || PATH_SEPARATOR=';'
7081 # Find out how to test for executable files. Don't use a zero-byte file,
7082 # as systems may use methods other than mode bits to determine executability.
7083 cat >conf$$.file <<_ASEOF
7084 #! /bin/sh
7085 exit 0
7086 _ASEOF
7087 chmod +x conf$$.file
7088 if test -x conf$$.file >/dev/null 2>&1; then
7089 ac_executable_p="test -x"
7090 else
7091 ac_executable_p="test -f"
7093 rm -f conf$$.file
7095 # Extract the first word of "msgfmt", so it can be a program name with args.
7096 set dummy msgfmt; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_path_MSGFMT+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 case "$MSGFMT" in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7107 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7108 for ac_dir in $PATH; do
7109 IFS="$ac_save_IFS"
7110 test -z "$ac_dir" && ac_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7113 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7114 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7115 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7116 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7117 break 2
7120 done
7121 done
7122 IFS="$ac_save_IFS"
7123 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7125 esac
7127 MSGFMT="$ac_cv_path_MSGFMT"
7128 if test "$MSGFMT" != ":"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7130 $as_echo "$MSGFMT" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7136 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7137 set dummy gmsgfmt; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_path_GMSGFMT+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 case $GMSGFMT in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7163 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7165 esac
7167 GMSGFMT=$ac_cv_path_GMSGFMT
7168 if test -n "$GMSGFMT"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7170 $as_echo "$GMSGFMT" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7178 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7179 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7180 *) MSGFMT_015=$MSGFMT ;;
7181 esac
7183 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7184 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7185 *) GMSGFMT_015=$GMSGFMT ;;
7186 esac
7190 # Prepare PATH_SEPARATOR.
7191 # The user is always right.
7192 if test "${PATH_SEPARATOR+set}" != set; then
7193 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7194 # contains only /bin. Note that ksh looks also at the FPATH variable,
7195 # so we have to set that as well for the test.
7196 PATH_SEPARATOR=:
7197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7198 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7199 || PATH_SEPARATOR=';'
7203 # Find out how to test for executable files. Don't use a zero-byte file,
7204 # as systems may use methods other than mode bits to determine executability.
7205 cat >conf$$.file <<_ASEOF
7206 #! /bin/sh
7207 exit 0
7208 _ASEOF
7209 chmod +x conf$$.file
7210 if test -x conf$$.file >/dev/null 2>&1; then
7211 ac_executable_p="test -x"
7212 else
7213 ac_executable_p="test -f"
7215 rm -f conf$$.file
7217 # Extract the first word of "xgettext", so it can be a program name with args.
7218 set dummy xgettext; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_path_XGETTEXT+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 case "$XGETTEXT" in
7225 [\\/]* | ?:[\\/]*)
7226 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7229 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7230 for ac_dir in $PATH; do
7231 IFS="$ac_save_IFS"
7232 test -z "$ac_dir" && ac_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7235 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7236 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7237 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7238 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7239 break 2
7242 done
7243 done
7244 IFS="$ac_save_IFS"
7245 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7247 esac
7249 XGETTEXT="$ac_cv_path_XGETTEXT"
7250 if test "$XGETTEXT" != ":"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7252 $as_echo "$XGETTEXT" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7258 rm -f messages.po
7260 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7261 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7262 *) XGETTEXT_015=$XGETTEXT ;;
7263 esac
7267 # Prepare PATH_SEPARATOR.
7268 # The user is always right.
7269 if test "${PATH_SEPARATOR+set}" != set; then
7270 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7271 # contains only /bin. Note that ksh looks also at the FPATH variable,
7272 # so we have to set that as well for the test.
7273 PATH_SEPARATOR=:
7274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7275 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7276 || PATH_SEPARATOR=';'
7280 # Find out how to test for executable files. Don't use a zero-byte file,
7281 # as systems may use methods other than mode bits to determine executability.
7282 cat >conf$$.file <<_ASEOF
7283 #! /bin/sh
7284 exit 0
7285 _ASEOF
7286 chmod +x conf$$.file
7287 if test -x conf$$.file >/dev/null 2>&1; then
7288 ac_executable_p="test -x"
7289 else
7290 ac_executable_p="test -f"
7292 rm -f conf$$.file
7294 # Extract the first word of "msgmerge", so it can be a program name with args.
7295 set dummy msgmerge; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_path_MSGMERGE+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 case "$MSGMERGE" in
7302 [\\/]* | ?:[\\/]*)
7303 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7306 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7307 for ac_dir in $PATH; do
7308 IFS="$ac_save_IFS"
7309 test -z "$ac_dir" && ac_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7312 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7313 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7314 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7315 break 2
7318 done
7319 done
7320 IFS="$ac_save_IFS"
7321 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7323 esac
7325 MSGMERGE="$ac_cv_path_MSGMERGE"
7326 if test "$MSGMERGE" != ":"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7328 $as_echo "$MSGMERGE" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7335 test -n "$localedir" || localedir='${datadir}/locale'
7338 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7341 ac_config_commands="$ac_config_commands po-directories"
7345 if test "X$prefix" = "XNONE"; then
7346 acl_final_prefix="$ac_default_prefix"
7347 else
7348 acl_final_prefix="$prefix"
7350 if test "X$exec_prefix" = "XNONE"; then
7351 acl_final_exec_prefix='${prefix}'
7352 else
7353 acl_final_exec_prefix="$exec_prefix"
7355 acl_save_prefix="$prefix"
7356 prefix="$acl_final_prefix"
7357 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7358 prefix="$acl_save_prefix"
7361 # Check whether --with-gnu-ld was given.
7362 if test "${with_gnu_ld+set}" = set; then :
7363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7364 else
7365 with_gnu_ld=no
7368 # Prepare PATH_SEPARATOR.
7369 # The user is always right.
7370 if test "${PATH_SEPARATOR+set}" != set; then
7371 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7372 # contains only /bin. Note that ksh looks also at the FPATH variable,
7373 # so we have to set that as well for the test.
7374 PATH_SEPARATOR=:
7375 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7376 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7377 || PATH_SEPARATOR=';'
7380 ac_prog=ld
7381 if test "$GCC" = yes; then
7382 # Check if gcc -print-prog-name=ld gives a path.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7384 $as_echo_n "checking for ld used by GCC... " >&6; }
7385 case $host in
7386 *-*-mingw*)
7387 # gcc leaves a trailing carriage return which upsets mingw
7388 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7390 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7391 esac
7392 case $ac_prog in
7393 # Accept absolute paths.
7394 [\\/]* | [A-Za-z]:[\\/]*)
7395 re_direlt='/[^/][^/]*/\.\./'
7396 # Canonicalize the path of ld
7397 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7398 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7399 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7400 done
7401 test -z "$LD" && LD="$ac_prog"
7404 # If it fails, then pretend we aren't using GCC.
7405 ac_prog=ld
7408 # If it is relative, then search for the first ld in PATH.
7409 with_gnu_ld=unknown
7411 esac
7412 elif test "$with_gnu_ld" = yes; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7414 $as_echo_n "checking for GNU ld... " >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7417 $as_echo_n "checking for non-GNU ld... " >&6; }
7419 if ${acl_cv_path_LD+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -z "$LD"; then
7423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7424 for ac_dir in $PATH; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7427 acl_cv_path_LD="$ac_dir/$ac_prog"
7428 # Check to see if the program is GNU ld. I'd rather use --version,
7429 # but apparently some GNU ld's only accept -v.
7430 # Break only if it was the GNU/non-GNU ld that we prefer.
7431 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7432 *GNU* | *'with BFD'*)
7433 test "$with_gnu_ld" != no && break ;;
7435 test "$with_gnu_ld" != yes && break ;;
7436 esac
7438 done
7439 IFS="$ac_save_ifs"
7440 else
7441 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7445 LD="$acl_cv_path_LD"
7446 if test -n "$LD"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7448 $as_echo "$LD" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7453 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7455 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7456 if ${acl_cv_prog_gnu_ld+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7460 case `$LD -v 2>&1 </dev/null` in
7461 *GNU* | *'with BFD'*)
7462 acl_cv_prog_gnu_ld=yes ;;
7464 acl_cv_prog_gnu_ld=no ;;
7465 esac
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7468 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7469 with_gnu_ld=$acl_cv_prog_gnu_ld
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7475 $as_echo_n "checking for shared library run path origin... " >&6; }
7476 if ${acl_cv_rpath+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7480 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7481 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7482 . ./conftest.sh
7483 rm -f ./conftest.sh
7484 acl_cv_rpath=done
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7488 $as_echo "$acl_cv_rpath" >&6; }
7489 wl="$acl_cv_wl"
7490 acl_libext="$acl_cv_libext"
7491 acl_shlibext="$acl_cv_shlibext"
7492 acl_libname_spec="$acl_cv_libname_spec"
7493 acl_library_names_spec="$acl_cv_library_names_spec"
7494 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7495 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7496 acl_hardcode_direct="$acl_cv_hardcode_direct"
7497 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7498 # Check whether --enable-rpath was given.
7499 if test "${enable_rpath+set}" = set; then :
7500 enableval=$enable_rpath; :
7501 else
7502 enable_rpath=yes
7508 acl_libdirstem=lib
7509 acl_libdirstem2=
7510 case "$host_os" in
7511 solaris*)
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7513 $as_echo_n "checking for 64-bit host... " >&6; }
7514 if ${gl_cv_solaris_64bit+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7520 #ifdef _LP64
7521 sixtyfour bits
7522 #endif
7524 _ACEOF
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7527 gl_cv_solaris_64bit=yes
7528 else
7529 gl_cv_solaris_64bit=no
7531 rm -f conftest*
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7536 $as_echo "$gl_cv_solaris_64bit" >&6; }
7537 if test $gl_cv_solaris_64bit = yes; then
7538 acl_libdirstem=lib/64
7539 case "$host_cpu" in
7540 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7541 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7542 esac
7546 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7547 if test -n "$searchpath"; then
7548 acl_save_IFS="${IFS= }"; IFS=":"
7549 for searchdir in $searchpath; do
7550 if test -d "$searchdir"; then
7551 case "$searchdir" in
7552 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7553 */../ | */.. )
7554 # Better ignore directories of this form. They are misleading.
7556 *) searchdir=`cd "$searchdir" && pwd`
7557 case "$searchdir" in
7558 */lib64 ) acl_libdirstem=lib64 ;;
7559 esac ;;
7560 esac
7562 done
7563 IFS="$acl_save_IFS"
7566 esac
7567 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7580 use_additional=yes
7582 acl_save_prefix="$prefix"
7583 prefix="$acl_final_prefix"
7584 acl_save_exec_prefix="$exec_prefix"
7585 exec_prefix="$acl_final_exec_prefix"
7587 eval additional_includedir=\"$includedir\"
7588 eval additional_libdir=\"$libdir\"
7590 exec_prefix="$acl_save_exec_prefix"
7591 prefix="$acl_save_prefix"
7594 # Check whether --with-libiconv-prefix was given.
7595 if test "${with_libiconv_prefix+set}" = set; then :
7596 withval=$with_libiconv_prefix;
7597 if test "X$withval" = "Xno"; then
7598 use_additional=no
7599 else
7600 if test "X$withval" = "X"; then
7602 acl_save_prefix="$prefix"
7603 prefix="$acl_final_prefix"
7604 acl_save_exec_prefix="$exec_prefix"
7605 exec_prefix="$acl_final_exec_prefix"
7607 eval additional_includedir=\"$includedir\"
7608 eval additional_libdir=\"$libdir\"
7610 exec_prefix="$acl_save_exec_prefix"
7611 prefix="$acl_save_prefix"
7613 else
7614 additional_includedir="$withval/include"
7615 additional_libdir="$withval/$acl_libdirstem"
7616 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7617 && ! test -d "$withval/$acl_libdirstem"; then
7618 additional_libdir="$withval/$acl_libdirstem2"
7625 LIBICONV=
7626 LTLIBICONV=
7627 INCICONV=
7628 LIBICONV_PREFIX=
7629 HAVE_LIBICONV=
7630 rpathdirs=
7631 ltrpathdirs=
7632 names_already_handled=
7633 names_next_round='iconv '
7634 while test -n "$names_next_round"; do
7635 names_this_round="$names_next_round"
7636 names_next_round=
7637 for name in $names_this_round; do
7638 already_handled=
7639 for n in $names_already_handled; do
7640 if test "$n" = "$name"; then
7641 already_handled=yes
7642 break
7644 done
7645 if test -z "$already_handled"; then
7646 names_already_handled="$names_already_handled $name"
7647 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7648 eval value=\"\$HAVE_LIB$uppername\"
7649 if test -n "$value"; then
7650 if test "$value" = yes; then
7651 eval value=\"\$LIB$uppername\"
7652 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7653 eval value=\"\$LTLIB$uppername\"
7654 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7655 else
7658 else
7659 found_dir=
7660 found_la=
7661 found_so=
7662 found_a=
7663 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7664 if test -n "$acl_shlibext"; then
7665 shrext=".$acl_shlibext" # typically: shrext=.so
7666 else
7667 shrext=
7669 if test $use_additional = yes; then
7670 dir="$additional_libdir"
7671 if test -n "$acl_shlibext"; then
7672 if test -f "$dir/$libname$shrext"; then
7673 found_dir="$dir"
7674 found_so="$dir/$libname$shrext"
7675 else
7676 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7677 ver=`(cd "$dir" && \
7678 for f in "$libname$shrext".*; do echo "$f"; done \
7679 | sed -e "s,^$libname$shrext\\\\.,," \
7680 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7681 | sed 1q ) 2>/dev/null`
7682 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7683 found_dir="$dir"
7684 found_so="$dir/$libname$shrext.$ver"
7686 else
7687 eval library_names=\"$acl_library_names_spec\"
7688 for f in $library_names; do
7689 if test -f "$dir/$f"; then
7690 found_dir="$dir"
7691 found_so="$dir/$f"
7692 break
7694 done
7698 if test "X$found_dir" = "X"; then
7699 if test -f "$dir/$libname.$acl_libext"; then
7700 found_dir="$dir"
7701 found_a="$dir/$libname.$acl_libext"
7704 if test "X$found_dir" != "X"; then
7705 if test -f "$dir/$libname.la"; then
7706 found_la="$dir/$libname.la"
7710 if test "X$found_dir" = "X"; then
7711 for x in $LDFLAGS $LTLIBICONV; do
7713 acl_save_prefix="$prefix"
7714 prefix="$acl_final_prefix"
7715 acl_save_exec_prefix="$exec_prefix"
7716 exec_prefix="$acl_final_exec_prefix"
7717 eval x=\"$x\"
7718 exec_prefix="$acl_save_exec_prefix"
7719 prefix="$acl_save_prefix"
7721 case "$x" in
7722 -L*)
7723 dir=`echo "X$x" | sed -e 's/^X-L//'`
7724 if test -n "$acl_shlibext"; then
7725 if test -f "$dir/$libname$shrext"; then
7726 found_dir="$dir"
7727 found_so="$dir/$libname$shrext"
7728 else
7729 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7730 ver=`(cd "$dir" && \
7731 for f in "$libname$shrext".*; do echo "$f"; done \
7732 | sed -e "s,^$libname$shrext\\\\.,," \
7733 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7734 | sed 1q ) 2>/dev/null`
7735 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7736 found_dir="$dir"
7737 found_so="$dir/$libname$shrext.$ver"
7739 else
7740 eval library_names=\"$acl_library_names_spec\"
7741 for f in $library_names; do
7742 if test -f "$dir/$f"; then
7743 found_dir="$dir"
7744 found_so="$dir/$f"
7745 break
7747 done
7751 if test "X$found_dir" = "X"; then
7752 if test -f "$dir/$libname.$acl_libext"; then
7753 found_dir="$dir"
7754 found_a="$dir/$libname.$acl_libext"
7757 if test "X$found_dir" != "X"; then
7758 if test -f "$dir/$libname.la"; then
7759 found_la="$dir/$libname.la"
7763 esac
7764 if test "X$found_dir" != "X"; then
7765 break
7767 done
7769 if test "X$found_dir" != "X"; then
7770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771 if test "X$found_so" != "X"; then
7772 if test "$enable_rpath" = no \
7773 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7774 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7776 else
7777 haveit=
7778 for x in $ltrpathdirs; do
7779 if test "X$x" = "X$found_dir"; then
7780 haveit=yes
7781 break
7783 done
7784 if test -z "$haveit"; then
7785 ltrpathdirs="$ltrpathdirs $found_dir"
7787 if test "$acl_hardcode_direct" = yes; then
7788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7789 else
7790 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7792 haveit=
7793 for x in $rpathdirs; do
7794 if test "X$x" = "X$found_dir"; then
7795 haveit=yes
7796 break
7798 done
7799 if test -z "$haveit"; then
7800 rpathdirs="$rpathdirs $found_dir"
7802 else
7803 haveit=
7804 for x in $LDFLAGS $LIBICONV; do
7806 acl_save_prefix="$prefix"
7807 prefix="$acl_final_prefix"
7808 acl_save_exec_prefix="$exec_prefix"
7809 exec_prefix="$acl_final_exec_prefix"
7810 eval x=\"$x\"
7811 exec_prefix="$acl_save_exec_prefix"
7812 prefix="$acl_save_prefix"
7814 if test "X$x" = "X-L$found_dir"; then
7815 haveit=yes
7816 break
7818 done
7819 if test -z "$haveit"; then
7820 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7822 if test "$acl_hardcode_minus_L" != no; then
7823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7824 else
7825 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7830 else
7831 if test "X$found_a" != "X"; then
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7833 else
7834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7837 additional_includedir=
7838 case "$found_dir" in
7839 */$acl_libdirstem | */$acl_libdirstem/)
7840 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7841 if test "$name" = 'iconv'; then
7842 LIBICONV_PREFIX="$basedir"
7844 additional_includedir="$basedir/include"
7846 */$acl_libdirstem2 | */$acl_libdirstem2/)
7847 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7848 if test "$name" = 'iconv'; then
7849 LIBICONV_PREFIX="$basedir"
7851 additional_includedir="$basedir/include"
7853 esac
7854 if test "X$additional_includedir" != "X"; then
7855 if test "X$additional_includedir" != "X/usr/include"; then
7856 haveit=
7857 if test "X$additional_includedir" = "X/usr/local/include"; then
7858 if test -n "$GCC"; then
7859 case $host_os in
7860 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7861 esac
7864 if test -z "$haveit"; then
7865 for x in $CPPFLAGS $INCICONV; do
7867 acl_save_prefix="$prefix"
7868 prefix="$acl_final_prefix"
7869 acl_save_exec_prefix="$exec_prefix"
7870 exec_prefix="$acl_final_exec_prefix"
7871 eval x=\"$x\"
7872 exec_prefix="$acl_save_exec_prefix"
7873 prefix="$acl_save_prefix"
7875 if test "X$x" = "X-I$additional_includedir"; then
7876 haveit=yes
7877 break
7879 done
7880 if test -z "$haveit"; then
7881 if test -d "$additional_includedir"; then
7882 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7888 if test -n "$found_la"; then
7889 save_libdir="$libdir"
7890 case "$found_la" in
7891 */* | *\\*) . "$found_la" ;;
7892 *) . "./$found_la" ;;
7893 esac
7894 libdir="$save_libdir"
7895 for dep in $dependency_libs; do
7896 case "$dep" in
7897 -L*)
7898 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7899 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7900 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7901 haveit=
7902 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7903 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7904 if test -n "$GCC"; then
7905 case $host_os in
7906 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7907 esac
7910 if test -z "$haveit"; then
7911 haveit=
7912 for x in $LDFLAGS $LIBICONV; do
7914 acl_save_prefix="$prefix"
7915 prefix="$acl_final_prefix"
7916 acl_save_exec_prefix="$exec_prefix"
7917 exec_prefix="$acl_final_exec_prefix"
7918 eval x=\"$x\"
7919 exec_prefix="$acl_save_exec_prefix"
7920 prefix="$acl_save_prefix"
7922 if test "X$x" = "X-L$additional_libdir"; then
7923 haveit=yes
7924 break
7926 done
7927 if test -z "$haveit"; then
7928 if test -d "$additional_libdir"; then
7929 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7932 haveit=
7933 for x in $LDFLAGS $LTLIBICONV; do
7935 acl_save_prefix="$prefix"
7936 prefix="$acl_final_prefix"
7937 acl_save_exec_prefix="$exec_prefix"
7938 exec_prefix="$acl_final_exec_prefix"
7939 eval x=\"$x\"
7940 exec_prefix="$acl_save_exec_prefix"
7941 prefix="$acl_save_prefix"
7943 if test "X$x" = "X-L$additional_libdir"; then
7944 haveit=yes
7945 break
7947 done
7948 if test -z "$haveit"; then
7949 if test -d "$additional_libdir"; then
7950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7956 -R*)
7957 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7958 if test "$enable_rpath" != no; then
7959 haveit=
7960 for x in $rpathdirs; do
7961 if test "X$x" = "X$dir"; then
7962 haveit=yes
7963 break
7965 done
7966 if test -z "$haveit"; then
7967 rpathdirs="$rpathdirs $dir"
7969 haveit=
7970 for x in $ltrpathdirs; do
7971 if test "X$x" = "X$dir"; then
7972 haveit=yes
7973 break
7975 done
7976 if test -z "$haveit"; then
7977 ltrpathdirs="$ltrpathdirs $dir"
7981 -l*)
7982 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7984 *.la)
7985 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7988 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7989 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7991 esac
7992 done
7994 else
7995 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8000 done
8001 done
8002 if test "X$rpathdirs" != "X"; then
8003 if test -n "$acl_hardcode_libdir_separator"; then
8004 alldirs=
8005 for found_dir in $rpathdirs; do
8006 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8007 done
8008 acl_save_libdir="$libdir"
8009 libdir="$alldirs"
8010 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8011 libdir="$acl_save_libdir"
8012 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8013 else
8014 for found_dir in $rpathdirs; do
8015 acl_save_libdir="$libdir"
8016 libdir="$found_dir"
8017 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8018 libdir="$acl_save_libdir"
8019 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8020 done
8023 if test "X$ltrpathdirs" != "X"; then
8024 for found_dir in $ltrpathdirs; do
8025 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8026 done
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8060 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8061 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 gt_save_LIBS="$LIBS"
8065 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 #include <CoreFoundation/CFPreferences.h>
8070 main (void)
8072 CFPreferencesCopyAppValue(NULL, NULL)
8074 return 0;
8076 _ACEOF
8077 if ac_fn_c_try_link "$LINENO"; then :
8078 gt_cv_func_CFPreferencesCopyAppValue=yes
8079 else
8080 gt_cv_func_CFPreferencesCopyAppValue=no
8082 rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LIBS="$gt_save_LIBS"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8087 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8090 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8094 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8095 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 gt_save_LIBS="$LIBS"
8099 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #include <CoreFoundation/CFLocale.h>
8104 main (void)
8106 CFLocaleCopyCurrent();
8108 return 0;
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 gt_cv_func_CFLocaleCopyCurrent=yes
8113 else
8114 gt_cv_func_CFLocaleCopyCurrent=no
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS="$gt_save_LIBS"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8121 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8122 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8124 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8127 INTL_MACOSX_LIBS=
8128 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8129 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8137 LIBINTL=
8138 LTLIBINTL=
8139 POSUB=
8141 case " $gt_needs " in
8142 *" need-formatstring-macros "*) gt_api_version=3 ;;
8143 *" need-ngettext "*) gt_api_version=2 ;;
8144 *) gt_api_version=1 ;;
8145 esac
8146 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8147 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8149 if test "$USE_NLS" = "yes"; then
8150 gt_use_preinstalled_gnugettext=no
8153 if test $gt_api_version -ge 3; then
8154 gt_revision_test_code='
8155 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8156 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8157 #endif
8158 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8160 else
8161 gt_revision_test_code=
8163 if test $gt_api_version -ge 2; then
8164 gt_expression_test_code=' + * ngettext ("", "", 0)'
8165 else
8166 gt_expression_test_code=
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8170 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8171 if eval \${$gt_func_gnugettext_libc+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8177 #include <libintl.h>
8178 $gt_revision_test_code
8179 extern int _nl_msg_cat_cntr;
8180 extern int *_nl_domain_bindings;
8183 main (void)
8186 bindtextdomain ("", "");
8187 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8190 return 0;
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"; then :
8194 eval "$gt_func_gnugettext_libc=yes"
8195 else
8196 eval "$gt_func_gnugettext_libc=no"
8198 rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8201 eval ac_res=\$$gt_func_gnugettext_libc
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8203 $as_echo "$ac_res" >&6; }
8205 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8211 am_save_CPPFLAGS="$CPPFLAGS"
8213 for element in $INCICONV; do
8214 haveit=
8215 for x in $CPPFLAGS; do
8217 acl_save_prefix="$prefix"
8218 prefix="$acl_final_prefix"
8219 acl_save_exec_prefix="$exec_prefix"
8220 exec_prefix="$acl_final_exec_prefix"
8221 eval x=\"$x\"
8222 exec_prefix="$acl_save_exec_prefix"
8223 prefix="$acl_save_prefix"
8225 if test "X$x" = "X$element"; then
8226 haveit=yes
8227 break
8229 done
8230 if test -z "$haveit"; then
8231 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8233 done
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8237 $as_echo_n "checking for iconv... " >&6; }
8238 if ${am_cv_func_iconv+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8242 am_cv_func_iconv="no, consider installing GNU libiconv"
8243 am_cv_lib_iconv=no
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8247 #include <stdlib.h>
8248 #include <iconv.h>
8251 main (void)
8253 iconv_t cd = iconv_open("","");
8254 iconv(cd,NULL,NULL,NULL,NULL);
8255 iconv_close(cd);
8257 return 0;
8259 _ACEOF
8260 if ac_fn_c_try_link "$LINENO"; then :
8261 am_cv_func_iconv=yes
8263 rm -f core conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 if test "$am_cv_func_iconv" != yes; then
8266 am_save_LIBS="$LIBS"
8267 LIBS="$LIBS $LIBICONV"
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8271 #include <stdlib.h>
8272 #include <iconv.h>
8275 main (void)
8277 iconv_t cd = iconv_open("","");
8278 iconv(cd,NULL,NULL,NULL,NULL);
8279 iconv_close(cd);
8281 return 0;
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 am_cv_lib_iconv=yes
8286 am_cv_func_iconv=yes
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8290 LIBS="$am_save_LIBS"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8295 $as_echo "$am_cv_func_iconv" >&6; }
8296 if test "$am_cv_func_iconv" = yes; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8298 $as_echo_n "checking for working iconv... " >&6; }
8299 if ${am_cv_func_iconv_works+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8303 am_save_LIBS="$LIBS"
8304 if test $am_cv_lib_iconv = yes; then
8305 LIBS="$LIBS $LIBICONV"
8307 if test "$cross_compiling" = yes; then :
8309 case "$host_os" in
8310 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8311 *) am_cv_func_iconv_works="guessing yes" ;;
8312 esac
8314 else
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8318 #include <iconv.h>
8319 #include <string.h>
8320 int main ()
8322 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8323 returns. */
8325 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8326 if (cd_utf8_to_88591 != (iconv_t)(-1))
8328 static const char input[] = "\342\202\254"; /* EURO SIGN */
8329 char buf[10];
8330 const char *inptr = input;
8331 size_t inbytesleft = strlen (input);
8332 char *outptr = buf;
8333 size_t outbytesleft = sizeof (buf);
8334 size_t res = iconv (cd_utf8_to_88591,
8335 (char **) &inptr, &inbytesleft,
8336 &outptr, &outbytesleft);
8337 if (res == 0)
8338 return 1;
8341 /* Test against Solaris 10 bug: Failures are not distinguishable from
8342 successful returns. */
8344 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8345 if (cd_ascii_to_88591 != (iconv_t)(-1))
8347 static const char input[] = "\263";
8348 char buf[10];
8349 const char *inptr = input;
8350 size_t inbytesleft = strlen (input);
8351 char *outptr = buf;
8352 size_t outbytesleft = sizeof (buf);
8353 size_t res = iconv (cd_ascii_to_88591,
8354 (char **) &inptr, &inbytesleft,
8355 &outptr, &outbytesleft);
8356 if (res == 0)
8357 return 1;
8360 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8362 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8363 if (cd_88591_to_utf8 != (iconv_t)(-1))
8365 static const char input[] = "\304";
8366 static char buf[2] = { (char)0xDE, (char)0xAD };
8367 const char *inptr = input;
8368 size_t inbytesleft = 1;
8369 char *outptr = buf;
8370 size_t outbytesleft = 1;
8371 size_t res = iconv (cd_88591_to_utf8,
8372 (char **) &inptr, &inbytesleft,
8373 &outptr, &outbytesleft);
8374 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8375 return 1;
8378 #if 0 /* This bug could be worked around by the caller. */
8379 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8381 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8382 if (cd_88591_to_utf8 != (iconv_t)(-1))
8384 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8385 char buf[50];
8386 const char *inptr = input;
8387 size_t inbytesleft = strlen (input);
8388 char *outptr = buf;
8389 size_t outbytesleft = sizeof (buf);
8390 size_t res = iconv (cd_88591_to_utf8,
8391 (char **) &inptr, &inbytesleft,
8392 &outptr, &outbytesleft);
8393 if ((int)res > 0)
8394 return 1;
8397 #endif
8398 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8399 provided. */
8400 if (/* Try standardized names. */
8401 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8402 /* Try IRIX, OSF/1 names. */
8403 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8404 /* Try AIX names. */
8405 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8406 /* Try HP-UX names. */
8407 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8408 return 1;
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_run "$LINENO"; then :
8413 am_cv_func_iconv_works=yes
8414 else
8415 am_cv_func_iconv_works=no
8417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8418 conftest.$ac_objext conftest.beam conftest.$ac_ext
8421 LIBS="$am_save_LIBS"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8425 $as_echo "$am_cv_func_iconv_works" >&6; }
8426 case "$am_cv_func_iconv_works" in
8427 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8428 *) am_func_iconv=yes ;;
8429 esac
8430 else
8431 am_func_iconv=no am_cv_lib_iconv=no
8433 if test "$am_func_iconv" = yes; then
8435 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8438 if test "$am_cv_lib_iconv" = yes; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8440 $as_echo_n "checking how to link with libiconv... " >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8442 $as_echo "$LIBICONV" >&6; }
8443 else
8444 CPPFLAGS="$am_save_CPPFLAGS"
8445 LIBICONV=
8446 LTLIBICONV=
8459 use_additional=yes
8461 acl_save_prefix="$prefix"
8462 prefix="$acl_final_prefix"
8463 acl_save_exec_prefix="$exec_prefix"
8464 exec_prefix="$acl_final_exec_prefix"
8466 eval additional_includedir=\"$includedir\"
8467 eval additional_libdir=\"$libdir\"
8469 exec_prefix="$acl_save_exec_prefix"
8470 prefix="$acl_save_prefix"
8473 # Check whether --with-libintl-prefix was given.
8474 if test "${with_libintl_prefix+set}" = set; then :
8475 withval=$with_libintl_prefix;
8476 if test "X$withval" = "Xno"; then
8477 use_additional=no
8478 else
8479 if test "X$withval" = "X"; then
8481 acl_save_prefix="$prefix"
8482 prefix="$acl_final_prefix"
8483 acl_save_exec_prefix="$exec_prefix"
8484 exec_prefix="$acl_final_exec_prefix"
8486 eval additional_includedir=\"$includedir\"
8487 eval additional_libdir=\"$libdir\"
8489 exec_prefix="$acl_save_exec_prefix"
8490 prefix="$acl_save_prefix"
8492 else
8493 additional_includedir="$withval/include"
8494 additional_libdir="$withval/$acl_libdirstem"
8495 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8496 && ! test -d "$withval/$acl_libdirstem"; then
8497 additional_libdir="$withval/$acl_libdirstem2"
8504 LIBINTL=
8505 LTLIBINTL=
8506 INCINTL=
8507 LIBINTL_PREFIX=
8508 HAVE_LIBINTL=
8509 rpathdirs=
8510 ltrpathdirs=
8511 names_already_handled=
8512 names_next_round='intl '
8513 while test -n "$names_next_round"; do
8514 names_this_round="$names_next_round"
8515 names_next_round=
8516 for name in $names_this_round; do
8517 already_handled=
8518 for n in $names_already_handled; do
8519 if test "$n" = "$name"; then
8520 already_handled=yes
8521 break
8523 done
8524 if test -z "$already_handled"; then
8525 names_already_handled="$names_already_handled $name"
8526 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8527 eval value=\"\$HAVE_LIB$uppername\"
8528 if test -n "$value"; then
8529 if test "$value" = yes; then
8530 eval value=\"\$LIB$uppername\"
8531 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8532 eval value=\"\$LTLIB$uppername\"
8533 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8534 else
8537 else
8538 found_dir=
8539 found_la=
8540 found_so=
8541 found_a=
8542 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8543 if test -n "$acl_shlibext"; then
8544 shrext=".$acl_shlibext" # typically: shrext=.so
8545 else
8546 shrext=
8548 if test $use_additional = yes; then
8549 dir="$additional_libdir"
8550 if test -n "$acl_shlibext"; then
8551 if test -f "$dir/$libname$shrext"; then
8552 found_dir="$dir"
8553 found_so="$dir/$libname$shrext"
8554 else
8555 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8556 ver=`(cd "$dir" && \
8557 for f in "$libname$shrext".*; do echo "$f"; done \
8558 | sed -e "s,^$libname$shrext\\\\.,," \
8559 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8560 | sed 1q ) 2>/dev/null`
8561 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8562 found_dir="$dir"
8563 found_so="$dir/$libname$shrext.$ver"
8565 else
8566 eval library_names=\"$acl_library_names_spec\"
8567 for f in $library_names; do
8568 if test -f "$dir/$f"; then
8569 found_dir="$dir"
8570 found_so="$dir/$f"
8571 break
8573 done
8577 if test "X$found_dir" = "X"; then
8578 if test -f "$dir/$libname.$acl_libext"; then
8579 found_dir="$dir"
8580 found_a="$dir/$libname.$acl_libext"
8583 if test "X$found_dir" != "X"; then
8584 if test -f "$dir/$libname.la"; then
8585 found_la="$dir/$libname.la"
8589 if test "X$found_dir" = "X"; then
8590 for x in $LDFLAGS $LTLIBINTL; do
8592 acl_save_prefix="$prefix"
8593 prefix="$acl_final_prefix"
8594 acl_save_exec_prefix="$exec_prefix"
8595 exec_prefix="$acl_final_exec_prefix"
8596 eval x=\"$x\"
8597 exec_prefix="$acl_save_exec_prefix"
8598 prefix="$acl_save_prefix"
8600 case "$x" in
8601 -L*)
8602 dir=`echo "X$x" | sed -e 's/^X-L//'`
8603 if test -n "$acl_shlibext"; then
8604 if test -f "$dir/$libname$shrext"; then
8605 found_dir="$dir"
8606 found_so="$dir/$libname$shrext"
8607 else
8608 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8609 ver=`(cd "$dir" && \
8610 for f in "$libname$shrext".*; do echo "$f"; done \
8611 | sed -e "s,^$libname$shrext\\\\.,," \
8612 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8613 | sed 1q ) 2>/dev/null`
8614 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8615 found_dir="$dir"
8616 found_so="$dir/$libname$shrext.$ver"
8618 else
8619 eval library_names=\"$acl_library_names_spec\"
8620 for f in $library_names; do
8621 if test -f "$dir/$f"; then
8622 found_dir="$dir"
8623 found_so="$dir/$f"
8624 break
8626 done
8630 if test "X$found_dir" = "X"; then
8631 if test -f "$dir/$libname.$acl_libext"; then
8632 found_dir="$dir"
8633 found_a="$dir/$libname.$acl_libext"
8636 if test "X$found_dir" != "X"; then
8637 if test -f "$dir/$libname.la"; then
8638 found_la="$dir/$libname.la"
8642 esac
8643 if test "X$found_dir" != "X"; then
8644 break
8646 done
8648 if test "X$found_dir" != "X"; then
8649 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8650 if test "X$found_so" != "X"; then
8651 if test "$enable_rpath" = no \
8652 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8653 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8654 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8655 else
8656 haveit=
8657 for x in $ltrpathdirs; do
8658 if test "X$x" = "X$found_dir"; then
8659 haveit=yes
8660 break
8662 done
8663 if test -z "$haveit"; then
8664 ltrpathdirs="$ltrpathdirs $found_dir"
8666 if test "$acl_hardcode_direct" = yes; then
8667 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8668 else
8669 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8670 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8671 haveit=
8672 for x in $rpathdirs; do
8673 if test "X$x" = "X$found_dir"; then
8674 haveit=yes
8675 break
8677 done
8678 if test -z "$haveit"; then
8679 rpathdirs="$rpathdirs $found_dir"
8681 else
8682 haveit=
8683 for x in $LDFLAGS $LIBINTL; do
8685 acl_save_prefix="$prefix"
8686 prefix="$acl_final_prefix"
8687 acl_save_exec_prefix="$exec_prefix"
8688 exec_prefix="$acl_final_exec_prefix"
8689 eval x=\"$x\"
8690 exec_prefix="$acl_save_exec_prefix"
8691 prefix="$acl_save_prefix"
8693 if test "X$x" = "X-L$found_dir"; then
8694 haveit=yes
8695 break
8697 done
8698 if test -z "$haveit"; then
8699 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8701 if test "$acl_hardcode_minus_L" != no; then
8702 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8703 else
8704 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8709 else
8710 if test "X$found_a" != "X"; then
8711 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8712 else
8713 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8716 additional_includedir=
8717 case "$found_dir" in
8718 */$acl_libdirstem | */$acl_libdirstem/)
8719 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8720 if test "$name" = 'intl'; then
8721 LIBINTL_PREFIX="$basedir"
8723 additional_includedir="$basedir/include"
8725 */$acl_libdirstem2 | */$acl_libdirstem2/)
8726 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8727 if test "$name" = 'intl'; then
8728 LIBINTL_PREFIX="$basedir"
8730 additional_includedir="$basedir/include"
8732 esac
8733 if test "X$additional_includedir" != "X"; then
8734 if test "X$additional_includedir" != "X/usr/include"; then
8735 haveit=
8736 if test "X$additional_includedir" = "X/usr/local/include"; then
8737 if test -n "$GCC"; then
8738 case $host_os in
8739 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8740 esac
8743 if test -z "$haveit"; then
8744 for x in $CPPFLAGS $INCINTL; do
8746 acl_save_prefix="$prefix"
8747 prefix="$acl_final_prefix"
8748 acl_save_exec_prefix="$exec_prefix"
8749 exec_prefix="$acl_final_exec_prefix"
8750 eval x=\"$x\"
8751 exec_prefix="$acl_save_exec_prefix"
8752 prefix="$acl_save_prefix"
8754 if test "X$x" = "X-I$additional_includedir"; then
8755 haveit=yes
8756 break
8758 done
8759 if test -z "$haveit"; then
8760 if test -d "$additional_includedir"; then
8761 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8767 if test -n "$found_la"; then
8768 save_libdir="$libdir"
8769 case "$found_la" in
8770 */* | *\\*) . "$found_la" ;;
8771 *) . "./$found_la" ;;
8772 esac
8773 libdir="$save_libdir"
8774 for dep in $dependency_libs; do
8775 case "$dep" in
8776 -L*)
8777 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8778 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8779 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8780 haveit=
8781 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8782 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8783 if test -n "$GCC"; then
8784 case $host_os in
8785 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8786 esac
8789 if test -z "$haveit"; then
8790 haveit=
8791 for x in $LDFLAGS $LIBINTL; do
8793 acl_save_prefix="$prefix"
8794 prefix="$acl_final_prefix"
8795 acl_save_exec_prefix="$exec_prefix"
8796 exec_prefix="$acl_final_exec_prefix"
8797 eval x=\"$x\"
8798 exec_prefix="$acl_save_exec_prefix"
8799 prefix="$acl_save_prefix"
8801 if test "X$x" = "X-L$additional_libdir"; then
8802 haveit=yes
8803 break
8805 done
8806 if test -z "$haveit"; then
8807 if test -d "$additional_libdir"; then
8808 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8811 haveit=
8812 for x in $LDFLAGS $LTLIBINTL; do
8814 acl_save_prefix="$prefix"
8815 prefix="$acl_final_prefix"
8816 acl_save_exec_prefix="$exec_prefix"
8817 exec_prefix="$acl_final_exec_prefix"
8818 eval x=\"$x\"
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8822 if test "X$x" = "X-L$additional_libdir"; then
8823 haveit=yes
8824 break
8826 done
8827 if test -z "$haveit"; then
8828 if test -d "$additional_libdir"; then
8829 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8835 -R*)
8836 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8837 if test "$enable_rpath" != no; then
8838 haveit=
8839 for x in $rpathdirs; do
8840 if test "X$x" = "X$dir"; then
8841 haveit=yes
8842 break
8844 done
8845 if test -z "$haveit"; then
8846 rpathdirs="$rpathdirs $dir"
8848 haveit=
8849 for x in $ltrpathdirs; do
8850 if test "X$x" = "X$dir"; then
8851 haveit=yes
8852 break
8854 done
8855 if test -z "$haveit"; then
8856 ltrpathdirs="$ltrpathdirs $dir"
8860 -l*)
8861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8863 *.la)
8864 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8867 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8868 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8870 esac
8871 done
8873 else
8874 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8875 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8879 done
8880 done
8881 if test "X$rpathdirs" != "X"; then
8882 if test -n "$acl_hardcode_libdir_separator"; then
8883 alldirs=
8884 for found_dir in $rpathdirs; do
8885 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8886 done
8887 acl_save_libdir="$libdir"
8888 libdir="$alldirs"
8889 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8890 libdir="$acl_save_libdir"
8891 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8892 else
8893 for found_dir in $rpathdirs; do
8894 acl_save_libdir="$libdir"
8895 libdir="$found_dir"
8896 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8897 libdir="$acl_save_libdir"
8898 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8899 done
8902 if test "X$ltrpathdirs" != "X"; then
8903 for found_dir in $ltrpathdirs; do
8904 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8905 done
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8914 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8915 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 gt_save_CPPFLAGS="$CPPFLAGS"
8919 CPPFLAGS="$CPPFLAGS $INCINTL"
8920 gt_save_LIBS="$LIBS"
8921 LIBS="$LIBS $LIBINTL"
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8925 #include <libintl.h>
8926 $gt_revision_test_code
8927 extern int _nl_msg_cat_cntr;
8928 extern
8929 #ifdef __cplusplus
8931 #endif
8932 const char *_nl_expand_alias (const char *);
8935 main (void)
8938 bindtextdomain ("", "");
8939 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8942 return 0;
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"; then :
8946 eval "$gt_func_gnugettext_libintl=yes"
8947 else
8948 eval "$gt_func_gnugettext_libintl=no"
8950 rm -f core conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8953 LIBS="$LIBS $LIBICONV"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 #include <libintl.h>
8958 $gt_revision_test_code
8959 extern int _nl_msg_cat_cntr;
8960 extern
8961 #ifdef __cplusplus
8963 #endif
8964 const char *_nl_expand_alias (const char *);
8967 main (void)
8970 bindtextdomain ("", "");
8971 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8974 return 0;
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8978 LIBINTL="$LIBINTL $LIBICONV"
8979 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8980 eval "$gt_func_gnugettext_libintl=yes"
8983 rm -f core conftest.err conftest.$ac_objext \
8984 conftest$ac_exeext conftest.$ac_ext
8986 CPPFLAGS="$gt_save_CPPFLAGS"
8987 LIBS="$gt_save_LIBS"
8989 eval ac_res=\$$gt_func_gnugettext_libintl
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8991 $as_echo "$ac_res" >&6; }
8994 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8995 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8996 && test "$PACKAGE" != gettext-runtime \
8997 && test "$PACKAGE" != gettext-tools; }; then
8998 gt_use_preinstalled_gnugettext=yes
8999 else
9000 LIBINTL=
9001 LTLIBINTL=
9002 INCINTL=
9007 if test -n "$INTL_MACOSX_LIBS"; then
9008 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9009 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9010 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9011 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9015 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9016 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9018 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9020 else
9021 USE_NLS=no
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9026 $as_echo_n "checking whether to use NLS... " >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9028 $as_echo "$USE_NLS" >&6; }
9029 if test "$USE_NLS" = "yes"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9031 $as_echo_n "checking where the gettext function comes from... " >&6; }
9032 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9033 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9034 gt_source="external libintl"
9035 else
9036 gt_source="libc"
9038 else
9039 gt_source="included intl directory"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9042 $as_echo "$gt_source" >&6; }
9045 if test "$USE_NLS" = "yes"; then
9047 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9048 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9050 $as_echo_n "checking how to link with libintl... " >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9052 $as_echo "$LIBINTL" >&6; }
9054 for element in $INCINTL; do
9055 haveit=
9056 for x in $CPPFLAGS; do
9058 acl_save_prefix="$prefix"
9059 prefix="$acl_final_prefix"
9060 acl_save_exec_prefix="$exec_prefix"
9061 exec_prefix="$acl_final_exec_prefix"
9062 eval x=\"$x\"
9063 exec_prefix="$acl_save_exec_prefix"
9064 prefix="$acl_save_prefix"
9066 if test "X$x" = "X$element"; then
9067 haveit=yes
9068 break
9070 done
9071 if test -z "$haveit"; then
9072 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9074 done
9079 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9082 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9086 POSUB=po
9091 INTLLIBS="$LIBINTL"
9098 # Check whether --enable-largefile was given.
9099 if test "${enable_largefile+set}" = set; then :
9100 enableval=$enable_largefile;
9103 if test "$enable_largefile" != no; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9106 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9107 if ${ac_cv_sys_largefile_CC+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 ac_cv_sys_largefile_CC=no
9111 if test "$GCC" != yes; then
9112 ac_save_CC=$CC
9113 while :; do
9114 # IRIX 6.2 and later do not support large files by default,
9115 # so use the C compiler's -n32 option if that helps.
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <sys/types.h>
9119 /* Check that off_t can represent 2**63 - 1 correctly.
9120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9121 since some C++ compilers masquerading as C compilers
9122 incorrectly reject 9223372036854775807. */
9123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9125 && LARGE_OFF_T % 2147483647 == 1)
9126 ? 1 : -1];
9128 main (void)
9132 return 0;
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 break
9138 rm -f core conftest.err conftest.$ac_objext
9139 CC="$CC -n32"
9140 if ac_fn_c_try_compile "$LINENO"; then :
9141 ac_cv_sys_largefile_CC=' -n32'; break
9143 rm -f core conftest.err conftest.$ac_objext
9144 break
9145 done
9146 CC=$ac_save_CC
9147 rm -f conftest.$ac_ext
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9151 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9152 if test "$ac_cv_sys_largefile_CC" != no; then
9153 CC=$CC$ac_cv_sys_largefile_CC
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9157 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9158 if ${ac_cv_sys_file_offset_bits+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 while :; do
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <sys/types.h>
9165 /* Check that off_t can represent 2**63 - 1 correctly.
9166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9167 since some C++ compilers masquerading as C compilers
9168 incorrectly reject 9223372036854775807. */
9169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9171 && LARGE_OFF_T % 2147483647 == 1)
9172 ? 1 : -1];
9174 main (void)
9178 return 0;
9180 _ACEOF
9181 if ac_fn_c_try_compile "$LINENO"; then :
9182 ac_cv_sys_file_offset_bits=no; break
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #define _FILE_OFFSET_BITS 64
9188 #include <sys/types.h>
9189 /* Check that off_t can represent 2**63 - 1 correctly.
9190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9191 since some C++ compilers masquerading as C compilers
9192 incorrectly reject 9223372036854775807. */
9193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9195 && LARGE_OFF_T % 2147483647 == 1)
9196 ? 1 : -1];
9198 main (void)
9202 return 0;
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"; then :
9206 ac_cv_sys_file_offset_bits=64; break
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 ac_cv_sys_file_offset_bits=unknown
9210 break
9211 done
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9214 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9215 case $ac_cv_sys_file_offset_bits in #(
9216 no | unknown) ;;
9218 cat >>confdefs.h <<_ACEOF
9219 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9220 _ACEOF
9222 esac
9223 rm -rf conftest*
9224 if test $ac_cv_sys_file_offset_bits = unknown; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9226 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9227 if ${ac_cv_sys_large_files+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 while :; do
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <sys/types.h>
9234 /* Check that off_t can represent 2**63 - 1 correctly.
9235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9236 since some C++ compilers masquerading as C compilers
9237 incorrectly reject 9223372036854775807. */
9238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9240 && LARGE_OFF_T % 2147483647 == 1)
9241 ? 1 : -1];
9243 main (void)
9247 return 0;
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 ac_cv_sys_large_files=no; break
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #define _LARGE_FILES 1
9257 #include <sys/types.h>
9258 /* Check that off_t can represent 2**63 - 1 correctly.
9259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9260 since some C++ compilers masquerading as C compilers
9261 incorrectly reject 9223372036854775807. */
9262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9264 && LARGE_OFF_T % 2147483647 == 1)
9265 ? 1 : -1];
9267 main (void)
9271 return 0;
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"; then :
9275 ac_cv_sys_large_files=1; break
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 ac_cv_sys_large_files=unknown
9279 break
9280 done
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9283 $as_echo "$ac_cv_sys_large_files" >&6; }
9284 case $ac_cv_sys_large_files in #(
9285 no | unknown) ;;
9287 cat >>confdefs.h <<_ACEOF
9288 #define _LARGE_FILES $ac_cv_sys_large_files
9289 _ACEOF
9291 esac
9292 rm -rf conftest*
9297 # Identify characteristics of the host architecture.
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9299 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9300 if ${ac_cv_c_bigendian+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 ac_cv_c_bigendian=unknown
9304 # See if we're dealing with a universal compiler.
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 #ifndef __APPLE_CC__
9308 not a universal capable compiler
9309 #endif
9310 typedef int dummy;
9312 _ACEOF
9313 if ac_fn_c_try_compile "$LINENO"; then :
9315 # Check for potential -arch flags. It is not universal unless
9316 # there are at least two -arch flags with different values.
9317 ac_arch=
9318 ac_prev=
9319 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9320 if test -n "$ac_prev"; then
9321 case $ac_word in
9322 i?86 | x86_64 | ppc | ppc64)
9323 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9324 ac_arch=$ac_word
9325 else
9326 ac_cv_c_bigendian=universal
9327 break
9330 esac
9331 ac_prev=
9332 elif test "x$ac_word" = "x-arch"; then
9333 ac_prev=arch
9335 done
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 if test $ac_cv_c_bigendian = unknown; then
9339 # See if sys/param.h defines the BYTE_ORDER macro.
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 #include <sys/types.h>
9343 #include <sys/param.h>
9346 main (void)
9348 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9349 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9350 && LITTLE_ENDIAN)
9351 bogus endian macros
9352 #endif
9355 return 0;
9357 _ACEOF
9358 if ac_fn_c_try_compile "$LINENO"; then :
9359 # It does; now see whether it defined to BIG_ENDIAN or not.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 #include <sys/types.h>
9363 #include <sys/param.h>
9366 main (void)
9368 #if BYTE_ORDER != BIG_ENDIAN
9369 not big endian
9370 #endif
9373 return 0;
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"; then :
9377 ac_cv_c_bigendian=yes
9378 else
9379 ac_cv_c_bigendian=no
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 if test $ac_cv_c_bigendian = unknown; then
9386 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #include <limits.h>
9392 main (void)
9394 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9395 bogus endian macros
9396 #endif
9399 return 0;
9401 _ACEOF
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 # It does; now see whether it defined to _BIG_ENDIAN or not.
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <limits.h>
9409 main (void)
9411 #ifndef _BIG_ENDIAN
9412 not big endian
9413 #endif
9416 return 0;
9418 _ACEOF
9419 if ac_fn_c_try_compile "$LINENO"; then :
9420 ac_cv_c_bigendian=yes
9421 else
9422 ac_cv_c_bigendian=no
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 if test $ac_cv_c_bigendian = unknown; then
9429 # Compile a test program.
9430 if test "$cross_compiling" = yes; then :
9431 # Try to guess by grepping values from an object file.
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 short int ascii_mm[] =
9435 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9436 short int ascii_ii[] =
9437 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9438 int use_ascii (int i) {
9439 return ascii_mm[i] + ascii_ii[i];
9441 short int ebcdic_ii[] =
9442 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9443 short int ebcdic_mm[] =
9444 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9445 int use_ebcdic (int i) {
9446 return ebcdic_mm[i] + ebcdic_ii[i];
9448 extern int foo;
9451 main (void)
9453 return use_ascii (foo) == use_ebcdic (foo);
9455 return 0;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"; then :
9459 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9460 ac_cv_c_bigendian=yes
9462 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9463 if test "$ac_cv_c_bigendian" = unknown; then
9464 ac_cv_c_bigendian=no
9465 else
9466 # finding both strings is unlikely to happen, but who knows?
9467 ac_cv_c_bigendian=unknown
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 else
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9475 $ac_includes_default
9477 main (void)
9480 /* Are we little or big endian? From Harbison&Steele. */
9481 union
9483 long int l;
9484 char c[sizeof (long int)];
9485 } u;
9486 u.l = 1;
9487 return u.c[sizeof (long int) - 1] == 1;
9490 return 0;
9492 _ACEOF
9493 if ac_fn_c_try_run "$LINENO"; then :
9494 ac_cv_c_bigendian=no
9495 else
9496 ac_cv_c_bigendian=yes
9498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9499 conftest.$ac_objext conftest.beam conftest.$ac_ext
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9505 $as_echo "$ac_cv_c_bigendian" >&6; }
9506 case $ac_cv_c_bigendian in #(
9507 yes)
9508 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9509 ;; #(
9511 ;; #(
9512 universal)
9514 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9516 ;; #(
9518 as_fn_error $? "unknown endianness
9519 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9520 esac
9522 # The cast to long int works around a bug in the HP C Compiler
9523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9525 # This bug is HP SR number 8606223364.
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9527 $as_echo_n "checking size of void *... " >&6; }
9528 if ${ac_cv_sizeof_void_p+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
9533 else
9534 if test "$ac_cv_type_void_p" = yes; then
9535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9537 as_fn_error 77 "cannot compute sizeof (void *)
9538 See \`config.log' for more details" "$LINENO" 5; }
9539 else
9540 ac_cv_sizeof_void_p=0
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9546 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9550 cat >>confdefs.h <<_ACEOF
9551 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9552 _ACEOF
9555 # The cast to long int works around a bug in the HP C Compiler
9556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9558 # This bug is HP SR number 8606223364.
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9560 $as_echo_n "checking size of long... " >&6; }
9561 if ${ac_cv_sizeof_long+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9566 else
9567 if test "$ac_cv_type_long" = yes; then
9568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9570 as_fn_error 77 "cannot compute sizeof (long)
9571 See \`config.log' for more details" "$LINENO" 5; }
9572 else
9573 ac_cv_sizeof_long=0
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9579 $as_echo "$ac_cv_sizeof_long" >&6; }
9583 cat >>confdefs.h <<_ACEOF
9584 #define SIZEOF_LONG $ac_cv_sizeof_long
9585 _ACEOF
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
9591 $as_echo_n "checking whether our compiler is apple cc... " >&6; }
9592 if ${grub_cv_apple_cc+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
9596 grub_cv_apple_cc=yes
9597 else
9598 grub_cv_apple_cc=no
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
9605 $as_echo "$grub_cv_apple_cc" >&6; }
9606 if test x$grub_cv_apple_cc = xyes ; then
9607 HOST_CPPFLAGS="$HOST_CPPFLAGS -fnested-functions"
9608 HOST_LDFLAGS="$HOST_LDFLAGS -Wl,-allow_stack_execute"
9611 if test x$USE_NLS = xno; then
9612 HOST_CFLAGS="$HOST_CFLAGS -fno-builtin-gettext"
9615 if test "x$cross_compiling" = xyes; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
9617 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
9618 else
9619 # Extract the first word of "help2man", so it can be a program name with args.
9620 set dummy help2man; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_path_HELP2MAN+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 case $HELP2MAN in
9627 [\\/]* | ?:[\\/]*)
9628 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9638 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9642 done
9643 done
9644 IFS=$as_save_IFS
9647 esac
9649 HELP2MAN=$ac_cv_path_HELP2MAN
9650 if test -n "$HELP2MAN"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9652 $as_echo "$HELP2MAN" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9661 # Check for functions and headers.
9662 for ac_func in posix_memalign memalign asprintf vasprintf getextmntent
9663 do :
9664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9667 cat >>confdefs.h <<_ACEOF
9668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9669 _ACEOF
9672 done
9674 for ac_header in sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h limits.h
9675 do :
9676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9679 cat >>confdefs.h <<_ACEOF
9680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9681 _ACEOF
9685 done
9688 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
9689 #include <sys/param.h>
9690 #include <sys/mount.h>
9692 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
9696 _ACEOF
9702 ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
9703 #include <sys/param.h>
9704 #include <sys/mount.h>
9706 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes; then :
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
9710 _ACEOF
9716 # For opendisk() and getrawpartition() on NetBSD.
9717 # Used in util/deviceiter.c and in util/hostdisk.c.
9718 ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
9719 if test "x$ac_cv_header_util_h" = xyes; then :
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
9722 $as_echo_n "checking for opendisk in -lutil... " >&6; }
9723 if ${ac_cv_lib_util_opendisk+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lutil $LIBS"
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char opendisk ();
9739 main (void)
9741 return opendisk ();
9743 return 0;
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 ac_cv_lib_util_opendisk=yes
9748 else
9749 ac_cv_lib_util_opendisk=no
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
9756 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
9757 if test "x$ac_cv_lib_util_opendisk" = xyes; then :
9759 LIBUTIL="-lutil"
9761 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
9767 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
9768 if ${ac_cv_lib_util_getrawpartition+:} false; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 ac_check_lib_save_LIBS=$LIBS
9772 LIBS="-lutil $LIBS"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9776 /* Override any GCC internal prototype to avoid an error.
9777 Use char because int might match the return type of a GCC
9778 builtin and then its argument prototype would still apply. */
9779 #ifdef __cplusplus
9780 extern "C"
9781 #endif
9782 char getrawpartition ();
9784 main (void)
9786 return getrawpartition ();
9788 return 0;
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792 ac_cv_lib_util_getrawpartition=yes
9793 else
9794 ac_cv_lib_util_getrawpartition=no
9796 rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
9801 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
9802 if test "x$ac_cv_lib_util_getrawpartition" = xyes; then :
9804 LIBUTIL="-lutil"
9806 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
9818 # Check for host and build compilers.
9820 HOST_CC=$CC
9821 for ac_prog in gcc egcs cc
9823 # Extract the first word of "$ac_prog", so it can be a program name with args.
9824 set dummy $ac_prog; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_prog_BUILD_CC+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 if test -n "$BUILD_CC"; then
9831 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
9832 else
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_BUILD_CC="$ac_prog"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 break 2
9844 done
9845 done
9846 IFS=$as_save_IFS
9850 BUILD_CC=$ac_cv_prog_BUILD_CC
9851 if test -n "$BUILD_CC"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
9853 $as_echo "$BUILD_CC" >&6; }
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9860 test -n "$BUILD_CC" && break
9861 done
9862 test -n "$BUILD_CC" || BUILD_CC="as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5"
9865 # For gnulib.
9870 LIBC_FATAL_STDERR_=1
9871 export LIBC_FATAL_STDERR_
9873 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9874 if test "x$ac_cv_type_size_t" = xyes; then :
9876 else
9878 cat >>confdefs.h <<_ACEOF
9879 #define size_t unsigned int
9880 _ACEOF
9884 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9885 # for constant arguments. Useless!
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9887 $as_echo_n "checking for working alloca.h... " >&6; }
9888 if ${ac_cv_working_alloca_h+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 #include <alloca.h>
9895 main (void)
9897 char *p = (char *) alloca (2 * sizeof (int));
9898 if (p) return 0;
9900 return 0;
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"; then :
9904 ac_cv_working_alloca_h=yes
9905 else
9906 ac_cv_working_alloca_h=no
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9912 $as_echo "$ac_cv_working_alloca_h" >&6; }
9913 if test $ac_cv_working_alloca_h = yes; then
9915 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9920 $as_echo_n "checking for alloca... " >&6; }
9921 if ${ac_cv_func_alloca_works+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926 #ifdef __GNUC__
9927 # define alloca __builtin_alloca
9928 #else
9929 # ifdef _MSC_VER
9930 # include <malloc.h>
9931 # define alloca _alloca
9932 # else
9933 # ifdef HAVE_ALLOCA_H
9934 # include <alloca.h>
9935 # else
9936 # ifdef _AIX
9937 #pragma alloca
9938 # else
9939 # ifndef alloca /* predefined by HP cc +Olibcalls */
9940 void *alloca (size_t);
9941 # endif
9942 # endif
9943 # endif
9944 # endif
9945 #endif
9948 main (void)
9950 char *p = (char *) alloca (1);
9951 if (p) return 0;
9953 return 0;
9955 _ACEOF
9956 if ac_fn_c_try_link "$LINENO"; then :
9957 ac_cv_func_alloca_works=yes
9958 else
9959 ac_cv_func_alloca_works=no
9961 rm -f core conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9965 $as_echo "$ac_cv_func_alloca_works" >&6; }
9967 if test $ac_cv_func_alloca_works = yes; then
9969 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9971 else
9972 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9973 # that cause trouble. Some versions do not even contain alloca or
9974 # contain a buggy version. If you still want to use their alloca,
9975 # use ar to extract alloca.o from them instead of compiling alloca.c.
9981 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9983 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9987 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9988 if ${ac_cv_os_cray+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 #if defined CRAY && ! defined CRAY2
9994 webecray
9995 #else
9996 wenotbecray
9997 #endif
9999 _ACEOF
10000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10001 $EGREP "webecray" >/dev/null 2>&1; then :
10002 ac_cv_os_cray=yes
10003 else
10004 ac_cv_os_cray=no
10006 rm -f conftest*
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10010 $as_echo "$ac_cv_os_cray" >&6; }
10011 if test $ac_cv_os_cray = yes; then
10012 for ac_func in _getb67 GETB67 getb67; do
10013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10015 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10017 cat >>confdefs.h <<_ACEOF
10018 #define CRAY_STACKSEG_END $ac_func
10019 _ACEOF
10021 break
10024 done
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10028 $as_echo_n "checking stack direction for C alloca... " >&6; }
10029 if ${ac_cv_c_stack_direction+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 if test "$cross_compiling" = yes; then :
10033 ac_cv_c_stack_direction=0
10034 else
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 $ac_includes_default
10039 find_stack_direction ()
10041 static char *addr = 0;
10042 auto char dummy;
10043 if (addr == 0)
10045 addr = &dummy;
10046 return find_stack_direction ();
10048 else
10049 return (&dummy > addr) ? 1 : -1;
10053 main ()
10055 return find_stack_direction () < 0;
10057 _ACEOF
10058 if ac_fn_c_try_run "$LINENO"; then :
10059 ac_cv_c_stack_direction=1
10060 else
10061 ac_cv_c_stack_direction=-1
10063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10064 conftest.$ac_objext conftest.beam conftest.$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10069 $as_echo "$ac_cv_c_stack_direction" >&6; }
10070 cat >>confdefs.h <<_ACEOF
10071 #define STACK_DIRECTION $ac_cv_c_stack_direction
10072 _ACEOF
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10078 $as_echo_n "checking for inline... " >&6; }
10079 if ${ac_cv_c_inline+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 ac_cv_c_inline=no
10083 for ac_kw in inline __inline__ __inline; do
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #ifndef __cplusplus
10087 typedef int foo_t;
10088 static $ac_kw foo_t static_foo () {return 0; }
10089 $ac_kw foo_t foo () {return 0; }
10090 #endif
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"; then :
10094 ac_cv_c_inline=$ac_kw
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 test "$ac_cv_c_inline" != no && break
10098 done
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10102 $as_echo "$ac_cv_c_inline" >&6; }
10104 case $ac_cv_c_inline in
10105 inline | yes) ;;
10107 case $ac_cv_c_inline in
10108 no) ac_val=;;
10109 *) ac_val=$ac_cv_c_inline;;
10110 esac
10111 cat >>confdefs.h <<_ACEOF
10112 #ifndef __cplusplus
10113 #define inline $ac_val
10114 #endif
10115 _ACEOF
10117 esac
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10120 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10121 if ${ac_cv_c_restrict+:} false; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_cv_c_restrict=no
10125 # The order here caters to the fact that C++ does not require restrict.
10126 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 typedef int * int_ptr;
10130 int foo (int_ptr $ac_kw ip) {
10131 return ip[0];
10134 main (void)
10136 int s[1];
10137 int * $ac_kw t = s;
10138 t[0] = 0;
10139 return foo(t)
10141 return 0;
10143 _ACEOF
10144 if ac_fn_c_try_compile "$LINENO"; then :
10145 ac_cv_c_restrict=$ac_kw
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 test "$ac_cv_c_restrict" != no && break
10149 done
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10153 $as_echo "$ac_cv_c_restrict" >&6; }
10155 case $ac_cv_c_restrict in
10156 restrict) ;;
10157 no) $as_echo "#define restrict /**/" >>confdefs.h
10159 *) cat >>confdefs.h <<_ACEOF
10160 #define restrict $ac_cv_c_restrict
10161 _ACEOF
10163 esac
10165 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
10166 if test "x$ac_cv_have_decl_getenv" = xyes; then :
10167 ac_have_decl=1
10168 else
10169 ac_have_decl=0
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_DECL_GETENV $ac_have_decl
10174 _ACEOF
10176 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
10177 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
10178 ac_have_decl=1
10179 else
10180 ac_have_decl=0
10183 cat >>confdefs.h <<_ACEOF
10184 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
10185 _ACEOF
10187 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
10188 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
10189 ac_have_decl=1
10190 else
10191 ac_have_decl=0
10194 cat >>confdefs.h <<_ACEOF
10195 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
10196 _ACEOF
10198 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
10199 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
10200 ac_have_decl=1
10201 else
10202 ac_have_decl=0
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
10207 _ACEOF
10209 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
10210 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
10211 ac_have_decl=1
10212 else
10213 ac_have_decl=0
10216 cat >>confdefs.h <<_ACEOF
10217 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
10218 _ACEOF
10220 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
10221 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
10222 ac_have_decl=1
10223 else
10224 ac_have_decl=0
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
10229 _ACEOF
10231 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
10232 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
10233 ac_have_decl=1
10234 else
10235 ac_have_decl=0
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
10240 _ACEOF
10242 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
10243 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
10244 ac_have_decl=1
10245 else
10246 ac_have_decl=0
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
10251 _ACEOF
10253 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
10254 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
10255 ac_have_decl=1
10256 else
10257 ac_have_decl=0
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
10262 _ACEOF
10264 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
10265 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
10266 ac_have_decl=1
10267 else
10268 ac_have_decl=0
10271 cat >>confdefs.h <<_ACEOF
10272 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
10273 _ACEOF
10275 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10276 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10277 ac_have_decl=1
10278 else
10279 ac_have_decl=0
10282 cat >>confdefs.h <<_ACEOF
10283 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10284 _ACEOF
10286 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
10287 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
10288 ac_have_decl=1
10289 else
10290 ac_have_decl=0
10293 cat >>confdefs.h <<_ACEOF
10294 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
10295 _ACEOF
10297 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
10298 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
10299 ac_have_decl=1
10300 else
10301 ac_have_decl=0
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
10306 _ACEOF
10308 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
10309 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
10310 ac_have_decl=1
10311 else
10312 ac_have_decl=0
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
10317 _ACEOF
10322 for ac_func in $ac_func_list
10323 do :
10324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10326 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10327 cat >>confdefs.h <<_ACEOF
10328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10329 _ACEOF
10332 done
10341 for ac_header in $ac_header_list
10342 do :
10343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10347 cat >>confdefs.h <<_ACEOF
10348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10349 _ACEOF
10353 done
10360 XGETTEXT_EXTRA_OPTIONS=
10363 GNULIB_BTOWC=0;
10364 GNULIB_WCTOB=0;
10365 GNULIB_MBSINIT=0;
10366 GNULIB_MBRTOWC=0;
10367 GNULIB_MBRLEN=0;
10368 GNULIB_MBSRTOWCS=0;
10369 GNULIB_MBSNRTOWCS=0;
10370 GNULIB_WCRTOMB=0;
10371 GNULIB_WCSRTOMBS=0;
10372 GNULIB_WCSNRTOMBS=0;
10373 GNULIB_WCWIDTH=1;
10374 HAVE_BTOWC=1;
10375 HAVE_MBSINIT=1;
10376 HAVE_MBRTOWC=1;
10377 HAVE_MBRLEN=1;
10378 HAVE_MBSRTOWCS=1;
10379 HAVE_MBSNRTOWCS=1;
10380 HAVE_WCRTOMB=1;
10381 HAVE_WCSRTOMBS=1;
10382 HAVE_WCSNRTOMBS=1;
10383 HAVE_DECL_WCTOB=1;
10384 HAVE_DECL_WCWIDTH=0;
10385 REPLACE_MBSTATE_T=0;
10386 REPLACE_BTOWC=0;
10387 REPLACE_WCTOB=0;
10388 REPLACE_MBSINIT=0;
10389 REPLACE_MBRTOWC=0;
10390 REPLACE_MBRLEN=0;
10391 REPLACE_MBSRTOWCS=0;
10392 REPLACE_MBSNRTOWCS=0;
10393 REPLACE_WCRTOMB=0;
10394 REPLACE_WCSRTOMBS=0;
10395 REPLACE_WCSNRTOMBS=0;
10396 REPLACE_WCWIDTH=1;
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10400 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10401 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 gl_cv_header_wchar_h_correct_inline=yes
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 #define wcstod renamed_wcstod
10409 #include <wchar.h>
10410 extern int zero (void);
10411 int main () { return zero(); }
10413 _ACEOF
10414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10415 (eval $ac_compile) 2>&5
10416 ac_status=$?
10417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418 test $ac_status = 0; }; then
10419 mv conftest.$ac_objext conftest1.$ac_objext
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 #define wcstod renamed_wcstod
10424 #include <wchar.h>
10425 int zero (void) { return 0; }
10427 _ACEOF
10428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10429 (eval $ac_compile) 2>&5
10430 ac_status=$?
10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432 test $ac_status = 0; }; then
10433 mv conftest.$ac_objext conftest2.$ac_objext
10434 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10436 else
10437 gl_cv_header_wchar_h_correct_inline=no
10441 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10445 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10446 if test $gl_cv_header_wchar_h_correct_inline = no; then
10447 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10448 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10449 C99 mode. You have four options:
10450 - Add the flag -fgnu89-inline to CC and reconfigure, or
10451 - Fix your include files, using parts of
10452 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10453 - Use a gcc version older than 4.3, or
10454 - Don't use the flags -std=c99 or -std=gnu99.
10455 Configuration aborted." "$LINENO" 5
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10462 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10463 if ${am_cv_langinfo_codeset+:} false; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 #include <langinfo.h>
10470 main (void)
10472 char* cs = nl_langinfo(CODESET); return !cs;
10474 return 0;
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 am_cv_langinfo_codeset=yes
10479 else
10480 am_cv_langinfo_codeset=no
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10487 $as_echo "$am_cv_langinfo_codeset" >&6; }
10488 if test $am_cv_langinfo_codeset = yes; then
10490 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10498 $as_echo_n "checking for a traditional french locale... " >&6; }
10499 if ${gt_cv_locale_fr+:} false; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10506 #include <locale.h>
10507 #include <time.h>
10508 #if HAVE_LANGINFO_CODESET
10509 # include <langinfo.h>
10510 #endif
10511 #include <stdlib.h>
10512 #include <string.h>
10513 struct tm t;
10514 char buf[16];
10515 int main () {
10516 /* Check whether the given locale name is recognized by the system. */
10517 if (setlocale (LC_ALL, "") == NULL) return 1;
10518 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10519 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10520 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10521 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10522 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10523 some unit tests fail. */
10524 #if HAVE_LANGINFO_CODESET
10526 const char *cs = nl_langinfo (CODESET);
10527 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10528 return 1;
10530 #endif
10531 #ifdef __CYGWIN__
10532 /* On Cygwin, avoid locale names without encoding suffix, because the
10533 locale_charset() function relies on the encoding suffix. Note that
10534 LC_ALL is set on the command line. */
10535 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10536 #endif
10537 /* Check whether in the abbreviation of the second month, the second
10538 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10539 one byte long. This excludes the UTF-8 encoding. */
10540 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10541 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10542 /* Check whether the decimal separator is a comma.
10543 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10544 are nl_langinfo(RADIXCHAR) are both ".". */
10545 if (localeconv () ->decimal_point[0] != ',') return 1;
10546 return 0;
10549 _ACEOF
10550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10551 (eval $ac_link) 2>&5
10552 ac_status=$?
10553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10554 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10555 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10556 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10557 # configure script would override the LC_ALL setting. Likewise for
10558 # LC_CTYPE, which is also set at the beginning of the configure script.
10559 # Test for the usual locale name.
10560 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10561 gt_cv_locale_fr=fr_FR
10562 else
10563 # Test for the locale name with explicit encoding suffix.
10564 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10565 gt_cv_locale_fr=fr_FR.ISO-8859-1
10566 else
10567 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10568 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10569 gt_cv_locale_fr=fr_FR.ISO8859-1
10570 else
10571 # Test for the HP-UX locale name.
10572 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10573 gt_cv_locale_fr=fr_FR.iso88591
10574 else
10575 # Test for the Solaris 7 locale name.
10576 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10577 gt_cv_locale_fr=fr
10578 else
10579 # None found.
10580 gt_cv_locale_fr=none
10587 rm -fr conftest*
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10591 $as_echo "$gt_cv_locale_fr" >&6; }
10592 LOCALE_FR=$gt_cv_locale_fr
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
10597 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10598 if ${ac_cv_win_or_dos+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10606 main (void)
10609 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10610 neither MSDOS nor Windows
10611 #endif
10613 return 0;
10615 _ACEOF
10616 if ac_fn_c_try_compile "$LINENO"; then :
10617 ac_cv_win_or_dos=yes
10618 else
10619 ac_cv_win_or_dos=no
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
10625 $as_echo "$ac_cv_win_or_dos" >&6; }
10627 if test x"$ac_cv_win_or_dos" = xyes; then
10628 ac_fs_accepts_drive_letter_prefix=1
10629 ac_fs_backslash_is_file_name_separator=1
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
10631 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
10632 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10640 main (void)
10643 #if defined __CYGWIN__
10644 drive letters are always absolute
10645 #endif
10647 return 0;
10649 _ACEOF
10650 if ac_fn_c_try_compile "$LINENO"; then :
10651 ac_cv_drive_letter_can_be_relative=yes
10652 else
10653 ac_cv_drive_letter_can_be_relative=no
10655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
10659 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10660 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10661 ac_fs_drive_letter_can_be_relative=1
10662 else
10663 ac_fs_drive_letter_can_be_relative=0
10665 else
10666 ac_fs_accepts_drive_letter_prefix=0
10667 ac_fs_backslash_is_file_name_separator=0
10668 ac_fs_drive_letter_can_be_relative=0
10672 cat >>confdefs.h <<_ACEOF
10673 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10674 _ACEOF
10680 cat >>confdefs.h <<_ACEOF
10681 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10682 _ACEOF
10686 cat >>confdefs.h <<_ACEOF
10687 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10688 _ACEOF
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10694 $as_echo_n "checking whether // is distinct from /... " >&6; }
10695 if ${gl_cv_double_slash_root+:} false; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 if test x"$cross_compiling" = xyes ; then
10699 # When cross-compiling, there is no way to tell whether // is special
10700 # short of a list of hosts. However, the only known hosts to date
10701 # that have a distinct // are Apollo DomainOS (too old to port to),
10702 # Cygwin, and z/OS. If anyone knows of another system for which // has
10703 # special semantics and is distinct from /, please report it to
10704 # <bug-gnulib@gnu.org>.
10705 case $host in
10706 *-cygwin | i370-ibm-openedition)
10707 gl_cv_double_slash_root=yes ;;
10709 # Be optimistic and assume that / and // are the same when we
10710 # don't know.
10711 gl_cv_double_slash_root='unknown, assuming no' ;;
10712 esac
10713 else
10714 set x `ls -di / // 2>/dev/null`
10715 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10716 gl_cv_double_slash_root=no
10717 else
10718 gl_cv_double_slash_root=yes
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10723 $as_echo "$gl_cv_double_slash_root" >&6; }
10724 if test "$gl_cv_double_slash_root" = yes; then
10726 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
10733 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
10734 if ${gl_cv_have_include_next+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 rm -rf conftestd1a conftestd1b conftestd2
10738 mkdir conftestd1a conftestd1b conftestd2
10739 cat <<EOF > conftestd1a/conftest.h
10740 #define DEFINED_IN_CONFTESTD1
10741 #include_next <conftest.h>
10742 #ifdef DEFINED_IN_CONFTESTD2
10743 int foo;
10744 #else
10745 #error "include_next doesn't work"
10746 #endif
10748 cat <<EOF > conftestd1b/conftest.h
10749 #define DEFINED_IN_CONFTESTD1
10750 #include <stdio.h>
10751 #include_next <conftest.h>
10752 #ifdef DEFINED_IN_CONFTESTD2
10753 int foo;
10754 #else
10755 #error "include_next doesn't work"
10756 #endif
10758 cat <<EOF > conftestd2/conftest.h
10759 #ifndef DEFINED_IN_CONFTESTD1
10760 #error "include_next test doesn't work"
10761 #endif
10762 #define DEFINED_IN_CONFTESTD2
10764 gl_save_CPPFLAGS="$CPPFLAGS"
10765 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 #include <conftest.h>
10769 _ACEOF
10770 if ac_fn_c_try_compile "$LINENO"; then :
10771 gl_cv_have_include_next=yes
10772 else
10773 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <conftest.h>
10777 _ACEOF
10778 if ac_fn_c_try_compile "$LINENO"; then :
10779 gl_cv_have_include_next=buggy
10780 else
10781 gl_cv_have_include_next=no
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 CPPFLAGS="$gl_save_CPPFLAGS"
10788 rm -rf conftestd1a conftestd1b conftestd2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
10792 $as_echo "$gl_cv_have_include_next" >&6; }
10793 PRAGMA_SYSTEM_HEADER=
10794 if test $gl_cv_have_include_next = yes; then
10795 INCLUDE_NEXT=include_next
10796 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10797 if test -n "$GCC"; then
10798 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10800 else
10801 if test $gl_cv_have_include_next = buggy; then
10802 INCLUDE_NEXT=include
10803 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10804 else
10805 INCLUDE_NEXT=include
10806 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
10818 $as_echo_n "checking for complete errno.h... " >&6; }
10819 if ${gl_cv_header_errno_h_complete+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 #include <errno.h>
10827 #if !defined ENOMSG
10828 booboo
10829 #endif
10830 #if !defined EIDRM
10831 booboo
10832 #endif
10833 #if !defined ENOLINK
10834 booboo
10835 #endif
10836 #if !defined EPROTO
10837 booboo
10838 #endif
10839 #if !defined EMULTIHOP
10840 booboo
10841 #endif
10842 #if !defined EBADMSG
10843 booboo
10844 #endif
10845 #if !defined EOVERFLOW
10846 booboo
10847 #endif
10848 #if !defined ENOTSUP
10849 booboo
10850 #endif
10851 #if !defined ESTALE
10852 booboo
10853 #endif
10854 #if !defined ECANCELED
10855 booboo
10856 #endif
10858 _ACEOF
10859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10860 $EGREP "booboo" >/dev/null 2>&1; then :
10861 gl_cv_header_errno_h_complete=no
10862 else
10863 gl_cv_header_errno_h_complete=yes
10865 rm -f conftest*
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
10870 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
10871 if test $gl_cv_header_errno_h_complete = yes; then
10872 ERRNO_H=''
10873 else
10880 if test $gl_cv_have_include_next = yes; then
10881 gl_cv_next_errno_h='<'errno.h'>'
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
10884 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
10885 if ${gl_cv_next_errno_h+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10889 if test $ac_cv_header_errno_h = yes; then
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <errno.h>
10894 _ACEOF
10895 case "$host_os" in
10896 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10897 *) gl_absname_cpp="$ac_cpp" ;;
10898 esac
10899 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10900 sed -n '\#/errno.h#{
10901 s#.*"\(.*/errno.h\)".*#\1#
10902 s#^/[^/]#//&#
10905 }'`'"'
10906 else
10907 gl_cv_next_errno_h='<'errno.h'>'
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
10912 $as_echo "$gl_cv_next_errno_h" >&6; }
10914 NEXT_ERRNO_H=$gl_cv_next_errno_h
10916 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10918 gl_next_as_first_directive='<'errno.h'>'
10919 else
10920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10921 gl_next_as_first_directive=$gl_cv_next_errno_h
10923 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
10927 ERRNO_H='errno.h'
10931 if test -n "$ERRNO_H"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
10933 $as_echo_n "checking for EMULTIHOP value... " >&6; }
10934 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 #include <errno.h>
10942 #ifdef EMULTIHOP
10944 #endif
10946 _ACEOF
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948 $EGREP "yes" >/dev/null 2>&1; then :
10949 gl_cv_header_errno_h_EMULTIHOP=yes
10950 else
10951 gl_cv_header_errno_h_EMULTIHOP=no
10953 rm -f conftest*
10955 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 #define _XOPEN_SOURCE_EXTENDED 1
10960 #include <errno.h>
10961 #ifdef EMULTIHOP
10963 #endif
10965 _ACEOF
10966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10967 $EGREP "yes" >/dev/null 2>&1; then :
10968 gl_cv_header_errno_h_EMULTIHOP=hidden
10970 rm -f conftest*
10972 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10973 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
10974 #define _XOPEN_SOURCE_EXTENDED 1
10975 #include <errno.h>
10976 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10977 #include <stdio.h>
10978 #include <stdlib.h>
10979 "; then :
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
10988 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
10989 case $gl_cv_header_errno_h_EMULTIHOP in
10990 yes | no)
10991 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
10994 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
10996 esac
11002 if test -n "$ERRNO_H"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
11004 $as_echo_n "checking for ENOLINK value... " >&6; }
11005 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11012 #include <errno.h>
11013 #ifdef ENOLINK
11015 #endif
11017 _ACEOF
11018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11019 $EGREP "yes" >/dev/null 2>&1; then :
11020 gl_cv_header_errno_h_ENOLINK=yes
11021 else
11022 gl_cv_header_errno_h_ENOLINK=no
11024 rm -f conftest*
11026 if test $gl_cv_header_errno_h_ENOLINK = no; then
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11030 #define _XOPEN_SOURCE_EXTENDED 1
11031 #include <errno.h>
11032 #ifdef ENOLINK
11034 #endif
11036 _ACEOF
11037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11038 $EGREP "yes" >/dev/null 2>&1; then :
11039 gl_cv_header_errno_h_ENOLINK=hidden
11041 rm -f conftest*
11043 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
11044 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
11045 #define _XOPEN_SOURCE_EXTENDED 1
11046 #include <errno.h>
11047 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11048 #include <stdio.h>
11049 #include <stdlib.h>
11050 "; then :
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
11059 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
11060 case $gl_cv_header_errno_h_ENOLINK in
11061 yes | no)
11062 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
11065 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
11067 esac
11073 if test -n "$ERRNO_H"; then
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
11075 $as_echo_n "checking for EOVERFLOW value... " >&6; }
11076 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11083 #include <errno.h>
11084 #ifdef EOVERFLOW
11086 #endif
11088 _ACEOF
11089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11090 $EGREP "yes" >/dev/null 2>&1; then :
11091 gl_cv_header_errno_h_EOVERFLOW=yes
11092 else
11093 gl_cv_header_errno_h_EOVERFLOW=no
11095 rm -f conftest*
11097 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #define _XOPEN_SOURCE_EXTENDED 1
11102 #include <errno.h>
11103 #ifdef EOVERFLOW
11105 #endif
11107 _ACEOF
11108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109 $EGREP "yes" >/dev/null 2>&1; then :
11110 gl_cv_header_errno_h_EOVERFLOW=hidden
11112 rm -f conftest*
11114 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11115 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
11116 #define _XOPEN_SOURCE_EXTENDED 1
11117 #include <errno.h>
11118 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11119 #include <stdio.h>
11120 #include <stdlib.h>
11121 "; then :
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11130 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11131 case $gl_cv_header_errno_h_EOVERFLOW in
11132 yes | no)
11133 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
11136 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
11138 esac
11144 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11145 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
11146 ac_have_decl=1
11147 else
11148 ac_have_decl=0
11151 cat >>confdefs.h <<_ACEOF
11152 #define HAVE_DECL_STRERROR_R $ac_have_decl
11153 _ACEOF
11155 for ac_func in strerror_r
11156 do :
11157 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11158 if test "x$ac_cv_func_strerror_r" = xyes; then :
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_STRERROR_R 1
11161 _ACEOF
11164 done
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11167 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11168 if ${ac_cv_func_strerror_r_char_p+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11172 ac_cv_func_strerror_r_char_p=no
11173 if test $ac_cv_have_decl_strerror_r = yes; then
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 $ac_includes_default
11178 main (void)
11181 char buf[100];
11182 char x = *strerror_r (0, buf, sizeof buf);
11183 char *p = strerror_r (0, buf, sizeof buf);
11184 return !p || x;
11187 return 0;
11189 _ACEOF
11190 if ac_fn_c_try_compile "$LINENO"; then :
11191 ac_cv_func_strerror_r_char_p=yes
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194 else
11195 # strerror_r is not declared. Choose between
11196 # systems that have relatively inaccessible declarations for the
11197 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11198 # former has a strerror_r that returns char*, while the latter
11199 # has a strerror_r that returns `int'.
11200 # This test should segfault on the DEC system.
11201 if test "$cross_compiling" = yes; then :
11203 else
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206 $ac_includes_default
11207 extern char *strerror_r ();
11209 main (void)
11211 char buf[100];
11212 char x = *strerror_r (0, buf, sizeof buf);
11213 return ! isalpha (x);
11215 return 0;
11217 _ACEOF
11218 if ac_fn_c_try_run "$LINENO"; then :
11219 ac_cv_func_strerror_r_char_p=yes
11221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11222 conftest.$ac_objext conftest.beam conftest.$ac_ext
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11229 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11230 if test $ac_cv_func_strerror_r_char_p = yes; then
11232 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
11241 $as_echo_n "checking for mbstate_t... " >&6; }
11242 if ${ac_cv_type_mbstate_t+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 # include <wchar.h>
11250 main (void)
11252 mbstate_t x; return sizeof x;
11254 return 0;
11256 _ACEOF
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 ac_cv_type_mbstate_t=yes
11259 else
11260 ac_cv_type_mbstate_t=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
11265 $as_echo "$ac_cv_type_mbstate_t" >&6; }
11266 if test $ac_cv_type_mbstate_t = yes; then
11268 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11270 else
11272 $as_echo "#define mbstate_t int" >>confdefs.h
11293 GNULIB_DPRINTF=0;
11294 GNULIB_FCLOSE=0;
11295 GNULIB_FFLUSH=0;
11296 GNULIB_FOPEN=0;
11297 GNULIB_FPRINTF=0;
11298 GNULIB_FPRINTF_POSIX=0;
11299 GNULIB_FPURGE=0;
11300 GNULIB_FPUTC=0;
11301 GNULIB_FPUTS=0;
11302 GNULIB_FREOPEN=0;
11303 GNULIB_FSEEK=0;
11304 GNULIB_FSEEKO=0;
11305 GNULIB_FTELL=0;
11306 GNULIB_FTELLO=0;
11307 GNULIB_FWRITE=0;
11308 GNULIB_GETDELIM=0;
11309 GNULIB_GETLINE=0;
11310 GNULIB_OBSTACK_PRINTF=0;
11311 GNULIB_OBSTACK_PRINTF_POSIX=0;
11312 GNULIB_PERROR=0;
11313 GNULIB_POPEN=0;
11314 GNULIB_PRINTF=0;
11315 GNULIB_PRINTF_POSIX=0;
11316 GNULIB_PUTC=0;
11317 GNULIB_PUTCHAR=0;
11318 GNULIB_PUTS=0;
11319 GNULIB_REMOVE=0;
11320 GNULIB_RENAME=0;
11321 GNULIB_RENAMEAT=0;
11322 GNULIB_SNPRINTF=0;
11323 GNULIB_SPRINTF_POSIX=0;
11324 GNULIB_STDIO_H_SIGPIPE=0;
11325 GNULIB_TMPFILE=0;
11326 GNULIB_VASPRINTF=0;
11327 GNULIB_VDPRINTF=0;
11328 GNULIB_VFPRINTF=0;
11329 GNULIB_VFPRINTF_POSIX=0;
11330 GNULIB_VPRINTF=0;
11331 GNULIB_VPRINTF_POSIX=0;
11332 GNULIB_VSNPRINTF=0;
11333 GNULIB_VSPRINTF_POSIX=0;
11334 HAVE_DECL_FPURGE=1;
11335 HAVE_DECL_GETDELIM=1;
11336 HAVE_DECL_GETLINE=1;
11337 HAVE_DECL_OBSTACK_PRINTF=1;
11338 HAVE_DECL_SNPRINTF=1;
11339 HAVE_DECL_VSNPRINTF=1;
11340 HAVE_DPRINTF=1;
11341 HAVE_FSEEKO=1;
11342 HAVE_FTELLO=1;
11343 HAVE_RENAMEAT=1;
11344 HAVE_VASPRINTF=1;
11345 HAVE_VDPRINTF=1;
11346 REPLACE_DPRINTF=0;
11347 REPLACE_FCLOSE=0;
11348 REPLACE_FFLUSH=0;
11349 REPLACE_FOPEN=0;
11350 REPLACE_FPRINTF=0;
11351 REPLACE_FPURGE=0;
11352 REPLACE_FREOPEN=0;
11353 REPLACE_FSEEK=0;
11354 REPLACE_FSEEKO=0;
11355 REPLACE_FTELL=0;
11356 REPLACE_FTELLO=0;
11357 REPLACE_GETDELIM=0;
11358 REPLACE_GETLINE=0;
11359 REPLACE_OBSTACK_PRINTF=0;
11360 REPLACE_PERROR=0;
11361 REPLACE_POPEN=0;
11362 REPLACE_PRINTF=0;
11363 REPLACE_REMOVE=0;
11364 REPLACE_RENAME=0;
11365 REPLACE_RENAMEAT=0;
11366 REPLACE_SNPRINTF=0;
11367 REPLACE_SPRINTF=0;
11368 REPLACE_STDIO_WRITE_FUNCS=0;
11369 REPLACE_TMPFILE=0;
11370 REPLACE_VASPRINTF=0;
11371 REPLACE_VDPRINTF=0;
11372 REPLACE_VFPRINTF=0;
11373 REPLACE_VPRINTF=0;
11374 REPLACE_VSNPRINTF=0;
11375 REPLACE_VSPRINTF=0;
11377 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
11378 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
11379 ac_have_decl=1
11380 else
11381 ac_have_decl=0
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_DECL_GETDELIM $ac_have_decl
11386 _ACEOF
11390 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
11391 if test "x$ac_cv_have_decl_getline" = xyes; then :
11392 ac_have_decl=1
11393 else
11394 ac_have_decl=0
11397 cat >>confdefs.h <<_ACEOF
11398 #define HAVE_DECL_GETLINE $ac_have_decl
11399 _ACEOF
11402 GNULIB_CHOWN=0;
11403 GNULIB_CLOSE=0;
11404 GNULIB_DUP2=0;
11405 GNULIB_DUP3=0;
11406 GNULIB_ENVIRON=0;
11407 GNULIB_EUIDACCESS=0;
11408 GNULIB_FACCESSAT=0;
11409 GNULIB_FCHDIR=0;
11410 GNULIB_FCHOWNAT=0;
11411 GNULIB_FSYNC=0;
11412 GNULIB_FTRUNCATE=0;
11413 GNULIB_GETCWD=0;
11414 GNULIB_GETDOMAINNAME=0;
11415 GNULIB_GETDTABLESIZE=0;
11416 GNULIB_GETGROUPS=0;
11417 GNULIB_GETHOSTNAME=0;
11418 GNULIB_GETLOGIN=0;
11419 GNULIB_GETLOGIN_R=0;
11420 GNULIB_GETPAGESIZE=0;
11421 GNULIB_GETUSERSHELL=0;
11422 GNULIB_LCHOWN=0;
11423 GNULIB_LINK=0;
11424 GNULIB_LINKAT=0;
11425 GNULIB_LSEEK=0;
11426 GNULIB_PIPE2=0;
11427 GNULIB_PREAD=0;
11428 GNULIB_PWRITE=0;
11429 GNULIB_READLINK=0;
11430 GNULIB_READLINKAT=0;
11431 GNULIB_RMDIR=0;
11432 GNULIB_SLEEP=0;
11433 GNULIB_SYMLINK=0;
11434 GNULIB_SYMLINKAT=0;
11435 GNULIB_TTYNAME_R=0;
11436 GNULIB_UNISTD_H_GETOPT=0;
11437 GNULIB_UNISTD_H_SIGPIPE=0;
11438 GNULIB_UNLINK=0;
11439 GNULIB_UNLINKAT=0;
11440 GNULIB_USLEEP=0;
11441 GNULIB_WRITE=0;
11442 HAVE_CHOWN=1;
11443 HAVE_DUP2=1;
11444 HAVE_DUP3=1;
11445 HAVE_EUIDACCESS=1;
11446 HAVE_FACCESSAT=1;
11447 HAVE_FCHDIR=1;
11448 HAVE_FCHOWNAT=1;
11449 HAVE_FSYNC=1;
11450 HAVE_FTRUNCATE=1;
11451 HAVE_GETDOMAINNAME=1;
11452 HAVE_GETDTABLESIZE=1;
11453 HAVE_GETGROUPS=1;
11454 HAVE_GETHOSTNAME=1;
11455 HAVE_GETLOGIN=1;
11456 HAVE_GETPAGESIZE=1;
11457 HAVE_LCHOWN=1;
11458 HAVE_LINK=1;
11459 HAVE_LINKAT=1;
11460 HAVE_PIPE2=1;
11461 HAVE_PREAD=1;
11462 HAVE_PWRITE=1;
11463 HAVE_READLINK=1;
11464 HAVE_READLINKAT=1;
11465 HAVE_SLEEP=1;
11466 HAVE_SYMLINK=1;
11467 HAVE_SYMLINKAT=1;
11468 HAVE_TTYNAME_R=1;
11469 HAVE_UNLINKAT=1;
11470 HAVE_USLEEP=1;
11471 HAVE_DECL_ENVIRON=1;
11472 HAVE_DECL_GETLOGIN_R=1;
11473 HAVE_DECL_GETPAGESIZE=1;
11474 HAVE_DECL_GETUSERSHELL=1;
11475 HAVE_OS_H=0;
11476 HAVE_SYS_PARAM_H=0;
11477 REPLACE_CHOWN=0;
11478 REPLACE_CLOSE=0;
11479 REPLACE_DUP=0;
11480 REPLACE_DUP2=0;
11481 REPLACE_FCHOWNAT=0;
11482 REPLACE_GETCWD=0;
11483 REPLACE_GETGROUPS=0;
11484 REPLACE_GETPAGESIZE=0;
11485 REPLACE_LCHOWN=0;
11486 REPLACE_LINK=0;
11487 REPLACE_LINKAT=0;
11488 REPLACE_LSEEK=0;
11489 REPLACE_PREAD=0;
11490 REPLACE_PWRITE=0;
11491 REPLACE_READLINK=0;
11492 REPLACE_RMDIR=0;
11493 REPLACE_SLEEP=0;
11494 REPLACE_SYMLINK=0;
11495 REPLACE_TTYNAME_R=0;
11496 REPLACE_UNLINK=0;
11497 REPLACE_UNLINKAT=0;
11498 REPLACE_USLEEP=0;
11499 REPLACE_WRITE=0;
11500 UNISTD_H_HAVE_WINSOCK2_H=0;
11501 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11516 if test $gl_cv_have_include_next = yes; then
11517 gl_cv_next_getopt_h='<'getopt.h'>'
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
11520 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11521 if ${gl_cv_next_getopt_h+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11525 if test $ac_cv_header_getopt_h = yes; then
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #include <getopt.h>
11530 _ACEOF
11531 case "$host_os" in
11532 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11533 *) gl_absname_cpp="$ac_cpp" ;;
11534 esac
11535 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11536 sed -n '\#/getopt.h#{
11537 s#.*"\(.*/getopt.h\)".*#\1#
11538 s#^/[^/]#//&#
11541 }'`'"'
11542 else
11543 gl_cv_next_getopt_h='<'getopt.h'>'
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
11548 $as_echo "$gl_cv_next_getopt_h" >&6; }
11550 NEXT_GETOPT_H=$gl_cv_next_getopt_h
11552 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11554 gl_next_as_first_directive='<'getopt.h'>'
11555 else
11556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11557 gl_next_as_first_directive=$gl_cv_next_getopt_h
11559 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11564 if test $ac_cv_header_getopt_h = yes; then
11565 HAVE_GETOPT_H=1
11566 else
11567 HAVE_GETOPT_H=0
11571 gl_replace_getopt=
11573 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11574 for ac_header in getopt.h
11575 do :
11576 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11577 if test "x$ac_cv_header_getopt_h" = xyes; then :
11578 cat >>confdefs.h <<_ACEOF
11579 #define HAVE_GETOPT_H 1
11580 _ACEOF
11582 else
11583 gl_replace_getopt=yes
11586 done
11590 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11591 for ac_func in getopt_long_only
11592 do :
11593 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11594 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
11595 cat >>confdefs.h <<_ACEOF
11596 #define HAVE_GETOPT_LONG_ONLY 1
11597 _ACEOF
11599 else
11600 gl_replace_getopt=yes
11602 done
11606 if test -z "$gl_replace_getopt"; then
11607 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11609 if test "x$ac_cv_have_decl_optreset" = xyes; then :
11610 ac_have_decl=1
11611 else
11612 ac_have_decl=0
11615 cat >>confdefs.h <<_ACEOF
11616 #define HAVE_DECL_OPTRESET $ac_have_decl
11617 _ACEOF
11618 if test $ac_have_decl = 1; then :
11620 else
11621 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11623 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
11624 ac_have_decl=1
11625 else
11626 ac_have_decl=0
11629 cat >>confdefs.h <<_ACEOF
11630 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
11631 _ACEOF
11638 if test -z "$gl_replace_getopt"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
11640 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
11641 if ${gl_cv_func_getopt_posix+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11645 if test "$cross_compiling" = yes; then :
11646 case "$host_os" in
11647 mingw*) gl_cv_func_getopt_posix="guessing no";;
11648 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
11649 *) gl_cv_func_getopt_posix="guessing yes";;
11650 esac
11652 else
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11656 #include <unistd.h>
11657 #include <stdlib.h>
11658 #include <string.h>
11660 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
11661 # define OPTIND_MIN 0
11662 #else
11663 # define OPTIND_MIN 1
11664 #endif
11667 main ()
11670 int argc = 0;
11671 char *argv[10];
11672 int c;
11674 argv[argc++] = "program";
11675 argv[argc++] = "-a";
11676 argv[argc++] = "foo";
11677 argv[argc++] = "bar";
11678 argv[argc] = NULL;
11679 optind = OPTIND_MIN;
11680 opterr = 0;
11682 c = getopt (argc, argv, "ab");
11683 if (!(c == 'a'))
11684 return 1;
11685 c = getopt (argc, argv, "ab");
11686 if (!(c == -1))
11687 return 2;
11688 if (!(optind == 2))
11689 return 3;
11691 /* Some internal state exists at this point. */
11693 int argc = 0;
11694 char *argv[10];
11695 int c;
11697 argv[argc++] = "program";
11698 argv[argc++] = "donald";
11699 argv[argc++] = "-p";
11700 argv[argc++] = "billy";
11701 argv[argc++] = "duck";
11702 argv[argc++] = "-a";
11703 argv[argc++] = "bar";
11704 argv[argc] = NULL;
11705 optind = OPTIND_MIN;
11706 opterr = 0;
11708 c = getopt (argc, argv, "+abp:q:");
11709 if (!(c == -1))
11710 return 4;
11711 if (!(strcmp (argv[0], "program") == 0))
11712 return 5;
11713 if (!(strcmp (argv[1], "donald") == 0))
11714 return 6;
11715 if (!(strcmp (argv[2], "-p") == 0))
11716 return 7;
11717 if (!(strcmp (argv[3], "billy") == 0))
11718 return 8;
11719 if (!(strcmp (argv[4], "duck") == 0))
11720 return 9;
11721 if (!(strcmp (argv[5], "-a") == 0))
11722 return 10;
11723 if (!(strcmp (argv[6], "bar") == 0))
11724 return 11;
11725 if (!(optind == 1))
11726 return 12;
11728 /* Detect MacOS 10.5, AIX 7.1 bug. */
11730 char *argv[3] = { "program", "-ab", NULL };
11731 optind = OPTIND_MIN;
11732 opterr = 0;
11733 if (getopt (2, argv, "ab:") != 'a')
11734 return 13;
11735 if (getopt (2, argv, "ab:") != '?')
11736 return 14;
11737 if (optopt != 'b')
11738 return 15;
11739 if (optind != 2)
11740 return 16;
11743 return 0;
11746 _ACEOF
11747 if ac_fn_c_try_run "$LINENO"; then :
11748 gl_cv_func_getopt_posix=yes
11749 else
11750 gl_cv_func_getopt_posix=no
11752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11753 conftest.$ac_objext conftest.beam conftest.$ac_ext
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
11759 $as_echo "$gl_cv_func_getopt_posix" >&6; }
11760 case "$gl_cv_func_getopt_posix" in
11761 *no) gl_replace_getopt=yes ;;
11762 esac
11765 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11767 $as_echo_n "checking for working GNU getopt function... " >&6; }
11768 if ${gl_cv_func_getopt_gnu+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
11772 # optstring is necessary for programs like m4 that have POSIX-mandated
11773 # semantics for supporting options interspersed with files.
11774 # Also, since getopt_long is a GNU extension, we require optind=0.
11775 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
11776 # so take care to revert to the correct (non-)export state.
11777 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
11778 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
11779 xx) gl_had_POSIXLY_CORRECT=exported ;;
11780 x) gl_had_POSIXLY_CORRECT=yes ;;
11781 *) gl_had_POSIXLY_CORRECT= ;;
11782 esac
11783 POSIXLY_CORRECT=1
11784 export POSIXLY_CORRECT
11785 if test "$cross_compiling" = yes; then :
11786 case $host_os:$ac_cv_have_decl_optreset in
11787 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
11788 *:yes) gl_cv_func_getopt_gnu=no;;
11789 *) gl_cv_func_getopt_gnu=yes;;
11790 esac
11792 else
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11795 #include <getopt.h>
11796 #include <stddef.h>
11797 #include <string.h>
11800 main (void)
11803 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
11804 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
11805 OSF/1 5.1, Solaris 10. */
11807 char *myargv[3];
11808 myargv[0] = "conftest";
11809 myargv[1] = "-+";
11810 myargv[2] = 0;
11811 opterr = 0;
11812 if (getopt (2, myargv, "+a") != '?')
11813 return 1;
11815 /* This code succeeds on glibc 2.8, mingw,
11816 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
11817 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
11819 char *argv[] = { "program", "-p", "foo", "bar", NULL };
11821 optind = 1;
11822 if (getopt (4, argv, "p::") != 'p')
11823 return 2;
11824 if (optarg != NULL)
11825 return 3;
11826 if (getopt (4, argv, "p::") != -1)
11827 return 4;
11828 if (optind != 2)
11829 return 5;
11831 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
11833 char *argv[] = { "program", "foo", "-p", NULL };
11834 optind = 0;
11835 if (getopt (3, argv, "-p") != 1)
11836 return 6;
11837 if (getopt (3, argv, "-p") != 'p')
11838 return 7;
11840 /* This code fails on glibc 2.11. */
11842 char *argv[] = { "program", "-b", "-a", NULL };
11843 optind = opterr = 0;
11844 if (getopt (3, argv, "+:a:b") != 'b')
11845 return 8;
11846 if (getopt (3, argv, "+:a:b") != ':')
11847 return 9;
11849 return 0;
11852 return 0;
11854 _ACEOF
11855 if ac_fn_c_try_run "$LINENO"; then :
11856 gl_cv_func_getopt_gnu=yes
11857 else
11858 gl_cv_func_getopt_gnu=no
11860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11861 conftest.$ac_objext conftest.beam conftest.$ac_ext
11864 case $gl_had_POSIXLY_CORRECT in
11865 exported) ;;
11866 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
11867 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
11868 esac
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
11872 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
11873 if test "$gl_cv_func_getopt_gnu" = "no"; then
11874 gl_replace_getopt=yes
11883 if test -n "$gl_replace_getopt"; then :
11887 GETOPT_H=getopt.h
11889 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11893 GNULIB_UNISTD_H_GETOPT=1
11902 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
11912 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
11923 GNULIB_NL_LANGINFO=0;
11924 HAVE_NL_LANGINFO=1;
11925 REPLACE_NL_LANGINFO=0;
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11932 $as_echo_n "checking for working fcntl.h... " >&6; }
11933 if ${gl_cv_header_working_fcntl_h+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 if test "$cross_compiling" = yes; then :
11937 gl_cv_header_working_fcntl_h=cross-compiling
11938 else
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941 #include <sys/types.h>
11942 #include <sys/stat.h>
11943 #include <unistd.h>
11944 #include <fcntl.h>
11945 #ifndef O_NOATIME
11946 #define O_NOATIME 0
11947 #endif
11948 #ifndef O_NOFOLLOW
11949 #define O_NOFOLLOW 0
11950 #endif
11951 static int const constants[] =
11953 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11954 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11958 main (void)
11961 int status = !constants;
11963 static char const sym[] = "conftest.sym";
11964 if (symlink (".", sym) != 0
11965 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
11966 status |= 32;
11967 unlink (sym);
11970 static char const file[] = "confdefs.h";
11971 int fd = open (file, O_RDONLY | O_NOATIME);
11972 char c;
11973 struct stat st0, st1;
11974 if (fd < 0
11975 || fstat (fd, &st0) != 0
11976 || sleep (1) != 0
11977 || read (fd, &c, 1) != 1
11978 || close (fd) != 0
11979 || stat (file, &st1) != 0
11980 || st0.st_atime != st1.st_atime)
11981 status |= 64;
11983 return status;
11985 return 0;
11987 _ACEOF
11988 if ac_fn_c_try_run "$LINENO"; then :
11989 gl_cv_header_working_fcntl_h=yes
11990 else
11991 case $? in #(
11992 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11993 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11994 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11995 *) gl_cv_header_working_fcntl_h='no';;
11996 esac
11998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11999 conftest.$ac_objext conftest.beam conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
12004 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12006 case $gl_cv_header_working_fcntl_h in #(
12007 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12008 *) ac_val=1;;
12009 esac
12011 cat >>confdefs.h <<_ACEOF
12012 #define HAVE_WORKING_O_NOATIME $ac_val
12013 _ACEOF
12016 case $gl_cv_header_working_fcntl_h in #(
12017 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12018 *) ac_val=1;;
12019 esac
12021 cat >>confdefs.h <<_ACEOF
12022 #define HAVE_WORKING_O_NOFOLLOW $ac_val
12023 _ACEOF
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12028 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12029 if ${ac_cv_gnu_library_2_1+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12035 #include <features.h>
12036 #ifdef __GNU_LIBRARY__
12037 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12038 Lucky GNU user
12039 #endif
12040 #endif
12042 _ACEOF
12043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12044 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12045 ac_cv_gnu_library_2_1=yes
12046 else
12047 ac_cv_gnu_library_2_1=no
12049 rm -f conftest*
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12055 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12057 GLIBC21="$ac_cv_gnu_library_2_1"
12061 GNULIB__EXIT=0;
12062 GNULIB_ATOLL=0;
12063 GNULIB_CALLOC_POSIX=0;
12064 GNULIB_CANONICALIZE_FILE_NAME=0;
12065 GNULIB_GETLOADAVG=0;
12066 GNULIB_GETSUBOPT=0;
12067 GNULIB_GRANTPT=0;
12068 GNULIB_MALLOC_POSIX=0;
12069 GNULIB_MKDTEMP=0;
12070 GNULIB_MKOSTEMP=0;
12071 GNULIB_MKOSTEMPS=0;
12072 GNULIB_MKSTEMP=0;
12073 GNULIB_MKSTEMPS=0;
12074 GNULIB_PTSNAME=0;
12075 GNULIB_PUTENV=0;
12076 GNULIB_RANDOM_R=0;
12077 GNULIB_REALLOC_POSIX=0;
12078 GNULIB_REALPATH=0;
12079 GNULIB_RPMATCH=0;
12080 GNULIB_SETENV=0;
12081 GNULIB_STRTOD=0;
12082 GNULIB_STRTOLL=0;
12083 GNULIB_STRTOULL=0;
12084 GNULIB_UNLOCKPT=0;
12085 GNULIB_UNSETENV=0;
12086 HAVE__EXIT=1;
12087 HAVE_ATOLL=1;
12088 HAVE_CANONICALIZE_FILE_NAME=1;
12089 HAVE_DECL_GETLOADAVG=1;
12090 HAVE_GETSUBOPT=1;
12091 HAVE_GRANTPT=1;
12092 HAVE_MKDTEMP=1;
12093 HAVE_MKOSTEMP=1;
12094 HAVE_MKOSTEMPS=1;
12095 HAVE_MKSTEMP=1;
12096 HAVE_MKSTEMPS=1;
12097 HAVE_PTSNAME=1;
12098 HAVE_RANDOM_R=1;
12099 HAVE_REALPATH=1;
12100 HAVE_RPMATCH=1;
12101 HAVE_SETENV=1;
12102 HAVE_STRTOD=1;
12103 HAVE_STRTOLL=1;
12104 HAVE_STRTOULL=1;
12105 HAVE_STRUCT_RANDOM_DATA=1;
12106 HAVE_SYS_LOADAVG_H=0;
12107 HAVE_UNLOCKPT=1;
12108 HAVE_UNSETENV=1;
12109 REPLACE_CALLOC=0;
12110 REPLACE_CANONICALIZE_FILE_NAME=0;
12111 REPLACE_MALLOC=0;
12112 REPLACE_MKSTEMP=0;
12113 REPLACE_PUTENV=0;
12114 REPLACE_REALLOC=0;
12115 REPLACE_REALPATH=0;
12116 REPLACE_SETENV=0;
12117 REPLACE_STRTOD=0;
12118 REPLACE_UNSETENV=0;
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12122 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12123 if ${gl_cv_func_malloc_posix+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12131 main (void)
12133 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12134 choke me
12135 #endif
12138 return 0;
12140 _ACEOF
12141 if ac_fn_c_try_compile "$LINENO"; then :
12142 gl_cv_func_malloc_posix=yes
12143 else
12144 gl_cv_func_malloc_posix=no
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12150 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12160 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12161 if ${gt_cv_locale_ja+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12168 #include <locale.h>
12169 #include <time.h>
12170 #if HAVE_LANGINFO_CODESET
12171 # include <langinfo.h>
12172 #endif
12173 #include <stdlib.h>
12174 #include <string.h>
12175 struct tm t;
12176 char buf[16];
12177 int main ()
12179 const char *p;
12180 /* Check whether the given locale name is recognized by the system. */
12181 if (setlocale (LC_ALL, "") == NULL) return 1;
12182 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12183 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12184 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12185 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12186 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12187 some unit tests fail. */
12188 #if HAVE_LANGINFO_CODESET
12190 const char *cs = nl_langinfo (CODESET);
12191 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12192 return 1;
12194 #endif
12195 #ifdef __CYGWIN__
12196 /* On Cygwin, avoid locale names without encoding suffix, because the
12197 locale_charset() function relies on the encoding suffix. Note that
12198 LC_ALL is set on the command line. */
12199 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12200 #endif
12201 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12202 on Cygwin 1.5.x. */
12203 if (MB_CUR_MAX == 1)
12204 return 1;
12205 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12206 This excludes the UTF-8 encoding. */
12207 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12208 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12209 for (p = buf; *p != '\0'; p++)
12210 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12211 return 1;
12212 return 0;
12215 _ACEOF
12216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12217 (eval $ac_link) 2>&5
12218 ac_status=$?
12219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12220 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12221 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12222 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12223 # configure script would override the LC_ALL setting. Likewise for
12224 # LC_CTYPE, which is also set at the beginning of the configure script.
12225 # Test for the AIX locale name.
12226 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12227 gt_cv_locale_ja=ja_JP
12228 else
12229 # Test for the locale name with explicit encoding suffix.
12230 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12231 gt_cv_locale_ja=ja_JP.EUC-JP
12232 else
12233 # Test for the HP-UX, OSF/1, NetBSD locale name.
12234 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12235 gt_cv_locale_ja=ja_JP.eucJP
12236 else
12237 # Test for the IRIX, FreeBSD locale name.
12238 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12239 gt_cv_locale_ja=ja_JP.EUC
12240 else
12241 # Test for the Solaris 7 locale name.
12242 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12243 gt_cv_locale_ja=ja
12244 else
12245 # Special test for NetBSD 1.6.
12246 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12247 gt_cv_locale_ja=ja_JP.eucJP
12248 else
12249 # None found.
12250 gt_cv_locale_ja=none
12258 rm -fr conftest*
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12262 $as_echo "$gt_cv_locale_ja" >&6; }
12263 LOCALE_JA=$gt_cv_locale_ja
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12270 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12271 if ${gt_cv_locale_zh_CN+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 #include <locale.h>
12279 #include <stdlib.h>
12280 #include <time.h>
12281 #if HAVE_LANGINFO_CODESET
12282 # include <langinfo.h>
12283 #endif
12284 #include <stdlib.h>
12285 #include <string.h>
12286 struct tm t;
12287 char buf[16];
12288 int main ()
12290 const char *p;
12291 /* Check whether the given locale name is recognized by the system. */
12292 if (setlocale (LC_ALL, "") == NULL) return 1;
12293 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12294 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12295 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12296 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12297 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12298 some unit tests fail. */
12299 #if HAVE_LANGINFO_CODESET
12301 const char *cs = nl_langinfo (CODESET);
12302 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12303 return 1;
12305 #endif
12306 #ifdef __CYGWIN__
12307 /* On Cygwin, avoid locale names without encoding suffix, because the
12308 locale_charset() function relies on the encoding suffix. Note that
12309 LC_ALL is set on the command line. */
12310 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12311 #endif
12312 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12313 This excludes the UTF-8 encoding. */
12314 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12315 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12316 for (p = buf; *p != '\0'; p++)
12317 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12318 return 1;
12319 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12320 single wide character. This excludes the GB2312 and GBK encodings. */
12321 if (mblen ("\203\062\332\066", 5) != 4)
12322 return 1;
12323 return 0;
12326 _ACEOF
12327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12328 (eval $ac_link) 2>&5
12329 ac_status=$?
12330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12331 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12332 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12333 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12334 # configure script would override the LC_ALL setting. Likewise for
12335 # LC_CTYPE, which is also set at the beginning of the configure script.
12336 # Test for the locale name without encoding suffix.
12337 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12338 gt_cv_locale_zh_CN=zh_CN
12339 else
12340 # Test for the locale name with explicit encoding suffix.
12341 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12342 gt_cv_locale_zh_CN=zh_CN.GB18030
12343 else
12344 # None found.
12345 gt_cv_locale_zh_CN=none
12348 else
12349 # If there was a link error, due to mblen(), the system is so old that
12350 # it certainly doesn't have a chinese locale.
12351 gt_cv_locale_zh_CN=none
12353 rm -fr conftest*
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12357 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12358 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12364 $as_echo_n "checking for a french Unicode locale... " >&6; }
12365 if ${gt_cv_locale_fr_utf8+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12372 #include <locale.h>
12373 #include <time.h>
12374 #if HAVE_LANGINFO_CODESET
12375 # include <langinfo.h>
12376 #endif
12377 #include <stdlib.h>
12378 #include <string.h>
12379 struct tm t;
12380 char buf[16];
12381 int main () {
12382 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12383 imitates locale dependent behaviour by looking at the environment
12384 variables, and all locales use the UTF-8 encoding. */
12385 #if !(defined __BEOS__ || defined __HAIKU__)
12386 /* Check whether the given locale name is recognized by the system. */
12387 if (setlocale (LC_ALL, "") == NULL) return 1;
12388 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12389 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12390 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12391 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12392 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12393 some unit tests fail. */
12394 # if HAVE_LANGINFO_CODESET
12396 const char *cs = nl_langinfo (CODESET);
12397 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12398 return 1;
12400 # endif
12401 # ifdef __CYGWIN__
12402 /* On Cygwin, avoid locale names without encoding suffix, because the
12403 locale_charset() function relies on the encoding suffix. Note that
12404 LC_ALL is set on the command line. */
12405 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12406 # endif
12407 /* Check whether in the abbreviation of the second month, the second
12408 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12409 two bytes long, with UTF-8 encoding. */
12410 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12411 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12412 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12413 return 1;
12414 #endif
12415 /* Check whether the decimal separator is a comma.
12416 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12417 are nl_langinfo(RADIXCHAR) are both ".". */
12418 if (localeconv () ->decimal_point[0] != ',') return 1;
12419 return 0;
12422 _ACEOF
12423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12424 (eval $ac_link) 2>&5
12425 ac_status=$?
12426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12428 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12429 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12430 # configure script would override the LC_ALL setting. Likewise for
12431 # LC_CTYPE, which is also set at the beginning of the configure script.
12432 # Test for the usual locale name.
12433 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12434 gt_cv_locale_fr_utf8=fr_FR
12435 else
12436 # Test for the locale name with explicit encoding suffix.
12437 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12438 gt_cv_locale_fr_utf8=fr_FR.UTF-8
12439 else
12440 # Test for the Solaris 7 locale name.
12441 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12442 gt_cv_locale_fr_utf8=fr.UTF-8
12443 else
12444 # None found.
12445 gt_cv_locale_fr_utf8=none
12450 rm -fr conftest*
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12454 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12455 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12463 GNULIB_MEMCHR=0;
12464 GNULIB_MEMMEM=0;
12465 GNULIB_MEMPCPY=0;
12466 GNULIB_MEMRCHR=0;
12467 GNULIB_RAWMEMCHR=0;
12468 GNULIB_STPCPY=0;
12469 GNULIB_STPNCPY=0;
12470 GNULIB_STRCHRNUL=0;
12471 GNULIB_STRDUP=0;
12472 GNULIB_STRNCAT=0;
12473 GNULIB_STRNDUP=0;
12474 GNULIB_STRNLEN=0;
12475 GNULIB_STRPBRK=0;
12476 GNULIB_STRSEP=0;
12477 GNULIB_STRSTR=0;
12478 GNULIB_STRCASESTR=0;
12479 GNULIB_STRTOK_R=0;
12480 GNULIB_MBSLEN=0;
12481 GNULIB_MBSNLEN=0;
12482 GNULIB_MBSCHR=0;
12483 GNULIB_MBSRCHR=0;
12484 GNULIB_MBSSTR=0;
12485 GNULIB_MBSCASECMP=0;
12486 GNULIB_MBSNCASECMP=0;
12487 GNULIB_MBSPCASECMP=0;
12488 GNULIB_MBSCASESTR=0;
12489 GNULIB_MBSCSPN=0;
12490 GNULIB_MBSPBRK=0;
12491 GNULIB_MBSSPN=0;
12492 GNULIB_MBSSEP=0;
12493 GNULIB_MBSTOK_R=0;
12494 GNULIB_STRERROR=0;
12495 GNULIB_STRSIGNAL=0;
12496 GNULIB_STRVERSCMP=0;
12497 HAVE_MBSLEN=0;
12498 HAVE_MEMCHR=1;
12499 HAVE_DECL_MEMMEM=1;
12500 HAVE_MEMPCPY=1;
12501 HAVE_DECL_MEMRCHR=1;
12502 HAVE_RAWMEMCHR=1;
12503 HAVE_STPCPY=1;
12504 HAVE_STPNCPY=1;
12505 HAVE_STRCHRNUL=1;
12506 HAVE_DECL_STRDUP=1;
12507 HAVE_DECL_STRNDUP=1;
12508 HAVE_DECL_STRNLEN=1;
12509 HAVE_STRPBRK=1;
12510 HAVE_STRSEP=1;
12511 HAVE_STRCASESTR=1;
12512 HAVE_DECL_STRTOK_R=1;
12513 HAVE_DECL_STRSIGNAL=1;
12514 HAVE_STRVERSCMP=1;
12515 REPLACE_MEMCHR=0;
12516 REPLACE_MEMMEM=0;
12517 REPLACE_STPNCPY=0;
12518 REPLACE_STRDUP=0;
12519 REPLACE_STRSTR=0;
12520 REPLACE_STRCASESTR=0;
12521 REPLACE_STRERROR=0;
12522 REPLACE_STRNCAT=0;
12523 REPLACE_STRNDUP=0;
12524 REPLACE_STRNLEN=0;
12525 REPLACE_STRSIGNAL=0;
12526 REPLACE_STRTOK_R=0;
12527 UNDEFINE_STRTOK_R=0;
12538 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12539 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12540 # irrelevant for anonymous mappings.
12541 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12542 if test "x$ac_cv_func_mmap" = xyes; then :
12543 gl_have_mmap=yes
12544 else
12545 gl_have_mmap=no
12549 # Try to allow MAP_ANONYMOUS.
12550 gl_have_mmap_anonymous=no
12551 if test $gl_have_mmap = yes; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12553 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 #include <sys/mman.h>
12558 #ifdef MAP_ANONYMOUS
12559 I cant identify this map.
12560 #endif
12562 _ACEOF
12563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12564 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
12565 gl_have_mmap_anonymous=yes
12567 rm -f conftest*
12569 if test $gl_have_mmap_anonymous != yes; then
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 #include <sys/mman.h>
12574 #ifdef MAP_ANON
12575 I cant identify this map.
12576 #endif
12578 _ACEOF
12579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12580 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
12582 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12584 gl_have_mmap_anonymous=yes
12586 rm -f conftest*
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12590 $as_echo "$gl_have_mmap_anonymous" >&6; }
12591 if test $gl_have_mmap_anonymous = yes; then
12593 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12603 if test $ac_cv_func_memchr = yes; then
12604 # Detect platform-specific bugs in some versions of glibc:
12605 # memchr should not dereference anything with length 0
12606 # http://bugzilla.redhat.com/499689
12607 # memchr should not dereference overestimated length after a match
12608 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12609 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12610 # Assume that memchr works on platforms that lack mprotect.
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12612 $as_echo_n "checking whether memchr works... " >&6; }
12613 if ${gl_cv_func_memchr_works+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 if test "$cross_compiling" = yes; then :
12617 gl_cv_func_memchr_works="guessing no"
12618 else
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 #include <string.h>
12623 #if HAVE_SYS_MMAN_H
12624 # include <fcntl.h>
12625 # include <unistd.h>
12626 # include <sys/types.h>
12627 # include <sys/mman.h>
12628 # ifndef MAP_FILE
12629 # define MAP_FILE 0
12630 # endif
12631 #endif
12634 main (void)
12637 char *fence = NULL;
12638 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12639 # if HAVE_MAP_ANONYMOUS
12640 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12641 const int fd = -1;
12642 # else /* !HAVE_MAP_ANONYMOUS */
12643 const int flags = MAP_FILE | MAP_PRIVATE;
12644 int fd = open ("/dev/zero", O_RDONLY, 0666);
12645 if (fd >= 0)
12646 # endif
12648 int pagesize = getpagesize ();
12649 char *two_pages =
12650 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12651 flags, fd, 0);
12652 if (two_pages != (char *)(-1)
12653 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12654 fence = two_pages + pagesize;
12656 #endif
12657 if (fence)
12659 if (memchr (fence, 0, 0))
12660 return 1;
12661 strcpy (fence - 9, "12345678");
12662 if (memchr (fence - 9, 0, 79) != fence - 1)
12663 return 2;
12664 if (memchr (fence - 1, 0, 3) != fence - 1)
12665 return 3;
12667 return 0;
12670 return 0;
12672 _ACEOF
12673 if ac_fn_c_try_run "$LINENO"; then :
12674 gl_cv_func_memchr_works=yes
12675 else
12676 gl_cv_func_memchr_works=no
12678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12679 conftest.$ac_objext conftest.beam conftest.$ac_ext
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12684 $as_echo "$gl_cv_func_memchr_works" >&6; }
12685 if test "$gl_cv_func_memchr_works" != yes; then
12686 REPLACE_MEMCHR=1
12688 else
12689 HAVE_MEMCHR=0
12691 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12700 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12703 for ac_header in bp-sym.h
12704 do :
12705 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12706 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
12707 cat >>confdefs.h <<_ACEOF
12708 #define HAVE_BP_SYM_H 1
12709 _ACEOF
12713 done
12719 gl_cv_c_multiarch=no
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #ifndef __APPLE_CC__
12723 not a universal capable compiler
12724 #endif
12725 typedef int dummy;
12727 _ACEOF
12728 if ac_fn_c_try_compile "$LINENO"; then :
12730 arch=
12731 prev=
12732 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12733 if test -n "$prev"; then
12734 case $word in
12735 i?86 | x86_64 | ppc | ppc64)
12736 if test -z "$arch" || test "$arch" = "$word"; then
12737 arch="$word"
12738 else
12739 gl_cv_c_multiarch=yes
12742 esac
12743 prev=
12744 else
12745 if test "x$word" = "x-arch"; then
12746 prev=arch
12749 done
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 if test $gl_cv_c_multiarch = yes; then
12755 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12757 APPLE_UNIVERSAL_BUILD=1
12758 else
12759 APPLE_UNIVERSAL_BUILD=0
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12772 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12773 if ${ac_cv_header_stdbool_h+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 #include <stdbool.h>
12780 #ifndef bool
12781 "error: bool is not defined"
12782 #endif
12783 #ifndef false
12784 "error: false is not defined"
12785 #endif
12786 #if false
12787 "error: false is not 0"
12788 #endif
12789 #ifndef true
12790 "error: true is not defined"
12791 #endif
12792 #if true != 1
12793 "error: true is not 1"
12794 #endif
12795 #ifndef __bool_true_false_are_defined
12796 "error: __bool_true_false_are_defined is not defined"
12797 #endif
12799 struct s { _Bool s: 1; _Bool t; } s;
12801 char a[true == 1 ? 1 : -1];
12802 char b[false == 0 ? 1 : -1];
12803 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12804 char d[(bool) 0.5 == true ? 1 : -1];
12805 /* See body of main program for 'e'. */
12806 char f[(_Bool) 0.0 == false ? 1 : -1];
12807 char g[true];
12808 char h[sizeof (_Bool)];
12809 char i[sizeof s.t];
12810 enum { j = false, k = true, l = false * true, m = true * 256 };
12811 /* The following fails for
12812 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12813 _Bool n[m];
12814 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12815 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12816 /* Catch a bug in an HP-UX C compiler. See
12817 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12818 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12820 _Bool q = true;
12821 _Bool *pq = &q;
12824 main (void)
12827 bool e = &s;
12828 *pq |= q;
12829 *pq |= ! q;
12830 /* Refer to every declared value, to avoid compiler optimizations. */
12831 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12832 + !m + !n + !o + !p + !q + !pq);
12835 return 0;
12837 _ACEOF
12838 if ac_fn_c_try_compile "$LINENO"; then :
12839 ac_cv_header_stdbool_h=yes
12840 else
12841 ac_cv_header_stdbool_h=no
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12846 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12847 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12848 if test "x$ac_cv_type__Bool" = xyes; then :
12850 cat >>confdefs.h <<_ACEOF
12851 #define HAVE__BOOL 1
12852 _ACEOF
12857 if test $ac_cv_header_stdbool_h = yes; then
12859 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12863 REPLACE_NULL=0;
12864 HAVE_WCHAR_T=1;
12865 STDDEF_H='';
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12869 $as_echo_n "checking for wchar_t... " >&6; }
12870 if ${gt_cv_c_wchar_t+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <stddef.h>
12876 wchar_t foo = (wchar_t)'\0';
12878 main (void)
12882 return 0;
12884 _ACEOF
12885 if ac_fn_c_try_compile "$LINENO"; then :
12886 gt_cv_c_wchar_t=yes
12887 else
12888 gt_cv_c_wchar_t=no
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12893 $as_echo "$gt_cv_c_wchar_t" >&6; }
12894 if test $gt_cv_c_wchar_t = yes; then
12896 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12904 $as_echo_n "checking for long long int... " >&6; }
12905 if ${ac_cv_type_long_long_int+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12911 /* For now, do not test the preprocessor; as of 2007 there are too many
12912 implementations with broken preprocessors. Perhaps this can
12913 be revisited in 2012. In the meantime, code should not expect
12914 #if to work with literals wider than 32 bits. */
12915 /* Test literals. */
12916 long long int ll = 9223372036854775807ll;
12917 long long int nll = -9223372036854775807LL;
12918 unsigned long long int ull = 18446744073709551615ULL;
12919 /* Test constant expressions. */
12920 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12921 ? 1 : -1)];
12922 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12923 ? 1 : -1)];
12924 int i = 63;
12926 main (void)
12928 /* Test availability of runtime routines for shift and division. */
12929 long long int llmax = 9223372036854775807ll;
12930 unsigned long long int ullmax = 18446744073709551615ull;
12931 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12932 | (llmax / ll) | (llmax % ll)
12933 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12934 | (ullmax / ull) | (ullmax % ull));
12936 return 0;
12939 _ACEOF
12940 if ac_fn_c_try_link "$LINENO"; then :
12941 if test "$cross_compiling" = yes; then :
12942 ac_cv_type_long_long_int=yes
12943 else
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 #include <limits.h>
12947 #ifndef LLONG_MAX
12948 # define HALF \
12949 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12950 # define LLONG_MAX (HALF - 1 + HALF)
12951 #endif
12953 main (void)
12955 long long int n = 1;
12956 int i;
12957 for (i = 0; ; i++)
12959 long long int m = n << i;
12960 if (m >> i != n)
12961 return 1;
12962 if (LLONG_MAX / 2 < m)
12963 break;
12965 return 0;
12967 return 0;
12969 _ACEOF
12970 if ac_fn_c_try_run "$LINENO"; then :
12971 ac_cv_type_long_long_int=yes
12972 else
12973 ac_cv_type_long_long_int=no
12975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12976 conftest.$ac_objext conftest.beam conftest.$ac_ext
12979 else
12980 ac_cv_type_long_long_int=no
12982 rm -f core conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext conftest.$ac_ext
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12986 $as_echo "$ac_cv_type_long_long_int" >&6; }
12987 if test $ac_cv_type_long_long_int = yes; then
12989 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12995 $as_echo_n "checking for unsigned long long int... " >&6; }
12996 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* For now, do not test the preprocessor; as of 2007 there are too many
13003 implementations with broken preprocessors. Perhaps this can
13004 be revisited in 2012. In the meantime, code should not expect
13005 #if to work with literals wider than 32 bits. */
13006 /* Test literals. */
13007 long long int ll = 9223372036854775807ll;
13008 long long int nll = -9223372036854775807LL;
13009 unsigned long long int ull = 18446744073709551615ULL;
13010 /* Test constant expressions. */
13011 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13012 ? 1 : -1)];
13013 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13014 ? 1 : -1)];
13015 int i = 63;
13017 main (void)
13019 /* Test availability of runtime routines for shift and division. */
13020 long long int llmax = 9223372036854775807ll;
13021 unsigned long long int ullmax = 18446744073709551615ull;
13022 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13023 | (llmax / ll) | (llmax % ll)
13024 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13025 | (ullmax / ull) | (ullmax % ull));
13027 return 0;
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"; then :
13032 ac_cv_type_unsigned_long_long_int=yes
13033 else
13034 ac_cv_type_unsigned_long_long_int=no
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
13040 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13041 if test $ac_cv_type_unsigned_long_long_int = yes; then
13043 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
13053 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
13054 if ${gl_cv_prog_as_underscore+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 cat > conftest.c <<EOF
13058 #ifdef __cplusplus
13059 extern "C" int foo (void);
13060 #endif
13061 int foo(void) { return 0; }
13063 # Look for the assembly language name in the .s file.
13064 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
13065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069 test $ac_status = 0; }; } >/dev/null 2>&1
13070 if grep _foo conftest.s >/dev/null ; then
13071 gl_cv_prog_as_underscore=yes
13072 else
13073 gl_cv_prog_as_underscore=no
13075 rm -f conftest*
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
13079 $as_echo "$gl_cv_prog_as_underscore" >&6; }
13080 if test $gl_cv_prog_as_underscore = yes; then
13081 USER_LABEL_PREFIX=_
13082 else
13083 USER_LABEL_PREFIX=
13086 cat >>confdefs.h <<_ACEOF
13087 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
13088 _ACEOF
13090 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
13098 HAVE_STRCASECMP=1;
13099 HAVE_DECL_STRNCASECMP=1;
13106 if test -z "$ERRNO_H"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
13108 $as_echo_n "checking for working strerror function... " >&6; }
13109 if ${gl_cv_func_working_strerror+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 if test "$cross_compiling" = yes; then :
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 #include <string.h>
13118 main (void)
13120 return !*strerror (-2);
13122 return 0;
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126 gl_cv_func_working_strerror=yes
13127 else
13128 gl_cv_func_working_strerror=no
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 else
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <string.h>
13138 main (void)
13140 return !*strerror (-2);
13142 return 0;
13144 _ACEOF
13145 if ac_fn_c_try_run "$LINENO"; then :
13146 gl_cv_func_working_strerror=yes
13147 else
13148 gl_cv_func_working_strerror=no
13150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13151 conftest.$ac_objext conftest.beam conftest.$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13157 $as_echo "$gl_cv_func_working_strerror" >&6; }
13158 if test $gl_cv_func_working_strerror = no; then
13159 REPLACE_STRERROR=1
13161 else
13162 REPLACE_STRERROR=1
13164 if test $REPLACE_STRERROR = 1; then
13166 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13167 if test "x$ac_cv_have_decl_strerror" = xyes; then :
13168 ac_have_decl=1
13169 else
13170 ac_have_decl=0
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_STRERROR $ac_have_decl
13175 _ACEOF
13178 if test $ac_cv_header_sys_socket_h != yes; then
13179 for ac_header in winsock2.h
13180 do :
13181 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13182 if test "x$ac_cv_header_winsock2_h" = xyes; then :
13183 cat >>confdefs.h <<_ACEOF
13184 #define HAVE_WINSOCK2_H 1
13185 _ACEOF
13189 done
13206 if test $gl_cv_have_include_next = yes; then
13207 gl_cv_next_string_h='<'string.h'>'
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13210 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13211 if ${gl_cv_next_string_h+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13215 if test $ac_cv_header_string_h = yes; then
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #include <string.h>
13220 _ACEOF
13221 case "$host_os" in
13222 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13223 *) gl_absname_cpp="$ac_cpp" ;;
13224 esac
13225 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13226 sed -n '\#/string.h#{
13227 s#.*"\(.*/string.h\)".*#\1#
13228 s#^/[^/]#//&#
13231 }'`'"'
13232 else
13233 gl_cv_next_string_h='<'string.h'>'
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13238 $as_echo "$gl_cv_next_string_h" >&6; }
13240 NEXT_STRING_H=$gl_cv_next_string_h
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='<'string.h'>'
13245 else
13246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13247 gl_next_as_first_directive=$gl_cv_next_string_h
13249 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13255 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
13256 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13258 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13259 if eval \${$as_gl_Symbol+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <string.h>
13267 main (void)
13269 #undef $gl_func
13270 (void) $gl_func;
13272 return 0;
13274 _ACEOF
13275 if ac_fn_c_try_compile "$LINENO"; then :
13276 eval "$as_gl_Symbol=yes"
13277 else
13278 eval "$as_gl_Symbol=no"
13280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 eval ac_res=\$$as_gl_Symbol
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13286 cat >>confdefs.h <<_ACEOF
13287 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13288 _ACEOF
13290 eval ac_cv_have_decl_$gl_func=yes
13292 done
13305 if test $gl_cv_have_include_next = yes; then
13306 gl_cv_next_strings_h='<'strings.h'>'
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
13309 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
13310 if ${gl_cv_next_strings_h+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13314 if test $ac_cv_header_strings_h = yes; then
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <strings.h>
13319 _ACEOF
13320 case "$host_os" in
13321 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13322 *) gl_absname_cpp="$ac_cpp" ;;
13323 esac
13324 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13325 sed -n '\#/strings.h#{
13326 s#.*"\(.*/strings.h\)".*#\1#
13327 s#^/[^/]#//&#
13330 }'`'"'
13331 else
13332 gl_cv_next_strings_h='<'strings.h'>'
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
13337 $as_echo "$gl_cv_next_strings_h" >&6; }
13339 NEXT_STRINGS_H=$gl_cv_next_strings_h
13341 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13343 gl_next_as_first_directive='<'strings.h'>'
13344 else
13345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13346 gl_next_as_first_directive=$gl_cv_next_strings_h
13348 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
13354 for gl_func in strcasecmp strncasecmp; do
13355 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13357 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13358 if eval \${$as_gl_Symbol+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <strings.h>
13366 main (void)
13368 #undef $gl_func
13369 (void) $gl_func;
13371 return 0;
13373 _ACEOF
13374 if ac_fn_c_try_compile "$LINENO"; then :
13375 eval "$as_gl_Symbol=yes"
13376 else
13377 eval "$as_gl_Symbol=no"
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 eval ac_res=\$$as_gl_Symbol
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13383 $as_echo "$ac_res" >&6; }
13384 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13385 cat >>confdefs.h <<_ACEOF
13386 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13387 _ACEOF
13389 eval ac_cv_have_decl_$gl_func=yes
13391 done
13394 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
13395 if test "x$ac_cv_have_decl_strndup" = xyes; then :
13396 ac_have_decl=1
13397 else
13398 ac_have_decl=0
13401 cat >>confdefs.h <<_ACEOF
13402 #define HAVE_DECL_STRNDUP $ac_have_decl
13403 _ACEOF
13407 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13408 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13409 ac_have_decl=1
13410 else
13411 ac_have_decl=0
13414 cat >>confdefs.h <<_ACEOF
13415 #define HAVE_DECL_STRNLEN $ac_have_decl
13416 _ACEOF
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13430 $as_echo_n "checking for wint_t... " >&6; }
13431 if ${gt_cv_c_wint_t+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13437 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13438 <wchar.h>.
13439 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13440 before <wchar.h>. */
13441 #include <stddef.h>
13442 #include <stdio.h>
13443 #include <time.h>
13444 #include <wchar.h>
13445 wint_t foo = (wchar_t)'\0';
13447 main (void)
13451 return 0;
13453 _ACEOF
13454 if ac_fn_c_try_compile "$LINENO"; then :
13455 gt_cv_c_wint_t=yes
13456 else
13457 gt_cv_c_wint_t=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13462 $as_echo "$gt_cv_c_wint_t" >&6; }
13463 if test $gt_cv_c_wint_t = yes; then
13465 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13471 $as_echo_n "checking for inttypes.h... " >&6; }
13472 if ${gl_cv_header_inttypes_h+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13478 #include <sys/types.h>
13479 #include <inttypes.h>
13482 main (void)
13484 uintmax_t i = (uintmax_t) -1; return !i;
13486 return 0;
13488 _ACEOF
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490 gl_cv_header_inttypes_h=yes
13491 else
13492 gl_cv_header_inttypes_h=no
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
13497 $as_echo "$gl_cv_header_inttypes_h" >&6; }
13498 if test $gl_cv_header_inttypes_h = yes; then
13500 cat >>confdefs.h <<_ACEOF
13501 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13502 _ACEOF
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13508 $as_echo_n "checking for stdint.h... " >&6; }
13509 if ${gl_cv_header_stdint_h+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 #include <sys/types.h>
13515 #include <stdint.h>
13517 main (void)
13519 uintmax_t i = (uintmax_t) -1; return !i;
13521 return 0;
13523 _ACEOF
13524 if ac_fn_c_try_compile "$LINENO"; then :
13525 gl_cv_header_stdint_h=yes
13526 else
13527 gl_cv_header_stdint_h=no
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
13532 $as_echo "$gl_cv_header_stdint_h" >&6; }
13533 if test $gl_cv_header_stdint_h = yes; then
13535 cat >>confdefs.h <<_ACEOF
13536 #define HAVE_STDINT_H_WITH_UINTMAX 1
13537 _ACEOF
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13545 $as_echo_n "checking for intmax_t... " >&6; }
13546 if ${gt_cv_c_intmax_t+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13552 #include <stddef.h>
13553 #include <stdlib.h>
13554 #if HAVE_STDINT_H_WITH_UINTMAX
13555 #include <stdint.h>
13556 #endif
13557 #if HAVE_INTTYPES_H_WITH_UINTMAX
13558 #include <inttypes.h>
13559 #endif
13562 main (void)
13564 intmax_t x = -1; return !x;
13566 return 0;
13568 _ACEOF
13569 if ac_fn_c_try_compile "$LINENO"; then :
13570 gt_cv_c_intmax_t=yes
13571 else
13572 gt_cv_c_intmax_t=no
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
13577 $as_echo "$gt_cv_c_intmax_t" >&6; }
13578 if test $gt_cv_c_intmax_t = yes; then
13580 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
13582 else
13584 test $ac_cv_type_long_long_int = yes \
13585 && ac_type='long long' \
13586 || ac_type='long'
13588 cat >>confdefs.h <<_ACEOF
13589 #define intmax_t $ac_type
13590 _ACEOF
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
13597 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
13598 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13602 if test "$cross_compiling" = yes; then :
13604 case "$host_os" in
13605 # Guess yes on glibc systems.
13606 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13607 # Guess yes on FreeBSD >= 5.
13608 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13609 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13610 # Guess yes on MacOS X >= 10.3.
13611 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
13612 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13613 # Guess yes on OpenBSD >= 3.9.
13614 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
13615 gl_cv_func_snprintf_retval_c99="guessing no";;
13616 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13617 # Guess yes on Solaris >= 2.6.
13618 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13619 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13620 # Guess yes on AIX >= 4.
13621 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13622 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13623 # Guess yes on NetBSD >= 3.
13624 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
13625 gl_cv_func_snprintf_retval_c99="guessing no";;
13626 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13627 # Guess yes on BeOS.
13628 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13629 # If we don't know, assume the worst.
13630 *) gl_cv_func_snprintf_retval_c99="guessing no";;
13631 esac
13633 else
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 #include <stdio.h>
13638 #include <string.h>
13639 static char buf[100];
13640 int main ()
13642 strcpy (buf, "ABCDEF");
13643 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
13644 return 1;
13645 return 0;
13647 _ACEOF
13648 if ac_fn_c_try_run "$LINENO"; then :
13649 gl_cv_func_snprintf_retval_c99=yes
13650 else
13651 gl_cv_func_snprintf_retval_c99=no
13653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13654 conftest.$ac_objext conftest.beam conftest.$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
13660 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
13668 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
13669 do :
13670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13672 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13673 cat >>confdefs.h <<_ACEOF
13674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13675 _ACEOF
13678 done
13680 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
13682 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
13683 ac_have_decl=1
13684 else
13685 ac_have_decl=0
13688 cat >>confdefs.h <<_ACEOF
13689 #define HAVE_DECL__SNPRINTF $ac_have_decl
13690 _ACEOF
13693 case "$gl_cv_func_snprintf_retval_c99" in
13694 *yes)
13696 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
13699 esac
13701 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13702 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13703 ac_have_decl=1
13704 else
13705 ac_have_decl=0
13708 cat >>confdefs.h <<_ACEOF
13709 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13710 _ACEOF
13718 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
13719 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
13720 ac_have_decl=1
13721 else
13722 ac_have_decl=0
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_DECL_ISWBLANK $ac_have_decl
13727 _ACEOF
13730 if false; then
13731 GL_COND_LIBTOOL_TRUE=
13732 GL_COND_LIBTOOL_FALSE='#'
13733 else
13734 GL_COND_LIBTOOL_TRUE='#'
13735 GL_COND_LIBTOOL_FALSE=
13738 gl_cond_libtool=false
13739 gl_libdeps=
13740 gl_ltlibdeps=
13741 gl_m4_base='m4'
13751 gl_source_base='grub-core/gnulib'
13752 # Code from module alloca:
13753 # Code from module alloca-opt:
13759 if test $ac_cv_func_alloca_works = no; then
13763 # Define an additional variable used in the Makefile substitution.
13764 if test $ac_cv_working_alloca_h = yes; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13766 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13767 if ${gl_cv_rpl_alloca+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13775 Need own alloca
13776 #endif
13778 _ACEOF
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "Need own alloca" >/dev/null 2>&1; then :
13781 gl_cv_rpl_alloca=yes
13782 else
13783 gl_cv_rpl_alloca=no
13785 rm -f conftest*
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13790 $as_echo "$gl_cv_rpl_alloca" >&6; }
13791 if test $gl_cv_rpl_alloca = yes; then
13793 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13795 ALLOCA_H=alloca.h
13796 else
13797 ALLOCA_H=
13799 else
13800 ALLOCA_H=alloca.h
13804 # Code from module arg-nonnull:
13805 # Code from module argp:
13812 GETOPT_H=getopt.h
13814 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13818 GNULIB_UNISTD_H_GETOPT=1
13827 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13837 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13844 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
13846 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
13848 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13850 else
13852 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13856 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
13858 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
13860 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13862 else
13864 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13869 # Check if program_invocation_name and program_invocation_short_name
13870 # are defined elsewhere. It is improbable that only one of them will
13871 # be defined and other not, I prefer to stay on the safe side and to
13872 # test each one separately.
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
13874 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <argp.h>
13879 main (void)
13881 program_invocation_name = "test";
13883 return 0;
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13888 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13891 $as_echo "yes" >&6; }
13892 else
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894 $as_echo "no" >&6; }
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
13900 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #include <argp.h>
13905 main (void)
13907 program_invocation_short_name = "test";
13909 return 0;
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"; then :
13914 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13917 $as_echo "yes" >&6; }
13918 else
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 $as_echo "no" >&6; }
13922 rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13943 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
13947 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
13949 # Code from module btowc:
13956 if test $ac_cv_func_btowc = no; then
13957 HAVE_BTOWC=0
13958 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
13964 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
13965 if ${gl_cv_func_btowc_nul+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13969 if test "$cross_compiling" = yes; then :
13971 case "$host_os" in
13972 # Guess no on Cygwin.
13973 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
13974 # Guess yes otherwise.
13975 *) gl_cv_func_btowc_nul="guessing yes" ;;
13976 esac
13978 else
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13982 #include <stdio.h>
13983 #include <string.h>
13984 #include <wchar.h>
13985 int main ()
13987 if (btowc ('\0') != 0)
13988 return 1;
13989 return 0;
13991 _ACEOF
13992 if ac_fn_c_try_run "$LINENO"; then :
13993 gl_cv_func_btowc_nul=yes
13994 else
13995 gl_cv_func_btowc_nul=no
13997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13998 conftest.$ac_objext conftest.beam conftest.$ac_ext
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
14004 $as_echo "$gl_cv_func_btowc_nul" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
14007 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
14008 if ${gl_cv_func_btowc_eof+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14012 case "$host_os" in
14013 # Guess no on IRIX.
14014 irix*) gl_cv_func_btowc_eof="guessing no" ;;
14015 # Guess yes otherwise.
14016 *) gl_cv_func_btowc_eof="guessing yes" ;;
14017 esac
14018 if test $LOCALE_FR != none; then
14019 if test "$cross_compiling" = yes; then :
14021 else
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14025 #include <locale.h>
14026 #include <stdio.h>
14027 #include <string.h>
14028 #include <wchar.h>
14029 int main ()
14031 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14033 if (btowc (EOF) != WEOF)
14034 return 1;
14036 return 0;
14038 _ACEOF
14039 if ac_fn_c_try_run "$LINENO"; then :
14040 gl_cv_func_btowc_eof=yes
14041 else
14042 gl_cv_func_btowc_eof=no
14044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14045 conftest.$ac_objext conftest.beam conftest.$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
14052 $as_echo "$gl_cv_func_btowc_eof" >&6; }
14054 case "$gl_cv_func_btowc_nul" in
14055 *yes) ;;
14056 *) REPLACE_BTOWC=1 ;;
14057 esac
14058 case "$gl_cv_func_btowc_eof" in
14059 *yes) ;;
14060 *) REPLACE_BTOWC=1 ;;
14061 esac
14063 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
14075 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
14085 GNULIB_BTOWC=1
14089 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
14093 # Code from module c++defs:
14094 # Code from module configmake:
14095 # Code from module dirname-lgpl:
14105 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
14115 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
14125 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
14132 # Code from module double-slash-root:
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14136 $as_echo_n "checking whether // is distinct from /... " >&6; }
14137 if ${gl_cv_double_slash_root+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 if test x"$cross_compiling" = xyes ; then
14141 # When cross-compiling, there is no way to tell whether // is special
14142 # short of a list of hosts. However, the only known hosts to date
14143 # that have a distinct // are Apollo DomainOS (too old to port to),
14144 # Cygwin, and z/OS. If anyone knows of another system for which // has
14145 # special semantics and is distinct from /, please report it to
14146 # <bug-gnulib@gnu.org>.
14147 case $host in
14148 *-cygwin | i370-ibm-openedition)
14149 gl_cv_double_slash_root=yes ;;
14151 # Be optimistic and assume that / and // are the same when we
14152 # don't know.
14153 gl_cv_double_slash_root='unknown, assuming no' ;;
14154 esac
14155 else
14156 set x `ls -di / // 2>/dev/null`
14157 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
14158 gl_cv_double_slash_root=no
14159 else
14160 gl_cv_double_slash_root=yes
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14165 $as_echo "$gl_cv_double_slash_root" >&6; }
14166 if test "$gl_cv_double_slash_root" = yes; then
14168 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14172 # Code from module errno:
14174 # Code from module error:
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
14190 $as_echo_n "checking for error_at_line... " >&6; }
14191 if ${ac_cv_lib_error_at_line+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 #include <error.h>
14198 main (void)
14200 error_at_line (0, 0, "", 0, "an error occurred");
14202 return 0;
14204 _ACEOF
14205 if ac_fn_c_try_link "$LINENO"; then :
14206 ac_cv_lib_error_at_line=yes
14207 else
14208 ac_cv_lib_error_at_line=no
14210 rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
14214 $as_echo "$ac_cv_lib_error_at_line" >&6; }
14215 if test $ac_cv_lib_error_at_line = no; then
14224 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
14236 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
14240 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
14242 # Code from module extensions:
14243 # Code from module float:
14247 FLOAT_H=
14248 case "$host_os" in
14249 beos* | openbsd* | mirbsd*)
14250 FLOAT_H=float.h
14257 if test $gl_cv_have_include_next = yes; then
14258 gl_cv_next_float_h='<'float.h'>'
14259 else
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
14261 $as_echo_n "checking absolute name of <float.h>... " >&6; }
14262 if ${gl_cv_next_float_h+:} false; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14266 if test $ac_cv_header_float_h = yes; then
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 #include <float.h>
14271 _ACEOF
14272 case "$host_os" in
14273 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14274 *) gl_absname_cpp="$ac_cpp" ;;
14275 esac
14276 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14277 sed -n '\#/float.h#{
14278 s#.*"\(.*/float.h\)".*#\1#
14279 s#^/[^/]#//&#
14282 }'`'"'
14283 else
14284 gl_cv_next_float_h='<'float.h'>'
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
14289 $as_echo "$gl_cv_next_float_h" >&6; }
14291 NEXT_FLOAT_H=$gl_cv_next_float_h
14293 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14295 gl_next_as_first_directive='<'float.h'>'
14296 else
14297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14298 gl_next_as_first_directive=$gl_cv_next_float_h
14300 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
14305 esac
14308 # Code from module fnmatch:
14314 FNMATCH_H=
14315 gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
14316 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
14318 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
14319 if eval \${$gl_fnmatch_cache_var+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 if test $gl_fnmatch_required = GNU; then
14323 gl_fnmatch_gnu_start=
14324 gl_fnmatch_gnu_end=
14325 else
14326 gl_fnmatch_gnu_start='#if 0'
14327 gl_fnmatch_gnu_end='#endif'
14329 if test "$cross_compiling" = yes; then :
14330 eval "$gl_fnmatch_cache_var=\"guessing no\""
14331 else
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <fnmatch.h>
14335 static int
14336 y (char const *pattern, char const *string, int flags)
14338 return fnmatch (pattern, string, flags) == 0;
14340 static int
14341 n (char const *pattern, char const *string, int flags)
14343 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
14347 main (void)
14349 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
14350 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
14351 static char const A_1[] = { 'A' - 1, 0 };
14352 static char const A01[] = { 'A' + 1, 0 };
14353 static char const a_1[] = { 'a' - 1, 0 };
14354 static char const a01[] = { 'a' + 1, 0 };
14355 static char const bs_1[] = { '\\\\' - 1, 0 };
14356 static char const bs01[] = { '\\\\' + 1, 0 };
14357 return
14358 !(n ("a*", "", 0)
14359 && y ("a*", "abc", 0)
14360 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
14361 && y ("a\\\\bc", "abc", 0)
14362 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
14363 && y ("*x", ".x", 0)
14364 && n ("*x", ".x", FNM_PERIOD)
14365 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
14366 && y (apat, "\\\\", 0) && y (apat, "a", 0)
14367 && n (Apat, A_1, 0) == ('A' < '\\\\')
14368 && n (apat, a_1, 0) == ('a' < '\\\\')
14369 && y (Apat, A01, 0) == ('A' < '\\\\')
14370 && y (apat, a01, 0) == ('a' < '\\\\')
14371 && y (Apat, bs_1, 0) == ('A' < '\\\\')
14372 && y (apat, bs_1, 0) == ('a' < '\\\\')
14373 && n (Apat, bs01, 0) == ('A' < '\\\\')
14374 && n (apat, bs01, 0) == ('a' < '\\\\')
14375 $gl_fnmatch_gnu_start
14376 && y ("xxXX", "xXxX", FNM_CASEFOLD)
14377 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
14378 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
14379 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
14380 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
14381 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
14382 $gl_fnmatch_gnu_end
14386 return 0;
14388 _ACEOF
14389 if ac_fn_c_try_run "$LINENO"; then :
14390 eval "$gl_fnmatch_cache_var=yes"
14391 else
14392 eval "$gl_fnmatch_cache_var=no"
14394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14395 conftest.$ac_objext conftest.beam conftest.$ac_ext
14400 eval ac_res=\$$gl_fnmatch_cache_var
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14402 $as_echo "$ac_res" >&6; }
14403 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
14404 if test "$gl_fnmatch_result" = yes; then
14405 rm -f "$gl_source_base/fnmatch.h"
14406 else
14407 FNMATCH_H=fnmatch.h
14416 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
14419 cat >>confdefs.h <<_ACEOF
14420 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
14421 _ACEOF
14424 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
14426 if test "x$ac_cv_have_decl_isblank" = xyes; then :
14427 ac_have_decl=1
14428 else
14429 ac_have_decl=0
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_DECL_ISBLANK $ac_have_decl
14434 _ACEOF
14441 # Code from module getdelim:
14450 if test $ac_cv_func_getdelim = yes; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14452 $as_echo_n "checking for working getdelim function... " >&6; }
14453 if ${gl_cv_func_working_getdelim+:} false; then :
14454 $as_echo_n "(cached) " >&6
14455 else
14456 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14457 if test "$cross_compiling" = yes; then :
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 #include <features.h>
14462 #ifdef __GNU_LIBRARY__
14463 #if (__GLIBC__ >= 2)
14464 Lucky GNU user
14465 #endif
14466 #endif
14468 _ACEOF
14469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14470 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14471 gl_cv_func_working_getdelim=yes
14472 else
14473 gl_cv_func_working_getdelim=no
14475 rm -f conftest*
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 # include <stdio.h>
14483 # include <stdlib.h>
14484 # include <string.h>
14485 int main ()
14487 FILE *in = fopen ("./conftest.data", "r");
14488 if (!in)
14489 return 1;
14491 /* Test result for a NULL buffer and a zero size.
14492 Based on a test program from Karl Heuer. */
14493 char *line = NULL;
14494 size_t siz = 0;
14495 int len = getdelim (&line, &siz, '\n', in);
14496 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14497 return 1;
14500 /* Test result for a NULL buffer and a non-zero size.
14501 This crashes on FreeBSD 8.0. */
14502 char *line = NULL;
14503 size_t siz = (size_t)(~0) / 4;
14504 if (getdelim (&line, &siz, '\n', in) == -1)
14505 return 1;
14507 return 0;
14510 _ACEOF
14511 if ac_fn_c_try_run "$LINENO"; then :
14512 gl_cv_func_working_getdelim=yes
14513 else
14514 gl_cv_func_working_getdelim=no
14516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14517 conftest.$ac_objext conftest.beam conftest.$ac_ext
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14522 $as_echo "$gl_cv_func_working_getdelim" >&6; }
14523 else
14524 gl_cv_func_working_getdelim=no
14527 if test $ac_cv_have_decl_getdelim = no; then
14528 HAVE_DECL_GETDELIM=0
14531 if test $gl_cv_func_working_getdelim = no; then
14532 if test $ac_cv_func_getdelim = yes; then
14533 REPLACE_GETDELIM=1
14543 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
14546 for ac_func in flockfile funlockfile
14547 do :
14548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14553 _ACEOF
14556 done
14558 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14559 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
14560 ac_have_decl=1
14561 else
14562 ac_have_decl=0
14565 cat >>confdefs.h <<_ACEOF
14566 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14567 _ACEOF
14575 GNULIB_GETDELIM=1
14579 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
14583 # Code from module getline:
14591 gl_getline_needs_run_time_check=no
14592 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14593 if test "x$ac_cv_func_getline" = xyes; then :
14594 gl_getline_needs_run_time_check=yes
14595 else
14596 am_cv_func_working_getline=no
14599 if test $gl_getline_needs_run_time_check = yes; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
14601 $as_echo_n "checking for working getline function... " >&6; }
14602 if ${am_cv_func_working_getline+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14606 if test "$cross_compiling" = yes; then :
14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14610 #include <features.h>
14611 #ifdef __GNU_LIBRARY__
14612 #if (__GLIBC__ >= 2)
14613 Lucky GNU user
14614 #endif
14615 #endif
14617 _ACEOF
14618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14619 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14620 am_cv_func_working_getline=yes
14621 else
14622 am_cv_func_working_getline=no
14624 rm -f conftest*
14627 else
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14631 # include <stdio.h>
14632 # include <stdlib.h>
14633 # include <string.h>
14634 int main ()
14636 FILE *in = fopen ("./conftest.data", "r");
14637 if (!in)
14638 return 1;
14640 /* Test result for a NULL buffer and a zero size.
14641 Based on a test program from Karl Heuer. */
14642 char *line = NULL;
14643 size_t siz = 0;
14644 int len = getline (&line, &siz, in);
14645 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14646 return 1;
14649 /* Test result for a NULL buffer and a non-zero size.
14650 This crashes on FreeBSD 8.0. */
14651 char *line = NULL;
14652 size_t siz = (size_t)(~0) / 4;
14653 if (getline (&line, &siz, in) == -1)
14654 return 1;
14656 return 0;
14659 _ACEOF
14660 if ac_fn_c_try_run "$LINENO"; then :
14661 am_cv_func_working_getline=yes
14662 else
14663 am_cv_func_working_getline=no
14665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14666 conftest.$ac_objext conftest.beam conftest.$ac_ext
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
14671 $as_echo "$am_cv_func_working_getline" >&6; }
14674 if test $ac_cv_have_decl_getline = no; then
14675 HAVE_DECL_GETLINE=0
14678 if test $am_cv_func_working_getline = no; then
14679 REPLACE_GETLINE=1
14688 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
14700 if test $ac_cv_func_getdelim = yes; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14702 $as_echo_n "checking for working getdelim function... " >&6; }
14703 if ${gl_cv_func_working_getdelim+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14707 if test "$cross_compiling" = yes; then :
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14711 #include <features.h>
14712 #ifdef __GNU_LIBRARY__
14713 #if (__GLIBC__ >= 2)
14714 Lucky GNU user
14715 #endif
14716 #endif
14718 _ACEOF
14719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14720 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14721 gl_cv_func_working_getdelim=yes
14722 else
14723 gl_cv_func_working_getdelim=no
14725 rm -f conftest*
14728 else
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 # include <stdio.h>
14733 # include <stdlib.h>
14734 # include <string.h>
14735 int main ()
14737 FILE *in = fopen ("./conftest.data", "r");
14738 if (!in)
14739 return 1;
14741 /* Test result for a NULL buffer and a zero size.
14742 Based on a test program from Karl Heuer. */
14743 char *line = NULL;
14744 size_t siz = 0;
14745 int len = getdelim (&line, &siz, '\n', in);
14746 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14747 return 1;
14750 /* Test result for a NULL buffer and a non-zero size.
14751 This crashes on FreeBSD 8.0. */
14752 char *line = NULL;
14753 size_t siz = (size_t)(~0) / 4;
14754 if (getdelim (&line, &siz, '\n', in) == -1)
14755 return 1;
14757 return 0;
14760 _ACEOF
14761 if ac_fn_c_try_run "$LINENO"; then :
14762 gl_cv_func_working_getdelim=yes
14763 else
14764 gl_cv_func_working_getdelim=no
14766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14767 conftest.$ac_objext conftest.beam conftest.$ac_ext
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14772 $as_echo "$gl_cv_func_working_getdelim" >&6; }
14773 else
14774 gl_cv_func_working_getdelim=no
14777 if test $ac_cv_have_decl_getdelim = no; then
14778 HAVE_DECL_GETDELIM=0
14781 if test $gl_cv_func_working_getdelim = no; then
14782 if test $ac_cv_func_getdelim = yes; then
14783 REPLACE_GETDELIM=1
14793 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
14796 for ac_func in flockfile funlockfile
14797 do :
14798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14799 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14800 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14803 _ACEOF
14806 done
14808 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14809 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
14810 ac_have_decl=1
14811 else
14812 ac_have_decl=0
14815 cat >>confdefs.h <<_ACEOF
14816 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14817 _ACEOF
14828 GNULIB_GETLINE=1
14832 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
14836 # Code from module getopt-gnu:
14844 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14847 # Code from module getopt-posix:
14853 if test -n "$gl_replace_getopt"; then :
14857 GETOPT_H=getopt.h
14859 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14863 GNULIB_UNISTD_H_GETOPT=1
14872 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14882 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14892 # Code from module gettext:
14894 # Code from module gettext-h:
14897 # Code from module havelib:
14898 # Code from module include_next:
14899 # Code from module intprops:
14900 # Code from module langinfo:
14912 if test $gl_cv_have_include_next = yes; then
14913 gl_cv_next_langinfo_h='<'langinfo.h'>'
14914 else
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14916 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14917 if ${gl_cv_next_langinfo_h+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14921 if test $ac_cv_header_langinfo_h = yes; then
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14924 #include <langinfo.h>
14926 _ACEOF
14927 case "$host_os" in
14928 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14929 *) gl_absname_cpp="$ac_cpp" ;;
14930 esac
14931 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14932 sed -n '\#/langinfo.h#{
14933 s#.*"\(.*/langinfo.h\)".*#\1#
14934 s#^/[^/]#//&#
14937 }'`'"'
14938 else
14939 gl_cv_next_langinfo_h='<'langinfo.h'>'
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
14944 $as_echo "$gl_cv_next_langinfo_h" >&6; }
14946 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
14948 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14950 gl_next_as_first_directive='<'langinfo.h'>'
14951 else
14952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14953 gl_next_as_first_directive=$gl_cv_next_langinfo_h
14955 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
14960 HAVE_LANGINFO_CODESET=0
14961 HAVE_LANGINFO_T_FMT_AMPM=0
14962 HAVE_LANGINFO_ERA=0
14963 HAVE_LANGINFO_YESEXPR=0
14965 if test $ac_cv_header_langinfo_h = yes; then
14966 HAVE_LANGINFO_H=1
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
14968 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
14969 if ${gl_cv_header_langinfo_codeset+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971 else
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 #include <langinfo.h>
14975 int a = CODESET;
14978 main (void)
14982 return 0;
14984 _ACEOF
14985 if ac_fn_c_try_compile "$LINENO"; then :
14986 gl_cv_header_langinfo_codeset=yes
14987 else
14988 gl_cv_header_langinfo_codeset=no
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
14994 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
14995 if test $gl_cv_header_langinfo_codeset = yes; then
14996 HAVE_LANGINFO_CODESET=1
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
14999 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
15000 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <langinfo.h>
15006 int a = T_FMT_AMPM;
15009 main (void)
15013 return 0;
15015 _ACEOF
15016 if ac_fn_c_try_compile "$LINENO"; then :
15017 gl_cv_header_langinfo_t_fmt_ampm=yes
15018 else
15019 gl_cv_header_langinfo_t_fmt_ampm=no
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
15025 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
15026 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
15027 HAVE_LANGINFO_T_FMT_AMPM=1
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
15030 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
15031 if ${gl_cv_header_langinfo_era+:} false; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #include <langinfo.h>
15037 int a = ERA;
15040 main (void)
15044 return 0;
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 gl_cv_header_langinfo_era=yes
15049 else
15050 gl_cv_header_langinfo_era=no
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15056 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15057 if test $gl_cv_header_langinfo_era = yes; then
15058 HAVE_LANGINFO_ERA=1
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
15061 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
15062 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 #include <langinfo.h>
15068 int a = YESEXPR;
15071 main (void)
15075 return 0;
15077 _ACEOF
15078 if ac_fn_c_try_compile "$LINENO"; then :
15079 gl_cv_header_langinfo_yesexpr=yes
15080 else
15081 gl_cv_header_langinfo_yesexpr=no
15083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
15087 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
15088 if test $gl_cv_header_langinfo_yesexpr = yes; then
15089 HAVE_LANGINFO_YESEXPR=1
15091 else
15092 HAVE_LANGINFO_H=0
15101 for gl_func in nl_langinfo; do
15102 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15104 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15105 if eval \${$as_gl_Symbol+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110 #include <langinfo.h>
15113 main (void)
15115 #undef $gl_func
15116 (void) $gl_func;
15118 return 0;
15120 _ACEOF
15121 if ac_fn_c_try_compile "$LINENO"; then :
15122 eval "$as_gl_Symbol=yes"
15123 else
15124 eval "$as_gl_Symbol=no"
15126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 eval ac_res=\$$as_gl_Symbol
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15130 $as_echo "$ac_res" >&6; }
15131 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15132 cat >>confdefs.h <<_ACEOF
15133 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15134 _ACEOF
15136 eval ac_cv_have_decl_$gl_func=yes
15138 done
15141 # Code from module localcharset:
15150 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15152 # Code from module malloc-gnu:
15155 for ac_header in stdlib.h
15156 do :
15157 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15158 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15159 cat >>confdefs.h <<_ACEOF
15160 #define HAVE_STDLIB_H 1
15161 _ACEOF
15165 done
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15168 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15169 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 if test "$cross_compiling" = yes; then :
15173 ac_cv_func_malloc_0_nonnull=no
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15178 # include <stdlib.h>
15179 #else
15180 char *malloc ();
15181 #endif
15184 main (void)
15186 return ! malloc (0);
15188 return 0;
15190 _ACEOF
15191 if ac_fn_c_try_run "$LINENO"; then :
15192 ac_cv_func_malloc_0_nonnull=yes
15193 else
15194 ac_cv_func_malloc_0_nonnull=no
15196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15197 conftest.$ac_objext conftest.beam conftest.$ac_ext
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15202 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15203 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15205 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15207 else
15208 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15219 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15221 REPLACE_MALLOC=1
15229 cat >>confdefs.h <<_ACEOF
15230 #define GNULIB_MALLOC_GNU 1
15231 _ACEOF
15234 # Code from module malloc-posix:
15238 if test $gl_cv_func_malloc_posix = yes; then
15240 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15242 else
15252 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15254 REPLACE_MALLOC=1
15261 GNULIB_MALLOC_POSIX=1
15265 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15269 # Code from module mbrtowc:
15280 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15285 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15286 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15290 case "$host_os" in
15291 # Guess no on AIX and OSF/1.
15292 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15293 # Guess yes otherwise.
15294 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15295 esac
15296 if test $LOCALE_JA != none; then
15297 if test "$cross_compiling" = yes; then :
15299 else
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15303 #include <locale.h>
15304 #include <string.h>
15305 #include <wchar.h>
15306 int main ()
15308 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15310 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15311 mbstate_t state;
15312 wchar_t wc;
15314 memset (&state, '\0', sizeof (mbstate_t));
15315 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15316 if (mbsinit (&state))
15317 return 1;
15319 return 0;
15321 _ACEOF
15322 if ac_fn_c_try_run "$LINENO"; then :
15323 gl_cv_func_mbrtowc_incomplete_state=yes
15324 else
15325 gl_cv_func_mbrtowc_incomplete_state=no
15327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15328 conftest.$ac_objext conftest.beam conftest.$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15335 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15341 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15342 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15346 case "$host_os" in
15347 # Guess no on Solaris 8.
15348 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15349 # Guess yes otherwise.
15350 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15351 esac
15352 if test $LOCALE_ZH_CN != none; then
15353 if test "$cross_compiling" = yes; then :
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15359 #include <locale.h>
15360 #include <stdlib.h>
15361 #include <string.h>
15362 #include <wchar.h>
15363 int main ()
15365 /* This fails on Solaris 8:
15366 mbrtowc returns 2, and sets wc to 0x00F0.
15367 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15368 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15370 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15371 mbstate_t state;
15372 wchar_t wc;
15374 memset (&state, '\0', sizeof (mbstate_t));
15375 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15376 && mbtowc (&wc, input + 3, 6) == 4)
15377 return 1;
15379 return 0;
15381 _ACEOF
15382 if ac_fn_c_try_run "$LINENO"; then :
15383 gl_cv_func_mbrtowc_sanitycheck=yes
15384 else
15385 gl_cv_func_mbrtowc_sanitycheck=no
15387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15388 conftest.$ac_objext conftest.beam conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15395 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15397 REPLACE_MBSTATE_T=0
15398 case "$gl_cv_func_mbrtowc_incomplete_state" in
15399 *yes) ;;
15400 *) REPLACE_MBSTATE_T=1 ;;
15401 esac
15402 case "$gl_cv_func_mbrtowc_sanitycheck" in
15403 *yes) ;;
15404 *) REPLACE_MBSTATE_T=1 ;;
15405 esac
15406 else
15407 REPLACE_MBSTATE_T=1
15409 if test $REPLACE_MBSTATE_T = 1; then
15417 if test $ac_cv_func_mbrtowc = no; then
15418 HAVE_MBRTOWC=0
15419 else
15420 if test $REPLACE_MBSTATE_T = 1; then
15421 REPLACE_MBRTOWC=1
15422 else
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15427 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15428 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15432 case "$host_os" in
15433 # Guess no on OSF/1.
15434 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15435 # Guess yes otherwise.
15436 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15437 esac
15438 if test $LOCALE_FR_UTF8 != none; then
15439 if test "$cross_compiling" = yes; then :
15441 else
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15445 #include <locale.h>
15446 #include <string.h>
15447 #include <wchar.h>
15448 int main ()
15450 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15452 mbstate_t state;
15453 wchar_t wc;
15454 int ret;
15456 memset (&state, '\0', sizeof (mbstate_t));
15457 wc = (wchar_t) 0xBADFACE;
15458 mbrtowc (&wc, NULL, 5, &state);
15459 /* Check that wc was not modified. */
15460 if (wc != (wchar_t) 0xBADFACE)
15461 return 1;
15463 return 0;
15465 _ACEOF
15466 if ac_fn_c_try_run "$LINENO"; then :
15467 gl_cv_func_mbrtowc_null_arg=yes
15468 else
15469 gl_cv_func_mbrtowc_null_arg=no
15471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15472 conftest.$ac_objext conftest.beam conftest.$ac_ext
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15479 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15486 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15487 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15491 case "$host_os" in
15492 # Guess no on HP-UX and Solaris.
15493 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15494 # Guess yes otherwise.
15495 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15496 esac
15497 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15498 if test "$cross_compiling" = yes; then :
15500 else
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15504 #include <locale.h>
15505 #include <string.h>
15506 #include <wchar.h>
15507 int main ()
15509 /* This fails on Solaris. */
15510 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15512 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15513 mbstate_t state;
15514 wchar_t wc;
15516 memset (&state, '\0', sizeof (mbstate_t));
15517 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15519 input[1] = '\0';
15520 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15521 return 1;
15524 /* This fails on HP-UX 11.11. */
15525 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15527 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15528 mbstate_t state;
15529 wchar_t wc;
15531 memset (&state, '\0', sizeof (mbstate_t));
15532 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15534 input[1] = '\0';
15535 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15536 return 1;
15539 return 0;
15541 _ACEOF
15542 if ac_fn_c_try_run "$LINENO"; then :
15543 gl_cv_func_mbrtowc_retval=yes
15544 else
15545 gl_cv_func_mbrtowc_retval=no
15547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15548 conftest.$ac_objext conftest.beam conftest.$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15555 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15561 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15562 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15566 case "$host_os" in
15567 # Guess no on Solaris 8 and 9.
15568 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15569 # Guess yes otherwise.
15570 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15571 esac
15572 if test $LOCALE_ZH_CN != none; then
15573 if test "$cross_compiling" = yes; then :
15575 else
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15579 #include <locale.h>
15580 #include <string.h>
15581 #include <wchar.h>
15582 int main ()
15584 /* This fails on Solaris 8 and 9. */
15585 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15587 mbstate_t state;
15588 wchar_t wc;
15590 memset (&state, '\0', sizeof (mbstate_t));
15591 if (mbrtowc (&wc, "", 1, &state) != 0)
15592 return 1;
15594 return 0;
15596 _ACEOF
15597 if ac_fn_c_try_run "$LINENO"; then :
15598 gl_cv_func_mbrtowc_nul_retval=yes
15599 else
15600 gl_cv_func_mbrtowc_nul_retval=no
15602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15603 conftest.$ac_objext conftest.beam conftest.$ac_ext
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15610 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15612 case "$gl_cv_func_mbrtowc_null_arg" in
15613 *yes) ;;
15615 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15617 REPLACE_MBRTOWC=1
15619 esac
15620 case "$gl_cv_func_mbrtowc_retval" in
15621 *yes) ;;
15623 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15625 REPLACE_MBRTOWC=1
15627 esac
15628 case "$gl_cv_func_mbrtowc_nul_retval" in
15629 *yes) ;;
15631 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15633 REPLACE_MBRTOWC=1
15635 esac
15638 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15650 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15660 GNULIB_MBRTOWC=1
15664 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15668 # Code from module mbsinit:
15679 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15684 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15685 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15689 case "$host_os" in
15690 # Guess no on AIX and OSF/1.
15691 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15692 # Guess yes otherwise.
15693 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15694 esac
15695 if test $LOCALE_JA != none; then
15696 if test "$cross_compiling" = yes; then :
15698 else
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15702 #include <locale.h>
15703 #include <string.h>
15704 #include <wchar.h>
15705 int main ()
15707 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15709 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15710 mbstate_t state;
15711 wchar_t wc;
15713 memset (&state, '\0', sizeof (mbstate_t));
15714 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15715 if (mbsinit (&state))
15716 return 1;
15718 return 0;
15720 _ACEOF
15721 if ac_fn_c_try_run "$LINENO"; then :
15722 gl_cv_func_mbrtowc_incomplete_state=yes
15723 else
15724 gl_cv_func_mbrtowc_incomplete_state=no
15726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15727 conftest.$ac_objext conftest.beam conftest.$ac_ext
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15734 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15740 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15741 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15745 case "$host_os" in
15746 # Guess no on Solaris 8.
15747 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15748 # Guess yes otherwise.
15749 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15750 esac
15751 if test $LOCALE_ZH_CN != none; then
15752 if test "$cross_compiling" = yes; then :
15754 else
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15758 #include <locale.h>
15759 #include <stdlib.h>
15760 #include <string.h>
15761 #include <wchar.h>
15762 int main ()
15764 /* This fails on Solaris 8:
15765 mbrtowc returns 2, and sets wc to 0x00F0.
15766 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15767 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15769 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15770 mbstate_t state;
15771 wchar_t wc;
15773 memset (&state, '\0', sizeof (mbstate_t));
15774 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15775 && mbtowc (&wc, input + 3, 6) == 4)
15776 return 1;
15778 return 0;
15780 _ACEOF
15781 if ac_fn_c_try_run "$LINENO"; then :
15782 gl_cv_func_mbrtowc_sanitycheck=yes
15783 else
15784 gl_cv_func_mbrtowc_sanitycheck=no
15786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15787 conftest.$ac_objext conftest.beam conftest.$ac_ext
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15794 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15796 REPLACE_MBSTATE_T=0
15797 case "$gl_cv_func_mbrtowc_incomplete_state" in
15798 *yes) ;;
15799 *) REPLACE_MBSTATE_T=1 ;;
15800 esac
15801 case "$gl_cv_func_mbrtowc_sanitycheck" in
15802 *yes) ;;
15803 *) REPLACE_MBSTATE_T=1 ;;
15804 esac
15805 else
15806 REPLACE_MBSTATE_T=1
15808 if test $REPLACE_MBSTATE_T = 1; then
15816 if test $ac_cv_func_mbsinit = no; then
15817 HAVE_MBSINIT=0
15818 else
15819 if test $REPLACE_MBSTATE_T = 1; then
15820 REPLACE_MBSINIT=1
15823 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15835 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15845 GNULIB_MBSINIT=1
15849 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15853 # Code from module mbsrtowcs:
15864 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15869 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15870 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872 else
15874 case "$host_os" in
15875 # Guess no on AIX and OSF/1.
15876 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15877 # Guess yes otherwise.
15878 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15879 esac
15880 if test $LOCALE_JA != none; then
15881 if test "$cross_compiling" = yes; then :
15883 else
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15887 #include <locale.h>
15888 #include <string.h>
15889 #include <wchar.h>
15890 int main ()
15892 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15894 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15895 mbstate_t state;
15896 wchar_t wc;
15898 memset (&state, '\0', sizeof (mbstate_t));
15899 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15900 if (mbsinit (&state))
15901 return 1;
15903 return 0;
15905 _ACEOF
15906 if ac_fn_c_try_run "$LINENO"; then :
15907 gl_cv_func_mbrtowc_incomplete_state=yes
15908 else
15909 gl_cv_func_mbrtowc_incomplete_state=no
15911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15912 conftest.$ac_objext conftest.beam conftest.$ac_ext
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15919 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15925 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15926 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15927 $as_echo_n "(cached) " >&6
15928 else
15930 case "$host_os" in
15931 # Guess no on Solaris 8.
15932 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15933 # Guess yes otherwise.
15934 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15935 esac
15936 if test $LOCALE_ZH_CN != none; then
15937 if test "$cross_compiling" = yes; then :
15939 else
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15943 #include <locale.h>
15944 #include <stdlib.h>
15945 #include <string.h>
15946 #include <wchar.h>
15947 int main ()
15949 /* This fails on Solaris 8:
15950 mbrtowc returns 2, and sets wc to 0x00F0.
15951 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15952 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15954 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15955 mbstate_t state;
15956 wchar_t wc;
15958 memset (&state, '\0', sizeof (mbstate_t));
15959 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15960 && mbtowc (&wc, input + 3, 6) == 4)
15961 return 1;
15963 return 0;
15965 _ACEOF
15966 if ac_fn_c_try_run "$LINENO"; then :
15967 gl_cv_func_mbrtowc_sanitycheck=yes
15968 else
15969 gl_cv_func_mbrtowc_sanitycheck=no
15971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15972 conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15979 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15981 REPLACE_MBSTATE_T=0
15982 case "$gl_cv_func_mbrtowc_incomplete_state" in
15983 *yes) ;;
15984 *) REPLACE_MBSTATE_T=1 ;;
15985 esac
15986 case "$gl_cv_func_mbrtowc_sanitycheck" in
15987 *yes) ;;
15988 *) REPLACE_MBSTATE_T=1 ;;
15989 esac
15990 else
15991 REPLACE_MBSTATE_T=1
15993 if test $REPLACE_MBSTATE_T = 1; then
16001 if test $ac_cv_func_mbsrtowcs = no; then
16002 HAVE_MBSRTOWCS=0
16003 else
16004 if test $REPLACE_MBSTATE_T = 1; then
16005 REPLACE_MBSRTOWCS=1
16006 else
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16013 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16014 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16018 case "$host_os" in
16019 # Guess no on HP-UX and Solaris.
16020 hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
16021 # Guess yes otherwise.
16022 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
16023 esac
16024 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
16025 if test "$cross_compiling" = yes; then :
16027 else
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16031 #include <locale.h>
16032 #include <string.h>
16033 #include <wchar.h>
16034 int main ()
16036 /* Test whether the function works when started with a conversion state
16037 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16038 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16040 const char input[] = "B\303\274\303\237er";
16041 mbstate_t state;
16043 memset (&state, '\0', sizeof (mbstate_t));
16044 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16045 if (!mbsinit (&state))
16047 const char *src = input + 2;
16048 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16049 return 1;
16052 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16054 const char input[] = "<\306\374\313\334\270\354>";
16055 mbstate_t state;
16057 memset (&state, '\0', sizeof (mbstate_t));
16058 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16059 if (!mbsinit (&state))
16061 const char *src = input + 4;
16062 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16063 return 1;
16066 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16068 const char input[] = "B\250\271\201\060\211\070er";
16069 mbstate_t state;
16071 memset (&state, '\0', sizeof (mbstate_t));
16072 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16073 if (!mbsinit (&state))
16075 const char *src = input + 2;
16076 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16077 return 1;
16080 return 0;
16082 _ACEOF
16083 if ac_fn_c_try_run "$LINENO"; then :
16084 gl_cv_func_mbsrtowcs_works=yes
16085 else
16086 gl_cv_func_mbsrtowcs_works=no
16088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16089 conftest.$ac_objext conftest.beam conftest.$ac_ext
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16096 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16098 case "$gl_cv_func_mbsrtowcs_works" in
16099 *yes) ;;
16100 *) REPLACE_MBSRTOWCS=1 ;;
16101 esac
16104 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16116 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16126 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16136 GNULIB_MBSRTOWCS=1
16140 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16144 # Code from module memchr:
16149 GNULIB_MEMCHR=1
16153 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16157 # Code from module mempcpy:
16172 for ac_func in mempcpy
16173 do :
16174 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
16175 if test "x$ac_cv_func_mempcpy" = xyes; then :
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_MEMPCPY 1
16178 _ACEOF
16180 else
16182 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16185 done
16188 if test $ac_cv_func_mempcpy = no; then
16189 HAVE_MEMPCPY=0
16198 GNULIB_MEMPCPY=1
16202 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
16206 # Code from module multiarch:
16208 # Code from module nl_langinfo:
16213 if test $ac_cv_func_nl_langinfo = yes; then
16214 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16216 else
16217 REPLACE_NL_LANGINFO=1
16219 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16229 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16232 else
16233 HAVE_NL_LANGINFO=0
16242 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16249 GNULIB_NL_LANGINFO=1
16253 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16257 # Code from module progname:
16258 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16260 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
16261 ac_have_decl=1
16262 else
16263 ac_have_decl=0
16266 cat >>confdefs.h <<_ACEOF
16267 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16268 _ACEOF
16270 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16272 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
16273 ac_have_decl=1
16274 else
16275 ac_have_decl=0
16278 cat >>confdefs.h <<_ACEOF
16279 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16280 _ACEOF
16282 # Code from module rawmemchr:
16295 for ac_func in rawmemchr
16296 do :
16297 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16298 if test "x$ac_cv_func_rawmemchr" = xyes; then :
16299 cat >>confdefs.h <<_ACEOF
16300 #define HAVE_RAWMEMCHR 1
16301 _ACEOF
16303 else
16305 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16308 done
16311 if test $ac_cv_func_rawmemchr = no; then
16312 HAVE_RAWMEMCHR=0
16319 GNULIB_RAWMEMCHR=1
16323 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16327 # Code from module realloc-posix:
16331 if test $gl_cv_func_malloc_posix = yes; then
16333 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
16335 else
16345 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16347 REPLACE_REALLOC=1
16354 GNULIB_REALLOC_POSIX=1
16358 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
16362 # Code from module regex:
16367 # Check whether --with-included-regex was given.
16368 if test "${with_included_regex+set}" = set; then :
16369 withval=$with_included_regex;
16373 case $with_included_regex in #(
16374 yes|no) ac_use_included_regex=$with_included_regex
16377 # If the system regex support is good enough that it passes the
16378 # following run test, then default to *not* using the included regex.c.
16379 # If cross compiling, assume the test would fail and use the included
16380 # regex.c.
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16382 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16383 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 if test "$cross_compiling" = yes; then :
16387 gl_cv_func_re_compile_pattern_working=no
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 $ac_includes_default
16392 #if HAVE_LOCALE_H
16393 #include <locale.h>
16394 #endif
16395 #include <limits.h>
16396 #include <regex.h>
16399 main (void)
16401 static struct re_pattern_buffer regex;
16402 unsigned char folded_chars[UCHAR_MAX + 1];
16403 int i;
16404 const char *s;
16405 struct re_registers regs;
16407 #if HAVE_LOCALE_H
16408 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16409 This test needs valgrind to catch the bug on Debian
16410 GNU/Linux 3.1 x86, but it might catch the bug better
16411 on other platforms and it shouldn't hurt to try the
16412 test here. */
16413 if (setlocale (LC_ALL, "en_US.UTF-8"))
16415 static char const pat[] = "insert into";
16416 static char const data[] =
16417 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16418 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16419 | RE_ICASE);
16420 memset (&regex, 0, sizeof regex);
16421 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
16422 if (s)
16423 return 1;
16424 if (re_search (&regex, data, sizeof data - 1,
16425 0, sizeof data - 1, &regs)
16426 != -1)
16427 return 1;
16428 if (! setlocale (LC_ALL, "C"))
16429 return 1;
16431 #endif
16433 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
16434 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16435 memset (&regex, 0, sizeof regex);
16436 s = re_compile_pattern ("a[^x]b", 6, &regex);
16437 if (s)
16438 return 1;
16440 /* This should fail, but succeeds for glibc-2.5. */
16441 if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
16442 return 1;
16444 /* This regular expression is from Spencer ere test number 75
16445 in grep-2.3. */
16446 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16447 memset (&regex, 0, sizeof regex);
16448 for (i = 0; i <= UCHAR_MAX; i++)
16449 folded_chars[i] = i;
16450 regex.translate = folded_chars;
16451 s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
16452 /* This should fail with _Invalid character class name_ error. */
16453 if (!s)
16454 return 1;
16456 /* Ensure that [b-a] is diagnosed as invalid, when
16457 using RE_NO_EMPTY_RANGES. */
16458 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16459 memset (&regex, 0, sizeof regex);
16460 s = re_compile_pattern ("a[b-a]", 6, &regex);
16461 if (s == 0)
16462 return 1;
16464 /* This should succeed, but does not for glibc-2.1.3. */
16465 memset (&regex, 0, sizeof regex);
16466 s = re_compile_pattern ("{1", 2, &regex);
16468 if (s)
16469 return 1;
16471 /* The following example is derived from a problem report
16472 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16473 memset (&regex, 0, sizeof regex);
16474 s = re_compile_pattern ("[an\371]*n", 7, &regex);
16475 if (s)
16476 return 1;
16478 /* This should match, but does not for glibc-2.2.1. */
16479 if (re_match (&regex, "an", 2, 0, &regs) != 2)
16480 return 1;
16482 memset (&regex, 0, sizeof regex);
16483 s = re_compile_pattern ("x", 1, &regex);
16484 if (s)
16485 return 1;
16487 /* glibc-2.2.93 does not work with a negative RANGE argument. */
16488 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
16489 return 1;
16491 /* The version of regex.c in older versions of gnulib
16492 ignored RE_ICASE. Detect that problem too. */
16493 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16494 memset (&regex, 0, sizeof regex);
16495 s = re_compile_pattern ("x", 1, &regex);
16496 if (s)
16497 return 1;
16499 if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
16500 return 1;
16502 /* Catch a bug reported by Vin Shelton in
16503 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16505 re_set_syntax (RE_SYNTAX_POSIX_BASIC
16506 & ~RE_CONTEXT_INVALID_DUP
16507 & ~RE_NO_EMPTY_RANGES);
16508 memset (&regex, 0, sizeof regex);
16509 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
16510 if (s)
16511 return 1;
16513 /* REG_STARTEND was added to glibc on 2004-01-15.
16514 Reject older versions. */
16515 if (! REG_STARTEND)
16516 return 1;
16518 #if 0
16519 /* It would be nice to reject hosts whose regoff_t values are too
16520 narrow (including glibc on hosts with 64-bit ptrdiff_t and
16521 32-bit int), but we should wait until glibc implements this
16522 feature. Otherwise, support for equivalence classes and
16523 multibyte collation symbols would always be broken except
16524 when compiling --without-included-regex. */
16525 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16526 || sizeof (regoff_t) < sizeof (ssize_t))
16527 return 1;
16528 #endif
16530 return 0;
16532 return 0;
16534 _ACEOF
16535 if ac_fn_c_try_run "$LINENO"; then :
16536 gl_cv_func_re_compile_pattern_working=yes
16537 else
16538 gl_cv_func_re_compile_pattern_working=no
16540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16541 conftest.$ac_objext conftest.beam conftest.$ac_ext
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16546 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16547 case $gl_cv_func_re_compile_pattern_working in #(
16548 yes) ac_use_included_regex=no;; #(
16549 no) ac_use_included_regex=yes;;
16550 esac
16552 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16554 esac
16556 if test $ac_use_included_regex = yes; then
16558 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16561 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16564 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16567 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16570 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16573 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16576 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16579 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16582 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16585 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16588 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16591 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16594 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16597 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16600 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16603 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16613 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16620 for ac_header in libintl.h
16621 do :
16622 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16623 if test "x$ac_cv_header_libintl_h" = xyes; then :
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_LIBINTL_H 1
16626 _ACEOF
16630 done
16633 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16635 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16636 ac_have_decl=1
16637 else
16638 ac_have_decl=0
16641 cat >>confdefs.h <<_ACEOF
16642 #define HAVE_DECL_ISBLANK $ac_have_decl
16643 _ACEOF
16648 # Code from module size_max:
16650 for ac_header in stdint.h
16651 do :
16652 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16653 if test "x$ac_cv_header_stdint_h" = xyes; then :
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_STDINT_H 1
16656 _ACEOF
16660 done
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16663 $as_echo_n "checking for SIZE_MAX... " >&6; }
16664 if ${gl_cv_size_max+:} false; then :
16665 $as_echo_n "(cached) " >&6
16666 else
16668 gl_cv_size_max=
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16672 #include <limits.h>
16673 #if HAVE_STDINT_H
16674 #include <stdint.h>
16675 #endif
16676 #ifdef SIZE_MAX
16677 Found it
16678 #endif
16680 _ACEOF
16681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16682 $EGREP "Found it" >/dev/null 2>&1; then :
16683 gl_cv_size_max=yes
16685 rm -f conftest*
16687 if test -z "$gl_cv_size_max"; then
16688 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16689 #include <limits.h>"; then :
16691 else
16692 size_t_bits_minus_1=
16695 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16697 else
16698 fits_in_uint=
16701 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16702 if test $fits_in_uint = 1; then
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16705 #include <stddef.h>
16706 extern size_t foo;
16707 extern unsigned long foo;
16710 main (void)
16714 return 0;
16716 _ACEOF
16717 if ac_fn_c_try_compile "$LINENO"; then :
16718 fits_in_uint=0
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 if test $fits_in_uint = 1; then
16723 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16724 else
16725 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16727 else
16728 gl_cv_size_max='((size_t)~(size_t)0)'
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
16734 $as_echo "$gl_cv_size_max" >&6; }
16735 if test "$gl_cv_size_max" != yes; then
16737 cat >>confdefs.h <<_ACEOF
16738 #define SIZE_MAX $gl_cv_size_max
16739 _ACEOF
16744 # Code from module sleep:
16747 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
16749 if test "x$ac_cv_have_decl_sleep" = xyes; then :
16750 ac_have_decl=1
16751 else
16752 ac_have_decl=0
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_DECL_SLEEP $ac_have_decl
16757 _ACEOF
16760 if test $ac_cv_have_decl_sleep != yes; then
16761 HAVE_SLEEP=0
16770 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
16772 else
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
16774 $as_echo_n "checking for working sleep... " >&6; }
16775 if ${gl_cv_func_sleep_works+:} false; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 if test "$cross_compiling" = yes; then :
16779 gl_cv_func_sleep_works="guessing no"
16780 else
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16784 #include <errno.h>
16785 #include <unistd.h>
16786 #include <signal.h>
16787 static void
16788 handle_alarm (int sig)
16790 if (sig != SIGALRM)
16791 _exit (2);
16795 main (void)
16798 /* Failure to compile this test due to missing alarm is okay,
16799 since all such platforms (mingw) also lack sleep. */
16800 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
16801 unsigned int remaining;
16802 signal (SIGALRM, handle_alarm);
16803 alarm (1);
16804 remaining = sleep (pentecost);
16805 return !(pentecost - 10 < remaining && remaining <= pentecost);
16807 return 0;
16809 _ACEOF
16810 if ac_fn_c_try_run "$LINENO"; then :
16811 gl_cv_func_sleep_works=yes
16812 else
16813 gl_cv_func_sleep_works=no
16815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16816 conftest.$ac_objext conftest.beam conftest.$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
16821 $as_echo "$gl_cv_func_sleep_works" >&6; }
16822 if test "$gl_cv_func_sleep_works" != yes; then
16823 REPLACE_SLEEP=1
16832 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
16840 GNULIB_SLEEP=1
16844 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
16848 # Code from module ssize_t:
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16851 $as_echo_n "checking for ssize_t... " >&6; }
16852 if ${gt_cv_ssize_t+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16859 main (void)
16861 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16862 return !x;
16864 return 0;
16866 _ACEOF
16867 if ac_fn_c_try_compile "$LINENO"; then :
16868 gt_cv_ssize_t=yes
16869 else
16870 gt_cv_ssize_t=no
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16875 $as_echo "$gt_cv_ssize_t" >&6; }
16876 if test $gt_cv_ssize_t = no; then
16878 $as_echo "#define ssize_t int" >>confdefs.h
16882 # Code from module stdbool:
16886 # Define two additional variables used in the Makefile substitution.
16888 if test "$ac_cv_header_stdbool_h" = yes; then
16889 STDBOOL_H=''
16890 else
16891 STDBOOL_H='stdbool.h'
16895 if test "$ac_cv_type__Bool" = yes; then
16896 HAVE__BOOL=1
16897 else
16898 HAVE__BOOL=0
16902 # Code from module stddef:
16906 if test $gt_cv_c_wchar_t = no; then
16907 HAVE_WCHAR_T=0
16908 STDDEF_H=stddef.h
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16911 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16912 if ${gl_cv_decl_null_works+:} false; then :
16913 $as_echo_n "(cached) " >&6
16914 else
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 #include <stddef.h>
16918 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16921 main (void)
16925 return 0;
16927 _ACEOF
16928 if ac_fn_c_try_compile "$LINENO"; then :
16929 gl_cv_decl_null_works=yes
16930 else
16931 gl_cv_decl_null_works=no
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16936 $as_echo "$gl_cv_decl_null_works" >&6; }
16937 if test $gl_cv_decl_null_works = no; then
16938 REPLACE_NULL=1
16939 STDDEF_H=stddef.h
16941 if test -n "$STDDEF_H"; then
16948 if test $gl_cv_have_include_next = yes; then
16949 gl_cv_next_stddef_h='<'stddef.h'>'
16950 else
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16952 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16953 if ${gl_cv_next_stddef_h+:} false; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16957 if test $ac_cv_header_stddef_h = yes; then
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 #include <stddef.h>
16962 _ACEOF
16963 case "$host_os" in
16964 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16965 *) gl_absname_cpp="$ac_cpp" ;;
16966 esac
16967 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16968 sed -n '\#/stddef.h#{
16969 s#.*"\(.*/stddef.h\)".*#\1#
16970 s#^/[^/]#//&#
16973 }'`'"'
16974 else
16975 gl_cv_next_stddef_h='<'stddef.h'>'
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16980 $as_echo "$gl_cv_next_stddef_h" >&6; }
16982 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16984 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16986 gl_next_as_first_directive='<'stddef.h'>'
16987 else
16988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16989 gl_next_as_first_directive=$gl_cv_next_stddef_h
16991 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16997 # Code from module stdint:
17001 if test $ac_cv_type_long_long_int = yes; then
17002 HAVE_LONG_LONG_INT=1
17003 else
17004 HAVE_LONG_LONG_INT=0
17008 if test $ac_cv_type_unsigned_long_long_int = yes; then
17009 HAVE_UNSIGNED_LONG_LONG_INT=1
17010 else
17011 HAVE_UNSIGNED_LONG_LONG_INT=0
17015 if test $ac_cv_header_inttypes_h = yes; then
17016 HAVE_INTTYPES_H=1
17017 else
17018 HAVE_INTTYPES_H=0
17022 if test $ac_cv_header_sys_types_h = yes; then
17023 HAVE_SYS_TYPES_H=1
17024 else
17025 HAVE_SYS_TYPES_H=0
17035 if test $gl_cv_have_include_next = yes; then
17036 gl_cv_next_stdint_h='<'stdint.h'>'
17037 else
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17039 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17040 if ${gl_cv_next_stdint_h+:} false; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17044 if test $ac_cv_header_stdint_h = yes; then
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 #include <stdint.h>
17049 _ACEOF
17050 case "$host_os" in
17051 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17052 *) gl_absname_cpp="$ac_cpp" ;;
17053 esac
17054 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17055 sed -n '\#/stdint.h#{
17056 s#.*"\(.*/stdint.h\)".*#\1#
17057 s#^/[^/]#//&#
17060 }'`'"'
17061 else
17062 gl_cv_next_stdint_h='<'stdint.h'>'
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17067 $as_echo "$gl_cv_next_stdint_h" >&6; }
17069 NEXT_STDINT_H=$gl_cv_next_stdint_h
17071 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17073 gl_next_as_first_directive='<'stdint.h'>'
17074 else
17075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17076 gl_next_as_first_directive=$gl_cv_next_stdint_h
17078 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17082 if test $ac_cv_header_stdint_h = yes; then
17083 HAVE_STDINT_H=1
17084 else
17085 HAVE_STDINT_H=0
17089 if test $ac_cv_header_stdint_h = yes; then
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17091 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17092 if ${gl_cv_header_working_stdint_h+:} false; then :
17093 $as_echo_n "(cached) " >&6
17094 else
17095 gl_cv_header_working_stdint_h=no
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17100 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17101 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17102 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17103 #include <stdint.h>
17104 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17105 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17106 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17107 #endif
17110 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17111 included before <wchar.h>. */
17112 #include <stddef.h>
17113 #include <signal.h>
17114 #if HAVE_WCHAR_H
17115 # include <stdio.h>
17116 # include <time.h>
17117 # include <wchar.h>
17118 #endif
17121 #ifdef INT8_MAX
17122 int8_t a1 = INT8_MAX;
17123 int8_t a1min = INT8_MIN;
17124 #endif
17125 #ifdef INT16_MAX
17126 int16_t a2 = INT16_MAX;
17127 int16_t a2min = INT16_MIN;
17128 #endif
17129 #ifdef INT32_MAX
17130 int32_t a3 = INT32_MAX;
17131 int32_t a3min = INT32_MIN;
17132 #endif
17133 #ifdef INT64_MAX
17134 int64_t a4 = INT64_MAX;
17135 int64_t a4min = INT64_MIN;
17136 #endif
17137 #ifdef UINT8_MAX
17138 uint8_t b1 = UINT8_MAX;
17139 #else
17140 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17141 #endif
17142 #ifdef UINT16_MAX
17143 uint16_t b2 = UINT16_MAX;
17144 #endif
17145 #ifdef UINT32_MAX
17146 uint32_t b3 = UINT32_MAX;
17147 #endif
17148 #ifdef UINT64_MAX
17149 uint64_t b4 = UINT64_MAX;
17150 #endif
17151 int_least8_t c1 = INT8_C (0x7f);
17152 int_least8_t c1max = INT_LEAST8_MAX;
17153 int_least8_t c1min = INT_LEAST8_MIN;
17154 int_least16_t c2 = INT16_C (0x7fff);
17155 int_least16_t c2max = INT_LEAST16_MAX;
17156 int_least16_t c2min = INT_LEAST16_MIN;
17157 int_least32_t c3 = INT32_C (0x7fffffff);
17158 int_least32_t c3max = INT_LEAST32_MAX;
17159 int_least32_t c3min = INT_LEAST32_MIN;
17160 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17161 int_least64_t c4max = INT_LEAST64_MAX;
17162 int_least64_t c4min = INT_LEAST64_MIN;
17163 uint_least8_t d1 = UINT8_C (0xff);
17164 uint_least8_t d1max = UINT_LEAST8_MAX;
17165 uint_least16_t d2 = UINT16_C (0xffff);
17166 uint_least16_t d2max = UINT_LEAST16_MAX;
17167 uint_least32_t d3 = UINT32_C (0xffffffff);
17168 uint_least32_t d3max = UINT_LEAST32_MAX;
17169 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17170 uint_least64_t d4max = UINT_LEAST64_MAX;
17171 int_fast8_t e1 = INT_FAST8_MAX;
17172 int_fast8_t e1min = INT_FAST8_MIN;
17173 int_fast16_t e2 = INT_FAST16_MAX;
17174 int_fast16_t e2min = INT_FAST16_MIN;
17175 int_fast32_t e3 = INT_FAST32_MAX;
17176 int_fast32_t e3min = INT_FAST32_MIN;
17177 int_fast64_t e4 = INT_FAST64_MAX;
17178 int_fast64_t e4min = INT_FAST64_MIN;
17179 uint_fast8_t f1 = UINT_FAST8_MAX;
17180 uint_fast16_t f2 = UINT_FAST16_MAX;
17181 uint_fast32_t f3 = UINT_FAST32_MAX;
17182 uint_fast64_t f4 = UINT_FAST64_MAX;
17183 #ifdef INTPTR_MAX
17184 intptr_t g = INTPTR_MAX;
17185 intptr_t gmin = INTPTR_MIN;
17186 #endif
17187 #ifdef UINTPTR_MAX
17188 uintptr_t h = UINTPTR_MAX;
17189 #endif
17190 intmax_t i = INTMAX_MAX;
17191 uintmax_t j = UINTMAX_MAX;
17193 #include <limits.h> /* for CHAR_BIT */
17194 #define TYPE_MINIMUM(t) \
17195 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17196 #define TYPE_MAXIMUM(t) \
17197 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17198 struct s {
17199 int check_PTRDIFF:
17200 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17201 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17202 ? 1 : -1;
17203 /* Detect bug in FreeBSD 6.0 / ia64. */
17204 int check_SIG_ATOMIC:
17205 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17206 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17207 ? 1 : -1;
17208 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17209 int check_WCHAR:
17210 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17211 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17212 ? 1 : -1;
17213 /* Detect bug in mingw. */
17214 int check_WINT:
17215 WINT_MIN == TYPE_MINIMUM (wint_t)
17216 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17217 ? 1 : -1;
17219 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17220 int check_UINT8_C:
17221 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17222 int check_UINT16_C:
17223 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17225 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17226 #ifdef UINT8_MAX
17227 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17228 #endif
17229 #ifdef UINT16_MAX
17230 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17231 #endif
17232 #ifdef UINT32_MAX
17233 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17234 #endif
17235 #ifdef UINT64_MAX
17236 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17237 #endif
17238 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17239 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17240 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17241 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17242 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17243 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17244 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17245 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17246 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17247 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17248 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17252 main (void)
17256 return 0;
17258 _ACEOF
17259 if ac_fn_c_try_compile "$LINENO"; then :
17260 if test "$cross_compiling" = yes; then :
17261 gl_cv_header_working_stdint_h=yes
17263 else
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17268 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17269 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17270 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17271 #include <stdint.h>
17274 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17275 included before <wchar.h>. */
17276 #include <stddef.h>
17277 #include <signal.h>
17278 #if HAVE_WCHAR_H
17279 # include <stdio.h>
17280 # include <time.h>
17281 # include <wchar.h>
17282 #endif
17285 #include <stdio.h>
17286 #include <string.h>
17287 #define MVAL(macro) MVAL1(macro)
17288 #define MVAL1(expression) #expression
17289 static const char *macro_values[] =
17291 #ifdef INT8_MAX
17292 MVAL (INT8_MAX),
17293 #endif
17294 #ifdef INT16_MAX
17295 MVAL (INT16_MAX),
17296 #endif
17297 #ifdef INT32_MAX
17298 MVAL (INT32_MAX),
17299 #endif
17300 #ifdef INT64_MAX
17301 MVAL (INT64_MAX),
17302 #endif
17303 #ifdef UINT8_MAX
17304 MVAL (UINT8_MAX),
17305 #endif
17306 #ifdef UINT16_MAX
17307 MVAL (UINT16_MAX),
17308 #endif
17309 #ifdef UINT32_MAX
17310 MVAL (UINT32_MAX),
17311 #endif
17312 #ifdef UINT64_MAX
17313 MVAL (UINT64_MAX),
17314 #endif
17315 NULL
17319 main (void)
17322 const char **mv;
17323 for (mv = macro_values; *mv != NULL; mv++)
17325 const char *value = *mv;
17326 /* Test whether it looks like a cast expression. */
17327 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17328 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17329 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17330 || strncmp (value, "((int)"/*)*/, 6) == 0
17331 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17332 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17333 return 1;
17335 return 0;
17338 return 0;
17340 _ACEOF
17341 if ac_fn_c_try_run "$LINENO"; then :
17342 gl_cv_header_working_stdint_h=yes
17344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17345 conftest.$ac_objext conftest.beam conftest.$ac_ext
17350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17354 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17356 if test "$gl_cv_header_working_stdint_h" = yes; then
17357 STDINT_H=
17358 else
17359 for ac_header in sys/inttypes.h sys/bitypes.h
17360 do :
17361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17362 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17364 cat >>confdefs.h <<_ACEOF
17365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17366 _ACEOF
17370 done
17372 if test $ac_cv_header_sys_inttypes_h = yes; then
17373 HAVE_SYS_INTTYPES_H=1
17374 else
17375 HAVE_SYS_INTTYPES_H=0
17378 if test $ac_cv_header_sys_bitypes_h = yes; then
17379 HAVE_SYS_BITYPES_H=1
17380 else
17381 HAVE_SYS_BITYPES_H=0
17389 if test $APPLE_UNIVERSAL_BUILD = 0; then
17392 for gltype in ptrdiff_t size_t ; do
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17394 $as_echo_n "checking for bit size of $gltype... " >&6; }
17395 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17396 $as_echo_n "(cached) " >&6
17397 else
17398 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17399 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17400 included before <wchar.h>. */
17401 #include <stddef.h>
17402 #include <signal.h>
17403 #if HAVE_WCHAR_H
17404 # include <stdio.h>
17405 # include <time.h>
17406 # include <wchar.h>
17407 #endif
17409 #include <limits.h>"; then :
17411 else
17412 result=unknown
17415 eval gl_cv_bitsizeof_${gltype}=\$result
17418 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17420 $as_echo "$ac_res" >&6; }
17421 eval result=\$gl_cv_bitsizeof_${gltype}
17422 if test $result = unknown; then
17423 result=0
17425 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17426 cat >>confdefs.h <<_ACEOF
17427 #define BITSIZEOF_${GLTYPE} $result
17428 _ACEOF
17430 eval BITSIZEOF_${GLTYPE}=\$result
17431 done
17437 for gltype in sig_atomic_t wchar_t wint_t ; do
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17439 $as_echo_n "checking for bit size of $gltype... " >&6; }
17440 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17444 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17445 included before <wchar.h>. */
17446 #include <stddef.h>
17447 #include <signal.h>
17448 #if HAVE_WCHAR_H
17449 # include <stdio.h>
17450 # include <time.h>
17451 # include <wchar.h>
17452 #endif
17454 #include <limits.h>"; then :
17456 else
17457 result=unknown
17460 eval gl_cv_bitsizeof_${gltype}=\$result
17463 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17465 $as_echo "$ac_res" >&6; }
17466 eval result=\$gl_cv_bitsizeof_${gltype}
17467 if test $result = unknown; then
17468 result=0
17470 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17471 cat >>confdefs.h <<_ACEOF
17472 #define BITSIZEOF_${GLTYPE} $result
17473 _ACEOF
17475 eval BITSIZEOF_${GLTYPE}=\$result
17476 done
17481 for gltype in sig_atomic_t wchar_t wint_t ; do
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17483 $as_echo_n "checking whether $gltype is signed... " >&6; }
17484 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17490 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17491 included before <wchar.h>. */
17492 #include <stddef.h>
17493 #include <signal.h>
17494 #if HAVE_WCHAR_H
17495 # include <stdio.h>
17496 # include <time.h>
17497 # include <wchar.h>
17498 #endif
17500 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17502 main (void)
17506 return 0;
17508 _ACEOF
17509 if ac_fn_c_try_compile "$LINENO"; then :
17510 result=yes
17511 else
17512 result=no
17514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 eval gl_cv_type_${gltype}_signed=\$result
17518 eval ac_res=\$gl_cv_type_${gltype}_signed
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17520 $as_echo "$ac_res" >&6; }
17521 eval result=\$gl_cv_type_${gltype}_signed
17522 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17523 if test "$result" = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_SIGNED_${GLTYPE} 1
17526 _ACEOF
17528 eval HAVE_SIGNED_${GLTYPE}=1
17529 else
17530 eval HAVE_SIGNED_${GLTYPE}=0
17532 done
17535 gl_cv_type_ptrdiff_t_signed=yes
17536 gl_cv_type_size_t_signed=no
17537 if test $APPLE_UNIVERSAL_BUILD = 0; then
17540 for gltype in ptrdiff_t size_t ; do
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17542 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17543 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17544 $as_echo_n "(cached) " >&6
17545 else
17546 eval gl_cv_type_${gltype}_suffix=no
17547 eval result=\$gl_cv_type_${gltype}_signed
17548 if test "$result" = yes; then
17549 glsufu=
17550 else
17551 glsufu=u
17553 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17554 case $glsuf in
17555 '') gltype1='int';;
17556 l) gltype1='long int';;
17557 ll) gltype1='long long int';;
17558 i64) gltype1='__int64';;
17559 u) gltype1='unsigned int';;
17560 ul) gltype1='unsigned long int';;
17561 ull) gltype1='unsigned long long int';;
17562 ui64)gltype1='unsigned __int64';;
17563 esac
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17568 included before <wchar.h>. */
17569 #include <stddef.h>
17570 #include <signal.h>
17571 #if HAVE_WCHAR_H
17572 # include <stdio.h>
17573 # include <time.h>
17574 # include <wchar.h>
17575 #endif
17577 extern $gltype foo;
17578 extern $gltype1 foo;
17580 main (void)
17584 return 0;
17586 _ACEOF
17587 if ac_fn_c_try_compile "$LINENO"; then :
17588 eval gl_cv_type_${gltype}_suffix=\$glsuf
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 eval result=\$gl_cv_type_${gltype}_suffix
17592 test "$result" != no && break
17593 done
17595 eval ac_res=\$gl_cv_type_${gltype}_suffix
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17597 $as_echo "$ac_res" >&6; }
17598 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17599 eval result=\$gl_cv_type_${gltype}_suffix
17600 test "$result" = no && result=
17601 eval ${GLTYPE}_SUFFIX=\$result
17602 cat >>confdefs.h <<_ACEOF
17603 #define ${GLTYPE}_SUFFIX $result
17604 _ACEOF
17606 done
17612 for gltype in sig_atomic_t wchar_t wint_t ; do
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17614 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17615 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17616 $as_echo_n "(cached) " >&6
17617 else
17618 eval gl_cv_type_${gltype}_suffix=no
17619 eval result=\$gl_cv_type_${gltype}_signed
17620 if test "$result" = yes; then
17621 glsufu=
17622 else
17623 glsufu=u
17625 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17626 case $glsuf in
17627 '') gltype1='int';;
17628 l) gltype1='long int';;
17629 ll) gltype1='long long int';;
17630 i64) gltype1='__int64';;
17631 u) gltype1='unsigned int';;
17632 ul) gltype1='unsigned long int';;
17633 ull) gltype1='unsigned long long int';;
17634 ui64)gltype1='unsigned __int64';;
17635 esac
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17640 included before <wchar.h>. */
17641 #include <stddef.h>
17642 #include <signal.h>
17643 #if HAVE_WCHAR_H
17644 # include <stdio.h>
17645 # include <time.h>
17646 # include <wchar.h>
17647 #endif
17649 extern $gltype foo;
17650 extern $gltype1 foo;
17652 main (void)
17656 return 0;
17658 _ACEOF
17659 if ac_fn_c_try_compile "$LINENO"; then :
17660 eval gl_cv_type_${gltype}_suffix=\$glsuf
17662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663 eval result=\$gl_cv_type_${gltype}_suffix
17664 test "$result" != no && break
17665 done
17667 eval ac_res=\$gl_cv_type_${gltype}_suffix
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17669 $as_echo "$ac_res" >&6; }
17670 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17671 eval result=\$gl_cv_type_${gltype}_suffix
17672 test "$result" = no && result=
17673 eval ${GLTYPE}_SUFFIX=\$result
17674 cat >>confdefs.h <<_ACEOF
17675 #define ${GLTYPE}_SUFFIX $result
17676 _ACEOF
17678 done
17682 STDINT_H=stdint.h
17686 # Code from module stdio:
17697 if test $gl_cv_have_include_next = yes; then
17698 gl_cv_next_stdio_h='<'stdio.h'>'
17699 else
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17701 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17702 if ${gl_cv_next_stdio_h+:} false; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17706 if test $ac_cv_header_stdio_h = yes; then
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <stdio.h>
17711 _ACEOF
17712 case "$host_os" in
17713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17714 *) gl_absname_cpp="$ac_cpp" ;;
17715 esac
17716 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17717 sed -n '\#/stdio.h#{
17718 s#.*"\(.*/stdio.h\)".*#\1#
17719 s#^/[^/]#//&#
17722 }'`'"'
17723 else
17724 gl_cv_next_stdio_h='<'stdio.h'>'
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17729 $as_echo "$gl_cv_next_stdio_h" >&6; }
17731 NEXT_STDIO_H=$gl_cv_next_stdio_h
17733 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17734 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17735 gl_next_as_first_directive='<'stdio.h'>'
17736 else
17737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17738 gl_next_as_first_directive=$gl_cv_next_stdio_h
17740 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17744 GNULIB_FPRINTF=1
17745 GNULIB_PRINTF=1
17746 GNULIB_VFPRINTF=1
17747 GNULIB_VPRINTF=1
17748 GNULIB_FPUTC=1
17749 GNULIB_PUTC=1
17750 GNULIB_PUTCHAR=1
17751 GNULIB_FPUTS=1
17752 GNULIB_PUTS=1
17753 GNULIB_FWRITE=1
17757 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
17758 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17761 if eval \${$as_gl_Symbol+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17766 #include <stdio.h>
17769 main (void)
17771 #undef $gl_func
17772 (void) $gl_func;
17774 return 0;
17776 _ACEOF
17777 if ac_fn_c_try_compile "$LINENO"; then :
17778 eval "$as_gl_Symbol=yes"
17779 else
17780 eval "$as_gl_Symbol=no"
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784 eval ac_res=\$$as_gl_Symbol
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17786 $as_echo "$ac_res" >&6; }
17787 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17788 cat >>confdefs.h <<_ACEOF
17789 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17790 _ACEOF
17792 eval ac_cv_have_decl_$gl_func=yes
17794 done
17797 # Code from module stdlib:
17806 if test $gl_cv_have_include_next = yes; then
17807 gl_cv_next_stdlib_h='<'stdlib.h'>'
17808 else
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17810 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17811 if ${gl_cv_next_stdlib_h+:} false; then :
17812 $as_echo_n "(cached) " >&6
17813 else
17815 if test $ac_cv_header_stdlib_h = yes; then
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818 #include <stdlib.h>
17820 _ACEOF
17821 case "$host_os" in
17822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17823 *) gl_absname_cpp="$ac_cpp" ;;
17824 esac
17825 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17826 sed -n '\#/stdlib.h#{
17827 s#.*"\(.*/stdlib.h\)".*#\1#
17828 s#^/[^/]#//&#
17831 }'`'"'
17832 else
17833 gl_cv_next_stdlib_h='<'stdlib.h'>'
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17838 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17840 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17844 gl_next_as_first_directive='<'stdlib.h'>'
17845 else
17846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17847 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17849 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17853 for ac_header in random.h
17854 do :
17855 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
17857 if test "x$ac_cv_header_random_h" = xyes; then :
17858 cat >>confdefs.h <<_ACEOF
17859 #define HAVE_RANDOM_H 1
17860 _ACEOF
17864 done
17866 if test $ac_cv_header_random_h = yes; then
17867 HAVE_RANDOM_H=1
17868 else
17869 HAVE_RANDOM_H=0
17872 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
17873 #if HAVE_RANDOM_H
17874 # include <random.h>
17875 #endif
17878 if test "x$ac_cv_type_struct_random_data" = xyes; then :
17880 cat >>confdefs.h <<_ACEOF
17881 #define HAVE_STRUCT_RANDOM_DATA 1
17882 _ACEOF
17885 else
17886 HAVE_STRUCT_RANDOM_DATA=0
17891 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
17892 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17894 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17895 if eval \${$as_gl_Symbol+:} false; then :
17896 $as_echo_n "(cached) " >&6
17897 else
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900 #include <stdlib.h>
17901 #if HAVE_SYS_LOADAVG_H
17902 # include <sys/loadavg.h>
17903 #endif
17904 #if HAVE_RANDOM_H
17905 # include <random.h>
17906 #endif
17909 main (void)
17911 #undef $gl_func
17912 (void) $gl_func;
17914 return 0;
17916 _ACEOF
17917 if ac_fn_c_try_compile "$LINENO"; then :
17918 eval "$as_gl_Symbol=yes"
17919 else
17920 eval "$as_gl_Symbol=no"
17922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 eval ac_res=\$$as_gl_Symbol
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17926 $as_echo "$ac_res" >&6; }
17927 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17928 cat >>confdefs.h <<_ACEOF
17929 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17930 _ACEOF
17932 eval ac_cv_have_decl_$gl_func=yes
17934 done
17937 # Code from module strcase:
17949 for ac_func in strcasecmp
17950 do :
17951 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17952 if test "x$ac_cv_func_strcasecmp" = xyes; then :
17953 cat >>confdefs.h <<_ACEOF
17954 #define HAVE_STRCASECMP 1
17955 _ACEOF
17957 else
17959 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17962 done
17965 if test $ac_cv_func_strcasecmp = no; then
17966 HAVE_STRCASECMP=0
17982 for ac_func in strncasecmp
17983 do :
17984 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
17985 if test "x$ac_cv_func_strncasecmp" = xyes; then :
17986 cat >>confdefs.h <<_ACEOF
17987 #define HAVE_STRNCASECMP 1
17988 _ACEOF
17990 else
17992 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17995 done
17998 if test $ac_cv_func_strncasecmp = no; then
18003 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
18004 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
18005 ac_have_decl=1
18006 else
18007 ac_have_decl=0
18010 cat >>confdefs.h <<_ACEOF
18011 #define HAVE_DECL_STRNCASECMP $ac_have_decl
18012 _ACEOF
18014 if test $ac_cv_have_decl_strncasecmp = no; then
18015 HAVE_DECL_STRNCASECMP=0
18019 # Code from module strchrnul:
18032 for ac_func in strchrnul
18033 do :
18034 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
18035 if test "x$ac_cv_func_strchrnul" = xyes; then :
18036 cat >>confdefs.h <<_ACEOF
18037 #define HAVE_STRCHRNUL 1
18038 _ACEOF
18040 else
18042 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18045 done
18048 if test $ac_cv_func_strchrnul = no; then
18049 HAVE_STRCHRNUL=0
18056 GNULIB_STRCHRNUL=1
18060 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
18064 # Code from module streq:
18065 # Code from module strerror:
18068 if test $REPLACE_STRERROR = 1; then
18077 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
18080 cat >>confdefs.h <<_ACEOF
18081 #define REPLACE_STRERROR $REPLACE_STRERROR
18082 _ACEOF
18089 GNULIB_STRERROR=1
18093 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
18097 # Code from module string:
18101 # Code from module strings:
18105 # Code from module strndup:
18112 if test $ac_cv_have_decl_strndup = no; then
18113 HAVE_DECL_STRNDUP=0
18116 if test $ac_cv_func_strndup = yes; then
18117 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
18119 $as_echo_n "checking for working strndup... " >&6; }
18120 if ${gl_cv_func_strndup_works+:} false; then :
18121 $as_echo_n "(cached) " >&6
18122 else
18123 if test "$cross_compiling" = yes; then :
18125 case $host_os in
18126 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
18127 *) gl_cv_func_strndup_works="guessing yes";;
18128 esac
18130 else
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18134 #include <string.h>
18135 #include <stdlib.h>
18137 main (void)
18140 #ifndef HAVE_DECL_STRNDUP
18141 extern char *strndup (const char *, size_t);
18142 #endif
18143 char *s;
18144 s = strndup ("some longer string", 15);
18145 free (s);
18146 s = strndup ("shorter string", 13);
18147 return s[13] != '\0';
18149 return 0;
18151 _ACEOF
18152 if ac_fn_c_try_run "$LINENO"; then :
18153 gl_cv_func_strndup_works=yes
18154 else
18155 gl_cv_func_strndup_works=no
18157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18158 conftest.$ac_objext conftest.beam conftest.$ac_ext
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
18163 $as_echo "$gl_cv_func_strndup_works" >&6; }
18164 case $gl_cv_func_strndup_works in
18165 *no)
18166 REPLACE_STRNDUP=1
18175 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
18178 esac
18179 else
18188 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
18195 GNULIB_STRNDUP=1
18199 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
18203 # Code from module strnlen:
18210 if test $ac_cv_have_decl_strnlen = no; then
18211 HAVE_DECL_STRNLEN=0
18212 else
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18214 $as_echo_n "checking for working strnlen... " >&6; }
18215 if ${ac_cv_func_strnlen_working+:} false; then :
18216 $as_echo_n "(cached) " >&6
18217 else
18218 if test "$cross_compiling" = yes; then :
18219 # Guess no on AIX systems, yes otherwise.
18220 case "$host_os" in
18221 aix*) ac_cv_func_strnlen_working=no;;
18222 *) ac_cv_func_strnlen_working=yes;;
18223 esac
18224 else
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 $ac_includes_default
18229 main (void)
18232 #define S "foobar"
18233 #define S_LEN (sizeof S - 1)
18235 /* At least one implementation is buggy: that of AIX 4.3 would
18236 give strnlen (S, 1) == 3. */
18238 int i;
18239 for (i = 0; i < S_LEN + 1; ++i)
18241 int expected = i <= S_LEN ? i : S_LEN;
18242 if (strnlen (S, i) != expected)
18243 return 1;
18245 return 0;
18248 return 0;
18250 _ACEOF
18251 if ac_fn_c_try_run "$LINENO"; then :
18252 ac_cv_func_strnlen_working=yes
18253 else
18254 ac_cv_func_strnlen_working=no
18256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18257 conftest.$ac_objext conftest.beam conftest.$ac_ext
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18262 $as_echo "$ac_cv_func_strnlen_working" >&6; }
18263 test $ac_cv_func_strnlen_working = no &&
18271 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
18274 if test $ac_cv_func_strnlen_working = no; then
18275 REPLACE_STRNLEN=1
18278 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
18287 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
18295 GNULIB_STRNLEN=1
18299 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
18303 # Code from module strnlen1:
18304 # Code from module sys_wait:
18314 if test $gl_cv_have_include_next = yes; then
18315 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
18316 else
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
18318 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
18319 if ${gl_cv_next_sys_wait_h+:} false; then :
18320 $as_echo_n "(cached) " >&6
18321 else
18323 if test $ac_cv_header_sys_wait_h = yes; then
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <sys/wait.h>
18328 _ACEOF
18329 case "$host_os" in
18330 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18331 *) gl_absname_cpp="$ac_cpp" ;;
18332 esac
18333 gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18334 sed -n '\#/sys/wait.h#{
18335 s#.*"\(.*/sys/wait.h\)".*#\1#
18336 s#^/[^/]#//&#
18339 }'`'"'
18340 else
18341 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
18346 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
18348 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
18350 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18352 gl_next_as_first_directive='<'sys/wait.h'>'
18353 else
18354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18355 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
18357 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
18363 # Code from module sysexits:
18366 if test $ac_cv_header_sysexits_h = yes; then
18367 HAVE_SYSEXITS_H=1
18374 if test $gl_cv_have_include_next = yes; then
18375 gl_cv_next_sysexits_h='<'sysexits.h'>'
18376 else
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
18378 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
18379 if ${gl_cv_next_sysexits_h+:} false; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18383 if test $ac_cv_header_sysexits_h = yes; then
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <sysexits.h>
18388 _ACEOF
18389 case "$host_os" in
18390 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18391 *) gl_absname_cpp="$ac_cpp" ;;
18392 esac
18393 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18394 sed -n '\#/sysexits.h#{
18395 s#.*"\(.*/sysexits.h\)".*#\1#
18396 s#^/[^/]#//&#
18399 }'`'"'
18400 else
18401 gl_cv_next_sysexits_h='<'sysexits.h'>'
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
18406 $as_echo "$gl_cv_next_sysexits_h" >&6; }
18408 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
18410 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18412 gl_next_as_first_directive='<'sysexits.h'>'
18413 else
18414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18415 gl_next_as_first_directive=$gl_cv_next_sysexits_h
18417 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18423 #include <sysexits.h>
18425 main (void)
18427 switch (0)
18429 case EX_OK:
18430 case EX_USAGE:
18431 case EX_DATAERR:
18432 case EX_NOINPUT:
18433 case EX_NOUSER:
18434 case EX_NOHOST:
18435 case EX_UNAVAILABLE:
18436 case EX_SOFTWARE:
18437 case EX_OSERR:
18438 case EX_OSFILE:
18439 case EX_CANTCREAT:
18440 case EX_IOERR:
18441 case EX_TEMPFAIL:
18442 case EX_PROTOCOL:
18443 case EX_NOPERM:
18444 case EX_CONFIG:
18445 break;
18449 return 0;
18451 _ACEOF
18452 if ac_fn_c_try_compile "$LINENO"; then :
18453 SYSEXITS_H=
18454 else
18455 SYSEXITS_H=sysexits.h
18457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18458 else
18459 HAVE_SYSEXITS_H=0
18460 SYSEXITS_H=sysexits.h
18465 # Code from module unistd:
18476 if test $gl_cv_have_include_next = yes; then
18477 gl_cv_next_unistd_h='<'unistd.h'>'
18478 else
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18480 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18481 if ${gl_cv_next_unistd_h+:} false; then :
18482 $as_echo_n "(cached) " >&6
18483 else
18485 if test $ac_cv_header_unistd_h = yes; then
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488 #include <unistd.h>
18490 _ACEOF
18491 case "$host_os" in
18492 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18493 *) gl_absname_cpp="$ac_cpp" ;;
18494 esac
18495 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18496 sed -n '\#/unistd.h#{
18497 s#.*"\(.*/unistd.h\)".*#\1#
18498 s#^/[^/]#//&#
18501 }'`'"'
18502 else
18503 gl_cv_next_unistd_h='<'unistd.h'>'
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18508 $as_echo "$gl_cv_next_unistd_h" >&6; }
18510 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18512 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18513 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18514 gl_next_as_first_directive='<'unistd.h'>'
18515 else
18516 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18517 gl_next_as_first_directive=$gl_cv_next_unistd_h
18519 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18525 if test $ac_cv_header_unistd_h = yes; then
18526 HAVE_UNISTD_H=1
18527 else
18528 HAVE_UNISTD_H=0
18533 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
18534 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18536 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18537 if eval \${$as_gl_Symbol+:} false; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 #include <unistd.h>
18543 /* Some systems declare various items in the wrong headers. */
18544 #ifndef __GLIBC__
18545 # include <fcntl.h>
18546 # include <stdio.h>
18547 # include <stdlib.h>
18548 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18549 # include <io.h>
18550 # endif
18551 #endif
18554 main (void)
18556 #undef $gl_func
18557 (void) $gl_func;
18559 return 0;
18561 _ACEOF
18562 if ac_fn_c_try_compile "$LINENO"; then :
18563 eval "$as_gl_Symbol=yes"
18564 else
18565 eval "$as_gl_Symbol=no"
18567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569 eval ac_res=\$$as_gl_Symbol
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18571 $as_echo "$ac_res" >&6; }
18572 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18573 cat >>confdefs.h <<_ACEOF
18574 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18575 _ACEOF
18577 eval ac_cv_have_decl_$gl_func=yes
18579 done
18582 # Code from module vasnprintf:
18585 if test $ac_cv_func_vasnprintf = no; then
18596 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18606 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18616 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18626 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18628 if test $ac_cv_func_vasnprintf = yes; then
18630 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18643 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18644 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18646 else
18648 $as_echo "#define ptrdiff_t long" >>confdefs.h
18661 # Code from module verify:
18662 # Code from module vsnprintf:
18665 gl_cv_func_vsnprintf_usable=no
18666 for ac_func in vsnprintf
18667 do :
18668 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18669 if test "x$ac_cv_func_vsnprintf" = xyes; then :
18670 cat >>confdefs.h <<_ACEOF
18671 #define HAVE_VSNPRINTF 1
18672 _ACEOF
18675 done
18677 if test $ac_cv_func_vsnprintf = yes; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
18681 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
18682 if ${gl_cv_func_snprintf_size1+:} false; then :
18683 $as_echo_n "(cached) " >&6
18684 else
18686 if test "$cross_compiling" = yes; then :
18687 gl_cv_func_snprintf_size1="guessing yes"
18688 else
18689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18690 /* end confdefs.h. */
18692 #include <stdio.h>
18693 int main()
18695 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
18696 snprintf (buf, 1, "%d", 12345);
18697 return buf[1] != 'E';
18699 _ACEOF
18700 if ac_fn_c_try_run "$LINENO"; then :
18701 gl_cv_func_snprintf_size1=yes
18702 else
18703 gl_cv_func_snprintf_size1=no
18705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18706 conftest.$ac_objext conftest.beam conftest.$ac_ext
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
18712 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
18714 case "$gl_cv_func_snprintf_size1" in
18715 *yes)
18716 gl_cv_func_vsnprintf_usable=yes
18718 esac
18720 if test $gl_cv_func_vsnprintf_usable = no; then
18731 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
18733 if test $ac_cv_func_vsnprintf = yes; then
18734 REPLACE_VSNPRINTF=1
18740 if test $ac_cv_have_decl_vsnprintf = no; then
18741 HAVE_DECL_VSNPRINTF=0
18747 GNULIB_VSNPRINTF=1
18751 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
18755 # Code from module warn-on-use:
18756 # Code from module wchar:
18767 if test $gl_cv_have_include_next = yes; then
18768 gl_cv_next_wchar_h='<'wchar.h'>'
18769 else
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18771 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18772 if ${gl_cv_next_wchar_h+:} false; then :
18773 $as_echo_n "(cached) " >&6
18774 else
18776 if test $ac_cv_header_wchar_h = yes; then
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779 #include <wchar.h>
18781 _ACEOF
18782 case "$host_os" in
18783 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18784 *) gl_absname_cpp="$ac_cpp" ;;
18785 esac
18786 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18787 sed -n '\#/wchar.h#{
18788 s#.*"\(.*/wchar.h\)".*#\1#
18789 s#^/[^/]#//&#
18792 }'`'"'
18793 else
18794 gl_cv_next_wchar_h='<'wchar.h'>'
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18799 $as_echo "$gl_cv_next_wchar_h" >&6; }
18801 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18803 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18805 gl_next_as_first_directive='<'wchar.h'>'
18806 else
18807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18808 gl_next_as_first_directive=$gl_cv_next_wchar_h
18810 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18814 if test $ac_cv_header_wchar_h = yes; then
18815 HAVE_WCHAR_H=1
18816 else
18817 HAVE_WCHAR_H=0
18822 if test $gt_cv_c_wint_t = yes; then
18823 HAVE_WINT_T=1
18824 else
18825 HAVE_WINT_T=0
18830 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
18831 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18833 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18834 if eval \${$as_gl_Symbol+:} false; then :
18835 $as_echo_n "(cached) " >&6
18836 else
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18840 /* Some systems require additional headers. */
18841 #ifndef __GLIBC__
18842 # include <stddef.h>
18843 # include <stdio.h>
18844 # include <time.h>
18845 #endif
18846 #include <wchar.h>
18849 main (void)
18851 #undef $gl_func
18852 (void) $gl_func;
18854 return 0;
18856 _ACEOF
18857 if ac_fn_c_try_compile "$LINENO"; then :
18858 eval "$as_gl_Symbol=yes"
18859 else
18860 eval "$as_gl_Symbol=no"
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 eval ac_res=\$$as_gl_Symbol
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18866 $as_echo "$ac_res" >&6; }
18867 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18868 cat >>confdefs.h <<_ACEOF
18869 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18870 _ACEOF
18872 eval ac_cv_have_decl_$gl_func=yes
18874 done
18877 # Code from module wcrtomb:
18888 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18893 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18894 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
18895 $as_echo_n "(cached) " >&6
18896 else
18898 case "$host_os" in
18899 # Guess no on AIX and OSF/1.
18900 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18901 # Guess yes otherwise.
18902 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18903 esac
18904 if test $LOCALE_JA != none; then
18905 if test "$cross_compiling" = yes; then :
18907 else
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18911 #include <locale.h>
18912 #include <string.h>
18913 #include <wchar.h>
18914 int main ()
18916 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18918 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18919 mbstate_t state;
18920 wchar_t wc;
18922 memset (&state, '\0', sizeof (mbstate_t));
18923 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18924 if (mbsinit (&state))
18925 return 1;
18927 return 0;
18929 _ACEOF
18930 if ac_fn_c_try_run "$LINENO"; then :
18931 gl_cv_func_mbrtowc_incomplete_state=yes
18932 else
18933 gl_cv_func_mbrtowc_incomplete_state=no
18935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18936 conftest.$ac_objext conftest.beam conftest.$ac_ext
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18943 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18949 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18950 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
18951 $as_echo_n "(cached) " >&6
18952 else
18954 case "$host_os" in
18955 # Guess no on Solaris 8.
18956 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18957 # Guess yes otherwise.
18958 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18959 esac
18960 if test $LOCALE_ZH_CN != none; then
18961 if test "$cross_compiling" = yes; then :
18963 else
18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18967 #include <locale.h>
18968 #include <stdlib.h>
18969 #include <string.h>
18970 #include <wchar.h>
18971 int main ()
18973 /* This fails on Solaris 8:
18974 mbrtowc returns 2, and sets wc to 0x00F0.
18975 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18976 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18978 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18979 mbstate_t state;
18980 wchar_t wc;
18982 memset (&state, '\0', sizeof (mbstate_t));
18983 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18984 && mbtowc (&wc, input + 3, 6) == 4)
18985 return 1;
18987 return 0;
18989 _ACEOF
18990 if ac_fn_c_try_run "$LINENO"; then :
18991 gl_cv_func_mbrtowc_sanitycheck=yes
18992 else
18993 gl_cv_func_mbrtowc_sanitycheck=no
18995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996 conftest.$ac_objext conftest.beam conftest.$ac_ext
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19003 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19005 REPLACE_MBSTATE_T=0
19006 case "$gl_cv_func_mbrtowc_incomplete_state" in
19007 *yes) ;;
19008 *) REPLACE_MBSTATE_T=1 ;;
19009 esac
19010 case "$gl_cv_func_mbrtowc_sanitycheck" in
19011 *yes) ;;
19012 *) REPLACE_MBSTATE_T=1 ;;
19013 esac
19014 else
19015 REPLACE_MBSTATE_T=1
19017 if test $REPLACE_MBSTATE_T = 1; then
19025 if test $ac_cv_func_wcrtomb = no; then
19026 HAVE_WCRTOMB=0
19027 else
19028 if test $REPLACE_MBSTATE_T = 1; then
19029 REPLACE_WCRTOMB=1
19030 else
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19037 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19038 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19039 $as_echo_n "(cached) " >&6
19040 else
19042 case "$host_os" in
19043 # Guess no on AIX 4, OSF/1 and Solaris.
19044 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19045 # Guess yes otherwise.
19046 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
19047 esac
19048 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19049 if test "$cross_compiling" = yes; then :
19051 else
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19055 #include <locale.h>
19056 #include <stdio.h>
19057 #include <string.h>
19058 #include <wchar.h>
19059 int main ()
19061 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19063 if (wcrtomb (NULL, 0, NULL) != 1)
19064 return 1;
19066 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19068 if (wcrtomb (NULL, 0, NULL) != 1)
19069 return 1;
19071 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19073 if (wcrtomb (NULL, 0, NULL) != 1)
19074 return 1;
19076 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19078 if (wcrtomb (NULL, 0, NULL) != 1)
19079 return 1;
19081 return 0;
19083 _ACEOF
19084 if ac_fn_c_try_run "$LINENO"; then :
19085 gl_cv_func_wcrtomb_retval=yes
19086 else
19087 gl_cv_func_wcrtomb_retval=no
19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19090 conftest.$ac_objext conftest.beam conftest.$ac_ext
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19097 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19098 case "$gl_cv_func_wcrtomb_retval" in
19099 *yes) ;;
19100 *) REPLACE_WCRTOMB=1 ;;
19101 esac
19104 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19116 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19126 GNULIB_WCRTOMB=1
19130 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19134 # Code from module wctype:
19139 if test $ac_cv_func_iswcntrl = yes; then
19140 HAVE_ISWCNTRL=1
19141 else
19142 HAVE_ISWCNTRL=0
19147 if test $ac_cv_func_iswblank = yes; then
19148 HAVE_ISWBLANK=1
19149 REPLACE_ISWBLANK=0
19150 else
19151 HAVE_ISWBLANK=0
19152 if test $ac_cv_have_decl_iswblank = yes; then
19153 REPLACE_ISWBLANK=1
19154 else
19155 REPLACE_ISWBLANK=0
19165 if test $gt_cv_c_wint_t = yes; then
19166 HAVE_WINT_T=1
19167 else
19168 HAVE_WINT_T=0
19172 if test $ac_cv_header_wctype_h = yes; then
19173 if test $ac_cv_func_iswcntrl = yes; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19175 $as_echo_n "checking whether iswcntrl works... " >&6; }
19176 if ${gl_cv_func_iswcntrl_works+:} false; then :
19177 $as_echo_n "(cached) " >&6
19178 else
19180 if test "$cross_compiling" = yes; then :
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183 #include <stdlib.h>
19184 #if __GNU_LIBRARY__ == 1
19185 Linux libc5 i18n is broken.
19186 #endif
19188 main (void)
19192 return 0;
19194 _ACEOF
19195 if ac_fn_c_try_compile "$LINENO"; then :
19196 gl_cv_func_iswcntrl_works=yes
19197 else
19198 gl_cv_func_iswcntrl_works=no
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19202 else
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19206 #include <stddef.h>
19207 #include <stdio.h>
19208 #include <time.h>
19209 #include <wchar.h>
19210 #include <wctype.h>
19211 int main () { return iswprint ('x') == 0; }
19212 _ACEOF
19213 if ac_fn_c_try_run "$LINENO"; then :
19214 gl_cv_func_iswcntrl_works=yes
19215 else
19216 gl_cv_func_iswcntrl_works=no
19218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19219 conftest.$ac_objext conftest.beam conftest.$ac_ext
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19225 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19233 if test $gl_cv_have_include_next = yes; then
19234 gl_cv_next_wctype_h='<'wctype.h'>'
19235 else
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19237 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19238 if ${gl_cv_next_wctype_h+:} false; then :
19239 $as_echo_n "(cached) " >&6
19240 else
19242 if test $ac_cv_header_wctype_h = yes; then
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 #include <wctype.h>
19247 _ACEOF
19248 case "$host_os" in
19249 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19250 *) gl_absname_cpp="$ac_cpp" ;;
19251 esac
19252 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19253 sed -n '\#/wctype.h#{
19254 s#.*"\(.*/wctype.h\)".*#\1#
19255 s#^/[^/]#//&#
19258 }'`'"'
19259 else
19260 gl_cv_next_wctype_h='<'wctype.h'>'
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19265 $as_echo "$gl_cv_next_wctype_h" >&6; }
19267 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19269 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19271 gl_next_as_first_directive='<'wctype.h'>'
19272 else
19273 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19274 gl_next_as_first_directive=$gl_cv_next_wctype_h
19276 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19280 HAVE_WCTYPE_H=1
19281 else
19282 HAVE_WCTYPE_H=0
19286 if test "$gl_cv_func_iswcntrl_works" = no; then
19287 REPLACE_ISWCNTRL=1
19288 else
19289 REPLACE_ISWCNTRL=0
19293 # Code from module xsize:
19297 for ac_header in stdint.h
19298 do :
19299 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19300 if test "x$ac_cv_header_stdint_h" = xyes; then :
19301 cat >>confdefs.h <<_ACEOF
19302 #define HAVE_STDINT_H 1
19303 _ACEOF
19307 done
19310 # End of code from modules
19320 gltests_libdeps=
19321 gltests_ltlibdeps=
19331 gl_source_base='tests'
19332 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
19334 gl_module_indicator_condition=$gltests_WITNESS
19344 LIBGNU_LIBDEPS="$gl_libdeps"
19346 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19351 # Check for target programs.
19354 # Find tools for the target.
19355 if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
19356 tmp_ac_tool_prefix="$ac_tool_prefix"
19357 ac_tool_prefix=$target_alias-
19359 if test -n "$ac_tool_prefix"; then
19360 for ac_prog in gcc egcs cc
19362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19365 $as_echo_n "checking for $ac_word... " >&6; }
19366 if ${ac_cv_prog_TARGET_CC+:} false; then :
19367 $as_echo_n "(cached) " >&6
19368 else
19369 if test -n "$TARGET_CC"; then
19370 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
19371 else
19372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19373 for as_dir in $PATH
19375 IFS=$as_save_IFS
19376 test -z "$as_dir" && as_dir=.
19377 for ac_exec_ext in '' $ac_executable_extensions; do
19378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19379 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
19380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19381 break 2
19383 done
19384 done
19385 IFS=$as_save_IFS
19389 TARGET_CC=$ac_cv_prog_TARGET_CC
19390 if test -n "$TARGET_CC"; then
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
19392 $as_echo "$TARGET_CC" >&6; }
19393 else
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19399 test -n "$TARGET_CC" && break
19400 done
19402 if test -z "$TARGET_CC"; then
19403 ac_ct_TARGET_CC=$TARGET_CC
19404 for ac_prog in gcc egcs cc
19406 # Extract the first word of "$ac_prog", so it can be a program name with args.
19407 set dummy $ac_prog; ac_word=$2
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19409 $as_echo_n "checking for $ac_word... " >&6; }
19410 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false; then :
19411 $as_echo_n "(cached) " >&6
19412 else
19413 if test -n "$ac_ct_TARGET_CC"; then
19414 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
19415 else
19416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19417 for as_dir in $PATH
19419 IFS=$as_save_IFS
19420 test -z "$as_dir" && as_dir=.
19421 for ac_exec_ext in '' $ac_executable_extensions; do
19422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19423 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
19424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19425 break 2
19427 done
19428 done
19429 IFS=$as_save_IFS
19433 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
19434 if test -n "$ac_ct_TARGET_CC"; then
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
19436 $as_echo "$ac_ct_TARGET_CC" >&6; }
19437 else
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439 $as_echo "no" >&6; }
19443 test -n "$ac_ct_TARGET_CC" && break
19444 done
19446 if test "x$ac_ct_TARGET_CC" = x; then
19447 TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5"
19448 else
19449 case $cross_compiling:$ac_tool_warned in
19450 yes:)
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19453 ac_tool_warned=yes ;;
19454 esac
19455 TARGET_CC=$ac_ct_TARGET_CC
19459 if test -n "$ac_tool_prefix"; then
19460 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
19461 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19463 $as_echo_n "checking for $ac_word... " >&6; }
19464 if ${ac_cv_prog_OBJCOPY+:} false; then :
19465 $as_echo_n "(cached) " >&6
19466 else
19467 if test -n "$OBJCOPY"; then
19468 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
19469 else
19470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19473 IFS=$as_save_IFS
19474 test -z "$as_dir" && as_dir=.
19475 for ac_exec_ext in '' $ac_executable_extensions; do
19476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19477 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
19478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19479 break 2
19481 done
19482 done
19483 IFS=$as_save_IFS
19487 OBJCOPY=$ac_cv_prog_OBJCOPY
19488 if test -n "$OBJCOPY"; then
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
19490 $as_echo "$OBJCOPY" >&6; }
19491 else
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493 $as_echo "no" >&6; }
19498 if test -z "$ac_cv_prog_OBJCOPY"; then
19499 ac_ct_OBJCOPY=$OBJCOPY
19500 # Extract the first word of "objcopy", so it can be a program name with args.
19501 set dummy objcopy; ac_word=$2
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19503 $as_echo_n "checking for $ac_word... " >&6; }
19504 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
19505 $as_echo_n "(cached) " >&6
19506 else
19507 if test -n "$ac_ct_OBJCOPY"; then
19508 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
19509 else
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19513 IFS=$as_save_IFS
19514 test -z "$as_dir" && as_dir=.
19515 for ac_exec_ext in '' $ac_executable_extensions; do
19516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19517 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
19518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19519 break 2
19521 done
19522 done
19523 IFS=$as_save_IFS
19527 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
19528 if test -n "$ac_ct_OBJCOPY"; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
19530 $as_echo "$ac_ct_OBJCOPY" >&6; }
19531 else
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19536 if test "x$ac_ct_OBJCOPY" = x; then
19537 OBJCOPY=""
19538 else
19539 case $cross_compiling:$ac_tool_warned in
19540 yes:)
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19543 ac_tool_warned=yes ;;
19544 esac
19545 OBJCOPY=$ac_ct_OBJCOPY
19547 else
19548 OBJCOPY="$ac_cv_prog_OBJCOPY"
19551 if test -n "$ac_tool_prefix"; then
19552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19553 set dummy ${ac_tool_prefix}strip; ac_word=$2
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19555 $as_echo_n "checking for $ac_word... " >&6; }
19556 if ${ac_cv_prog_STRIP+:} false; then :
19557 $as_echo_n "(cached) " >&6
19558 else
19559 if test -n "$STRIP"; then
19560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19561 else
19562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19563 for as_dir in $PATH
19565 IFS=$as_save_IFS
19566 test -z "$as_dir" && as_dir=.
19567 for ac_exec_ext in '' $ac_executable_extensions; do
19568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19571 break 2
19573 done
19574 done
19575 IFS=$as_save_IFS
19579 STRIP=$ac_cv_prog_STRIP
19580 if test -n "$STRIP"; then
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19582 $as_echo "$STRIP" >&6; }
19583 else
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585 $as_echo "no" >&6; }
19590 if test -z "$ac_cv_prog_STRIP"; then
19591 ac_ct_STRIP=$STRIP
19592 # Extract the first word of "strip", so it can be a program name with args.
19593 set dummy strip; ac_word=$2
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19595 $as_echo_n "checking for $ac_word... " >&6; }
19596 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
19597 $as_echo_n "(cached) " >&6
19598 else
19599 if test -n "$ac_ct_STRIP"; then
19600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19601 else
19602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19603 for as_dir in $PATH
19605 IFS=$as_save_IFS
19606 test -z "$as_dir" && as_dir=.
19607 for ac_exec_ext in '' $ac_executable_extensions; do
19608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19609 ac_cv_prog_ac_ct_STRIP="strip"
19610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19611 break 2
19613 done
19614 done
19615 IFS=$as_save_IFS
19619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19620 if test -n "$ac_ct_STRIP"; then
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19622 $as_echo "$ac_ct_STRIP" >&6; }
19623 else
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19625 $as_echo "no" >&6; }
19628 if test "x$ac_ct_STRIP" = x; then
19629 STRIP=""
19630 else
19631 case $cross_compiling:$ac_tool_warned in
19632 yes:)
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19635 ac_tool_warned=yes ;;
19636 esac
19637 STRIP=$ac_ct_STRIP
19639 else
19640 STRIP="$ac_cv_prog_STRIP"
19643 if test -n "$ac_tool_prefix"; then
19644 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19645 set dummy ${ac_tool_prefix}nm; ac_word=$2
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19647 $as_echo_n "checking for $ac_word... " >&6; }
19648 if ${ac_cv_prog_NM+:} false; then :
19649 $as_echo_n "(cached) " >&6
19650 else
19651 if test -n "$NM"; then
19652 ac_cv_prog_NM="$NM" # Let the user override the test.
19653 else
19654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19655 for as_dir in $PATH
19657 IFS=$as_save_IFS
19658 test -z "$as_dir" && as_dir=.
19659 for ac_exec_ext in '' $ac_executable_extensions; do
19660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19661 ac_cv_prog_NM="${ac_tool_prefix}nm"
19662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19663 break 2
19665 done
19666 done
19667 IFS=$as_save_IFS
19671 NM=$ac_cv_prog_NM
19672 if test -n "$NM"; then
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
19674 $as_echo "$NM" >&6; }
19675 else
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19677 $as_echo "no" >&6; }
19682 if test -z "$ac_cv_prog_NM"; then
19683 ac_ct_NM=$NM
19684 # Extract the first word of "nm", so it can be a program name with args.
19685 set dummy nm; ac_word=$2
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19687 $as_echo_n "checking for $ac_word... " >&6; }
19688 if ${ac_cv_prog_ac_ct_NM+:} false; then :
19689 $as_echo_n "(cached) " >&6
19690 else
19691 if test -n "$ac_ct_NM"; then
19692 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
19693 else
19694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19695 for as_dir in $PATH
19697 IFS=$as_save_IFS
19698 test -z "$as_dir" && as_dir=.
19699 for ac_exec_ext in '' $ac_executable_extensions; do
19700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19701 ac_cv_prog_ac_ct_NM="nm"
19702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19703 break 2
19705 done
19706 done
19707 IFS=$as_save_IFS
19711 ac_ct_NM=$ac_cv_prog_ac_ct_NM
19712 if test -n "$ac_ct_NM"; then
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
19714 $as_echo "$ac_ct_NM" >&6; }
19715 else
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717 $as_echo "no" >&6; }
19720 if test "x$ac_ct_NM" = x; then
19721 NM=""
19722 else
19723 case $cross_compiling:$ac_tool_warned in
19724 yes:)
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19727 ac_tool_warned=yes ;;
19728 esac
19729 NM=$ac_ct_NM
19731 else
19732 NM="$ac_cv_prog_NM"
19735 if test -n "$ac_tool_prefix"; then
19736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19739 $as_echo_n "checking for $ac_word... " >&6; }
19740 if ${ac_cv_prog_TARGET_RANLIB+:} false; then :
19741 $as_echo_n "(cached) " >&6
19742 else
19743 if test -n "$TARGET_RANLIB"; then
19744 ac_cv_prog_TARGET_RANLIB="$TARGET_RANLIB" # Let the user override the test.
19745 else
19746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747 for as_dir in $PATH
19749 IFS=$as_save_IFS
19750 test -z "$as_dir" && as_dir=.
19751 for ac_exec_ext in '' $ac_executable_extensions; do
19752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19753 ac_cv_prog_TARGET_RANLIB="${ac_tool_prefix}ranlib"
19754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19755 break 2
19757 done
19758 done
19759 IFS=$as_save_IFS
19763 TARGET_RANLIB=$ac_cv_prog_TARGET_RANLIB
19764 if test -n "$TARGET_RANLIB"; then
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
19766 $as_echo "$TARGET_RANLIB" >&6; }
19767 else
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19769 $as_echo "no" >&6; }
19774 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
19775 ac_ct_TARGET_RANLIB=$TARGET_RANLIB
19776 # Extract the first word of "ranlib", so it can be a program name with args.
19777 set dummy ranlib; ac_word=$2
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19779 $as_echo_n "checking for $ac_word... " >&6; }
19780 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false; then :
19781 $as_echo_n "(cached) " >&6
19782 else
19783 if test -n "$ac_ct_TARGET_RANLIB"; then
19784 ac_cv_prog_ac_ct_TARGET_RANLIB="$ac_ct_TARGET_RANLIB" # Let the user override the test.
19785 else
19786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19787 for as_dir in $PATH
19789 IFS=$as_save_IFS
19790 test -z "$as_dir" && as_dir=.
19791 for ac_exec_ext in '' $ac_executable_extensions; do
19792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19793 ac_cv_prog_ac_ct_TARGET_RANLIB="ranlib"
19794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19795 break 2
19797 done
19798 done
19799 IFS=$as_save_IFS
19803 ac_ct_TARGET_RANLIB=$ac_cv_prog_ac_ct_TARGET_RANLIB
19804 if test -n "$ac_ct_TARGET_RANLIB"; then
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
19806 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
19807 else
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 $as_echo "no" >&6; }
19812 if test "x$ac_ct_TARGET_RANLIB" = x; then
19813 TARGET_RANLIB=""
19814 else
19815 case $cross_compiling:$ac_tool_warned in
19816 yes:)
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19819 ac_tool_warned=yes ;;
19820 esac
19821 TARGET_RANLIB=$ac_ct_TARGET_RANLIB
19823 else
19824 TARGET_RANLIB="$ac_cv_prog_TARGET_RANLIB"
19827 if test -n "$ac_tool_prefix"; then
19828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19829 set dummy ${ac_tool_prefix}strip; ac_word=$2
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19831 $as_echo_n "checking for $ac_word... " >&6; }
19832 if ${ac_cv_prog_TARGET_STRIP+:} false; then :
19833 $as_echo_n "(cached) " >&6
19834 else
19835 if test -n "$TARGET_STRIP"; then
19836 ac_cv_prog_TARGET_STRIP="$TARGET_STRIP" # Let the user override the test.
19837 else
19838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19839 for as_dir in $PATH
19841 IFS=$as_save_IFS
19842 test -z "$as_dir" && as_dir=.
19843 for ac_exec_ext in '' $ac_executable_extensions; do
19844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19845 ac_cv_prog_TARGET_STRIP="${ac_tool_prefix}strip"
19846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19847 break 2
19849 done
19850 done
19851 IFS=$as_save_IFS
19855 TARGET_STRIP=$ac_cv_prog_TARGET_STRIP
19856 if test -n "$TARGET_STRIP"; then
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
19858 $as_echo "$TARGET_STRIP" >&6; }
19859 else
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861 $as_echo "no" >&6; }
19866 if test -z "$ac_cv_prog_TARGET_STRIP"; then
19867 ac_ct_TARGET_STRIP=$TARGET_STRIP
19868 # Extract the first word of "strip", so it can be a program name with args.
19869 set dummy strip; ac_word=$2
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19871 $as_echo_n "checking for $ac_word... " >&6; }
19872 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false; then :
19873 $as_echo_n "(cached) " >&6
19874 else
19875 if test -n "$ac_ct_TARGET_STRIP"; then
19876 ac_cv_prog_ac_ct_TARGET_STRIP="$ac_ct_TARGET_STRIP" # Let the user override the test.
19877 else
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in $PATH
19881 IFS=$as_save_IFS
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_prog_ac_ct_TARGET_STRIP="strip"
19886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19887 break 2
19889 done
19890 done
19891 IFS=$as_save_IFS
19895 ac_ct_TARGET_STRIP=$ac_cv_prog_ac_ct_TARGET_STRIP
19896 if test -n "$ac_ct_TARGET_STRIP"; then
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
19898 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
19899 else
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901 $as_echo "no" >&6; }
19904 if test "x$ac_ct_TARGET_STRIP" = x; then
19905 TARGET_STRIP=""
19906 else
19907 case $cross_compiling:$ac_tool_warned in
19908 yes:)
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19911 ac_tool_warned=yes ;;
19912 esac
19913 TARGET_STRIP=$ac_ct_TARGET_STRIP
19915 else
19916 TARGET_STRIP="$ac_cv_prog_TARGET_STRIP"
19919 if test -n "$ac_tool_prefix"; then
19920 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19921 set dummy ${ac_tool_prefix}nm; ac_word=$2
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19923 $as_echo_n "checking for $ac_word... " >&6; }
19924 if ${ac_cv_prog_TARGET_NM+:} false; then :
19925 $as_echo_n "(cached) " >&6
19926 else
19927 if test -n "$TARGET_NM"; then
19928 ac_cv_prog_TARGET_NM="$TARGET_NM" # Let the user override the test.
19929 else
19930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19931 for as_dir in $PATH
19933 IFS=$as_save_IFS
19934 test -z "$as_dir" && as_dir=.
19935 for ac_exec_ext in '' $ac_executable_extensions; do
19936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19937 ac_cv_prog_TARGET_NM="${ac_tool_prefix}nm"
19938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19939 break 2
19941 done
19942 done
19943 IFS=$as_save_IFS
19947 TARGET_NM=$ac_cv_prog_TARGET_NM
19948 if test -n "$TARGET_NM"; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
19950 $as_echo "$TARGET_NM" >&6; }
19951 else
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19953 $as_echo "no" >&6; }
19958 if test -z "$ac_cv_prog_TARGET_NM"; then
19959 ac_ct_TARGET_NM=$TARGET_NM
19960 # Extract the first word of "nm", so it can be a program name with args.
19961 set dummy nm; ac_word=$2
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19963 $as_echo_n "checking for $ac_word... " >&6; }
19964 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false; then :
19965 $as_echo_n "(cached) " >&6
19966 else
19967 if test -n "$ac_ct_TARGET_NM"; then
19968 ac_cv_prog_ac_ct_TARGET_NM="$ac_ct_TARGET_NM" # Let the user override the test.
19969 else
19970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971 for as_dir in $PATH
19973 IFS=$as_save_IFS
19974 test -z "$as_dir" && as_dir=.
19975 for ac_exec_ext in '' $ac_executable_extensions; do
19976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19977 ac_cv_prog_ac_ct_TARGET_NM="nm"
19978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19979 break 2
19981 done
19982 done
19983 IFS=$as_save_IFS
19987 ac_ct_TARGET_NM=$ac_cv_prog_ac_ct_TARGET_NM
19988 if test -n "$ac_ct_TARGET_NM"; then
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
19990 $as_echo "$ac_ct_TARGET_NM" >&6; }
19991 else
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19993 $as_echo "no" >&6; }
19996 if test "x$ac_ct_TARGET_NM" = x; then
19997 TARGET_NM=""
19998 else
19999 case $cross_compiling:$ac_tool_warned in
20000 yes:)
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20003 ac_tool_warned=yes ;;
20004 esac
20005 TARGET_NM=$ac_ct_TARGET_NM
20007 else
20008 TARGET_NM="$ac_cv_prog_TARGET_NM"
20012 ac_tool_prefix="$tmp_ac_tool_prefix"
20013 else
20014 if test "x$TARGET_CC" = x; then
20015 TARGET_CC=$CC
20017 if test "x$TARGET_RANLIB" = x; then
20018 TARGET_RANLIB=$RANLIB
20020 if test -n "$ac_tool_prefix"; then
20021 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
20022 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20024 $as_echo_n "checking for $ac_word... " >&6; }
20025 if ${ac_cv_prog_OBJCOPY+:} false; then :
20026 $as_echo_n "(cached) " >&6
20027 else
20028 if test -n "$OBJCOPY"; then
20029 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
20030 else
20031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20032 for as_dir in $PATH
20034 IFS=$as_save_IFS
20035 test -z "$as_dir" && as_dir=.
20036 for ac_exec_ext in '' $ac_executable_extensions; do
20037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20038 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
20039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20040 break 2
20042 done
20043 done
20044 IFS=$as_save_IFS
20048 OBJCOPY=$ac_cv_prog_OBJCOPY
20049 if test -n "$OBJCOPY"; then
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
20051 $as_echo "$OBJCOPY" >&6; }
20052 else
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20054 $as_echo "no" >&6; }
20059 if test -z "$ac_cv_prog_OBJCOPY"; then
20060 ac_ct_OBJCOPY=$OBJCOPY
20061 # Extract the first word of "objcopy", so it can be a program name with args.
20062 set dummy objcopy; ac_word=$2
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20064 $as_echo_n "checking for $ac_word... " >&6; }
20065 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
20066 $as_echo_n "(cached) " >&6
20067 else
20068 if test -n "$ac_ct_OBJCOPY"; then
20069 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
20070 else
20071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20072 for as_dir in $PATH
20074 IFS=$as_save_IFS
20075 test -z "$as_dir" && as_dir=.
20076 for ac_exec_ext in '' $ac_executable_extensions; do
20077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20078 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
20079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20080 break 2
20082 done
20083 done
20084 IFS=$as_save_IFS
20088 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
20089 if test -n "$ac_ct_OBJCOPY"; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
20091 $as_echo "$ac_ct_OBJCOPY" >&6; }
20092 else
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20097 if test "x$ac_ct_OBJCOPY" = x; then
20098 OBJCOPY=""
20099 else
20100 case $cross_compiling:$ac_tool_warned in
20101 yes:)
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20104 ac_tool_warned=yes ;;
20105 esac
20106 OBJCOPY=$ac_ct_OBJCOPY
20108 else
20109 OBJCOPY="$ac_cv_prog_OBJCOPY"
20112 if test -n "$ac_tool_prefix"; then
20113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20114 set dummy ${ac_tool_prefix}strip; ac_word=$2
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116 $as_echo_n "checking for $ac_word... " >&6; }
20117 if ${ac_cv_prog_STRIP+:} false; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20120 if test -n "$STRIP"; then
20121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20122 else
20123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124 for as_dir in $PATH
20126 IFS=$as_save_IFS
20127 test -z "$as_dir" && as_dir=.
20128 for ac_exec_ext in '' $ac_executable_extensions; do
20129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20130 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20132 break 2
20134 done
20135 done
20136 IFS=$as_save_IFS
20140 STRIP=$ac_cv_prog_STRIP
20141 if test -n "$STRIP"; then
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
20143 $as_echo "$STRIP" >&6; }
20144 else
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146 $as_echo "no" >&6; }
20151 if test -z "$ac_cv_prog_STRIP"; then
20152 ac_ct_STRIP=$STRIP
20153 # Extract the first word of "strip", so it can be a program name with args.
20154 set dummy strip; ac_word=$2
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20156 $as_echo_n "checking for $ac_word... " >&6; }
20157 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
20158 $as_echo_n "(cached) " >&6
20159 else
20160 if test -n "$ac_ct_STRIP"; then
20161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20162 else
20163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20164 for as_dir in $PATH
20166 IFS=$as_save_IFS
20167 test -z "$as_dir" && as_dir=.
20168 for ac_exec_ext in '' $ac_executable_extensions; do
20169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20170 ac_cv_prog_ac_ct_STRIP="strip"
20171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20172 break 2
20174 done
20175 done
20176 IFS=$as_save_IFS
20180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20181 if test -n "$ac_ct_STRIP"; then
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
20183 $as_echo "$ac_ct_STRIP" >&6; }
20184 else
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20189 if test "x$ac_ct_STRIP" = x; then
20190 STRIP=""
20191 else
20192 case $cross_compiling:$ac_tool_warned in
20193 yes:)
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20196 ac_tool_warned=yes ;;
20197 esac
20198 STRIP=$ac_ct_STRIP
20200 else
20201 STRIP="$ac_cv_prog_STRIP"
20204 if test "x$TARGET_STRIP" = x; then
20205 TARGET_STRIP=$STRIP
20207 if test -n "$ac_tool_prefix"; then
20208 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
20209 set dummy ${ac_tool_prefix}nm; ac_word=$2
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 $as_echo_n "checking for $ac_word... " >&6; }
20212 if ${ac_cv_prog_NM+:} false; then :
20213 $as_echo_n "(cached) " >&6
20214 else
20215 if test -n "$NM"; then
20216 ac_cv_prog_NM="$NM" # Let the user override the test.
20217 else
20218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20219 for as_dir in $PATH
20221 IFS=$as_save_IFS
20222 test -z "$as_dir" && as_dir=.
20223 for ac_exec_ext in '' $ac_executable_extensions; do
20224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20225 ac_cv_prog_NM="${ac_tool_prefix}nm"
20226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20227 break 2
20229 done
20230 done
20231 IFS=$as_save_IFS
20235 NM=$ac_cv_prog_NM
20236 if test -n "$NM"; then
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
20238 $as_echo "$NM" >&6; }
20239 else
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20241 $as_echo "no" >&6; }
20246 if test -z "$ac_cv_prog_NM"; then
20247 ac_ct_NM=$NM
20248 # Extract the first word of "nm", so it can be a program name with args.
20249 set dummy nm; ac_word=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if ${ac_cv_prog_ac_ct_NM+:} false; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 if test -n "$ac_ct_NM"; then
20256 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
20257 else
20258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259 for as_dir in $PATH
20261 IFS=$as_save_IFS
20262 test -z "$as_dir" && as_dir=.
20263 for ac_exec_ext in '' $ac_executable_extensions; do
20264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20265 ac_cv_prog_ac_ct_NM="nm"
20266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20267 break 2
20269 done
20270 done
20271 IFS=$as_save_IFS
20275 ac_ct_NM=$ac_cv_prog_ac_ct_NM
20276 if test -n "$ac_ct_NM"; then
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
20278 $as_echo "$ac_ct_NM" >&6; }
20279 else
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281 $as_echo "no" >&6; }
20284 if test "x$ac_ct_NM" = x; then
20285 NM=""
20286 else
20287 case $cross_compiling:$ac_tool_warned in
20288 yes:)
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20291 ac_tool_warned=yes ;;
20292 esac
20293 NM=$ac_ct_NM
20295 else
20296 NM="$ac_cv_prog_NM"
20299 if test "x$TARGET_NM" = x; then
20300 TARGET_NM=$NM
20310 # Test the C compiler for the target environment.
20311 tmp_CC="$CC"
20312 tmp_CFLAGS="$CFLAGS"
20313 tmp_LDFLAGS="$LDFLAGS"
20314 tmp_CPPFLAGS="$CPPFLAGS"
20315 tmp_LIBS="$LIBS"
20316 CC="$TARGET_CC"
20317 CFLAGS="$TARGET_CFLAGS"
20318 CPPFLAGS="$TARGET_CPPFLAGS"
20319 LDFLAGS="$TARGET_LDFLAGS"
20320 LIBS=""
20322 # debug flags.
20323 WARN_FLAGS="-Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign"
20324 HOST_CFLAGS="$HOST_CFLAGS $WARN_FLAGS"
20325 TARGET_CFLAGS="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
20326 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
20328 # Force no alignment to save space on i386.
20329 if test "x$target_cpu" = xi386; then
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
20331 $as_echo_n "checking whether -falign-loops works... " >&6; }
20332 if ${grub_cv_cc_falign_loop+:} false; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20336 CFLAGS="$CFLAGS -falign-loops=1"
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20341 main (void)
20345 return 0;
20347 _ACEOF
20348 if ac_fn_c_try_compile "$LINENO"; then :
20349 grub_cv_cc_falign_loop=yes
20350 else
20351 grub_cv_cc_falign_loop=no
20353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
20357 $as_echo "$grub_cv_cc_falign_loop" >&6; }
20359 if test "x$grub_cv_cc_falign_loop" = xyes; then
20360 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
20361 else
20362 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
20365 # Some toolchains enable these features by default, but they need
20366 # registers that aren't set up properly in GRUB.
20367 TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
20370 # By default, GCC 4.4 generates .eh_frame sections containing unwind
20371 # information in some cases where it previously did not. GRUB doesn't need
20372 # these and they just use up vital space. Restore the old compiler
20373 # behaviour.
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
20375 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
20376 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false; then :
20377 $as_echo_n "(cached) " >&6
20378 else
20380 SAVE_CFLAGS="$CFLAGS"
20381 CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
20382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20383 /* end confdefs.h. */
20386 main (void)
20390 return 0;
20392 _ACEOF
20393 if ac_fn_c_try_compile "$LINENO"; then :
20394 grub_cv_cc_fno_dwarf2_cfi_asm=yes
20395 else
20396 grub_cv_cc_fno_dwarf2_cfi_asm=no
20398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 CFLAGS="$SAVE_CFLAGS"
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
20403 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
20405 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
20406 TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
20409 # By default, GCC 4.6 generates .eh_frame sections containing unwind
20410 # information in some cases where it previously did not. GRUB doesn't need
20411 # these and they just use up vital space. Restore the old compiler
20412 # behaviour.
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
20414 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
20415 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false; then :
20416 $as_echo_n "(cached) " >&6
20417 else
20419 SAVE_CFLAGS="$CFLAGS"
20420 CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20422 /* end confdefs.h. */
20425 main (void)
20429 return 0;
20431 _ACEOF
20432 if ac_fn_c_try_compile "$LINENO"; then :
20433 grub_cv_cc_fno_asynchronous_unwind_tables=yes
20434 else
20435 grub_cv_cc_fno_asynchronous_unwind_tables=no
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438 CFLAGS="$SAVE_CFLAGS"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
20442 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
20444 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes; then
20445 TARGET_CFLAGS="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
20450 $as_echo_n "checking whether our target compiler is apple cc... " >&6; }
20451 if ${grub_cv_apple_target_cc+:} false; then :
20452 $as_echo_n "(cached) " >&6
20453 else
20454 if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
20455 grub_cv_apple_target_cc=yes
20456 else
20457 grub_cv_apple_target_cc=no
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
20464 $as_echo "$grub_cv_apple_target_cc" >&6; }
20465 if test x$grub_cv_apple_target_cc = xyes ; then
20466 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -fnested-functions"
20468 CFLAGS="$CFLAGS -fnested-functions"
20469 TARGET_APPLE_CC=1
20470 # Extract the first word of "objconv", so it can be a program name with args.
20471 set dummy objconv; ac_word=$2
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20473 $as_echo_n "checking for $ac_word... " >&6; }
20474 if ${ac_cv_prog_OBJCONV+:} false; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20477 if test -n "$OBJCONV"; then
20478 ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
20479 else
20480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20481 for as_dir in $PATH
20483 IFS=$as_save_IFS
20484 test -z "$as_dir" && as_dir=.
20485 for ac_exec_ext in '' $ac_executable_extensions; do
20486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20487 ac_cv_prog_OBJCONV="objconv"
20488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20489 break 2
20491 done
20492 done
20493 IFS=$as_save_IFS
20497 OBJCONV=$ac_cv_prog_OBJCONV
20498 if test -n "$OBJCONV"; then
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20500 $as_echo "$OBJCONV" >&6; }
20501 else
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503 $as_echo "no" >&6; }
20507 if test "x$OBJCONV" = x ; then
20508 # Extract the first word of "objconv", so it can be a program name with args.
20509 set dummy objconv; ac_word=$2
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20511 $as_echo_n "checking for $ac_word... " >&6; }
20512 if ${ac_cv_prog_OBJCONV+:} false; then :
20513 $as_echo_n "(cached) " >&6
20514 else
20515 if test -n "$OBJCONV"; then
20516 ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
20517 else
20518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519 for as_dir in .
20521 IFS=$as_save_IFS
20522 test -z "$as_dir" && as_dir=.
20523 for ac_exec_ext in '' $ac_executable_extensions; do
20524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20525 ac_cv_prog_OBJCONV="./objconv"
20526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20527 break 2
20529 done
20530 done
20531 IFS=$as_save_IFS
20535 OBJCONV=$ac_cv_prog_OBJCONV
20536 if test -n "$OBJCONV"; then
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20538 $as_echo "$OBJCONV" >&6; }
20539 else
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20541 $as_echo "no" >&6; }
20546 if test "x$OBJCONV" = x ; then
20547 as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
20549 TARGET_IMG_LDSCRIPT=
20550 TARGET_IMG_CFLAGS="-static"
20551 TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20552 TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20553 TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
20554 TARGET_LDFLAGS_OLDMAGIC=""
20555 else
20556 TARGET_APPLE_CC=0
20557 TARGET_LDFLAGS_OLDMAGIC="-Wl,-N"
20558 # Use linker script if present, otherwise use builtin -N script.
20559 if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
20560 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20561 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
20562 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20563 TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
20564 else
20565 TARGET_IMG_LDSCRIPT=
20566 TARGET_IMG_LDFLAGS='-Wl,-N'
20567 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
20568 TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
20570 TARGET_IMG_CFLAGS=
20575 # For platforms where ELF is not the default link format.
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
20577 $as_echo_n "checking for command to convert module to ELF format... " >&6; }
20578 case "${target_os}" in
20579 cygwin) TARGET_OBJ2ELF='$(top_builddir)/grub-pe2elf';
20580 # FIXME: put proper test here
20581 NEED_REGISTER_FRAME_INFO=1
20583 *) NEED_REGISTER_FRAME_INFO=0 ;;
20584 esac
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
20586 $as_echo "$TARGET_OBJ2ELF" >&6; }
20589 # Check whether --enable-efiemu was given.
20590 if test "${enable_efiemu+set}" = set; then :
20591 enableval=$enable_efiemu;
20594 if test x"$enable_efiemu" = xno ; then
20595 efiemu_excuse="explicitly disabled"
20597 if test x"$target_cpu" != xi386 ; then
20598 efiemu_excuse="only available on i386"
20600 if test x"$platform" = xefi ; then
20601 efiemu_excuse="not available on efi"
20603 if test x"$efiemu_excuse" = x ; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
20605 $as_echo_n "checking whether options required for efiemu work... " >&6; }
20606 if ${grub_cv_cc_efiemu+:} false; then :
20607 $as_echo_n "(cached) " >&6
20608 else
20610 SAVED_CFLAGS="$CFLAGS"
20611 CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613 /* end confdefs.h. */
20616 main (void)
20620 return 0;
20622 _ACEOF
20623 if ac_fn_c_try_compile "$LINENO"; then :
20624 grub_cv_cc_efiemu=yes
20625 else
20626 grub_cv_cc_efiemu=no
20628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629 CFLAGS="$SAVED_CFLAGS"
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
20633 $as_echo "$grub_cv_cc_efiemu" >&6; }
20634 if test x$grub_cv_cc_efiemu = xno; then
20635 efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
20638 if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
20639 as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
20641 if test x"$efiemu_excuse" = x ; then
20642 enable_efiemu=yes
20643 else
20644 enable_efiemu=no
20648 if test "x$target_m32" = x1; then
20649 # Force 32-bit mode.
20650 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
20651 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
20652 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m32"
20653 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
20654 TARGET_MODULE_FORMAT="elf32"
20657 if test "x$target_m64" = x1; then
20658 # Force 64-bit mode.
20659 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
20660 TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
20661 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m64"
20662 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
20663 TARGET_MODULE_FORMAT="elf64"
20666 if test "$target_cpu"-"$platform" = x86_64-efi; then
20667 # Use large model to support 4G memory
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
20669 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
20670 if ${grub_cv_cc_mcmodel+:} false; then :
20671 $as_echo_n "(cached) " >&6
20672 else
20674 SAVED_CFLAGS=$CFLAGS
20675 CFLAGS="$CFLAGS -m64 -mcmodel=large"
20676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h. */
20680 main (void)
20684 return 0;
20686 _ACEOF
20687 if ac_fn_c_try_compile "$LINENO"; then :
20688 grub_cv_cc_mcmodel=yes
20689 else
20690 grub_cv_cc_mcmodel=no
20692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
20696 $as_echo "$grub_cv_cc_mcmodel" >&6; }
20697 if test "x$grub_cv_cc_mcmodel" = xno; then
20698 as_fn_error $? "-mcmodel=large not supported. Upgrade your gcc." "$LINENO" 5
20699 else
20700 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
20703 # EFI writes to stack below %rsp, we must not use the red zone
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
20705 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
20706 if ${grub_cv_cc_no_red_zone+:} false; then :
20707 $as_echo_n "(cached) " >&6
20708 else
20710 CFLAGS="$CFLAGS -m64 -mno-red-zone"
20711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20715 main (void)
20719 return 0;
20721 _ACEOF
20722 if ac_fn_c_try_compile "$LINENO"; then :
20723 grub_cv_cc_no_red_zone=yes
20724 else
20725 grub_cv_cc_no_red_zone=no
20727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
20731 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
20732 if test "x$grub_cv_cc_no_red_zone" = xno; then
20733 as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
20736 TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
20740 # Compiler features.
20743 # Need __enable_execute_stack() for nested function trampolines?
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
20746 $as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20750 void f (int (*p) (void));
20751 void g (int i)
20753 int nestedfunc (void) { return i; }
20754 f (nestedfunc);
20757 _ACEOF
20758 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
20759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763 test $ac_status = 0; }; } && test -s conftest.s; then
20764 true
20765 else
20766 as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
20768 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
20769 NEED_ENABLE_EXECUTE_STACK=1
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20771 $as_echo "yes" >&6; }
20772 else
20773 NEED_ENABLE_EXECUTE_STACK=0
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20775 $as_echo "no" >&6; }
20777 rm -f conftest*
20780 # Position independent executable.
20782 # Position independent executable.
20783 pie_possible=yes
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
20785 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
20786 # Is this a reliable test case?
20787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788 /* end confdefs.h. */
20790 #ifdef __PIE__
20791 int main() {
20792 return 0;
20794 #else
20795 #error NO __PIE__ DEFINED
20796 #endif
20798 _ACEOF
20800 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20801 # `ac_compile' like this correct, after all?
20802 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20804 $as_echo "yes" >&6; }
20805 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20806 rm -f conftest.s
20807 else
20808 pie_possible=no
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20810 $as_echo "no" >&6; }
20813 # Need that, because some distributions ship compilers that include
20814 # `-fPIE' in the default specs.
20815 if [ x"$pie_possible" = xyes ]; then
20816 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
20819 # Position independent executable.
20821 # Position independent executable.
20822 pic_possible=yes
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
20824 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
20825 # Is this a reliable test case?
20826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h. */
20829 #ifdef __PIC__
20830 int main() {
20831 return 0;
20833 #else
20834 #error NO __PIC__ DEFINED
20835 #endif
20837 _ACEOF
20839 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20840 # `ac_compile' like this correct, after all?
20841 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20843 $as_echo "yes" >&6; }
20844 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20845 rm -f conftest.s
20846 else
20847 pic_possible=no
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849 $as_echo "no" >&6; }
20852 # Need that, because some distributions ship compilers that include
20853 # `-fPIC' in the default specs.
20854 if [ x"$pic_possible" = xyes ]; then
20855 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIC"
20858 # Smashing stack protector.
20860 # Smashing stack protector.
20861 ssp_possible=yes
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
20863 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
20864 # Is this a reliable test case?
20865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20866 /* end confdefs.h. */
20868 void foo (void) { volatile char a[8]; a[3]; }
20870 _ACEOF
20871 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20872 # `ac_compile' like this correct, after all?
20873 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20875 $as_echo "yes" >&6; }
20876 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20877 rm -f conftest.s
20878 else
20879 ssp_possible=no
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20881 $as_echo "no" >&6; }
20884 # Need that, because some distributions ship compilers that include
20885 # `-fstack-protector' in the default specs.
20886 if test "x$ssp_possible" = xyes; then
20887 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
20890 # Smashing stack arg probe.
20891 sap_possible=yes
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
20893 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20897 void foo (void) { volatile char a[8]; a[3]; }
20899 _ACEOF
20900 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20902 $as_echo "yes" >&6; }
20903 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20904 rm -f conftest.s
20905 else
20906 sap_possible=no
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20908 $as_echo "no" >&6; }
20911 # Cygwin's GCC uses alloca() to probe the stackframe on static
20912 # stack allocations above some threshold.
20913 if test x"$sap_possible" = xyes; then
20914 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
20917 # Check whether --enable-werror was given.
20918 if test "${enable_werror+set}" = set; then :
20919 enableval=$enable_werror;
20922 if test x"$enable_werror" != xno ; then
20923 TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
20924 HOST_CFLAGS="$HOST_CFLAGS -Werror"
20927 TARGET_CPP="$TARGET_CC -E"
20928 TARGET_CCAS=$TARGET_CC
20930 GRUB_TARGET_CPU="${target_cpu}"
20931 GRUB_PLATFORM="${platform}"
20958 # Set them to their new values for the tests below.
20959 CC="$TARGET_CC"
20960 if test "x$TARGET_APPLE_CC" = x1 ; then
20961 CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
20962 else
20963 CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
20965 CPPFLAGS="$TARGET_CPPFLAGS"
20966 if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 ; then
20967 LIBS=
20968 else
20969 LIBS=-lgcc
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
20975 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
20976 if ${grub_cv_asm_uscore+:} false; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 cat > conftest.c <<\EOF
20980 int func (int *);
20982 func (int *list)
20984 *list = 0;
20985 return *list;
20989 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
20990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }; } && test -s conftest.s; then
20995 true
20996 else
20997 as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
21000 if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
21001 HAVE_ASM_USCORE=1
21002 grub_cv_asm_uscore=yes
21003 else
21004 HAVE_ASM_USCORE=0
21005 grub_cv_asm_uscore=no
21008 rm -f conftest*
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
21013 $as_echo "$grub_cv_asm_uscore" >&6; }
21015 if test x$grub_cv_asm_uscore = xyes; then
21016 CFLAGS="$CFLAGS -Wl,--defsym,_abort=_main"
21017 else
21018 CFLAGS="$CFLAGS -Wl,--defsym,abort=main"
21021 # Check for libgcc symbols
21022 for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x __ia64_trampoline __udivsi3 __umoddi3 __udivdi3 __divsi3 __modsi3 __umodsi3 __moddi3 __divdi3 __ctzdi2 __ctzsi2
21023 do :
21024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21027 cat >>confdefs.h <<_ACEOF
21028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21032 done
21035 if test "x$TARGET_APPLE_CC" = x1 ; then
21036 CFLAGS="$TARGET_CFLAGS -nostdlib"
21037 else
21038 CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
21040 LIBS=""
21042 # Defined in aclocal.m4.
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
21044 $as_echo_n "checking whether target compiler is working... " >&6; }
21045 if ${grub_cv_prog_target_cc+:} false; then :
21046 $as_echo_n "(cached) " >&6
21047 else
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21051 asm (".globl start; start:");
21052 int main (void);
21055 main (void)
21059 return 0;
21061 _ACEOF
21062 if ac_fn_c_try_link "$LINENO"; then :
21063 grub_cv_prog_target_cc=yes
21064 else
21065 grub_cv_prog_target_cc=no
21067 rm -f core conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
21073 $as_echo "$grub_cv_prog_target_cc" >&6; }
21075 if test "x$grub_cv_prog_target_cc" = xno; then
21076 as_fn_error $? "cannot compile for the target" "$LINENO" 5
21079 if test "x$TARGET_APPLE_CC" != x1 ; then
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
21081 $as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
21082 if ${grub_cv_prog_objcopy_absolute+:} false; then :
21083 $as_echo_n "(cached) " >&6
21084 else
21085 cat > conftest.c <<\EOF
21086 void cmain (void);
21087 void
21088 cmain (void)
21090 *((int *) 0x1000) = 2;
21094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21095 (eval $ac_compile) 2>&5
21096 ac_status=$?
21097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21098 test $ac_status = 0; } && test -s conftest.o; then :
21099 else
21100 as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
21102 grub_cv_prog_objcopy_absolute=yes
21103 for link_addr in 0x2000 0x8000 0x7C00; do
21104 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
21105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21109 test $ac_status = 0; }; }; then :
21110 else
21111 as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
21113 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
21114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21118 test $ac_status = 0; }; }; then :
21119 else
21120 as_fn_error $? "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
21122 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
21123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21127 test $ac_status = 0; }; }; then
21128 mv -f conftest conftest.old
21129 else
21130 grub_cv_prog_objcopy_absolute=no
21131 break
21133 done
21134 rm -f conftest*
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
21138 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
21140 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
21141 as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
21146 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
21147 if ${grub_cv_prog_ld_build_id_none+:} false; then :
21148 $as_echo_n "(cached) " >&6
21149 else
21150 save_LDFLAGS="$LDFLAGS"
21151 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21156 main (void)
21160 return 0;
21162 _ACEOF
21163 if ac_fn_c_try_link "$LINENO"; then :
21164 grub_cv_prog_ld_build_id_none=yes
21165 else
21166 grub_cv_prog_ld_build_id_none=no
21168 rm -f core conftest.err conftest.$ac_objext \
21169 conftest$ac_exeext conftest.$ac_ext
21170 LDFLAGS="$save_LDFLAGS"
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
21175 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
21177 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
21178 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
21181 if test "x$target_cpu" = xi386; then
21182 if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
21183 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
21184 # Check symbols provided by linker script.
21185 CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
21189 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
21190 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false; then :
21191 $as_echo_n "(cached) " >&6
21192 else
21193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21197 main (void)
21199 asm ("incl __bss_start")
21201 return 0;
21203 _ACEOF
21204 if ac_fn_c_try_link "$LINENO"; then :
21205 grub_cv_check_uscore_uscore_bss_start_symbol=yes
21206 else
21207 grub_cv_check_uscore_uscore_bss_start_symbol=no
21209 rm -f core conftest.err conftest.$ac_objext \
21210 conftest$ac_exeext conftest.$ac_ext
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
21215 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
21218 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
21219 if ${grub_cv_check_edata_symbol+:} false; then :
21220 $as_echo_n "(cached) " >&6
21221 else
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21226 main (void)
21228 asm ("incl edata")
21230 return 0;
21232 _ACEOF
21233 if ac_fn_c_try_link "$LINENO"; then :
21234 grub_cv_check_edata_symbol=yes
21235 else
21236 grub_cv_check_edata_symbol=no
21238 rm -f core conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
21244 $as_echo "$grub_cv_check_edata_symbol" >&6; }
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
21247 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
21248 if ${grub_cv_check_uscore_edata_symbol+:} false; then :
21249 $as_echo_n "(cached) " >&6
21250 else
21251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21252 /* end confdefs.h. */
21255 main (void)
21257 asm ("incl _edata")
21259 return 0;
21261 _ACEOF
21262 if ac_fn_c_try_link "$LINENO"; then :
21263 grub_cv_check_uscore_edata_symbol=yes
21264 else
21265 grub_cv_check_uscore_edata_symbol=no
21267 rm -f core conftest.err conftest.$ac_objext \
21268 conftest$ac_exeext conftest.$ac_ext
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
21273 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
21275 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
21276 BSS_START_SYMBOL=__bss_start
21277 elif test "x$grub_cv_check_edata_symbol" = xyes; then
21278 BSS_START_SYMBOL=edata
21279 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
21280 BSS_START_SYMBOL=_edata
21281 else
21282 as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
21287 $as_echo_n "checking if end is defined by the compiler... " >&6; }
21288 if ${grub_cv_check_end_symbol+:} false; then :
21289 $as_echo_n "(cached) " >&6
21290 else
21291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21295 main (void)
21297 asm ("incl end")
21299 return 0;
21301 _ACEOF
21302 if ac_fn_c_try_link "$LINENO"; then :
21303 grub_cv_check_end_symbol=yes
21304 else
21305 grub_cv_check_end_symbol=no
21307 rm -f core conftest.err conftest.$ac_objext \
21308 conftest$ac_exeext conftest.$ac_ext
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
21313 $as_echo "$grub_cv_check_end_symbol" >&6; }
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
21316 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
21317 if ${grub_cv_check_uscore_end_symbol+:} false; then :
21318 $as_echo_n "(cached) " >&6
21319 else
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21324 main (void)
21326 asm ("incl _end")
21328 return 0;
21330 _ACEOF
21331 if ac_fn_c_try_link "$LINENO"; then :
21332 grub_cv_check_uscore_end_symbol=yes
21333 else
21334 grub_cv_check_uscore_end_symbol=no
21336 rm -f core conftest.err conftest.$ac_objext \
21337 conftest$ac_exeext conftest.$ac_ext
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
21342 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
21344 if test "x$grub_cv_check_end_symbol" = xyes; then
21345 END_SYMBOL=end
21346 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
21347 END_SYMBOL=_end
21348 else
21349 as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
21353 CFLAGS="$TARGET_CFLAGS"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
21356 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
21357 if ${grub_cv_i386_asm_prefix_requirement+:} false; then :
21358 $as_echo_n "(cached) " >&6
21359 else
21360 cat > conftest.s <<\EOF
21361 .code16
21362 l1: addr32 movb %al, l1
21365 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
21366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21370 test $ac_status = 0; }; } && test -s conftest.o; then
21371 grub_cv_i386_asm_prefix_requirement=yes
21372 else
21373 grub_cv_i386_asm_prefix_requirement=no
21376 rm -f conftest*
21380 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
21381 grub_tmp_addr32="addr32"
21382 grub_tmp_data32="data32"
21383 else
21384 grub_tmp_addr32="addr32;"
21385 grub_tmp_data32="data32;"
21388 ADDR32=$grub_tmp_addr32
21389 DATA32=$grub_tmp_data32
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
21392 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
21396 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
21397 if ${grub_cv_i386_asm_addr32+:} false; then :
21398 $as_echo_n "(cached) " >&6
21399 else
21400 cat > conftest.s.in <<\EOF
21401 .code16
21402 l1: @ADDR32@ movb %al, l1
21405 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
21406 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
21407 else
21408 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
21411 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
21412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21416 test $ac_status = 0; }; } && test -s conftest.o; then
21417 grub_cv_i386_asm_addr32=yes
21418 else
21419 grub_cv_i386_asm_addr32=no
21422 rm -f conftest*
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
21427 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
21430 if test "$platform" != emu; then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
21432 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
21433 if ${grub_cv_cc_isystem+:} false; then :
21434 $as_echo_n "(cached) " >&6
21435 else
21437 SAVED_CPPFLAGS="$CPPFLAGS"
21438 CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21441 #include <stdarg.h>
21442 int va_arg_func (int fixed, va_list args);
21444 main (void)
21448 return 0;
21450 _ACEOF
21451 if ac_fn_c_try_compile "$LINENO"; then :
21452 grub_cv_cc_isystem=yes
21453 else
21454 grub_cv_cc_isystem=no
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 CPPFLAGS="$SAVED_CPPFLAGS"
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
21461 $as_echo "$grub_cv_cc_isystem" >&6; }
21463 if test x"$grub_cv_cc_isystem" = xyes ; then
21464 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-trampolines work" >&5
21469 $as_echo_n "checking whether -Wno-trampolines work... " >&6; }
21470 if ${grub_cv_cc_wnotrampolines+:} false; then :
21471 $as_echo_n "(cached) " >&6
21472 else
21474 SAVED_CFLAGS="$CFLAGS"
21475 # Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
21476 # in the event of later failures (since -Wno-* is always accepted, but
21477 # produces a diagnostic if something else is wrong).
21478 CFLAGS="$TARGET_CFLAGS -Wtrampolines"
21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21481 #include <stdarg.h>
21482 int va_arg_func (int fixed, va_list args);
21484 main (void)
21488 return 0;
21490 _ACEOF
21491 if ac_fn_c_try_compile "$LINENO"; then :
21492 grub_cv_cc_wnotrampolines=yes
21493 else
21494 grub_cv_cc_wnotrampolines=no
21496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21497 CFLAGS="$SAVED_CFLAGS"
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wnotrampolines" >&5
21501 $as_echo "$grub_cv_cc_wnotrampolines" >&6; }
21503 if test x"$grub_cv_cc_wnotrampolines" = xyes ; then
21504 TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
21507 # Restore the flags.
21508 CC="$tmp_CC"
21509 CFLAGS="$tmp_CFLAGS"
21510 CPPFLAGS="$tmp_CPPFLAGS"
21511 LDFLAGS="$tmp_LDFLAGS"
21512 LIBS="$tmp_LIBS"
21515 # Check for options.
21518 # Memory manager debugging.
21519 # Check whether --enable-mm-debug was given.
21520 if test "${enable_mm_debug+set}" = set; then :
21521 enableval=$enable_mm_debug;
21522 $as_echo "#define MM_DEBUG 1" >>confdefs.h
21527 # Check whether --enable-cache-stats was given.
21528 if test "${enable_cache_stats+set}" = set; then :
21529 enableval=$enable_cache_stats;
21533 if test x$enable_cache_stats = xyes; then
21534 DISK_CACHE_STATS=1
21535 else
21536 DISK_CACHE_STATS=0
21540 # Check whether --enable-grub-emu-usb was given.
21541 if test "${enable_grub_emu_usb+set}" = set; then :
21542 enableval=$enable_grub_emu_usb;
21546 # Check whether --enable-grub-emu-sdl was given.
21547 if test "${enable_grub_emu_sdl+set}" = set; then :
21548 enableval=$enable_grub_emu_sdl;
21552 # Check whether --enable-grub-emu-pci was given.
21553 if test "${enable_grub_emu_pci+set}" = set; then :
21554 enableval=$enable_grub_emu_pci;
21558 if test "$platform" = emu; then
21559 missing_ncurses=
21560 # Check for curses libraries.
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
21562 $as_echo_n "checking for wgetch in -lncurses... " >&6; }
21563 if ${ac_cv_lib_ncurses_wgetch+:} false; then :
21564 $as_echo_n "(cached) " >&6
21565 else
21566 ac_check_lib_save_LIBS=$LIBS
21567 LIBS="-lncurses $LIBS"
21568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21569 /* end confdefs.h. */
21571 /* Override any GCC internal prototype to avoid an error.
21572 Use char because int might match the return type of a GCC
21573 builtin and then its argument prototype would still apply. */
21574 #ifdef __cplusplus
21575 extern "C"
21576 #endif
21577 char wgetch ();
21579 main (void)
21581 return wgetch ();
21583 return 0;
21585 _ACEOF
21586 if ac_fn_c_try_link "$LINENO"; then :
21587 ac_cv_lib_ncurses_wgetch=yes
21588 else
21589 ac_cv_lib_ncurses_wgetch=no
21591 rm -f core conftest.err conftest.$ac_objext \
21592 conftest$ac_exeext conftest.$ac_ext
21593 LIBS=$ac_check_lib_save_LIBS
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
21596 $as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
21597 if test "x$ac_cv_lib_ncurses_wgetch" = xyes; then :
21598 LIBCURSES="-lncurses"
21599 else
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
21601 $as_echo_n "checking for wgetch in -lcurses... " >&6; }
21602 if ${ac_cv_lib_curses_wgetch+:} false; then :
21603 $as_echo_n "(cached) " >&6
21604 else
21605 ac_check_lib_save_LIBS=$LIBS
21606 LIBS="-lcurses $LIBS"
21607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h. */
21610 /* Override any GCC internal prototype to avoid an error.
21611 Use char because int might match the return type of a GCC
21612 builtin and then its argument prototype would still apply. */
21613 #ifdef __cplusplus
21614 extern "C"
21615 #endif
21616 char wgetch ();
21618 main (void)
21620 return wgetch ();
21622 return 0;
21624 _ACEOF
21625 if ac_fn_c_try_link "$LINENO"; then :
21626 ac_cv_lib_curses_wgetch=yes
21627 else
21628 ac_cv_lib_curses_wgetch=no
21630 rm -f core conftest.err conftest.$ac_objext \
21631 conftest$ac_exeext conftest.$ac_ext
21632 LIBS=$ac_check_lib_save_LIBS
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
21635 $as_echo "$ac_cv_lib_curses_wgetch" >&6; }
21636 if test "x$ac_cv_lib_curses_wgetch" = xyes; then :
21637 LIBCURSES="-lcurses"
21638 else
21639 missing_ncurses=true
21645 if [ x"$missing_ncurses" = x ]; then
21646 # Check for headers.
21647 for ac_header in ncurses/curses.h
21648 do :
21649 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
21650 if test "x$ac_cv_header_ncurses_curses_h" = xyes; then :
21651 cat >>confdefs.h <<_ACEOF
21652 #define HAVE_NCURSES_CURSES_H 1
21653 _ACEOF
21655 else
21656 for ac_header in ncurses.h
21657 do :
21658 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
21659 if test "x$ac_cv_header_ncurses_h" = xyes; then :
21660 cat >>confdefs.h <<_ACEOF
21661 #define HAVE_NCURSES_H 1
21662 _ACEOF
21664 else
21665 for ac_header in curses.h
21666 do :
21667 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21668 if test "x$ac_cv_header_curses_h" = xyes; then :
21669 cat >>confdefs.h <<_ACEOF
21670 #define HAVE_CURSES_H 1
21671 _ACEOF
21673 else
21674 missing_ncurses=true
21677 done
21681 done
21685 done
21688 if test x"$missing_ncurses" = xtrue ; then
21689 as_fn_error $? "grub-emu can't be compiled without ncurses" "$LINENO" 5
21692 if test x"$enable_grub_emu_usb" != xyes ; then
21693 grub_emu_usb_excuse="not enabled"
21696 if test x"$enable_grub_emu_pci" = xyes ; then
21697 grub_emu_usb_excuse="conflicts with PCI support"
21700 if [ x"$grub_emu_usb_excuse" = x ]; then
21701 # Check for libusb libraries.
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
21703 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
21704 if ${ac_cv_lib_usb_usb_claim_interface+:} false; then :
21705 $as_echo_n "(cached) " >&6
21706 else
21707 ac_check_lib_save_LIBS=$LIBS
21708 LIBS="-lusb $LIBS"
21709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21710 /* end confdefs.h. */
21712 /* Override any GCC internal prototype to avoid an error.
21713 Use char because int might match the return type of a GCC
21714 builtin and then its argument prototype would still apply. */
21715 #ifdef __cplusplus
21716 extern "C"
21717 #endif
21718 char usb_claim_interface ();
21720 main (void)
21722 return usb_claim_interface ();
21724 return 0;
21726 _ACEOF
21727 if ac_fn_c_try_link "$LINENO"; then :
21728 ac_cv_lib_usb_usb_claim_interface=yes
21729 else
21730 ac_cv_lib_usb_usb_claim_interface=no
21732 rm -f core conftest.err conftest.$ac_objext \
21733 conftest$ac_exeext conftest.$ac_ext
21734 LIBS=$ac_check_lib_save_LIBS
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
21737 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
21738 if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes; then :
21739 LIBUSB="-lusb"
21740 else
21741 grub_emu_usb_excuse="need libusb library"
21746 if [ x"$grub_emu_usb_excuse" = x ]; then
21747 # Check for headers.
21748 for ac_header in usb.h
21749 do :
21750 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
21751 if test "x$ac_cv_header_usb_h" = xyes; then :
21752 cat >>confdefs.h <<_ACEOF
21753 #define HAVE_USB_H 1
21754 _ACEOF
21756 else
21757 grub_emu_usb_excuse="need libusb headers"
21760 done
21763 if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
21764 as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
21766 if test x"$grub_emu_usb_excuse" = x ; then
21767 enable_grub_emu_usb=yes
21768 else
21769 enable_grub_emu_usb=no
21772 if test x"$enable_grub_emu_sdl" = xno ; then
21773 grub_emu_sdl_excuse="explicitely disabled"
21775 if [ x"$grub_emu_sdl_excuse" = x ]; then
21776 # Check for libSDL libraries.
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
21778 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
21779 if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lSDL $LIBS"
21784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h. */
21787 /* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
21790 #ifdef __cplusplus
21791 extern "C"
21792 #endif
21793 char SDL_Init ();
21795 main (void)
21797 return SDL_Init ();
21799 return 0;
21801 _ACEOF
21802 if ac_fn_c_try_link "$LINENO"; then :
21803 ac_cv_lib_SDL_SDL_Init=yes
21804 else
21805 ac_cv_lib_SDL_SDL_Init=no
21807 rm -f core conftest.err conftest.$ac_objext \
21808 conftest$ac_exeext conftest.$ac_ext
21809 LIBS=$ac_check_lib_save_LIBS
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
21812 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
21813 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
21814 LIBSDL="-lSDL"
21815 else
21816 grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
21822 if [ x"$grub_emu_sdl_excuse" = x ]; then
21823 # Check for headers.
21824 for ac_header in SDL/SDL.h
21825 do :
21826 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
21827 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
21828 cat >>confdefs.h <<_ACEOF
21829 #define HAVE_SDL_SDL_H 1
21830 _ACEOF
21832 else
21833 grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
21836 done
21840 if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
21841 as_fn_error $? "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
21843 if test x"$grub_emu_sdl_excuse" = x ; then
21844 enable_grub_emu_sdl=yes
21845 else
21846 enable_grub_emu_sdl=no
21849 if test x"$enable_grub_emu_pci" != xyes ; then
21850 grub_emu_pci_excuse="not enabled"
21853 if test x"$enable_grub_emu_usb" = xyes ; then
21854 grub_emu_pci_excuse="conflicts with USB support"
21857 if [ x"$grub_emu_pci_excuse" = x ]; then
21858 # Check for libpci libraries.
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
21860 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
21861 if ${ac_cv_lib_pciaccess_pci_system_init+:} false; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 ac_check_lib_save_LIBS=$LIBS
21865 LIBS="-lpciaccess $LIBS"
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21869 /* Override any GCC internal prototype to avoid an error.
21870 Use char because int might match the return type of a GCC
21871 builtin and then its argument prototype would still apply. */
21872 #ifdef __cplusplus
21873 extern "C"
21874 #endif
21875 char pci_system_init ();
21877 main (void)
21879 return pci_system_init ();
21881 return 0;
21883 _ACEOF
21884 if ac_fn_c_try_link "$LINENO"; then :
21885 ac_cv_lib_pciaccess_pci_system_init=yes
21886 else
21887 ac_cv_lib_pciaccess_pci_system_init=no
21889 rm -f core conftest.err conftest.$ac_objext \
21890 conftest$ac_exeext conftest.$ac_ext
21891 LIBS=$ac_check_lib_save_LIBS
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
21894 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
21895 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes; then :
21896 LIBPCIACCESS="-lpciaccess"
21897 else
21898 grub_emu_pci_excuse="need libpciaccess library"
21903 if [ x"$grub_emu_pci_excuse" = x ]; then
21904 # Check for headers.
21905 for ac_header in pci/pci.h
21906 do :
21907 ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
21908 if test "x$ac_cv_header_pci_pci_h" = xyes; then :
21909 cat >>confdefs.h <<_ACEOF
21910 #define HAVE_PCI_PCI_H 1
21911 _ACEOF
21913 else
21914 grub_emu_pci_excuse="need libpciaccess headers"
21917 done
21921 if test x"$grub_emu_pci_excuse" = x ; then
21922 enable_grub_emu_pci=yes
21923 else
21925 enable_grub_emu_pci=no
21933 # Check whether --enable-grub-mkfont was given.
21934 if test "${enable_grub_mkfont+set}" = set; then :
21935 enableval=$enable_grub_mkfont;
21938 if test x"$enable_grub_mkfont" = xno ; then
21939 grub_mkfont_excuse="explicitly disabled"
21942 if test x"$grub_mkfont_excuse" = x ; then
21943 # Check for freetype libraries.
21944 for ac_prog in freetype-config
21946 # Extract the first word of "$ac_prog", so it can be a program name with args.
21947 set dummy $ac_prog; ac_word=$2
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21949 $as_echo_n "checking for $ac_word... " >&6; }
21950 if ${ac_cv_prog_FREETYPE+:} false; then :
21951 $as_echo_n "(cached) " >&6
21952 else
21953 if test -n "$FREETYPE"; then
21954 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
21955 else
21956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21957 for as_dir in $PATH
21959 IFS=$as_save_IFS
21960 test -z "$as_dir" && as_dir=.
21961 for ac_exec_ext in '' $ac_executable_extensions; do
21962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21963 ac_cv_prog_FREETYPE="$ac_prog"
21964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21965 break 2
21967 done
21968 done
21969 IFS=$as_save_IFS
21973 FREETYPE=$ac_cv_prog_FREETYPE
21974 if test -n "$FREETYPE"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
21976 $as_echo "$FREETYPE" >&6; }
21977 else
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21983 test -n "$FREETYPE" && break
21984 done
21986 if test "x$FREETYPE" = x ; then
21987 grub_mkfont_excuse="need freetype2 library"
21991 if test x"$grub_mkfont_excuse" = x ; then
21992 # Check for freetype libraries.
21993 freetype_cflags=`freetype-config --cflags`
21994 freetype_libs=`freetype-config --libs`
21995 SAVED_CPPFLAGS="$CPPFLAGS"
21996 CPPFLAGS="$CPPFLAGS $freetype_cflags"
21997 for ac_header in ft2build.h
21998 do :
21999 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
22000 if test "x$ac_cv_header_ft2build_h" = xyes; then :
22001 cat >>confdefs.h <<_ACEOF
22002 #define HAVE_FT2BUILD_H 1
22003 _ACEOF
22005 else
22006 grub_mkfont_excuse="need freetype2 headers"
22009 done
22011 CPPFLAGS="$SAVED_CPPFLAGS"
22014 if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
22015 as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
22017 if test x"$grub_mkfont_excuse" = x ; then
22018 enable_grub_mkfont=yes
22019 else
22020 enable_grub_mkfont=no
22022 if test x"$enable_grub_mkfont" = xno && test "x$platform" = xloongson; then
22023 as_fn_error $? "loongson port needs grub-mkfont" "$LINENO" 5
22029 DJVU_FONT_SOURCE=
22031 starfield_excuse=
22033 if test x$enable_grub_mkfont = xno; then
22034 starfield_excuse="No grub-mkfont"
22037 if test x"$starfield_excuse" = x; then
22038 for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
22039 for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/dejavu; do
22040 if test -f "$dir/DejaVuSans.$ext"; then
22041 DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
22042 break 2
22044 done
22045 done
22047 if test "x$DJVU_FONT_SOURCE" = x; then
22048 starfield_excuse="No DejaVu found"
22054 # Check whether --enable-grub-mount was given.
22055 if test "${enable_grub_mount+set}" = set; then :
22056 enableval=$enable_grub_mount;
22059 if test x"$enable_grub_mount" = xno ; then
22060 grub_mount_excuse="explicitly disabled"
22063 if test x"$grub_mount_excuse" = x ; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
22065 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
22066 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 ac_check_lib_save_LIBS=$LIBS
22070 LIBS="-lfuse $LIBS"
22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072 /* end confdefs.h. */
22074 /* Override any GCC internal prototype to avoid an error.
22075 Use char because int might match the return type of a GCC
22076 builtin and then its argument prototype would still apply. */
22077 #ifdef __cplusplus
22078 extern "C"
22079 #endif
22080 char fuse_main_real ();
22082 main (void)
22084 return fuse_main_real ();
22086 return 0;
22088 _ACEOF
22089 if ac_fn_c_try_link "$LINENO"; then :
22090 ac_cv_lib_fuse_fuse_main_real=yes
22091 else
22092 ac_cv_lib_fuse_fuse_main_real=no
22094 rm -f core conftest.err conftest.$ac_objext \
22095 conftest$ac_exeext conftest.$ac_ext
22096 LIBS=$ac_check_lib_save_LIBS
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
22099 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
22100 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
22101 cat >>confdefs.h <<_ACEOF
22102 #define HAVE_LIBFUSE 1
22103 _ACEOF
22105 LIBS="-lfuse $LIBS"
22107 else
22108 grub_mount_excuse="need FUSE library"
22113 if test x"$grub_mount_excuse" = x ; then
22114 # Check for fuse headers.
22115 SAVED_CPPFLAGS="$CPPFLAGS"
22116 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26"
22117 for ac_header in fuse/fuse.h
22118 do :
22119 ac_fn_c_check_header_mongrel "$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
22120 if test "x$ac_cv_header_fuse_fuse_h" = xyes; then :
22121 cat >>confdefs.h <<_ACEOF
22122 #define HAVE_FUSE_FUSE_H 1
22123 _ACEOF
22125 else
22126 grub_mount_excuse="need FUSE headers"
22129 done
22131 CPPFLAGS="$SAVED_CPPFLAGS"
22134 if test x"$enable_grub_mount" = xyes && test x"$grub_mount_excuse" != x ; then
22135 as_fn_error $? "grub-mount was explicitly requested but can't be compiled" "$LINENO" 5
22137 if test x"$grub_mount_excuse" = x ; then
22138 enable_grub_mount=yes
22139 else
22140 enable_grub_mount=no
22144 # Check whether --enable-device-mapper was given.
22145 if test "${enable_device_mapper+set}" = set; then :
22146 enableval=$enable_device_mapper;
22149 if test x"$enable_device_mapper" = xno ; then
22150 device_mapper_excuse="explicitly disabled"
22153 if test x"$device_mapper_excuse" = x ; then
22154 # Check for device-mapper header.
22155 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
22156 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
22158 else
22159 device_mapper_excuse="need libdevmapper header"
22165 if test x"$device_mapper_excuse" = x ; then
22166 # Check for device-mapper library.
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
22168 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
22169 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
22170 $as_echo_n "(cached) " >&6
22171 else
22172 ac_check_lib_save_LIBS=$LIBS
22173 LIBS="-ldevmapper $LIBS"
22174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22175 /* end confdefs.h. */
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22180 #ifdef __cplusplus
22181 extern "C"
22182 #endif
22183 char dm_task_create ();
22185 main (void)
22187 return dm_task_create ();
22189 return 0;
22191 _ACEOF
22192 if ac_fn_c_try_link "$LINENO"; then :
22193 ac_cv_lib_devmapper_dm_task_create=yes
22194 else
22195 ac_cv_lib_devmapper_dm_task_create=no
22197 rm -f core conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
22199 LIBS=$ac_check_lib_save_LIBS
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
22202 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
22203 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
22204 cat >>confdefs.h <<_ACEOF
22205 #define HAVE_LIBDEVMAPPER 1
22206 _ACEOF
22208 LIBS="-ldevmapper $LIBS"
22210 else
22211 device_mapper_excuse="need devmapper library"
22216 if test x"$device_mapper_excuse" = x ; then
22217 # Check for device-mapper library.
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
22219 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
22220 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false; then :
22221 $as_echo_n "(cached) " >&6
22222 else
22223 ac_check_lib_save_LIBS=$LIBS
22224 LIBS="-ldevmapper $LIBS"
22225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h. */
22228 /* Override any GCC internal prototype to avoid an error.
22229 Use char because int might match the return type of a GCC
22230 builtin and then its argument prototype would still apply. */
22231 #ifdef __cplusplus
22232 extern "C"
22233 #endif
22234 char dm_log_with_errno_init ();
22236 main (void)
22238 return dm_log_with_errno_init ();
22240 return 0;
22242 _ACEOF
22243 if ac_fn_c_try_link "$LINENO"; then :
22244 ac_cv_lib_devmapper_dm_log_with_errno_init=yes
22245 else
22246 ac_cv_lib_devmapper_dm_log_with_errno_init=no
22248 rm -f core conftest.err conftest.$ac_objext \
22249 conftest$ac_exeext conftest.$ac_ext
22250 LIBS=$ac_check_lib_save_LIBS
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
22253 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
22254 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes; then :
22255 cat >>confdefs.h <<_ACEOF
22256 #define HAVE_LIBDEVMAPPER 1
22257 _ACEOF
22259 LIBS="-ldevmapper $LIBS"
22261 else
22262 device_mapper_excuse="need devmapper library"
22267 if test x"$device_mapper_excuse" = x ; then
22268 LIBDEVMAPPER="-ldevmapper";
22270 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
22276 LIBGEOM=
22277 if test x$host_kernel = xkfreebsd; then
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
22279 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
22280 if ${ac_cv_lib_geom_geom_gettree+:} false; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lgeom $LIBS"
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22288 /* Override any GCC internal prototype to avoid an error.
22289 Use char because int might match the return type of a GCC
22290 builtin and then its argument prototype would still apply. */
22291 #ifdef __cplusplus
22292 extern "C"
22293 #endif
22294 char geom_gettree ();
22296 main (void)
22298 return geom_gettree ();
22300 return 0;
22302 _ACEOF
22303 if ac_fn_c_try_link "$LINENO"; then :
22304 ac_cv_lib_geom_geom_gettree=yes
22305 else
22306 ac_cv_lib_geom_geom_gettree=no
22308 rm -f core conftest.err conftest.$ac_objext \
22309 conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
22313 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
22314 if test "x$ac_cv_lib_geom_geom_gettree" = xyes; then :
22315 cat >>confdefs.h <<_ACEOF
22316 #define HAVE_LIBGEOM 1
22317 _ACEOF
22319 LIBS="-lgeom $LIBS"
22321 else
22322 as_fn_error $? "Your platform requires libgeom" "$LINENO" 5
22325 LIBGEOM="-lgeom"
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
22331 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
22332 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
22333 $as_echo_n "(cached) " >&6
22334 else
22335 ac_check_lib_save_LIBS=$LIBS
22336 LIBS="-llzma $LIBS"
22337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22338 /* end confdefs.h. */
22340 /* Override any GCC internal prototype to avoid an error.
22341 Use char because int might match the return type of a GCC
22342 builtin and then its argument prototype would still apply. */
22343 #ifdef __cplusplus
22344 extern "C"
22345 #endif
22346 char lzma_code ();
22348 main (void)
22350 return lzma_code ();
22352 return 0;
22354 _ACEOF
22355 if ac_fn_c_try_link "$LINENO"; then :
22356 ac_cv_lib_lzma_lzma_code=yes
22357 else
22358 ac_cv_lib_lzma_lzma_code=no
22360 rm -f core conftest.err conftest.$ac_objext \
22361 conftest$ac_exeext conftest.$ac_ext
22362 LIBS=$ac_check_lib_save_LIBS
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
22365 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
22366 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
22367 LIBLZMA="-llzma"
22369 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
22375 # Check whether --enable-libzfs was given.
22376 if test "${enable_libzfs+set}" = set; then :
22377 enableval=$enable_libzfs;
22380 if test x"$enable_libzfs" = xno ; then
22381 libzfs_excuse="explicitly disabled"
22384 if test x"$libzfs_excuse" = x ; then
22385 # Only check for system headers if libzfs support has not been disabled.
22386 for ac_header in libzfs.h libnvpair.h
22387 do :
22388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22391 cat >>confdefs.h <<_ACEOF
22392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22393 _ACEOF
22397 done
22401 if test x"$libzfs_excuse" = x ; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
22403 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
22404 if ${ac_cv_lib_zfs_libzfs_init+:} false; then :
22405 $as_echo_n "(cached) " >&6
22406 else
22407 ac_check_lib_save_LIBS=$LIBS
22408 LIBS="-lzfs $LIBS"
22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h. */
22412 /* Override any GCC internal prototype to avoid an error.
22413 Use char because int might match the return type of a GCC
22414 builtin and then its argument prototype would still apply. */
22415 #ifdef __cplusplus
22416 extern "C"
22417 #endif
22418 char libzfs_init ();
22420 main (void)
22422 return libzfs_init ();
22424 return 0;
22426 _ACEOF
22427 if ac_fn_c_try_link "$LINENO"; then :
22428 ac_cv_lib_zfs_libzfs_init=yes
22429 else
22430 ac_cv_lib_zfs_libzfs_init=no
22432 rm -f core conftest.err conftest.$ac_objext \
22433 conftest$ac_exeext conftest.$ac_ext
22434 LIBS=$ac_check_lib_save_LIBS
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
22437 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
22438 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes; then :
22439 cat >>confdefs.h <<_ACEOF
22440 #define HAVE_LIBZFS 1
22441 _ACEOF
22443 LIBS="-lzfs $LIBS"
22445 else
22446 libzfs_excuse="need zfs library"
22451 if test x"$libzfs_excuse" = x ; then
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_print in -lnvpair" >&5
22453 $as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
22454 if ${ac_cv_lib_nvpair_nvlist_print+:} false; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 ac_check_lib_save_LIBS=$LIBS
22458 LIBS="-lnvpair $LIBS"
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22462 /* Override any GCC internal prototype to avoid an error.
22463 Use char because int might match the return type of a GCC
22464 builtin and then its argument prototype would still apply. */
22465 #ifdef __cplusplus
22466 extern "C"
22467 #endif
22468 char nvlist_print ();
22470 main (void)
22472 return nvlist_print ();
22474 return 0;
22476 _ACEOF
22477 if ac_fn_c_try_link "$LINENO"; then :
22478 ac_cv_lib_nvpair_nvlist_print=yes
22479 else
22480 ac_cv_lib_nvpair_nvlist_print=no
22482 rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext conftest.$ac_ext
22484 LIBS=$ac_check_lib_save_LIBS
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_print" >&5
22487 $as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
22488 if test "x$ac_cv_lib_nvpair_nvlist_print" = xyes; then :
22489 cat >>confdefs.h <<_ACEOF
22490 #define HAVE_LIBNVPAIR 1
22491 _ACEOF
22493 LIBS="-lnvpair $LIBS"
22495 else
22496 libzfs_excuse="need nvpair library"
22501 if test x"$enable_libzfs" = xyes && test x"$libzfs_excuse" != x ; then
22502 as_fn_error $? "libzfs support was explicitly requested but requirements are not satisfied" "$LINENO" 5
22505 if test x"$libzfs_excuse" = x ; then
22506 # We need both libzfs and libnvpair for a successful build.
22507 LIBZFS="-lzfs"
22509 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
22511 LIBNVPAIR="-lnvpair"
22513 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
22520 LIBS=""
22523 if test x$target_cpu = xi386 -a x$platform = xqemu; then :
22524 GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
22527 if test x$TARGET_APPLE_CC = x1; then :
22528 USE_APPLE_CC_FIXES=yes
22543 # Automake conditionals
22546 if test x$platform = xemu; then
22547 COND_emu_TRUE=
22548 COND_emu_FALSE='#'
22549 else
22550 COND_emu_TRUE='#'
22551 COND_emu_FALSE=
22554 if test x$target_cpu = xi386 -a x$platform = xpc; then
22555 COND_i386_pc_TRUE=
22556 COND_i386_pc_FALSE='#'
22557 else
22558 COND_i386_pc_TRUE='#'
22559 COND_i386_pc_FALSE=
22562 if test x$target_cpu = xi386 -a x$platform = xefi; then
22563 COND_i386_efi_TRUE=
22564 COND_i386_efi_FALSE='#'
22565 else
22566 COND_i386_efi_TRUE='#'
22567 COND_i386_efi_FALSE=
22570 if test x$target_cpu = xia64 -a x$platform = xefi; then
22571 COND_ia64_efi_TRUE=
22572 COND_ia64_efi_FALSE='#'
22573 else
22574 COND_ia64_efi_TRUE='#'
22575 COND_ia64_efi_FALSE=
22578 if test x$target_cpu = xi386 -a x$platform = xqemu; then
22579 COND_i386_qemu_TRUE=
22580 COND_i386_qemu_FALSE='#'
22581 else
22582 COND_i386_qemu_TRUE='#'
22583 COND_i386_qemu_FALSE=
22586 if test x$target_cpu = xi386 -a x$platform = xieee1275; then
22587 COND_i386_ieee1275_TRUE=
22588 COND_i386_ieee1275_FALSE='#'
22589 else
22590 COND_i386_ieee1275_TRUE='#'
22591 COND_i386_ieee1275_FALSE=
22594 if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
22595 COND_i386_coreboot_TRUE=
22596 COND_i386_coreboot_FALSE='#'
22597 else
22598 COND_i386_coreboot_TRUE='#'
22599 COND_i386_coreboot_FALSE=
22602 if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
22603 COND_i386_multiboot_TRUE=
22604 COND_i386_multiboot_FALSE='#'
22605 else
22606 COND_i386_multiboot_TRUE='#'
22607 COND_i386_multiboot_FALSE=
22610 if test x$target_cpu = xx86_64 -a x$platform = xefi; then
22611 COND_x86_64_efi_TRUE=
22612 COND_x86_64_efi_FALSE='#'
22613 else
22614 COND_x86_64_efi_TRUE='#'
22615 COND_x86_64_efi_FALSE=
22618 if test x$target_cpu = xmipsel -a x$platform = xloongson; then
22619 COND_mips_loongson_TRUE=
22620 COND_mips_loongson_FALSE='#'
22621 else
22622 COND_mips_loongson_TRUE='#'
22623 COND_mips_loongson_FALSE=
22626 if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips; then
22627 COND_mips_qemu_mips_TRUE=
22628 COND_mips_qemu_mips_FALSE='#'
22629 else
22630 COND_mips_qemu_mips_TRUE='#'
22631 COND_mips_qemu_mips_FALSE=
22634 if test x$target_cpu = xmips -a x$platform = xarc; then
22635 COND_mips_arc_TRUE=
22636 COND_mips_arc_FALSE='#'
22637 else
22638 COND_mips_arc_TRUE='#'
22639 COND_mips_arc_FALSE=
22642 if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
22643 COND_sparc64_ieee1275_TRUE=
22644 COND_sparc64_ieee1275_FALSE='#'
22645 else
22646 COND_sparc64_ieee1275_TRUE='#'
22647 COND_sparc64_ieee1275_FALSE=
22650 if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
22651 COND_powerpc_ieee1275_TRUE=
22652 COND_powerpc_ieee1275_FALSE='#'
22653 else
22654 COND_powerpc_ieee1275_TRUE='#'
22655 COND_powerpc_ieee1275_FALSE=
22658 if test x$target_cpu = xmips -o x$target_cpu = xmipsel; then
22659 COND_mips_TRUE=
22660 COND_mips_FALSE='#'
22661 else
22662 COND_mips_TRUE='#'
22663 COND_mips_FALSE=
22666 if test x$target_cpu = xmipsel; then
22667 COND_mipsel_TRUE=
22668 COND_mipsel_FALSE='#'
22669 else
22670 COND_mipsel_TRUE='#'
22671 COND_mipsel_FALSE=
22674 if test x$target_cpu = xmips; then
22675 COND_mipseb_TRUE=
22676 COND_mipseb_FALSE='#'
22677 else
22678 COND_mipseb_TRUE='#'
22679 COND_mipseb_FALSE=
22683 if test x$host_kernel = xhurd; then
22684 COND_HOST_HURD_TRUE=
22685 COND_HOST_HURD_FALSE='#'
22686 else
22687 COND_HOST_HURD_TRUE='#'
22688 COND_HOST_HURD_FALSE=
22691 if test x$host_kernel = xlinux; then
22692 COND_HOST_LINUX_TRUE=
22693 COND_HOST_LINUX_FALSE='#'
22694 else
22695 COND_HOST_LINUX_TRUE='#'
22696 COND_HOST_LINUX_FALSE=
22699 if test x$host_kernel = xnetbsd; then
22700 COND_HOST_NETBSD_TRUE=
22701 COND_HOST_NETBSD_FALSE='#'
22702 else
22703 COND_HOST_NETBSD_TRUE='#'
22704 COND_HOST_NETBSD_FALSE=
22707 if test x$host_kernel = xwindows; then
22708 COND_HOST_WINDOWS_TRUE=
22709 COND_HOST_WINDOWS_FALSE='#'
22710 else
22711 COND_HOST_WINDOWS_TRUE='#'
22712 COND_HOST_WINDOWS_FALSE=
22715 if test x$host_kernel = xkfreebsd; then
22716 COND_HOST_KFREEBSD_TRUE=
22717 COND_HOST_KFREEBSD_FALSE='#'
22718 else
22719 COND_HOST_KFREEBSD_TRUE='#'
22720 COND_HOST_KFREEBSD_FALSE=
22723 if test x$host_kernel = xxnu; then
22724 COND_HOST_XNU_TRUE=
22725 COND_HOST_XNU_FALSE='#'
22726 else
22727 COND_HOST_XNU_TRUE='#'
22728 COND_HOST_XNU_FALSE=
22731 if test x$host_kernel = xillumos; then
22732 COND_HOST_ILLUMOS_TRUE=
22733 COND_HOST_ILLUMOS_FALSE='#'
22734 else
22735 COND_HOST_ILLUMOS_TRUE='#'
22736 COND_HOST_ILLUMOS_FALSE=
22740 if test x$cross_compiling = xno -a x$HELP2MAN != x; then
22741 COND_MAN_PAGES_TRUE=
22742 COND_MAN_PAGES_FALSE='#'
22743 else
22744 COND_MAN_PAGES_TRUE='#'
22745 COND_MAN_PAGES_FALSE=
22748 if test x$enable_grub_emu_usb = xyes; then
22749 COND_GRUB_EMU_USB_TRUE=
22750 COND_GRUB_EMU_USB_FALSE='#'
22751 else
22752 COND_GRUB_EMU_USB_TRUE='#'
22753 COND_GRUB_EMU_USB_FALSE=
22756 if test x$enable_grub_emu_sdl = xyes; then
22757 COND_GRUB_EMU_SDL_TRUE=
22758 COND_GRUB_EMU_SDL_FALSE='#'
22759 else
22760 COND_GRUB_EMU_SDL_TRUE='#'
22761 COND_GRUB_EMU_SDL_FALSE=
22764 if test x$enable_grub_emu_pci = xyes; then
22765 COND_GRUB_EMU_PCI_TRUE=
22766 COND_GRUB_EMU_PCI_FALSE='#'
22767 else
22768 COND_GRUB_EMU_PCI_TRUE='#'
22769 COND_GRUB_EMU_PCI_FALSE=
22772 if test x$enable_grub_mkfont = xyes; then
22773 COND_GRUB_MKFONT_TRUE=
22774 COND_GRUB_MKFONT_FALSE='#'
22775 else
22776 COND_GRUB_MKFONT_TRUE='#'
22777 COND_GRUB_MKFONT_FALSE=
22780 if test x$enable_grub_mount = xyes; then
22781 COND_GRUB_MOUNT_TRUE=
22782 COND_GRUB_MOUNT_FALSE='#'
22783 else
22784 COND_GRUB_MOUNT_TRUE='#'
22785 COND_GRUB_MOUNT_FALSE=
22788 if test x$FONT_SOURCE != x; then
22789 COND_HAVE_FONT_SOURCE_TRUE=
22790 COND_HAVE_FONT_SOURCE_FALSE='#'
22791 else
22792 COND_HAVE_FONT_SOURCE_TRUE='#'
22793 COND_HAVE_FONT_SOURCE_FALSE=
22796 if test x$TARGET_OBJ2ELF != x; then
22797 COND_GRUB_PE2ELF_TRUE=
22798 COND_GRUB_PE2ELF_FALSE='#'
22799 else
22800 COND_GRUB_PE2ELF_TRUE='#'
22801 COND_GRUB_PE2ELF_FALSE=
22804 if test x$TARGET_APPLE_CC = x1; then
22805 COND_APPLE_CC_TRUE=
22806 COND_APPLE_CC_FALSE='#'
22807 else
22808 COND_APPLE_CC_TRUE='#'
22809 COND_APPLE_CC_FALSE=
22812 if test x$enable_efiemu = xyes; then
22813 COND_ENABLE_EFIEMU_TRUE=
22814 COND_ENABLE_EFIEMU_FALSE='#'
22815 else
22816 COND_ENABLE_EFIEMU_TRUE='#'
22817 COND_ENABLE_EFIEMU_FALSE=
22820 if test x$DISK_CACHE_STATS = x1; then
22821 COND_ENABLE_CACHE_STATS_TRUE=
22822 COND_ENABLE_CACHE_STATS_FALSE='#'
22823 else
22824 COND_ENABLE_CACHE_STATS_TRUE='#'
22825 COND_ENABLE_CACHE_STATS_FALSE=
22829 if test x$HAVE_ASM_USCORE = x1; then
22830 COND_HAVE_ASM_USCORE_TRUE=
22831 COND_HAVE_ASM_USCORE_FALSE='#'
22832 else
22833 COND_HAVE_ASM_USCORE_TRUE='#'
22834 COND_HAVE_ASM_USCORE_FALSE=
22837 if test x$host_os = xcygwin; then
22838 COND_CYGWIN_TRUE=
22839 COND_CYGWIN_FALSE='#'
22840 else
22841 COND_CYGWIN_TRUE='#'
22842 COND_CYGWIN_FALSE=
22845 if test "x$starfield_excuse" = x; then
22846 COND_STARFIELD_TRUE=
22847 COND_STARFIELD_FALSE='#'
22848 else
22849 COND_STARFIELD_TRUE='#'
22850 COND_STARFIELD_FALSE=
22854 # Output files.
22855 cpudir="${target_cpu}"
22856 if test x${cpudir} = xmipsel; then
22857 cpudir=mips;
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
22861 $as_echo_n "checking whether ln can handle directories properly... " >&6; }
22862 mkdir testdir 2>/dev/null
22863 case $srcdir in
22864 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
22865 *) reldir=../$srcdir/include/grub/util ;;
22866 esac
22867 if ln -s $reldir testdir/util 2>/dev/null ; then
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22869 $as_echo "yes" >&6; }
22870 link_dir=yes
22871 else
22872 link_dir=no
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 $as_echo "no" >&6; }
22876 rm -rf testdir
22878 if test x"$link_dir" = xyes ; then
22879 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$cpudir"
22881 if test "$platform" != emu ; then
22882 ac_config_links="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
22885 else
22886 mkdir -p include/grub 2>/dev/null
22887 rm -rf include/grub/cpu
22888 cp -rp $srcdir/include/grub/$cpudir include/grub/cpu 2>/dev/null
22889 if test "$platform" != emu ; then
22890 rm -rf include/grub/machine
22891 cp -rp $srcdir/include/grub/$cpudir/$platform include/grub/machine 2>/dev/null
22895 ac_config_files="$ac_config_files Makefile"
22897 ac_config_files="$ac_config_files grub-core/Makefile"
22899 ac_config_files="$ac_config_files grub-core/gensyminfo.sh"
22901 ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
22903 ac_config_files="$ac_config_files po/Makefile.in"
22905 ac_config_files="$ac_config_files docs/Makefile"
22907 ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
22909 ac_config_files="$ac_config_files stamp-h"
22911 ac_config_files="$ac_config_files config.h"
22914 cat >confcache <<\_ACEOF
22915 # This file is a shell script that caches the results of configure
22916 # tests run on this system so they can be shared between configure
22917 # scripts and configure runs, see configure's option --config-cache.
22918 # It is not useful on other systems. If it contains results you don't
22919 # want to keep, you may remove or edit it.
22921 # config.status only pays attention to the cache file if you give it
22922 # the --recheck option to rerun configure.
22924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22926 # following values.
22928 _ACEOF
22930 # The following way of writing the cache mishandles newlines in values,
22931 # but we know of no workaround that is simple, portable, and efficient.
22932 # So, we kill variables containing newlines.
22933 # Ultrix sh set writes to stderr and can't be redirected directly,
22934 # and sets the high bit in the cache file unless we assign to the vars.
22936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22937 eval ac_val=\$$ac_var
22938 case $ac_val in #(
22939 *${as_nl}*)
22940 case $ac_var in #(
22941 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22943 esac
22944 case $ac_var in #(
22945 _ | IFS | as_nl) ;; #(
22946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22947 *) { eval $ac_var=; unset $ac_var;} ;;
22948 esac ;;
22949 esac
22950 done
22952 (set) 2>&1 |
22953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22954 *${as_nl}ac_space=\ *)
22955 # `set' does not quote correctly, so add quotes: double-quote
22956 # substitution turns \\\\ into \\, and sed turns \\ into \.
22957 sed -n \
22958 "s/'/'\\\\''/g;
22959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22960 ;; #(
22962 # `set' quotes correctly as required by POSIX, so do not add quotes.
22963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22965 esac |
22966 sort
22968 sed '
22969 /^ac_cv_env_/b end
22970 t clear
22971 :clear
22972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22973 t end
22974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22975 :end' >>confcache
22976 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22977 if test -w "$cache_file"; then
22978 if test "x$cache_file" != "x/dev/null"; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22980 $as_echo "$as_me: updating cache $cache_file" >&6;}
22981 if test ! -f "$cache_file" || test -h "$cache_file"; then
22982 cat confcache >"$cache_file"
22983 else
22984 case $cache_file in #(
22985 */* | ?:*)
22986 mv -f confcache "$cache_file"$$ &&
22987 mv -f "$cache_file"$$ "$cache_file" ;; #(
22989 mv -f confcache "$cache_file" ;;
22990 esac
22993 else
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22995 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22998 rm -f confcache
23000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23001 # Let make expand exec_prefix.
23002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23004 DEFS=-DHAVE_CONFIG_H
23006 ac_libobjs=
23007 ac_ltlibobjs=
23009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23010 # 1. Remove the extension, and $U if already installed.
23011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23012 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23014 # will be set to the directory where LIBOBJS objects are built.
23015 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23016 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23017 done
23018 LIBOBJS=$ac_libobjs
23020 LTLIBOBJS=$ac_ltlibobjs
23023 if test -n "$EXEEXT"; then
23024 am__EXEEXT_TRUE=
23025 am__EXEEXT_FALSE='#'
23026 else
23027 am__EXEEXT_TRUE='#'
23028 am__EXEEXT_FALSE=
23031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23032 as_fn_error $? "conditional \"AMDEP\" was never defined.
23033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23036 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23039 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23040 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23043 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23044 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
23045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23048 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23049 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
23050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23053 gl_libobjs=
23054 gl_ltlibobjs=
23055 if test -n "$gl_LIBOBJS"; then
23056 # Remove the extension.
23057 sed_drop_objext='s/\.o$//;s/\.obj$//'
23058 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23059 gl_libobjs="$gl_libobjs $i.$ac_objext"
23060 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23061 done
23063 gl_LIBOBJS=$gl_libobjs
23065 gl_LTLIBOBJS=$gl_ltlibobjs
23069 gltests_libobjs=
23070 gltests_ltlibobjs=
23071 if test -n "$gltests_LIBOBJS"; then
23072 # Remove the extension.
23073 sed_drop_objext='s/\.o$//;s/\.obj$//'
23074 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23075 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23076 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23077 done
23079 gltests_LIBOBJS=$gltests_libobjs
23081 gltests_LTLIBOBJS=$gltests_ltlibobjs
23084 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
23085 as_fn_error $? "conditional \"COND_emu\" was never defined.
23086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23088 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
23089 as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
23090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23092 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
23093 as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
23094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23096 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
23097 as_fn_error $? "conditional \"COND_ia64_efi\" was never defined.
23098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23100 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
23101 as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
23102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23104 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
23105 as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
23106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23108 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
23109 as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
23110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23112 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
23113 as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
23114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23116 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
23117 as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
23118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23120 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
23121 as_fn_error $? "conditional \"COND_mips_loongson\" was never defined.
23122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23124 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
23125 as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
23126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23128 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
23129 as_fn_error $? "conditional \"COND_mips_arc\" was never defined.
23130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23132 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
23133 as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
23134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23136 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
23137 as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
23138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23140 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
23141 as_fn_error $? "conditional \"COND_mips\" was never defined.
23142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23144 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
23145 as_fn_error $? "conditional \"COND_mipsel\" was never defined.
23146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23148 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
23149 as_fn_error $? "conditional \"COND_mipseb\" was never defined.
23150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23152 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
23153 as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
23154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23156 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
23157 as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
23158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23160 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
23161 as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
23162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23164 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
23165 as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
23166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23168 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
23169 as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
23170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23172 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
23173 as_fn_error $? "conditional \"COND_HOST_XNU\" was never defined.
23174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23176 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
23177 as_fn_error $? "conditional \"COND_HOST_ILLUMOS\" was never defined.
23178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23180 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
23181 as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
23182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23184 if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
23185 as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
23186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23188 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
23189 as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
23190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23192 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
23193 as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
23194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23196 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
23197 as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
23198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23200 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
23201 as_fn_error $? "conditional \"COND_GRUB_MOUNT\" was never defined.
23202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23204 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
23205 as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
23206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23208 if test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
23209 as_fn_error $? "conditional \"COND_GRUB_PE2ELF\" was never defined.
23210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212 if test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
23213 as_fn_error $? "conditional \"COND_APPLE_CC\" was never defined.
23214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23216 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
23217 as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
23218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23220 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
23221 as_fn_error $? "conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
23222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23224 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
23225 as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
23226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228 if test -z "${COND_CYGWIN_TRUE}" && test -z "${COND_CYGWIN_FALSE}"; then
23229 as_fn_error $? "conditional \"COND_CYGWIN\" was never defined.
23230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23232 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
23233 as_fn_error $? "conditional \"COND_STARFIELD\" was never defined.
23234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 : "${CONFIG_STATUS=./config.status}"
23238 ac_write_fail=0
23239 ac_clean_files_save=$ac_clean_files
23240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23243 as_write_fail=0
23244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23245 #! $SHELL
23246 # Generated by $as_me.
23247 # Run this file to recreate the current configuration.
23248 # Compiler output produced by configure, useful for debugging
23249 # configure, is in config.log if it exists.
23251 debug=false
23252 ac_cs_recheck=false
23253 ac_cs_silent=false
23255 SHELL=\${CONFIG_SHELL-$SHELL}
23256 export SHELL
23257 _ASEOF
23258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23259 ## -------------------- ##
23260 ## M4sh Initialization. ##
23261 ## -------------------- ##
23263 # Be more Bourne compatible
23264 DUALCASE=1; export DUALCASE # for MKS sh
23265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23266 emulate sh
23267 NULLCMD=:
23268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23269 # is contrary to our usage. Disable this feature.
23270 alias -g '${1+"$@"}'='"$@"'
23271 setopt NO_GLOB_SUBST
23272 else
23273 case `(set -o) 2>/dev/null` in #(
23274 *posix*) :
23275 set -o posix ;; #(
23276 *) :
23278 esac
23282 as_nl='
23284 export as_nl
23285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23289 # Prefer a ksh shell builtin over an external printf program on Solaris,
23290 # but without wasting forks for bash or zsh.
23291 if test -z "$BASH_VERSION$ZSH_VERSION" \
23292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23293 as_echo='print -r --'
23294 as_echo_n='print -rn --'
23295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23296 as_echo='printf %s\n'
23297 as_echo_n='printf %s'
23298 else
23299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23301 as_echo_n='/usr/ucb/echo -n'
23302 else
23303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23304 as_echo_n_body='eval
23305 arg=$1;
23306 case $arg in #(
23307 *"$as_nl"*)
23308 expr "X$arg" : "X\\(.*\\)$as_nl";
23309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23310 esac;
23311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23313 export as_echo_n_body
23314 as_echo_n='sh -c $as_echo_n_body as_echo'
23316 export as_echo_body
23317 as_echo='sh -c $as_echo_body as_echo'
23320 # The user is always right.
23321 if test "${PATH_SEPARATOR+set}" != set; then
23322 PATH_SEPARATOR=:
23323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23325 PATH_SEPARATOR=';'
23330 # IFS
23331 # We need space, tab and new line, in precisely that order. Quoting is
23332 # there to prevent editors from complaining about space-tab.
23333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23334 # splitting by setting IFS to empty value.)
23335 IFS=" "" $as_nl"
23337 # Find who we are. Look in the path if we contain no directory separator.
23338 as_myself=
23339 case $0 in #((
23340 *[\\/]* ) as_myself=$0 ;;
23341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342 for as_dir in $PATH
23344 IFS=$as_save_IFS
23345 test -z "$as_dir" && as_dir=.
23346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23347 done
23348 IFS=$as_save_IFS
23351 esac
23352 # We did not find ourselves, most probably we were run as `sh COMMAND'
23353 # in which case we are not to be found in the path.
23354 if test "x$as_myself" = x; then
23355 as_myself=$0
23357 if test ! -f "$as_myself"; then
23358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23359 exit 1
23362 # Unset variables that we do not need and which cause bugs (e.g. in
23363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23364 # suppresses any "Segmentation fault" message there. '((' could
23365 # trigger a bug in pdksh 5.2.14.
23366 for as_var in BASH_ENV ENV MAIL MAILPATH
23367 do eval test x\${$as_var+set} = xset \
23368 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23369 done
23370 PS1='$ '
23371 PS2='> '
23372 PS4='+ '
23374 # NLS nuisances.
23375 LC_ALL=C
23376 export LC_ALL
23377 LANGUAGE=C
23378 export LANGUAGE
23380 # CDPATH.
23381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23385 # ----------------------------------------
23386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23388 # script with STATUS, using 1 if that was 0.
23389 as_fn_error ()
23391 as_status=$1; test $as_status -eq 0 && as_status=1
23392 if test "$4"; then
23393 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23396 $as_echo "$as_me: error: $2" >&2
23397 as_fn_exit $as_status
23398 } # as_fn_error
23401 # as_fn_set_status STATUS
23402 # -----------------------
23403 # Set $? to STATUS, without forking.
23404 as_fn_set_status ()
23406 return $1
23407 } # as_fn_set_status
23409 # as_fn_exit STATUS
23410 # -----------------
23411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23412 as_fn_exit ()
23414 set +e
23415 as_fn_set_status $1
23416 exit $1
23417 } # as_fn_exit
23419 # as_fn_unset VAR
23420 # ---------------
23421 # Portably unset VAR.
23422 as_fn_unset ()
23424 { eval $1=; unset $1;}
23426 as_unset=as_fn_unset
23427 # as_fn_append VAR VALUE
23428 # ----------------------
23429 # Append the text in VALUE to the end of the definition contained in VAR. Take
23430 # advantage of any shell optimizations that allow amortized linear growth over
23431 # repeated appends, instead of the typical quadratic growth present in naive
23432 # implementations.
23433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23434 eval 'as_fn_append ()
23436 eval $1+=\$2
23438 else
23439 as_fn_append ()
23441 eval $1=\$$1\$2
23443 fi # as_fn_append
23445 # as_fn_arith ARG...
23446 # ------------------
23447 # Perform arithmetic evaluation on the ARGs, and store the result in the
23448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23449 # must be portable across $(()) and expr.
23450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23451 eval 'as_fn_arith ()
23453 as_val=$(( $* ))
23455 else
23456 as_fn_arith ()
23458 as_val=`expr "$@" || test $? -eq 1`
23460 fi # as_fn_arith
23463 if expr a : '\(a\)' >/dev/null 2>&1 &&
23464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23465 as_expr=expr
23466 else
23467 as_expr=false
23470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23471 as_basename=basename
23472 else
23473 as_basename=false
23476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23477 as_dirname=dirname
23478 else
23479 as_dirname=false
23482 as_me=`$as_basename -- "$0" ||
23483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23484 X"$0" : 'X\(//\)$' \| \
23485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23486 $as_echo X/"$0" |
23487 sed '/^.*\/\([^/][^/]*\)\/*$/{
23488 s//\1/
23491 /^X\/\(\/\/\)$/{
23492 s//\1/
23495 /^X\/\(\/\).*/{
23496 s//\1/
23499 s/.*/./; q'`
23501 # Avoid depending upon Character Ranges.
23502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23505 as_cr_digits='0123456789'
23506 as_cr_alnum=$as_cr_Letters$as_cr_digits
23508 ECHO_C= ECHO_N= ECHO_T=
23509 case `echo -n x` in #(((((
23510 -n*)
23511 case `echo 'xy\c'` in
23512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23513 xy) ECHO_C='\c';;
23514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23515 ECHO_T=' ';;
23516 esac;;
23518 ECHO_N='-n';;
23519 esac
23521 rm -f conf$$ conf$$.exe conf$$.file
23522 if test -d conf$$.dir; then
23523 rm -f conf$$.dir/conf$$.file
23524 else
23525 rm -f conf$$.dir
23526 mkdir conf$$.dir 2>/dev/null
23528 if (echo >conf$$.file) 2>/dev/null; then
23529 if ln -s conf$$.file conf$$ 2>/dev/null; then
23530 as_ln_s='ln -s'
23531 # ... but there are two gotchas:
23532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23534 # In both cases, we have to default to `cp -p'.
23535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23536 as_ln_s='cp -p'
23537 elif ln conf$$.file conf$$ 2>/dev/null; then
23538 as_ln_s=ln
23539 else
23540 as_ln_s='cp -p'
23542 else
23543 as_ln_s='cp -p'
23545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23546 rmdir conf$$.dir 2>/dev/null
23549 # as_fn_mkdir_p
23550 # -------------
23551 # Create "$as_dir" as a directory, including parents if necessary.
23552 as_fn_mkdir_p ()
23555 case $as_dir in #(
23556 -*) as_dir=./$as_dir;;
23557 esac
23558 test -d "$as_dir" || eval $as_mkdir_p || {
23559 as_dirs=
23560 while :; do
23561 case $as_dir in #(
23562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23563 *) as_qdir=$as_dir;;
23564 esac
23565 as_dirs="'$as_qdir' $as_dirs"
23566 as_dir=`$as_dirname -- "$as_dir" ||
23567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23568 X"$as_dir" : 'X\(//\)[^/]' \| \
23569 X"$as_dir" : 'X\(//\)$' \| \
23570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23571 $as_echo X"$as_dir" |
23572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23573 s//\1/
23576 /^X\(\/\/\)[^/].*/{
23577 s//\1/
23580 /^X\(\/\/\)$/{
23581 s//\1/
23584 /^X\(\/\).*/{
23585 s//\1/
23588 s/.*/./; q'`
23589 test -d "$as_dir" && break
23590 done
23591 test -z "$as_dirs" || eval "mkdir $as_dirs"
23592 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23595 } # as_fn_mkdir_p
23596 if mkdir -p . 2>/dev/null; then
23597 as_mkdir_p='mkdir -p "$as_dir"'
23598 else
23599 test -d ./-p && rmdir ./-p
23600 as_mkdir_p=false
23603 if test -x / >/dev/null 2>&1; then
23604 as_test_x='test -x'
23605 else
23606 if ls -dL / >/dev/null 2>&1; then
23607 as_ls_L_option=L
23608 else
23609 as_ls_L_option=
23611 as_test_x='
23612 eval sh -c '\''
23613 if test -d "$1"; then
23614 test -d "$1/.";
23615 else
23616 case $1 in #(
23617 -*)set "./$1";;
23618 esac;
23619 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23620 ???[sx]*):;;*)false;;esac;fi
23621 '\'' sh
23624 as_executable_p=$as_test_x
23626 # Sed expression to map a string onto a valid CPP name.
23627 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23629 # Sed expression to map a string onto a valid variable name.
23630 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23633 exec 6>&1
23634 ## ----------------------------------- ##
23635 ## Main body of $CONFIG_STATUS script. ##
23636 ## ----------------------------------- ##
23637 _ASEOF
23638 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23641 # Save the log message, to keep $0 and so on meaningful, and to
23642 # report actual input values of CONFIG_FILES etc. instead of their
23643 # values after options handling.
23644 ac_log="
23645 This file was extended by GRUB $as_me 2.00, which was
23646 generated by GNU Autoconf 2.68. Invocation command line was
23648 CONFIG_FILES = $CONFIG_FILES
23649 CONFIG_HEADERS = $CONFIG_HEADERS
23650 CONFIG_LINKS = $CONFIG_LINKS
23651 CONFIG_COMMANDS = $CONFIG_COMMANDS
23652 $ $0 $@
23654 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23657 _ACEOF
23659 case $ac_config_files in *"
23660 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23661 esac
23663 case $ac_config_headers in *"
23664 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23665 esac
23668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23669 # Files that config.status was made for.
23670 config_files="$ac_config_files"
23671 config_headers="$ac_config_headers"
23672 config_links="$ac_config_links"
23673 config_commands="$ac_config_commands"
23675 _ACEOF
23677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23678 ac_cs_usage="\
23679 \`$as_me' instantiates files and other configuration actions
23680 from templates according to the current configuration. Unless the files
23681 and actions are specified as TAGs, all are instantiated by default.
23683 Usage: $0 [OPTION]... [TAG]...
23685 -h, --help print this help, then exit
23686 -V, --version print version number and configuration settings, then exit
23687 --config print configuration, then exit
23688 -q, --quiet, --silent
23689 do not print progress messages
23690 -d, --debug don't remove temporary files
23691 --recheck update $as_me by reconfiguring in the same conditions
23692 --file=FILE[:TEMPLATE]
23693 instantiate the configuration file FILE
23694 --header=FILE[:TEMPLATE]
23695 instantiate the configuration header FILE
23697 Configuration files:
23698 $config_files
23700 Configuration headers:
23701 $config_headers
23703 Configuration links:
23704 $config_links
23706 Configuration commands:
23707 $config_commands
23709 Report bugs to <bug-grub@gnu.org>."
23711 _ACEOF
23712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23713 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23714 ac_cs_version="\\
23715 GRUB config.status 2.00
23716 configured by $0, generated by GNU Autoconf 2.68,
23717 with options \\"\$ac_cs_config\\"
23719 Copyright (C) 2010 Free Software Foundation, Inc.
23720 This config.status script is free software; the Free Software Foundation
23721 gives unlimited permission to copy, distribute and modify it."
23723 ac_pwd='$ac_pwd'
23724 srcdir='$srcdir'
23725 INSTALL='$INSTALL'
23726 MKDIR_P='$MKDIR_P'
23727 AWK='$AWK'
23728 test -n "\$AWK" || AWK=awk
23729 _ACEOF
23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23732 # The default lists apply if the user does not specify any file.
23733 ac_need_defaults=:
23734 while test $# != 0
23736 case $1 in
23737 --*=?*)
23738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23740 ac_shift=:
23742 --*=)
23743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23744 ac_optarg=
23745 ac_shift=:
23748 ac_option=$1
23749 ac_optarg=$2
23750 ac_shift=shift
23752 esac
23754 case $ac_option in
23755 # Handling of the options.
23756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23757 ac_cs_recheck=: ;;
23758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23759 $as_echo "$ac_cs_version"; exit ;;
23760 --config | --confi | --conf | --con | --co | --c )
23761 $as_echo "$ac_cs_config"; exit ;;
23762 --debug | --debu | --deb | --de | --d | -d )
23763 debug=: ;;
23764 --file | --fil | --fi | --f )
23765 $ac_shift
23766 case $ac_optarg in
23767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23768 '') as_fn_error $? "missing file argument" ;;
23769 esac
23770 as_fn_append CONFIG_FILES " '$ac_optarg'"
23771 ac_need_defaults=false;;
23772 --header | --heade | --head | --hea )
23773 $ac_shift
23774 case $ac_optarg in
23775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23776 esac
23777 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23778 ac_need_defaults=false;;
23779 --he | --h)
23780 # Conflict between --help and --header
23781 as_fn_error $? "ambiguous option: \`$1'
23782 Try \`$0 --help' for more information.";;
23783 --help | --hel | -h )
23784 $as_echo "$ac_cs_usage"; exit ;;
23785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23787 ac_cs_silent=: ;;
23789 # This is an error.
23790 -*) as_fn_error $? "unrecognized option: \`$1'
23791 Try \`$0 --help' for more information." ;;
23793 *) as_fn_append ac_config_targets " $1"
23794 ac_need_defaults=false ;;
23796 esac
23797 shift
23798 done
23800 ac_configure_extra_args=
23802 if $ac_cs_silent; then
23803 exec 6>/dev/null
23804 ac_configure_extra_args="$ac_configure_extra_args --silent"
23807 _ACEOF
23808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23809 if \$ac_cs_recheck; then
23810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23811 shift
23812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23813 CONFIG_SHELL='$SHELL'
23814 export CONFIG_SHELL
23815 exec "\$@"
23818 _ACEOF
23819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23820 exec 5>>config.log
23822 echo
23823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23824 ## Running $as_me. ##
23825 _ASBOX
23826 $as_echo "$ac_log"
23827 } >&5
23829 _ACEOF
23830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23832 # INIT-COMMANDS
23834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23835 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23836 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23837 # from automake < 1.5.
23838 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23839 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23840 LINGUAS="${LINGUAS-%UNSET%}"
23843 _ACEOF
23845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23847 # Handling of arguments.
23848 for ac_config_target in $ac_config_targets
23850 case $ac_config_target in
23851 "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
23852 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23853 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23854 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
23855 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
23856 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23857 "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
23858 "grub-core/gensyminfo.sh") CONFIG_FILES="$CONFIG_FILES grub-core/gensyminfo.sh" ;;
23859 "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
23860 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23861 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23862 "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
23863 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
23864 "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
23866 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23867 esac
23868 done
23871 # If the user did not use the arguments to specify the items to instantiate,
23872 # then the envvar interface is used. Set only those that are not.
23873 # We use the long form for the default assignment because of an extremely
23874 # bizarre bug on SunOS 4.1.3.
23875 if $ac_need_defaults; then
23876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23878 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23882 # Have a temporary directory for convenience. Make it in the build tree
23883 # simply because there is no reason against having it here, and in addition,
23884 # creating and moving files from /tmp can sometimes cause problems.
23885 # Hook for its removal unless debugging.
23886 # Note that there is a small window in which the directory will not be cleaned:
23887 # after its creation but before its name has been assigned to `$tmp'.
23888 $debug ||
23890 tmp= ac_tmp=
23891 trap 'exit_status=$?
23892 : "${ac_tmp:=$tmp}"
23893 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23895 trap 'as_fn_exit 1' 1 2 13 15
23897 # Create a (secure) tmp directory for tmp files.
23900 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23901 test -d "$tmp"
23902 } ||
23904 tmp=./conf$$-$RANDOM
23905 (umask 077 && mkdir "$tmp")
23906 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23907 ac_tmp=$tmp
23909 # Set up the scripts for CONFIG_FILES section.
23910 # No need to generate them if there are no CONFIG_FILES.
23911 # This happens for instance with `./config.status config.h'.
23912 if test -n "$CONFIG_FILES"; then
23915 ac_cr=`echo X | tr X '\015'`
23916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23917 # But we know of no other shell where ac_cr would be empty at this
23918 # point, so we can use a bashism as a fallback.
23919 if test "x$ac_cr" = x; then
23920 eval ac_cr=\$\'\\r\'
23922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23924 ac_cs_awk_cr='\\r'
23925 else
23926 ac_cs_awk_cr=$ac_cr
23929 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23930 _ACEOF
23934 echo "cat >conf$$subs.awk <<_ACEOF" &&
23935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23936 echo "_ACEOF"
23937 } >conf$$subs.sh ||
23938 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23940 ac_delim='%!_!# '
23941 for ac_last_try in false false false false false :; do
23942 . ./conf$$subs.sh ||
23943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23945 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23946 if test $ac_delim_n = $ac_delim_num; then
23947 break
23948 elif $ac_last_try; then
23949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23950 else
23951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23953 done
23954 rm -f conf$$subs.sh
23956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23957 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23958 _ACEOF
23959 sed -n '
23961 s/^/S["/; s/!.*/"]=/
23964 s/^[^!]*!//
23965 :repl
23966 t repl
23967 s/'"$ac_delim"'$//
23968 t delim
23971 s/\(.\{148\}\)..*/\1/
23972 t more1
23973 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23976 b repl
23977 :more1
23978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23981 s/.\{148\}//
23982 t nl
23983 :delim
23985 s/\(.\{148\}\)..*/\1/
23986 t more2
23987 s/["\\]/\\&/g; s/^/"/; s/$/"/
23990 :more2
23991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23994 s/.\{148\}//
23995 t delim
23996 ' <conf$$subs.awk | sed '
23997 /^[^""]/{
23999 s/\n//
24001 ' >>$CONFIG_STATUS || ac_write_fail=1
24002 rm -f conf$$subs.awk
24003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24004 _ACAWK
24005 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24006 for (key in S) S_is_set[key] = 1
24007 FS = "\a"
24011 line = $ 0
24012 nfields = split(line, field, "@")
24013 substed = 0
24014 len = length(field[1])
24015 for (i = 2; i < nfields; i++) {
24016 key = field[i]
24017 keylen = length(key)
24018 if (S_is_set[key]) {
24019 value = S[key]
24020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24021 len += length(value) + length(field[++i])
24022 substed = 1
24023 } else
24024 len += 1 + keylen
24027 print line
24030 _ACAWK
24031 _ACEOF
24032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24033 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24035 else
24037 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24038 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24039 _ACEOF
24041 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24042 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24043 # trailing colons and then remove the whole line if VPATH becomes empty
24044 # (actually we leave an empty line to preserve line numbers).
24045 if test "x$srcdir" = x.; then
24046 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24048 s///
24049 s/^/:/
24050 s/[ ]*$/:/
24051 s/:\$(srcdir):/:/g
24052 s/:\${srcdir}:/:/g
24053 s/:@srcdir@:/:/g
24054 s/^:*//
24055 s/:*$//
24057 s/\(=[ ]*\).*/\1/
24059 s/\n//
24060 s/^[^=]*=[ ]*$//
24064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24065 fi # test -n "$CONFIG_FILES"
24067 # Set up the scripts for CONFIG_HEADERS section.
24068 # No need to generate them if there are no CONFIG_HEADERS.
24069 # This happens for instance with `./config.status Makefile'.
24070 if test -n "$CONFIG_HEADERS"; then
24071 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24072 BEGIN {
24073 _ACEOF
24075 # Transform confdefs.h into an awk script `defines.awk', embedded as
24076 # here-document in config.status, that substitutes the proper values into
24077 # config.h.in to produce config.h.
24079 # Create a delimiter string that does not exist in confdefs.h, to ease
24080 # handling of long lines.
24081 ac_delim='%!_!# '
24082 for ac_last_try in false false :; do
24083 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24084 if test -z "$ac_tt"; then
24085 break
24086 elif $ac_last_try; then
24087 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24088 else
24089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24091 done
24093 # For the awk script, D is an array of macro values keyed by name,
24094 # likewise P contains macro parameters if any. Preserve backslash
24095 # newline sequences.
24097 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24098 sed -n '
24099 s/.\{148\}/&'"$ac_delim"'/g
24100 t rset
24101 :rset
24102 s/^[ ]*#[ ]*define[ ][ ]*/ /
24103 t def
24105 :def
24106 s/\\$//
24107 t bsnl
24108 s/["\\]/\\&/g
24109 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24110 D["\1"]=" \3"/p
24111 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24113 :bsnl
24114 s/["\\]/\\&/g
24115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24116 D["\1"]=" \3\\\\\\n"\\/p
24117 t cont
24118 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24119 t cont
24121 :cont
24123 s/.\{148\}/&'"$ac_delim"'/g
24124 t clear
24125 :clear
24126 s/\\$//
24127 t bsnlc
24128 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24130 :bsnlc
24131 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24132 b cont
24133 ' <confdefs.h | sed '
24134 s/'"$ac_delim"'/"\\\
24135 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24138 for (key in D) D_is_set[key] = 1
24139 FS = "\a"
24141 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24142 line = \$ 0
24143 split(line, arg, " ")
24144 if (arg[1] == "#") {
24145 defundef = arg[2]
24146 mac1 = arg[3]
24147 } else {
24148 defundef = substr(arg[1], 2)
24149 mac1 = arg[2]
24151 split(mac1, mac2, "(") #)
24152 macro = mac2[1]
24153 prefix = substr(line, 1, index(line, defundef) - 1)
24154 if (D_is_set[macro]) {
24155 # Preserve the white space surrounding the "#".
24156 print prefix "define", macro P[macro] D[macro]
24157 next
24158 } else {
24159 # Replace #undef with comments. This is necessary, for example,
24160 # in the case of _POSIX_SOURCE, which is predefined and required
24161 # on some systems where configure will not decide to define it.
24162 if (defundef == "undef") {
24163 print "/*", prefix defundef, macro, "*/"
24164 next
24168 { print }
24169 _ACAWK
24170 _ACEOF
24171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24172 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24173 fi # test -n "$CONFIG_HEADERS"
24176 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
24177 shift
24178 for ac_tag
24180 case $ac_tag in
24181 :[FHLC]) ac_mode=$ac_tag; continue;;
24182 esac
24183 case $ac_mode$ac_tag in
24184 :[FHL]*:*);;
24185 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24186 :[FH]-) ac_tag=-:-;;
24187 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24188 esac
24189 ac_save_IFS=$IFS
24190 IFS=:
24191 set x $ac_tag
24192 IFS=$ac_save_IFS
24193 shift
24194 ac_file=$1
24195 shift
24197 case $ac_mode in
24198 :L) ac_source=$1;;
24199 :[FH])
24200 ac_file_inputs=
24201 for ac_f
24203 case $ac_f in
24204 -) ac_f="$ac_tmp/stdin";;
24205 *) # Look for the file first in the build tree, then in the source tree
24206 # (if the path is not absolute). The absolute path cannot be DOS-style,
24207 # because $ac_f cannot contain `:'.
24208 test -f "$ac_f" ||
24209 case $ac_f in
24210 [\\/$]*) false;;
24211 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24212 esac ||
24213 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24214 esac
24215 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24216 as_fn_append ac_file_inputs " '$ac_f'"
24217 done
24219 # Let's still pretend it is `configure' which instantiates (i.e., don't
24220 # use $as_me), people would be surprised to read:
24221 # /* config.h. Generated by config.status. */
24222 configure_input='Generated from '`
24223 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24224 `' by configure.'
24225 if test x"$ac_file" != x-; then
24226 configure_input="$ac_file. $configure_input"
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24228 $as_echo "$as_me: creating $ac_file" >&6;}
24230 # Neutralize special characters interpreted by sed in replacement strings.
24231 case $configure_input in #(
24232 *\&* | *\|* | *\\* )
24233 ac_sed_conf_input=`$as_echo "$configure_input" |
24234 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24235 *) ac_sed_conf_input=$configure_input;;
24236 esac
24238 case $ac_tag in
24239 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24241 esac
24243 esac
24245 ac_dir=`$as_dirname -- "$ac_file" ||
24246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247 X"$ac_file" : 'X\(//\)[^/]' \| \
24248 X"$ac_file" : 'X\(//\)$' \| \
24249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24250 $as_echo X"$ac_file" |
24251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24252 s//\1/
24255 /^X\(\/\/\)[^/].*/{
24256 s//\1/
24259 /^X\(\/\/\)$/{
24260 s//\1/
24263 /^X\(\/\).*/{
24264 s//\1/
24267 s/.*/./; q'`
24268 as_dir="$ac_dir"; as_fn_mkdir_p
24269 ac_builddir=.
24271 case "$ac_dir" in
24272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24274 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24275 # A ".." for each directory in $ac_dir_suffix.
24276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24277 case $ac_top_builddir_sub in
24278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24280 esac ;;
24281 esac
24282 ac_abs_top_builddir=$ac_pwd
24283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24284 # for backward compatibility:
24285 ac_top_builddir=$ac_top_build_prefix
24287 case $srcdir in
24288 .) # We are building in place.
24289 ac_srcdir=.
24290 ac_top_srcdir=$ac_top_builddir_sub
24291 ac_abs_top_srcdir=$ac_pwd ;;
24292 [\\/]* | ?:[\\/]* ) # Absolute name.
24293 ac_srcdir=$srcdir$ac_dir_suffix;
24294 ac_top_srcdir=$srcdir
24295 ac_abs_top_srcdir=$srcdir ;;
24296 *) # Relative name.
24297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24298 ac_top_srcdir=$ac_top_build_prefix$srcdir
24299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24300 esac
24301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24304 case $ac_mode in
24307 # CONFIG_FILE
24310 case $INSTALL in
24311 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24312 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24313 esac
24314 ac_MKDIR_P=$MKDIR_P
24315 case $MKDIR_P in
24316 [\\/$]* | ?:[\\/]* ) ;;
24317 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24318 esac
24319 _ACEOF
24321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24322 # If the template does not know about datarootdir, expand it.
24323 # FIXME: This hack should be removed a few years after 2.60.
24324 ac_datarootdir_hack=; ac_datarootdir_seen=
24325 ac_sed_dataroot='
24326 /datarootdir/ {
24330 /@datadir@/p
24331 /@docdir@/p
24332 /@infodir@/p
24333 /@localedir@/p
24334 /@mandir@/p'
24335 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24336 *datarootdir*) ac_datarootdir_seen=yes;;
24337 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24339 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24340 _ACEOF
24341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24342 ac_datarootdir_hack='
24343 s&@datadir@&$datadir&g
24344 s&@docdir@&$docdir&g
24345 s&@infodir@&$infodir&g
24346 s&@localedir@&$localedir&g
24347 s&@mandir@&$mandir&g
24348 s&\\\${datarootdir}&$datarootdir&g' ;;
24349 esac
24350 _ACEOF
24352 # Neutralize VPATH when `$srcdir' = `.'.
24353 # Shell code in configure.ac might set extrasub.
24354 # FIXME: do we really want to maintain this feature?
24355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24356 ac_sed_extra="$ac_vpsub
24357 $extrasub
24358 _ACEOF
24359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24362 s|@configure_input@|$ac_sed_conf_input|;t t
24363 s&@top_builddir@&$ac_top_builddir_sub&;t t
24364 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24365 s&@srcdir@&$ac_srcdir&;t t
24366 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24367 s&@top_srcdir@&$ac_top_srcdir&;t t
24368 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24369 s&@builddir@&$ac_builddir&;t t
24370 s&@abs_builddir@&$ac_abs_builddir&;t t
24371 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24372 s&@INSTALL@&$ac_INSTALL&;t t
24373 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24374 $ac_datarootdir_hack
24376 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24377 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24379 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24380 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24381 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24382 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24384 which seems to be undefined. Please make sure it is defined" >&5
24385 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24386 which seems to be undefined. Please make sure it is defined" >&2;}
24388 rm -f "$ac_tmp/stdin"
24389 case $ac_file in
24390 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24391 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24392 esac \
24393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24397 # CONFIG_HEADER
24399 if test x"$ac_file" != x-; then
24401 $as_echo "/* $configure_input */" \
24402 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24403 } >"$ac_tmp/config.h" \
24404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24405 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24407 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24408 else
24409 rm -f "$ac_file"
24410 mv "$ac_tmp/config.h" "$ac_file" \
24411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24413 else
24414 $as_echo "/* $configure_input */" \
24415 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24416 || as_fn_error $? "could not create -" "$LINENO" 5
24418 # Compute "$ac_file"'s index in $config_headers.
24419 _am_arg="$ac_file"
24420 _am_stamp_count=1
24421 for _am_header in $config_headers :; do
24422 case $_am_header in
24423 $_am_arg | $_am_arg:* )
24424 break ;;
24426 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24427 esac
24428 done
24429 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24430 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24431 X"$_am_arg" : 'X\(//\)[^/]' \| \
24432 X"$_am_arg" : 'X\(//\)$' \| \
24433 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24434 $as_echo X"$_am_arg" |
24435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24436 s//\1/
24439 /^X\(\/\/\)[^/].*/{
24440 s//\1/
24443 /^X\(\/\/\)$/{
24444 s//\1/
24447 /^X\(\/\).*/{
24448 s//\1/
24451 s/.*/./; q'`/stamp-h$_am_stamp_count
24455 # CONFIG_LINK
24458 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
24460 else
24461 # Prefer the file from the source tree if names are identical.
24462 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
24463 ac_source=$srcdir/$ac_source
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
24467 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
24469 if test ! -r "$ac_source"; then
24470 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
24472 rm -f "$ac_file"
24474 # Try a relative symlink, then a hard link, then a copy.
24475 case $ac_source in
24476 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
24477 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
24478 esac
24479 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
24480 ln "$ac_source" "$ac_file" 2>/dev/null ||
24481 cp -p "$ac_source" "$ac_file" ||
24482 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
24485 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24486 $as_echo "$as_me: executing $ac_file commands" >&6;}
24488 esac
24491 case $ac_file$ac_mode in
24492 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24493 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24494 # are listed without --file. Let's play safe and only enable the eval
24495 # if we detect the quoting.
24496 case $CONFIG_FILES in
24497 *\'*) eval set x "$CONFIG_FILES" ;;
24498 *) set x $CONFIG_FILES ;;
24499 esac
24500 shift
24501 for mf
24503 # Strip MF so we end up with the name of the file.
24504 mf=`echo "$mf" | sed -e 's/:.*$//'`
24505 # Check whether this is an Automake generated Makefile or not.
24506 # We used to match only the files named `Makefile.in', but
24507 # some people rename them; so instead we look at the file content.
24508 # Grep'ing the first line is not enough: some people post-process
24509 # each Makefile.in and add a new line on top of each file to say so.
24510 # Grep'ing the whole file is not good either: AIX grep has a line
24511 # limit of 2048, but all sed's we know have understand at least 4000.
24512 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24513 dirpart=`$as_dirname -- "$mf" ||
24514 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24515 X"$mf" : 'X\(//\)[^/]' \| \
24516 X"$mf" : 'X\(//\)$' \| \
24517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24518 $as_echo X"$mf" |
24519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24520 s//\1/
24523 /^X\(\/\/\)[^/].*/{
24524 s//\1/
24527 /^X\(\/\/\)$/{
24528 s//\1/
24531 /^X\(\/\).*/{
24532 s//\1/
24535 s/.*/./; q'`
24536 else
24537 continue
24539 # Extract the definition of DEPDIR, am__include, and am__quote
24540 # from the Makefile without running `make'.
24541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24542 test -z "$DEPDIR" && continue
24543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24544 test -z "am__include" && continue
24545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24546 # When using ansi2knr, U may be empty or an underscore; expand it
24547 U=`sed -n 's/^U = //p' < "$mf"`
24548 # Find all dependency output files, they are included files with
24549 # $(DEPDIR) in their names. We invoke sed twice because it is the
24550 # simplest approach to changing $(DEPDIR) to its actual value in the
24551 # expansion.
24552 for file in `sed -n "
24553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24555 # Make sure the directory exists.
24556 test -f "$dirpart/$file" && continue
24557 fdir=`$as_dirname -- "$file" ||
24558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24559 X"$file" : 'X\(//\)[^/]' \| \
24560 X"$file" : 'X\(//\)$' \| \
24561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24562 $as_echo X"$file" |
24563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24564 s//\1/
24567 /^X\(\/\/\)[^/].*/{
24568 s//\1/
24571 /^X\(\/\/\)$/{
24572 s//\1/
24575 /^X\(\/\).*/{
24576 s//\1/
24579 s/.*/./; q'`
24580 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24581 # echo "creating $dirpart/$file"
24582 echo '# dummy' > "$dirpart/$file"
24583 done
24584 done
24587 "po-directories":C)
24588 for ac_file in $CONFIG_FILES; do
24589 # Support "outfile[:infile[:infile...]]"
24590 case "$ac_file" in
24591 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24592 esac
24593 # PO directories have a Makefile.in generated from Makefile.in.in.
24594 case "$ac_file" in */Makefile.in)
24595 # Adjust a relative srcdir.
24596 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24597 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24598 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24599 # In autoconf-2.13 it is called $ac_given_srcdir.
24600 # In autoconf-2.50 it is called $srcdir.
24601 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24602 case "$ac_given_srcdir" in
24603 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24604 /*) top_srcdir="$ac_given_srcdir" ;;
24605 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24606 esac
24607 # Treat a directory as a PO directory if and only if it has a
24608 # POTFILES.in file. This allows packages to have multiple PO
24609 # directories under different names or in different locations.
24610 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24611 rm -f "$ac_dir/POTFILES"
24612 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24613 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24614 POMAKEFILEDEPS="POTFILES.in"
24615 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24616 # on $ac_dir but don't depend on user-specified configuration
24617 # parameters.
24618 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24619 # The LINGUAS file contains the set of available languages.
24620 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24621 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24623 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24624 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24625 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24626 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24627 else
24628 # The set of available languages was given in configure.in.
24629 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24630 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24632 # Compute POFILES
24633 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24634 # Compute UPDATEPOFILES
24635 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24636 # Compute DUMMYPOFILES
24637 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24638 # Compute GMOFILES
24639 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24640 case "$ac_given_srcdir" in
24641 .) srcdirpre= ;;
24642 *) srcdirpre='$(srcdir)/' ;;
24643 esac
24644 POFILES=
24645 UPDATEPOFILES=
24646 DUMMYPOFILES=
24647 GMOFILES=
24648 for lang in $ALL_LINGUAS; do
24649 POFILES="$POFILES $srcdirpre$lang.po"
24650 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24651 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24652 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24653 done
24654 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24655 # environment variable.
24656 INST_LINGUAS=
24657 if test -n "$ALL_LINGUAS"; then
24658 for presentlang in $ALL_LINGUAS; do
24659 useit=no
24660 if test "%UNSET%" != "$LINGUAS"; then
24661 desiredlanguages="$LINGUAS"
24662 else
24663 desiredlanguages="$ALL_LINGUAS"
24665 for desiredlang in $desiredlanguages; do
24666 # Use the presentlang catalog if desiredlang is
24667 # a. equal to presentlang, or
24668 # b. a variant of presentlang (because in this case,
24669 # presentlang can be used as a fallback for messages
24670 # which are not translated in the desiredlang catalog).
24671 case "$desiredlang" in
24672 "$presentlang"*) useit=yes;;
24673 esac
24674 done
24675 if test $useit = yes; then
24676 INST_LINGUAS="$INST_LINGUAS $presentlang"
24678 done
24680 CATALOGS=
24681 if test -n "$INST_LINGUAS"; then
24682 for lang in $INST_LINGUAS; do
24683 CATALOGS="$CATALOGS $lang.gmo"
24684 done
24686 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24687 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24688 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24689 if test -f "$f"; then
24690 case "$f" in
24691 *.orig | *.bak | *~) ;;
24692 *) cat "$f" >> "$ac_dir/Makefile" ;;
24693 esac
24695 done
24698 esac
24699 done ;;
24700 "stamp-h":F) echo timestamp > stamp-h ;;
24702 esac
24703 done # for ac_tag
24706 as_fn_exit 0
24707 _ACEOF
24708 ac_clean_files=$ac_clean_files_save
24710 test $ac_write_fail = 0 ||
24711 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24714 # configure is writing to config.log, and then calls config.status.
24715 # config.status does its own redirection, appending to config.log.
24716 # Unfortunately, on DOS this fails, as config.log is still kept open
24717 # by configure, so config.status won't be able to write to it; its
24718 # output is simply discarded. So we exec the FD to /dev/null,
24719 # effectively closing config.log, so it can be properly (re)opened and
24720 # appended to by config.status. When coming back to configure, we
24721 # need to make the FD available again.
24722 if test "$no_create" != yes; then
24723 ac_cs_success=:
24724 ac_config_status_args=
24725 test "$silent" = yes &&
24726 ac_config_status_args="$ac_config_status_args --quiet"
24727 exec 5>/dev/null
24728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24729 exec 5>>config.log
24730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24731 # would make configure fail if this is the last instruction.
24732 $ac_cs_success || as_fn_exit 1
24734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24740 echo "*******************************************************"
24741 echo GRUB2 will be compiled with following components:
24742 echo Platform: "$target_cpu"-"$platform"
24743 if [ x"$platform" = xemu ]; then
24744 if [ x"$grub_emu_usb_excuse" = x ]; then
24745 echo USB support for grub-emu: Yes
24746 else
24747 echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
24749 if [ x"$grub_emu_sdl_excuse" = x ]; then
24750 echo SDL support for grub-emu: Yes
24751 else
24752 echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
24754 if [ x"$grub_emu_pci_excuse" = x ]; then
24755 echo PCI support for grub-emu: Yes
24756 else
24757 echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
24760 if test x"$device_mapper_excuse" = x ; then
24761 echo With devmapper support: Yes
24762 else
24763 echo With devmapper support: No "($device_mapper_excuse)"
24765 if [ x"$enable_mm_debug" = xyes ]; then
24766 echo With memory debugging: Yes
24767 else
24768 echo With memory debugging: No
24770 if [ x"$enable_cache_stats" = xyes ]; then
24771 echo With disk cache statistics: Yes
24772 else
24773 echo With disk cache statistics: No
24775 if [ x"$efiemu_excuse" = x ]; then
24776 echo efiemu runtime: Yes
24777 else
24778 echo efiemu runtime: No "($efiemu_excuse)"
24780 if [ x"$grub_mkfont_excuse" = x ]; then
24781 echo grub-mkfont: Yes
24782 else
24783 echo grub-mkfont: No "($grub_mkfont_excuse)"
24785 if [ x"$grub_mount_excuse" = x ]; then
24786 echo grub-mount: Yes
24787 else
24788 echo grub-mount: No "($grub_mount_excuse)"
24790 if [ x"$starfield_excuse" = x ]; then
24791 echo starfield theme: Yes
24792 else
24793 echo starfield theme: No "($starfield_excuse)"
24795 if [ x"$libzfs_excuse" = x ]; then
24796 echo With libzfs support: Yes
24797 else
24798 echo With libzfs support: No "($libzfs_excuse)"
24800 echo "*******************************************************"