GRUB-1.98 changes
[grub2/jjazz.git] / autom4te.cache / output.0
blob68d520843342e7538a35777551f7699f65150938
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.65 for GRUB 1.98.
4 @%:@
5 @%:@ Report bugs to <bug-grub@gnu.org>.
6 @%:@ 
7 @%:@ 
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 @%:@ Inc.
11 @%:@ 
12 @%:@ 
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   *) :
33      ;;
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"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
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=';'
82   }
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 case $0 in @%:@((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in @%:@(
148   *posix*) :
149     set -o posix ;; @%:@(
150   *) :
151      ;;
152 esac
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167   
168 else
169   exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183   
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in @%:@(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238   fi
239   exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 @%:@ as_fn_unset VAR
253 @%:@ ---------------
254 @%:@ Portably unset VAR.
255 as_fn_unset ()
257   { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 @%:@ as_fn_set_status STATUS
262 @%:@ -----------------------
263 @%:@ Set @S|@? to STATUS, without forking.
264 as_fn_set_status ()
266   return $1
267 } @%:@ as_fn_set_status
269 @%:@ as_fn_exit STATUS
270 @%:@ -----------------
271 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } @%:@ as_fn_exit
279 @%:@ as_fn_mkdir_p
280 @%:@ -------------
281 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } @%:@ as_fn_mkdir_p
326 @%:@ as_fn_append VAR VALUE
327 @%:@ ----------------------
328 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
329 @%:@ advantage of any shell optimizations that allow amortized linear growth over
330 @%:@ repeated appends, instead of the typical quadratic growth present in naive
331 @%:@ implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
344 @%:@ as_fn_arith ARG...
345 @%:@ ------------------
346 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
347 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
348 @%:@ must be portable across @S|@(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
362 @%:@ as_fn_error ERROR [LINENO LOG_FD]
363 @%:@ ---------------------------------
364 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 @%:@ script with status @S|@?, using 1 if that was 0.
367 as_fn_error ()
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } @%:@ as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in @%:@(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
465   ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in @%:@(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIB@&t@OBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='GRUB'
554 PACKAGE_TARNAME='grub'
555 PACKAGE_VERSION='1.98'
556 PACKAGE_STRING='GRUB 1.98'
557 PACKAGE_BUGREPORT='bug-grub@gnu.org'
558 PACKAGE_URL=''
560 ac_unique_file="include/grub/dl.h"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 gt_needs=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 LIB@&t@OBJS
602 ASFLAGS
603 freetype_libs
604 freetype_cflags
605 enable_grub_mkfont
606 FREETYPE
607 enable_grub_fstest
608 enable_grub_emu_pci
609 enable_grub_emu_usb
610 enable_grub_emu_sdl
611 LIBPCIACCESS
612 LIBSDL
613 LIBUSB
614 LIBCURSES
615 enable_efiemu
616 TARGET_LDFLAGS
617 TARGET_CPPFLAGS
618 TARGET_ASFLAGS
619 TARGET_APPLE_CC
620 TARGET_MODULE_FORMAT
621 TARGET_CFLAGS
622 TARGET_OBJ2ELF
623 TARGET_IMG_CFLAGS
624 TARGET_IMG_LDFLAGS
625 TARGET_IMG_LDSCRIPT
626 OBJCONV
628 OBJCOPY
629 ac_ct_TARGET_CC
630 TARGET_CC
631 HELP2MAN
632 POSUB
633 LTLIBINTL
634 LIBINTL
635 INTLLIBS
636 LTLIBICONV
637 LIBICONV
638 INTL_MACOSX_LIBS
639 XGETTEXT_EXTRA_OPTIONS
640 MSGMERGE
641 XGETTEXT_015
642 XGETTEXT
643 GMSGFMT_015
644 MSGFMT_015
645 GMSGFMT
646 MSGFMT
647 GETTEXT_MACRO_VERSION
648 USE_NLS
649 EGREP
650 GREP
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
668 RUBY
669 FONT_SOURCE
670 YACC
672 platform
673 host_kernel
674 target_os
675 target_vendor
676 target_cpu
677 target
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 with_platform
751 enable_dependency_tracking
752 enable_nls
753 with_gnu_ld
754 enable_rpath
755 with_libiconv_prefix
756 with_libintl_prefix
757 enable_largefile
758 enable_werror
759 enable_efiemu
760 enable_mm_debug
761 enable_grub_emu_usb
762 enable_grub_emu_sdl
763 enable_grub_emu_pci
764 enable_grub_fstest
765 enable_grub_mkfont
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP'
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
837   case $ac_option in
838   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *)    ac_optarg=yes ;;
840   esac
842   # Accept the important Cygnus configure options, so we can diagnose typos.
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
865   --config-cache | -C)
866     cache_file=config.cache ;;
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
880   -disable-* | --disable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=no ;;
896   -docdir | --docdir | --docdi | --doc | --do)
897     ac_prev=docdir ;;
898   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899     docdir=$ac_optarg ;;
901   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902     ac_prev=dvidir ;;
903   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904     dvidir=$ac_optarg ;;
906   -enable-* | --enable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=\$ac_optarg ;;
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1110   -with-* | --with-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1160   -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1162     ;;
1164   *=*)
1165     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166     # Reject names that are not valid shell variable names.
1167     case $ac_envvar in #(
1168       '' | [0-9]* | *[!_$as_cr_alnum]* )
1169       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1170     esac
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180     ;;
1182   esac
1183 done
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   as_fn_error "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191   case $enable_option_checking in
1192     no) ;;
1193     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195   esac
1198 # Check all directory arguments for consistency.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1204   eval ac_val=\$$ac_var
1205   # Remove trailing slashes.
1206   case $ac_val in
1207     */ )
1208       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209       eval $ac_var=\$ac_val;;
1210   esac
1211   # Be sure to have absolute directory names.
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   as_fn_error "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$as_myself" : 'X\(//\)[^/]' \| \
1258          X"$as_myself" : 'X\(//\)$' \| \
1259          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures GRUB 1.98 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           @<:@@S|@ac_default_prefix@:>@
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           @<:@PREFIX@:>@
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351   --bindir=DIR            user executables [EPREFIX/bin]
1352   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR        program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR            object code libraries [EPREFIX/lib]
1358   --includedir=DIR        C header files [PREFIX/include]
1359   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR           info documentation [DATAROOTDIR/info]
1363   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR            man documentation [DATAROOTDIR/man]
1365   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/grub@:>@
1366   --htmldir=DIR           html documentation [DOCDIR]
1367   --dvidir=DIR            dvi documentation [DOCDIR]
1368   --pdfdir=DIR            pdf documentation [DOCDIR]
1369   --psdir=DIR             ps documentation [DOCDIR]
1370 _ACEOF
1372   cat <<\_ACEOF
1374 Program names:
1375   --program-prefix=PREFIX            prepend PREFIX to installed program names
1376   --program-suffix=SUFFIX            append SUFFIX to installed program names
1377   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of GRUB 1.98:";;
1389    esac
1390   cat <<\_ACEOF
1392 Optional Features:
1393   --disable-option-checking  ignore unrecognized --enable/--with options
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --disable-dependency-tracking  speeds up one-time build
1397   --enable-dependency-tracking   do not reject slow dependency extractors
1398   --disable-nls           do not use Native Language Support
1399   --disable-rpath         do not hardcode runtime library paths
1400   --disable-largefile     omit support for large files
1401   --disable-werror        do not use -Werror when building GRUB
1402   --enable-efiemu         build and install the efiemu runtimes
1403                           (default=guessed)
1404   --enable-mm-debug       include memory manager debugging
1405   --enable-grub-emu-usb   build and install the `grub-emu' debugging utility
1406                           with USB support (default=guessed)
1407   --enable-grub-emu-sdl   build and install the `grub-emu' debugging utility
1408                           with SDL support (default=guessed)
1409   --enable-grub-emu-pci   build and install the `grub-emu' debugging utility
1410                           with PCI support (potentially dangerous)
1411                           (default=no)
1412   --enable-grub-fstest    build and install the `grub-fstest' debugging
1413                           utility (default=guessed)
1414   --enable-grub-mkfont    build and install the `grub-mkfont' utility
1415                           (default=guessed)
1417 Optional Packages:
1418   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420   --with-platform=PLATFORM 
1421                           select the host platform @<:@@<:@guessed@:>@@:>@
1422   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1423   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1424   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1425   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1426   --without-libintl-prefix     don't search for libintl in includedir and libdir
1428 Some influential environment variables:
1429   CC          C compiler command
1430   CFLAGS      C compiler flags
1431   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1432               nonstandard directory <lib dir>
1433   LIBS        libraries to pass to the linker, e.g. -l<library>
1434   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435               you have headers in a nonstandard directory <include dir>
1436   CPP         C preprocessor
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <bug-grub@gnu.org>.
1442 _ACEOF
1443 ac_status=$?
1446 if test "$ac_init_help" = "recursive"; then
1447   # If there are subdirs, report their specific --help.
1448   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449     test -d "$ac_dir" ||
1450       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451       continue
1452     ac_builddir=.
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458   # A ".." for each directory in $ac_dir_suffix.
1459   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460   case $ac_top_builddir_sub in
1461   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463   esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1470 case $srcdir in
1471   .)  # We are building in place.
1472     ac_srcdir=.
1473     ac_top_srcdir=$ac_top_builddir_sub
1474     ac_abs_top_srcdir=$ac_pwd ;;
1475   [\\/]* | ?:[\\/]* )  # Absolute name.
1476     ac_srcdir=$srcdir$ac_dir_suffix;
1477     ac_top_srcdir=$srcdir
1478     ac_abs_top_srcdir=$srcdir ;;
1479   *) # Relative name.
1480     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481     ac_top_srcdir=$ac_top_build_prefix$srcdir
1482     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486     cd "$ac_dir" || { ac_status=$?; continue; }
1487     # Check for guested configure.
1488     if test -f "$ac_srcdir/configure.gnu"; then
1489       echo &&
1490       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491     elif test -f "$ac_srcdir/configure"; then
1492       echo &&
1493       $SHELL "$ac_srcdir/configure" --help=recursive
1494     else
1495       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496     fi || ac_status=$?
1497     cd "$ac_pwd" || { ac_status=$?; break; }
1498   done
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503   cat <<\_ACEOF
1504 GRUB configure 1.98
1505 generated by GNU Autoconf 2.65
1507 Copyright (C) 2009 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511   exit
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1518 @%:@ ac_fn_c_try_compile LINENO
1519 @%:@ --------------------------
1520 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524   rm -f conftest.$ac_objext
1525   if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528   *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532   (eval "$ac_compile") 2>conftest.err
1533   ac_status=$?
1534   if test -s conftest.err; then
1535     grep -v '^ *+' conftest.err >conftest.er1
1536     cat conftest.er1 >&5
1537     mv -f conftest.er1 conftest.err
1538   fi
1539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540   test $ac_status = 0; } && {
1541          test -z "$ac_c_werror_flag" ||
1542          test ! -s conftest.err
1543        } && test -s conftest.$ac_objext; then :
1544   ac_retval=0
1545 else
1546   $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549         ac_retval=1
1551   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552   as_fn_set_status $ac_retval
1554 } @%:@ ac_fn_c_try_compile
1556 @%:@ ac_fn_c_try_cpp LINENO
1557 @%:@ ----------------------
1558 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_cpp ()
1561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562   if { { ac_try="$ac_cpp conftest.$ac_ext"
1563 case "(($ac_try" in
1564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565   *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570   ac_status=$?
1571   if test -s conftest.err; then
1572     grep -v '^ *+' conftest.err >conftest.er1
1573     cat conftest.er1 >&5
1574     mv -f conftest.er1 conftest.err
1575   fi
1576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577   test $ac_status = 0; } >/dev/null && {
1578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579          test ! -s conftest.err
1580        }; then :
1581   ac_retval=0
1582 else
1583   $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586     ac_retval=1
1588   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589   as_fn_set_status $ac_retval
1591 } @%:@ ac_fn_c_try_cpp
1593 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1594 @%:@ -------------------------------------------------------
1595 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1596 @%:@ the include files in INCLUDES and setting the cache variable VAR
1597 @%:@ accordingly.
1598 ac_fn_c_check_header_mongrel ()
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605   $as_echo_n "(cached) " >&6
1607 eval ac_res=\$$3
1608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 else
1611   # Is the header compilable?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1613 $as_echo_n "checking $2 usability... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h.  */
1617 @%:@include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620   ac_header_compiler=yes
1621 else
1622   ac_header_compiler=no
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1626 $as_echo "$ac_header_compiler" >&6; }
1628 # Is the header present?
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1630 $as_echo_n "checking $2 presence... " >&6; }
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h.  */
1633 @%:@include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_cpp "$LINENO"; then :
1636   ac_header_preproc=yes
1637 else
1638   ac_header_preproc=no
1640 rm -f conftest.err conftest.$ac_ext
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1642 $as_echo "$ac_header_preproc" >&6; }
1644 # So?  What about this header?
1645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1646   yes:no: )
1647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1648 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651     ;;
1652   no:yes:* )
1653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1654 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1656 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1658 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1660 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663 ( cat <<\_ASBOX
1664 ## ------------------------------- ##
1665 ## Report this to bug-grub@gnu.org ##
1666 ## ------------------------------- ##
1667 _ASBOX
1668      ) | sed "s/^/$as_me: WARNING:     /" >&2
1669     ;;
1670 esac
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674   $as_echo_n "(cached) " >&6
1675 else
1676   eval "$3=\$ac_header_compiler"
1678 eval ac_res=\$$3
1679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1682   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 } @%:@ ac_fn_c_check_header_mongrel
1686 @%:@ ac_fn_c_try_run LINENO
1687 @%:@ ----------------------
1688 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1689 @%:@ that executables *can* be run.
1690 ac_fn_c_try_run ()
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_link") 2>&5
1701   ac_status=$?
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704   { { case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_try") 2>&5
1711   ac_status=$?
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; }; }; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: program exited with status $ac_status" >&5
1717        $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720        ac_retval=$ac_status
1722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724   as_fn_set_status $ac_retval
1726 } @%:@ ac_fn_c_try_run
1728 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 @%:@ -------------------------------------------------------
1730 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1731 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738   $as_echo_n "(cached) " >&6
1739 else
1740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h.  */
1743 @%:@include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746   eval "$3=yes"
1747 else
1748   eval "$3=no"
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 eval ac_res=\$$3
1753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } @%:@ ac_fn_c_check_header_compile
1759 @%:@ ac_fn_c_try_link LINENO
1760 @%:@ -----------------------
1761 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   rm -f conftest.$ac_objext conftest$ac_exeext
1766   if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_link") 2>conftest.err
1774   ac_status=$?
1775   if test -s conftest.err; then
1776     grep -v '^ *+' conftest.err >conftest.er1
1777     cat conftest.er1 >&5
1778     mv -f conftest.er1 conftest.err
1779   fi
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; } && {
1782          test -z "$ac_c_werror_flag" ||
1783          test ! -s conftest.err
1784        } && test -s conftest$ac_exeext && {
1785          test "$cross_compiling" = yes ||
1786          $as_test_x conftest$ac_exeext
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793         ac_retval=1
1795   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797   # interfere with the next link command; also delete a directory that is
1798   # left behind by Apple's compiler.  We do this before executing the actions.
1799   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801   as_fn_set_status $ac_retval
1803 } @%:@ ac_fn_c_try_link
1805 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1806 @%:@ --------------------------------------------
1807 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1808 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1809 @%:@ computed
1810 ac_fn_c_compute_int ()
1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813   if test "$cross_compiling" = yes; then
1814     # Depending upon the size, compute the lo and hi bounds.
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1819 main (void)
1821 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1822 test_array @<:@0@:>@ = 0
1824   ;
1825   return 0;
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829   ac_lo=0 ac_mid=0
1830   while :; do
1831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1835 main (void)
1837 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1838 test_array @<:@0@:>@ = 0
1840   ;
1841   return 0;
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845   ac_hi=$ac_mid; break
1846 else
1847   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1848                         if test $ac_lo -le $ac_mid; then
1849                           ac_lo= ac_hi=
1850                           break
1851                         fi
1852                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855   done
1856 else
1857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h.  */
1861 main (void)
1863 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
1864 test_array @<:@0@:>@ = 0
1866   ;
1867   return 0;
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871   ac_hi=-1 ac_mid=-1
1872   while :; do
1873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1877 main (void)
1879 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
1880 test_array @<:@0@:>@ = 0
1882   ;
1883   return 0;
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887   ac_lo=$ac_mid; break
1888 else
1889   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1890                         if test $ac_mid -le $ac_hi; then
1891                           ac_lo= ac_hi=
1892                           break
1893                         fi
1894                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897   done
1898 else
1899   ac_lo= ac_hi=
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 # Binary search between lo and hi bounds.
1905 while test "x$ac_lo" != "x$ac_hi"; do
1906   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1911 main (void)
1913 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1914 test_array @<:@0@:>@ = 0
1916   ;
1917   return 0;
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921   ac_hi=$ac_mid
1922 else
1923   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 done
1927 case $ac_lo in @%:@((
1928 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1929 '') ac_retval=1 ;;
1930 esac
1931   else
1932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1935 static long int longval () { return $2; }
1936 static unsigned long int ulongval () { return $2; }
1937 @%:@include <stdio.h>
1938 @%:@include <stdlib.h>
1940 main (void)
1943   FILE *f = fopen ("conftest.val", "w");
1944   if (! f)
1945     return 1;
1946   if (($2) < 0)
1947     {
1948       long int i = longval ();
1949       if (i != ($2))
1950         return 1;
1951       fprintf (f, "%ld", i);
1952     }
1953   else
1954     {
1955       unsigned long int i = ulongval ();
1956       if (i != ($2))
1957         return 1;
1958       fprintf (f, "%lu", i);
1959     }
1960   /* Do not output a trailing newline, as this causes \r\n confusion
1961      on some platforms.  */
1962   return ferror (f) || fclose (f) != 0;
1964   ;
1965   return 0;
1967 _ACEOF
1968 if ac_fn_c_try_run "$LINENO"; then :
1969   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1970 else
1971   ac_retval=1
1973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1974   conftest.$ac_objext conftest.beam conftest.$ac_ext
1975 rm -f conftest.val
1977   fi
1978   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979   as_fn_set_status $ac_retval
1981 } @%:@ ac_fn_c_compute_int
1983 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1984 @%:@ ----------------------------------
1985 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1986 ac_fn_c_check_func ()
1988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992   $as_echo_n "(cached) " >&6
1993 else
1994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h.  */
1996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1998 #define $2 innocuous_$2
2000 /* System header to define __stub macros and hopefully few prototypes,
2001     which can conflict with char $2 (); below.
2002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003     <limits.h> exists even on freestanding compilers.  */
2005 #ifdef __STDC__
2006 # include <limits.h>
2007 #else
2008 # include <assert.h>
2009 #endif
2011 #undef $2
2013 /* Override any GCC internal prototype to avoid an error.
2014    Use char because int might match the return type of a GCC
2015    builtin and then its argument prototype would still apply.  */
2016 #ifdef __cplusplus
2017 extern "C"
2018 #endif
2019 char $2 ();
2020 /* The GNU C library defines this for functions which it implements
2021     to always fail with ENOSYS.  Some functions are actually named
2022     something starting with __ and the normal name is an alias.  */
2023 #if defined __stub_$2 || defined __stub___$2
2024 choke me
2025 #endif
2028 main (void)
2030 return $2 ();
2031   ;
2032   return 0;
2034 _ACEOF
2035 if ac_fn_c_try_link "$LINENO"; then :
2036   eval "$3=yes"
2037 else
2038   eval "$3=no"
2040 rm -f core conftest.err conftest.$ac_objext \
2041     conftest$ac_exeext conftest.$ac_ext
2043 eval ac_res=\$$3
2044                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } @%:@ ac_fn_c_check_func
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2053 It was created by GRUB $as_me 1.98, which was
2054 generated by GNU Autoconf 2.65.  Invocation command line was
2056   $ $0 $@
2058 _ACEOF
2059 exec 5>>config.log
2061 cat <<_ASUNAME
2062 ## --------- ##
2063 ## Platform. ##
2064 ## --------- ##
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2075 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2076 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2079 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2080 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2081 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2083 _ASUNAME
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090     $as_echo "PATH: $as_dir"
2091   done
2092 IFS=$as_save_IFS
2094 } >&5
2096 cat >&5 <<_ACEOF
2099 ## ----------- ##
2100 ## Core tests. ##
2101 ## ----------- ##
2103 _ACEOF
2106 # Keep a trace of the command line.
2107 # Strip out --no-create and --no-recursion so they do not pile up.
2108 # Strip out --silent because we don't want to record it for future runs.
2109 # Also quote any args containing shell meta-characters.
2110 # Make two passes to allow for proper duplicate-argument suppression.
2111 ac_configure_args=
2112 ac_configure_args0=
2113 ac_configure_args1=
2114 ac_must_keep_next=false
2115 for ac_pass in 1 2
2117   for ac_arg
2118   do
2119     case $ac_arg in
2120     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122     | -silent | --silent | --silen | --sile | --sil)
2123       continue ;;
2124     *\'*)
2125       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126     esac
2127     case $ac_pass in
2128     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2129     2)
2130       as_fn_append ac_configure_args1 " '$ac_arg'"
2131       if test $ac_must_keep_next = true; then
2132         ac_must_keep_next=false # Got value, back to normal.
2133       else
2134         case $ac_arg in
2135           *=* | --config-cache | -C | -disable-* | --disable-* \
2136           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138           | -with-* | --with-* | -without-* | --without-* | --x)
2139             case "$ac_configure_args0 " in
2140               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2141             esac
2142             ;;
2143           -* ) ac_must_keep_next=true ;;
2144         esac
2145       fi
2146       as_fn_append ac_configure_args " '$ac_arg'"
2147       ;;
2148     esac
2149   done
2150 done
2151 { ac_configure_args0=; unset ac_configure_args0;}
2152 { ac_configure_args1=; unset ac_configure_args1;}
2154 # When interrupted or exit'd, cleanup temporary files, and complete
2155 # config.log.  We remove comments because anyway the quotes in there
2156 # would cause problems or look ugly.
2157 # WARNING: Use '\'' to represent an apostrophe within the trap.
2158 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159 trap 'exit_status=$?
2160   # Save into config.log some information that might help in debugging.
2161   {
2162     echo
2164     cat <<\_ASBOX
2165 ## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##
2168 _ASBOX
2169     echo
2170     # The following way of writing the cache mishandles newlines in values,
2172   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2173     eval ac_val=\$$ac_var
2174     case $ac_val in #(
2175     *${as_nl}*)
2176       case $ac_var in #(
2177       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2179       esac
2180       case $ac_var in #(
2181       _ | IFS | as_nl) ;; #(
2182       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2183       *) { eval $ac_var=; unset $ac_var;} ;;
2184       esac ;;
2185     esac
2186   done
2187   (set) 2>&1 |
2188     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2189     *${as_nl}ac_space=\ *)
2190       sed -n \
2191         "s/'\''/'\''\\\\'\'''\''/g;
2192           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2193       ;; #(
2194     *)
2195       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2196       ;;
2197     esac |
2198     sort
2200     echo
2202     cat <<\_ASBOX
2203 ## ----------------- ##
2204 ## Output variables. ##
2205 ## ----------------- ##
2206 _ASBOX
2207     echo
2208     for ac_var in $ac_subst_vars
2209     do
2210       eval ac_val=\$$ac_var
2211       case $ac_val in
2212       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213       esac
2214       $as_echo "$ac_var='\''$ac_val'\''"
2215     done | sort
2216     echo
2218     if test -n "$ac_subst_files"; then
2219       cat <<\_ASBOX
2220 ## ------------------- ##
2221 ## File substitutions. ##
2222 ## ------------------- ##
2223 _ASBOX
2224       echo
2225       for ac_var in $ac_subst_files
2226       do
2227         eval ac_val=\$$ac_var
2228         case $ac_val in
2229         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230         esac
2231         $as_echo "$ac_var='\''$ac_val'\''"
2232       done | sort
2233       echo
2234     fi
2236     if test -s confdefs.h; then
2237       cat <<\_ASBOX
2238 ## ----------- ##
2239 ## confdefs.h. ##
2240 ## ----------- ##
2241 _ASBOX
2242       echo
2243       cat confdefs.h
2244       echo
2245     fi
2246     test "$ac_signal" != 0 &&
2247       $as_echo "$as_me: caught signal $ac_signal"
2248     $as_echo "$as_me: exit $exit_status"
2249   } >&5
2250   rm -f core *.core core.conftest.* &&
2251     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2252     exit $exit_status
2253 ' 0
2254 for ac_signal in 1 2 13 15; do
2255   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2256 done
2257 ac_signal=0
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2262 $as_echo "/* confdefs.h */" > confdefs.h
2264 # Predefined preprocessor variables.
2266 cat >>confdefs.h <<_ACEOF
2267 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2268 _ACEOF
2270 cat >>confdefs.h <<_ACEOF
2271 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2272 _ACEOF
2274 cat >>confdefs.h <<_ACEOF
2275 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2276 _ACEOF
2278 cat >>confdefs.h <<_ACEOF
2279 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2280 _ACEOF
2282 cat >>confdefs.h <<_ACEOF
2283 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2284 _ACEOF
2286 cat >>confdefs.h <<_ACEOF
2287 @%:@define PACKAGE_URL "$PACKAGE_URL"
2288 _ACEOF
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2293 ac_site_file1=NONE
2294 ac_site_file2=NONE
2295 if test -n "$CONFIG_SITE"; then
2296   ac_site_file1=$CONFIG_SITE
2297 elif test "x$prefix" != xNONE; then
2298   ac_site_file1=$prefix/share/config.site
2299   ac_site_file2=$prefix/etc/config.site
2300 else
2301   ac_site_file1=$ac_default_prefix/share/config.site
2302   ac_site_file2=$ac_default_prefix/etc/config.site
2304 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306   test "x$ac_site_file" = xNONE && continue
2307   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310     sed 's/^/| /' "$ac_site_file" >&5
2311     . "$ac_site_file"
2312   fi
2313 done
2315 if test -r "$cache_file"; then
2316   # Some versions of bash will fail to source /dev/null (special files
2317   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2318   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2319     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2320 $as_echo "$as_me: loading cache $cache_file" >&6;}
2321     case $cache_file in
2322       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2323       *)                      . "./$cache_file";;
2324     esac
2325   fi
2326 else
2327   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2328 $as_echo "$as_me: creating cache $cache_file" >&6;}
2329   >$cache_file
2332 gt_needs="$gt_needs "
2333 # Check that the precious variables saved in the cache have kept the same
2334 # value.
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338   eval ac_new_set=\$ac_env_${ac_var}_set
2339   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340   eval ac_new_val=\$ac_env_${ac_var}_value
2341   case $ac_old_set,$ac_new_set in
2342     set,)
2343       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345       ac_cache_corrupted=: ;;
2346     ,set)
2347       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349       ac_cache_corrupted=: ;;
2350     ,);;
2351     *)
2352       if test "x$ac_old_val" != "x$ac_new_val"; then
2353         # differences in whitespace do not lead to failure.
2354         ac_old_val_w=`echo x $ac_old_val`
2355         ac_new_val_w=`echo x $ac_new_val`
2356         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359           ac_cache_corrupted=:
2360         else
2361           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363           eval $ac_var=\$ac_old_val
2364         fi
2365         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2366 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2367         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2368 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2369       fi;;
2370   esac
2371   # Pass precious variables to config.status.
2372   if test "$ac_new_set" = set; then
2373     case $ac_new_val in
2374     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375     *) ac_arg=$ac_var=$ac_new_val ;;
2376     esac
2377     case " $ac_configure_args " in
2378       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2379       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2380     esac
2381   fi
2382 done
2383 if $ac_cache_corrupted; then
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 ## -------------------- ##
2391 ## Main body of script. ##
2392 ## -------------------- ##
2394 ac_ext=c
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 am__api_version='1.11'
2403 ac_aux_dir=
2404 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2405   for ac_t in install-sh install.sh shtool; do
2406     if test -f "$ac_dir/$ac_t"; then
2407       ac_aux_dir=$ac_dir
2408       ac_install_sh="$ac_aux_dir/$ac_t -c"
2409       break 2
2410     fi
2411   done
2412 done
2413 if test -z "$ac_aux_dir"; then
2414   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2417 # These three variables are undocumented and unsupported,
2418 # and are intended to be withdrawn in a future Autoconf release.
2419 # They can cause serious problems if a builder's source tree is in a directory
2420 # whose full name contains unusual characters.
2421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2423 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2426 # Find a good install program.  We prefer a C program (faster),
2427 # so one script is as good as another.  But avoid the broken or
2428 # incompatible versions:
2429 # SysV /etc/install, /usr/sbin/install
2430 # SunOS /usr/etc/install
2431 # IRIX /sbin/install
2432 # AIX /bin/install
2433 # AmigaOS /C/install, which installs bootblocks on floppy discs
2434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2437 # OS/2's system install, which has a completely different semantic
2438 # ./install, which can be erroneously created by make from ./install.sh.
2439 # Reject install programs that cannot install multiple files.
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then :
2444   $as_echo_n "(cached) " >&6
2445 else
2446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451     # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in @%:@((
2453   ./ | .// | /[cC]/* | \
2454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2456   /usr/ucb/* ) ;;
2457   *)
2458     # OSF1 and SCO ODT 3.0 have their own names for install.
2459     # Don't use installbsd from OSF since it installs stuff as root
2460     # by default.
2461     for ac_prog in ginstall scoinst install; do
2462       for ac_exec_ext in '' $ac_executable_extensions; do
2463         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2464           if test $ac_prog = install &&
2465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466             # AIX install.  It has an incompatible calling convention.
2467             :
2468           elif test $ac_prog = install &&
2469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470             # program-specific install script used by HP pwplus--don't use.
2471             :
2472           else
2473             rm -rf conftest.one conftest.two conftest.dir
2474             echo one > conftest.one
2475             echo two > conftest.two
2476             mkdir conftest.dir
2477             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2478               test -s conftest.one && test -s conftest.two &&
2479               test -s conftest.dir/conftest.one &&
2480               test -s conftest.dir/conftest.two
2481             then
2482               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2483               break 3
2484             fi
2485           fi
2486         fi
2487       done
2488     done
2489     ;;
2490 esac
2492   done
2493 IFS=$as_save_IFS
2495 rm -rf conftest.one conftest.two conftest.dir
2498   if test "${ac_cv_path_install+set}" = set; then
2499     INSTALL=$ac_cv_path_install
2500   else
2501     # As a last resort, use the slow shell script.  Don't cache a
2502     # value for INSTALL within a source directory, because that will
2503     # break other packages using the cache if that directory is
2504     # removed, or if the value is a relative name.
2505     INSTALL=$ac_install_sh
2506   fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2509 $as_echo "$INSTALL" >&6; }
2511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2512 # It thinks the first close brace ends the variable substitution.
2513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2520 $as_echo_n "checking whether build environment is sane... " >&6; }
2521 # Just in case
2522 sleep 1
2523 echo timestamp > conftest.file
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name.  Accept space and tab only in the latter.
2526 am_lf='
2528 case `pwd` in
2529   *[\\\"\#\$\&\'\`$am_lf]*)
2530     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2531 esac
2532 case $srcdir in
2533   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2534     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2535 esac
2537 # Do `set' in a subshell so we don't clobber the current shell's
2538 # arguments.  Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2541 # directory).
2542 if (
2543    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2544    if test "$*" = "X"; then
2545       # -L didn't work.
2546       set X `ls -t "$srcdir/configure" conftest.file`
2547    fi
2548    rm -f conftest.file
2549    if test "$*" != "X $srcdir/configure conftest.file" \
2550       && test "$*" != "X conftest.file $srcdir/configure"; then
2552       # If neither matched, then we have a broken ls.  This can happen
2553       # if, for instance, CONFIG_SHELL is bash and it inherits a
2554       # broken ls alias from the environment.  This has actually
2555       # happened.  Such a system could not be considered "sane".
2556       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2557 alias in your environment" "$LINENO" 5
2558    fi
2560    test "$2" = conftest.file
2561    )
2562 then
2563    # Ok.
2564    :
2565 else
2566    as_fn_error "newly created file is older than distributed files!
2567 Check your system clock" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 test "$program_prefix" != NONE &&
2572   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2573 # Use a double $ so make ignores it.
2574 test "$program_suffix" != NONE &&
2575   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2576 # Double any \ or $.
2577 # By default was `s,x,x', remove it if useless.
2578 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2579 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581 # expand $ac_aux_dir to an absolute path
2582 am_aux_dir=`cd $ac_aux_dir && pwd`
2584 if test x"${MISSING+set}" != xset; then
2585   case $am_aux_dir in
2586   *\ * | *\     *)
2587     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2588   *)
2589     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2590   esac
2592 # Use eval to expand $SHELL
2593 if eval "$MISSING --run true"; then
2594   am_missing_run="$MISSING --run "
2595 else
2596   am_missing_run=
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2598 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2601 if test x"${install_sh}" != xset; then
2602   case $am_aux_dir in
2603   *\ * | *\     *)
2604     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2605   *)
2606     install_sh="\${SHELL} $am_aux_dir/install-sh"
2607   esac
2610 # Installed binaries are usually stripped using `strip' when the user
2611 # run `make install-strip'.  However `strip' might not be the right
2612 # tool to use in cross-compilation environments, therefore Automake
2613 # will honor the `STRIP' environment variable to overrule this program.
2614 if test "$cross_compiling" != no; then
2615   if test -n "$ac_tool_prefix"; then
2616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}strip; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_STRIP+set}" = set; then :
2621   $as_echo_n "(cached) " >&6
2622 else
2623   if test -n "$STRIP"; then
2624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631     for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638   done
2639 IFS=$as_save_IFS
2643 STRIP=$ac_cv_prog_STRIP
2644 if test -n "$STRIP"; then
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2646 $as_echo "$STRIP" >&6; }
2647 else
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2654 if test -z "$ac_cv_prog_STRIP"; then
2655   ac_ct_STRIP=$STRIP
2656   # Extract the first word of "strip", so it can be a program name with args.
2657 set dummy strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$ac_ct_STRIP"; then
2664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_ac_ct_STRIP="strip"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2686 $as_echo "$ac_ct_STRIP" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2692   if test "x$ac_ct_STRIP" = x; then
2693     STRIP=":"
2694   else
2695     case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701     STRIP=$ac_ct_STRIP
2702   fi
2703 else
2704   STRIP="$ac_cv_prog_STRIP"
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2711 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2712 if test -z "$MKDIR_P"; then
2713   if test "${ac_cv_path_mkdir+set}" = set; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721     for ac_prog in mkdir gmkdir; do
2722          for ac_exec_ext in '' $ac_executable_extensions; do
2723            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2724            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2725              'mkdir (GNU coreutils) '* | \
2726              'mkdir (coreutils) '* | \
2727              'mkdir (fileutils) '4.1*)
2728                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2729                break 3;;
2730            esac
2731          done
2732        done
2733   done
2734 IFS=$as_save_IFS
2738   test -d ./--version && rmdir ./--version
2739   if test "${ac_cv_path_mkdir+set}" = set; then
2740     MKDIR_P="$ac_cv_path_mkdir -p"
2741   else
2742     # As a last resort, use the slow shell script.  Don't cache a
2743     # value for MKDIR_P within a source directory, because that will
2744     # break other packages using the cache if that directory is
2745     # removed, or if the value is a relative name.
2746     MKDIR_P="$ac_install_sh -d"
2747   fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2750 $as_echo "$MKDIR_P" >&6; }
2752 mkdir_p="$MKDIR_P"
2753 case $mkdir_p in
2754   [\\/$]* | ?:[\\/]*) ;;
2755   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2756 esac
2758 for ac_prog in gawk mawk nawk awk
2760   # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_AWK+set}" = set; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$AWK"; then
2768   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_AWK="$ac_prog"
2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782   done
2783 IFS=$as_save_IFS
2787 AWK=$ac_cv_prog_AWK
2788 if test -n "$AWK"; then
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2791 else
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2797   test -n "$AWK" && break
2798 done
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802 set x ${MAKE-make}
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   cat >conftest.make <<\_ACEOF
2808 SHELL = /bin/sh
2809 all:
2810         @echo '@@@%%%=$(MAKE)=@@@%%%'
2811 _ACEOF
2812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814   *@@@%%%=?*=@@@%%%*)
2815     eval ac_cv_prog_make_${ac_make}_set=yes;;
2816   *)
2817     eval ac_cv_prog_make_${ac_make}_set=no;;
2818 esac
2819 rm -f conftest.make
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2824   SET_MAKE=
2825 else
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828   SET_MAKE="MAKE=${MAKE-make}"
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2834   am__leading_dot=.
2835 else
2836   am__leading_dot=_
2838 rmdir .tst 2>/dev/null
2840 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2841   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2842   # is not polluted with repeated "-I."
2843   am__isrc=' -I$(srcdir)'
2844   # test to see if srcdir already configured
2845   if test -f $srcdir/config.status; then
2846     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2847   fi
2850 # test whether we have cygpath
2851 if test -z "$CYGPATH_W"; then
2852   if (cygpath --version) >/dev/null 2>/dev/null; then
2853     CYGPATH_W='cygpath -w'
2854   else
2855     CYGPATH_W=echo
2856   fi
2860 # Define the identity of the package.
2861  PACKAGE='grub'
2862  VERSION='1.98'
2865 cat >>confdefs.h <<_ACEOF
2866 @%:@define PACKAGE "$PACKAGE"
2867 _ACEOF
2870 cat >>confdefs.h <<_ACEOF
2871 @%:@define VERSION "$VERSION"
2872 _ACEOF
2874 # Some tools Automake needs.
2876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2890 # We need awk for the "check" target.  The system "awk" is bad on
2891 # some platforms.
2892 # Always define AMTAR for backward compatibility.
2894 AMTAR=${AMTAR-"${am_missing_run}tar"}
2896 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2904 ac_config_headers="$ac_config_headers config.h"
2907 # Checks for host and target systems.
2908 # Make sure we can run config.sub.
2909 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2910   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2913 $as_echo_n "checking build system type... " >&6; }
2914 if test "${ac_cv_build+set}" = set; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   ac_build_alias=$build_alias
2918 test "x$ac_build_alias" = x &&
2919   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2920 test "x$ac_build_alias" = x &&
2921   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2922 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2923   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2927 $as_echo "$ac_cv_build" >&6; }
2928 case $ac_cv_build in
2929 *-*-*) ;;
2930 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2931 esac
2932 build=$ac_cv_build
2933 ac_save_IFS=$IFS; IFS='-'
2934 set x $ac_cv_build
2935 shift
2936 build_cpu=$1
2937 build_vendor=$2
2938 shift; shift
2939 # Remember, the first character of IFS is used to create $*,
2940 # except with old shells:
2941 build_os=$*
2942 IFS=$ac_save_IFS
2943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2947 $as_echo_n "checking host system type... " >&6; }
2948 if test "${ac_cv_host+set}" = set; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test "x$host_alias" = x; then
2952   ac_cv_host=$ac_cv_build
2953 else
2954   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2955     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2960 $as_echo "$ac_cv_host" >&6; }
2961 case $ac_cv_host in
2962 *-*-*) ;;
2963 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2964 esac
2965 host=$ac_cv_host
2966 ac_save_IFS=$IFS; IFS='-'
2967 set x $ac_cv_host
2968 shift
2969 host_cpu=$1
2970 host_vendor=$2
2971 shift; shift
2972 # Remember, the first character of IFS is used to create $*,
2973 # except with old shells:
2974 host_os=$*
2975 IFS=$ac_save_IFS
2976 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2980 $as_echo_n "checking target system type... " >&6; }
2981 if test "${ac_cv_target+set}" = set; then :
2982   $as_echo_n "(cached) " >&6
2983 else
2984   if test "x$target_alias" = x; then
2985   ac_cv_target=$ac_cv_host
2986 else
2987   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2988     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2993 $as_echo "$ac_cv_target" >&6; }
2994 case $ac_cv_target in
2995 *-*-*) ;;
2996 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2997 esac
2998 target=$ac_cv_target
2999 ac_save_IFS=$IFS; IFS='-'
3000 set x $ac_cv_target
3001 shift
3002 target_cpu=$1
3003 target_vendor=$2
3004 shift; shift
3005 # Remember, the first character of IFS is used to create $*,
3006 # except with old shells:
3007 target_os=$*
3008 IFS=$ac_save_IFS
3009 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3012 # The aliases save the names the user supplied, while $host etc.
3013 # will get canonicalized.
3014 test -n "$target_alias" &&
3015   test "$program_prefix$program_suffix$program_transform_name" = \
3016     NONENONEs,x,x, &&
3017   program_prefix=${target_alias}-
3019 # Program name transformations
3022 # Optimization flag.  Allow user to override.
3023 if test "x$TARGET_CFLAGS" = x; then
3024   TARGET_CFLAGS="$TARGET_CFLAGS -Os"
3027 case "$target_cpu" in
3028   i[3456]86)    target_cpu=i386 ;;
3029   amd64)        target_cpu=x86_64 ;;
3030   sparc)        target_cpu=sparc64 ;;
3031   mipsel|mips64el)
3032                 target_cpu=mips;    
3033                 TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPSEL=1"; 
3034                 CFLAGS="$CFLAGS -DGRUB_CPU_MIPSEL=1";
3035                 ;;
3036   mips|mips64)
3037                 target_cpu=mips;    
3038                 TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPS=1"; 
3039                 CFLAGS="$CFLAGS -DGRUB_CPU_MIPS=1";
3040                 ;;
3041 esac
3043 # Specify the platform (such as firmware).
3045 @%:@ Check whether --with-platform was given.
3046 if test "${with_platform+set}" = set; then :
3047   withval=$with_platform; 
3051 # Guess the platform if not specified.
3052 if test "x$with_platform" = x; then
3053   case "$target_cpu"-"$target_vendor" in
3054     i386-apple) platform=efi ;;
3055     i386-*) platform=pc ;;
3056     x86_64-apple) platform=efi ;;
3057     x86_64-*) platform=pc ;;
3058     powerpc-*) platform=ieee1275 ;;
3059     powerpc64-*) platform=ieee1275 ;;
3060     sparc64-*) platform=ieee1275 ;;
3061     mips-*) platform=yeeloong ;;
3062     *) as_fn_error "unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
3063   esac
3064 else
3065   platform="$with_platform"
3068 # Adjust CPU unless target was explicitly specified.
3069 if test -z "$target_alias"; then
3070   case "$target_cpu"-"$platform" in
3071     x86_64-efi) ;;
3072     x86_64-*) target_cpu=i386 ;;
3073     powerpc64-ieee1275) target_cpu=powerpc ;;
3074   esac
3077 # Check if the platform is supported, make final adjustments.
3078 case "$target_cpu"-"$platform" in
3079   i386-efi) ;;
3080   x86_64-efi) ;;
3081   i386-pc) ;;
3082   i386-coreboot) ;;
3083   i386-linuxbios) platform=coreboot ;;
3084   i386-ieee1275) ;;
3085   i386-qemu) ;;
3086   powerpc-ieee1275) ;;
3087   sparc64-ieee1275) ;;
3088   mips-qemu-mips) ;;
3089   mips-yeeloong) ;;
3090   *-emu) ;;
3091   *) as_fn_error "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
3092 esac
3094 case "$target_cpu" in
3095   i386 | powerpc) target_m32=1 ;;
3096   x86_64 | sparc64) target_m64=1 ;;
3097 esac
3099 case "$host_os" in
3100   mingw32*) host_os=cygwin ;;
3101 esac
3103 # This normalizes the names, and creates a new variable ("host_kernel")
3104 # while at it, since the mapping is not always 1:1 (e.g. different OSes
3105 # using the same kernel type).
3106 case "$host_os" in
3107   gnu*)                         host_kernel=hurd ;;
3108   linux*)                       host_kernel=linux ;;
3109   freebsd* | kfreebsd*-gnu)     host_kernel=kfreebsd ;;
3110   cygwin)                       host_kernel=windows ;;
3111 esac
3113 case "$platform" in
3114   coreboot)     machine_CFLAGS="-DGRUB_MACHINE_COREBOOT=1" ;;
3115   efi)          machine_CFLAGS="-DGRUB_MACHINE_EFI=1" ;;
3116   ieee1275)     machine_CFLAGS="-DGRUB_MACHINE_IEEE1275=1" ;;
3117   qemu)         machine_CFLAGS="-DGRUB_MACHINE_QEMU=1" ;;
3118   pc)           machine_CFLAGS="-DGRUB_MACHINE_PCBIOS=1" ;;
3119   emu)          machine_CFLAGS="-DGRUB_MACHINE_EMU=1" ;;
3120   yeeloong)     machine_CFLAGS="-DGRUB_MACHINE_MIPS_YEELOONG=1 -DGRUB_MACHINE_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3121   qemu-mips)    machine_CFLAGS="-DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3122 esac
3123 CFLAGS="$CFLAGS $machine_CFLAGS"
3124 TARGET_ASFLAGS="$TARGET_ASFLAGS $machine_CFLAGS"
3125 TARGET_CFLAGS="$TARGET_CFLAGS $machine_CFLAGS"
3135 # Checks for build programs.
3138 # Although cmp is listed in the GNU Coding Standards as a command which
3139 # can used directly, OpenBSD lacks cmp in the default installation.
3140 for ac_prog in cmp
3142   # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CMP+set}" = set; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   if test -n "$CMP"; then
3150   ac_cv_prog_CMP="$CMP" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155   IFS=$as_save_IFS
3156   test -z "$as_dir" && as_dir=.
3157     for ac_exec_ext in '' $ac_executable_extensions; do
3158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159     ac_cv_prog_CMP="$ac_prog"
3160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162   fi
3163 done
3164   done
3165 IFS=$as_save_IFS
3169 CMP=$ac_cv_prog_CMP
3170 if test -n "$CMP"; then
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
3172 $as_echo "$CMP" >&6; }
3173 else
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179   test -n "$CMP" && break
3180 done
3182 if test "x$CMP" = x; then
3183   as_fn_error "cmp is not found" "$LINENO" 5
3186 for ac_prog in bison
3188   # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_YACC+set}" = set; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$YACC"; then
3196   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_YACC="$ac_prog"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3215 YACC=$ac_cv_prog_YACC
3216 if test -n "$YACC"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3218 $as_echo "$YACC" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225   test -n "$YACC" && break
3226 done
3228 if test "x$YACC" = x; then
3229   as_fn_error "bison is not found" "$LINENO" 5
3232 for file in /usr/src/unifont.bdf /usr/share/fonts/X11/misc/unifont.pcf.gz /usr/share/fonts/unifont/unifont.pcf.gz; do
3233   if test -e $file ; then
3234     FONT_SOURCE=$file
3236     break
3237   fi
3238 done
3241 for ac_prog in gawk mawk nawk awk
3243   # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_AWK+set}" = set; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$AWK"; then
3251   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258     for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_AWK="$ac_prog"
3261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265   done
3266 IFS=$as_save_IFS
3270 AWK=$ac_cv_prog_AWK
3271 if test -n "$AWK"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3273 $as_echo "$AWK" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3280   test -n "$AWK" && break
3281 done
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3284 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3285 set x ${MAKE-make}
3286 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3287 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   cat >conftest.make <<\_ACEOF
3291 SHELL = /bin/sh
3292 all:
3293         @echo '@@@%%%=$(MAKE)=@@@%%%'
3294 _ACEOF
3295 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3296 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3297   *@@@%%%=?*=@@@%%%*)
3298     eval ac_cv_prog_make_${ac_make}_set=yes;;
3299   *)
3300     eval ac_cv_prog_make_${ac_make}_set=no;;
3301 esac
3302 rm -f conftest.make
3304 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3307   SET_MAKE=
3308 else
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311   SET_MAKE="MAKE=${MAKE-make}"
3316 # These are not a "must".
3317 # Extract the first word of "ruby", so it can be a program name with args.
3318 set dummy ruby; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_path_RUBY+set}" = set; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   case $RUBY in
3325   [\\/]* | ?:[\\/]*)
3326   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
3327   ;;
3328   *)
3329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332   IFS=$as_save_IFS
3333   test -z "$as_dir" && as_dir=.
3334     for ac_exec_ext in '' $ac_executable_extensions; do
3335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
3337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338     break 2
3339   fi
3340 done
3341   done
3342 IFS=$as_save_IFS
3344   ;;
3345 esac
3347 RUBY=$ac_cv_path_RUBY
3348 if test -n "$RUBY"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
3350 $as_echo "$RUBY" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3357 # Extract the first word of "makeinfo", so it can be a program name with args.
3358 set dummy makeinfo; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
3362   $as_echo_n "(cached) " >&6
3363 else
3364   case $MAKEINFO in
3365   [\\/]* | ?:[\\/]*)
3366   ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
3367   ;;
3368   *)
3369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376     ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3384   ;;
3385 esac
3387 MAKEINFO=$ac_cv_path_MAKEINFO
3388 if test -n "$MAKEINFO"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3390 $as_echo "$MAKEINFO" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3399 # Checks for host programs.
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 if test -n "$ac_tool_prefix"; then
3408   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$ac_cv_prog_CC"; then
3447   ac_ct_CC=$CC
3448   # Extract the first word of "gcc", so it can be a program name with args.
3449 set dummy gcc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test -n "$ac_ct_CC"; then
3456   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463     for ac_exec_ext in '' $ac_executable_extensions; do
3464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465     ac_cv_prog_ac_ct_CC="gcc"
3466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470   done
3471 IFS=$as_save_IFS
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3484   if test "x$ac_ct_CC" = x; then
3485     CC=""
3486   else
3487     case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3492 esac
3493     CC=$ac_ct_CC
3494   fi
3495 else
3496   CC="$ac_cv_prog_CC"
3499 if test -z "$CC"; then
3500           if test -n "$ac_tool_prefix"; then
3501     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518     ac_cv_prog_CC="${ac_tool_prefix}cc"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538   fi
3540 if test -z "$CC"; then
3541   # Extract the first word of "cc", so it can be a program name with args.
3542 set dummy cc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_CC+set}" = set; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -n "$CC"; then
3549   ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551   ac_prog_rejected=no
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557     for ac_exec_ext in '' $ac_executable_extensions; do
3558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560        ac_prog_rejected=yes
3561        continue
3562      fi
3563     ac_cv_prog_CC="cc"
3564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568   done
3569 IFS=$as_save_IFS
3571 if test $ac_prog_rejected = yes; then
3572   # We found a bogon in the path, so make sure we never use it.
3573   set dummy $ac_cv_prog_CC
3574   shift
3575   if test $@%:@ != 0; then
3576     # We chose a different compiler from the bogus one.
3577     # However, it has the same basename, so the bogon will be chosen
3578     # first if we set CC to just the basename; use the full file name.
3579     shift
3580     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3581   fi
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3589 else
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3596 if test -z "$CC"; then
3597   if test -n "$ac_tool_prefix"; then
3598   for ac_prog in cl.exe
3599   do
3600     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_CC+set}" = set; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   if test -n "$CC"; then
3608   ac_cv_prog_CC="$CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622   done
3623 IFS=$as_save_IFS
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3637     test -n "$CC" && break
3638   done
3640 if test -z "$CC"; then
3641   ac_ct_CC=$CC
3642   for ac_prog in cl.exe
3644   # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   if test -n "$ac_ct_CC"; then
3652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659     for ac_exec_ext in '' $ac_executable_extensions; do
3660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661     ac_cv_prog_ac_ct_CC="$ac_prog"
3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666   done
3667 IFS=$as_save_IFS
3671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672 if test -n "$ac_ct_CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674 $as_echo "$ac_ct_CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681   test -n "$ac_ct_CC" && break
3682 done
3684   if test "x$ac_ct_CC" = x; then
3685     CC=""
3686   else
3687     case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693     CC=$ac_ct_CC
3694   fi
3700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "no acceptable C compiler found in \$PATH
3703 See \`config.log' for more details." "$LINENO" 5; }
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3707 set X $ac_compile
3708 ac_compiler=$2
3709 for ac_option in --version -v -V -qversion; do
3710   { { ac_try="$ac_compiler $ac_option >&5"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3718   ac_status=$?
3719   if test -s conftest.err; then
3720     sed '10a\
3721 ... rest of stderr output deleted ...
3722          10q' conftest.err >conftest.er1
3723     cat conftest.er1 >&5
3724   fi
3725   rm -f conftest.er1 conftest.err
3726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727   test $ac_status = 0; }
3728 done
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h.  */
3734 main (void)
3737   ;
3738   return 0;
3740 _ACEOF
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3745 # of exeext.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747 $as_echo_n "checking whether the C compiler works... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3753 ac_rmfiles=
3754 for ac_file in $ac_files
3756   case $ac_file in
3757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759   esac
3760 done
3761 rm -f $ac_rmfiles
3763 if { { ac_try="$ac_link_default"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770   (eval "$ac_link_default") 2>&5
3771   ac_status=$?
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }; then :
3774   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3778 # Autoconf.
3779 for ac_file in $ac_files ''
3781   test -f "$ac_file" || continue
3782   case $ac_file in
3783     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3784         ;;
3785     [ab].out )
3786         # We found the default executable, but exeext='' is most
3787         # certainly right.
3788         break;;
3789     *.* )
3790         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791         then :; else
3792            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793         fi
3794         # We set ac_cv_exeext here because the later test for it is not
3795         # safe: cross compilers may not add the suffix if given an `-o'
3796         # argument, so we may need to know it at that point already.
3797         # Even if this section looks crufty: it has the advantage of
3798         # actually working.
3799         break;;
3800     * )
3801         break;;
3802   esac
3803 done
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3806 else
3807   ac_file=''
3809 if test -z "$ac_file"; then :
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 { as_fn_set_status 77
3818 as_fn_error "C compiler cannot create executables
3819 See \`config.log' for more details." "$LINENO" 5; }; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3825 $as_echo_n "checking for C compiler default output file name... " >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827 $as_echo "$ac_file" >&6; }
3828 ac_exeext=$ac_cv_exeext
3830 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833 $as_echo_n "checking for suffix of executables... " >&6; }
3834 if { { ac_try="$ac_link"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841   (eval "$ac_link") 2>&5
3842   ac_status=$?
3843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844   test $ac_status = 0; }; then :
3845   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3847 # work properly (i.e., refer to `conftest.exe'), while it won't with
3848 # `rm'.
3849 for ac_file in conftest.exe conftest conftest.*; do
3850   test -f "$ac_file" || continue
3851   case $ac_file in
3852     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854           break;;
3855     * ) break;;
3856   esac
3857 done
3858 else
3859   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error "cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." "$LINENO" 5; }
3864 rm -f conftest conftest$ac_cv_exeext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866 $as_echo "$ac_cv_exeext" >&6; }
3868 rm -f conftest.$ac_ext
3869 EXEEXT=$ac_cv_exeext
3870 ac_exeext=$EXEEXT
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h.  */
3873 @%:@include <stdio.h>
3875 main (void)
3877 FILE *f = fopen ("conftest.out", "w");
3878  return ferror (f) || fclose (f) != 0;
3880   ;
3881   return 0;
3883 _ACEOF
3884 ac_clean_files="$ac_clean_files conftest.out"
3885 # Check that the compiler produces executables we can run.  If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3888 $as_echo_n "checking whether we are cross compiling... " >&6; }
3889 if test "$cross_compiling" != yes; then
3890   { { ac_try="$ac_link"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897   (eval "$ac_link") 2>&5
3898   ac_status=$?
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; }
3901   if { ac_try='./conftest$ac_cv_exeext'
3902   { { case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908   (eval "$ac_try") 2>&5
3909   ac_status=$?
3910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911   test $ac_status = 0; }; }; then
3912     cross_compiling=no
3913   else
3914     if test "$cross_compiling" = maybe; then
3915         cross_compiling=yes
3916     else
3917         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot run C compiled programs.
3920 If you meant to cross compile, use \`--host'.
3921 See \`config.log' for more details." "$LINENO" 5; }
3922     fi
3923   fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3926 $as_echo "$cross_compiling" >&6; }
3928 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3931 $as_echo_n "checking for suffix of object files... " >&6; }
3932 if test "${ac_cv_objext+set}" = set; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3939 main (void)
3942   ;
3943   return 0;
3945 _ACEOF
3946 rm -f conftest.o conftest.obj
3947 if { { ac_try="$ac_compile"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954   (eval "$ac_compile") 2>&5
3955   ac_status=$?
3956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957   test $ac_status = 0; }; then :
3958   for ac_file in conftest.o conftest.obj conftest.*; do
3959   test -f "$ac_file" || continue;
3960   case $ac_file in
3961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3962     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3963        break;;
3964   esac
3965 done
3966 else
3967   $as_echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot compute suffix of object files: cannot compile
3973 See \`config.log' for more details." "$LINENO" 5; }
3975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3978 $as_echo "$ac_cv_objext" >&6; }
3979 OBJEXT=$ac_cv_objext
3980 ac_objext=$OBJEXT
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3983 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3990 main (void)
3992 #ifndef __GNUC__
3993        choke me
3994 #endif
3996   ;
3997   return 0;
3999 _ACEOF
4000 if ac_fn_c_try_compile "$LINENO"; then :
4001   ac_compiler_gnu=yes
4002 else
4003   ac_compiler_gnu=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4012   GCC=yes
4013 else
4014   GCC=
4016 ac_test_CFLAGS=${CFLAGS+set}
4017 ac_save_CFLAGS=$CFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4020 if test "${ac_cv_prog_cc_g+set}" = set; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   ac_save_c_werror_flag=$ac_c_werror_flag
4024    ac_c_werror_flag=yes
4025    ac_cv_prog_cc_g=no
4026    CFLAGS="-g"
4027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4031 main (void)
4034   ;
4035   return 0;
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039   ac_cv_prog_cc_g=yes
4040 else
4041   CFLAGS=""
4042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h.  */
4046 main (void)
4049   ;
4050   return 0;
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054   
4055 else
4056   ac_c_werror_flag=$ac_save_c_werror_flag
4057          CFLAGS="-g"
4058          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h.  */
4062 main (void)
4065   ;
4066   return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070   ac_cv_prog_cc_g=yes
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077    ac_c_werror_flag=$ac_save_c_werror_flag
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 $as_echo "$ac_cv_prog_cc_g" >&6; }
4081 if test "$ac_test_CFLAGS" = set; then
4082   CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084   if test "$GCC" = yes; then
4085     CFLAGS="-g -O2"
4086   else
4087     CFLAGS="-g"
4088   fi
4089 else
4090   if test "$GCC" = yes; then
4091     CFLAGS="-O2"
4092   else
4093     CFLAGS=
4094   fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   ac_cv_prog_cc_c89=no
4102 ac_save_CC=$CC
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105 #include <stdarg.h>
4106 #include <stdio.h>
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4113      char **p;
4114      int i;
4116   return p[i];
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4120   char *s;
4121   va_list v;
4122   va_start (v,p);
4123   s = g (p, va_arg (v,int));
4124   va_end (v);
4125   return s;
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4129    function prototypes and stuff, but not '\xHH' hex character constants.
4130    These don't provoke an error unfortunately, instead are silently treated
4131    as 'x'.  The following induces an error, until -std is added to get
4132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4133    array size at least.  It's necessary to write '\x00'==0 to get something
4134    that's true only with -std.  */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138    inside strings and character constants.  */
4139 #define FOO(x) 'x'
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 int argc;
4147 char **argv;
4149 main (void)
4151 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4152   ;
4153   return 0;
4155 _ACEOF
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159   CC="$ac_save_CC $ac_arg"
4160   if ac_fn_c_try_compile "$LINENO"; then :
4161   ac_cv_prog_cc_c89=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164   test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 done
4166 rm -f conftest.$ac_ext
4167 CC=$ac_save_CC
4170 # AC_CACHE_VAL
4171 case "x$ac_cv_prog_cc_c89" in
4172   x)
4173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4175   xno)
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4178   *)
4179     CC="$CC $ac_cv_prog_cc_c89"
4180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 esac
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4184   
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 DEPDIR="${am__leading_dot}deps"
4194 ac_config_commands="$ac_config_commands depfiles"
4197 am_make=${MAKE-make}
4198 cat > confinc << 'END'
4199 am__doit:
4200         @echo this is the am__doit target
4201 .PHONY: am__doit
4203 # If we don't find an include directive, just comment out the code.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4206 am__include="#"
4207 am__quote=
4208 _am_result=none
4209 # First try GNU make style include.
4210 echo "include confinc" > confmf
4211 # Ignore all kinds of additional output from `make'.
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4214   am__include=include
4215   am__quote=
4216   _am_result=GNU
4217   ;;
4218 esac
4219 # Now try BSD make style include.
4220 if test "$am__include" = "#"; then
4221    echo '.include "confinc"' > confmf
4222    case `$am_make -s -f confmf 2> /dev/null` in #(
4223    *the\ am__doit\ target*)
4224      am__include=.include
4225      am__quote="\""
4226      _am_result=BSD
4227      ;;
4228    esac
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4233 $as_echo "$_am_result" >&6; }
4234 rm -f confinc confmf
4236 @%:@ Check whether --enable-dependency-tracking was given.
4237 if test "${enable_dependency_tracking+set}" = set; then :
4238   enableval=$enable_dependency_tracking; 
4241 if test "x$enable_dependency_tracking" != xno; then
4242   am_depcomp="$ac_aux_dir/depcomp"
4243   AMDEPBACKSLASH='\'
4245  if test "x$enable_dependency_tracking" != xno; then
4246   AMDEP_TRUE=
4247   AMDEP_FALSE='#'
4248 else
4249   AMDEP_TRUE='#'
4250   AMDEP_FALSE=
4255 depcc="$CC"   am_compiler_list=
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4258 $as_echo_n "checking dependency style of $depcc... " >&6; }
4259 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4263   # We make a subdir and do the tests there.  Otherwise we can end up
4264   # making bogus files that we don't know about and never remove.  For
4265   # instance it was reported that on HP-UX the gcc test will end up
4266   # making a dummy file named `D' -- because `-MD' means `put the output
4267   # in D'.
4268   mkdir conftest.dir
4269   # Copy depcomp to subdir because otherwise we won't find it if we're
4270   # using a relative directory.
4271   cp "$am_depcomp" conftest.dir
4272   cd conftest.dir
4273   # We will build objects and dependencies in a subdirectory because
4274   # it helps to detect inapplicable dependency modes.  For instance
4275   # both Tru64's cc and ICC support -MD to output dependencies as a
4276   # side effect of compilation, but ICC will put the dependencies in
4277   # the current directory while Tru64 will put them in the object
4278   # directory.
4279   mkdir sub
4281   am_cv_CC_dependencies_compiler_type=none
4282   if test "$am_compiler_list" = ""; then
4283      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284   fi
4285   am__universal=false
4286   case " $depcc " in #(
4287      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4288      esac
4290   for depmode in $am_compiler_list; do
4291     # Setup a source with many dependencies, because some compilers
4292     # like to wrap large dependency lists on column 80 (with \), and
4293     # we should not choose a depcomp mode which is confused by this.
4294     #
4295     # We need to recreate these files for each test, as the compiler may
4296     # overwrite some of them when testing with obscure command lines.
4297     # This happens at least with the AIX C compiler.
4298     : > sub/conftest.c
4299     for i in 1 2 3 4 5 6; do
4300       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4301       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4302       # Solaris 8's {/usr,}/bin/sh.
4303       touch sub/conftst$i.h
4304     done
4305     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4307     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4308     # mode.  It turns out that the SunPro C++ compiler does not properly
4309     # handle `-M -o', and we need to detect this.  Also, some Intel
4310     # versions had trouble with output in subdirs
4311     am__obj=sub/conftest.${OBJEXT-o}
4312     am__minus_obj="-o $am__obj"
4313     case $depmode in
4314     gcc)
4315       # This depmode causes a compiler race in universal mode.
4316       test "$am__universal" = false || continue
4317       ;;
4318     nosideeffect)
4319       # after this tag, mechanisms are not by side-effect, so they'll
4320       # only be used when explicitly requested
4321       if test "x$enable_dependency_tracking" = xyes; then
4322         continue
4323       else
4324         break
4325       fi
4326       ;;
4327     msvisualcpp | msvcmsys)
4328       # This compiler won't grok `-c -o', but also, the minuso test has
4329       # not run yet.  These depmodes are late enough in the game, and
4330       # so weak that their functioning should not be impacted.
4331       am__obj=conftest.${OBJEXT-o}
4332       am__minus_obj=
4333       ;;
4334     none) break ;;
4335     esac
4336     if depmode=$depmode \
4337        source=sub/conftest.c object=$am__obj \
4338        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4339        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4340          >/dev/null 2>conftest.err &&
4341        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4342        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4343        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4344        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4345       # icc doesn't choke on unknown options, it will just issue warnings
4346       # or remarks (even with -Werror).  So we grep stderr for any message
4347       # that says an option was ignored or not supported.
4348       # When given -MP, icc 7.0 and 7.1 complain thusly:
4349       #   icc: Command line warning: ignoring option '-M'; no argument required
4350       # The diagnosis changed in icc 8.0:
4351       #   icc: Command line remark: option '-MP' not supported
4352       if (grep 'ignoring option' conftest.err ||
4353           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4354         am_cv_CC_dependencies_compiler_type=$depmode
4355         break
4356       fi
4357     fi
4358   done
4360   cd ..
4361   rm -rf conftest.dir
4362 else
4363   am_cv_CC_dependencies_compiler_type=none
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4368 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4369 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4371  if 
4372   test "x$enable_dependency_tracking" != xno \
4373   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4374   am__fastdepCC_TRUE=
4375   am__fastdepCC_FALSE='#'
4376 else
4377   am__fastdepCC_TRUE='#'
4378   am__fastdepCC_FALSE=
4382 # Must be GCC.
4383 test "x$GCC" = xyes || as_fn_error "GCC is required" "$LINENO" 5
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4392 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4393 # On Suns, sometimes $CPP names a directory.
4394 if test -n "$CPP" && test -d "$CPP"; then
4395   CPP=
4397 if test -z "$CPP"; then
4398   if test "${ac_cv_prog_CPP+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401       # Double quotes because CPP needs to be expanded
4402     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4403     do
4404       ac_preproc_ok=false
4405 for ac_c_preproc_warn_flag in '' yes
4407   # Use a header file that comes with gcc, so configuring glibc
4408   # with a fresh cross-compiler works.
4409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410   # <limits.h> exists even on freestanding compilers.
4411   # On the NeXT, cc -E runs the code through the compiler's parser,
4412   # not just through cpp. "Syntax error" is here to catch this case.
4413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415 @%:@ifdef __STDC__
4416 @%:@ include <limits.h>
4417 @%:@else
4418 @%:@ include <assert.h>
4419 @%:@endif
4420                      Syntax error
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423   
4424 else
4425   # Broken: fails on valid input.
4426 continue
4428 rm -f conftest.err conftest.$ac_ext
4430   # OK, works on sane cases.  Now check whether nonexistent headers
4431   # can be detected and how.
4432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h.  */
4434 @%:@include <ac_nonexistent.h>
4435 _ACEOF
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4437   # Broken: success on invalid input.
4438 continue
4439 else
4440   # Passes both tests.
4441 ac_preproc_ok=:
4442 break
4444 rm -f conftest.err conftest.$ac_ext
4446 done
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.err conftest.$ac_ext
4449 if $ac_preproc_ok; then :
4450   break
4453     done
4454     ac_cv_prog_CPP=$CPP
4455   
4457   CPP=$ac_cv_prog_CPP
4458 else
4459   ac_cv_prog_CPP=$CPP
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4462 $as_echo "$CPP" >&6; }
4463 ac_preproc_ok=false
4464 for ac_c_preproc_warn_flag in '' yes
4466   # Use a header file that comes with gcc, so configuring glibc
4467   # with a fresh cross-compiler works.
4468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469   # <limits.h> exists even on freestanding compilers.
4470   # On the NeXT, cc -E runs the code through the compiler's parser,
4471   # not just through cpp. "Syntax error" is here to catch this case.
4472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h.  */
4474 @%:@ifdef __STDC__
4475 @%:@ include <limits.h>
4476 @%:@else
4477 @%:@ include <assert.h>
4478 @%:@endif
4479                      Syntax error
4480 _ACEOF
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4482   
4483 else
4484   # Broken: fails on valid input.
4485 continue
4487 rm -f conftest.err conftest.$ac_ext
4489   # OK, works on sane cases.  Now check whether nonexistent headers
4490   # can be detected and how.
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 @%:@include <ac_nonexistent.h>
4494 _ACEOF
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496   # Broken: success on invalid input.
4497 continue
4498 else
4499   # Passes both tests.
4500 ac_preproc_ok=:
4501 break
4503 rm -f conftest.err conftest.$ac_ext
4505 done
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4509   
4510 else
4511   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4514 See \`config.log' for more details." "$LINENO" 5; }
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4525 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4526 if test "${ac_cv_path_GREP+set}" = set; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   if test -z "$GREP"; then
4530   ac_path_GREP_found=false
4531   # Loop through the user's path and test for each of PROGNAME-LIST
4532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537     for ac_prog in grep ggrep; do
4538     for ac_exec_ext in '' $ac_executable_extensions; do
4539       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4540       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4541 # Check for GNU ac_path_GREP and select it if it is found.
4542   # Check for GNU $ac_path_GREP
4543 case `"$ac_path_GREP" --version 2>&1` in
4544 *GNU*)
4545   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4547   ac_count=0
4548   $as_echo_n 0123456789 >"conftest.in"
4549   while :
4550   do
4551     cat "conftest.in" "conftest.in" >"conftest.tmp"
4552     mv "conftest.tmp" "conftest.in"
4553     cp "conftest.in" "conftest.nl"
4554     $as_echo 'GREP' >> "conftest.nl"
4555     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557     as_fn_arith $ac_count + 1 && ac_count=$as_val
4558     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4559       # Best one so far, save it but keep looking for a better one
4560       ac_cv_path_GREP="$ac_path_GREP"
4561       ac_path_GREP_max=$ac_count
4562     fi
4563     # 10*(2^10) chars as input seems more than enough
4564     test $ac_count -gt 10 && break
4565   done
4566   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4567 esac
4569       $ac_path_GREP_found && break 3
4570     done
4571   done
4572   done
4573 IFS=$as_save_IFS
4574   if test -z "$ac_cv_path_GREP"; then
4575     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4576   fi
4577 else
4578   ac_cv_path_GREP=$GREP
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4583 $as_echo "$ac_cv_path_GREP" >&6; }
4584  GREP="$ac_cv_path_GREP"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4588 $as_echo_n "checking for egrep... " >&6; }
4589 if test "${ac_cv_path_EGREP+set}" = set; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4593    then ac_cv_path_EGREP="$GREP -E"
4594    else
4595      if test -z "$EGREP"; then
4596   ac_path_EGREP_found=false
4597   # Loop through the user's path and test for each of PROGNAME-LIST
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603     for ac_prog in egrep; do
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4606       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4607 # Check for GNU ac_path_EGREP and select it if it is found.
4608   # Check for GNU $ac_path_EGREP
4609 case `"$ac_path_EGREP" --version 2>&1` in
4610 *GNU*)
4611   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4613   ac_count=0
4614   $as_echo_n 0123456789 >"conftest.in"
4615   while :
4616   do
4617     cat "conftest.in" "conftest.in" >"conftest.tmp"
4618     mv "conftest.tmp" "conftest.in"
4619     cp "conftest.in" "conftest.nl"
4620     $as_echo 'EGREP' >> "conftest.nl"
4621     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623     as_fn_arith $ac_count + 1 && ac_count=$as_val
4624     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4625       # Best one so far, save it but keep looking for a better one
4626       ac_cv_path_EGREP="$ac_path_EGREP"
4627       ac_path_EGREP_max=$ac_count
4628     fi
4629     # 10*(2^10) chars as input seems more than enough
4630     test $ac_count -gt 10 && break
4631   done
4632   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 esac
4635       $ac_path_EGREP_found && break 3
4636     done
4637   done
4638   done
4639 IFS=$as_save_IFS
4640   if test -z "$ac_cv_path_EGREP"; then
4641     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642   fi
4643 else
4644   ac_cv_path_EGREP=$EGREP
4647    fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4650 $as_echo "$ac_cv_path_EGREP" >&6; }
4651  EGREP="$ac_cv_path_EGREP"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4655 $as_echo_n "checking for ANSI C header files... " >&6; }
4656 if test "${ac_cv_header_stdc+set}" = set; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #include <stdlib.h>
4662 #include <stdarg.h>
4663 #include <string.h>
4664 #include <float.h>
4667 main (void)
4670   ;
4671   return 0;
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675   ac_cv_header_stdc=yes
4676 else
4677   ac_cv_header_stdc=no
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 if test $ac_cv_header_stdc = yes; then
4682   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h.  */
4685 #include <string.h>
4687 _ACEOF
4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689   $EGREP "memchr" >/dev/null 2>&1; then :
4690   
4691 else
4692   ac_cv_header_stdc=no
4694 rm -f conftest*
4698 if test $ac_cv_header_stdc = yes; then
4699   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #include <stdlib.h>
4704 _ACEOF
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706   $EGREP "free" >/dev/null 2>&1; then :
4707   
4708 else
4709   ac_cv_header_stdc=no
4711 rm -f conftest*
4715 if test $ac_cv_header_stdc = yes; then
4716   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4717   if test "$cross_compiling" = yes; then :
4718   :
4719 else
4720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 #include <ctype.h>
4723 #include <stdlib.h>
4724 #if ((' ' & 0x0FF) == 0x020)
4725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4727 #else
4728 # define ISLOWER(c) \
4729                    (('a' <= (c) && (c) <= 'i') \
4730                      || ('j' <= (c) && (c) <= 'r') \
4731                      || ('s' <= (c) && (c) <= 'z'))
4732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4733 #endif
4735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4737 main ()
4739   int i;
4740   for (i = 0; i < 256; i++)
4741     if (XOR (islower (i), ISLOWER (i))
4742         || toupper (i) != TOUPPER (i))
4743       return 2;
4744   return 0;
4746 _ACEOF
4747 if ac_fn_c_try_run "$LINENO"; then :
4748   
4749 else
4750   ac_cv_header_stdc=no
4752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4753   conftest.$ac_objext conftest.beam conftest.$ac_ext
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4759 $as_echo "$ac_cv_header_stdc" >&6; }
4760 if test $ac_cv_header_stdc = yes; then
4761   
4762 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4768                   inttypes.h stdint.h unistd.h
4769 do :
4770   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4773 eval as_val=\$$as_ac_Header
4774    if test "x$as_val" = x""yes; then :
4775   cat >>confdefs.h <<_ACEOF
4776 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 _ACEOF
4781 done
4785   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4786 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4787   MINIX=yes
4788 else
4789   MINIX=
4793   if test "$MINIX" = yes; then
4794     
4795 $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4797     
4798 $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4800     
4801 $as_echo "@%:@define _MINIX 1" >>confdefs.h
4803   fi
4805   
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4807 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4808 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h.  */
4814 #         define __EXTENSIONS__ 1
4815           $ac_includes_default
4817 main (void)
4820   ;
4821   return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825   ac_cv_safe_to_define___extensions__=yes
4826 else
4827   ac_cv_safe_to_define___extensions__=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4832 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4833   test $ac_cv_safe_to_define___extensions__ = yes &&
4834     $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4836   $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4838   $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4840   $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4842   $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4848 $as_echo_n "checking whether NLS is requested... " >&6; }
4849     @%:@ Check whether --enable-nls was given.
4850 if test "${enable_nls+set}" = set; then :
4851   enableval=$enable_nls; USE_NLS=$enableval
4852 else
4853   USE_NLS=yes
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4857 $as_echo "$USE_NLS" >&6; }
4858   
4861         
4862       GETTEXT_MACRO_VERSION=0.17
4865     
4866         
4867 # Prepare PATH_SEPARATOR.
4868 # The user is always right.
4869 if test "${PATH_SEPARATOR+set}" != set; then
4870   echo "#! /bin/sh" >conf$$.sh
4871   echo  "exit 0"   >>conf$$.sh
4872   chmod +x conf$$.sh
4873   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4874     PATH_SEPARATOR=';'
4875   else
4876     PATH_SEPARATOR=:
4877   fi
4878   rm -f conf$$.sh
4881 # Find out how to test for executable files. Don't use a zero-byte file,
4882 # as systems may use methods other than mode bits to determine executability.
4883 cat >conf$$.file <<_ASEOF
4884 #! /bin/sh
4885 exit 0
4886 _ASEOF
4887 chmod +x conf$$.file
4888 if test -x conf$$.file >/dev/null 2>&1; then
4889   ac_executable_p="test -x"
4890 else
4891   ac_executable_p="test -f"
4893 rm -f conf$$.file
4895 # Extract the first word of "msgfmt", so it can be a program name with args.
4896 set dummy msgfmt; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4900   $as_echo_n "(cached) " >&6
4901 else
4902   case "$MSGFMT" in
4903   [\\/]* | ?:[\\/]*)
4904     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4905     ;;
4906   *)
4907     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4908     for ac_dir in $PATH; do
4909       IFS="$ac_save_IFS"
4910       test -z "$ac_dir" && ac_dir=.
4911       for ac_exec_ext in '' $ac_executable_extensions; do
4912         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4913           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4914           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4915      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4916             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4917             break 2
4918           fi
4919         fi
4920       done
4921     done
4922     IFS="$ac_save_IFS"
4923   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4924     ;;
4925 esac
4927 MSGFMT="$ac_cv_path_MSGFMT"
4928 if test "$MSGFMT" != ":"; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4930 $as_echo "$MSGFMT" >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4936   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4937 set dummy gmsgfmt; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   case $GMSGFMT in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953     for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960   done
4961 IFS=$as_save_IFS
4963   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4964   ;;
4965 esac
4967 GMSGFMT=$ac_cv_path_GMSGFMT
4968 if test -n "$GMSGFMT"; then
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4970 $as_echo "$GMSGFMT" >&6; }
4971 else
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4978     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4979     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4980     *) MSGFMT_015=$MSGFMT ;;
4981   esac
4982   
4983   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4984     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4985     *) GMSGFMT_015=$GMSGFMT ;;
4986   esac
4987   
4989         
4990 # Prepare PATH_SEPARATOR.
4991 # The user is always right.
4992 if test "${PATH_SEPARATOR+set}" != set; then
4993   echo "#! /bin/sh" >conf$$.sh
4994   echo  "exit 0"   >>conf$$.sh
4995   chmod +x conf$$.sh
4996   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4997     PATH_SEPARATOR=';'
4998   else
4999     PATH_SEPARATOR=:
5000   fi
5001   rm -f conf$$.sh
5004 # Find out how to test for executable files. Don't use a zero-byte file,
5005 # as systems may use methods other than mode bits to determine executability.
5006 cat >conf$$.file <<_ASEOF
5007 #! /bin/sh
5008 exit 0
5009 _ASEOF
5010 chmod +x conf$$.file
5011 if test -x conf$$.file >/dev/null 2>&1; then
5012   ac_executable_p="test -x"
5013 else
5014   ac_executable_p="test -f"
5016 rm -f conf$$.file
5018 # Extract the first word of "xgettext", so it can be a program name with args.
5019 set dummy xgettext; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   case "$XGETTEXT" in
5026   [\\/]* | ?:[\\/]*)
5027     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5028     ;;
5029   *)
5030     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5031     for ac_dir in $PATH; do
5032       IFS="$ac_save_IFS"
5033       test -z "$ac_dir" && ac_dir=.
5034       for ac_exec_ext in '' $ac_executable_extensions; do
5035         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5036           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5037           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5038      (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
5039             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5040             break 2
5041           fi
5042         fi
5043       done
5044     done
5045     IFS="$ac_save_IFS"
5046   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5047     ;;
5048 esac
5050 XGETTEXT="$ac_cv_path_XGETTEXT"
5051 if test "$XGETTEXT" != ":"; then
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5053 $as_echo "$XGETTEXT" >&6; }
5054 else
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5059     rm -f messages.po
5061     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5062     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5063     *) XGETTEXT_015=$XGETTEXT ;;
5064   esac
5065   
5067     
5068 # Prepare PATH_SEPARATOR.
5069 # The user is always right.
5070 if test "${PATH_SEPARATOR+set}" != set; then
5071   echo "#! /bin/sh" >conf$$.sh
5072   echo  "exit 0"   >>conf$$.sh
5073   chmod +x conf$$.sh
5074   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5075     PATH_SEPARATOR=';'
5076   else
5077     PATH_SEPARATOR=:
5078   fi
5079   rm -f conf$$.sh
5082 # Find out how to test for executable files. Don't use a zero-byte file,
5083 # as systems may use methods other than mode bits to determine executability.
5084 cat >conf$$.file <<_ASEOF
5085 #! /bin/sh
5086 exit 0
5087 _ASEOF
5088 chmod +x conf$$.file
5089 if test -x conf$$.file >/dev/null 2>&1; then
5090   ac_executable_p="test -x"
5091 else
5092   ac_executable_p="test -f"
5094 rm -f conf$$.file
5096 # Extract the first word of "msgmerge", so it can be a program name with args.
5097 set dummy msgmerge; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   case "$MSGMERGE" in
5104   [\\/]* | ?:[\\/]*)
5105     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5106     ;;
5107   *)
5108     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5109     for ac_dir in $PATH; do
5110       IFS="$ac_save_IFS"
5111       test -z "$ac_dir" && ac_dir=.
5112       for ac_exec_ext in '' $ac_executable_extensions; do
5113         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5114           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5115           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5116             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5117             break 2
5118           fi
5119         fi
5120       done
5121     done
5122     IFS="$ac_save_IFS"
5123   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5124     ;;
5125 esac
5127 MSGMERGE="$ac_cv_path_MSGMERGE"
5128 if test "$MSGMERGE" != ":"; then
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5130 $as_echo "$MSGMERGE" >&6; }
5131 else
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137         test -n "$localedir" || localedir='${datadir}/locale'
5138   
5140     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5141   
5143   ac_config_commands="$ac_config_commands po-directories"
5147       if test "X$prefix" = "XNONE"; then
5148     acl_final_prefix="$ac_default_prefix"
5149   else
5150     acl_final_prefix="$prefix"
5151   fi
5152   if test "X$exec_prefix" = "XNONE"; then
5153     acl_final_exec_prefix='${prefix}'
5154   else
5155     acl_final_exec_prefix="$exec_prefix"
5156   fi
5157   acl_save_prefix="$prefix"
5158   prefix="$acl_final_prefix"
5159   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5160   prefix="$acl_save_prefix"
5163 @%:@ Check whether --with-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then :
5165   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5166 else
5167   with_gnu_ld=no
5170 # Prepare PATH_SEPARATOR.
5171 # The user is always right.
5172 if test "${PATH_SEPARATOR+set}" != set; then
5173   echo "#! /bin/sh" >conf$$.sh
5174   echo  "exit 0"   >>conf$$.sh
5175   chmod +x conf$$.sh
5176   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5177     PATH_SEPARATOR=';'
5178   else
5179     PATH_SEPARATOR=:
5180   fi
5181   rm -f conf$$.sh
5183 ac_prog=ld
5184 if test "$GCC" = yes; then
5185   # Check if gcc -print-prog-name=ld gives a path.
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5187 $as_echo_n "checking for ld used by GCC... " >&6; }
5188   case $host in
5189   *-*-mingw*)
5190     # gcc leaves a trailing carriage return which upsets mingw
5191     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5192   *)
5193     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5194   esac
5195   case $ac_prog in
5196     # Accept absolute paths.
5197     [\\/]* | [A-Za-z]:[\\/]*)
5198       re_direlt='/[^/][^/]*/\.\./'
5199       # Canonicalize the path of ld
5200       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5201       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5202         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5203       done
5204       test -z "$LD" && LD="$ac_prog"
5205       ;;
5206   "")
5207     # If it fails, then pretend we aren't using GCC.
5208     ac_prog=ld
5209     ;;
5210   *)
5211     # If it is relative, then search for the first ld in PATH.
5212     with_gnu_ld=unknown
5213     ;;
5214   esac
5215 elif test "$with_gnu_ld" = yes; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5217 $as_echo_n "checking for GNU ld... " >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5220 $as_echo_n "checking for non-GNU ld... " >&6; }
5222 if test "${acl_cv_path_LD+set}" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -z "$LD"; then
5226   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5227   for ac_dir in $PATH; do
5228     test -z "$ac_dir" && ac_dir=.
5229     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230       acl_cv_path_LD="$ac_dir/$ac_prog"
5231       # Check to see if the program is GNU ld.  I'd rather use --version,
5232       # but apparently some GNU ld's only accept -v.
5233       # Break only if it was the GNU/non-GNU ld that we prefer.
5234       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5235       *GNU* | *'with BFD'*)
5236         test "$with_gnu_ld" != no && break ;;
5237       *)
5238         test "$with_gnu_ld" != yes && break ;;
5239       esac
5240     fi
5241   done
5242   IFS="$ac_save_ifs"
5243 else
5244   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5248 LD="$acl_cv_path_LD"
5249 if test -n "$LD"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5251 $as_echo "$LD" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5256 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5258 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5259 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5263 case `$LD -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265   acl_cv_prog_gnu_ld=yes ;;
5267   acl_cv_prog_gnu_ld=no ;;
5268 esac
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5271 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5272 with_gnu_ld=$acl_cv_prog_gnu_ld
5276     
5277                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5278 $as_echo_n "checking for shared library run path origin... " >&6; }
5279 if test "${acl_cv_rpath+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   
5283     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5284     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5285     . ./conftest.sh
5286     rm -f ./conftest.sh
5287     acl_cv_rpath=done
5288   
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5291 $as_echo "$acl_cv_rpath" >&6; }
5292   wl="$acl_cv_wl"
5293   acl_libext="$acl_cv_libext"
5294   acl_shlibext="$acl_cv_shlibext"
5295   acl_libname_spec="$acl_cv_libname_spec"
5296   acl_library_names_spec="$acl_cv_library_names_spec"
5297   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5298   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5299   acl_hardcode_direct="$acl_cv_hardcode_direct"
5300   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5301     @%:@ Check whether --enable-rpath was given.
5302 if test "${enable_rpath+set}" = set; then :
5303   enableval=$enable_rpath; :
5304 else
5305   enable_rpath=yes
5310                   acl_libdirstem=lib
5311   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5312   if test -n "$searchpath"; then
5313     acl_save_IFS="${IFS=        }"; IFS=":"
5314     for searchdir in $searchpath; do
5315       if test -d "$searchdir"; then
5316         case "$searchdir" in
5317           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5318           *) searchdir=`cd "$searchdir" && pwd`
5319              case "$searchdir" in
5320                */lib64 ) acl_libdirstem=lib64 ;;
5321              esac ;;
5322         esac
5323       fi
5324     done
5325     IFS="$acl_save_IFS"
5326   fi
5329     
5330   
5332       
5333   
5334   
5335     
5336     use_additional=yes
5337   
5338   acl_save_prefix="$prefix"
5339   prefix="$acl_final_prefix"
5340   acl_save_exec_prefix="$exec_prefix"
5341   exec_prefix="$acl_final_exec_prefix"
5342   
5343     eval additional_includedir=\"$includedir\"
5344     eval additional_libdir=\"$libdir\"
5345   
5346   exec_prefix="$acl_save_exec_prefix"
5347   prefix="$acl_save_prefix"
5349   
5350 @%:@ Check whether --with-libiconv-prefix was given.
5351 if test "${with_libiconv_prefix+set}" = set; then :
5352   withval=$with_libiconv_prefix; 
5353     if test "X$withval" = "Xno"; then
5354       use_additional=no
5355     else
5356       if test "X$withval" = "X"; then
5357         
5358   acl_save_prefix="$prefix"
5359   prefix="$acl_final_prefix"
5360   acl_save_exec_prefix="$exec_prefix"
5361   exec_prefix="$acl_final_exec_prefix"
5362   
5363           eval additional_includedir=\"$includedir\"
5364           eval additional_libdir=\"$libdir\"
5365         
5366   exec_prefix="$acl_save_exec_prefix"
5367   prefix="$acl_save_prefix"
5369       else
5370         additional_includedir="$withval/include"
5371         additional_libdir="$withval/$acl_libdirstem"
5372       fi
5373     fi
5377       LIBICONV=
5378   LTLIBICONV=
5379   INCICONV=
5380   LIBICONV_PREFIX=
5381   rpathdirs=
5382   ltrpathdirs=
5383   names_already_handled=
5384   names_next_round='iconv '
5385   while test -n "$names_next_round"; do
5386     names_this_round="$names_next_round"
5387     names_next_round=
5388     for name in $names_this_round; do
5389       already_handled=
5390       for n in $names_already_handled; do
5391         if test "$n" = "$name"; then
5392           already_handled=yes
5393           break
5394         fi
5395       done
5396       if test -z "$already_handled"; then
5397         names_already_handled="$names_already_handled $name"
5398                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5399         eval value=\"\$HAVE_LIB$uppername\"
5400         if test -n "$value"; then
5401           if test "$value" = yes; then
5402             eval value=\"\$LIB$uppername\"
5403             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5404             eval value=\"\$LTLIB$uppername\"
5405             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5406           else
5407                                     :
5408           fi
5409         else
5410                               found_dir=
5411           found_la=
5412           found_so=
5413           found_a=
5414           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5415           if test -n "$acl_shlibext"; then
5416             shrext=".$acl_shlibext"             # typically: shrext=.so
5417           else
5418             shrext=
5419           fi
5420           if test $use_additional = yes; then
5421             dir="$additional_libdir"
5422                                     if test -n "$acl_shlibext"; then
5423               if test -f "$dir/$libname$shrext"; then
5424                 found_dir="$dir"
5425                 found_so="$dir/$libname$shrext"
5426               else
5427                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5428                   ver=`(cd "$dir" && \
5429                         for f in "$libname$shrext".*; do echo "$f"; done \
5430                         | sed -e "s,^$libname$shrext\\\\.,," \
5431                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5432                         | sed 1q ) 2>/dev/null`
5433                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5434                     found_dir="$dir"
5435                     found_so="$dir/$libname$shrext.$ver"
5436                   fi
5437                 else
5438                   eval library_names=\"$acl_library_names_spec\"
5439                   for f in $library_names; do
5440                     if test -f "$dir/$f"; then
5441                       found_dir="$dir"
5442                       found_so="$dir/$f"
5443                       break
5444                     fi
5445                   done
5446                 fi
5447               fi
5448             fi
5449                         if test "X$found_dir" = "X"; then
5450               if test -f "$dir/$libname.$acl_libext"; then
5451                 found_dir="$dir"
5452                 found_a="$dir/$libname.$acl_libext"
5453               fi
5454             fi
5455             if test "X$found_dir" != "X"; then
5456               if test -f "$dir/$libname.la"; then
5457                 found_la="$dir/$libname.la"
5458               fi
5459             fi
5460           fi
5461           if test "X$found_dir" = "X"; then
5462             for x in $LDFLAGS $LTLIBICONV; do
5463               
5464   acl_save_prefix="$prefix"
5465   prefix="$acl_final_prefix"
5466   acl_save_exec_prefix="$exec_prefix"
5467   exec_prefix="$acl_final_exec_prefix"
5468   eval x=\"$x\"
5469   exec_prefix="$acl_save_exec_prefix"
5470   prefix="$acl_save_prefix"
5472               case "$x" in
5473                 -L*)
5474                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5475                                     if test -n "$acl_shlibext"; then
5476                     if test -f "$dir/$libname$shrext"; then
5477                       found_dir="$dir"
5478                       found_so="$dir/$libname$shrext"
5479                     else
5480                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5481                         ver=`(cd "$dir" && \
5482                               for f in "$libname$shrext".*; do echo "$f"; done \
5483                               | sed -e "s,^$libname$shrext\\\\.,," \
5484                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5485                               | sed 1q ) 2>/dev/null`
5486                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5487                           found_dir="$dir"
5488                           found_so="$dir/$libname$shrext.$ver"
5489                         fi
5490                       else
5491                         eval library_names=\"$acl_library_names_spec\"
5492                         for f in $library_names; do
5493                           if test -f "$dir/$f"; then
5494                             found_dir="$dir"
5495                             found_so="$dir/$f"
5496                             break
5497                           fi
5498                         done
5499                       fi
5500                     fi
5501                   fi
5502                                     if test "X$found_dir" = "X"; then
5503                     if test -f "$dir/$libname.$acl_libext"; then
5504                       found_dir="$dir"
5505                       found_a="$dir/$libname.$acl_libext"
5506                     fi
5507                   fi
5508                   if test "X$found_dir" != "X"; then
5509                     if test -f "$dir/$libname.la"; then
5510                       found_la="$dir/$libname.la"
5511                     fi
5512                   fi
5513                   ;;
5514               esac
5515               if test "X$found_dir" != "X"; then
5516                 break
5517               fi
5518             done
5519           fi
5520           if test "X$found_dir" != "X"; then
5521                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5522             if test "X$found_so" != "X"; then
5523                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5524                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5525               else
5526                                                                                 haveit=
5527                 for x in $ltrpathdirs; do
5528                   if test "X$x" = "X$found_dir"; then
5529                     haveit=yes
5530                     break
5531                   fi
5532                 done
5533                 if test -z "$haveit"; then
5534                   ltrpathdirs="$ltrpathdirs $found_dir"
5535                 fi
5536                                 if test "$acl_hardcode_direct" = yes; then
5537                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5538                 else
5539                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5540                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5541                                                             haveit=
5542                     for x in $rpathdirs; do
5543                       if test "X$x" = "X$found_dir"; then
5544                         haveit=yes
5545                         break
5546                       fi
5547                     done
5548                     if test -z "$haveit"; then
5549                       rpathdirs="$rpathdirs $found_dir"
5550                     fi
5551                   else
5552                                                                                 haveit=
5553                     for x in $LDFLAGS $LIBICONV; do
5554                       
5555   acl_save_prefix="$prefix"
5556   prefix="$acl_final_prefix"
5557   acl_save_exec_prefix="$exec_prefix"
5558   exec_prefix="$acl_final_exec_prefix"
5559   eval x=\"$x\"
5560   exec_prefix="$acl_save_exec_prefix"
5561   prefix="$acl_save_prefix"
5563                       if test "X$x" = "X-L$found_dir"; then
5564                         haveit=yes
5565                         break
5566                       fi
5567                     done
5568                     if test -z "$haveit"; then
5569                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5570                     fi
5571                     if test "$acl_hardcode_minus_L" != no; then
5572                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5573                     else
5574                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5575                     fi
5576                   fi
5577                 fi
5578               fi
5579             else
5580               if test "X$found_a" != "X"; then
5581                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5582               else
5583                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5584               fi
5585             fi
5586                         additional_includedir=
5587             case "$found_dir" in
5588               */$acl_libdirstem | */$acl_libdirstem/)
5589                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5590                 LIBICONV_PREFIX="$basedir"
5591                 additional_includedir="$basedir/include"
5592                 ;;
5593             esac
5594             if test "X$additional_includedir" != "X"; then
5595                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5596                 haveit=
5597                 if test "X$additional_includedir" = "X/usr/local/include"; then
5598                   if test -n "$GCC"; then
5599                     case $host_os in
5600                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5601                     esac
5602                   fi
5603                 fi
5604                 if test -z "$haveit"; then
5605                   for x in $CPPFLAGS $INCICONV; do
5606                     
5607   acl_save_prefix="$prefix"
5608   prefix="$acl_final_prefix"
5609   acl_save_exec_prefix="$exec_prefix"
5610   exec_prefix="$acl_final_exec_prefix"
5611   eval x=\"$x\"
5612   exec_prefix="$acl_save_exec_prefix"
5613   prefix="$acl_save_prefix"
5615                     if test "X$x" = "X-I$additional_includedir"; then
5616                       haveit=yes
5617                       break
5618                     fi
5619                   done
5620                   if test -z "$haveit"; then
5621                     if test -d "$additional_includedir"; then
5622                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5623                     fi
5624                   fi
5625                 fi
5626               fi
5627             fi
5628                         if test -n "$found_la"; then
5629                                                         save_libdir="$libdir"
5630               case "$found_la" in
5631                 */* | *\\*) . "$found_la" ;;
5632                 *) . "./$found_la" ;;
5633               esac
5634               libdir="$save_libdir"
5635                             for dep in $dependency_libs; do
5636                 case "$dep" in
5637                   -L*)
5638                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5639                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5640                       haveit=
5641                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5642                         if test -n "$GCC"; then
5643                           case $host_os in
5644                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5645                           esac
5646                         fi
5647                       fi
5648                       if test -z "$haveit"; then
5649                         haveit=
5650                         for x in $LDFLAGS $LIBICONV; do
5651                           
5652   acl_save_prefix="$prefix"
5653   prefix="$acl_final_prefix"
5654   acl_save_exec_prefix="$exec_prefix"
5655   exec_prefix="$acl_final_exec_prefix"
5656   eval x=\"$x\"
5657   exec_prefix="$acl_save_exec_prefix"
5658   prefix="$acl_save_prefix"
5660                           if test "X$x" = "X-L$additional_libdir"; then
5661                             haveit=yes
5662                             break
5663                           fi
5664                         done
5665                         if test -z "$haveit"; then
5666                           if test -d "$additional_libdir"; then
5667                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5668                           fi
5669                         fi
5670                         haveit=
5671                         for x in $LDFLAGS $LTLIBICONV; do
5672                           
5673   acl_save_prefix="$prefix"
5674   prefix="$acl_final_prefix"
5675   acl_save_exec_prefix="$exec_prefix"
5676   exec_prefix="$acl_final_exec_prefix"
5677   eval x=\"$x\"
5678   exec_prefix="$acl_save_exec_prefix"
5679   prefix="$acl_save_prefix"
5681                           if test "X$x" = "X-L$additional_libdir"; then
5682                             haveit=yes
5683                             break
5684                           fi
5685                         done
5686                         if test -z "$haveit"; then
5687                           if test -d "$additional_libdir"; then
5688                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5689                           fi
5690                         fi
5691                       fi
5692                     fi
5693                     ;;
5694                   -R*)
5695                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5696                     if test "$enable_rpath" != no; then
5697                                                                   haveit=
5698                       for x in $rpathdirs; do
5699                         if test "X$x" = "X$dir"; then
5700                           haveit=yes
5701                           break
5702                         fi
5703                       done
5704                       if test -z "$haveit"; then
5705                         rpathdirs="$rpathdirs $dir"
5706                       fi
5707                                                                   haveit=
5708                       for x in $ltrpathdirs; do
5709                         if test "X$x" = "X$dir"; then
5710                           haveit=yes
5711                           break
5712                         fi
5713                       done
5714                       if test -z "$haveit"; then
5715                         ltrpathdirs="$ltrpathdirs $dir"
5716                       fi
5717                     fi
5718                     ;;
5719                   -l*)
5720                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5721                     ;;
5722                   *.la)
5723                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5724                     ;;
5725                   *)
5726                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5727                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5728                     ;;
5729                 esac
5730               done
5731             fi
5732           else
5733                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5734             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5735           fi
5736         fi
5737       fi
5738     done
5739   done
5740   if test "X$rpathdirs" != "X"; then
5741     if test -n "$acl_hardcode_libdir_separator"; then
5742                         alldirs=
5743       for found_dir in $rpathdirs; do
5744         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5745       done
5746             acl_save_libdir="$libdir"
5747       libdir="$alldirs"
5748       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5749       libdir="$acl_save_libdir"
5750       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5751     else
5752             for found_dir in $rpathdirs; do
5753         acl_save_libdir="$libdir"
5754         libdir="$found_dir"
5755         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5756         libdir="$acl_save_libdir"
5757         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5758       done
5759     fi
5760   fi
5761   if test "X$ltrpathdirs" != "X"; then
5762             for found_dir in $ltrpathdirs; do
5763       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5764     done
5765   fi
5769     
5770   
5771   
5772   
5773   
5774   
5775   
5777   
5778   
5781     
5783     
5784   
5786                         
5787     
5788   
5790     
5791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5792 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5793 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   gt_save_LIBS="$LIBS"
5797      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h.  */
5800 #include <CoreFoundation/CFPreferences.h>
5802 main (void)
5804 CFPreferencesCopyAppValue(NULL, NULL)
5805   ;
5806   return 0;
5808 _ACEOF
5809 if ac_fn_c_try_link "$LINENO"; then :
5810   gt_cv_func_CFPreferencesCopyAppValue=yes
5811 else
5812   gt_cv_func_CFPreferencesCopyAppValue=no
5814 rm -f core conftest.err conftest.$ac_objext \
5815     conftest$ac_exeext conftest.$ac_ext
5816      LIBS="$gt_save_LIBS"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5819 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5820   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5821     
5822 $as_echo "@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5824   fi
5825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5826 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5827 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   gt_save_LIBS="$LIBS"
5831      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h.  */
5834 #include <CoreFoundation/CFLocale.h>
5836 main (void)
5838 CFLocaleCopyCurrent();
5839   ;
5840   return 0;
5842 _ACEOF
5843 if ac_fn_c_try_link "$LINENO"; then :
5844   gt_cv_func_CFLocaleCopyCurrent=yes
5845 else
5846   gt_cv_func_CFLocaleCopyCurrent=no
5848 rm -f core conftest.err conftest.$ac_objext \
5849     conftest$ac_exeext conftest.$ac_ext
5850      LIBS="$gt_save_LIBS"
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5853 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5854   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5855     
5856 $as_echo "@%:@define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5858   fi
5859   INTL_MACOSX_LIBS=
5860   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5861     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5862   fi
5863   
5866     
5868   
5869   LIBINTL=
5870   LTLIBINTL=
5871   POSUB=
5873     case " $gt_needs " in
5874     *" need-formatstring-macros "*) gt_api_version=3 ;;
5875     *" need-ngettext "*) gt_api_version=2 ;;
5876     *) gt_api_version=1 ;;
5877   esac
5878   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5879   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5881     if test "$USE_NLS" = "yes"; then
5882     gt_use_preinstalled_gnugettext=no
5883     
5884                         
5885         if test $gt_api_version -ge 3; then
5886           gt_revision_test_code='
5887 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5888 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5889 #endif
5890 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5892         else
5893           gt_revision_test_code=
5894         fi
5895         if test $gt_api_version -ge 2; then
5896           gt_expression_test_code=' + * ngettext ("", "", 0)'
5897         else
5898           gt_expression_test_code=
5899         fi
5901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5902 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5903 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h.  */
5908 #include <libintl.h>
5909 $gt_revision_test_code
5910 extern int _nl_msg_cat_cntr;
5911 extern int *_nl_domain_bindings;
5913 main (void)
5915 bindtextdomain ("", "");
5916 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5917   ;
5918   return 0;
5920 _ACEOF
5921 if ac_fn_c_try_link "$LINENO"; then :
5922   eval "$gt_func_gnugettext_libc=yes"
5923 else
5924   eval "$gt_func_gnugettext_libc=no"
5926 rm -f core conftest.err conftest.$ac_objext \
5927     conftest$ac_exeext conftest.$ac_ext
5929 eval ac_res=\$$gt_func_gnugettext_libc
5930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5931 $as_echo "$ac_res" >&6; }
5933         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5934                     
5935             
5936        
5937       
5939           am_save_CPPFLAGS="$CPPFLAGS"
5940   
5941   for element in $INCICONV; do
5942     haveit=
5943     for x in $CPPFLAGS; do
5944       
5945   acl_save_prefix="$prefix"
5946   prefix="$acl_final_prefix"
5947   acl_save_exec_prefix="$exec_prefix"
5948   exec_prefix="$acl_final_exec_prefix"
5949   eval x=\"$x\"
5950   exec_prefix="$acl_save_exec_prefix"
5951   prefix="$acl_save_prefix"
5953       if test "X$x" = "X$element"; then
5954         haveit=yes
5955         break
5956       fi
5957     done
5958     if test -z "$haveit"; then
5959       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5960     fi
5961   done
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5965 $as_echo_n "checking for iconv... " >&6; }
5966 if test "${am_cv_func_iconv+set}" = set; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   
5970     am_cv_func_iconv="no, consider installing GNU libiconv"
5971     am_cv_lib_iconv=no
5972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h.  */
5974 #include <stdlib.h>
5975 #include <iconv.h>
5977 main (void)
5979 iconv_t cd = iconv_open("","");
5980        iconv(cd,NULL,NULL,NULL,NULL);
5981        iconv_close(cd);
5982   ;
5983   return 0;
5985 _ACEOF
5986 if ac_fn_c_try_link "$LINENO"; then :
5987   am_cv_func_iconv=yes
5989 rm -f core conftest.err conftest.$ac_objext \
5990     conftest$ac_exeext conftest.$ac_ext
5991     if test "$am_cv_func_iconv" != yes; then
5992       am_save_LIBS="$LIBS"
5993       LIBS="$LIBS $LIBICONV"
5994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h.  */
5996 #include <stdlib.h>
5997 #include <iconv.h>
5999 main (void)
6001 iconv_t cd = iconv_open("","");
6002          iconv(cd,NULL,NULL,NULL,NULL);
6003          iconv_close(cd);
6004   ;
6005   return 0;
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009   am_cv_lib_iconv=yes
6010         am_cv_func_iconv=yes
6012 rm -f core conftest.err conftest.$ac_objext \
6013     conftest$ac_exeext conftest.$ac_ext
6014       LIBS="$am_save_LIBS"
6015     fi
6016   
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6019 $as_echo "$am_cv_func_iconv" >&6; }
6020   if test "$am_cv_func_iconv" = yes; then
6021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6022 $as_echo_n "checking for working iconv... " >&6; }
6023 if test "${am_cv_func_iconv_works+set}" = set; then :
6024   $as_echo_n "(cached) " >&6
6025 else
6026   
6027             am_save_LIBS="$LIBS"
6028       if test $am_cv_lib_iconv = yes; then
6029         LIBS="$LIBS $LIBICONV"
6030       fi
6031       if test "$cross_compiling" = yes; then :
6032   case "$host_os" in
6033            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6034            *)            am_cv_func_iconv_works="guessing yes" ;;
6035          esac
6036 else
6037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h.  */
6040 #include <iconv.h>
6041 #include <string.h>
6042 int main ()
6044   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6045      returns.  */
6046   {
6047     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6048     if (cd_utf8_to_88591 != (iconv_t)(-1))
6049       {
6050         static const char input[] = "\342\202\254"; /* EURO SIGN */
6051         char buf[10];
6052         const char *inptr = input;
6053         size_t inbytesleft = strlen (input);
6054         char *outptr = buf;
6055         size_t outbytesleft = sizeof (buf);
6056         size_t res = iconv (cd_utf8_to_88591,
6057                             (char **) &inptr, &inbytesleft,
6058                             &outptr, &outbytesleft);
6059         if (res == 0)
6060           return 1;
6061       }
6062   }
6063 #if 0 /* This bug could be worked around by the caller.  */
6064   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6065   {
6066     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6067     if (cd_88591_to_utf8 != (iconv_t)(-1))
6068       {
6069         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6070         char buf[50];
6071         const char *inptr = input;
6072         size_t inbytesleft = strlen (input);
6073         char *outptr = buf;
6074         size_t outbytesleft = sizeof (buf);
6075         size_t res = iconv (cd_88591_to_utf8,
6076                             (char **) &inptr, &inbytesleft,
6077                             &outptr, &outbytesleft);
6078         if ((int)res > 0)
6079           return 1;
6080       }
6081   }
6082 #endif
6083   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6084      provided.  */
6085   if (/* Try standardized names.  */
6086       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6087       /* Try IRIX, OSF/1 names.  */
6088       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6089       /* Try AIX names.  */
6090       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6091       /* Try HP-UX names.  */
6092       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6093     return 1;
6094   return 0;
6096 _ACEOF
6097 if ac_fn_c_try_run "$LINENO"; then :
6098   am_cv_func_iconv_works=yes
6099 else
6100   am_cv_func_iconv_works=no
6102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6103   conftest.$ac_objext conftest.beam conftest.$ac_ext
6106       LIBS="$am_save_LIBS"
6107     
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6110 $as_echo "$am_cv_func_iconv_works" >&6; }
6111     case "$am_cv_func_iconv_works" in
6112       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6113       *)   am_func_iconv=yes ;;
6114     esac
6115   else
6116     am_func_iconv=no am_cv_lib_iconv=no
6117   fi
6118   if test "$am_func_iconv" = yes; then
6119     
6120 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
6122   fi
6123   if test "$am_cv_lib_iconv" = yes; then
6124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6125 $as_echo_n "checking how to link with libiconv... " >&6; }
6126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6127 $as_echo "$LIBICONV" >&6; }
6128   else
6129             CPPFLAGS="$am_save_CPPFLAGS"
6130     LIBICONV=
6131     LTLIBICONV=
6132   fi
6133   
6134   
6136           
6137                                                   
6138   
6139   
6140     
6141     use_additional=yes
6142   
6143   acl_save_prefix="$prefix"
6144   prefix="$acl_final_prefix"
6145   acl_save_exec_prefix="$exec_prefix"
6146   exec_prefix="$acl_final_exec_prefix"
6147   
6148     eval additional_includedir=\"$includedir\"
6149     eval additional_libdir=\"$libdir\"
6150   
6151   exec_prefix="$acl_save_exec_prefix"
6152   prefix="$acl_save_prefix"
6154   
6155 @%:@ Check whether --with-libintl-prefix was given.
6156 if test "${with_libintl_prefix+set}" = set; then :
6157   withval=$with_libintl_prefix; 
6158     if test "X$withval" = "Xno"; then
6159       use_additional=no
6160     else
6161       if test "X$withval" = "X"; then
6162         
6163   acl_save_prefix="$prefix"
6164   prefix="$acl_final_prefix"
6165   acl_save_exec_prefix="$exec_prefix"
6166   exec_prefix="$acl_final_exec_prefix"
6167   
6168           eval additional_includedir=\"$includedir\"
6169           eval additional_libdir=\"$libdir\"
6170         
6171   exec_prefix="$acl_save_exec_prefix"
6172   prefix="$acl_save_prefix"
6174       else
6175         additional_includedir="$withval/include"
6176         additional_libdir="$withval/$acl_libdirstem"
6177       fi
6178     fi
6182       LIBINTL=
6183   LTLIBINTL=
6184   INCINTL=
6185   LIBINTL_PREFIX=
6186   rpathdirs=
6187   ltrpathdirs=
6188   names_already_handled=
6189   names_next_round='intl '
6190   while test -n "$names_next_round"; do
6191     names_this_round="$names_next_round"
6192     names_next_round=
6193     for name in $names_this_round; do
6194       already_handled=
6195       for n in $names_already_handled; do
6196         if test "$n" = "$name"; then
6197           already_handled=yes
6198           break
6199         fi
6200       done
6201       if test -z "$already_handled"; then
6202         names_already_handled="$names_already_handled $name"
6203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6204         eval value=\"\$HAVE_LIB$uppername\"
6205         if test -n "$value"; then
6206           if test "$value" = yes; then
6207             eval value=\"\$LIB$uppername\"
6208             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6209             eval value=\"\$LTLIB$uppername\"
6210             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6211           else
6212                                     :
6213           fi
6214         else
6215                               found_dir=
6216           found_la=
6217           found_so=
6218           found_a=
6219           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6220           if test -n "$acl_shlibext"; then
6221             shrext=".$acl_shlibext"             # typically: shrext=.so
6222           else
6223             shrext=
6224           fi
6225           if test $use_additional = yes; then
6226             dir="$additional_libdir"
6227                                     if test -n "$acl_shlibext"; then
6228               if test -f "$dir/$libname$shrext"; then
6229                 found_dir="$dir"
6230                 found_so="$dir/$libname$shrext"
6231               else
6232                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6233                   ver=`(cd "$dir" && \
6234                         for f in "$libname$shrext".*; do echo "$f"; done \
6235                         | sed -e "s,^$libname$shrext\\\\.,," \
6236                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6237                         | sed 1q ) 2>/dev/null`
6238                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6239                     found_dir="$dir"
6240                     found_so="$dir/$libname$shrext.$ver"
6241                   fi
6242                 else
6243                   eval library_names=\"$acl_library_names_spec\"
6244                   for f in $library_names; do
6245                     if test -f "$dir/$f"; then
6246                       found_dir="$dir"
6247                       found_so="$dir/$f"
6248                       break
6249                     fi
6250                   done
6251                 fi
6252               fi
6253             fi
6254                         if test "X$found_dir" = "X"; then
6255               if test -f "$dir/$libname.$acl_libext"; then
6256                 found_dir="$dir"
6257                 found_a="$dir/$libname.$acl_libext"
6258               fi
6259             fi
6260             if test "X$found_dir" != "X"; then
6261               if test -f "$dir/$libname.la"; then
6262                 found_la="$dir/$libname.la"
6263               fi
6264             fi
6265           fi
6266           if test "X$found_dir" = "X"; then
6267             for x in $LDFLAGS $LTLIBINTL; do
6268               
6269   acl_save_prefix="$prefix"
6270   prefix="$acl_final_prefix"
6271   acl_save_exec_prefix="$exec_prefix"
6272   exec_prefix="$acl_final_exec_prefix"
6273   eval x=\"$x\"
6274   exec_prefix="$acl_save_exec_prefix"
6275   prefix="$acl_save_prefix"
6277               case "$x" in
6278                 -L*)
6279                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6280                                     if test -n "$acl_shlibext"; then
6281                     if test -f "$dir/$libname$shrext"; then
6282                       found_dir="$dir"
6283                       found_so="$dir/$libname$shrext"
6284                     else
6285                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6286                         ver=`(cd "$dir" && \
6287                               for f in "$libname$shrext".*; do echo "$f"; done \
6288                               | sed -e "s,^$libname$shrext\\\\.,," \
6289                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6290                               | sed 1q ) 2>/dev/null`
6291                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6292                           found_dir="$dir"
6293                           found_so="$dir/$libname$shrext.$ver"
6294                         fi
6295                       else
6296                         eval library_names=\"$acl_library_names_spec\"
6297                         for f in $library_names; do
6298                           if test -f "$dir/$f"; then
6299                             found_dir="$dir"
6300                             found_so="$dir/$f"
6301                             break
6302                           fi
6303                         done
6304                       fi
6305                     fi
6306                   fi
6307                                     if test "X$found_dir" = "X"; then
6308                     if test -f "$dir/$libname.$acl_libext"; then
6309                       found_dir="$dir"
6310                       found_a="$dir/$libname.$acl_libext"
6311                     fi
6312                   fi
6313                   if test "X$found_dir" != "X"; then
6314                     if test -f "$dir/$libname.la"; then
6315                       found_la="$dir/$libname.la"
6316                     fi
6317                   fi
6318                   ;;
6319               esac
6320               if test "X$found_dir" != "X"; then
6321                 break
6322               fi
6323             done
6324           fi
6325           if test "X$found_dir" != "X"; then
6326                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6327             if test "X$found_so" != "X"; then
6328                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6329                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6330               else
6331                                                                                 haveit=
6332                 for x in $ltrpathdirs; do
6333                   if test "X$x" = "X$found_dir"; then
6334                     haveit=yes
6335                     break
6336                   fi
6337                 done
6338                 if test -z "$haveit"; then
6339                   ltrpathdirs="$ltrpathdirs $found_dir"
6340                 fi
6341                                 if test "$acl_hardcode_direct" = yes; then
6342                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6343                 else
6344                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6345                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6346                                                             haveit=
6347                     for x in $rpathdirs; do
6348                       if test "X$x" = "X$found_dir"; then
6349                         haveit=yes
6350                         break
6351                       fi
6352                     done
6353                     if test -z "$haveit"; then
6354                       rpathdirs="$rpathdirs $found_dir"
6355                     fi
6356                   else
6357                                                                                 haveit=
6358                     for x in $LDFLAGS $LIBINTL; do
6359                       
6360   acl_save_prefix="$prefix"
6361   prefix="$acl_final_prefix"
6362   acl_save_exec_prefix="$exec_prefix"
6363   exec_prefix="$acl_final_exec_prefix"
6364   eval x=\"$x\"
6365   exec_prefix="$acl_save_exec_prefix"
6366   prefix="$acl_save_prefix"
6368                       if test "X$x" = "X-L$found_dir"; then
6369                         haveit=yes
6370                         break
6371                       fi
6372                     done
6373                     if test -z "$haveit"; then
6374                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6375                     fi
6376                     if test "$acl_hardcode_minus_L" != no; then
6377                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6378                     else
6379                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6380                     fi
6381                   fi
6382                 fi
6383               fi
6384             else
6385               if test "X$found_a" != "X"; then
6386                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6387               else
6388                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6389               fi
6390             fi
6391                         additional_includedir=
6392             case "$found_dir" in
6393               */$acl_libdirstem | */$acl_libdirstem/)
6394                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6395                 LIBINTL_PREFIX="$basedir"
6396                 additional_includedir="$basedir/include"
6397                 ;;
6398             esac
6399             if test "X$additional_includedir" != "X"; then
6400                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6401                 haveit=
6402                 if test "X$additional_includedir" = "X/usr/local/include"; then
6403                   if test -n "$GCC"; then
6404                     case $host_os in
6405                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6406                     esac
6407                   fi
6408                 fi
6409                 if test -z "$haveit"; then
6410                   for x in $CPPFLAGS $INCINTL; do
6411                     
6412   acl_save_prefix="$prefix"
6413   prefix="$acl_final_prefix"
6414   acl_save_exec_prefix="$exec_prefix"
6415   exec_prefix="$acl_final_exec_prefix"
6416   eval x=\"$x\"
6417   exec_prefix="$acl_save_exec_prefix"
6418   prefix="$acl_save_prefix"
6420                     if test "X$x" = "X-I$additional_includedir"; then
6421                       haveit=yes
6422                       break
6423                     fi
6424                   done
6425                   if test -z "$haveit"; then
6426                     if test -d "$additional_includedir"; then
6427                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6428                     fi
6429                   fi
6430                 fi
6431               fi
6432             fi
6433                         if test -n "$found_la"; then
6434                                                         save_libdir="$libdir"
6435               case "$found_la" in
6436                 */* | *\\*) . "$found_la" ;;
6437                 *) . "./$found_la" ;;
6438               esac
6439               libdir="$save_libdir"
6440                             for dep in $dependency_libs; do
6441                 case "$dep" in
6442                   -L*)
6443                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6444                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6445                       haveit=
6446                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6447                         if test -n "$GCC"; then
6448                           case $host_os in
6449                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6450                           esac
6451                         fi
6452                       fi
6453                       if test -z "$haveit"; then
6454                         haveit=
6455                         for x in $LDFLAGS $LIBINTL; do
6456                           
6457   acl_save_prefix="$prefix"
6458   prefix="$acl_final_prefix"
6459   acl_save_exec_prefix="$exec_prefix"
6460   exec_prefix="$acl_final_exec_prefix"
6461   eval x=\"$x\"
6462   exec_prefix="$acl_save_exec_prefix"
6463   prefix="$acl_save_prefix"
6465                           if test "X$x" = "X-L$additional_libdir"; then
6466                             haveit=yes
6467                             break
6468                           fi
6469                         done
6470                         if test -z "$haveit"; then
6471                           if test -d "$additional_libdir"; then
6472                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6473                           fi
6474                         fi
6475                         haveit=
6476                         for x in $LDFLAGS $LTLIBINTL; do
6477                           
6478   acl_save_prefix="$prefix"
6479   prefix="$acl_final_prefix"
6480   acl_save_exec_prefix="$exec_prefix"
6481   exec_prefix="$acl_final_exec_prefix"
6482   eval x=\"$x\"
6483   exec_prefix="$acl_save_exec_prefix"
6484   prefix="$acl_save_prefix"
6486                           if test "X$x" = "X-L$additional_libdir"; then
6487                             haveit=yes
6488                             break
6489                           fi
6490                         done
6491                         if test -z "$haveit"; then
6492                           if test -d "$additional_libdir"; then
6493                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6494                           fi
6495                         fi
6496                       fi
6497                     fi
6498                     ;;
6499                   -R*)
6500                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6501                     if test "$enable_rpath" != no; then
6502                                                                   haveit=
6503                       for x in $rpathdirs; do
6504                         if test "X$x" = "X$dir"; then
6505                           haveit=yes
6506                           break
6507                         fi
6508                       done
6509                       if test -z "$haveit"; then
6510                         rpathdirs="$rpathdirs $dir"
6511                       fi
6512                                                                   haveit=
6513                       for x in $ltrpathdirs; do
6514                         if test "X$x" = "X$dir"; then
6515                           haveit=yes
6516                           break
6517                         fi
6518                       done
6519                       if test -z "$haveit"; then
6520                         ltrpathdirs="$ltrpathdirs $dir"
6521                       fi
6522                     fi
6523                     ;;
6524                   -l*)
6525                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6526                     ;;
6527                   *.la)
6528                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6529                     ;;
6530                   *)
6531                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6532                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6533                     ;;
6534                 esac
6535               done
6536             fi
6537           else
6538                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6539             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6540           fi
6541         fi
6542       fi
6543     done
6544   done
6545   if test "X$rpathdirs" != "X"; then
6546     if test -n "$acl_hardcode_libdir_separator"; then
6547                         alldirs=
6548       for found_dir in $rpathdirs; do
6549         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6550       done
6551             acl_save_libdir="$libdir"
6552       libdir="$alldirs"
6553       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6554       libdir="$acl_save_libdir"
6555       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6556     else
6557             for found_dir in $rpathdirs; do
6558         acl_save_libdir="$libdir"
6559         libdir="$found_dir"
6560         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6561         libdir="$acl_save_libdir"
6562         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6563       done
6564     fi
6565   fi
6566   if test "X$ltrpathdirs" != "X"; then
6567             for found_dir in $ltrpathdirs; do
6568       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6569     done
6570   fi
6572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6574 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   gt_save_CPPFLAGS="$CPPFLAGS"
6578             CPPFLAGS="$CPPFLAGS $INCINTL"
6579             gt_save_LIBS="$LIBS"
6580             LIBS="$LIBS $LIBINTL"
6581                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h.  */
6583 #include <libintl.h>
6584 $gt_revision_test_code
6585 extern int _nl_msg_cat_cntr;
6586 extern
6587 #ifdef __cplusplus
6589 #endif
6590 const char *_nl_expand_alias (const char *);
6592 main (void)
6594 bindtextdomain ("", "");
6595 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6596   ;
6597   return 0;
6599 _ACEOF
6600 if ac_fn_c_try_link "$LINENO"; then :
6601   eval "$gt_func_gnugettext_libintl=yes"
6602 else
6603   eval "$gt_func_gnugettext_libintl=no"
6605 rm -f core conftest.err conftest.$ac_objext \
6606     conftest$ac_exeext conftest.$ac_ext
6607                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6608               LIBS="$LIBS $LIBICONV"
6609               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h.  */
6611 #include <libintl.h>
6612 $gt_revision_test_code
6613 extern int _nl_msg_cat_cntr;
6614 extern
6615 #ifdef __cplusplus
6617 #endif
6618 const char *_nl_expand_alias (const char *);
6620 main (void)
6622 bindtextdomain ("", "");
6623 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6624   ;
6625   return 0;
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629   LIBINTL="$LIBINTL $LIBICONV"
6630                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6631                 eval "$gt_func_gnugettext_libintl=yes"
6632                
6634 rm -f core conftest.err conftest.$ac_objext \
6635     conftest$ac_exeext conftest.$ac_ext
6636             fi
6637             CPPFLAGS="$gt_save_CPPFLAGS"
6638             LIBS="$gt_save_LIBS"
6640 eval ac_res=\$$gt_func_gnugettext_libintl
6641                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6643         fi
6645                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6646            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6647                 && test "$PACKAGE" != gettext-runtime \
6648                 && test "$PACKAGE" != gettext-tools; }; then
6649           gt_use_preinstalled_gnugettext=yes
6650         else
6651                     LIBINTL=
6652           LTLIBINTL=
6653           INCINTL=
6654         fi
6656     
6658     if test -n "$INTL_MACOSX_LIBS"; then
6659       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6660          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6661                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6662         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6663       fi
6664     fi
6666     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6667        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6668       
6669 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
6671     else
6672       USE_NLS=no
6673     fi
6674   fi
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6677 $as_echo_n "checking whether to use NLS... " >&6; }
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6679 $as_echo "$USE_NLS" >&6; }
6680   if test "$USE_NLS" = "yes"; then
6681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6682 $as_echo_n "checking where the gettext function comes from... " >&6; }
6683     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6684       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6685         gt_source="external libintl"
6686       else
6687         gt_source="libc"
6688       fi
6689     else
6690       gt_source="included intl directory"
6691     fi
6692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6693 $as_echo "$gt_source" >&6; }
6694   fi
6696   if test "$USE_NLS" = "yes"; then
6698     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6699       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6701 $as_echo_n "checking how to link with libintl... " >&6; }
6702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6703 $as_echo "$LIBINTL" >&6; }
6704         
6705   for element in $INCINTL; do
6706     haveit=
6707     for x in $CPPFLAGS; do
6708       
6709   acl_save_prefix="$prefix"
6710   prefix="$acl_final_prefix"
6711   acl_save_exec_prefix="$exec_prefix"
6712   exec_prefix="$acl_final_exec_prefix"
6713   eval x=\"$x\"
6714   exec_prefix="$acl_save_exec_prefix"
6715   prefix="$acl_save_prefix"
6717       if test "X$x" = "X$element"; then
6718         haveit=yes
6719         break
6720       fi
6721     done
6722     if test -z "$haveit"; then
6723       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6724     fi
6725   done
6727       fi
6729             
6730 $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
6732       
6733 $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
6735     fi
6737         POSUB=po
6738   fi
6740   
6742     INTLLIBS="$LIBINTL"
6743   
6745     
6746   
6747   
6749 @%:@ Check whether --enable-largefile was given.
6750 if test "${enable_largefile+set}" = set; then :
6751   enableval=$enable_largefile; 
6754 if test "$enable_largefile" != no; then
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6757 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6758 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   ac_cv_sys_largefile_CC=no
6762      if test "$GCC" != yes; then
6763        ac_save_CC=$CC
6764        while :; do
6765          # IRIX 6.2 and later do not support large files by default,
6766          # so use the C compiler's -n32 option if that helps.
6767          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h.  */
6769 @%:@include <sys/types.h>
6770  /* Check that off_t can represent 2**63 - 1 correctly.
6771     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6772     since some C++ compilers masquerading as C compilers
6773     incorrectly reject 9223372036854775807.  */
6774 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6775   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6776                        && LARGE_OFF_T % 2147483647 == 1)
6777                       ? 1 : -1];
6779 main (void)
6782   ;
6783   return 0;
6785 _ACEOF
6786          if ac_fn_c_try_compile "$LINENO"; then :
6787   break
6789 rm -f core conftest.err conftest.$ac_objext
6790          CC="$CC -n32"
6791          if ac_fn_c_try_compile "$LINENO"; then :
6792   ac_cv_sys_largefile_CC=' -n32'; break
6794 rm -f core conftest.err conftest.$ac_objext
6795          break
6796        done
6797        CC=$ac_save_CC
6798        rm -f conftest.$ac_ext
6799     fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6802 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6803   if test "$ac_cv_sys_largefile_CC" != no; then
6804     CC=$CC$ac_cv_sys_largefile_CC
6805   fi
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6808 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6809 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   while :; do
6813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815 @%:@include <sys/types.h>
6816  /* Check that off_t can represent 2**63 - 1 correctly.
6817     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6818     since some C++ compilers masquerading as C compilers
6819     incorrectly reject 9223372036854775807.  */
6820 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6821   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6822                        && LARGE_OFF_T % 2147483647 == 1)
6823                       ? 1 : -1];
6825 main (void)
6828   ;
6829   return 0;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833   ac_cv_sys_file_offset_bits=no; break
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h.  */
6838 @%:@define _FILE_OFFSET_BITS 64
6839 @%:@include <sys/types.h>
6840  /* Check that off_t can represent 2**63 - 1 correctly.
6841     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6842     since some C++ compilers masquerading as C compilers
6843     incorrectly reject 9223372036854775807.  */
6844 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6845   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6846                        && LARGE_OFF_T % 2147483647 == 1)
6847                       ? 1 : -1];
6849 main (void)
6852   ;
6853   return 0;
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857   ac_cv_sys_file_offset_bits=64; break
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860   ac_cv_sys_file_offset_bits=unknown
6861   break
6862 done
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6865 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6866 case $ac_cv_sys_file_offset_bits in #(
6867   no | unknown) ;;
6868   *) 
6869 cat >>confdefs.h <<_ACEOF
6870 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6871 _ACEOF
6873 esac
6874 rm -rf conftest*
6875   if test $ac_cv_sys_file_offset_bits = unknown; then
6876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6877 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6878 if test "${ac_cv_sys_large_files+set}" = set; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   while :; do
6882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h.  */
6884 @%:@include <sys/types.h>
6885  /* Check that off_t can represent 2**63 - 1 correctly.
6886     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6887     since some C++ compilers masquerading as C compilers
6888     incorrectly reject 9223372036854775807.  */
6889 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6890   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6891                        && LARGE_OFF_T % 2147483647 == 1)
6892                       ? 1 : -1];
6894 main (void)
6897   ;
6898   return 0;
6900 _ACEOF
6901 if ac_fn_c_try_compile "$LINENO"; then :
6902   ac_cv_sys_large_files=no; break
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h.  */
6907 @%:@define _LARGE_FILES 1
6908 @%:@include <sys/types.h>
6909  /* Check that off_t can represent 2**63 - 1 correctly.
6910     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6911     since some C++ compilers masquerading as C compilers
6912     incorrectly reject 9223372036854775807.  */
6913 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6914   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6915                        && LARGE_OFF_T % 2147483647 == 1)
6916                       ? 1 : -1];
6918 main (void)
6921   ;
6922   return 0;
6924 _ACEOF
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926   ac_cv_sys_large_files=1; break
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929   ac_cv_sys_large_files=unknown
6930   break
6931 done
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6934 $as_echo "$ac_cv_sys_large_files" >&6; }
6935 case $ac_cv_sys_large_files in #(
6936   no | unknown) ;;
6937   *) 
6938 cat >>confdefs.h <<_ACEOF
6939 @%:@define _LARGE_FILES $ac_cv_sys_large_files
6940 _ACEOF
6942 esac
6943 rm -rf conftest*
6944   fi
6948 # Identify characteristics of the host architecture.
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6950 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6951 if test "${ac_cv_c_bigendian+set}" = set; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   ac_cv_c_bigendian=unknown
6955     # See if we're dealing with a universal compiler.
6956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958 #ifndef __APPLE_CC__
6959                not a universal capable compiler
6960              #endif
6961              typedef int dummy;
6962             
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965   
6966         # Check for potential -arch flags.  It is not universal unless
6967         # there are at least two -arch flags with different values.
6968         ac_arch=
6969         ac_prev=
6970         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6971          if test -n "$ac_prev"; then
6972            case $ac_word in
6973              i?86 | x86_64 | ppc | ppc64)
6974                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6975                  ac_arch=$ac_word
6976                else
6977                  ac_cv_c_bigendian=universal
6978                  break
6979                fi
6980                ;;
6981            esac
6982            ac_prev=
6983          elif test "x$ac_word" = "x-arch"; then
6984            ac_prev=arch
6985          fi
6986        done
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989     if test $ac_cv_c_bigendian = unknown; then
6990       # See if sys/param.h defines the BYTE_ORDER macro.
6991       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h.  */
6993 #include <sys/types.h>
6994              #include <sys/param.h>
6995            
6997 main (void)
6999 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7000                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7001                      && LITTLE_ENDIAN)
7002               bogus endian macros
7003              #endif
7004            
7005   ;
7006   return 0;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010   # It does; now see whether it defined to BIG_ENDIAN or not.
7011          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h.  */
7013 #include <sys/types.h>
7014                 #include <sys/param.h>
7015               
7017 main (void)
7019 #if BYTE_ORDER != BIG_ENDIAN
7020                  not big endian
7021                 #endif
7022               
7023   ;
7024   return 0;
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028   ac_cv_c_bigendian=yes
7029 else
7030   ac_cv_c_bigendian=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035     fi
7036     if test $ac_cv_c_bigendian = unknown; then
7037       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7038       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h.  */
7040 #include <limits.h>
7041            
7043 main (void)
7045 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7046               bogus endian macros
7047              #endif
7048            
7049   ;
7050   return 0;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054   # It does; now see whether it defined to _BIG_ENDIAN or not.
7055          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h.  */
7057 #include <limits.h>
7058               
7060 main (void)
7062 #ifndef _BIG_ENDIAN
7063                  not big endian
7064                 #endif
7065               
7066   ;
7067   return 0;
7069 _ACEOF
7070 if ac_fn_c_try_compile "$LINENO"; then :
7071   ac_cv_c_bigendian=yes
7072 else
7073   ac_cv_c_bigendian=no
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078     fi
7079     if test $ac_cv_c_bigendian = unknown; then
7080       # Compile a test program.
7081       if test "$cross_compiling" = yes; then :
7082   # Try to guess by grepping values from an object file.
7083          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h.  */
7085 short int ascii_mm[] =
7086                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7087                 short int ascii_ii[] =
7088                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7089                 int use_ascii (int i) {
7090                   return ascii_mm[i] + ascii_ii[i];
7091                 }
7092                 short int ebcdic_ii[] =
7093                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7094                 short int ebcdic_mm[] =
7095                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7096                 int use_ebcdic (int i) {
7097                   return ebcdic_mm[i] + ebcdic_ii[i];
7098                 }
7099                 extern int foo;
7100               
7102 main (void)
7104 return use_ascii (foo) == use_ebcdic (foo);
7105   ;
7106   return 0;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7111               ac_cv_c_bigendian=yes
7112             fi
7113             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7114               if test "$ac_cv_c_bigendian" = unknown; then
7115                 ac_cv_c_bigendian=no
7116               else
7117                 # finding both strings is unlikely to happen, but who knows?
7118                 ac_cv_c_bigendian=unknown
7119               fi
7120             fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 else
7124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h.  */
7126 $ac_includes_default
7128 main (void)
7131              /* Are we little or big endian?  From Harbison&Steele.  */
7132              union
7133              {
7134                long int l;
7135                char c[sizeof (long int)];
7136              } u;
7137              u.l = 1;
7138              return u.c[sizeof (long int) - 1] == 1;
7139            
7140   ;
7141   return 0;
7143 _ACEOF
7144 if ac_fn_c_try_run "$LINENO"; then :
7145   ac_cv_c_bigendian=no
7146 else
7147   ac_cv_c_bigendian=yes
7149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7150   conftest.$ac_objext conftest.beam conftest.$ac_ext
7153     fi
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7156 $as_echo "$ac_cv_c_bigendian" >&6; }
7157  case $ac_cv_c_bigendian in #(
7158    yes)
7159      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
7160 ;; #(
7161    no)
7162       ;; #(
7163    universal)
7164         
7165 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7167      ;; #(
7168    *)
7169      as_fn_error "unknown endianness
7170  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7171  esac
7173 # The cast to long int works around a bug in the HP C Compiler
7174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7176 # This bug is HP SR number 8606223364.
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7178 $as_echo_n "checking size of void *... " >&6; }
7179 if test "${ac_cv_sizeof_void_p+set}" = set; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
7183   
7184 else
7185   if test "$ac_cv_type_void_p" = yes; then
7186      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7188 { as_fn_set_status 77
7189 as_fn_error "cannot compute sizeof (void *)
7190 See \`config.log' for more details." "$LINENO" 5; }; }
7191    else
7192      ac_cv_sizeof_void_p=0
7193    fi
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7198 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7202 cat >>confdefs.h <<_ACEOF
7203 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7204 _ACEOF
7207 # The cast to long int works around a bug in the HP C Compiler
7208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7210 # This bug is HP SR number 8606223364.
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7212 $as_echo_n "checking size of long... " >&6; }
7213 if test "${ac_cv_sizeof_long+set}" = set; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7217   
7218 else
7219   if test "$ac_cv_type_long" = yes; then
7220      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7222 { as_fn_set_status 77
7223 as_fn_error "cannot compute sizeof (long)
7224 See \`config.log' for more details." "$LINENO" 5; }; }
7225    else
7226      ac_cv_sizeof_long=0
7227    fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7232 $as_echo "$ac_cv_sizeof_long" >&6; }
7236 cat >>confdefs.h <<_ACEOF
7237 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
7238 _ACEOF
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
7244 $as_echo_n "checking whether our compiler is apple cc... " >&6; }
7245 if test "${grub_cv_apple_cc+set}" = set; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
7249   grub_cv_apple_cc=yes
7250 else
7251   grub_cv_apple_cc=no
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
7258 $as_echo "$grub_cv_apple_cc" >&6; }
7259 if test x$grub_cv_apple_cc = xyes ; then
7260   CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
7261   ASFLAGS="$ASFLAGS -DAPPLE_CC=1"
7264 if test "x$cross_compiling" = xyes; then
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
7266 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
7267 else
7268   # Extract the first word of "help2man", so it can be a program name with args.
7269 set dummy help2man; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_path_HELP2MAN+set}" = set; then :
7273   $as_echo_n "(cached) " >&6
7274 else
7275   case $HELP2MAN in
7276   [\\/]* | ?:[\\/]*)
7277   ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
7278   ;;
7279   *)
7280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287     ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
7288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292   done
7293 IFS=$as_save_IFS
7295   ;;
7296 esac
7298 HELP2MAN=$ac_cv_path_HELP2MAN
7299 if test -n "$HELP2MAN"; then
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7301 $as_echo "$HELP2MAN" >&6; }
7302 else
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7310 # Check for functions.
7311 for ac_func in posix_memalign memalign asprintf vasprintf
7312 do :
7313   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7315 eval as_val=\$$as_ac_var
7316    if test "x$as_val" = x""yes; then :
7317   cat >>confdefs.h <<_ACEOF
7318 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7319 _ACEOF
7322 done
7325 # For grub-mkisofs
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7327 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7328 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h.  */
7333 @%:@include <sys/types.h>
7335 main (void)
7337 return makedev(0, 0);
7338   ;
7339   return 0;
7341 _ACEOF
7342 if ac_fn_c_try_link "$LINENO"; then :
7343   ac_cv_header_sys_types_h_makedev=yes
7344 else
7345   ac_cv_header_sys_types_h_makedev=no
7347 rm -f core conftest.err conftest.$ac_objext \
7348     conftest$ac_exeext conftest.$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7352 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7354 if test $ac_cv_header_sys_types_h_makedev = no; then
7355 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7356 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
7357   
7358 $as_echo "@%:@define MAJOR_IN_MKDEV 1" >>confdefs.h
7364   if test $ac_cv_header_sys_mkdev_h = no; then
7365     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7366 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
7367   
7368 $as_echo "@%:@define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7373   fi
7376 ac_header_dirent=no
7377 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7378   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7380 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h.  */
7386 #include <sys/types.h>
7387 #include <$ac_hdr>
7390 main (void)
7392 if ((DIR *) 0)
7393 return 0;
7394   ;
7395   return 0;
7397 _ACEOF
7398 if ac_fn_c_try_compile "$LINENO"; then :
7399   eval "$as_ac_Header=yes"
7400 else
7401   eval "$as_ac_Header=no"
7403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 eval ac_res=\$$as_ac_Header
7406                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7407 $as_echo "$ac_res" >&6; }
7408 eval as_val=\$$as_ac_Header
7409    if test "x$as_val" = x""yes; then :
7410   cat >>confdefs.h <<_ACEOF
7411 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7412 _ACEOF
7414 ac_header_dirent=$ac_hdr; break
7417 done
7418 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7419 if test $ac_header_dirent = dirent.h; then
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7421 $as_echo_n "checking for library containing opendir... " >&6; }
7422 if test "${ac_cv_search_opendir+set}" = set; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   ac_func_search_save_LIBS=$LIBS
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7429 /* Override any GCC internal prototype to avoid an error.
7430    Use char because int might match the return type of a GCC
7431    builtin and then its argument prototype would still apply.  */
7432 #ifdef __cplusplus
7433 extern "C"
7434 #endif
7435 char opendir ();
7437 main (void)
7439 return opendir ();
7440   ;
7441   return 0;
7443 _ACEOF
7444 for ac_lib in '' dir; do
7445   if test -z "$ac_lib"; then
7446     ac_res="none required"
7447   else
7448     ac_res=-l$ac_lib
7449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7450   fi
7451   if ac_fn_c_try_link "$LINENO"; then :
7452   ac_cv_search_opendir=$ac_res
7454 rm -f core conftest.err conftest.$ac_objext \
7455     conftest$ac_exeext
7456   if test "${ac_cv_search_opendir+set}" = set; then :
7457   break
7459 done
7460 if test "${ac_cv_search_opendir+set}" = set; then :
7461   
7462 else
7463   ac_cv_search_opendir=no
7465 rm conftest.$ac_ext
7466 LIBS=$ac_func_search_save_LIBS
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7469 $as_echo "$ac_cv_search_opendir" >&6; }
7470 ac_res=$ac_cv_search_opendir
7471 if test "$ac_res" != no; then :
7472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7473   
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7478 $as_echo_n "checking for library containing opendir... " >&6; }
7479 if test "${ac_cv_search_opendir+set}" = set; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   ac_func_search_save_LIBS=$LIBS
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h.  */
7486 /* Override any GCC internal prototype to avoid an error.
7487    Use char because int might match the return type of a GCC
7488    builtin and then its argument prototype would still apply.  */
7489 #ifdef __cplusplus
7490 extern "C"
7491 #endif
7492 char opendir ();
7494 main (void)
7496 return opendir ();
7497   ;
7498   return 0;
7500 _ACEOF
7501 for ac_lib in '' x; do
7502   if test -z "$ac_lib"; then
7503     ac_res="none required"
7504   else
7505     ac_res=-l$ac_lib
7506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7507   fi
7508   if ac_fn_c_try_link "$LINENO"; then :
7509   ac_cv_search_opendir=$ac_res
7511 rm -f core conftest.err conftest.$ac_objext \
7512     conftest$ac_exeext
7513   if test "${ac_cv_search_opendir+set}" = set; then :
7514   break
7516 done
7517 if test "${ac_cv_search_opendir+set}" = set; then :
7518   
7519 else
7520   ac_cv_search_opendir=no
7522 rm conftest.$ac_ext
7523 LIBS=$ac_func_search_save_LIBS
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7526 $as_echo "$ac_cv_search_opendir" >&6; }
7527 ac_res=$ac_cv_search_opendir
7528 if test "$ac_res" != no; then :
7529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7530   
7535 for ac_func in memmove sbrk strdup lstat getuid getgid
7536 do :
7537   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7539 eval as_val=\$$as_ac_var
7540    if test "x$as_val" = x""yes; then :
7541   cat >>confdefs.h <<_ACEOF
7542 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7543 _ACEOF
7546 done
7548 for ac_header in sys/mkdev.h sys/sysmacros.h malloc.h termios.h sys/types.h
7549 do :
7550   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7552 eval as_val=\$$as_ac_Header
7553    if test "x$as_val" = x""yes; then :
7554   cat >>confdefs.h <<_ACEOF
7555 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7560 done
7562 for ac_header in unistd.h string.h strings.h sys/stat.h sys/fcntl.h limits.h
7563 do :
7564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7566 eval as_val=\$$as_ac_Header
7567    if test "x$as_val" = x""yes; then :
7568   cat >>confdefs.h <<_ACEOF
7569 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7570 _ACEOF
7574 done
7578 # Check for target programs.
7581 # Find tools for the target.
7582 if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
7583   tmp_ac_tool_prefix="$ac_tool_prefix"
7584   ac_tool_prefix=$target_alias-
7586   if test -n "$ac_tool_prefix"; then
7587   for ac_prog in gcc egcs cc
7588   do
7589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_TARGET_CC+set}" = set; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   if test -n "$TARGET_CC"; then
7597   ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604     for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
7607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611   done
7612 IFS=$as_save_IFS
7616 TARGET_CC=$ac_cv_prog_TARGET_CC
7617 if test -n "$TARGET_CC"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
7619 $as_echo "$TARGET_CC" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7626     test -n "$TARGET_CC" && break
7627   done
7629 if test -z "$TARGET_CC"; then
7630   ac_ct_TARGET_CC=$TARGET_CC
7631   for ac_prog in gcc egcs cc
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$ac_ct_TARGET_CC"; then
7641   ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7660 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
7661 if test -n "$ac_ct_TARGET_CC"; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
7663 $as_echo "$ac_ct_TARGET_CC" >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7670   test -n "$ac_ct_TARGET_CC" && break
7671 done
7673   if test "x$ac_ct_TARGET_CC" = x; then
7674     TARGET_CC="as_fn_error "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5"
7675   else
7676     case $cross_compiling:$ac_tool_warned in
7677 yes:)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     TARGET_CC=$ac_ct_TARGET_CC
7683   fi
7686   if test -n "$ac_tool_prefix"; then
7687   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   if test -n "$OBJCOPY"; then
7695   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700   IFS=$as_save_IFS
7701   test -z "$as_dir" && as_dir=.
7702     for ac_exec_ext in '' $ac_executable_extensions; do
7703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
7705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706     break 2
7707   fi
7708 done
7709   done
7710 IFS=$as_save_IFS
7714 OBJCOPY=$ac_cv_prog_OBJCOPY
7715 if test -n "$OBJCOPY"; then
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
7717 $as_echo "$OBJCOPY" >&6; }
7718 else
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_OBJCOPY"; then
7726   ac_ct_OBJCOPY=$OBJCOPY
7727   # Extract the first word of "objcopy", so it can be a program name with args.
7728 set dummy objcopy; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   if test -n "$ac_ct_OBJCOPY"; then
7735   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742     for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
7745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749   done
7750 IFS=$as_save_IFS
7754 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
7755 if test -n "$ac_ct_OBJCOPY"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
7757 $as_echo "$ac_ct_OBJCOPY" >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7763   if test "x$ac_ct_OBJCOPY" = x; then
7764     OBJCOPY=""
7765   else
7766     case $cross_compiling:$ac_tool_warned in
7767 yes:)
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7771 esac
7772     OBJCOPY=$ac_ct_OBJCOPY
7773   fi
7774 else
7775   OBJCOPY="$ac_cv_prog_OBJCOPY"
7778   if test -n "$ac_tool_prefix"; then
7779   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}strip; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_STRIP+set}" = set; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   if test -n "$STRIP"; then
7787   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7806 STRIP=$ac_cv_prog_STRIP
7807 if test -n "$STRIP"; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7809 $as_echo "$STRIP" >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7817 if test -z "$ac_cv_prog_STRIP"; then
7818   ac_ct_STRIP=$STRIP
7819   # Extract the first word of "strip", so it can be a program name with args.
7820 set dummy strip; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826   if test -n "$ac_ct_STRIP"; then
7827   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7832   IFS=$as_save_IFS
7833   test -z "$as_dir" && as_dir=.
7834     for ac_exec_ext in '' $ac_executable_extensions; do
7835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836     ac_cv_prog_ac_ct_STRIP="strip"
7837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838     break 2
7839   fi
7840 done
7841   done
7842 IFS=$as_save_IFS
7846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7847 if test -n "$ac_ct_STRIP"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7849 $as_echo "$ac_ct_STRIP" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7855   if test "x$ac_ct_STRIP" = x; then
7856     STRIP=""
7857   else
7858     case $cross_compiling:$ac_tool_warned in
7859 yes:)
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7863 esac
7864     STRIP=$ac_ct_STRIP
7865   fi
7866 else
7867   STRIP="$ac_cv_prog_STRIP"
7870   if test -n "$ac_tool_prefix"; then
7871   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7872 set dummy ${ac_tool_prefix}nm; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_NM+set}" = set; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   if test -n "$NM"; then
7879   ac_cv_prog_NM="$NM" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7884   IFS=$as_save_IFS
7885   test -z "$as_dir" && as_dir=.
7886     for ac_exec_ext in '' $ac_executable_extensions; do
7887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888     ac_cv_prog_NM="${ac_tool_prefix}nm"
7889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893   done
7894 IFS=$as_save_IFS
7898 NM=$ac_cv_prog_NM
7899 if test -n "$NM"; then
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7901 $as_echo "$NM" >&6; }
7902 else
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_prog_NM"; then
7910   ac_ct_NM=$NM
7911   # Extract the first word of "nm", so it can be a program name with args.
7912 set dummy nm; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   if test -n "$ac_ct_NM"; then
7919   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7924   IFS=$as_save_IFS
7925   test -z "$as_dir" && as_dir=.
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928     ac_cv_prog_ac_ct_NM="nm"
7929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933   done
7934 IFS=$as_save_IFS
7938 ac_ct_NM=$ac_cv_prog_ac_ct_NM
7939 if test -n "$ac_ct_NM"; then
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7941 $as_echo "$ac_ct_NM" >&6; }
7942 else
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947   if test "x$ac_ct_NM" = x; then
7948     NM=""
7949   else
7950     case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956     NM=$ac_ct_NM
7957   fi
7958 else
7959   NM="$ac_cv_prog_NM"
7963   ac_tool_prefix="$tmp_ac_tool_prefix"
7964 else
7965   if test "x$TARGET_CC" = x; then
7966     TARGET_CC=$CC
7967   fi
7968   if test -n "$ac_tool_prefix"; then
7969   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   if test -n "$OBJCOPY"; then
7977   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984     for ac_exec_ext in '' $ac_executable_extensions; do
7985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
7987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991   done
7992 IFS=$as_save_IFS
7996 OBJCOPY=$ac_cv_prog_OBJCOPY
7997 if test -n "$OBJCOPY"; then
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
7999 $as_echo "$OBJCOPY" >&6; }
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8007 if test -z "$ac_cv_prog_OBJCOPY"; then
8008   ac_ct_OBJCOPY=$OBJCOPY
8009   # Extract the first word of "objcopy", so it can be a program name with args.
8010 set dummy objcopy; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$ac_ct_OBJCOPY"; then
8017   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8036 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
8037 if test -n "$ac_ct_OBJCOPY"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
8039 $as_echo "$ac_ct_OBJCOPY" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8045   if test "x$ac_ct_OBJCOPY" = x; then
8046     OBJCOPY=""
8047   else
8048     case $cross_compiling:$ac_tool_warned in
8049 yes:)
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052 ac_tool_warned=yes ;;
8053 esac
8054     OBJCOPY=$ac_ct_OBJCOPY
8055   fi
8056 else
8057   OBJCOPY="$ac_cv_prog_OBJCOPY"
8060   if test -n "$ac_tool_prefix"; then
8061   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8062 set dummy ${ac_tool_prefix}strip; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_STRIP+set}" = set; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   if test -n "$STRIP"; then
8069   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076     for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083   done
8084 IFS=$as_save_IFS
8088 STRIP=$ac_cv_prog_STRIP
8089 if test -n "$STRIP"; then
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8091 $as_echo "$STRIP" >&6; }
8092 else
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8099 if test -z "$ac_cv_prog_STRIP"; then
8100   ac_ct_STRIP=$STRIP
8101   # Extract the first word of "strip", so it can be a program name with args.
8102 set dummy strip; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   if test -n "$ac_ct_STRIP"; then
8109   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8114   IFS=$as_save_IFS
8115   test -z "$as_dir" && as_dir=.
8116     for ac_exec_ext in '' $ac_executable_extensions; do
8117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118     ac_cv_prog_ac_ct_STRIP="strip"
8119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120     break 2
8121   fi
8122 done
8123   done
8124 IFS=$as_save_IFS
8128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8129 if test -n "$ac_ct_STRIP"; then
8130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8131 $as_echo "$ac_ct_STRIP" >&6; }
8132 else
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8137   if test "x$ac_ct_STRIP" = x; then
8138     STRIP=""
8139   else
8140     case $cross_compiling:$ac_tool_warned in
8141 yes:)
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8144 ac_tool_warned=yes ;;
8145 esac
8146     STRIP=$ac_ct_STRIP
8147   fi
8148 else
8149   STRIP="$ac_cv_prog_STRIP"
8152   if test -n "$ac_tool_prefix"; then
8153   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}nm; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_NM+set}" = set; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$NM"; then
8161   ac_cv_prog_NM="$NM" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170     ac_cv_prog_NM="${ac_tool_prefix}nm"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8180 NM=$ac_cv_prog_NM
8181 if test -n "$NM"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8183 $as_echo "$NM" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -z "$ac_cv_prog_NM"; then
8192   ac_ct_NM=$NM
8193   # Extract the first word of "nm", so it can be a program name with args.
8194 set dummy nm; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$ac_ct_NM"; then
8201   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210     ac_cv_prog_ac_ct_NM="nm"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8220 ac_ct_NM=$ac_cv_prog_ac_ct_NM
8221 if test -n "$ac_ct_NM"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8223 $as_echo "$ac_ct_NM" >&6; }
8224 else
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8229   if test "x$ac_ct_NM" = x; then
8230     NM=""
8231   else
8232     case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238     NM=$ac_ct_NM
8239   fi
8240 else
8241   NM="$ac_cv_prog_NM"
8248 # Test the C compiler for the target environment.
8249 tmp_CC="$CC"
8250 tmp_CFLAGS="$CFLAGS"
8251 tmp_LDFLAGS="$LDFLAGS"
8252 tmp_CPPFLAGS="$CPPFLAGS"
8253 tmp_LIBS="$LIBS"
8254 CC="$TARGET_CC"
8255 CFLAGS="$TARGET_CFLAGS"
8256 CPPFLAGS="$TARGET_CPPFLAGS"
8257 LDFLAGS="$TARGET_LDFLAGS"
8258 LIBS=""
8260 # debug flags.
8261 TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
8262                -Wundef -Wstrict-prototypes -g"
8264 # Force no alignment to save space on i386.
8265 if test "x$target_cpu" = xi386; then
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
8267 $as_echo_n "checking whether -falign-loops works... " >&6; }
8268 if test "${grub_cv_cc_falign_loop+set}" = set; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   
8272     CFLAGS="$CFLAGS -falign-loops=1"
8273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h.  */
8277 main (void)
8280   ;
8281   return 0;
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285   grub_cv_cc_falign_loop=yes
8286 else
8287   grub_cv_cc_falign_loop=no
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290   
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
8293 $as_echo "$grub_cv_cc_falign_loop" >&6; }
8295   if test "x$grub_cv_cc_falign_loop" = xyes; then
8296     TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
8297   else
8298     TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
8299   fi
8301   # Some toolchains enable these features by default, but they need
8302   # registers that aren't set up properly in GRUB.
8303   TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
8306 # By default, GCC 4.4 generates .eh_frame sections containing unwind
8307 # information in some cases where it previously did not. GRUB doesn't need
8308 # these and they just use up vital space. Restore the old compiler
8309 # behaviour.
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
8311 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
8312 if test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   
8316   SAVE_CFLAGS="$CFLAGS"
8317   CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
8318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8322 main (void)
8325   ;
8326   return 0;
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330   grub_cv_cc_fno_dwarf2_cfi_asm=yes
8331 else
8332   grub_cv_cc_fno_dwarf2_cfi_asm=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335   CFLAGS="$SAVE_CFLAGS"
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
8339 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
8341 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
8342   TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
8347 $as_echo_n "checking whether our target compiler is apple cc... " >&6; }
8348 if test "${grub_cv_apple_target_cc+set}" = set; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
8352   grub_cv_apple_target_cc=yes
8353 else
8354   grub_cv_apple_target_cc=no
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
8361 $as_echo "$grub_cv_apple_target_cc" >&6; }
8362 if test x$grub_cv_apple_target_cc = xyes ; then
8363   TARGET_CFLAGS="$TARGET_CFLAGS -DAPPLE_CC=1 -fnested-functions"
8364   CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
8365   TARGET_ASFLAGS="$TARGET_ASFLAGS -DAPPLE_CC=1"
8366   TARGET_APPLE_CC=1
8367   # Extract the first word of "objconv", so it can be a program name with args.
8368 set dummy objconv; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_OBJCONV+set}" = set; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   if test -n "$OBJCONV"; then
8375   ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8380   IFS=$as_save_IFS
8381   test -z "$as_dir" && as_dir=.
8382     for ac_exec_ext in '' $ac_executable_extensions; do
8383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384     ac_cv_prog_OBJCONV="objconv"
8385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386     break 2
8387   fi
8388 done
8389   done
8390 IFS=$as_save_IFS
8394 OBJCONV=$ac_cv_prog_OBJCONV
8395 if test -n "$OBJCONV"; then
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
8397 $as_echo "$OBJCONV" >&6; }
8398 else
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8404   if test "x$OBJCONV" = x ; then
8405      # Extract the first word of "objconv", so it can be a program name with args.
8406 set dummy objconv; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_OBJCONV+set}" = set; then :
8410   $as_echo_n "(cached) " >&6
8411 else
8412   if test -n "$OBJCONV"; then
8413   ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in .
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420     for ac_exec_ext in '' $ac_executable_extensions; do
8421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422     ac_cv_prog_OBJCONV="./objconv"
8423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427   done
8428 IFS=$as_save_IFS
8432 OBJCONV=$ac_cv_prog_OBJCONV
8433 if test -n "$OBJCONV"; then
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
8435 $as_echo "$OBJCONV" >&6; }
8436 else
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8442   fi
8443   if test "x$OBJCONV" = x ; then
8444     as_fn_error "objconv not found which is required when building with apple compiler" "$LINENO" 5
8445   fi
8446   TARGET_IMG_LDSCRIPT=
8447   TARGET_IMG_CFLAGS="-static"
8448   TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20 -Wl,-image_base,'
8449   TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20 -Wl,-image_base,'
8450 else
8451   TARGET_APPLE_CC=0
8452 # Use linker script if present, otherwise use builtin -N script.
8453 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
8454   TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
8455   TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}  -Wl,-Ttext,"
8456   TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
8457 else
8458   TARGET_IMG_LDSCRIPT=
8459   TARGET_IMG_LDFLAGS='-Wl,-N  -Wl,-Ttext,'
8460   TARGET_IMG_LDFLAGS_AC='-Wl,-N  -Wl,-Ttext,'
8462 TARGET_IMG_CFLAGS=
8469 # For platforms where ELF is not the default link format.
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
8471 $as_echo_n "checking for command to convert module to ELF format... " >&6; }
8472 case "${host_os}" in
8473   cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
8474   *) ;;
8475 esac
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
8478 $as_echo "$TARGET_OBJ2ELF" >&6; }
8481 if test "x$target_m32" = x1; then
8482   # Force 32-bit mode.
8483   TARGET_CFLAGS="$TARGET_CFLAGS -m32"
8484   TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
8485   TARGET_MODULE_FORMAT="elf32"
8488 if test "x$target_m64" = x1; then
8489   # Force 64-bit mode.
8490   TARGET_CFLAGS="$TARGET_CFLAGS -m64"
8491   TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
8492   TARGET_MODULE_FORMAT="elf64"
8495 if test "$target_cpu"-"$platform" = x86_64-efi; then
8496   # Use large model to support 4G memory
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
8498 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
8499 if test "${grub_cv_cc_mcmodel+set}" = set; then :
8500   $as_echo_n "(cached) " >&6
8501 else
8502   
8503     SAVED_CFLAGS=$CFLAGS
8504     CFLAGS="$CFLAGS -m64 -mcmodel=large"
8505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h.  */
8509 main (void)
8512   ;
8513   return 0;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517   grub_cv_cc_mcmodel=yes
8518 else
8519   grub_cv_cc_mcmodel=no
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522   
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
8525 $as_echo "$grub_cv_cc_mcmodel" >&6; }
8526   if test "x$grub_cv_cc_mcmodel" = xno; then
8527     CFLAGS="$SAVED_CFLAGS -m64 -DMCMODEL_SMALL=1"
8528     TARGET_CFLAGS="$TARGET_CFLAGS -DMCMODEL_SMALL=1"
8529     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -mcmodel=large not supported. You won't be able to use the memory over 4GiB. Upgrade your gcc" >&5
8530 $as_echo "$as_me: WARNING: -mcmodel=large not supported. You won't be able to use the memory over 4GiB. Upgrade your gcc" >&2;}
8531   else
8532     TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
8533   fi
8535   # EFI writes to stack below %rsp, we must not use the red zone
8536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
8537 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
8538 if test "${grub_cv_cc_no_red_zone+set}" = set; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   
8542     CFLAGS="$CFLAGS -m64 -mno-red-zone"
8543     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h.  */
8547 main (void)
8550   ;
8551   return 0;
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555   grub_cv_cc_no_red_zone=yes
8556 else
8557   grub_cv_cc_no_red_zone=no
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560   
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
8563 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
8564   if test "x$grub_cv_cc_no_red_zone" = xno; then
8565     as_fn_error "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
8566   fi
8568   TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
8572 # Compiler features.
8575 # Need __enable_execute_stack() for nested function trampolines?
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
8578 $as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h.  */
8582 void f (int (*p) (void));
8583 void g (int i)
8585   int nestedfunc (void) { return i; }
8586   f (nestedfunc);
8589 _ACEOF
8590 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
8591   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8592   (eval $ac_try) 2>&5
8593   ac_status=$?
8594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8595   test $ac_status = 0; }; } && test -s conftest.s; then
8596   true
8597 else
8598   as_fn_error "${CC-cc} failed to produce assembly code" "$LINENO" 5
8600 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
8601   
8602 $as_echo "@%:@define NEED_ENABLE_EXECUTE_STACK 1" >>confdefs.h
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8605 $as_echo "yes" >&6; }
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8610 rm -f conftest*
8613 # Position independent executable.
8615 # Position independent executable.
8616 pie_possible=yes
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
8618 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
8619 # Is this a reliable test case?
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h.  */
8623 #ifdef __PIE__
8624 int main() {
8625         return 0;
8627 #else
8628 #error NO __PIE__ DEFINED
8629 #endif
8631 _ACEOF
8633 # `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
8634 # `ac_compile' like this correct, after all?
8635 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637 $as_echo "yes" >&6; }
8638   # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
8639   rm -f conftest.s
8640 else
8641   pie_possible=no
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8646 # Need that, because some distributions ship compilers that include
8647 # `-fPIE' in the default specs.
8648 if [ x"$pie_possible" = xyes ]; then
8649   TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
8652 # Smashing stack protector.
8654 # Smashing stack protector.
8655 ssp_possible=yes
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
8657 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
8658 # Is this a reliable test case?
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h.  */
8661 void foo (void) { volatile char a[8]; a[3]; }
8662 _ACEOF
8663 # `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
8664 # `ac_compile' like this correct, after all?
8665 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8667 $as_echo "yes" >&6; }
8668   # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
8669   rm -f conftest.s
8670 else
8671   ssp_possible=no
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8676 # Need that, because some distributions ship compilers that include
8677 # `-fstack-protector' in the default specs.
8678 if test "x$ssp_possible" = xyes; then
8679   TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
8682 # Smashing stack arg probe.
8683 sap_possible=yes
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
8685 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h.  */
8688 void foo (void) { volatile char a[8]; a[3]; }
8689 _ACEOF
8690 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8692 $as_echo "yes" >&6; }
8693   # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
8694   rm -f conftest.s
8695 else
8696   sap_possible=no
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8701 # Cygwin's GCC uses alloca() to probe the stackframe on static
8702 # stack allocations above some threshold.
8703 if test x"$sap_possible" = xyes; then
8704   TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
8707 @%:@ Check whether --enable-werror was given.
8708 if test "${enable_werror+set}" = set; then :
8709   enableval=$enable_werror; 
8712 if test x"$enable_werror" != xno ; then
8713   TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
8724 # Set them to their new values for the tests below.
8725 CC="$TARGET_CC"
8726 if test "x$TARGET_APPLE_CC" = x1 ; then
8727 CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
8728 else
8729 CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error"
8731 CPPFLAGS="$TARGET_CPPFLAGS"
8732 LDFLAGS="$TARGET_LDFLAGS"
8733 LIBS=-lgcc
8735 # Check for libgcc symbols
8736 for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x
8737 do :
8738   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8740 eval as_val=\$$as_ac_var
8741    if test "x$as_val" = x""yes; then :
8742   cat >>confdefs.h <<_ACEOF
8743 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8744 _ACEOF
8747 done
8750 if test "x$TARGET_APPLE_CC" = x1 ; then
8751 CFLAGS="$TARGET_CFLAGS -nostdlib"
8752 else
8753 CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
8755 LIBS=""
8757 # Defined in aclocal.m4.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
8759 $as_echo_n "checking whether target compiler is working... " >&6; }
8760 if test "${grub_cv_prog_target_cc+set}" = set; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h.  */
8766 asm (".globl start; start:");
8767 int main (void);
8770 main (void)
8773   ;
8774   return 0;
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778   grub_cv_prog_target_cc=yes
8779 else
8780   grub_cv_prog_target_cc=no
8782 rm -f core conftest.err conftest.$ac_objext \
8783     conftest$ac_exeext conftest.$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
8788 $as_echo "$grub_cv_prog_target_cc" >&6; }
8790 if test "x$grub_cv_prog_target_cc" = xno; then
8791   as_fn_error "cannot compile for the target" "$LINENO" 5
8794 if test "x$TARGET_APPLE_CC" != x1 ; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
8796 $as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
8797 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   cat > conftest.c <<\EOF
8801 void cmain (void);
8802 void
8803 cmain (void)
8805    *((int *) 0x1000) = 2;
8809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8810   (eval $ac_compile) 2>&5
8811   ac_status=$?
8812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8813   test $ac_status = 0; } && test -s conftest.o; then :
8814 else
8815   as_fn_error "${CC-cc} cannot compile C source code" "$LINENO" 5
8817 grub_cv_prog_objcopy_absolute=yes
8818 for link_addr in 0x2000 0x8000 0x7C00; do
8819   if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
8820   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8821   (eval $ac_try) 2>&5
8822   ac_status=$?
8823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824   test $ac_status = 0; }; }; then :
8825   else
8826     as_fn_error "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
8827   fi
8828   if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
8829   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8833   test $ac_status = 0; }; }; then :
8834   else
8835     as_fn_error "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
8836   fi
8837   if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
8838   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8842   test $ac_status = 0; }; }; then
8843     mv -f conftest conftest.old
8844   else
8845     grub_cv_prog_objcopy_absolute=no
8846     break
8847   fi
8848 done
8849 rm -f conftest*
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
8853 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
8855 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
8856   as_fn_error "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
8861 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
8862 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   save_LDFLAGS="$LDFLAGS"
8866 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8871 main (void)
8874   ;
8875   return 0;
8877 _ACEOF
8878 if ac_fn_c_try_link "$LINENO"; then :
8879   grub_cv_prog_ld_build_id_none=yes
8880 else
8881   grub_cv_prog_ld_build_id_none=no
8883 rm -f core conftest.err conftest.$ac_objext \
8884     conftest$ac_exeext conftest.$ac_ext
8885 LDFLAGS="$save_LDFLAGS"
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
8890 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
8892 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
8893   TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
8898 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
8899 if test "${grub_cv_asm_uscore+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   cat > conftest.c <<\EOF
8903 int func (int *);
8905 func (int *list)
8907   *list = 0;
8908   return *list;
8912 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
8913   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8917   test $ac_status = 0; }; } && test -s conftest.s; then
8918   true
8919 else
8920   as_fn_error "${CC-cc} failed to produce assembly code" "$LINENO" 5
8923 if grep _func conftest.s >/dev/null 2>&1; then
8924   grub_cv_asm_uscore=yes
8925 else
8926   grub_cv_asm_uscore=no
8929 rm -f conftest*
8933 if test "x$grub_cv_asm_uscore" = xyes; then
8934   
8935 cat >>confdefs.h <<_ACEOF
8936 @%:@define HAVE_ASM_USCORE $grub_cv_asm_uscore
8937 _ACEOF
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
8942 $as_echo "$grub_cv_asm_uscore" >&6; }
8944 if test "x$target_cpu" = xi386; then
8945   if test ! -z "$TARGET_IMG_LDSCRIPT"; then
8946     # Check symbols provided by linker script.
8947     CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
8948   fi
8949   if test "x$TARGET_APPLE_CC" != x1 ; then
8950     
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
8952 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
8953 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8960 main (void)
8962 asm ("incl __bss_start")
8963   ;
8964   return 0;
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"; then :
8968   grub_cv_check_uscore_uscore_bss_start_symbol=yes
8969 else
8970   grub_cv_check_uscore_uscore_bss_start_symbol=no
8972 rm -f core conftest.err conftest.$ac_objext \
8973     conftest$ac_exeext conftest.$ac_ext
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
8978 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
8981 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
8982 if test "${grub_cv_check_edata_symbol+set}" = set; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h.  */
8989 main (void)
8991 asm ("incl edata")
8992   ;
8993   return 0;
8995 _ACEOF
8996 if ac_fn_c_try_link "$LINENO"; then :
8997   grub_cv_check_edata_symbol=yes
8998 else
8999   grub_cv_check_edata_symbol=no
9001 rm -f core conftest.err conftest.$ac_objext \
9002     conftest$ac_exeext conftest.$ac_ext
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
9007 $as_echo "$grub_cv_check_edata_symbol" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
9010 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
9011 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then :
9012   $as_echo_n "(cached) " >&6
9013 else
9014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h.  */
9018 main (void)
9020 asm ("incl _edata")
9021   ;
9022   return 0;
9024 _ACEOF
9025 if ac_fn_c_try_link "$LINENO"; then :
9026   grub_cv_check_uscore_edata_symbol=yes
9027 else
9028   grub_cv_check_uscore_edata_symbol=no
9030 rm -f core conftest.err conftest.$ac_objext \
9031     conftest$ac_exeext conftest.$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
9036 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
9040 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
9041   $as_echo "@%:@define BSS_START_SYMBOL __bss_start" >>confdefs.h
9043 elif test "x$grub_cv_check_edata_symbol" = xyes; then
9044   $as_echo "@%:@define BSS_START_SYMBOL edata" >>confdefs.h
9046 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
9047   $as_echo "@%:@define BSS_START_SYMBOL _edata" >>confdefs.h
9049 else
9050   as_fn_error "none of __bss_start, edata or _edata is defined" "$LINENO" 5
9053     
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
9055 $as_echo_n "checking if end is defined by the compiler... " >&6; }
9056 if test "${grub_cv_check_end_symbol+set}" = set; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h.  */
9063 main (void)
9065 asm ("incl end")
9066   ;
9067   return 0;
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071   grub_cv_check_end_symbol=yes
9072 else
9073   grub_cv_check_end_symbol=no
9075 rm -f core conftest.err conftest.$ac_objext \
9076     conftest$ac_exeext conftest.$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
9081 $as_echo "$grub_cv_check_end_symbol" >&6; }
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
9084 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
9085 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h.  */
9092 main (void)
9094 asm ("incl _end")
9095   ;
9096   return 0;
9098 _ACEOF
9099 if ac_fn_c_try_link "$LINENO"; then :
9100   grub_cv_check_uscore_end_symbol=yes
9101 else
9102   grub_cv_check_uscore_end_symbol=no
9104 rm -f core conftest.err conftest.$ac_objext \
9105     conftest$ac_exeext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
9110 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
9114 if test "x$grub_cv_check_end_symbol" = xyes; then
9115   $as_echo "@%:@define END_SYMBOL end" >>confdefs.h
9117 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
9118   $as_echo "@%:@define END_SYMBOL _end" >>confdefs.h
9120 else
9121   as_fn_error "neither end nor _end is defined" "$LINENO" 5
9124   fi
9125   CFLAGS="$TARGET_CFLAGS"
9126   
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
9128 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
9129 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then :
9130   $as_echo_n "(cached) " >&6
9131 else
9132   cat > conftest.s <<\EOF
9133         .code16
9134 l1:     addr32  movb    %al, l1
9137 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
9138   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9142   test $ac_status = 0; }; } && test -s conftest.o; then
9143   grub_cv_i386_asm_prefix_requirement=yes
9144 else
9145   grub_cv_i386_asm_prefix_requirement=no
9148 rm -f conftest*
9152 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
9153   grub_tmp_addr32="addr32"
9154   grub_tmp_data32="data32"
9155 else
9156   grub_tmp_addr32="addr32;"
9157   grub_tmp_data32="data32;"
9161 cat >>confdefs.h <<_ACEOF
9162 @%:@define ADDR32 $grub_tmp_addr32
9163 _ACEOF
9166 cat >>confdefs.h <<_ACEOF
9167 @%:@define DATA32 $grub_tmp_data32
9168 _ACEOF
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
9172 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
9173   
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
9176 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
9177 if test "${grub_cv_i386_asm_addr32+set}" = set; then :
9178   $as_echo_n "(cached) " >&6
9179 else
9180   cat > conftest.s.in <<\EOF
9181         .code16
9182 l1:     @ADDR32@        movb    %al, l1
9185 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
9186   sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
9187 else
9188   sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
9191 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
9192   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9196   test $ac_status = 0; }; } && test -s conftest.o; then
9197   grub_cv_i386_asm_addr32=yes
9198 else
9199   grub_cv_i386_asm_addr32=no
9202 rm -f conftest*
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
9207 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
9208   
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
9210 $as_echo_n "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... " >&6; }
9211 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   cat > conftest.s <<\EOF
9215         lcall   *(offset)
9216 offset:
9217         .long   0
9218         .word   0
9221 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
9222   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9226   test $ac_status = 0; }; } && test -s conftest.o; then
9227   grub_cv_i386_asm_absolute_without_asterisk=no
9228 else
9229   grub_cv_i386_asm_absolute_without_asterisk=yes
9232 rm -f conftest*
9236 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
9237   
9238 $as_echo "@%:@define ABSOLUTE_WITHOUT_ASTERISK 1" >>confdefs.h
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
9243 $as_echo "$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
9244 else
9245   
9246 $as_echo "@%:@define NESTED_FUNC_ATTR /**/" >>confdefs.h
9252 @%:@ Check whether --enable-efiemu was given.
9253 if test "${enable_efiemu+set}" = set; then :
9254   enableval=$enable_efiemu; 
9257 if test x"$enable_efiemu" = xno ; then
9258   efiemu_excuse="explicitly disabled"
9260 if test x"$efiemu_excuse" = x ; then
9261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
9262 $as_echo_n "checking whether options required for efiemu work... " >&6; }
9263 if test "${grub_cv_cc_efiemu+set}" = set; then :
9264   $as_echo_n "(cached) " >&6
9265 else
9266   
9267     CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
9268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h.  */
9272 main (void)
9275   ;
9276   return 0;
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280   grub_cv_cc_efiemu=yes
9281 else
9282   grub_cv_cc_efiemu=no
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285   
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
9288 $as_echo "$grub_cv_cc_efiemu" >&6; }
9289   if test x$grub_cv_cc_efiemu = xno; then
9290      efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
9291   fi
9293 if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
9294   as_fn_error "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
9296 if test x"$efiemu_excuse" = x ; then
9297 enable_efiemu=yes
9298 else
9299 enable_efiemu=no
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
9304 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
9305 if test "${grub_cv_cc_isystem+set}" = set; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   
9309   SAVED_CPPFLAGS="$CPPFLAGS"
9310   CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
9311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h.  */
9313 #include <stdarg.h>
9314 int va_arg_func (int fixed, va_list args);
9316 main (void)
9319   ;
9320   return 0;
9322 _ACEOF
9323 if ac_fn_c_try_compile "$LINENO"; then :
9324   grub_cv_cc_isystem=yes
9325 else
9326   grub_cv_cc_isystem=no
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329   CPPFLAGS="$SAVED_CPPFLAGS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
9333 $as_echo "$grub_cv_cc_isystem" >&6; }
9335 if test x"$grub_cv_cc_isystem" = xyes ; then
9336   TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
9339 # Restore the flags.
9340 CC="$tmp_CC"
9341 CFLAGS="$tmp_CFLAGS"
9342 CPPFLAGS="$tmp_CPPFLAGS"
9343 LDFLAGS="$tmp_LDFLAGS"
9344 LIBS="$tmp_LIBS"
9347 # Check for options.
9350 # Memory manager debugging.
9351 @%:@ Check whether --enable-mm-debug was given.
9352 if test "${enable_mm_debug+set}" = set; then :
9353   enableval=$enable_mm_debug; 
9354 $as_echo "@%:@define MM_DEBUG 1" >>confdefs.h
9359 @%:@ Check whether --enable-grub-emu-usb was given.
9360 if test "${enable_grub_emu_usb+set}" = set; then :
9361   enableval=$enable_grub_emu_usb; 
9365 @%:@ Check whether --enable-grub-emu-sdl was given.
9366 if test "${enable_grub_emu_sdl+set}" = set; then :
9367   enableval=$enable_grub_emu_sdl; 
9371 @%:@ Check whether --enable-grub-emu-pci was given.
9372 if test "${enable_grub_emu_pci+set}" = set; then :
9373   enableval=$enable_grub_emu_pci; 
9377 if test "$platform" = emu; then
9378   missing_ncurses=
9379 # Check for curses libraries.
9380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
9381 $as_echo_n "checking for wgetch in -lncurses... " >&6; }
9382 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
9383   $as_echo_n "(cached) " >&6
9384 else
9385   ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-lncurses  $LIBS"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h.  */
9390 /* Override any GCC internal prototype to avoid an error.
9391    Use char because int might match the return type of a GCC
9392    builtin and then its argument prototype would still apply.  */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 char wgetch ();
9398 main (void)
9400 return wgetch ();
9401   ;
9402   return 0;
9404 _ACEOF
9405 if ac_fn_c_try_link "$LINENO"; then :
9406   ac_cv_lib_ncurses_wgetch=yes
9407 else
9408   ac_cv_lib_ncurses_wgetch=no
9410 rm -f core conftest.err conftest.$ac_objext \
9411     conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
9415 $as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
9416 if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
9417   LIBCURSES="-lncurses"
9418 else
9419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
9420 $as_echo_n "checking for wgetch in -lcurses... " >&6; }
9421 if test "${ac_cv_lib_curses_wgetch+set}" = set; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lcurses  $LIBS"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h.  */
9429 /* Override any GCC internal prototype to avoid an error.
9430    Use char because int might match the return type of a GCC
9431    builtin and then its argument prototype would still apply.  */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 char wgetch ();
9437 main (void)
9439 return wgetch ();
9440   ;
9441   return 0;
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445   ac_cv_lib_curses_wgetch=yes
9446 else
9447   ac_cv_lib_curses_wgetch=no
9449 rm -f core conftest.err conftest.$ac_objext \
9450     conftest$ac_exeext conftest.$ac_ext
9451 LIBS=$ac_check_lib_save_LIBS
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
9454 $as_echo "$ac_cv_lib_curses_wgetch" >&6; }
9455 if test "x$ac_cv_lib_curses_wgetch" = x""yes; then :
9456   LIBCURSES="-lcurses"
9457 else
9458   missing_ncurses=true
9463   
9464 if [ x"$missing_ncurses" = x ]; then 
9465   # Check for headers.
9466   for ac_header in ncurses/curses.h
9467 do :
9468   ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
9469 if test "x$ac_cv_header_ncurses_curses_h" = x""yes; then :
9470   cat >>confdefs.h <<_ACEOF
9471 @%:@define HAVE_NCURSES_CURSES_H 1
9472 _ACEOF
9474 else
9475   for ac_header in ncurses.h
9476 do :
9477   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
9478 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
9479   cat >>confdefs.h <<_ACEOF
9480 @%:@define HAVE_NCURSES_H 1
9481 _ACEOF
9483 else
9484   for ac_header in curses.h
9485 do :
9486   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
9487 if test "x$ac_cv_header_curses_h" = x""yes; then :
9488   cat >>confdefs.h <<_ACEOF
9489 @%:@define HAVE_CURSES_H 1
9490 _ACEOF
9492 else
9493   missing_ncurses=true
9496 done
9500 done
9504 done
9507 if test x"$missing_ncurses" = xtrue ; then
9508   as_fn_error "grub-emu can't be compiled without ncurses" "$LINENO" 5
9511 if test x"$enable_grub_emu_usb" = xno ; then
9512   grub_emu_usb_excuse="explicitly disabled"
9515 if test x"$enable_grub_emu_pci" = xyes ; then
9516    grub_emu_usb_excuse="conflicts with PCI support"
9519 if [ x"$grub_emu_usb_excuse" = x ]; then
9520     # Check for libusb libraries.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
9522 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
9523 if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then :
9524   $as_echo_n "(cached) " >&6
9525 else
9526   ac_check_lib_save_LIBS=$LIBS
9527 LIBS="-lusb  $LIBS"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h.  */
9531 /* Override any GCC internal prototype to avoid an error.
9532    Use char because int might match the return type of a GCC
9533    builtin and then its argument prototype would still apply.  */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 char usb_claim_interface ();
9539 main (void)
9541 return usb_claim_interface ();
9542   ;
9543   return 0;
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"; then :
9547   ac_cv_lib_usb_usb_claim_interface=yes
9548 else
9549   ac_cv_lib_usb_usb_claim_interface=no
9551 rm -f core conftest.err conftest.$ac_objext \
9552     conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
9556 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
9557 if test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then :
9558   LIBUSB="-lusb"
9559 else
9560   grub_emu_usb_excuse="need libusb library"
9563     
9565 if [ x"$grub_emu_usb_excuse" = x ]; then
9566     # Check for headers.
9567     for ac_header in usb.h
9568 do :
9569   ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
9570 if test "x$ac_cv_header_usb_h" = x""yes; then :
9571   cat >>confdefs.h <<_ACEOF
9572 @%:@define HAVE_USB_H 1
9573 _ACEOF
9575 else
9576   grub_emu_usb_excuse="need libusb headers"
9579 done
9582 if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
9583   as_fn_error "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
9585 if test x"$grub_emu_usb_excuse" = x ; then
9586 enable_grub_emu_usb=yes
9587 else
9588 enable_grub_emu_usb=no
9591 if test x"$enable_grub_emu_sdl" = xno ; then
9592   grub_emu_sdl_excuse="explicitely disabled"
9594 if [ x"$grub_emu_sdl_excuse" = x ]; then
9595     # Check for libSDL libraries.
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
9597 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
9598 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   ac_check_lib_save_LIBS=$LIBS
9602 LIBS="-lSDL  $LIBS"
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h.  */
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char SDL_Init ();
9614 main (void)
9616 return SDL_Init ();
9617   ;
9618   return 0;
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622   ac_cv_lib_SDL_SDL_Init=yes
9623 else
9624   ac_cv_lib_SDL_SDL_Init=no
9626 rm -f core conftest.err conftest.$ac_objext \
9627     conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
9631 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
9632 if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
9633   LIBSDL="-lSDL"
9634 else
9635   grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
9638     
9641 if [ x"$grub_emu_sdl_excuse" = x ]; then
9642     # Check for headers.
9643     for ac_header in SDL/SDL.h
9644 do :
9645   ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
9646 if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
9647   cat >>confdefs.h <<_ACEOF
9648 @%:@define HAVE_SDL_SDL_H 1
9649 _ACEOF
9651 else
9652   grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
9655 done
9659 if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
9660   as_fn_error "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
9662 if test x"$grub_emu_sdl_excuse" = x ; then
9663 enable_grub_emu_sdl=yes
9664 else
9665 enable_grub_emu_sdl=no
9668 if test x"$enable_grub_emu_pci" != xyes ; then
9669    grub_emu_pci_excuse="not enabled"
9672 if test x"$enable_grub_emu_usb" = xyes ; then
9673    grub_emu_pci_excuse="conflicts with USB support"
9676 if [ x"$grub_emu_pci_excuse" = x ]; then
9677       # Check for libpci libraries.
9678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
9679 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
9680 if test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-lpciaccess  $LIBS"
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h.  */
9688 /* Override any GCC internal prototype to avoid an error.
9689    Use char because int might match the return type of a GCC
9690    builtin and then its argument prototype would still apply.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char pci_system_init ();
9696 main (void)
9698 return pci_system_init ();
9699   ;
9700   return 0;
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704   ac_cv_lib_pciaccess_pci_system_init=yes
9705 else
9706   ac_cv_lib_pciaccess_pci_system_init=no
9708 rm -f core conftest.err conftest.$ac_objext \
9709     conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
9713 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
9714 if test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then :
9715   LIBPCIACCESS="-lpciaccess"
9716 else
9717   grub_emu_pci_excuse="need libpciaccess library"
9720     
9722 if [ x"$grub_emu_pci_excuse" = x ]; then
9723     # Check for headers.
9724     for ac_header in pci/pci.h
9725 do :
9726   ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
9727 if test "x$ac_cv_header_pci_pci_h" = x""yes; then :
9728   cat >>confdefs.h <<_ACEOF
9729 @%:@define HAVE_PCI_PCI_H 1
9730 _ACEOF
9732 else
9733   grub_emu_pci_excuse="need libpciaccess headers"
9736 done
9740 if test x"$grub_emu_pci_excuse" = x ; then
9741 enable_grub_emu_pci=yes
9742 else
9744 enable_grub_emu_pci=no
9752 @%:@ Check whether --enable-grub-fstest was given.
9753 if test "${enable_grub_fstest+set}" = set; then :
9754   enableval=$enable_grub_fstest; 
9757 if test x"$enable_grub_fstest" = xno ; then
9758   grub_fstest_excuse="explicitly disabled"
9760 if test x"$grub_fstest_excuse" = x ; then
9761 enable_grub_fstest=yes
9762 else
9763 enable_grub_fstest=no
9767 @%:@ Check whether --enable-grub-mkfont was given.
9768 if test "${enable_grub_mkfont+set}" = set; then :
9769   enableval=$enable_grub_mkfont; 
9772 if test x"$enable_grub_mkfont" = xno ; then
9773   grub_mkfont_excuse="explicitly disabled"
9776 if test x"$grub_mkfont_excuse" = x ; then
9777   # Check for freetype libraries.
9778   for ac_prog in freetype-config
9780   # Extract the first word of "$ac_prog", so it can be a program name with args.
9781 set dummy $ac_prog; ac_word=$2
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 $as_echo_n "checking for $ac_word... " >&6; }
9784 if test "${ac_cv_prog_FREETYPE+set}" = set; then :
9785   $as_echo_n "(cached) " >&6
9786 else
9787   if test -n "$FREETYPE"; then
9788   ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
9789 else
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9793   IFS=$as_save_IFS
9794   test -z "$as_dir" && as_dir=.
9795     for ac_exec_ext in '' $ac_executable_extensions; do
9796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9797     ac_cv_prog_FREETYPE="$ac_prog"
9798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799     break 2
9800   fi
9801 done
9802   done
9803 IFS=$as_save_IFS
9807 FREETYPE=$ac_cv_prog_FREETYPE
9808 if test -n "$FREETYPE"; then
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
9810 $as_echo "$FREETYPE" >&6; }
9811 else
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9817   test -n "$FREETYPE" && break
9818 done
9820   if test "x$FREETYPE" = x ; then
9821     grub_mkfont_excuse="need freetype2 library"
9822   fi
9823   freetype_cflags=`freetype-config --cflags`
9824   freetype_libs=`freetype-config --libs`
9827 if test x"$grub_mkfont_excuse" = x ; then
9828   # Check for freetype libraries.
9829   SAVED_CPPFLAGS="$CPPFLAGS"
9830   CPPFLAGS="$CPPFLAGS $freetype_cflags"
9831   for ac_header in ft2build.h
9832 do :
9833   ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
9834 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
9835   cat >>confdefs.h <<_ACEOF
9836 @%:@define HAVE_FT2BUILD_H 1
9837 _ACEOF
9839 else
9840   grub_mkfont_excuse="need freetype2 headers"
9843 done
9845   CPPFLAGS="$SAVED_CPPFLAGS"
9848 if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
9849   as_fn_error "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
9851 if test x"$grub_mkfont_excuse" = x ; then
9852 enable_grub_mkfont=yes
9853 else
9854 enable_grub_mkfont=no
9862 # Output files.
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
9865 $as_echo_n "checking whether ln can handle directories properly... " >&6; }
9866 mkdir testdir 2>/dev/null
9867 case $srcdir in
9868 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
9869     *) reldir=../$srcdir/include/grub/util ;;
9870 esac
9871 if ln -s $reldir testdir/util 2>/dev/null ; then
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; }
9874   link_dir=yes
9875 else
9876   link_dir=no
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9880 rm -rf testdir
9882 if test x"$link_dir" = xyes ; then
9883   ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu"
9885   if test "$platform" != emu ; then
9886     ac_config_links="$ac_config_links include/grub/machine:include/grub/$target_cpu/$platform"
9888   fi
9889 else
9890   mkdir -p include/grub 2>/dev/null
9891   rm -rf include/grub/cpu
9892   cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
9893   if test "$platform" != emu ; then
9894     rm -rf include/grub/machine
9895     cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
9896   fi
9898 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
9900 ac_config_files="$ac_config_files stamp-h"
9902 cat >confcache <<\_ACEOF
9903 # This file is a shell script that caches the results of configure
9904 # tests run on this system so they can be shared between configure
9905 # scripts and configure runs, see configure's option --config-cache.
9906 # It is not useful on other systems.  If it contains results you don't
9907 # want to keep, you may remove or edit it.
9909 # config.status only pays attention to the cache file if you give it
9910 # the --recheck option to rerun configure.
9912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9914 # following values.
9916 _ACEOF
9918 # The following way of writing the cache mishandles newlines in values,
9919 # but we know of no workaround that is simple, portable, and efficient.
9920 # So, we kill variables containing newlines.
9921 # Ultrix sh set writes to stderr and can't be redirected directly,
9922 # and sets the high bit in the cache file unless we assign to the vars.
9924   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9925     eval ac_val=\$$ac_var
9926     case $ac_val in #(
9927     *${as_nl}*)
9928       case $ac_var in #(
9929       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9931       esac
9932       case $ac_var in #(
9933       _ | IFS | as_nl) ;; #(
9934       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9935       *) { eval $ac_var=; unset $ac_var;} ;;
9936       esac ;;
9937     esac
9938   done
9940   (set) 2>&1 |
9941     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9942     *${as_nl}ac_space=\ *)
9943       # `set' does not quote correctly, so add quotes: double-quote
9944       # substitution turns \\\\ into \\, and sed turns \\ into \.
9945       sed -n \
9946         "s/'/'\\\\''/g;
9947           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9948       ;; #(
9949     *)
9950       # `set' quotes correctly as required by POSIX, so do not add quotes.
9951       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9952       ;;
9953     esac |
9954     sort
9955 ) |
9956   sed '
9957      /^ac_cv_env_/b end
9958      t clear
9959      :clear
9960      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9961      t end
9962      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9963      :end' >>confcache
9964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9965   if test -w "$cache_file"; then
9966     test "x$cache_file" != "x/dev/null" &&
9967       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9968 $as_echo "$as_me: updating cache $cache_file" >&6;}
9969     cat confcache >$cache_file
9970   else
9971     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9972 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9973   fi
9975 rm -f confcache
9977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9978 # Let make expand exec_prefix.
9979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9981 DEFS=-DHAVE_CONFIG_H
9983 ac_libobjs=
9984 ac_ltlibobjs=
9985 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
9986   # 1. Remove the extension, and $U if already installed.
9987   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9988   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9989   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9990   #    will be set to the directory where LIBOBJS objects are built.
9991   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9992   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9993 done
9994 LIB@&t@OBJS=$ac_libobjs
9996 LTLIBOBJS=$ac_ltlibobjs
9999  if test -n "$EXEEXT"; then
10000   am__EXEEXT_TRUE=
10001   am__EXEEXT_FALSE='#'
10002 else
10003   am__EXEEXT_TRUE='#'
10004   am__EXEEXT_FALSE=
10007 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10008   as_fn_error "conditional \"AMDEP\" was never defined.
10009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10011 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10012   as_fn_error "conditional \"am__fastdepCC\" was never defined.
10013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10017 : ${CONFIG_STATUS=./config.status}
10018 ac_write_fail=0
10019 ac_clean_files_save=$ac_clean_files
10020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10023 as_write_fail=0
10024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10025 #! $SHELL
10026 # Generated by $as_me.
10027 # Run this file to recreate the current configuration.
10028 # Compiler output produced by configure, useful for debugging
10029 # configure, is in config.log if it exists.
10031 debug=false
10032 ac_cs_recheck=false
10033 ac_cs_silent=false
10035 SHELL=\${CONFIG_SHELL-$SHELL}
10036 export SHELL
10037 _ASEOF
10038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10039 ## -------------------- ##
10040 ## M4sh Initialization. ##
10041 ## -------------------- ##
10043 # Be more Bourne compatible
10044 DUALCASE=1; export DUALCASE # for MKS sh
10045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10046   emulate sh
10047   NULLCMD=:
10048   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10049   # is contrary to our usage.  Disable this feature.
10050   alias -g '${1+"$@"}'='"$@"'
10051   setopt NO_GLOB_SUBST
10052 else
10053   case `(set -o) 2>/dev/null` in @%:@(
10054   *posix*) :
10055     set -o posix ;; @%:@(
10056   *) :
10057      ;;
10058 esac
10062 as_nl='
10064 export as_nl
10065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10069 # Prefer a ksh shell builtin over an external printf program on Solaris,
10070 # but without wasting forks for bash or zsh.
10071 if test -z "$BASH_VERSION$ZSH_VERSION" \
10072     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10073   as_echo='print -r --'
10074   as_echo_n='print -rn --'
10075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10076   as_echo='printf %s\n'
10077   as_echo_n='printf %s'
10078 else
10079   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10080     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10081     as_echo_n='/usr/ucb/echo -n'
10082   else
10083     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10084     as_echo_n_body='eval
10085       arg=$1;
10086       case $arg in @%:@(
10087       *"$as_nl"*)
10088         expr "X$arg" : "X\\(.*\\)$as_nl";
10089         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10090       esac;
10091       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10092     '
10093     export as_echo_n_body
10094     as_echo_n='sh -c $as_echo_n_body as_echo'
10095   fi
10096   export as_echo_body
10097   as_echo='sh -c $as_echo_body as_echo'
10100 # The user is always right.
10101 if test "${PATH_SEPARATOR+set}" != set; then
10102   PATH_SEPARATOR=:
10103   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10104     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10105       PATH_SEPARATOR=';'
10106   }
10110 # IFS
10111 # We need space, tab and new line, in precisely that order.  Quoting is
10112 # there to prevent editors from complaining about space-tab.
10113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10114 # splitting by setting IFS to empty value.)
10115 IFS=" ""        $as_nl"
10117 # Find who we are.  Look in the path if we contain no directory separator.
10118 case $0 in @%:@((
10119   *[\\/]* ) as_myself=$0 ;;
10120   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10123   IFS=$as_save_IFS
10124   test -z "$as_dir" && as_dir=.
10125     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10126   done
10127 IFS=$as_save_IFS
10129      ;;
10130 esac
10131 # We did not find ourselves, most probably we were run as `sh COMMAND'
10132 # in which case we are not to be found in the path.
10133 if test "x$as_myself" = x; then
10134   as_myself=$0
10136 if test ! -f "$as_myself"; then
10137   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10138   exit 1
10141 # Unset variables that we do not need and which cause bugs (e.g. in
10142 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10143 # suppresses any "Segmentation fault" message there.  '((' could
10144 # trigger a bug in pdksh 5.2.14.
10145 for as_var in BASH_ENV ENV MAIL MAILPATH
10146 do eval test x\${$as_var+set} = xset \
10147   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10148 done
10149 PS1='$ '
10150 PS2='> '
10151 PS4='+ '
10153 # NLS nuisances.
10154 LC_ALL=C
10155 export LC_ALL
10156 LANGUAGE=C
10157 export LANGUAGE
10159 # CDPATH.
10160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10163 @%:@ as_fn_error ERROR [LINENO LOG_FD]
10164 @%:@ ---------------------------------
10165 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10166 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10167 @%:@ script with status @S|@?, using 1 if that was 0.
10168 as_fn_error ()
10170   as_status=$?; test $as_status -eq 0 && as_status=1
10171   if test "$3"; then
10172     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10173     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10174   fi
10175   $as_echo "$as_me: error: $1" >&2
10176   as_fn_exit $as_status
10177 } @%:@ as_fn_error
10180 @%:@ as_fn_set_status STATUS
10181 @%:@ -----------------------
10182 @%:@ Set @S|@? to STATUS, without forking.
10183 as_fn_set_status ()
10185   return $1
10186 } @%:@ as_fn_set_status
10188 @%:@ as_fn_exit STATUS
10189 @%:@ -----------------
10190 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10191 as_fn_exit ()
10193   set +e
10194   as_fn_set_status $1
10195   exit $1
10196 } @%:@ as_fn_exit
10198 @%:@ as_fn_unset VAR
10199 @%:@ ---------------
10200 @%:@ Portably unset VAR.
10201 as_fn_unset ()
10203   { eval $1=; unset $1;}
10205 as_unset=as_fn_unset
10206 @%:@ as_fn_append VAR VALUE
10207 @%:@ ----------------------
10208 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
10209 @%:@ advantage of any shell optimizations that allow amortized linear growth over
10210 @%:@ repeated appends, instead of the typical quadratic growth present in naive
10211 @%:@ implementations.
10212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10213   eval 'as_fn_append ()
10214   {
10215     eval $1+=\$2
10216   }'
10217 else
10218   as_fn_append ()
10219   {
10220     eval $1=\$$1\$2
10221   }
10222 fi # as_fn_append
10224 @%:@ as_fn_arith ARG...
10225 @%:@ ------------------
10226 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
10227 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
10228 @%:@ must be portable across @S|@(()) and expr.
10229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10230   eval 'as_fn_arith ()
10231   {
10232     as_val=$(( $* ))
10233   }'
10234 else
10235   as_fn_arith ()
10236   {
10237     as_val=`expr "$@" || test $? -eq 1`
10238   }
10239 fi # as_fn_arith
10242 if expr a : '\(a\)' >/dev/null 2>&1 &&
10243    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10244   as_expr=expr
10245 else
10246   as_expr=false
10249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10250   as_basename=basename
10251 else
10252   as_basename=false
10255 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10256   as_dirname=dirname
10257 else
10258   as_dirname=false
10261 as_me=`$as_basename -- "$0" ||
10262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10263          X"$0" : 'X\(//\)$' \| \
10264          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10265 $as_echo X/"$0" |
10266     sed '/^.*\/\([^/][^/]*\)\/*$/{
10267             s//\1/
10268             q
10269           }
10270           /^X\/\(\/\/\)$/{
10271             s//\1/
10272             q
10273           }
10274           /^X\/\(\/\).*/{
10275             s//\1/
10276             q
10277           }
10278           s/.*/./; q'`
10280 # Avoid depending upon Character Ranges.
10281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10284 as_cr_digits='0123456789'
10285 as_cr_alnum=$as_cr_Letters$as_cr_digits
10287 ECHO_C= ECHO_N= ECHO_T=
10288 case `echo -n x` in @%:@(((((
10289 -n*)
10290   case `echo 'xy\c'` in
10291   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10292   xy)  ECHO_C='\c';;
10293   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10294        ECHO_T=' ';;
10295   esac;;
10297   ECHO_N='-n';;
10298 esac
10300 rm -f conf$$ conf$$.exe conf$$.file
10301 if test -d conf$$.dir; then
10302   rm -f conf$$.dir/conf$$.file
10303 else
10304   rm -f conf$$.dir
10305   mkdir conf$$.dir 2>/dev/null
10307 if (echo >conf$$.file) 2>/dev/null; then
10308   if ln -s conf$$.file conf$$ 2>/dev/null; then
10309     as_ln_s='ln -s'
10310     # ... but there are two gotchas:
10311     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10312     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10313     # In both cases, we have to default to `cp -p'.
10314     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10315       as_ln_s='cp -p'
10316   elif ln conf$$.file conf$$ 2>/dev/null; then
10317     as_ln_s=ln
10318   else
10319     as_ln_s='cp -p'
10320   fi
10321 else
10322   as_ln_s='cp -p'
10324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10325 rmdir conf$$.dir 2>/dev/null
10328 @%:@ as_fn_mkdir_p
10329 @%:@ -------------
10330 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
10331 as_fn_mkdir_p ()
10334   case $as_dir in #(
10335   -*) as_dir=./$as_dir;;
10336   esac
10337   test -d "$as_dir" || eval $as_mkdir_p || {
10338     as_dirs=
10339     while :; do
10340       case $as_dir in #(
10341       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10342       *) as_qdir=$as_dir;;
10343       esac
10344       as_dirs="'$as_qdir' $as_dirs"
10345       as_dir=`$as_dirname -- "$as_dir" ||
10346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10347          X"$as_dir" : 'X\(//\)[^/]' \| \
10348          X"$as_dir" : 'X\(//\)$' \| \
10349          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10350 $as_echo X"$as_dir" |
10351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10352             s//\1/
10353             q
10354           }
10355           /^X\(\/\/\)[^/].*/{
10356             s//\1/
10357             q
10358           }
10359           /^X\(\/\/\)$/{
10360             s//\1/
10361             q
10362           }
10363           /^X\(\/\).*/{
10364             s//\1/
10365             q
10366           }
10367           s/.*/./; q'`
10368       test -d "$as_dir" && break
10369     done
10370     test -z "$as_dirs" || eval "mkdir $as_dirs"
10371   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10374 } @%:@ as_fn_mkdir_p
10375 if mkdir -p . 2>/dev/null; then
10376   as_mkdir_p='mkdir -p "$as_dir"'
10377 else
10378   test -d ./-p && rmdir ./-p
10379   as_mkdir_p=false
10382 if test -x / >/dev/null 2>&1; then
10383   as_test_x='test -x'
10384 else
10385   if ls -dL / >/dev/null 2>&1; then
10386     as_ls_L_option=L
10387   else
10388     as_ls_L_option=
10389   fi
10390   as_test_x='
10391     eval sh -c '\''
10392       if test -d "$1"; then
10393         test -d "$1/.";
10394       else
10395         case $1 in @%:@(
10396         -*)set "./$1";;
10397         esac;
10398         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
10399         ???[sx]*):;;*)false;;esac;fi
10400     '\'' sh
10401   '
10403 as_executable_p=$as_test_x
10405 # Sed expression to map a string onto a valid CPP name.
10406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10408 # Sed expression to map a string onto a valid variable name.
10409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10412 exec 6>&1
10413 ## ----------------------------------- ##
10414 ## Main body of $CONFIG_STATUS script. ##
10415 ## ----------------------------------- ##
10416 _ASEOF
10417 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10420 # Save the log message, to keep $0 and so on meaningful, and to
10421 # report actual input values of CONFIG_FILES etc. instead of their
10422 # values after options handling.
10423 ac_log="
10424 This file was extended by GRUB $as_me 1.98, which was
10425 generated by GNU Autoconf 2.65.  Invocation command line was
10427   CONFIG_FILES    = $CONFIG_FILES
10428   CONFIG_HEADERS  = $CONFIG_HEADERS
10429   CONFIG_LINKS    = $CONFIG_LINKS
10430   CONFIG_COMMANDS = $CONFIG_COMMANDS
10431   $ $0 $@
10433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10436 _ACEOF
10438 case $ac_config_files in *"
10439 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10440 esac
10442 case $ac_config_headers in *"
10443 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10444 esac
10447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10448 # Files that config.status was made for.
10449 config_files="$ac_config_files"
10450 config_headers="$ac_config_headers"
10451 config_links="$ac_config_links"
10452 config_commands="$ac_config_commands"
10454 _ACEOF
10456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10457 ac_cs_usage="\
10458 \`$as_me' instantiates files and other configuration actions
10459 from templates according to the current configuration.  Unless the files
10460 and actions are specified as TAGs, all are instantiated by default.
10462 Usage: $0 [OPTION]... [TAG]...
10464   -h, --help       print this help, then exit
10465   -V, --version    print version number and configuration settings, then exit
10466       --config     print configuration, then exit
10467   -q, --quiet, --silent
10468                    do not print progress messages
10469   -d, --debug      don't remove temporary files
10470       --recheck    update $as_me by reconfiguring in the same conditions
10471       --file=FILE[:TEMPLATE] 
10472                    instantiate the configuration file FILE
10473       --header=FILE[:TEMPLATE] 
10474                    instantiate the configuration header FILE
10476 Configuration files:
10477 $config_files
10479 Configuration headers:
10480 $config_headers
10482 Configuration links:
10483 $config_links
10485 Configuration commands:
10486 $config_commands
10488 Report bugs to <bug-grub@gnu.org>."
10490 _ACEOF
10491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10492 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10493 ac_cs_version="\\
10494 GRUB config.status 1.98
10495 configured by $0, generated by GNU Autoconf 2.65,
10496   with options \\"\$ac_cs_config\\"
10498 Copyright (C) 2009 Free Software Foundation, Inc.
10499 This config.status script is free software; the Free Software Foundation
10500 gives unlimited permission to copy, distribute and modify it."
10502 ac_pwd='$ac_pwd'
10503 srcdir='$srcdir'
10504 INSTALL='$INSTALL'
10505 MKDIR_P='$MKDIR_P'
10506 AWK='$AWK'
10507 test -n "\$AWK" || AWK=awk
10508 _ACEOF
10510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10511 # The default lists apply if the user does not specify any file.
10512 ac_need_defaults=:
10513 while test $# != 0
10515   case $1 in
10516   --*=*)
10517     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10518     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10519     ac_shift=:
10520     ;;
10521   *)
10522     ac_option=$1
10523     ac_optarg=$2
10524     ac_shift=shift
10525     ;;
10526   esac
10528   case $ac_option in
10529   # Handling of the options.
10530   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10531     ac_cs_recheck=: ;;
10532   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10533     $as_echo "$ac_cs_version"; exit ;;
10534   --config | --confi | --conf | --con | --co | --c )
10535     $as_echo "$ac_cs_config"; exit ;;
10536   --debug | --debu | --deb | --de | --d | -d )
10537     debug=: ;;
10538   --file | --fil | --fi | --f )
10539     $ac_shift
10540     case $ac_optarg in
10541     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10542     esac
10543     as_fn_append CONFIG_FILES " '$ac_optarg'"
10544     ac_need_defaults=false;;
10545   --header | --heade | --head | --hea )
10546     $ac_shift
10547     case $ac_optarg in
10548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10549     esac
10550     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10551     ac_need_defaults=false;;
10552   --he | --h)
10553     # Conflict between --help and --header
10554     as_fn_error "ambiguous option: \`$1'
10555 Try \`$0 --help' for more information.";;
10556   --help | --hel | -h )
10557     $as_echo "$ac_cs_usage"; exit ;;
10558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10560     ac_cs_silent=: ;;
10562   # This is an error.
10563   -*) as_fn_error "unrecognized option: \`$1'
10564 Try \`$0 --help' for more information." ;;
10566   *) as_fn_append ac_config_targets " $1"
10567      ac_need_defaults=false ;;
10569   esac
10570   shift
10571 done
10573 ac_configure_extra_args=
10575 if $ac_cs_silent; then
10576   exec 6>/dev/null
10577   ac_configure_extra_args="$ac_configure_extra_args --silent"
10580 _ACEOF
10581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10582 if \$ac_cs_recheck; then
10583   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10584   shift
10585   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10586   CONFIG_SHELL='$SHELL'
10587   export CONFIG_SHELL
10588   exec "\$@"
10591 _ACEOF
10592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10593 exec 5>>config.log
10595   echo
10596   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
10597 @%:@@%:@ Running $as_me. @%:@@%:@
10598 _ASBOX
10599   $as_echo "$ac_log"
10600 } >&5
10602 _ACEOF
10603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10605 # INIT-COMMANDS
10607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10608 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10609     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10610     # from automake < 1.5.
10611     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10612     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10613     LINGUAS="${LINGUAS-%UNSET%}"
10614    
10616 _ACEOF
10618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10620 # Handling of arguments.
10621 for ac_config_target in $ac_config_targets
10623   case $ac_config_target in
10624     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10625     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10626     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10627     "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
10628     "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
10629     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10630     "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
10631     "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
10632     "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
10634   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10635   esac
10636 done
10639 # If the user did not use the arguments to specify the items to instantiate,
10640 # then the envvar interface is used.  Set only those that are not.
10641 # We use the long form for the default assignment because of an extremely
10642 # bizarre bug on SunOS 4.1.3.
10643 if $ac_need_defaults; then
10644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10646   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10647   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10650 # Have a temporary directory for convenience.  Make it in the build tree
10651 # simply because there is no reason against having it here, and in addition,
10652 # creating and moving files from /tmp can sometimes cause problems.
10653 # Hook for its removal unless debugging.
10654 # Note that there is a small window in which the directory will not be cleaned:
10655 # after its creation but before its name has been assigned to `$tmp'.
10656 $debug ||
10658   tmp=
10659   trap 'exit_status=$?
10660   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10661 ' 0
10662   trap 'as_fn_exit 1' 1 2 13 15
10664 # Create a (secure) tmp directory for tmp files.
10667   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10668   test -n "$tmp" && test -d "$tmp"
10669 }  ||
10671   tmp=./conf$$-$RANDOM
10672   (umask 077 && mkdir "$tmp")
10673 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10675 # Set up the scripts for CONFIG_FILES section.
10676 # No need to generate them if there are no CONFIG_FILES.
10677 # This happens for instance with `./config.status config.h'.
10678 if test -n "$CONFIG_FILES"; then
10681 ac_cr=`echo X | tr X '\015'`
10682 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10683 # But we know of no other shell where ac_cr would be empty at this
10684 # point, so we can use a bashism as a fallback.
10685 if test "x$ac_cr" = x; then
10686   eval ac_cr=\$\'\\r\'
10688 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10689 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10690   ac_cs_awk_cr='\r'
10691 else
10692   ac_cs_awk_cr=$ac_cr
10695 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10696 _ACEOF
10700   echo "cat >conf$$subs.awk <<_ACEOF" &&
10701   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10702   echo "_ACEOF"
10703 } >conf$$subs.sh ||
10704   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10706 ac_delim='%!_!# '
10707 for ac_last_try in false false false false false :; do
10708   . ./conf$$subs.sh ||
10709     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10711   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10712   if test $ac_delim_n = $ac_delim_num; then
10713     break
10714   elif $ac_last_try; then
10715     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10716   else
10717     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10718   fi
10719 done
10720 rm -f conf$$subs.sh
10722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10723 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10724 _ACEOF
10725 sed -n '
10727 s/^/S["/; s/!.*/"]=/
10730 s/^[^!]*!//
10731 :repl
10732 t repl
10733 s/'"$ac_delim"'$//
10734 t delim
10737 s/\(.\{148\}\)..*/\1/
10738 t more1
10739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10742 b repl
10743 :more1
10744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10747 s/.\{148\}//
10748 t nl
10749 :delim
10751 s/\(.\{148\}\)..*/\1/
10752 t more2
10753 s/["\\]/\\&/g; s/^/"/; s/$/"/
10756 :more2
10757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10760 s/.\{148\}//
10761 t delim
10762 ' <conf$$subs.awk | sed '
10763 /^[^""]/{
10764   N
10765   s/\n//
10767 ' >>$CONFIG_STATUS || ac_write_fail=1
10768 rm -f conf$$subs.awk
10769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10770 _ACAWK
10771 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10772   for (key in S) S_is_set[key] = 1
10773   FS = "\a"
10777   line = $ 0
10778   nfields = split(line, field, "@")
10779   substed = 0
10780   len = length(field[1])
10781   for (i = 2; i < nfields; i++) {
10782     key = field[i]
10783     keylen = length(key)
10784     if (S_is_set[key]) {
10785       value = S[key]
10786       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10787       len += length(value) + length(field[++i])
10788       substed = 1
10789     } else
10790       len += 1 + keylen
10791   }
10793   print line
10796 _ACAWK
10797 _ACEOF
10798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10800   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10801 else
10802   cat
10803 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10804   || as_fn_error "could not setup config files machinery" "$LINENO" 5
10805 _ACEOF
10807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10809 # trailing colons and then remove the whole line if VPATH becomes empty
10810 # (actually we leave an empty line to preserve line numbers).
10811 if test "x$srcdir" = x.; then
10812   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10813 s/:*\$(srcdir):*/:/
10814 s/:*\${srcdir}:*/:/
10815 s/:*@srcdir@:*/:/
10816 s/^\([^=]*=[     ]*\):*/\1/
10817 s/:*$//
10818 s/^[^=]*=[       ]*$//
10822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10823 fi # test -n "$CONFIG_FILES"
10825 # Set up the scripts for CONFIG_HEADERS section.
10826 # No need to generate them if there are no CONFIG_HEADERS.
10827 # This happens for instance with `./config.status Makefile'.
10828 if test -n "$CONFIG_HEADERS"; then
10829 cat >"$tmp/defines.awk" <<\_ACAWK ||
10830 BEGIN {
10831 _ACEOF
10833 # Transform confdefs.h into an awk script `defines.awk', embedded as
10834 # here-document in config.status, that substitutes the proper values into
10835 # config.h.in to produce config.h.
10837 # Create a delimiter string that does not exist in confdefs.h, to ease
10838 # handling of long lines.
10839 ac_delim='%!_!# '
10840 for ac_last_try in false false :; do
10841   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10842   if test -z "$ac_t"; then
10843     break
10844   elif $ac_last_try; then
10845     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10846   else
10847     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10848   fi
10849 done
10851 # For the awk script, D is an array of macro values keyed by name,
10852 # likewise P contains macro parameters if any.  Preserve backslash
10853 # newline sequences.
10855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10856 sed -n '
10857 s/.\{148\}/&'"$ac_delim"'/g
10858 t rset
10859 :rset
10860 s/^[     ]*#[    ]*define[       ][      ]*/ /
10861 t def
10863 :def
10864 s/\\$//
10865 t bsnl
10866 s/["\\]/\\&/g
10867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10868 D["\1"]=" \3"/p
10869 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10871 :bsnl
10872 s/["\\]/\\&/g
10873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10874 D["\1"]=" \3\\\\\\n"\\/p
10875 t cont
10876 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10877 t cont
10879 :cont
10881 s/.\{148\}/&'"$ac_delim"'/g
10882 t clear
10883 :clear
10884 s/\\$//
10885 t bsnlc
10886 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10888 :bsnlc
10889 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10890 b cont
10891 ' <confdefs.h | sed '
10892 s/'"$ac_delim"'/"\\\
10893 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10896   for (key in D) D_is_set[key] = 1
10897   FS = "\a"
10899 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10900   line = \$ 0
10901   split(line, arg, " ")
10902   if (arg[1] == "#") {
10903     defundef = arg[2]
10904     mac1 = arg[3]
10905   } else {
10906     defundef = substr(arg[1], 2)
10907     mac1 = arg[2]
10908   }
10909   split(mac1, mac2, "(") #)
10910   macro = mac2[1]
10911   prefix = substr(line, 1, index(line, defundef) - 1)
10912   if (D_is_set[macro]) {
10913     # Preserve the white space surrounding the "#".
10914     print prefix "define", macro P[macro] D[macro]
10915     next
10916   } else {
10917     # Replace #undef with comments.  This is necessary, for example,
10918     # in the case of _POSIX_SOURCE, which is predefined and required
10919     # on some systems where configure will not decide to define it.
10920     if (defundef == "undef") {
10921       print "/*", prefix defundef, macro, "*/"
10922       next
10923     }
10924   }
10926 { print }
10927 _ACAWK
10928 _ACEOF
10929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10930   as_fn_error "could not setup config headers machinery" "$LINENO" 5
10931 fi # test -n "$CONFIG_HEADERS"
10934 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
10935 shift
10936 for ac_tag
10938   case $ac_tag in
10939   :[FHLC]) ac_mode=$ac_tag; continue;;
10940   esac
10941   case $ac_mode$ac_tag in
10942   :[FHL]*:*);;
10943   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10944   :[FH]-) ac_tag=-:-;;
10945   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10946   esac
10947   ac_save_IFS=$IFS
10948   IFS=:
10949   set x $ac_tag
10950   IFS=$ac_save_IFS
10951   shift
10952   ac_file=$1
10953   shift
10955   case $ac_mode in
10956   :L) ac_source=$1;;
10957   :[FH])
10958     ac_file_inputs=
10959     for ac_f
10960     do
10961       case $ac_f in
10962       -) ac_f="$tmp/stdin";;
10963       *) # Look for the file first in the build tree, then in the source tree
10964          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10965          # because $ac_f cannot contain `:'.
10966          test -f "$ac_f" ||
10967            case $ac_f in
10968            [\\/$]*) false;;
10969            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10970            esac ||
10971            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10972       esac
10973       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10974       as_fn_append ac_file_inputs " '$ac_f'"
10975     done
10977     # Let's still pretend it is `configure' which instantiates (i.e., don't
10978     # use $as_me), people would be surprised to read:
10979     #    /* config.h.  Generated by config.status.  */
10980     configure_input='Generated from '`
10981           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10982         `' by configure.'
10983     if test x"$ac_file" != x-; then
10984       configure_input="$ac_file.  $configure_input"
10985       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10986 $as_echo "$as_me: creating $ac_file" >&6;}
10987     fi
10988     # Neutralize special characters interpreted by sed in replacement strings.
10989     case $configure_input in #(
10990     *\&* | *\|* | *\\* )
10991        ac_sed_conf_input=`$as_echo "$configure_input" |
10992        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10993     *) ac_sed_conf_input=$configure_input;;
10994     esac
10996     case $ac_tag in
10997     *:-:* | *:-) cat >"$tmp/stdin" \
10998       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10999     esac
11000     ;;
11001   esac
11003   ac_dir=`$as_dirname -- "$ac_file" ||
11004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11005          X"$ac_file" : 'X\(//\)[^/]' \| \
11006          X"$ac_file" : 'X\(//\)$' \| \
11007          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11008 $as_echo X"$ac_file" |
11009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11010             s//\1/
11011             q
11012           }
11013           /^X\(\/\/\)[^/].*/{
11014             s//\1/
11015             q
11016           }
11017           /^X\(\/\/\)$/{
11018             s//\1/
11019             q
11020           }
11021           /^X\(\/\).*/{
11022             s//\1/
11023             q
11024           }
11025           s/.*/./; q'`
11026   as_dir="$ac_dir"; as_fn_mkdir_p
11027   ac_builddir=.
11029 case "$ac_dir" in
11030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11032   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11033   # A ".." for each directory in $ac_dir_suffix.
11034   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11035   case $ac_top_builddir_sub in
11036   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11037   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11038   esac ;;
11039 esac
11040 ac_abs_top_builddir=$ac_pwd
11041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11042 # for backward compatibility:
11043 ac_top_builddir=$ac_top_build_prefix
11045 case $srcdir in
11046   .)  # We are building in place.
11047     ac_srcdir=.
11048     ac_top_srcdir=$ac_top_builddir_sub
11049     ac_abs_top_srcdir=$ac_pwd ;;
11050   [\\/]* | ?:[\\/]* )  # Absolute name.
11051     ac_srcdir=$srcdir$ac_dir_suffix;
11052     ac_top_srcdir=$srcdir
11053     ac_abs_top_srcdir=$srcdir ;;
11054   *) # Relative name.
11055     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11056     ac_top_srcdir=$ac_top_build_prefix$srcdir
11057     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11058 esac
11059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11062   case $ac_mode in
11063   :F)
11064   #
11065   # CONFIG_FILE
11066   #
11068   case $INSTALL in
11069   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11070   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11071   esac
11072   ac_MKDIR_P=$MKDIR_P
11073   case $MKDIR_P in
11074   [\\/$]* | ?:[\\/]* ) ;;
11075   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11076   esac
11077 _ACEOF
11079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11080 # If the template does not know about datarootdir, expand it.
11081 # FIXME: This hack should be removed a few years after 2.60.
11082 ac_datarootdir_hack=; ac_datarootdir_seen=
11083 ac_sed_dataroot='
11084 /datarootdir/ {
11085   p
11086   q
11088 /@datadir@/p
11089 /@docdir@/p
11090 /@infodir@/p
11091 /@localedir@/p
11092 /@mandir@/p'
11093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11094 *datarootdir*) ac_datarootdir_seen=yes;;
11095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11096   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11097 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11098 _ACEOF
11099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11100   ac_datarootdir_hack='
11101   s&@datadir@&$datadir&g
11102   s&@docdir@&$docdir&g
11103   s&@infodir@&$infodir&g
11104   s&@localedir@&$localedir&g
11105   s&@mandir@&$mandir&g
11106   s&\\\${datarootdir}&$datarootdir&g' ;;
11107 esac
11108 _ACEOF
11110 # Neutralize VPATH when `$srcdir' = `.'.
11111 # Shell code in configure.ac might set extrasub.
11112 # FIXME: do we really want to maintain this feature?
11113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11114 ac_sed_extra="$ac_vpsub
11115 $extrasub
11116 _ACEOF
11117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11120 s|@configure_input@|$ac_sed_conf_input|;t t
11121 s&@top_builddir@&$ac_top_builddir_sub&;t t
11122 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11123 s&@srcdir@&$ac_srcdir&;t t
11124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11125 s&@top_srcdir@&$ac_top_srcdir&;t t
11126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11127 s&@builddir@&$ac_builddir&;t t
11128 s&@abs_builddir@&$ac_abs_builddir&;t t
11129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11130 s&@INSTALL@&$ac_INSTALL&;t t
11131 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11132 $ac_datarootdir_hack
11134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11135   || as_fn_error "could not create $ac_file" "$LINENO" 5
11137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11138   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11139   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11141 which seems to be undefined.  Please make sure it is defined." >&5
11142 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11143 which seems to be undefined.  Please make sure it is defined." >&2;}
11145   rm -f "$tmp/stdin"
11146   case $ac_file in
11147   -) cat "$tmp/out" && rm -f "$tmp/out";;
11148   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11149   esac \
11150   || as_fn_error "could not create $ac_file" "$LINENO" 5
11151  ;;
11152   :H)
11153   #
11154   # CONFIG_HEADER
11155   #
11156   if test x"$ac_file" != x-; then
11157     {
11158       $as_echo "/* $configure_input  */" \
11159       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11160     } >"$tmp/config.h" \
11161       || as_fn_error "could not create $ac_file" "$LINENO" 5
11162     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11163       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11164 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11165     else
11166       rm -f "$ac_file"
11167       mv "$tmp/config.h" "$ac_file" \
11168         || as_fn_error "could not create $ac_file" "$LINENO" 5
11169     fi
11170   else
11171     $as_echo "/* $configure_input  */" \
11172       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11173       || as_fn_error "could not create -" "$LINENO" 5
11174   fi
11175 # Compute "$ac_file"'s index in $config_headers.
11176 _am_arg="$ac_file"
11177 _am_stamp_count=1
11178 for _am_header in $config_headers :; do
11179   case $_am_header in
11180     $_am_arg | $_am_arg:* )
11181       break ;;
11182     * )
11183       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11184   esac
11185 done
11186 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11187 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11188          X"$_am_arg" : 'X\(//\)[^/]' \| \
11189          X"$_am_arg" : 'X\(//\)$' \| \
11190          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11191 $as_echo X"$_am_arg" |
11192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11193             s//\1/
11194             q
11195           }
11196           /^X\(\/\/\)[^/].*/{
11197             s//\1/
11198             q
11199           }
11200           /^X\(\/\/\)$/{
11201             s//\1/
11202             q
11203           }
11204           /^X\(\/\).*/{
11205             s//\1/
11206             q
11207           }
11208           s/.*/./; q'`/stamp-h$_am_stamp_count
11209  ;;
11210   :L)
11211   #
11212   # CONFIG_LINK
11213   #
11215   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
11216     :
11217   else
11218     # Prefer the file from the source tree if names are identical.
11219     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
11220       ac_source=$srcdir/$ac_source
11221     fi
11223     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
11224 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
11226     if test ! -r "$ac_source"; then
11227       as_fn_error "$ac_source: file not found" "$LINENO" 5
11228     fi
11229     rm -f "$ac_file"
11231     # Try a relative symlink, then a hard link, then a copy.
11232     case $srcdir in
11233     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
11234         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
11235     esac
11236     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
11237       ln "$ac_source" "$ac_file" 2>/dev/null ||
11238       cp -p "$ac_source" "$ac_file" ||
11239       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
11240   fi
11241  ;;
11242   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11243 $as_echo "$as_me: executing $ac_file commands" >&6;}
11244  ;;
11245   esac
11248   case $ac_file$ac_mode in
11249     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11250   # Autoconf 2.62 quotes --file arguments for eval, but not when files
11251   # are listed without --file.  Let's play safe and only enable the eval
11252   # if we detect the quoting.
11253   case $CONFIG_FILES in
11254   *\'*) eval set x "$CONFIG_FILES" ;;
11255   *)   set x $CONFIG_FILES ;;
11256   esac
11257   shift
11258   for mf
11259   do
11260     # Strip MF so we end up with the name of the file.
11261     mf=`echo "$mf" | sed -e 's/:.*$//'`
11262     # Check whether this is an Automake generated Makefile or not.
11263     # We used to match only the files named `Makefile.in', but
11264     # some people rename them; so instead we look at the file content.
11265     # Grep'ing the first line is not enough: some people post-process
11266     # each Makefile.in and add a new line on top of each file to say so.
11267     # Grep'ing the whole file is not good either: AIX grep has a line
11268     # limit of 2048, but all sed's we know have understand at least 4000.
11269     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11270       dirpart=`$as_dirname -- "$mf" ||
11271 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11272          X"$mf" : 'X\(//\)[^/]' \| \
11273          X"$mf" : 'X\(//\)$' \| \
11274          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11275 $as_echo X"$mf" |
11276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11277             s//\1/
11278             q
11279           }
11280           /^X\(\/\/\)[^/].*/{
11281             s//\1/
11282             q
11283           }
11284           /^X\(\/\/\)$/{
11285             s//\1/
11286             q
11287           }
11288           /^X\(\/\).*/{
11289             s//\1/
11290             q
11291           }
11292           s/.*/./; q'`
11293     else
11294       continue
11295     fi
11296     # Extract the definition of DEPDIR, am__include, and am__quote
11297     # from the Makefile without running `make'.
11298     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11299     test -z "$DEPDIR" && continue
11300     am__include=`sed -n 's/^am__include = //p' < "$mf"`
11301     test -z "am__include" && continue
11302     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11303     # When using ansi2knr, U may be empty or an underscore; expand it
11304     U=`sed -n 's/^U = //p' < "$mf"`
11305     # Find all dependency output files, they are included files with
11306     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11307     # simplest approach to changing $(DEPDIR) to its actual value in the
11308     # expansion.
11309     for file in `sed -n "
11310       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11311          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11312       # Make sure the directory exists.
11313       test -f "$dirpart/$file" && continue
11314       fdir=`$as_dirname -- "$file" ||
11315 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11316          X"$file" : 'X\(//\)[^/]' \| \
11317          X"$file" : 'X\(//\)$' \| \
11318          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11319 $as_echo X"$file" |
11320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11321             s//\1/
11322             q
11323           }
11324           /^X\(\/\/\)[^/].*/{
11325             s//\1/
11326             q
11327           }
11328           /^X\(\/\/\)$/{
11329             s//\1/
11330             q
11331           }
11332           /^X\(\/\).*/{
11333             s//\1/
11334             q
11335           }
11336           s/.*/./; q'`
11337       as_dir=$dirpart/$fdir; as_fn_mkdir_p
11338       # echo "creating $dirpart/$file"
11339       echo '# dummy' > "$dirpart/$file"
11340     done
11341   done
11343  ;;
11344     "po-directories":C) 
11345     for ac_file in $CONFIG_FILES; do
11346       # Support "outfile[:infile[:infile...]]"
11347       case "$ac_file" in
11348         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11349       esac
11350       # PO directories have a Makefile.in generated from Makefile.in.in.
11351       case "$ac_file" in */Makefile.in)
11352         # Adjust a relative srcdir.
11353         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11354         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11355         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11356         # In autoconf-2.13 it is called $ac_given_srcdir.
11357         # In autoconf-2.50 it is called $srcdir.
11358         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11359         case "$ac_given_srcdir" in
11360           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11361           /*) top_srcdir="$ac_given_srcdir" ;;
11362           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11363         esac
11364         # Treat a directory as a PO directory if and only if it has a
11365         # POTFILES.in file. This allows packages to have multiple PO
11366         # directories under different names or in different locations.
11367         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11368           rm -f "$ac_dir/POTFILES"
11369           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11370           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11371           POMAKEFILEDEPS="POTFILES.in"
11372           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11373           # on $ac_dir but don't depend on user-specified configuration
11374           # parameters.
11375           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11376             # The LINGUAS file contains the set of available languages.
11377             if test -n "$OBSOLETE_ALL_LINGUAS"; then
11378               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11379             fi
11380             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11381             # Hide the ALL_LINGUAS assigment from automake < 1.5.
11382             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11383             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11384           else
11385             # The set of available languages was given in configure.in.
11386             # Hide the ALL_LINGUAS assigment from automake < 1.5.
11387             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11388           fi
11389           # Compute POFILES
11390           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11391           # Compute UPDATEPOFILES
11392           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11393           # Compute DUMMYPOFILES
11394           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11395           # Compute GMOFILES
11396           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11397           case "$ac_given_srcdir" in
11398             .) srcdirpre= ;;
11399             *) srcdirpre='$(srcdir)/' ;;
11400           esac
11401           POFILES=
11402           UPDATEPOFILES=
11403           DUMMYPOFILES=
11404           GMOFILES=
11405           for lang in $ALL_LINGUAS; do
11406             POFILES="$POFILES $srcdirpre$lang.po"
11407             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11408             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11409             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11410           done
11411           # CATALOGS depends on both $ac_dir and the user's LINGUAS
11412           # environment variable.
11413           INST_LINGUAS=
11414           if test -n "$ALL_LINGUAS"; then
11415             for presentlang in $ALL_LINGUAS; do
11416               useit=no
11417               if test "%UNSET%" != "$LINGUAS"; then
11418                 desiredlanguages="$LINGUAS"
11419               else
11420                 desiredlanguages="$ALL_LINGUAS"
11421               fi
11422               for desiredlang in $desiredlanguages; do
11423                 # Use the presentlang catalog if desiredlang is
11424                 #   a. equal to presentlang, or
11425                 #   b. a variant of presentlang (because in this case,
11426                 #      presentlang can be used as a fallback for messages
11427                 #      which are not translated in the desiredlang catalog).
11428                 case "$desiredlang" in
11429                   "$presentlang"*) useit=yes;;
11430                 esac
11431               done
11432               if test $useit = yes; then
11433                 INST_LINGUAS="$INST_LINGUAS $presentlang"
11434               fi
11435             done
11436           fi
11437           CATALOGS=
11438           if test -n "$INST_LINGUAS"; then
11439             for lang in $INST_LINGUAS; do
11440               CATALOGS="$CATALOGS $lang.gmo"
11441             done
11442           fi
11443           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11444           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"
11445           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11446             if test -f "$f"; then
11447               case "$f" in
11448                 *.orig | *.bak | *~) ;;
11449                 *) cat "$f" >> "$ac_dir/Makefile" ;;
11450               esac
11451             fi
11452           done
11453         fi
11454         ;;
11455       esac
11456     done ;;
11457     "stamp-h":F) echo timestamp > stamp-h ;;
11459   esac
11460 done # for ac_tag
11463 as_fn_exit 0
11464 _ACEOF
11465 ac_clean_files=$ac_clean_files_save
11467 test $ac_write_fail = 0 ||
11468   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11471 # configure is writing to config.log, and then calls config.status.
11472 # config.status does its own redirection, appending to config.log.
11473 # Unfortunately, on DOS this fails, as config.log is still kept open
11474 # by configure, so config.status won't be able to write to it; its
11475 # output is simply discarded.  So we exec the FD to /dev/null,
11476 # effectively closing config.log, so it can be properly (re)opened and
11477 # appended to by config.status.  When coming back to configure, we
11478 # need to make the FD available again.
11479 if test "$no_create" != yes; then
11480   ac_cs_success=:
11481   ac_config_status_args=
11482   test "$silent" = yes &&
11483     ac_config_status_args="$ac_config_status_args --quiet"
11484   exec 5>/dev/null
11485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11486   exec 5>>config.log
11487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11488   # would make configure fail if this is the last instruction.
11489   $ac_cs_success || as_fn_exit $?
11491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11492   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11493 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11497 echo "*******************************************************"
11498 echo GRUB2 will be compiled with following components:
11499 echo Platform: "$target_cpu"-"$platform"
11500 if [ x"$platform" = xemu ]; then
11501 if [ x"$grub_emu_usb_excuse" = x ]; then
11502 echo USB support for grub-emu: Yes
11503 else
11504 echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
11506 if [ x"$grub_emu_sdl_excuse" = x ]; then
11507 echo SDL support for grub-emu: Yes
11508 else
11509 echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
11511 if [ x"$grub_emu_pci_excuse" = x ]; then
11512 echo PCI support for grub-emu: Yes
11513 else
11514 echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
11517 if [ x"$enable_mm_debug" = xyes ]; then
11518 echo With memory debugging: Yes
11519 else
11520 echo With memory debugging: No
11522 if [ x"$efiemu_excuse" = x ]; then
11523 echo efiemu runtime: Yes
11524 else
11525 echo efiemu runtime: No "($efiemu_excuse)"
11527 if [ x"$grub_fstest_excuse" = x ]; then
11528 echo grub-fstest: Yes
11529 else
11530 echo grub-fstest: No "($grub_fstest_excuse)"
11532 if [ x"$grub_mkfont_excuse" = x ]; then
11533 echo grub-mkfont: Yes
11534 else
11535 echo grub-mkfont: No "($grub_mkfont_excuse)"
11537 echo "*******************************************************"